/* ═══ US3i HUB — full-page chat, ported from the Agent Hub design ═══
   Same geometry as agent-platform's hub (centered 760px thread, who-labels,
   gradient user bubbles, bordered assistant bubbles, typing dots, pill
   suggestion chips, pinned composer) skinned in the ops app's own tokens so
   it follows light/dark with the rest of the site. */

.u3h{display:flex;flex-direction:column;height:calc(100dvh - 148px);min-height:440px;max-width:980px;margin:0 auto;}
@media (max-width:760px){.u3h{height:calc(100dvh - 128px);}}

/* header — the hub's .tog strip */
.u3h-head{display:flex;align-items:center;gap:11px;padding:6px 4px 14px;border-bottom:1px solid var(--borderb);}
.u3h-badge{width:38px;height:38px;border-radius:12px;background:var(--brand);color:var(--brand-contrast,#fff);display:flex;align-items:center;justify-content:center;font-size:20px;flex:0 0 auto;}
.u3h-ti b{display:block;font:700 15px/1.1 'Hanken Grotesk',sans-serif;color:var(--text);letter-spacing:.02em;}
.u3h-ti span{display:block;font:500 11.5px/1.3 Arial,Helvetica,sans-serif;color:var(--muted);margin-top:2px;}
.u3h-head .sp{flex:1;}
.u3h-tog{height:34px;padding:0 14px;border-radius:12px;background:var(--panel-bg);color:var(--muted);border:1px solid var(--borderb);
  display:inline-flex;align-items:center;gap:6px;font:700 12px 'Hanken Grotesk',sans-serif;cursor:pointer;
  transition:transform .15s,color .2s,border-color .2s;}
.u3h-tog:hover{color:var(--brand);border-color:var(--brand);}
.u3h-tog:active{transform:scale(.94);}

/* thread */
.u3h-thread{flex:1 1 auto;overflow-y:auto;min-height:0;padding:16px 4px 10px;scroll-behavior:smooth;}
.u3h-msg{display:flex;margin:0 auto 18px;max-width:760px;}
.u3h-msg.u{justify-content:flex-end;}
.u3h-msg>div{max-width:82%;min-width:0;}
.u3h-msg.u>div{margin-left:auto;}
.u3h-who{font:700 10px/1 'Hanken Grotesk',sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--text-3,var(--muted));margin:0 4px 6px;}
.u3h-msg.u .u3h-who{text-align:right;}
.u3h-bub{width:fit-content;max-width:100%;padding:12px 15px;border-radius:18px;white-space:pre-wrap;overflow-wrap:break-word;
  font:400 15px/1.55 Arial,Helvetica,sans-serif;color:var(--text);}
.u3h-msg.u .u3h-bub{margin-left:auto;background:linear-gradient(150deg,var(--brand) 0%,var(--brand) 60%,#3f9df0 130%);
  color:var(--brand-contrast,#fff);border-bottom-right-radius:6px;font-weight:500;}
.u3h-msg.a .u3h-bub{background:var(--panel-bg);border:1px solid var(--borderb);border-bottom-left-radius:6px;}
.u3h-bub table{border-collapse:collapse;margin:8px 0;font-size:13.5px;}
.u3h-bub td{border:1px solid var(--borderb);padding:4px 9px;}
.u3h-msg.typing .u3h-bub{color:var(--muted);}
.u3h-dot{animation:u3hblink 1.2s infinite;font-size:11px;margin-right:2px;}
.u3h-dot:nth-child(2){animation-delay:.2s}.u3h-dot:nth-child(3){animation-delay:.4s}
@keyframes u3hblink{0%,60%,100%{opacity:.25}30%{opacity:1}}

/* tool-trace chips — what the brain actually looked at, worn above the answer */
.u3i-trace{display:flex;flex-wrap:wrap;gap:6px;margin:0 4px 7px;}
.u3i-tchip{font:600 10.5px/1 'Hanken Grotesk',sans-serif;letter-spacing:.03em;color:var(--muted);
  background:var(--panel-bg);border:1px solid var(--borderb);border-radius:999px;padding:6px 10px;
  display:inline-flex;gap:6px;align-items:center;font-family:'IBM Plex Mono',monospace;}

/* suggestion chips — the hub's pill chips, shown on an empty thread */
.u3h-sug{display:none;flex-wrap:wrap;gap:8px;max-width:760px;margin:0 auto 12px;padding:0 4px;}
.u3h-sug button{font:600 12px/1 'Hanken Grotesk',sans-serif;letter-spacing:.03em;color:var(--muted);
  background:var(--panel-bg);border:1px solid var(--borderb);border-radius:999px;padding:9px 14px;cursor:pointer;
  transition:color .15s,border-color .15s,transform .12s;}
.u3h-sug button:hover{color:var(--brand);border-color:var(--brand);}
.u3h-sug button:active{transform:scale(.95);}

/* composer — pinned, auto-growing */
.u3h-in{display:flex;align-items:flex-end;gap:10px;max-width:760px;margin:0 auto;width:100%;padding:10px 4px 4px;border-top:1px solid var(--borderb);}
.u3h-in textarea{flex:1;resize:none;max-height:150px;padding:12px 15px;border-radius:16px;border:1px solid var(--borderb);
  background:var(--panel-bg);color:var(--text);font:400 15px/1.45 Arial,Helvetica,sans-serif;outline:none;}
.u3h-in textarea:focus{border-color:var(--brand);}
.u3h-in button{width:44px;height:44px;flex:0 0 auto;border-radius:14px;border:none;background:var(--brand);color:var(--brand-contrast,#fff);
  display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .12s,opacity .2s;}
.u3h-in button:active{transform:scale(.92);}
.u3h-in button[disabled]{opacity:.45;cursor:default;}
.u3h-fine{max-width:760px;margin:6px auto 0;padding:0 6px;font:500 11px/1.4 Arial,Helvetica,sans-serif;color:var(--text-3,var(--muted));}
.u3h-fine a{color:var(--brand);}
