/* 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. */

/* ------------------------------------------------------------------ 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"]:not([data-theme="light"]) 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}
  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]:not([data-theme="light"]) .home-stage{background:rgba(24,14,32,.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)}
  html[data-home][data-look="chats"]:not([data-theme="light"]){
    --cd-glass:rgba(26,16,34,.62); --cd-line:rgba(255,255,255,.12); --cd-shadow:0 24px 60px rgba(60,20,60,.28),0 1px 2px rgba(0,0,0,.2);
    --cd-well:rgba(255,255,255,.1); --cd-wellline:rgba(255,255,255,.16)}
  /* 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"] .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-team::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)}
  html[data-home][data-look="chats"] .home-sidefoot{padding-left:16px}
  /* 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,.08);--cd-wellline:rgba(255,255,255,.14)}
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, in a soft white well */
html[data-home][data-look="chats"] .home-slot.on{background:var(--cd-well,rgba(255,255,255,.6));box-shadow:inset 0 0 0 1px var(--cd-wellline,rgba(255,255,255,.85))}
html[data-home][data-look="chats"] .home-slot.on::before{opacity:.55}

/* ------------------------------------------------------------------ p161 step (a): the sidebar (home.js)
   The five on the landing page's A3 keycaps (assets/keys, Blender; plain and lit), the drawn key under them as the fallback.
   The picture's feet point (the render's own) sits where the robot stands. A dot by each robot (its colour while it works,
   amber when it needs you, green when done), its live line under its key, "Your team" with the conversation and Memory. */
html[data-home][data-look="chats"] .home-a3{position:absolute;left:-36.6px;top:-66.4px;width:366px;height:243.5px;pointer-events:none}
html[data-home][data-look="chats"] .home-a3 img{position:absolute;inset:0;width:100%;height:100%;display:block;user-select:none;-webkit-user-drag:none;
  color:transparent;font-size:0;transition:opacity .25s ease}
html[data-home][data-look="chats"] .home-a3l{opacity:0}
html[data-home][data-look="chats"] .home-slot.on .home-a3l{opacity:1}
html[data-home][data-look="chats"] .home-unit:has(.home-a3) .home-key{visibility:hidden}
html[data-home][data-look="chats"] .home-slot .home-card{display:none!important}
/* the dot: top right of the robot */
html[data-home][data-look="chats"] .home-dot{position:absolute;z-index:2;left:calc(50% + 46px * var(--s,.5) * 2);top:10px;width:9px;height:9px;border-radius:50%;
  display:none;background:var(--glow);box-shadow:0 0 0 2.5px rgba(255,255,255,.85)}
html[data-home][data-look="chats"] .home-slot[data-st="work"] .home-dot{display:block;animation:cd-dot 1.6s ease-in-out infinite}
html[data-home][data-look="chats"] .home-slot[data-st="done"] .home-dot{display:block;background:#2fbf6c}
html[data-home][data-look="chats"] .home-slot[data-needs="1"] .home-dot{display:block;background:#f5a524;animation:none}
@keyframes cd-dot{50%{box-shadow:0 0 0 2.5px rgba(255,255,255,.85),0 0 0 6px color-mix(in srgb,var(--glow) 30%,transparent)}}
/* the live line under the key */
html[data-home][data-look="chats"] .home-line{position:absolute;left:10px;right:10px;bottom:6px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  text-align:center;font-size:11.5px;font-weight:500;line-height:16px;color:#4a5874;pointer-events:none}
html[data-home][data-look="chats"]:not([data-theme="light"]) .home-line{color:rgba(244,240,248,.72)}
html[data-home][data-look="chats"] .home-slot[data-needs="1"] .home-line{color:#a2650a;font-weight:600}
html[data-home][data-look="chats"]:not([data-theme="light"]) .home-slot[data-needs="1"] .home-line{color:#ffc46b}
html[data-home][data-look="chats"] .home-slot{height:calc(336px * var(--s) + 44px)}
html[data-home][data-look="chats"] .home-unit{bottom:40px}
/* the five's size: home.js home_fit, which now leaves room for the lines and the panel's head */
/* the panel's head */
html[data-home][data-look="chats"] .home-teamhead{flex:none;align-self:stretch;display:flex;align-items:center;justify-content:space-between;padding:4px 14px 0 18px}
html[data-home][data-look="chats"] .home-teamname{font-size:11px;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:#4a5874}
html[data-home][data-look="chats"]:not([data-theme="light"]) .home-teamname{color:rgba(244,240,248,.6)}
html[data-home][data-look="chats"] .home-teamtools{display:flex;gap:6px}
html[data-home][data-look="chats"] .home-ticon{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;cursor:pointer;
  background:rgba(255,255,255,.55);color:#22304a;box-shadow:inset 0 0 0 1px rgba(255,255,255,.8)}
html[data-home][data-look="chats"] .home-ticon:hover{background:rgba(255,255,255,.85)}
html[data-home][data-look="chats"]:not([data-theme="light"]) .home-ticon{background:rgba(255,255,255,.08);color:#f4f0f8;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
html[data-home][data-look="chats"] .home-ticon:focus-visible{outline:2px solid #6c9cff;outline-offset:2px}
@media (max-width:800px){html[data-home][data-look="chats"] .home-teamhead{display:none}}
@media (prefers-reduced-motion:reduce){html[data-home][data-look="chats"] .home-slot[data-st="work"] .home-dot{animation:none}}
