/* HK Glass addition: Talk, the AI the owner speaks to inside Auto (15 Nov 2026). Load after hk-glass.css.
   The feel of a chat app: one centred column, his words in a soft bubble on the right, the AI's as plain text on the ground,
   one roomy composer at the bottom with the mic as its main button. The colours, type and motion are HK Glass.
   Rule T1. The AI's words have no bubble and no card: plain text, the full column, 16.5 px. Only HIS words sit in a bubble.
   Rule T2. What the AI is doing is one small quiet line (a spinner, then a tick). Never a bubble, never more than one line each.
   Rule T3. Words that go to a client are shown in full in an action card with ONE gold "Send". Nothing leaves before that tap.
            Everything else the AI did is a done line, not a card.
   Rule T4. The mic is the gold button while the field is empty; once there are words, Send is the gold one. One gold button at a time.
   Rule T5. While he speaks, his words appear in the field as he says them. Send (gold as soon as there are words) stops and sends;
            the red button only stops, so he can change the words first. The mic by itself never sends. */
.hkg-talk{display:flex;flex-direction:column;min-width:0;min-height:calc(100dvh - var(--hkg-bar-h,60px));padding-bottom:var(--hkg-dock-h)}   /* fills the height under the top bar (set --hkg-bar-h to the bar's real height); clear of the phone's dock */
.hkg-talk__col{width:100%;max-width:760px;margin:0 auto;padding-left:var(--hkg-s4);padding-right:var(--hkg-s4)}
.hkg-talk__thread{flex:1;display:flex;flex-direction:column;gap:22px;padding-top:var(--hkg-s5);padding-bottom:var(--hkg-s5)}
.hkg-talk__thread.is-empty{justify-content:center;align-items:center;text-align:center;gap:var(--hkg-s4)}
.hkg-talk__day{align-self:center;font:700 12px/1 var(--hkg-sans);letter-spacing:.04em;color:var(--hkg-text-3)}
/* his words */
.hkg-say{align-self:flex-end;max-width:82%;padding:10px 16px;border-radius:20px 20px 6px 20px;background:var(--hkg-well-2);font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.hkg-say__spoken{display:flex;align-items:center;gap:5px;margin-bottom:3px;font:700 12px/1.2 var(--hkg-sans);color:var(--hkg-text-2)}
.hkg-say__spoken>svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.hkg-say.is-failed{box-shadow:inset 0 0 0 1px var(--hkg-bad-line);background:var(--hkg-bad-bg)}
/* the AI's turn: a small name, the lines of what it did, its words, then a card if words wait for his Send */
.hkg-turn{display:grid;gap:10px;justify-items:start;min-width:0}
.hkg-who{display:inline-flex;align-items:center;gap:8px;font:700 12.5px/1 var(--hkg-sans);letter-spacing:.02em;color:var(--hkg-gold-ink)}
.hkg-who::before{content:"";width:16px;height:16px;border-radius:5px;background:var(--hkg-gold-grad);transform:rotate(45deg) scale(.8)}
.hkg-ans{font-size:16.5px;line-height:1.62;overflow-wrap:anywhere;max-width:100%}
.hkg-ans>p{margin:0 0 10px}.hkg-ans>p:last-child{margin-bottom:0}
.hkg-ans b{font-weight:700}
.hkg-step{display:flex;align-items:center;gap:9px;min-height:22px;font:600 13.5px/1.35 var(--hkg-sans);color:var(--hkg-text-2)}
.hkg-step::before{content:"";width:13px;height:13px;flex:none;border-radius:50%;border:2px solid var(--hkg-gold);border-right-color:transparent;animation:hkg-spin .7s linear infinite}
.hkg-step.is-done::before{width:9px;height:5px;margin:0 2px 3px;border-radius:0;border:0;border-left:2px solid var(--hkg-ok);border-bottom:2px solid var(--hkg-ok);transform:rotate(-45deg);animation:none}
.hkg-step.is-bad{color:var(--hkg-bad)}
.hkg-step.is-bad::before{content:"!";width:15px;height:15px;border:0;border-radius:50%;display:grid;place-items:center;font:800 11px/1 var(--hkg-sans);color:var(--hkg-surface-solid);background:var(--hkg-bad);animation:none}
/* words that wait for his Send */
.hkg-act{width:100%;max-width:560px;border-radius:var(--hkg-r-l);background:var(--hkg-sheen),var(--hkg-surface);box-shadow:var(--hkg-shadow-1);overflow:hidden}
.hkg-act__h{display:flex;align-items:center;gap:10px;padding:12px 16px 0;font:600 13.5px/1.3 var(--hkg-sans);color:var(--hkg-text-2)}
.hkg-act__h>img{width:32px;height:32px;flex:none;border-radius:50%;object-fit:cover}
.hkg-act__h b{display:block;font:700 15px/1.25 var(--hkg-sans);color:var(--hkg-text)}
.hkg-act__words{margin:10px 16px 0;padding:12px 14px;border-radius:16px 16px 16px 5px;background:var(--hkg-well);font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.hkg-act__foot{display:flex;align-items:center;gap:8px;padding:12px 16px 14px}
.hkg-act__foot>.hkg-btn--primary{flex:1;min-height:48px}
.hkg-act__foot>.hkg-step{flex:1}
.hkg-act.is-sent .hkg-act__words{opacity:.75}
/* the composer */
.hkg-ask-dock{position:sticky;bottom:var(--hkg-dock-h);z-index:30;padding-top:20px;padding-bottom:calc(12px + var(--hkg-safe-b,0px));background:linear-gradient(to bottom,transparent,var(--hkg-overlay) 22px)}
.hkg-ask{display:grid;padding:6px;border-radius:26px;background:var(--hkg-surface-solid);box-shadow:inset 0 0 0 1px var(--hkg-line-2),var(--hkg-shadow-1)}
.hkg-ask:focus-within{box-shadow:inset 0 0 0 2px var(--hkg-gold),var(--hkg-shadow-1)}
.hkg-ask__in,.hkg-ask__live{display:block;width:100%;min-height:46px;max-height:168px;overflow-y:auto;margin:0;padding:12px 12px 4px;border:0;outline:0;resize:none;background:none;font:400 16.5px/1.45 var(--hkg-sans);color:var(--hkg-text)}
.hkg-ask__in::placeholder{color:var(--hkg-text-3)}
.hkg .hkg-ask__in:focus-visible{outline:0}
.hkg-ask__live{display:none}
.hkg-ask__live>i{font-style:normal;color:var(--hkg-text-3)}                  /* the words still being heard */
.hkg-ask__row{display:flex;align-items:center;gap:6px;min-height:48px}
.hkg-ask__gap{flex:1}
.hkg-ask__b{appearance:none;-webkit-appearance:none;border:0;margin:0;padding:0;flex:none;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;cursor:pointer;position:relative;
  color:var(--hkg-text-2);background:none;transition:transform var(--hkg-fast,.12s) var(--hkg-ease,ease)}
.hkg-ask__b:active{transform:scale(.9)}
.hkg-ask__b>svg{width:22px;height:22px}
.hkg-ask__mic,.hkg-ask.has-text .hkg-ask__send{color:var(--hkg-on-gold);background:var(--hkg-gold-grad);box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 8px 16px -10px var(--hkg-gold-glow)}
.hkg-ask.has-text .hkg-ask__mic{color:var(--hkg-text-2);background:none;box-shadow:none}
.hkg-ask__send{color:var(--hkg-text-3);background:var(--hkg-well)}
.hkg-ask__send[disabled]{pointer-events:none}
.hkg-ask__rec{display:none;flex:1;align-items:center;gap:10px;min-width:0;padding-left:10px;font:700 14.5px/1 var(--hkg-sans);font-variant-numeric:tabular-nums;color:var(--hkg-bad)}
.hkg-ask__rec::before{content:"";width:10px;height:10px;flex:none;border-radius:50%;background:var(--hkg-bad-fill);animation:hkg-breathe 1s ease-in-out infinite}
.hkg-ask__rec>.hkg-voice__bars{flex:1;min-width:40px;max-width:260px}
.hkg-ask__rec>span:last-child{font-weight:600;color:var(--hkg-text-2);white-space:nowrap}
.hkg-ask.is-rec .hkg-ask__in{display:none}
.hkg-ask.is-rec .hkg-ask__live{display:block}
.hkg-ask.is-rec .hkg-ask__rec{display:flex}
.hkg-ask.is-rec .hkg-ask__gap,.hkg-ask.is-rec .hkg-ask__add{display:none}
.hkg-ask.is-rec .hkg-ask__mic{color:#fff;background:var(--hkg-bad-fill);box-shadow:none}
.hkg-ask__note{margin:6px 14px 0;font-size:12.5px;color:var(--hkg-text-3);text-align:center}
.hkg-ask__note.is-bad{color:var(--hkg-bad);font-weight:600}
/* the empty screen */
.hkg-hello{font:400 clamp(30px,6vw,42px)/1.1 var(--hkg-serif);margin:0}
.hkg-sug{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:620px}
.hkg-sug>button{appearance:none;-webkit-appearance:none;border:0;margin:0;min-height:44px;padding:0 16px;border-radius:22px;background:var(--hkg-well);font:600 14.5px/1.2 var(--hkg-sans);color:var(--hkg-text);cursor:pointer}
.hkg-sug>button:active{background:var(--hkg-well-2)}
/* back to the newest words, when he has scrolled up while it writes */
.hkg-latest{position:sticky;bottom:calc(var(--hkg-dock-h) + 112px);align-self:center;z-index:31;min-height:44px;padding:0 16px;border:0;border-radius:22px;background:var(--hkg-surface-solid);box-shadow:inset 0 0 0 1px var(--hkg-line-2),var(--hkg-shadow-1);font:700 13.5px/1 var(--hkg-sans);color:var(--hkg-text);cursor:pointer}
@media (min-width:768px){.hkg-talk__col{padding-left:var(--hkg-s6);padding-right:var(--hkg-s6)}.hkg-say{max-width:70%}}
@media (prefers-reduced-motion:reduce){.hkg-step::before,.hkg-ask__rec::before{animation:hkg-breathe 1.6s ease-in-out infinite}}

/* ================= Auto with Talk as its centre (15 Nov 2026, 16:50) =================
   Rule A1. The chat is the centre and is never hidden. "Needs you" and "Clients" stand beside it where there is room
            (three columns from 1200 px), share one side column with a two-way switch from 1024, and are one tap away below that.
   Rule A2. "Needs you" is one calm list: grouped by client, the most pressing first, one line and ONE action for each thing,
            the rest of a client's items folded into "2 more". Nothing is said twice; no red unless something is truly broken.
   Rule A3. Every line carries who said or did it: a small initial and name for Harsh or Tanishka on their words,
            "by Harsh" / "by Tanishka" on a done line.
   Rule A4. A voice note is played before it goes: the card shows who gets it, a play button with its length, and its words.
            A send to many shows the message, the list with its count, and says the count again on the button.
            While it goes out the card shows how many have gone and one "Stop". */
.hkg-auto{display:grid;grid-template-columns:minmax(0,1fr)}
.hkg-rail{display:none;position:sticky;top:var(--hkg-bar-h,60px);align-self:start;height:calc(100dvh - var(--hkg-bar-h,60px));overflow-y:auto;padding:var(--hkg-s4) var(--hkg-s3) var(--hkg-s6)}
.hkg-rail--need{border-right:1px solid var(--hkg-line)}.hkg-rail--clients{border-left:1px solid var(--hkg-line)}
.hkg-rail__h{display:flex;align-items:baseline;gap:8px;padding:6px 8px 10px}
.hkg-rail__h>b{font:400 24px/1.1 var(--hkg-serif);margin-right:auto}
.hkg-rail__h>span{font:600 12.5px/1 var(--hkg-sans);font-variant-numeric:tabular-nums;color:var(--hkg-text-2)}
@media (min-width:1024px){.hkg-auto{grid-template-columns:320px minmax(0,1fr)}.hkg-rail--need{display:block}.hkg-peek{display:none!important}}
@media (min-width:1200px){.hkg-auto{grid-template-columns:320px minmax(0,1fr) 304px}.hkg-rail--clients{display:block}.hkg-rail__swap{display:none!important}}
/* below 1024: a slim strip under the bar with two count buttons; each opens its list as a sheet. First child of .hkg-talk, solid, so no words show through */
.hkg-peek{position:sticky;top:var(--hkg-bar-h,60px);z-index:20;display:flex;justify-content:center;gap:8px;padding:6px var(--hkg-s4);background:var(--hkg-sheet);box-shadow:0 1px 0 var(--hkg-line)}
.hkg-peek>button{appearance:none;-webkit-appearance:none;border:0;margin:0;flex:0 1 190px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 14px;border-radius:22px;background:var(--hkg-well);font:700 14px/1 var(--hkg-sans);color:var(--hkg-text);cursor:pointer}
.hkg-peek>button>b{font:400 20px/1 var(--hkg-serif);font-variant-numeric:tabular-nums;color:var(--hkg-gold-ink)}
/* "Needs you": one group for each client */
.hkg-need{display:grid;gap:2px;padding:8px;border-radius:16px}
.hkg-need+.hkg-need{margin-top:6px}
.hkg-need.is-sel{background:var(--hkg-well-2)}                                   /* the one the chat is about */
.hkg-need__who{display:flex;align-items:center;gap:10px;min-width:0}
.hkg-need__who>.hkg-av{width:34px;height:34px;font-size:13px}
.hkg-need__who>b{font:700 15px/1.25 var(--hkg-sans);min-width:0;overflow-wrap:anywhere}
.hkg-need__i{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;min-height:44px;padding-left:44px}
.hkg-need__i>span{font:500 13.5px/1.35 var(--hkg-sans);color:var(--hkg-text-2)}
.hkg-need__i>.hkg-btn{min-height:44px;padding:0 10px;font-size:14px}
.hkg-need__more{justify-self:start;margin-left:34px;min-height:44px;padding:0 10px;border:0;background:none;font:600 13px/1 var(--hkg-sans);color:var(--hkg-text-2);cursor:pointer}
/* "Clients": the rows the Auto tab already has (hkg-row), a little tighter for the side column */
.hkg-rail .hkg-row{min-height:64px;padding:8px;gap:10px}
.hkg-rail .hkg-row .hkg-av{width:38px;height:38px;font-size:14px}
.hkg-rail .hkg-row__t{font-size:15px;white-space:normal;overflow-wrap:anywhere}.hkg-rail .hkg-row__s{font-size:13px}
.hkg-rail .hkg-row.is-off .hkg-row__t{color:var(--hkg-text-2)}
/* who said it */
.hkg-by{align-self:flex-end;display:inline-flex;align-items:center;gap:6px;margin-bottom:-12px;font:600 12.5px/1 var(--hkg-sans);color:var(--hkg-text-2)}
.hkg-by>i{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font:800 12px/1 var(--hkg-sans);font-style:normal;color:var(--hkg-on-gold);background:var(--hkg-gold-grad)}
.hkg-by--t>i{color:var(--hkg-surface-solid);background:var(--hkg-text)}                         /* Harsh: gold. Tanishka: ink. A letter and a name, never colour alone */
.hkg-by>svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
/* a voice note in an action card: play it before it goes */
.hkg-act__h>span>small{display:block;font:600 13px/1.3 var(--hkg-sans);color:var(--hkg-text-2)}
.hkg-act__play{display:flex;align-items:center;gap:12px;margin:10px 16px 0;padding:8px 14px 8px 8px;border-radius:26px;background:var(--hkg-well)}
.hkg-act__play>button{appearance:none;-webkit-appearance:none;border:0;margin:0;padding:0;flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:var(--hkg-on-gold);background:var(--hkg-gold-grad);cursor:pointer}
.hkg-act__play>button>svg{width:20px;height:20px}
.hkg-act__play>.hkg-voice__bars{flex:1;min-width:60px}
.hkg-act__play>span:last-child{font:700 13px/1 var(--hkg-sans);font-variant-numeric:tabular-nums;color:var(--hkg-text-2)}
.hkg-act__said{margin:8px 16px 0;padding:0 6px;font-size:15px;line-height:1.5;color:var(--hkg-text-2);overflow-wrap:anywhere}   /* the note's words, under the player */
/* a send to many: the list with its count */
.hkg-act__list{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:10px 16px 0;min-height:44px}
.hkg-act__faces{display:flex;flex:none;padding-left:8px}
.hkg-act__faces>*{width:30px;height:30px;margin-left:-8px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px var(--hkg-surface-solid)}
.hkg-act__names{flex:1 1 150px;min-width:0;font:500 13.5px/1.35 var(--hkg-sans);color:var(--hkg-text-2)}
.hkg-act__names>b{color:var(--hkg-text);font-weight:700}
.hkg-act__list>.hkg-btn{min-height:44px;padding:0 10px;font-size:14px;white-space:nowrap}
.hkg-act__pace{margin:0;padding:0 16px 14px;font:500 12.5px/1.4 var(--hkg-sans);color:var(--hkg-text-3)}
.hkg-act__foot+.hkg-act__pace{margin-top:-6px}
.hkg-act__prog{flex:1;display:grid;gap:7px;min-width:0;font:700 13.5px/1.2 var(--hkg-sans);font-variant-numeric:tabular-nums}
.hkg-act__prog>i{display:block;height:6px;border-radius:3px;background:linear-gradient(90deg,var(--hkg-gold) calc(var(--p,0) * 100%),var(--hkg-line-2) 0)}
.hkg-btn--stop{--ink:var(--hkg-bad);color:var(--hkg-bad);background:var(--hkg-bad-bg);box-shadow:none;min-height:48px;font-weight:700}
/* what the chat is about, on top of the composer */
.hkg-about{display:inline-flex;align-items:center;gap:6px;min-width:0;min-height:30px;padding:0 4px 0 10px;border-radius:15px;background:var(--hkg-well-2);font:600 12.5px/1 var(--hkg-sans);color:var(--hkg-text-2)}
.hkg-about>b{color:var(--hkg-text);font-weight:700}
.hkg-about>button{appearance:none;-webkit-appearance:none;border:0;margin:0;padding:0;width:26px;height:26px;border-radius:50%;background:none;color:var(--hkg-text-2);display:grid;place-items:center;position:relative;cursor:pointer}
.hkg-about>button::after{content:"";position:absolute;inset:-9px}
.hkg-about>button>svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.hkg-about>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hkg-act__h>.hkg-av{width:34px;height:34px;font-size:13px}
.hkg-need.is-sel .hkg-av{background:var(--hkg-surface-solid)}                    /* the initials keep their contrast on the chosen group's tint */
@media (max-width:479px){                                                          /* on a phone the "About" chip takes its own line above the buttons, her name in full */
  .hkg-ask__row{display:grid;grid-template-columns:48px minmax(0,1fr) 48px 48px;column-gap:6px}
  .hkg-about{grid-column:1/-1;grid-row:1;justify-self:start;max-width:100%;margin:0 6px 2px}
}
