/* Auto-2: the Auto tab with the chat in the centre (Brief Auto-2 part 1, 15 Nov 2026). The lead's hk-glass-talk.css (second
   half, rules A1-A4) draws the pieces; this sheet fits them into the tracker's page: the whole width under the bar, one screen
   high (auto2.js sets the height: the bar above, the phone's dock or keyboard below), the chat (talk.js, embedded) in the
   middle column, the two side columns scrolling on their own, and below 1024 px each list as the page's own sheet. */
main.page:has(>.hkg-auto){max-width:none;padding:0}
.hkg-auto{grid-template-rows:minmax(0,1fr);height:calc(100dvh - 120px);overflow:hidden;--hkg-bar-h:0px}
.hkg-auto>.hkg-rail{position:relative;top:auto;height:auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
/* the centre: the strip (phone), then the chat filling the rest */
.hkg-auto>.a2-talk{min-height:0;height:100%;padding-bottom:0;overflow:hidden}
.a2-talk>.hkg-peek{position:relative;top:auto;flex:none}
.a2-talk>.tk-layer.is-embed{position:relative;inset:auto;flex:1;min-height:0;z-index:auto;background:transparent;box-shadow:none;border-radius:0}
.a2-talk>.tk-layer.is-embed .tk-head{background:transparent}
.a2-talk>.tk-layer.is-embed [data-tk=close]{display:none}
.a2-talk>.tk-layer.is-embed .hkg-ask-dock{background:transparent;padding-bottom:12px}
.a2-talk>.tk-layer.is-embed .hkg-talk{min-height:0}
.a2-talk .hkg-peek>button>b{font-size:20px}
/* the rail heads: the cross only in a sheet; the two-way switch only between 1024 and 1199 */
.hkg-rail .a2-grab{display:none}
.hkg-rail .a2-x{display:none;appearance:none;-webkit-appearance:none;border:0;margin:0 0 0 4px;padding:0;flex:none;width:44px;height:44px;border-radius:50%;background:var(--hkg-well);
  color:var(--hkg-text-2);place-items:center;cursor:pointer;align-self:center}
.hkg-rail .a2-x>svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.hkg-rail .hkg-rail__h{align-items:center}
.hkg-rail .hkg-rail__h>span{white-space:nowrap}
.a2-swap{display:none;margin:0 4px 10px}
.a2-swap>button{flex:1;min-height:44px}
@media (min-width:1024px) and (max-width:1199px){
  .a2-swap{display:flex}
  .hkg-auto.is-swap>.hkg-rail--need{display:none}
  .hkg-auto.is-swap>.hkg-rail--clients{display:block;grid-column:1;grid-row:1;border-left:0;border-right:1px solid var(--hkg-line)}
}
/* "Needs you" */
.a2-need{display:grid}
.a2-none{margin:0;padding:12px 8px;font:500 15px/1.4 var(--hkg-sans);color:var(--hkg-text-2)}
.hkg-need__who>.ava{width:34px;height:34px;font-size:13px}
.hkg-need.is-sel .hkg-need__who>.ava{background:var(--hkg-surface-solid)}
.hkg-need__i>.hkg-btn{white-space:nowrap}
.a2-ai{appearance:none;-webkit-appearance:none;border:0;margin:14px 0 0;display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:48px;padding:0 14px;
  border-radius:16px;background:var(--hkg-well);font:600 14px/1.2 var(--hkg-sans);color:var(--hkg-text-2);cursor:pointer;text-align:left}
.a2-ai>b{font-weight:700;color:var(--hkg-text)}
/* "Clients": the Auto rows, a little tighter; names wrap, never dots; OFF rows quiet, no step bar */
.a2-search{margin:0 4px 8px}
.a2-list{display:grid}
.a2-list>.srow{content-visibility:auto;contain-intrinsic-size:auto 72px}
.hkg-auto .srow .hkg-row__t,.hkg-auto .srow .hkg-row__s{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.hkg-auto .srow.is-off .hkg-jmini{display:none}
.hkg-auto .srow.is-off .hkg-row__main:not(:has(.hkg-jmini)) .hkg-row__s{margin-top:4px}
.hkg-auto .ava{width:44px;height:44px;flex:none;border-radius:50%;display:grid;place-items:center;font:800 15px/1 var(--hkg-sans);color:var(--hkg-gold-ink);
  background:var(--hkg-gold-tint,var(--hkg-well));box-shadow:inset 0 0 0 1px var(--hkg-line);overflow:hidden;position:relative}
.hkg-auto .hkg-rail .srow .ava{width:38px;height:38px;font-size:14px}
.hkg-auto .ava .dp{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .25s}
/* below 1024 px: each list is the page's own sheet (hkg-sheet, set by auto2.js), from below on a phone, a drawer from 768 */
.hkg-auto>.hkg-rail.hkg-sheet{display:flex;flex-direction:column;position:fixed;top:auto;height:auto;max-height:88vh;max-height:88dvh;overflow-y:auto;
  padding:0 var(--hkg-s3) calc(var(--hkg-s5) + var(--hkg-safe-b,0px));border:0;z-index:61}
.hkg-auto>.hkg-rail.hkg-sheet>*{flex:none}
.hkg-auto>.hkg-rail.hkg-sheet .a2-grab{display:block}
.hkg-auto>.hkg-rail.hkg-sheet .hkg-rail__h{position:sticky;top:0;z-index:2;margin:0 calc(-1 * var(--hkg-s3));padding:10px var(--hkg-s4) 10px;background:var(--hkg-sheet)}
.hkg-auto>.hkg-rail.hkg-sheet .a2-x{display:grid}
.hkg-auto>.hkg-rail.hkg-sheet .a2-swap{display:none}
.hkg-auto>.hkg-rail.hkg-sheet .a2-grab{position:sticky;top:0;z-index:3;margin:0 auto;padding:10px 0 2px;width:40px;height:16px;background:none}
.hkg-auto>.hkg-rail.hkg-sheet .a2-grab::before{content:"";display:block;height:4px;border-radius:2px;background:var(--hkg-line-2)}
.hkg-auto>.hkg-rail.hkg-sheet .hkg-rail__h{top:16px}
.hkg-auto>.a2-scrim{z-index:60}
@media (min-width:768px){
  .hkg-auto>.hkg-rail.hkg-sheet{top:0;bottom:0;max-height:none;padding-top:var(--hkg-s3)}
  .hkg-auto>.hkg-rail.hkg-sheet .a2-grab{display:none}
  .hkg-auto>.hkg-rail.hkg-sheet .hkg-rail__h{top:calc(-1 * var(--hkg-s3))}
}
@media (max-width:479px){.a2-talk .hkg-peek{padding-left:var(--hkg-s3);padding-right:var(--hkg-s3)}}
@media (prefers-reduced-motion:reduce){.hkg-auto>.hkg-rail.hkg-sheet{transition:none}}
/* her name in the "About" chip is never cut (the lead's chip ends in dots): it wraps inside the chip */
.a2-talk .hkg-about{max-width:100%;min-height:30px;height:auto;padding-top:2px;padding-bottom:2px}
.a2-talk .hkg-about>b{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.25}

/* her words under her name: three lines at most (the whole message is in the chat when he taps Answer) */
.hkg-need__i>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
/* the two side columns run the full height, so their edge lines do not stop half way */
@media (min-width:1024px){.hkg-auto>.hkg-rail:not(.hkg-sheet){align-self:stretch}}

/* Script-1: her ad script as a card in "Needs you" (the lead's action card, .hkg-act): the script as it will be read (its line
   breaks kept, about 9 lines, then "Show all"), the checks line small under it, ONE gold Approve, quiet Change and No */
.hkg-need>.a2-sc{margin:8px 0 4px;max-width:none;box-shadow:none;background:var(--hkg-surface-solid,var(--hkg-surface));border:1px solid var(--hkg-line)}
.a2-sc .hkg-act__h{padding-top:12px}
.a2-sc .hkg-act__h b{display:flex;flex-wrap:wrap;align-items:center;gap:6px;overflow-wrap:anywhere}
.a2-sc .hkg-act__h b>.demo-pill{font-size:12px;min-height:22px;padding:0 8px;color:var(--hkg-text-2);background:var(--hkg-well)}
.a2-sc .hkg-act__h small{display:block;margin-top:2px;font:600 13px/1.3 var(--hkg-sans);color:var(--hkg-text-2);overflow-wrap:anywhere}
.a2-sc__t{margin:10px 12px 0;font-size:15px;line-height:1.5;white-space:pre-line;color:var(--hkg-text)}
.a2-sc__t.is-clip{-webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(180deg,#000 calc(100% - 22px),transparent)}
.a2-sc__more{appearance:none;-webkit-appearance:none;border:0;margin:2px 12px 0;padding:0 6px;min-height:44px;background:none;cursor:pointer;
  font:700 14px/1 var(--hkg-sans);color:var(--hkg-gold-ink)}
.a2-sc__chk{margin:6px 16px 0;font:600 12.5px/1.4 var(--hkg-sans);color:var(--hkg-text-2);overflow-wrap:anywhere}
.a2-sc__err{margin:8px 16px 0;font:600 13px/1.4 var(--hkg-sans);color:var(--hkg-bad)}
.a2-sc .hkg-act__foot{flex-wrap:wrap;padding:12px 12px 12px}
.a2-sc__foot>.hkg-btn{min-height:44px}
.a2-sc__foot>.hkg-btn--primary{flex:1 1 110px;min-height:48px}
.a2-sc__foot>.hkg-btn--plain{flex:none;padding:0 12px;font-size:15px}
.a2-sc__foot>.hkg-btn.is-arm{flex:1 1 100%;--ink:var(--hkg-bad);color:var(--hkg-bad);background:var(--hkg-well);border-radius:999px;white-space:normal}
.a2-sc.is-sent .a2-sc__t{opacity:.75}
/* the chat's field attached to her script: the chip says so; his words go as the card's answer */
.a2-talk .hkg-about.tk-att{background:var(--hkg-gold-tint,var(--hkg-well-2))}
.a2-talk .tk-note{margin:6px 0 14px;justify-content:flex-end;text-align:right}

/* while the creative desk makes her new version (20-40 s) */
.a2-making{display:flex;align-items:center;gap:8px;margin:8px 0 0;font-size:13.5px;color:var(--hkg-text-2)}
/* Faults-1 (15 Nov 2026, the quality lead's live faults) */
/* fault 10: 16 px between client groups in "Needs you" (the lead's 6 px ran them together) */
.a2-need{gap:16px}
.a2-need>.hkg-need+.hkg-need{margin-top:0}
/* fault 5: ONE Demo chip, on her group's head */
.hkg-need__who>.demo-pill{flex:none;margin-left:0;min-height:22px;display:inline-flex;align-items:center;background:var(--hkg-well)}
/* fault 4: two or more of her scripts = ONE "Pick a script" card: each with its head, words and a gold "Use this one" */
.a2-pick .a2-pk{padding:4px 0 2px;border-top:1px solid var(--hkg-line)}
.a2-pick .hkg-act__h+.a2-pk{border-top:0}
.a2-pk__h{margin:10px 16px 0;font:700 14px/1.3 var(--hkg-sans);color:var(--hkg-text);overflow-wrap:anywhere}
.a2-pk__use{display:flex;padding:10px 12px 8px}
.a2-pk__use>.hkg-btn--primary{flex:1 1 auto;min-height:48px}
.a2-pick .a2-sc__foot>.hkg-btn--plain{flex:1 1 0;min-width:0}
.a2-pick .a2-sc__foot>.hkg-btn.is-arm{flex:1 1 100%}
/* fault 11: the test clients at the end of Clients, under a quiet head */
.a2-testh{margin:14px 8px 4px;font:700 12px/1.3 var(--hkg-sans);letter-spacing:.06em;text-transform:uppercase;color:var(--hkg-text-2)}
/* fault 12: her page. From 1200 px it takes the Clients column's place (auto2.js sets --hk-deskx/w to the column), so the chat is
   never covered; below 1200 px a full-height sheet over the whole screen, closed by its cross or Escape */
@media (min-width:1200px){
  .hkg:has(.hkg-auto) .sheet-wrap.apanew .asheet{border-radius:20px}
}
@media (max-width:1199px){
  .hkg:has(.hkg-auto) .sheet-wrap.apanew{pointer-events:auto}
  .hkg:has(.hkg-auto) .sheet-wrap.apanew .scrim{display:block}
  .hkg:has(.hkg-auto) .sheet-wrap.apanew .asheet{left:0;right:0;top:0;bottom:0;width:auto;max-height:none;border-radius:0;border:0;box-shadow:none;
    padding-top:calc(16px + var(--hkg-safe-t,0px))}
  .hkg:has(.hkg-auto) .sheet-wrap.apanew .asheet::before{display:none}
  body.locked.hkg:has(.hkg-auto):has(.sheet-wrap.apanew.on){overflow:hidden}
}
