/* patron-chat-d.css — p161 step 1 (2026-11-22). Albert: "push D but expand should expand over the whole page" (the p159
   mock's chat D: catalyst-work/p159-app-look/p159/sheet-chat-D.jpg). This first step is the frame only:
   - the landing's backdrops behind the signed-in chat: Sky in the White theme, Sunrise in the Dark one (the same Blender cloud
     bank, assets/clouds), the switch in the notch (patron-dash.css);
   - the five in their own frosted panel, the conversation in another, rounded, with the sky in the gaps; PATRON top left,
     credits and account top right;
   - the keys never go down and never change size (Albert's rule from the landing): the one you talk to stands on its lit
     key in a soft well.
   The work panel (the step rail, the live view, Expand over the whole page) and the new answers (reading text under the
   robot's head) are the next steps. Everything here is under html[data-home][data-look="chats"]; the Dashboard has its own
   (patron-dashboard.css, p160). Panels draw their glass in ::before, so nothing fixed inside them changes its frame.
   p162 (Albert: "make light glass on both … add a dark truly dark theme"): three looks (theme.js, html[data-sky]). Sky and
   Sunrise both wear the light app in light frosted glass (data-theme="light"); only the backdrop differs. Dark is the
   near-black night (assets/clouds/night-stars + night-bank, made from the day bank) with dark glass and the dark app. */

/* ------------------------------------------------------------------ a laptop: two frosted panels */
@media (min-width:801px){
  /* the backdrop (a phone keeps today's chat until its own step: the five as a row of keys) */
  html[data-home][data-look="chats"] body{
    background:url("../assets/clouds/day-bank.webp?v=2026-11-22p157") no-repeat left -14vw bottom -34vh / 128vw auto,
      linear-gradient(180deg,#3D84E6 0%,#5E9AEC 30%,#8DBBF1 62%,#B7D5F6 84%,#CFE3F8 100%) fixed}
  html[data-home][data-look="chats"][data-sky="sunrise"] body{
    background:url("../assets/clouds/warm-bank.webp?v=2026-11-22p157") no-repeat left -14vw bottom -36vh / 128vw auto,
      radial-gradient(ellipse 40% 26% at 50% 92%,rgba(255,244,226,.95),rgba(255,232,205,.5) 45%,rgba(255,220,190,0) 100%),
      linear-gradient(180deg,#A898E4 0%,#C6A6DF 22%,#E9B2CF 46%,#F9C1B7 66%,#FFD9BF 84%,#FFEBD6 100%) fixed}
  /* p162: Dark, the night: near-black, a faint indigo high up, a few stars, the same cloud bank by moonlight */
  html[data-home][data-look="chats"][data-sky="dark"] body{
    background:url("../assets/clouds/night-bank.webp?v=2026-11-22p162") no-repeat left -14vw bottom -34vh / 128vw auto,
      url("../assets/clouds/night-stars.webp?v=2026-11-22p162") no-repeat center top / 100vw auto,
      radial-gradient(ellipse 62% 60% at 50% -14%,rgba(56,66,128,.34),rgba(56,66,128,0) 72%),
      linear-gradient(180deg,#0A0C14 0%,#07080D 55%,#050609 100%) fixed}
  html[data-home][data-look="chats"] #app,
  html[data-home][data-look="chats"] #app>main>.main-col,
  html[data-home][data-look="chats"][data-chat2] #app>main>.main-col,
  html[data-home][data-look="chats"] .surf-pane.pc{background:transparent}
/* the start screen covers the conversation (as before), on the panel's own glass, a little denser */
  html[data-home][data-look="chats"][data-home-stage] .home-stage{border-radius:24px;
    background:rgba(240,246,255,.9);backdrop-filter:blur(26px) saturate(1.3);-webkit-backdrop-filter:blur(26px) saturate(1.3)}
  html[data-home][data-look="chats"][data-home-stage][data-sky="sunrise"] .home-stage{background:rgba(255,246,250,.9)}
  html[data-home][data-look="chats"][data-home-stage]:not([data-theme="light"]) .home-stage{background:rgba(13,15,22,.94)}
  html[data-home][data-look="chats"]{
    --cd-glass:rgba(244,249,255,.58); --cd-line:rgba(255,255,255,.72); --cd-shadow:0 24px 60px rgba(20,48,100,.16),0 1px 2px rgba(20,48,100,.06);
    --cd-well:rgba(255,255,255,.7); --cd-wellline:rgba(255,255,255,.9)}
  /* p162: Sunrise is light glass too (a breath warmer); Dark is dark glass, a step lighter than the night behind it */
  html[data-home][data-look="chats"][data-sky="sunrise"]{
    --cd-glass:rgba(255,247,251,.56); --cd-shadow:0 24px 60px rgba(96,40,84,.16),0 1px 2px rgba(96,40,84,.06)}
  html[data-home][data-look="chats"]:not([data-theme="light"]){
    --cd-glass:rgba(18,20,29,.64); --cd-line:rgba(255,255,255,.09); --cd-shadow:0 24px 60px rgba(0,0,0,.45),0 1px 2px rgba(0,0,0,.3);
    --cd-well:rgba(255,255,255,.07); --cd-wellline:rgba(255,255,255,.12)}
  /* the five's column: no ground of its own; the wordmark on the sky, the team in a panel */
  html[data-home][data-look="chats"] #chats-side{background:transparent;border-right:0;box-shadow:none}
  html[data-home][data-look="chats"] .home-sidehead{background:transparent;box-shadow:none;border:0}
  html[data-home][data-look="chats"] .home-word{filter:invert(1)}
  html[data-home][data-look="chats"]:not([data-theme="light"]) .home-word{filter:none}
  /* credits and account: top right, on the sky (as on the Dashboard) */
  html[data-home][data-look="chats"]:not([data-dash]) .home-tools{position:fixed;top:13px;right:18px;z-index:46}
  html[data-home][data-look="chats"] .home-cred,html[data-home][data-look="chats"] .home-me{background:rgba(255,255,255,.55);color:#0b1a33;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.75)}
  html[data-home][data-look="chats"] .home-cred:hover,html[data-home][data-look="chats"] .home-me:hover{background:rgba(255,255,255,.78);color:#0b1a33}
  html[data-home][data-look="chats"]:not([data-theme="light"]) :is(.home-cred,.home-me){background:rgba(255,255,255,.08);color:#f4f4f1;box-shadow:inset 0 0 0 1px rgba(255,255,255,.13)}
  html[data-home][data-look="chats"]:not([data-theme="light"]) :is(.home-cred,.home-me):hover{background:rgba(255,255,255,.13);color:#fff}
  /* the theme switch on the backdrop: a frosted pill on Sky and Sunrise (as on the landing), a hairline pill in the night */
  html[data-home][data-look="chats"][data-theme="light"] .home-sidefoot .home-theme{background:rgba(255,255,255,.42);box-shadow:inset 0 0 0 1px rgba(255,255,255,.6);color:rgba(10,26,51,.55)}
  html[data-home][data-look="chats"][data-theme="light"] .home-sidefoot .home-themeknob{background:#fff;box-shadow:0 1px 3px rgba(10,26,51,.18)}
  html[data-home][data-look="chats"][data-theme="light"] .home-sidefoot .home-themeb:hover{color:rgba(10,26,51,.85)}
  html[data-home][data-look="chats"][data-theme="light"] .home-sidefoot .home-themeb[aria-checked="true"]{color:#0A1A33}
  html[data-home][data-look="chats"]:not([data-theme="light"]) .home-sidefoot .home-theme{background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
  /* p163 (Albert: "shrink the bot sidebar horizontally"): the five's column hugs the robots; they keep their size */
  html[data-home][data-look="chats"]{--rail:204px}
  html[data-home][data-look="chats"] .home-team{position:relative;isolation:isolate;margin:0 8px 0 16px;padding:10px 0 12px;border-radius:24px}
  html[data-home][data-look="chats"] .home-side::before,
  html[data-home][data-look="chats"] main::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:24px;pointer-events:none;
    background:var(--cd-glass);box-shadow:inset 0 0 0 1px var(--cd-line),var(--cd-shadow);
    backdrop-filter:blur(26px) saturate(1.35);-webkit-backdrop-filter:blur(26px) saturate(1.35)}
  /* p163g (Albert: "here there is a misalignment also here on the bottom … looks messy"): the five's panel starts and ends
     level with the conversation (56 px from the top, 16 px from the foot), and the theme switch sits inside it, at its foot,
     centred; the glass is the column's own (the team scrolls inside it, the switch stays) */
  html[data-home][data-look="chats"] .home-side{position:relative;isolation:isolate}
  html[data-home][data-look="chats"] .home-side::before{inset:56px 8px 16px 16px}
  html[data-home][data-look="chats"] .home-sidehead{height:56px}
  html[data-home][data-look="chats"] .home-team{border-radius:0}
  html[data-home][data-look="chats"] .home-sidefoot{justify-content:center;padding:4px 8px 26px 16px}
}
@media (min-width:801px) and (max-width:1000px){
  html[data-home][data-look="chats"]{--rail:180px}
}
@media (min-width:801px){
  /* the conversation: one panel right of the team, the sky round it; its head (the robot's name, Memory) inside */
  html[data-home][data-look="chats"] #app>main{isolation:isolate;margin:56px 16px 16px 8px;border-radius:24px;min-height:0}
  html[data-home][data-look="chats"] #app>main>.page-head,
  html[data-home][data-look="chats"][data-theme="light"] #app>main>.page-head{background:transparent;border-bottom:0}
  html[data-home][data-look="chats"] #app>main>.page-head::before,
  html[data-home][data-look="chats"] #app>main>.page-head::after,
  html[data-home][data-look="chats"][data-chat2] #app>main>.page-head::before,
  html[data-home][data-look="chats"][data-chat2] #app>main>.page-head::after{background:transparent}
  html[data-home][data-look="chats"] #app>main .main-col{border-radius:0 0 24px 24px;overflow:hidden}
}

/* ------------------------------------------------------------------ the keys: never down, never bigger (Albert's rule) */
html[data-home][data-look="chats"]{--cd-well:rgba(255,255,255,.7);--cd-wellline:rgba(255,255,255,.9)}
html[data-home][data-look="chats"]:not([data-theme="light"]){--cd-well:rgba(255,255,255,.07);--cd-wellline:rgba(255,255,255,.12)}
html[data-home][data-look="chats"] .home-unit{--press:0px!important}
html[data-home][data-look="chats"] .home-slot:hover{background:transparent}
html[data-home][data-look="chats"] .home-slot:not(.on) .home-unit{filter:none}
/* the one you talk to: its key lit in its colour. p163 (Albert: "remove that compartment light up when one bot is selected"):
   no well behind it any more, only the soft glow under its key */
html[data-home][data-look="chats"] .home-slot.on{background:transparent;box-shadow:none}
html[data-home][data-look="chats"] .home-slot.on::before{opacity:.55}
