/* HK Premium 1.0 (17 Nov 2026): the owners' panel look on top of HK Glass. Loaded LAST; adds no markup of its own.
   Harsh, 17 Nov, on his iPad: "UI cluttered lag raha hai ... premium, strong, futuristic ... 3D glass ... buttons bahut achhe".
   Rules: fewer words (a light, a ring, a tile, a chip say it); real depth (a face, a lip, a shadow that reads as height);
   dark with gold, calm; every target 48 px or more; blur only on the two bars; no layout change while the page paints.
   Without hk-stage.js this file still gives the themed list. Every class of ours starts hkp-, every token --hkp-. */

/* ───────── 1. Tokens ───────── */
:root{
  --hkp-money:#c8503f; --hkp-problem:#d9861f; --hkp-ready:#2f8a57; --hkp-ask:#2f6fb0; --hkp-look:#8d7c5c;
  --hkp-glass:linear-gradient(168deg,rgba(255,255,255,.92),rgba(255,253,248,.78));
  --hkp-glass-edge:inset 0 1.5px 0 rgba(255,255,255,.95),inset 0 0 0 1px rgba(92,70,36,.12),inset 0 -1px 0 rgba(92,70,36,.10);
  --hkp-lift:0 30px 50px -34px rgba(74,52,18,.55),0 10px 18px -14px rgba(74,52,18,.35);
  --hkp-hero:linear-gradient(180deg,#fffdf8,#f6efe2);
  --hkp-well:linear-gradient(180deg,rgba(60,44,20,.10),rgba(60,44,20,.05));
  --hkp-well-edge:inset 0 2px 4px rgba(60,44,20,.16),inset 0 0 0 1px rgba(92,70,36,.10);
  --hkp-key:linear-gradient(180deg,#ffffff,#f3ede1);
  --hkp-key-edge:inset 0 1px 0 #fff,inset 0 0 0 1px rgba(92,70,36,.14),inset 0 -2px 0 rgba(92,70,36,.12),0 2px 0 rgba(92,70,36,.22),0 12px 18px -12px rgba(74,52,18,.5);
  --hkp-gold-face:linear-gradient(180deg,#fdf0d2 0%,#e6c78d 46%,#bd9254 100%);
  --hkp-gold-edge:inset 0 1px 0 rgba(255,255,255,.85),inset 0 -3px 0 rgba(118,82,28,.5),0 3px 0 #7a5826,0 16px 26px -12px rgba(190,146,74,.7);
  --hkp-gold-edge-down:inset 0 1px 0 rgba(255,255,255,.6),inset 0 -1px 0 rgba(118,82,28,.5),0 1px 0 #7a5826,0 6px 12px -8px rgba(190,146,74,.6);
  --hkp-bar:rgba(250,247,241,.82);
  --hkp-r:28px;
}
:root[data-theme="dark"]{
  --hkg-ground:#090806; --hkg-ground-2:#16130f; --hkg-sheet:#17140f;
  --hkg-lights:radial-gradient(760px 520px at 86% -6%,rgba(220,185,119,.20),transparent 62%),radial-gradient(700px 560px at -10% 104%,rgba(170,120,60,.16),transparent 62%);
  --hkg-text:#f5eddd; --hkg-text-2:#bdb09a; --hkg-text-3:#978b77;
  --hkp-money:#ff6f5b; --hkp-problem:#ffab3d; --hkp-ready:#5fd08f; --hkp-ask:#7db7ee; --hkp-look:#cdb88f;
  --hkp-glass:linear-gradient(168deg,rgba(255,244,220,.13),rgba(255,255,255,.03) 34%,rgba(255,255,255,.02) 70%,rgba(255,236,200,.06));
  --hkp-glass-edge:inset 0 1.5px 0 rgba(255,246,225,.34),inset 0 0 0 1px rgba(255,240,210,.09),inset 0 -1px 0 rgba(0,0,0,.5);
  --hkp-lift:0 34px 60px -34px rgba(0,0,0,.95),0 12px 22px -14px rgba(0,0,0,.7);
  --hkp-hero:linear-gradient(115deg,rgba(255,246,222,.10) 0%,rgba(255,255,255,0) 30%),linear-gradient(180deg,#352e24,#17140f);
  --hkp-well:linear-gradient(180deg,rgba(0,0,0,.55),rgba(0,0,0,.28));
  --hkp-well-edge:inset 0 2px 5px rgba(0,0,0,.75),inset 0 0 0 1px rgba(255,255,255,.05),0 1px 0 rgba(255,255,255,.07);
  --hkp-key:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.05));
  --hkp-key-edge:inset 0 1px 0 rgba(255,255,255,.28),inset 0 0 0 1px rgba(255,255,255,.08),inset 0 -2px 0 rgba(0,0,0,.4),0 3px 0 rgba(0,0,0,.55),0 14px 22px -12px rgba(0,0,0,.9);
  --hkp-gold-edge:inset 0 1px 0 rgba(255,255,255,.85),inset 0 -3px 0 rgba(118,82,28,.55),0 3px 0 #6f4f1f,0 16px 28px -10px rgba(214,170,96,.55);
  --hkp-gold-edge-down:inset 0 1px 0 rgba(255,255,255,.6),inset 0 -1px 0 rgba(118,82,28,.55),0 1px 0 #6f4f1f,0 6px 12px -8px rgba(214,170,96,.5);
  --hkp-bar:rgba(12,10,8,.66);
}
:root[data-theme="dark"] body{background:#090806}
:root[data-theme="dark"] body::before{background:var(--hkg-lights)}

/* ───────── 2. Top bar and its tabs ───────── */
.hkg .bar{background:var(--hkp-bar);-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3);box-shadow:inset 0 -1px 0 var(--hkg-line)}
.hkg .bar .tabs{gap:4px;padding:5px;border-radius:20px;background:var(--hkp-well);box-shadow:var(--hkp-well-edge)}
.hkg .bar .tabs a{min-height:48px;padding:0 13px;border-radius:15px;color:var(--hkg-text-3);transition:transform .11s}
.hkg .bar .tabs a.on{color:var(--hkg-text);background:var(--hkp-key);box-shadow:var(--hkp-key-edge)}
.hkg .bar .tabs a:active{transform:translateY(1px)}
.hkg .bar .brand{min-width:48px;min-height:48px;justify-content:center}
.hkg .hkg-rail .a2-x{width:48px;height:48px}
.hkg .bar .gear{width:48px;height:48px;border-radius:50%;background:var(--hkp-key);box-shadow:var(--hkp-key-edge)}
/* "Synced" is a light, not a word; anything else (Syncing, an error) keeps its words */
.hkg .bar .bar-stat.ok:not(.is-down) .txt{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.hkg .bar .bar-stat.ok:not(.is-down) .dot{width:10px;height:10px;box-shadow:0 0 0 3px var(--hkg-ok-bg),0 0 12px var(--hkg-ok-fill)}

/* ───────── 3. Buttons: a face, a lip, height; pressed = down 2 px ───────── */
.hkg .hkg-btn{transition:transform .11s,box-shadow .11s}
.hkg .hkg-btn--primary{background:var(--hkp-gold-face);box-shadow:var(--hkp-gold-edge);color:#1c1408}
.hkg .hkg-btn--primary:active:not(:disabled){transform:translateY(2px);box-shadow:var(--hkp-gold-edge-down)}
.hkg .q-acts>.q-soft,.hkg .q-acts>.q-voice{background:var(--hkp-key);box-shadow:var(--hkp-key-edge);color:var(--hkg-text);border:0}
.hkg .q-acts>.q-soft:active:not(:disabled),.hkg .q-acts>.q-voice:active:not(:disabled){transform:translateY(2px)}
.hkg .q-acts>.hkg-btn{min-height:48px;border-radius:18px}
.hkg .q-acts--2>.hkg-btn{min-height:48px}
.hkg .q-acts>.q-big{min-height:60px;border-radius:20px}

/* ───────── 4. The three tabs under the bar: one switch ───────── */
.hkg .hkg-peek.a2-tabs{gap:4px;padding:8px 16px;background:var(--hkg-ground);box-shadow:none}
.hkg .a2-tabs>button{min-height:48px;border-radius:16px;background:none;color:var(--hkg-text-3);box-shadow:none}
.hkg .a2-tabs>button>b{font:800 16px/1 var(--hkg-sans);color:var(--hkg-gold-ink)}
.hkg .a2-tabs>button[aria-selected="true"]{background:var(--hkp-key);box-shadow:var(--hkp-key-edge);color:var(--hkg-text)}

/* ───────── 5. A card (list, rail, sheet): glass with an urgency light on its top edge ───────── */
.hkg .q-card{--c:var(--hkp-look);position:relative;border-radius:var(--hkp-r);padding:18px 18px 16px;background:var(--hkp-glass);box-shadow:var(--hkp-glass-edge),var(--hkp-lift)}
.hkg .q-card.q-money{--c:var(--hkp-money)} .hkg .q-card.q-prob{--c:var(--hkp-problem)} .hkg .q-card.q-ready{--c:var(--hkp-ready)} .hkg .q-card.q-ask{--c:var(--hkp-ask)}
.hkg .q-card::after{content:"";position:absolute;left:26px;right:26px;top:0;height:3px;border-radius:3px;background:var(--c);box-shadow:0 0 18px 2px var(--c);pointer-events:none}
.hkg .q-who{gap:12px}
.hkg .q-who>.ava{width:48px;height:48px}
.hkg .q-nm>b{font-size:18px}
.hkg .q-mode{display:inline-flex;align-items:center;height:24px;padding:0 9px;margin-left:6px;border-radius:12px;font:700 11.5px/1 var(--hkg-sans);vertical-align:2px;background:var(--hkg-well);color:var(--hkg-text-2)}
.hkg .q-mode.m-auto{background:var(--hkg-gold-tint);color:var(--hkg-gold-ink)}
.hkg .q-tag{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 13px;border-radius:16px;font-size:13px;color:var(--c);
  background:color-mix(in srgb,var(--c) 12%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 34%,transparent)}
.hkg .q-tag::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--c);box-shadow:0 0 12px 1px var(--c)}
.hkg .q-say{font-size:17.5px;line-height:1.36}
.hkg .q-in{border:0;border-radius:20px;padding:14px 16px;font-size:17px;line-height:1.48;background:var(--hkp-well);box-shadow:var(--hkp-well-edge),0 0 0 1.5px var(--hkg-gold-line)}
.hkg .q-in:focus{outline:0;box-shadow:var(--hkp-well-edge),0 0 0 2px var(--hkg-gold),0 0 26px -4px var(--hkg-gold-glow)}
.hkg .q-draft{border-radius:18px 18px 18px 6px;background:var(--hkg-gold-tint);box-shadow:inset 0 0 0 1px var(--hkg-gold-line)}
.hkg .q-more{min-height:48px}
.hkg .q-more>span{display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:16px;background:var(--hkg-well);box-shadow:inset 0 0 0 1px var(--hkg-line)}
.hkg .q-ok{display:inline-flex;align-items:center;gap:8px}
.hkg .q-ok::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--hkg-ok-fill);box-shadow:0 0 10px var(--hkg-ok-fill)}
.hkg .q-err{padding:10px 14px;border-radius:14px;background:var(--hkg-bad-bg);box-shadow:inset 0 0 0 1px var(--hkg-bad-line)}
.hkg .q-stale{display:inline-flex;align-items:center;gap:8px;margin:2px 6px 8px;padding:0 12px;height:32px;border-radius:16px;background:var(--hkg-well);font:600 13px/1 var(--hkg-sans);color:var(--hkg-text-2)}
.hkg .q-empty{padding:72px 16px}
.hkg .q-empty>b{font-size:44px}
.hkg .q-empty::before{content:"";align-self:center;width:84px;height:84px;margin-bottom:22px;border-radius:50%;
  background:radial-gradient(120% 90% at 50% -12%,rgba(255,244,214,.26),transparent 48%),radial-gradient(circle at 50% 122%,rgba(226,182,104,.42),transparent 56%),radial-gradient(circle at 50% 45%,#2c261c 0%,#15120e 58%,#0a0806 100%);
  box-shadow:0 0 0 2px rgba(220,185,119,.75),0 0 0 14px rgba(220,185,119,.07),0 0 0 30px rgba(220,185,119,.035),0 0 44px -6px rgba(226,186,112,.5)}
.hkg .q-bell{min-height:48px;border:0;background:var(--hkp-key);box-shadow:var(--hkp-key-edge)}

/* ───────── 6. The ask bar (one of the two blurred areas) ───────── */
.hkg .hkg-auto .a2-talk .hkg-ask-dock{background:var(--hkp-bar);-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3);box-shadow:inset 0 1px 0 var(--hkg-line)}
.hkg .hkg-auto .a2-talk .hkg-ask__in{min-height:50px}
.hkg .hkg-auto .a2-talk .hkg-ask{background:var(--hkp-well);box-shadow:var(--hkp-well-edge);border:0}

/* ───────── 7. The Stage (hk-stage.js adds .hkp-stage on #a2home): one client fills the screen ───────── */
.hkg-auto[data-mode="one"].is-home .a2-home.hkp-home{display:flex;flex-direction:column;padding:0 20px 18px}
.hkp-home>*{flex:none}
.hkp-home>.q-h,.hkp-home>.q-sum{display:none}
/* "Updating…" sits UNDER the tiles, so the bell beside the tiles never ends up above them */
.hkp-home>.q-stale{order:0;align-self:center;margin:0 0 12px}
.hkp-stage>#a2homel{display:contents}
.hkp-home .hkp-tiles{order:0}
.hkp-stage>#a2homel>.q-list{order:3}
.hkp-stage .q-list{display:block;flex:none;position:relative;height:var(--hkp-lh,640px)}
.hkp-stage .hkp-rail{order:4}
.hkp-stage>#a2homel>*{order:6}
.hkp-stage>#a2homel>.q-bellrow,.hkp-stage>#a2homel>.q-bell-l,.hkp-stage>#a2homel>.q-guide{order:5}
.hkp-stage>#a2homel>.q-other{order:7;margin-top:18px}
.hkp-stage>#a2homel>.q-donel{order:8}
.hkp-stage .q-list>.q-card{display:none}
.hkp-stage .q-list::before,.hkp-stage .q-list::after{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;border-radius:34px;background:var(--hkp-glass);box-shadow:var(--hkp-glass-edge);transform-origin:50% 100%;pointer-events:none}
.hkp-stage .q-list::before{transform:translateY(22px) scale(.9);opacity:.45}
.hkp-stage .q-list::after{transform:translateY(11px) scale(.95);opacity:.75}
.hkp-stage .q-list.hkp-n1::before,.hkp-stage .q-list.hkp-n1::after,.hkp-stage .q-list.hkp-n2::before{display:none}
.hkp-stage .q-list>.q-card.hkp-focus{display:flex;flex-direction:column;position:absolute;inset:0;z-index:1;width:auto;border-radius:34px;padding:22px 28px 20px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  background:var(--hkp-hero);box-shadow:inset 0 1.5px 0 rgba(255,246,225,.4),inset 0 0 0 1px var(--hkg-line),inset 0 -2px 0 rgba(0,0,0,.25),0 40px 70px -34px rgba(0,0,0,.9),0 0 90px -34px color-mix(in srgb,var(--c) 60%,transparent)}
.hkp-stage .hkp-focus::after{left:34px;right:34px}
.hkp-stage .hkp-focus::before{content:"";position:absolute;left:0;right:0;top:0;height:170px;pointer-events:none;background:radial-gradient(60% 100% at 50% 0,color-mix(in srgb,var(--c) 24%,transparent),transparent 72%)}
.hkp-stage .hkp-focus>*{position:relative;flex:none}
.hkp-stage .hkp-focus .q-who{gap:20px;align-items:center}
.hkp-stage .hkp-focus .q-who>.ava{width:92px;height:92px;font-size:30px;margin:14px}
.hkp-stage .hkp-focus .q-nm>b{font:400 44px/1.04 var(--hkg-serif);letter-spacing:-.3px}
.hkp-stage .hkp-focus .q-nm>small{font-size:14px;margin-top:8px;color:var(--hkg-text-2)}
.hkp-stage .hkp-focus .q-tag{align-self:flex-start;margin-top:14px}
.hkp-stage .hkp-focus .q-item.is-lead{flex:1 0 auto;display:flex;flex-direction:column;margin-top:8px}
.hkp-stage .hkp-focus .q-item.is-lead>.q-say{margin-top:auto;padding-top:22px;font-size:30px;line-height:1.3;font-weight:600;letter-spacing:-.3px}
.hkp-stage .hkp-focus.hkp-xl .q-item.is-lead>.q-say{font-size:42px;line-height:1.18;letter-spacing:-.8px}
.hkp-stage .hkp-focus .q-item.is-lead>.q-note{font-size:15px;margin-top:12px;color:var(--hkg-text-2)}
.hkp-stage .hkp-focus .q-item.is-lead>.q-note[role="status"]{font:400 34px/1.2 var(--hkg-serif);color:var(--hkg-gold-ink);text-align:center;margin-top:18px}
.hkp-stage .hkp-focus .q-item.is-lead>.q-her{font-size:17px}
.hkp-stage .hkp-focus .q-item.is-lead>.q-acts:not(.q-acts--2){margin-top:auto;padding-top:22px}
.hkp-stage .hkp-focus .q-item.is-lead>.q-in{flex:1 1 96px;min-height:96px;font-size:21px;line-height:1.5;padding:18px 20px;resize:none}
.hkp-stage .hkp-focus .q-item.is-lead:has(>.q-in)>.q-say{margin-top:14px;font-size:22px}
.hkp-stage .hkp-focus .q-item.is-lead:has(>.q-in)>.q-acts--send{margin-top:16px;padding-top:0}
.hkp-stage .hkp-focus .q-acts{justify-content:center;gap:12px}
/* the second row: Done at the left thumb, Type at the right thumb, anything new in between */
.hkp-stage .hkp-focus .q-acts--2{justify-content:space-between;margin-top:14px;flex-wrap:wrap;row-gap:12px}
.hkp-stage .hkp-focus .q-acts--2>.hkg-btn{min-height:56px;min-width:108px;padding:0 20px;font-size:16px;border-radius:20px}
.hkp-stage .hkp-focus .q-acts--2>.hkg-btn--plain{min-width:0;padding:0 12px}
.hkp-stage .hkp-focus .q-acts--2>.c-btn{min-width:0;padding:0 16px}
.hkp-stage .hkp-focus .q-acts--2>[data-qa="done"]{order:-2}
.hkp-stage .hkp-focus .q-acts--2>.q-mic--round{order:-1;width:60px;height:60px}
.hkp-stage .hkp-focus .q-acts--2>[data-qa="reply"],.hkp-stage .hkp-focus .q-acts--2>[data-qa="edit"]{order:9}
.hkp-stage .hkp-focus .q-acts>.q-big{min-height:72px;font-size:20px;border-radius:24px;flex:1 1 0}
.hkp-stage .hkp-focus .q-acts>.hkg-btn--primary.q-main:not(.q-mic){min-height:72px;font-size:20px;border-radius:24px}
.hkp-stage .hkp-focus .q-more{margin-top:10px;justify-content:center}
.hkp-stage .hkp-focus .q-more[aria-expanded="false"]>em{display:none}
/* her journey: a ring of 8 steps round her picture (hk-stage.js draws it; the step is the bot's own) */
.hkp-ring{position:absolute;pointer-events:none;transform:rotate(-90deg)}
.hkp-ring circle{fill:none;stroke:var(--hkg-line-2);stroke-linecap:round}
.hkp-ring circle.on{stroke:var(--hkg-gold)}
.hkp-ring circle.now{stroke:var(--hkg-gold-ink);filter:drop-shadow(0 0 3px var(--hkg-gold))}
.hkp-ring circle.now.stuck{stroke:var(--hkp-problem);filter:drop-shadow(0 0 4px var(--hkp-problem))}
.hkp-step{display:inline-flex;align-items:center;gap:7px;margin-left:10px;font:700 13px/1 var(--hkg-sans);color:var(--hkg-text-2)}
/* while he types: the card grows with the page so the field and Send stay above the keyboard */
.hkp-stage.hkp-typing .q-list{height:auto;min-height:0}
.hkp-stage.hkp-typing .q-list>.q-card.hkp-focus{position:relative;inset:auto;overflow:visible}
.hkp-stage.hkp-typing .q-list::before,.hkp-stage.hkp-typing .q-list::after,.hkp-stage.hkp-typing .hkp-rail,.hkp-stage.hkp-typing .hkp-tiles{display:none}
.hkp-stage.hkp-typing .hkp-focus .q-who>.ava{width:56px;height:56px;margin:8px}
.hkp-stage.hkp-typing .hkp-focus .hkp-ring,.hkp-stage.hkp-typing .q-bellrow{display:none}
.hkg-auto[data-mode="one"].is-home .a2-home.hkp-stage.hkp-typing{padding-top:10px}
.hkp-stage.hkp-typing .hkp-focus .q-nm>b{font-size:28px}

/* count tiles: what waits, by kind; a tap jumps to the first of that kind */
.hkp-tiles{display:flex;gap:10px;padding:10px 0 14px;flex:none;align-items:stretch}
.hkp-kinds{flex:1 1 0;min-width:0;display:grid;grid-template-columns:repeat(var(--hkp-n,5),minmax(0,1fr));gap:10px}
.hkp-tile{--c:var(--hkp-look);appearance:none;-webkit-appearance:none;border:0;margin:0;cursor:pointer;text-align:left;position:relative;overflow:hidden;min-height:76px;border-radius:22px;padding:12px 14px;display:flex;flex-direction:column;justify-content:space-between;
  background:var(--hkp-glass);box-shadow:var(--hkp-glass-edge),0 18px 30px -22px rgba(0,0,0,.8);color:var(--hkg-text);font:inherit;transition:transform .11s}
.hkp-tile:active{transform:translateY(2px)}
.hkp-tile::after{content:"";position:absolute;left:14px;right:14px;top:0;height:2px;border-radius:2px;background:var(--c);box-shadow:0 0 14px 1px var(--c)}
.hkp-tile b{font:800 30px/1 var(--hkg-sans);letter-spacing:-1px;font-variant-numeric:tabular-nums}
.hkp-tile span{display:flex;align-items:center;gap:7px;font:700 13px/1 var(--hkg-sans);color:var(--hkg-text-2)}
.hkp-tile span::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--c);box-shadow:0 0 10px 1px var(--c);flex:none}
.hkp-tile.is-on{box-shadow:var(--hkp-glass-edge),0 0 0 1.5px var(--c),0 18px 30px -22px rgba(0,0,0,.8)}
.hkp-tile[data-k="money"]{--c:var(--hkp-money)} .hkp-tile[data-k="problem"]{--c:var(--hkp-problem)} .hkp-tile[data-k="ready"]{--c:var(--hkp-ready)} .hkp-tile[data-k="ask"]{--c:var(--hkp-ask)}

/* the rail of faces: who waits, most urgent first; the one on the stage is raised */
.hkp-rail{display:flex;justify-content:center;gap:10px;padding:30px 0 0;flex:none;overflow-x:auto;scrollbar-width:none}
.hkp-rail::-webkit-scrollbar{display:none}
.hkp-face{--c:var(--hkp-look);appearance:none;-webkit-appearance:none;border:0;margin:0;background:none;cursor:pointer;position:relative;flex:none;width:86px;min-height:92px;padding:8px 0 6px;border-radius:20px;
  display:flex;flex-direction:column;align-items:center;gap:6px;font:700 12.5px/1 var(--hkg-sans);color:var(--hkg-text-3);transition:transform .11s}
.hkp-face:active{transform:translateY(2px)}
.hkp-face .hkp-pic{position:relative;width:60px;height:60px;display:grid;place-items:center}
.hkp-face .hkp-pic>.ava{width:44px!important;height:44px!important;font-size:15px!important;margin:0}
.hkp-face .hkp-ring{inset:0;width:100%;height:100%}
.hkp-face i{position:absolute;top:6px;right:14px;z-index:2;width:13px;height:13px;border-radius:50%;background:var(--c);border:2px solid var(--hkg-ground);box-shadow:0 0 10px 1px var(--c)}
.hkp-face.is-on{color:var(--hkg-text);background:var(--hkp-key);box-shadow:var(--hkp-key-edge)}
.hkp-face[data-k="money"]{--c:var(--hkp-money)} .hkp-face[data-k="problem"]{--c:var(--hkp-problem)} .hkp-face[data-k="ready"]{--c:var(--hkp-ready)} .hkp-face[data-k="ask"]{--c:var(--hkp-ask)}

/* phone alerts off: a bell with a light beside the tiles, not a sentence */
.hkp-home .q-bellrow:has(>.q-bell[data-qpush="on"]:not(.is-bad):only-child){order:0;position:absolute;right:20px;top:10px;margin:0;z-index:3}
.hkp-home .q-bellrow:has(>.q-bell[data-qpush="on"]:not(.is-bad):only-child)>.q-bell{width:76px;height:76px;min-height:0;padding:0;border-radius:22px;justify-content:center;font-size:0;gap:0;position:relative}
.hkp-home .q-bellrow:has(>.q-bell[data-qpush="on"]:not(.is-bad):only-child)>.q-bell svg{width:26px;height:26px}
.hkp-home .q-bellrow:has(>.q-bell[data-qpush="on"]:not(.is-bad):only-child)>.q-bell::after{content:"";position:absolute;top:16px;right:18px;width:10px;height:10px;border-radius:50%;background:var(--hkp-problem);box-shadow:0 0 10px var(--hkp-problem)}
.hkp-home:has(.q-bellrow>.q-bell[data-qpush="on"]:not(.is-bad):only-child) .hkp-tiles{padding-right:86px}

/* ───────── 8. The Bot list: a wall of tiles; the mode is a three-position switch ───────── */
.hkg .amode3{display:grid;grid-template-columns:repeat(3,1fr);gap:0;height:56px;padding:4px;border-radius:19px;background:var(--hkp-well);box-shadow:var(--hkp-well-edge)}
.hkg .amode3__b{min-height:48px;padding:0 6px;border-radius:15px;font:700 14px/1 var(--hkg-sans);color:var(--hkg-text-3);display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;transition:transform .11s}
.hkg .amode3__b::before{content:"";width:17px;height:17px;flex:none;background:currentColor;
  -webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat}
.hkg .amode3__b[data-amode3="off"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 3v8M6.300 7.200a8 8 0 1 0 11.400 0'/%3E%3C/svg%3E")}
.hkg .amode3__b[data-amode3="draft"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-4.500L16.500 4a2.100 2.100 0 0 1 3 3L8 18.500z'/%3E%3C/svg%3E")}
.hkg .amode3__b[data-amode3="auto"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 3 5 13.500h6L10.500 21 19 10h-6z'/%3E%3C/svg%3E")}
.hkg .amode3__b:disabled{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='6' y='11' width='12' height='9' rx='2.500'/%3E%3Cpath d='M8.500 11V8a3.500 3.500 0 0 1 7 0v3'/%3E%3C/svg%3E")}
.hkg .amode3__b.on{color:var(--hkg-text);background:var(--hkp-key);box-shadow:var(--hkp-key-edge)}
.hkg .amode3__b[data-amode3="auto"].on{color:#1c1408;background:var(--hkp-gold-face);box-shadow:inset 0 1px 0 rgba(255,255,255,.85),inset 0 -2px 0 rgba(118,82,28,.5),0 3px 8px rgba(0,0,0,.5),0 0 18px -2px var(--hkg-gold-glow)}
.hkg .amode3__b[data-amode3="off"].on{color:var(--hkg-text-2);background:var(--hkg-well-2);box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
.hkg .amode3__b:active:not(:disabled){transform:translateY(1px)}
/* the filter chips become count tiles; what each mode does is said once, here, not on every row */
.hkg #a2mf .amchips{gap:8px}
.hkg #a2mf .amchip{min-height:56px;border:0;border-radius:18px;padding:0 14px;background:var(--hkp-glass);box-shadow:var(--hkp-glass-edge);font-size:14px}
.hkg #a2mf .amchip b{font:800 22px/1 var(--hkg-sans);letter-spacing:-.5px}
.hkg #a2mf .amchip--svc b{font-size:15px}
.hkg #a2mf .amchip.on,.hkg #a2mf .amchip[aria-pressed="true"]{box-shadow:var(--hkp-glass-edge),0 0 0 1.5px var(--hkg-gold)}
.hkg .hkg-rail--clients .amode-l{display:none}
.hkg .hkg-rail--clients .hkg-search{min-height:52px;border-radius:18px;background:var(--hkp-well);box-shadow:var(--hkp-well-edge);border:0}
@media (min-width:768px){
  .hkg .hkg-auto[data-mode="one"]>.hkg-rail--clients.hkg-sheet{width:min(780px,calc(100vw - 40px));max-width:none}
  .hkg .hkg-auto[data-mode="one"]>.hkg-rail--clients.hkg-sheet #a2mf .amchip:not(.amchip--svc){flex:1 1 0;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;min-height:72px}
  .hkg .hkg-auto[data-mode="one"]>.hkg-rail--clients.hkg-sheet #a2mf .amchip:not(.amchip--svc)::after{font:600 12px/1.2 var(--hkg-sans);color:var(--hkg-text-3)}
  .hkg .hkg-auto[data-mode="one"]>.hkg-rail--clients.hkg-sheet #a2mf .amchip[data-a2mf="auto"]::after{content:"bot replies"}
  .hkg .hkg-auto[data-mode="one"]>.hkg-rail--clients.hkg-sheet #a2mf .amchip[data-a2mf="draft"]::after{content:"bot writes, you send"}
  .hkg .hkg-auto[data-mode="one"]>.hkg-rail--clients.hkg-sheet #a2mf .amchip[data-a2mf="off"]::after{content:"bot silent"}
  .hkg .hkg-auto[data-mode="one"]>.hkg-rail--clients.hkg-sheet #a2list{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-content:start;padding-bottom:24px}
  .hkg .hkg-auto[data-mode="one"]>.hkg-rail--clients.hkg-sheet #a2list>.srow{border:0;border-radius:24px;padding:14px 14px 12px;min-height:0;background:var(--hkp-glass);box-shadow:var(--hkp-glass-edge);contain-intrinsic-size:auto 150px;align-content:start}
  .hkg .hkg-auto[data-mode="one"]>.hkg-rail--clients.hkg-sheet #a2list>.srow .amode3{margin:6px 0 0;flex:1 1 100%}
  .hkg .hkg-auto[data-mode="one"]>.hkg-rail--clients.hkg-sheet #a2list>.srow.is-off{opacity:.78}
  .hkg .hkg-auto[data-mode="one"]>.hkg-rail--clients.hkg-sheet #a2list>:not(.srow){grid-column:1/-1}
  .hkg .hkg-auto[data-mode="one"]>.hkg-rail--clients.hkg-sheet .srow .ava{width:48px;height:48px}
}

/* ───────── 9. Landscape iPad / desktop (three panes): the same glass, the list stays a list ───────── */
.hkg .hkg-rail--need .q-card{padding:16px;border-radius:24px}
.hkg .hkg-rail--need .q-list{gap:14px}

@media (prefers-reduced-motion:reduce){.hkg .hkg-btn,.hkp-tile,.hkp-face,.hkg .amode3__b,.hkg .bar .tabs a{transition:none}
  .hkp-lens-anim,.hkg .q-mic.is-rec::before,.hkg .q-mic.is-rec::after,.hkg .hkg-ask.is-rec .hkg-ask__mic::before,.hkp-stage .hkp-focus .is-lead>.q-acts:has(>.q-mic.q-main.is-rec)::before,.hkp-stage .hkp-focus .is-lead>.q-acts:has(>.q-mic.q-main.is-rec)::after{animation:none!important}}

.hkp-face.hkp-more{justify-content:center;min-width:64px;width:64px}
.hkp-face.hkp-more b{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;font:800 15px/1 var(--hkg-sans);color:var(--hkg-gold-ink);background:var(--hkp-key);box-shadow:var(--hkp-key-edge)}

/* every control a thumb can hit: 48 px or more (the chat's chips and header, the rail's switch, a script card's buttons) */
.hkg .hkg-sug>button,.hkg .tk-hb,.hkg .a2-swap>button,.hkg .q-other button,.hkg .hkg-act button{min-height:48px}
.hkg .tk-hb{min-width:48px}
.hkg .hkg-rail--need .q-who{flex-wrap:wrap}
.hkg .hkg-rail--need .q-who>.q-nm{flex:1 1 120px}
.hkg .hkg-rail--need .q-tag{height:28px;padding:0 10px;font-size:12px}
/* a card that is done or sent, on the stage: the proof in the middle, calm, until the next client takes its place */
.hkp-stage .hkp-focus .q-item.is-lead.is-ok>:last-child{margin-bottom:auto}
.hkp-stage .hkp-focus .q-item.is-lead.is-ok>.q-ok{font-size:17px;margin-top:18px;align-self:flex-start;height:44px;padding:0 16px;border-radius:22px;background:var(--hkg-ok-bg)}
.hkp-stage .hkp-focus .q-item.is-lead.is-ok>.q-draft{font-size:18px;padding:16px 18px}

/* ───────── 10. The mic: a dark glass lens, a hairline of gold light round it, a dial of fine ticks ─────────
   (Harsh, 17 Nov: the gold ball looked "basic ... bekaar"). One look for the stage mic, a card's round mic and the ask bar's.
   The same lens in the light look: it is the one black-glass control on the page. */
.hkg .q-mic--round,.hkg .hkg-auto .a2-talk .hkg-ask__mic,.hkp-stage .hkp-focus .is-lead>.q-acts>.q-mic.q-main{position:relative;border:0;border-radius:50%;color:#f8e7bf;overflow:visible;
  background:radial-gradient(120% 90% at 50% -12%,rgba(255,244,214,.26),transparent 48%),radial-gradient(circle at 50% 122%,rgba(226,182,104,.42),transparent 56%),radial-gradient(circle at 50% 45%,#2c261c 0%,#15120e 58%,#0a0806 100%);
  box-shadow:inset 0 1px 0 rgba(255,246,225,.30),inset 0 0 0 1px rgba(255,236,200,.10),inset 0 -12px 22px rgba(0,0,0,.55),0 18px 34px -14px rgba(0,0,0,.85),0 0 44px -10px rgba(226,186,112,.50);
  transition:transform .11s,box-shadow .2s}
.hkg .q-mic--round svg,.hkg .hkg-auto .a2-talk .hkg-ask__mic svg,.hkp-stage .hkp-focus .is-lead>.q-acts>.q-mic.q-main svg{filter:drop-shadow(0 0 6px rgba(246,214,150,.75))}
/* the hairline: a ring of gold light that is brighter where the light falls */
.hkg .q-mic--round::before,.hkg .hkg-auto .a2-talk .hkg-ask__mic::before,.hkp-stage .hkp-focus .is-lead>.q-acts>.q-mic.q-main::before{content:"";position:absolute;inset:-3px;border-radius:50%;padding:2px;pointer-events:none;
  background:conic-gradient(from 200deg,#fff3d4 0deg,#cfa468 70deg,rgba(207,164,104,.16) 150deg,#8d6a33 205deg,#fff3d4 290deg,#cfa468 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
.hkg .q-mic--round:active:not(:disabled),.hkg .hkg-auto .a2-talk .hkg-ask__mic:active,.hkp-stage .hkp-focus .is-lead>.q-acts>.q-mic.q-main:active:not(:disabled){transform:scale(.96)}
.hkg .q-mic--round{width:60px;height:60px}
.hkg .hkg-auto .a2-talk .hkg-ask.has-text .hkg-ask__mic{background:none;box-shadow:none;color:var(--hkg-text-2)}
.hkg .hkg-auto .a2-talk .hkg-ask.has-text .hkg-ask__mic::before{display:none}
.hkg .hkg-auto .a2-talk .hkg-ask.has-text .hkg-ask__mic svg{filter:none}
/* listening: the hairline turns, the lens lights from inside (no red: red here means money) */
.hkg .q-mic.is-rec,.hkg .hkg-auto .a2-talk .hkg-ask.is-rec .hkg-ask__mic{color:#fff6dc!important;
  background:radial-gradient(120% 90% at 50% -12%,rgba(255,244,214,.30),transparent 48%),radial-gradient(circle at 50% 60%,rgba(240,196,112,.55),transparent 62%),radial-gradient(circle at 50% 45%,#3a2f1e 0%,#1a150e 60%,#0a0806 100%)!important;
  box-shadow:inset 0 1px 0 rgba(255,246,225,.36),inset 0 -12px 22px rgba(0,0,0,.45),0 0 0 8px rgba(226,186,112,.10),0 0 54px 2px rgba(240,200,120,.60)!important}
.hkg .q-mic.is-rec::before,.hkg .hkg-auto .a2-talk .hkg-ask.is-rec .hkg-ask__mic::before{animation:hkp-turn 2.4s linear infinite}
@keyframes hkp-turn{to{transform:rotate(360deg)}}

/* the stage mic: the hero. 112 px lens, the dial round it, its words under it */
.hkp-stage .hkp-focus .is-lead>.q-acts>.q-mic.q-main{flex:none;width:112px;height:112px;min-height:0;padding:0;margin:24px 26px 52px}
.hkp-stage .hkp-focus .is-lead>.q-acts>.q-mic.q-main svg{width:40px;height:40px;stroke-width:1.7}
.hkp-stage .hkp-focus .is-lead>.q-acts>.q-mic.q-main::after{content:"";position:absolute;inset:-24px;border-radius:50%;pointer-events:none;opacity:.75;
  background:repeating-conic-gradient(from 0deg,rgba(232,203,147,.75) 0 .7deg,transparent .7deg 6deg);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 8px),#000 calc(100% - 7px));mask:radial-gradient(farthest-side,transparent calc(100% - 8px),#000 calc(100% - 7px))}
.hkp-stage .hkp-focus .is-lead>.q-acts>.q-mic.q-main.is-rec::after{opacity:1;animation:hkp-dial 1.6s ease-in-out infinite alternate}
@keyframes hkp-dial{from{transform:scale(1) rotate(0deg);opacity:.6}to{transform:scale(1.07) rotate(6deg);opacity:1}}
.hkp-stage .hkp-focus .is-lead>.q-acts>.q-mic.q-main>span:not(.hkg-spin){position:absolute;left:50%;top:100%;transform:translateX(-50%);margin-top:36px;font:800 12.5px/1 var(--hkg-sans);letter-spacing:1.6px;text-transform:uppercase;color:var(--hkg-text-2);white-space:nowrap}
/* while he speaks: fine bars on both sides, fading outward (queue.js may set --q-lvl 0..1 on the button for a true level) */
.hkp-stage .hkp-focus .is-lead>.q-acts:has(>.q-mic.q-main.is-rec)::before,.hkp-stage .hkp-focus .is-lead>.q-acts:has(>.q-mic.q-main.is-rec)::after{content:"";flex:1 1 0;height:56px;margin-bottom:32px;max-width:220px;
  background:linear-gradient(180deg,#fff1cf,#cfa468);transform-origin:50% 50%;animation:hkp-wave 1.1s ease-in-out infinite alternate}
.hkp-stage .hkp-focus .is-lead>.q-acts:has(>.q-mic.q-main.is-rec)::before{-webkit-mask:var(--hkp-wv) center/100% 100% no-repeat,linear-gradient(90deg,transparent,#000 70%);-webkit-mask-composite:source-in;mask:var(--hkp-wv) center/100% 100% no-repeat intersect,linear-gradient(90deg,transparent,#000 70%)}
.hkp-stage .hkp-focus .is-lead>.q-acts:has(>.q-mic.q-main.is-rec)::after{animation-delay:-.45s;-webkit-mask:var(--hkp-wv) center/100% 100% no-repeat,linear-gradient(270deg,transparent,#000 70%);-webkit-mask-composite:source-in;mask:var(--hkp-wv) center/100% 100% no-repeat intersect,linear-gradient(270deg,transparent,#000 70%)}
@keyframes hkp-wave{0%{transform:scaleY(.35)}35%{transform:scaleY(.95)}60%{transform:scaleY(.55)}100%{transform:scaleY(1)}}
:root{--hkp-wv:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 216 56' preserveAspectRatio='none'%3E%3Cpath d='M3 23h3v10h-3zM12 18h3v20h-3zM21 9h3v38h-3zM30 20h3v16h-3zM39 12h3v32h-3zM48 3h3v50h-3zM57 16h3v24h-3zM66 21h3v14h-3zM75 7h3v42h-3zM84 18h3v20h-3zM93 11h3v34h-3zM102 0h3v56h-3zM111 14h3v28h-3zM120 21h3v14h-3zM129 9h3v38h-3zM138 18h3v20h-3zM147 5h3v46h-3zM156 20h3v16h-3zM165 12h3v32h-3zM174 21h3v14h-3zM183 16h3v24h-3zM192 23h3v10h-3zM201 19h3v18h-3zM210 24h3v8h-3z'/%3E%3C/svg%3E")}

/* ───────── 11. Breathing room (Harsh, 17 Nov: "button overlap na kare, text chipke na, space ho") ───────── */
.hkg .q-lab{margin-top:16px;letter-spacing:.08em}
.hkg .q-in{margin-top:10px}
.hkg .q-acts{gap:12px;margin-top:16px}
.hkg .q-acts--2{margin-top:12px}
.hkg .q-acts>.hkg-btn{padding:0 20px}
.hkg .q-note{margin-top:8px;line-height:1.45}
.hkg .q-nm>small{margin-top:3px}
.hkg .q-who{gap:14px}
.hkg .q-item{margin-top:14px}
.hkg .q-list{gap:16px}
.hkp-stage .hkp-focus .q-item.is-lead>.q-lab{margin-top:22px}
.hkp-stage .hkp-focus .q-acts--2{margin-top:18px;gap:14px}
.hkp-stage .hkp-focus .q-acts--send{gap:14px}
.hkp-stage .hkp-focus .q-more{margin-top:16px}
.hkg .hkg-rail--clients .srow .hkg-jmini{margin-top:8px;margin-bottom:2px}
.hkg .hkg-rail--clients .srow .sl{margin-top:4px}
.hkg .hkg-rail--clients .srow .who{gap:4px}
.hkg .hkg-auto .a2-talk .hkg-ask{gap:8px;padding:5px 6px 5px 10px}
/* the switch in a narrow place (the Clients rail of the three-pane layout, a phone's sheet): words only, full width, nothing cut */
.hkg .hkg-auto>.hkg-rail--clients:not(.hkg-sheet) .srow .amode3{margin:8px 0 0}
.hkg .hkg-auto>.hkg-rail--clients:not(.hkg-sheet) .amode3__b::before{display:none}
.hkg .hkg-auto>.hkg-rail--clients:not(.hkg-sheet) .amode3__b{font-size:13px;padding:0 2px}
@media (max-width:767px){.hkg .srow .amode3{margin:8px 0 0}.hkg .amode3__b::before{display:none}.hkg .amode3__b{font-size:13.5px;padding:0 2px}}
/* the other things she wrote: a count chip; the one-line preview that ended in dots is gone (it opens on a tap) */
.hkg .q-more[aria-expanded="false"]>em{display:none}
.hkg .q-more[aria-expanded="true"]{justify-content:center}
.hkg .q-more[aria-expanded="true"]>em{flex:none;display:inline-flex;align-items:center;height:36px;padding:0 14px;border-radius:18px;background:var(--hkg-well);box-shadow:inset 0 0 0 1px var(--hkg-line);font-weight:700;color:var(--hkg-gold-ink)}
.hkg .q-item+.q-item{margin-top:16px;padding-top:16px}
.hkp-stage .hkp-focus .q-item:not(.is-lead){margin-top:22px;padding-top:20px}
.hkp-stage .hkp-focus .q-item:not(.is-lead) .q-say{font-size:19px}
/* a short screen (split view, the keyboard up outside a field): the stage card takes its own height and the page scrolls */
.hkp-stage.hkp-flow .q-list{height:auto;min-height:0}
.hkp-stage.hkp-flow .q-list>.q-card.hkp-focus{position:relative;inset:auto;overflow:visible}
.hkp-stage.hkp-flow .q-list::before,.hkp-stage.hkp-flow .q-list::after{display:none}
.hkp-stage.hkp-flow .hkp-rail{padding-top:16px}
.hkp-stage.hkp-flow .hkp-focus .q-item.is-lead>.q-say{margin-top:8px}

/* ───────── 12. Focus or List: a two-position switch beside the tiles (remembered on this device) ───────── */
.hkp-view{flex:none;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:0;padding:4px;border-radius:22px;background:var(--hkp-well);box-shadow:var(--hkp-well-edge)}
.hkp-view button{appearance:none;-webkit-appearance:none;border:0;margin:0;padding:0;background:none;cursor:pointer;width:52px;height:100%;min-height:52px;border-radius:18px;display:grid;place-items:center;color:var(--hkg-text-3);transition:transform .11s}
.hkp-view button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.hkp-view button.on{color:var(--hkg-gold-ink);background:var(--hkp-key);box-shadow:var(--hkp-key-edge)}
.hkp-view button:active{transform:translateY(1px)}
/* List: every client a row; one is open (a tap opens another); a tile filters */
.hkp-list .q-list{gap:12px}
.hkp-list .q-card.hkp-hide{display:none}
.hkp-list .q-card.hkp-shut{padding:14px 18px;cursor:pointer}
.hkp-list .q-card.hkp-shut>.q-more,.hkp-list .q-card.hkp-shut>.q-item:not(.is-lead),.hkp-list .q-card.hkp-shut>.q-item.is-lead>:not(.q-say){display:none}
.hkp-list .q-card.hkp-shut>.q-item.is-lead{margin:6px 0 0 62px}
.hkp-list .q-card.hkp-shut>.q-item.is-lead>.q-say{font-size:16px;font-weight:500;color:var(--hkg-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hkp-list .q-card.hkp-shut::after{top:16px;bottom:16px;left:0;right:auto;width:4px;height:auto;border-radius:0 4px 4px 0}
.hkp-list .q-card:not(.hkp-shut){background:var(--hkp-hero);box-shadow:inset 0 1.5px 0 rgba(255,246,225,.4),inset 0 0 0 1px var(--hkg-line),0 34px 50px -30px rgba(0,0,0,.8),0 0 70px -36px color-mix(in srgb,var(--c) 60%,transparent)}
.hkp-list .q-card:not(.hkp-shut) .q-nm>b{font:400 30px/1.1 var(--hkg-serif)}
.hkp-list .q-card:not(.hkp-shut) .q-item.is-lead>.q-say{font-size:22px;line-height:1.34}
.hkp-list .q-card:not(.hkp-shut) .q-who{cursor:pointer}
.hkp-list .q-acts>.q-mic.q-main{min-height:64px;font-size:18px;border-radius:22px}

/* ───────── 13. The stage's middle: her other open lines as bubbles (the ones behind "+ N more") ───────── */
.hkp-also{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-top:22px}
.hkp-also button{appearance:none;-webkit-appearance:none;border:0;margin:0;cursor:pointer;text-align:left;max-width:92%;min-height:48px;padding:11px 18px;border-radius:22px 22px 22px 8px;
  font:500 17px/1.38 var(--hkg-sans);color:var(--hkg-text);background:var(--hkp-glass);box-shadow:var(--hkp-glass-edge);transition:transform .11s}
.hkp-also button:active{transform:translateY(1px)}
.hkp-also .hkp-rest{min-height:48px;border-radius:24px;font-weight:700;font-size:14.5px;color:var(--hkg-gold-ink)}
.hkp-stage .hkp-focus.hkp-hasalso>.q-more[aria-expanded="false"]{display:none}
.hkp-stage .hkp-focus .q-who{position:relative}
.hkp-stage .hkp-focus .q-who>.hkp-ring{left:0;top:50%;width:120px;height:120px;margin-top:-60px}

/* the rail's lights say the kind, not only the colour */
.hkp-face i{width:18px;height:18px;top:3px;right:10px;display:grid;place-items:center;font:800 11px/1 var(--hkg-sans);font-style:normal;color:#14110d}
.hkp-face i::after{content:""}
.hkp-face[data-k="money"] i::after{content:"\20B9"}
.hkp-face[data-k="problem"] i::after{content:"!"}
.hkp-face[data-k="ask"] i::after{content:"?"}
.hkp-face[data-k="ready"] i::after{content:"\2713"}

/* "Bot replied today" (queue.js): a slim glass line; in Focus it waits under the rail so the first screen is the action */
.hkg .q-botr{border-radius:20px;background:var(--hkp-glass);box-shadow:var(--hkp-glass-edge);margin:0 0 12px}
.hkg .q-botr__h{min-height:48px}

/* what follows the stage starts on the next screen, never as a sliver above the ask bar */
.hkp-stage .hkp-rail{margin-bottom:28px}

/* ───────── 14. Motion, once each, none under reduced motion ───────── */
@media (prefers-reduced-motion:no-preference){
  .hkp-stage .hkp-focus.hkp-enter{animation:hkp-enter .26s var(--hkg-ease) both}
  .hkp-stage .hkp-focus .q-item.hkp-just>.q-draft{animation:hkp-lift .5s var(--hkg-ease) both}
  .hkp-stage .hkp-focus .q-item.hkp-just>.q-ok{animation:hkp-pop .34s var(--hkg-spring) .18s both}
}
@keyframes hkp-enter{from{opacity:0;transform:translateX(26px) scale(.985)}to{opacity:1;transform:none}}
@keyframes hkp-lift{0%{transform:translateY(18px) scale(1.02);box-shadow:0 30px 40px -20px rgba(0,0,0,.8)}100%{transform:none}}
@keyframes hkp-pop{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:none}}

/* ───────── 15. The other tabs (Clients, Overview, Uploads, Ads, History, Settings, a client's sheet, the login) ─────────
   The same glass without the blur (the old .glass blurred every card: 24 blurred layers on Ads alone), the same keys and
   wells, 48 px floors. Layout untouched. */
:root{--hkp-solid:#fffdf9}
:root[data-theme="dark"]{--hkp-solid:#1a1611}
.hkg .glass{background:var(--hkp-glass),var(--hkp-solid);-webkit-backdrop-filter:none;backdrop-filter:none}
:root[data-theme="dark"] .hkg .glass{box-shadow:var(--hkp-glass-edge),0 24px 40px -30px rgba(0,0,0,.9)}
.hkg .btn{transition:transform .11s,box-shadow .11s}
.hkg .btn.primary{color:#1c1408;background:var(--hkp-gold-face);box-shadow:var(--hkp-gold-edge)}
.hkg .btn.primary:active{transform:translateY(2px);box-shadow:var(--hkp-gold-edge-down)}
.hkg .btn.ghost{background:var(--hkp-key);box-shadow:var(--hkp-key-edge)}
.hkg .btn.ghost:active{transform:translateY(2px)}
.hkg .btn.small,.hkg .lockbtns .btn{min-height:48px}
.hkg .seg{gap:0;padding:4px;border-radius:18px;background:var(--hkp-well);box-shadow:var(--hkp-well-edge)}
.hkg .seg button{min-height:48px;min-width:48px;border-radius:14px}
.hkg .seg button.on{color:var(--hkg-text);background:var(--hkp-key);box-shadow:var(--hkp-key-edge)}
.hkg .seg button.on b{color:var(--hkg-gold-ink)}
.hkg .chip-btn{min-height:48px;padding:0 16px;background:var(--hkp-glass);box-shadow:var(--hkp-glass-edge)}
.hkg .chip-btn.on{color:var(--hkg-text);background:var(--hkp-key);box-shadow:var(--hkp-key-edge),0 0 0 1.5px var(--hkg-gold-line)}
.hkg .search.glass,.hkg label.search{background:var(--hkp-well);box-shadow:var(--hkp-well-edge);border-radius:18px}
.hkg .search input{min-height:48px}
.hkg .sort select,.hkg main select{min-height:48px}
.hkg main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]){min-height:48px}
.hkg .btn{min-height:48px}
.hkg .x,.hkg [data-act="close"]{min-width:48px;min-height:48px}
.hkg input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),.hkg select{min-height:48px}

/* ───────── 16. Undo send (queue.js): the message waits, lifted and lit, until it goes or comes back ───────── */
.hkg .q-undo{min-height:60px;padding:6px 6px 6px 20px;border-radius:30px;background:var(--hkp-well);box-shadow:var(--hkp-well-edge),0 0 0 1.5px var(--hkg-gold-line)}
.hkg .q-undo__b,.hkg .q-undobar__b{min-height:48px;background:var(--hkp-gold-face);box-shadow:var(--hkp-gold-edge);color:#1c1408}
.hkg .q-item:has(>.q-undo)>.q-in{margin-top:14px;box-shadow:var(--hkp-well-edge),0 0 0 2px var(--hkg-gold),0 18px 30px -14px rgba(0,0,0,.8),0 0 34px -6px var(--hkg-gold-glow)}
.hkp-stage .hkp-focus .q-item.is-lead>.q-undo{margin-top:16px}
/* while he types, or on a short screen, the field keeps the height of its words (the card is as tall as it needs) */
.hkp-stage.hkp-typing .hkp-focus .q-item.is-lead>.q-in,.hkp-stage.hkp-flow .hkp-focus .q-item.is-lead>.q-in{flex:0 0 auto}

/* ───────── 17. The gear menu: above the tabs strip (it was painted under it on Auto), every row a full row ───────── */
.hkg .bar{z-index:30}
.hkg .bar-pop{padding:8px;border-radius:22px;background:var(--hkp-glass),var(--hkp-solid);box-shadow:var(--hkp-glass-edge),0 30px 50px -20px rgba(0,0,0,.85)}
.hkg .bar-pop>*{min-height:52px;border-radius:14px}
.hkg .bar-pop>.sync-pill{width:auto;padding:6px 10px;justify-content:start;font-size:inherit;color:inherit;box-shadow:none;background:none}

/* ───────── 18. Tonight's new pieces (queue.js): Later, the snoozed list, the status sheet, alert settings, the home lines ───────── */
.hkg .q-later{gap:10px}
.hkg .q-later>.hkg-btn,.hkg .q-later>button{min-height:48px;min-width:48px}
.hkg .q-snz ul{gap:10px}
.hkg .q-snz li{min-height:48px;padding:6px 14px;border-radius:16px;background:var(--hkp-glass);box-shadow:var(--hkp-glass-edge)}
.hkg .q-st-card{border-radius:28px;background:var(--hkp-glass),var(--hkp-solid);box-shadow:var(--hkp-glass-edge),0 40px 70px -30px rgba(0,0,0,.9)}
.hkg .q-st-x{min-width:48px;min-height:48px;display:grid;place-items:center;padding:0;border-radius:50%;background:var(--hkp-key);box-shadow:var(--hkp-key-edge)}
.hkg .q-st-dot.is-ok{box-shadow:0 0 10px var(--hkg-ok-fill)}
.hkg .q-prefs .amchip{min-height:48px;border:0;border-radius:16px;background:var(--hkp-glass);box-shadow:var(--hkp-glass-edge)}
.hkg .q-prefs .amchip.on,.hkg .q-prefs .amchip[aria-pressed="true"]{box-shadow:var(--hkp-glass-edge),0 0 0 1.5px var(--hkg-gold)}
.hkg select.q-pref-sel{min-height:48px}
.hkg .q-botr__row{padding:12px 16px}
.hkg .q-ren{gap:8px}
.hkg .q-ren a{min-height:48px;display:flex;align-items:center;padding:8px 14px;border-radius:14px}
.hkg .q-bell-t{min-height:48px}
/* Hiku's orb floats at the bottom right, just above the ask bar: the rail keeps that corner free */
:root:has(#hiku) .hkp-stage .hkp-rail{padding-right:128px;padding-left:16px}

/* ───────── 19. Focus view: the home lines (Bot replied today, Renewals, Fund low) stay one tap away ─────────
   A slim strip of chips under the tiles; a tap opens that list as a full row under the strip. "Updating…" joins the strip.
   The stage is a wrapping row: every block takes a whole row except the chips. (The manager, 17 Nov, after go-live.) */
.hkg-auto[data-mode="one"].is-home .a2-home.hkp-stage{flex-direction:row;flex-wrap:wrap;align-content:flex-start;column-gap:10px}
.hkp-stage>*,.hkp-stage>#a2homel>*{flex:0 0 100%;min-width:0}
.hkp-stage>.q-botr{order:1;flex:1 1 0;margin:0 0 12px;border-radius:20px}
.hkp-stage>.q-botr.is-open{order:2;flex:0 0 100%}
.hkp-stage>.q-botr:not(.is-open)>.q-botr__h{min-height:48px;padding:0 14px;gap:8px;font-size:13.5px;white-space:nowrap}
.hkp-stage>.q-botr:not(.is-open)>.q-botr__h>span{overflow:hidden;text-overflow:ellipsis}
.hkp-stage>.q-botr>.q-botr__h>b{font:800 16px/1 var(--hkg-sans)}
.hkp-stage>.q-stale{order:1;flex:0 0 auto;align-self:flex-start;height:48px;margin:0 0 12px}
.hkp-stage>.q-botr.is-open>.q-botr__list{max-height:46vh;overflow-y:auto;overscroll-behavior:contain}

/* the light beside the gear: green alone when all is well; anything else keeps its word, in the light's colour */
.hkg .bar .bar-stat.is-warn .txt{color:var(--hkg-warn)}
.hkg .bar .bar-stat.is-down .txt{color:var(--hkg-bad)}
/* a locked position on the mode switch: the reason is on the row, not only behind a tap */
.hkg .hkg-rail--clients .srow:has(.amode3__b:disabled) .amode-l{display:block;margin-top:6px}
/* writing to her: the message gets the room. The header tightens and the "+ N more" chip steps aside until it is sent */
.hkp-stage:not(.hkp-typing) .hkp-focus:has(>.is-lead>.q-in)>.q-more[aria-expanded="false"]{display:none}
.hkp-stage:not(.hkp-typing) .hkp-focus:has(>.is-lead>.q-in) .q-who>.ava{width:64px;height:64px;font-size:22px;margin:10px}
.hkp-stage:not(.hkp-typing) .hkp-focus:has(>.is-lead>.q-in) .q-who>.hkp-ring{width:84px;height:84px;margin-top:-42px}
.hkp-stage:not(.hkp-typing) .hkp-focus:has(>.is-lead>.q-in) .q-nm>b{font-size:34px}
/* choosing "Later": the choices need the row; the "+ N more" chip steps aside until he has chosen */
.hkp-stage:not(.hkp-typing) .hkp-focus:has(.is-lead .q-later)>.q-more[aria-expanded="false"]{display:none}

/* ───────── 20. Smaller iPads ─────────
   The top bar never pushes the gear off the screen: tighter tabs under 830 px, icons for the other tabs under 790 px, and
   if a long status word still needs room the tabs scroll sideways instead of the page. */
.hkg .bar{min-width:0}
.hkg .bar .tabs{flex:0 1 auto;min-width:0;overflow-x:auto;scrollbar-width:none}
.hkg .bar .tabs::-webkit-scrollbar{display:none}
.hkg .bar .tabs a{flex:none}
.hkg .bar .bar-right{flex:none}
@media (max-width:830px){.hkg .bar{gap:8px}.hkg .bar .tabs a{padding:0 10px}}
@media (max-width:790px){.hkg .bar .tabs a:not(.on) span{display:none}.hkg .bar .tabs a:not(.on){min-width:48px;justify-content:center;padding:0}}
/* a stage with little room (hk-stage.js marks the card .hkp-tight when its content would not fit): smaller ring and lens */
.hkp-stage .hkp-focus.hkp-tight .q-who>.ava{width:68px;height:68px;font-size:24px;margin:11px}
.hkp-stage .hkp-focus.hkp-tight .q-who>.hkp-ring{width:90px;height:90px;margin-top:-45px}
.hkp-stage .hkp-focus.hkp-tight .q-nm>b{font-size:36px}
.hkp-stage .hkp-focus.hkp-tight .is-lead>.q-acts>.q-mic.q-main{width:92px;height:92px;margin:18px 24px 46px}
.hkp-stage .hkp-focus.hkp-tight .is-lead>.q-acts>.q-mic.q-main svg{width:34px;height:34px}
.hkp-stage .hkp-focus.hkp-tight .is-lead>.q-acts>.q-mic.q-main>span:not(.hkg-spin){margin-top:32px}
.hkp-stage .hkp-focus.hkp-tight .q-item.is-lead>.q-say{padding-top:12px}
.hkp-stage .hkp-focus.hkp-tight.hkp-xl .q-item.is-lead>.q-say{font-size:34px}
.hkp-stage .hkp-focus.hkp-tight>.q-more{margin-top:8px}
.hkp-stage .q-list>.q-card.hkp-focus.hkp-tight{padding-top:16px;padding-bottom:14px}
.hkp-stage .hkp-focus.hkp-tight .q-acts>.q-big,.hkp-stage .hkp-focus.hkp-tight .q-acts>.hkg-btn--primary.q-main:not(.q-mic){min-height:64px}
.hkp-stage .hkp-focus.hkp-tight .q-acts--2>.hkg-btn{min-height:52px}
.hkp-stage .hkp-focus.hkp-tight .q-acts--2{margin-top:12px;row-gap:8px}

/* ───────── 21. The morning card (hk-stage.js): once a day, what waits, in the page's own numbers ───────── */
.hkp-morn{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:20px;background:rgba(5,4,3,.66)}
:root[data-theme="light"] .hkp-morn{background:rgba(40,30,15,.42)}
.hkp-morn__card{width:min(560px,100%);max-height:calc(100dvh - 40px);overflow-y:auto;border-radius:34px;padding:30px 28px 26px;background:var(--hkp-hero);
  box-shadow:inset 0 1.5px 0 rgba(255,246,225,.4),inset 0 0 0 1px var(--hkg-line),0 50px 90px -30px rgba(0,0,0,.9),0 0 110px -30px var(--hkg-gold-glow)}
.hkp-morn__d{font:700 13px/1 var(--hkg-sans);letter-spacing:.1em;text-transform:uppercase;color:var(--hkg-text-3)}
.hkp-morn__h{margin-top:12px;font:400 46px/1.04 var(--hkg-serif);letter-spacing:-.3px;color:var(--hkg-text)}
.hkp-morn__h i{color:var(--hkg-gold-ink)}
.hkp-morn__n{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:26px}
.hkp-morn__t{appearance:none;-webkit-appearance:none;border:0;margin:0;cursor:pointer;text-align:left;min-height:104px;border-radius:24px;padding:16px 18px;display:flex;flex-direction:column;justify-content:space-between;gap:10px;
  background:var(--hkp-glass);box-shadow:var(--hkp-glass-edge);color:var(--hkg-text);font:inherit;transition:transform .11s}
.hkp-morn__t:active{transform:translateY(2px)}
.hkp-morn__t b{font:800 40px/1 var(--hkg-sans);letter-spacing:-1.5px;font-variant-numeric:tabular-nums}
.hkp-morn__t span{font:600 14px/1.3 var(--hkg-sans);color:var(--hkg-text-2)}
.hkp-morn__t.is-main{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:flex-start;gap:18px;min-height:96px;box-shadow:var(--hkp-glass-edge),0 0 0 1.5px var(--hkg-gold-line)}
.hkp-morn__t.is-main b{font-size:60px;color:var(--hkg-gold-ink)}
.hkp-morn__t.is-main span{font-size:19px;color:var(--hkg-text)}
.hkp-morn__go{width:100%;min-height:64px;margin-top:22px;border-radius:22px;font-size:19px}
@media (prefers-reduced-motion:no-preference){.hkp-morn__card{animation:hkp-rise .34s var(--hkg-ease) both}.hkp-morn{animation:hkp-fade .2s ease both}}
@keyframes hkp-rise{from{opacity:0;transform:translateY(22px) scale(.97)}to{opacity:1;transform:none}}
@keyframes hkp-fade{from{opacity:0}to{opacity:1}}
/* her welcome's time (app.js): the same keys, 48 px */
.hkg .astart-acts .hkg-btn{min-height:48px}
.hkg .astart-box{border-radius:22px}
