/* Talk to HK AI: the layer that holds the lead's Talk screen (hk-glass-talk.css) inside the tracker (Brief Talk-1, 15 Nov 2026).
   Phone and an upright iPad: the whole screen under the bar (over the dock), a back arrow on top. An iPad on its side (1024 px
   and up): the right pane beside the Auto list, where her page docks. Its own classes are tk-*. */
.tk-layer{position:fixed;left:0;right:0;top:56px;bottom:0;z-index:70;display:flex;flex-direction:column;min-height:0;padding-bottom:0;
  background:var(--hkg-ground);--hkg-dock-h:0px;overscroll-behavior:contain}
.tk-layer.is-pane{right:auto;border-radius:var(--hkg-r-xl,28px);background:var(--hkg-sheet,var(--hkg-ground));box-shadow:var(--hkg-shadow-2),inset 0 0 0 1px var(--hkg-line);overflow:hidden}
body.hkg-lock.tk-pane{overflow:auto}
body.tk-pane .sdesk{visibility:hidden}
.tk-head{flex:none;display:flex;align-items:center;gap:4px;min-height:56px;padding:4px 8px;border-bottom:1px solid var(--hkg-line);background:var(--hkg-overlay);position:relative;z-index:3}
.tk-hb{appearance:none;-webkit-appearance:none;border:0;margin:0;flex:none;min-width:44px;min-height:44px;padding:0 10px;border-radius:22px;display:grid;place-items:center;
  background:none;color:var(--hkg-text);font:700 14px/1 var(--hkg-sans);cursor:pointer}
.tk-hb>svg{width:22px;height:22px}
.tk-hb:active{background:var(--hkg-well)}
.tk-hb--w{color:var(--hkg-text-2)}
.tk-ttl{flex:1;min-width:0;display:flex;align-items:center;gap:9px;font:700 16px/1.2 var(--hkg-sans);color:var(--hkg-text)}
.tk-dia{flex:none;width:16px;height:16px;border-radius:5px;background:var(--hkg-gold-grad);transform:rotate(45deg) scale(.8)}
.tk-list{position:absolute;right:8px;top:60px;z-index:5;width:min(360px,calc(100% - 16px));max-height:min(60vh,480px);overflow:auto;padding:6px;border-radius:var(--hkg-r-l);
  background:var(--hkg-surface-solid);box-shadow:var(--hkg-shadow-3,var(--hkg-shadow-2)),inset 0 0 0 1px var(--hkg-line-2)}
.tk-li{appearance:none;-webkit-appearance:none;border:0;margin:0;display:grid;gap:3px;width:100%;min-height:52px;padding:8px 12px;border-radius:14px;background:none;color:var(--hkg-text);text-align:left;cursor:pointer}
.tk-li>b{font:700 15px/1.3 var(--hkg-sans);overflow-wrap:anywhere}
.tk-li>span{font:500 12.5px/1.2 var(--hkg-sans);color:var(--hkg-text-2)}
.tk-li.is-sel,.tk-li:active{background:var(--hkg-well-2)}
.tk-none{margin:0;padding:14px;font:500 14px/1.4 var(--hkg-sans);color:var(--hkg-text-2)}
.tk-mid{flex:1;min-height:0;position:relative;display:flex}
.tk-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;display:flex;flex-direction:column}
.tk-scroll>.hkg-talk__thread{flex:1 0 auto}
.tk-layer .hkg-latest{position:absolute;bottom:12px;left:50%;transform:translateX(-50%)}
.tk-layer .hkg-latest[hidden]{display:none}
.tk-layer .hkg-ask-dock{position:relative;bottom:auto;flex:none;padding-top:8px;padding-bottom:calc(10px + var(--hkg-safe-b,0px));background:var(--hkg-ground)}
.tk-layer.is-pane .hkg-ask-dock{background:transparent;padding-bottom:10px}
.tk-layer .hkg-ask__note{margin-bottom:0}
.tk-retry{appearance:none;-webkit-appearance:none;border:0;margin:-14px 0 0;align-self:flex-end;min-height:44px;padding:0 6px;background:none;font:700 13px/1.2 var(--hkg-sans);color:var(--hkg-bad);cursor:pointer;text-align:right}
.tk-err{margin:8px 16px 0;font:600 13px/1.4 var(--hkg-sans);color:var(--hkg-bad)}
.tk-edit{display:block;width:calc(100% - 32px);min-height:96px;border:0;outline:0;resize:vertical;font:inherit;font-size:16px;line-height:1.5;color:var(--hkg-text);box-shadow:inset 0 0 0 2px var(--hkg-gold)}
.hkg-act__h>.tk-av{width:34px;height:34px;font-size:13px;color:var(--hkg-text);background:var(--hkg-well-2)}
.hkg-act__h>.tk-av>img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.hkg-act__h>.tk-dia{margin:0 8px}
.hkg-act__foot .hkg-btn[disabled]{opacity:.85}
/* the entry row, on top of the Auto list */
.tk-row{appearance:none;-webkit-appearance:none;border:0;margin:0;display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:8px 14px;border-radius:16px;
  background:var(--hkg-well-2);color:var(--hkg-text);text-align:left;cursor:pointer;font:inherit}
.tk-row:active{transform:scale(.99)}
.tk-row__m{flex:1;min-width:0;display:grid;gap:3px}
.tk-row__m>b{font:700 16px/1.25 var(--hkg-sans)}
.tk-row__m>span{font:500 13.5px/1.3 var(--hkg-sans);color:var(--hkg-text-2)}
#atalkrow:empty{display:none}
@media (prefers-reduced-motion:reduce){.tk-row:active{transform:none}}
/* the field: the lead's borderless field (the tracker's own textarea look must not show through) */
.hkg .tk-layer textarea.hkg-ask__in,.hkg .tk-layer textarea.hkg-ask__in:focus{border:0;box-shadow:none;background:none;border-radius:0;outline:0;min-height:46px}
.hkg-act__h>.tk-av{position:relative}
.hkg-act__h>.tk-av>img{position:absolute;inset:0}
/* no "+" in this version: the phone's row is the field's width, then the mic and Send */
@media (max-width:479px){.tk-layer .hkg-ask__row{grid-template-columns:minmax(0,1fr) 48px 48px}}
.tk-layer .hkg-ask.is-rec .hkg-ask__live:empty::before{content:"Speak now…";color:var(--hkg-text-3)}
/* the entry lives in the Auto title's line: a full row under the title from 768 px, a compact pill beside "Auto" on a phone
   (no extra height: the home's first screen keeps its folds, auto_qa "with 3 ON clients") */
.hkg .shero{flex-wrap:wrap}
.shero>#atalkrow{flex:1 0 100%;order:3;margin-top:4px}
@media (max-width:767px){
  .shero>#atalkrow{flex:0 0 auto;order:2;margin:0 0 0 auto;align-self:center}
  .shero>#atalkrow .tk-row{min-height:44px;padding:0 14px 0 12px;border-radius:22px;gap:8px}
  .shero>#atalkrow .tk-row__m>span,.shero>#atalkrow .hkg-row__chev{display:none}
  .shero>#atalkrow .tk-row__m>b{font-size:14.5px;white-space:nowrap}
}
@media (max-width:459px){.shero>.afresh{display:none}}

/* a voice note that could not be heard is kept: "Try again" sends the same recording (15 Nov 2026) */
.hkg-ask__note.has-again{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 12px}
.tk-rehear{min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--hkg-line-2,rgba(214,178,122,.4));background:none;color:var(--hkg-gold-ink,#d6b27a);font:700 14px/1 var(--hkg-sans,inherit);cursor:pointer}
.tk-rehear:active{transform:scale(.97)}

/* build 13d: a send card's groups, and how each send went */
.tk-grps{list-style:none;margin:0 0 8px;padding:0;display:flex;flex-direction:column;gap:4px}
.tk-grp{font-size:13.5px;line-height:1.35;color:var(--hkg-text-2);overflow-wrap:anywhere}
.tk-grp>span{display:block;font-size:12.5px;color:var(--hkg-text-3)}
.tk-grp.is-sent>span{color:var(--hkg-ok,#5fae7a)}
.tk-grp.is-failed>span,.tk-grp.is-uncertain>span{color:var(--hkg-bad);font-weight:600}
