
/* =====================================================================
   Halofy app UI — the product's real chrome, rebuilt for landing mockups.
   Source of truth: apps/web (Studio layout: studioLayout.css, Sidebar.tsx,
   SidebarChrome.tsx, InterfaceViewSwitch.tsx, StudioNavigation.tsx,
   SplitGroupNavigation.tsx, ChatHeader.tsx, DraftHeroHeadline.tsx,
   ComposerPrimaryActions.tsx, MessagesTimeline.tsx, RightPanelTabs.tsx,
   ExcalidrawPanel.tsx, SidebarRateLimitsCard.tsx) + the shipped build's screenshots.
   Everything is prefixed .hx so it never collides with the landing's own classes.
   ===================================================================== */

#aiworkstation .hx{
  --hx-font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",system-ui,sans-serif;
  --hx-mono:ui-monospace,"SF Mono","SFMono-Regular",Menlo,Consolas,monospace;
  /* stock dark (T3_CODE_DARK_THEME_COLORS) */
  --hx-sidebar:#000;--hx-canvas:#0a0a0a;--hx-surface:#111;--hx-raised:#141414;--hx-overlay:#191919;
  --hx-fg:#f1f3f7;--hx-text:#f5f5f5;--hx-muted:#8f8f8f;--hx-muted-2:#a3a3a3;
  --hx-line:rgb(255 255 255 / 8%);--hx-line-2:rgb(255 255 255 / 12%);
  --hx-accent:#346bf1;--hx-accent-ink:#5b8cff;--hx-accent-rgb:52 107 241;
  --hx-row:#1a1b1b;--hx-ctl:#0c0c0c;--hx-composer:#121212;--hx-msg:#1f1f1f;--hx-tile:#141414;--hx-panel:#0a0a0a;
  --hx-wall:none;--hx-wall-op:1;--hx-scrim:linear-gradient(180deg,rgb(0 0 0 / 18%),rgb(0 0 0 / 34%));
  --hx-side-w:248px;
  position:absolute;inset:0;display:grid;grid-template-columns:var(--hx-side-w) minmax(0,1fr);
  font-family:var(--hx-font);font-size:12.5px;line-height:1.4;letter-spacing:0;color:var(--hx-fg);
  background:var(--hx-sidebar);overflow:hidden;-webkit-font-smoothing:antialiased;text-align:left;
}
#aiworkstation .hx *{box-sizing:border-box}
#aiworkstation .hx [hidden]{display:none!important}
/* Osaka Jade wallpaper (assets/backgrounds/osaka-jade.webp) on the stock dark chrome + blue accent */
#aiworkstation .hx--jade{--hx-wall:url(assets/hx/ui-1.webp);--hx-wall-op:1}
/* Tokyo Night wallpaper + the T3 Chat dark palette (pinkish-red accent oklch(.4607 .1853 4.1)) */
#aiworkstation .hx--dusk{
  --hx-sidebar:#1b171e;--hx-canvas:#221c27;--hx-surface:#28222d;--hx-raised:#2d2632;--hx-overlay:#332b38;
  --hx-fg:#f7f2f9;--hx-text:#f6f1f8;--hx-muted:#a79dad;--hx-muted-2:#b9afbf;
  --hx-line:rgb(255 240 250 / 9%);--hx-line-2:rgb(255 240 250 / 14%);
  --hx-accent:#a3205a;--hx-accent-ink:#ea5c94;--hx-accent-rgb:163 32 90;
  --hx-row:#2b2430;--hx-ctl:#1f1a23;--hx-composer:#2c2831;--hx-msg:#3a3240;--hx-tile:#241e29;--hx-panel:#1e1b22;
  --hx-wall:url(assets/hx/ui-2.webp);--hx-scrim:linear-gradient(180deg,rgb(24 16 30 / 6%),rgb(24 16 30 / 22%));
}

/* ---------- lucide + provider glyphs ---------- */
#aiworkstation .hx .lc{width:14px;height:14px;flex:none;display:block}
#aiworkstation .hx .pv{width:14px;height:14px;flex:none;display:block}
#aiworkstation .pv--openai{fill:currentColor}
#aiworkstation .pv--claude{fill:#d97757}
#aiworkstation img.pv{object-fit:contain}

/* ---------- sidebar (Studio) ---------- */
#aiworkstation .hx-side{position:relative;display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--hx-sidebar);padding:0 10px 8px;border-right:1px solid var(--hx-line)}
#aiworkstation .hx-brand{height:44px;flex:none;display:flex;align-items:center;gap:8px;margin:0 -10px;padding:0 10px 0 12px;border-bottom:1px solid var(--hx-line)}
#aiworkstation .hx-brand > .lc{color:var(--hx-muted-2);width:15px;height:15px}
#aiworkstation .hx-logo{display:inline-flex;align-items:center;gap:6px;margin-left:4px}
#aiworkstation .hx-mark{width:15px;height:15px;background:currentColor;-webkit-mask:url(assets/hx/ui-3.png) center/contain no-repeat;mask:url(assets/hx/ui-3.png) center/contain no-repeat}
#aiworkstation .hx-word{font-size:15px;font-weight:650;letter-spacing:-.05em}
#aiworkstation .hx-mode{margin-left:auto;position:relative;display:grid;grid-template-columns:1fr 1fr;width:60px;height:24px;border-radius:7px;background:#18181b;padding:2px}
#aiworkstation .hx--dusk .hx-mode{background:#2a2430}
#aiworkstation .hx-mode::before{content:"";position:absolute;top:2px;bottom:2px;left:2px;width:calc(50% - 2px);border-radius:5px;background:#3f3f46;box-shadow:0 1px 2px rgb(0 0 0 / 40%);transition:transform .35s cubic-bezier(.16,1,.3,1)}
#aiworkstation .hx-mode[data-mode=code]::before{transform:translateX(100%)}
#aiworkstation .hx-mode > span{position:relative;display:grid;place-items:center;color:#a1a1aa}
#aiworkstation .hx-mode > span[aria-pressed=true]{color:#f4f4f5}
#aiworkstation .hx-mode .lc{width:12px;height:12px}
#aiworkstation .hx-new{margin-top:10px;flex:none;display:flex;align-items:center;gap:7px;min-height:28px;padding:4px 9px;border:1px solid color-mix(in srgb,var(--hx-accent) 30%,var(--hx-line));border-radius:7px;background:color-mix(in srgb,var(--hx-accent) 13%,var(--hx-sidebar));font-size:11.5px;font-weight:600;line-height:18px}
#aiworkstation .hx-new .lc{width:13px;height:13px;color:var(--hx-accent-ink)}
#aiworkstation .hx-new kbd{margin-left:auto;font:500 9.5px/1 var(--hx-font);color:var(--hx-muted)}
#aiworkstation .hx-nav{margin-top:12px;flex:none;display:flex;gap:2px;padding:2px;border:1px solid var(--hx-line);border-radius:8px}
#aiworkstation .hx-nav > span{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;min-height:24px;border-radius:5px;font-size:10.5px;font-weight:500;color:var(--hx-muted-2)}
#aiworkstation .hx-nav > span[aria-current=true]{background:color-mix(in srgb,var(--hx-accent) 15%,var(--hx-sidebar));box-shadow:inset 0 -2px var(--hx-accent);color:var(--hx-fg)}
#aiworkstation .hx-nav .lc{width:12px;height:12px}
#aiworkstation .hx-label{margin:14px 2px 6px;flex:none;font-size:9.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--hx-muted-2)}
#aiworkstation .hx-search{flex:none;display:flex;align-items:center;gap:8px;height:30px;padding:0 9px;border:1px solid var(--hx-line);border-radius:9px;background:var(--hx-ctl);color:var(--hx-fg);font-size:12.5px;font-weight:500}
#aiworkstation .hx-search .lc{width:14px;height:14px;color:var(--hx-muted-2)}
#aiworkstation .hx-search span{opacity:.9}
#aiworkstation .hx-proj{flex:none;display:flex;align-items:center;gap:8px;height:30px;padding:0 2px 0 8px;margin-top:4px;font-size:12.5px;color:var(--hx-fg)}
#aiworkstation .hx-proj .lc{width:14px;height:14px;color:var(--hx-muted-2)}
#aiworkstation .hx-proj .grow{flex:1}
#aiworkstation .hx-threads{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:2px;margin-top:6px;-webkit-mask-image:linear-gradient(#000 calc(100% - 26px),transparent);mask-image:linear-gradient(#000 calc(100% - 26px),transparent)}
#aiworkstation .hx-row{position:relative;flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;padding:8px 10px 7px;border-radius:10px;min-height:62px;transition:background .25s,box-shadow .25s}
#aiworkstation .hx-row[data-active=true]{background:var(--hx-row);box-shadow:inset 3px 0 var(--hx-accent)}
#aiworkstation .hx-row__proj{display:flex;align-items:center;gap:6px;min-width:0;font-size:11px;font-weight:500;color:var(--hx-muted-2);white-space:nowrap}
#aiworkstation .hx-row__proj .lc{width:13px;height:13px}
#aiworkstation .hx-row__proj span{overflow:hidden;text-overflow:ellipsis}
#aiworkstation .hx-row__time{justify-self:end;font-size:11px;color:var(--hx-muted-2);font-variant-numeric:tabular-nums}
#aiworkstation .hx-row__title{grid-column:1;margin-top:3px;font-size:12.5px;color:var(--hx-fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#aiworkstation .hx-row__meta{grid-column:1;margin-top:3px;display:flex;align-items:center;gap:5px;font-size:10.5px;color:var(--hx-muted);white-space:nowrap;min-width:0}
#aiworkstation .hx-row__meta .lc{width:11px;height:11px}
#aiworkstation .hx-row__side{grid-column:2;grid-row:2 / span 2;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:4px;padding-top:2px}
#aiworkstation .hx-row__side .pv{width:13px;height:13px;opacity:.6}
#aiworkstation .hx-row__kbd{font:500 9px/1 var(--hx-font);color:var(--hx-muted-2);border:1px solid var(--hx-line-2);border-radius:999px;padding:3px 5px}
/* status labels (Sidebar.tsx) */
#aiworkstation .st-working{color:#38bdf8}#aiworkstation .st-done{color:#6ee7b7}#aiworkstation .st-input{color:#a5b4fc}#aiworkstation .st-approval{color:#fcd34d}#aiworkstation .st-failed{color:#fca5a5}
#aiworkstation .hx-foot{flex:none;display:flex;flex-direction:column;gap:6px;padding-top:8px;margin:0 -10px;padding-left:10px;padding-right:10px;border-top:1px solid var(--hx-line)}
#aiworkstation .hx-clock{display:flex;justify-content:center;align-items:center;gap:4px;height:24px;border:1px solid var(--hx-line-2);border-radius:6px;font-size:11px;color:var(--hx-fg);font-variant-numeric:tabular-nums}
#aiworkstation .hx-limit{border:1px solid var(--hx-line);border-radius:12px;padding:7px 9px 8px;background:color-mix(in srgb,var(--hx-surface) 60%,transparent);cursor:pointer}
#aiworkstation .hx-limit__head{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:500;white-space:nowrap;overflow:hidden}
#aiworkstation .hx-limit__head .pv{width:13px;height:13px}
#aiworkstation .hx-limit__head .m{color:var(--hx-muted-2);font-weight:400}
#aiworkstation .hx-limit__bar{margin-top:7px;height:3px;border-radius:999px;background:rgb(255 255 255 / 9%);overflow:hidden}
#aiworkstation .hx-limit__bar i{display:block;height:100%;border-radius:inherit;background:#10b981;transition:width .6s cubic-bezier(.16,1,.3,1)}
#aiworkstation .hx-limit__cap{margin-top:5px;font-size:9.5px;line-height:12px;color:var(--hx-muted-2)}
#aiworkstation .hx-settings{display:flex;align-items:center;gap:7px;height:26px;padding:0 4px;font-size:11.5px;color:var(--hx-muted-2)}
#aiworkstation .hx-settings .lc{width:13px;height:13px}
#aiworkstation .hx-settings .lc:last-child{margin-left:auto}
/* expanded usage panel (the shipped "Latest reported usage" sidebar widget) */
#aiworkstation .hx-usage{border:1px solid var(--hx-line-2);border-radius:12px;padding:8px 9px 9px;background:var(--hx-sidebar);display:flex;flex-direction:column;gap:6px}
#aiworkstation .hx-usage__head{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:500;white-space:nowrap}
#aiworkstation .hx-usage__head .pv{width:12px;height:12px}
#aiworkstation .hx-usage__head .lc{margin-left:auto;width:12px;height:12px;color:var(--hx-muted-2)}
#aiworkstation .hx-usage__sub{display:flex;justify-content:space-between;align-items:center;font-size:8.5px;font-weight:500;letter-spacing:.09em;text-transform:uppercase;color:var(--hx-muted-2)}
#aiworkstation .hx-live{display:inline-flex;align-items:center;gap:4px;font-size:9.5px;letter-spacing:0;text-transform:none;color:var(--hx-muted-2)}
#aiworkstation .hx-live::before{content:"";width:6px;height:6px;border-radius:999px;background:#22c55e;box-shadow:0 0 0 2px rgb(34 197 94 / 18%);animation:hx-pulse 1.8s ease-in-out infinite}
@keyframes hx-pulse{50%{opacity:.4}}
#aiworkstation .hx-tiles{display:grid;grid-template-columns:1fr 1fr;gap:4px}
#aiworkstation .hx-tiles > div{padding:5px 7px;border-radius:6px;background:var(--hx-tile);display:grid;min-width:0}
#aiworkstation .hx-tiles span{font-size:9px;color:var(--hx-muted-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#aiworkstation .hx-tiles b{font-size:12px;font-weight:500;color:var(--hx-fg);font-variant-numeric:tabular-nums}
#aiworkstation .hx-usage__note{font-size:8.5px;line-height:1.35;color:var(--hx-muted)}

/* ---------- workspace: group bar + panes ---------- */
#aiworkstation .hx-work{display:grid;grid-template-rows:44px minmax(0,1fr);min-width:0;min-height:0;background:var(--hx-sidebar)}
#aiworkstation .hx-groups{display:flex;align-items:center;gap:4px;padding:0 10px;min-width:0}
#aiworkstation .hx-gtab{height:26px;padding:0 11px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:500;color:var(--hx-muted-2);white-space:nowrap}
#aiworkstation .hx-gtab[aria-current=true]{background:rgb(255 255 255 / 7%);color:var(--hx-fg);box-shadow:inset 0 0 0 1px var(--hx-line),inset 0 -2px var(--hx-accent)}
#aiworkstation .hx-gtools{margin-left:auto;display:flex;gap:2px;color:var(--hx-muted-2)}
#aiworkstation .hx-gtools > span{width:26px;height:26px;display:grid;place-items:center;border-radius:7px}
#aiworkstation .hx-gtools > span[aria-pressed=true]{background:rgb(255 255 255 / 8%);color:var(--hx-fg)}
#aiworkstation .hx-gtools .lc{width:14px;height:14px}
#aiworkstation .hx-stage{position:relative;display:grid;min-height:0;min-width:0;border-top:1px solid var(--hx-line);border-left:1px solid var(--hx-line);border-top-left-radius:14px;overflow:hidden;background:var(--hx-canvas)}
#aiworkstation .hx-stage--split{grid-template-columns:minmax(0,1fr) var(--hx-rp-w,34%)}
#aiworkstation .hx-chat{position:relative;display:grid;grid-template-rows:40px minmax(0,1fr);min-width:0;min-height:0}
#aiworkstation .hx-head{position:relative;z-index:2;display:flex;align-items:center;gap:8px;padding:0 10px 0 14px;border-bottom:1px solid var(--hx-line);background:var(--hx-sidebar);min-width:0}
#aiworkstation .hx-crumb{display:flex;align-items:center;gap:8px;min-width:0;font-size:12.5px;white-space:nowrap}
#aiworkstation .hx-crumb .lc{width:13px;height:13px;color:var(--hx-muted-2)}
#aiworkstation .hx-crumb .p{color:var(--hx-muted-2);overflow:hidden;text-overflow:ellipsis;max-width:130px}
#aiworkstation .hx-crumb .s{color:var(--hx-muted)}
#aiworkstation .hx-crumb .t{color:var(--hx-fg);font-weight:500;overflow:hidden;text-overflow:ellipsis}
#aiworkstation .hx-actions{margin-left:auto;display:flex;align-items:center;gap:6px;color:var(--hx-muted-2);flex:none}
#aiworkstation .hx-btn{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 8px;border:1px solid var(--hx-line-2);border-radius:7px;background:rgb(255 255 255 / 3%);font-size:11px;font-weight:500;color:var(--hx-fg);white-space:nowrap}
#aiworkstation .hx-btn .lc{width:12px;height:12px}
#aiworkstation .hx-btn--split{padding:0;gap:0}
#aiworkstation .hx-btn--split > span{display:inline-flex;align-items:center;gap:5px;padding:0 8px;height:100%}
#aiworkstation .hx-btn--split > span + span{border-left:1px solid var(--hx-line-2);padding:0 5px}
#aiworkstation .hx-num{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:5px;background:rgb(255 255 255 / 6%);font-size:10.5px;font-weight:500;color:var(--hx-muted-2);font-variant-numeric:tabular-nums}
#aiworkstation .hx-body{position:relative;min-height:0;min-width:0;display:flex;flex-direction:column;overflow:hidden;background:var(--hx-canvas)}
#aiworkstation .hx-wall{position:absolute;inset:0;background:var(--hx-wall) center/cover no-repeat;opacity:var(--hx-wall-op);pointer-events:none}
#aiworkstation .hx-wall::after{content:"";position:absolute;inset:0;background:var(--hx-scrim)}
#aiworkstation .hx-body > :not(.hx-wall){position:relative;z-index:1}

/* ---------- draft hero ("What's next?") ---------- */
#aiworkstation .hx-hero{margin:auto;width:min(92%,580px);display:flex;flex-direction:column;align-items:center;text-align:center}
#aiworkstation .hx-hero__eyebrow{font-size:10.5px;font-weight:500;letter-spacing:.035em;color:rgb(255 255 255 / 72%)}
#aiworkstation .hx-hero__title{margin-top:12px;font-size:clamp(30px,3.4vw,46px);line-height:1.12;font-weight:500;letter-spacing:-.06em;color:#fff}
#aiworkstation .hx-hero__sub{margin-top:10px;font-size:12.5px;line-height:1.6;color:rgb(255 255 255 / 70%)}
#aiworkstation .hx-hero .hx-comp{margin-top:22px;width:100%}

/* ---------- composer ---------- */
#aiworkstation .hx-comp{position:relative;border-radius:18px;border:1px solid color-mix(in srgb,var(--hx-accent) 38%,var(--hx-line));background:var(--hx-composer);padding:12px 14px 10px;text-align:left;color:var(--hx-fg);box-shadow:0 22px 50px -30px rgb(0 0 0 / 85%)}
#aiworkstation .hx-comp__text{min-height:44px;font-size:12.5px;line-height:1.55;color:var(--hx-fg)}
#aiworkstation .hx-comp__ph{color:rgb(255 255 255 / 55%)}
#aiworkstation .hx-comp__att{display:flex;gap:6px;margin-bottom:8px}
#aiworkstation .hx-comp__att > span{position:relative;width:52px;height:52px;border-radius:10px;overflow:hidden;background:#fff;border:1px solid var(--hx-line-2)}
#aiworkstation .hx-comp__att svg{width:100%;height:100%}
#aiworkstation .hx-comp__att i{position:absolute;top:3px;right:3px;width:14px;height:14px;border-radius:5px;background:rgb(0 0 0 / 60%);color:#fff;display:grid;place-items:center;font-style:normal;font-size:9px}
#aiworkstation .hx-comp__row{display:flex;align-items:center;gap:10px;margin-top:6px;font-size:11.5px;color:var(--hx-fg);white-space:nowrap}
#aiworkstation .hx-pick{display:inline-flex;align-items:center;gap:5px;min-width:0}
#aiworkstation .hx-pick .pv{width:13px;height:13px}
#aiworkstation .hx-pick .lc{width:13px;height:13px}
#aiworkstation .hx-pick .lc.chev{width:11px;height:11px;color:var(--hx-muted-2)}
#aiworkstation button.hx-pick{all:unset;display:inline-flex;align-items:center;gap:5px;cursor:pointer;font-size:11.5px}
#aiworkstation .hx-sep{width:1px;height:15px;background:var(--hx-line-2);flex:none}
#aiworkstation .hx-comp__row .grow{flex:1}
#aiworkstation .hx-clip{color:var(--hx-muted-2)}
#aiworkstation .hx-clip .lc{width:14px;height:14px}
#aiworkstation .hx-send{width:30px;height:30px;border-radius:999px;background:var(--hx-accent);color:#fff;display:grid;place-items:center;flex:none;transition:opacity .25s,transform .2s,background .25s}
#aiworkstation .hx-send svg{width:13px;height:13px}
#aiworkstation .hx-send[data-empty=true]{background:color-mix(in srgb,var(--hx-accent) 42%,#0a0a0a);color:rgb(255 255 255 / 45%)}

/* ---------- timeline ---------- */
#aiworkstation .hx-thread{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:flex-end;gap:12px;padding:16px 22px 12px;width:100%;max-width:700px;margin:0 auto;overflow:hidden}
#aiworkstation .hx-user{align-self:flex-end;max-width:80%;border-radius:16px;background:var(--hx-msg);color:var(--hx-text);padding:9px 12px;font-size:12.5px;line-height:1.5}
#aiworkstation .hx-ai{font-size:12.5px;line-height:1.6;color:var(--hx-text);padding:0 4px;text-shadow:0 1px 8px rgb(0 0 0 / 35%)}
#aiworkstation .hx-ai b{font-weight:600}
#aiworkstation .hx-ai code,#aiworkstation .hx-user code{font-family:var(--hx-mono);font-size:11px;padding:1px 5px;border-radius:5px;background:rgb(255 255 255 / 9%)}
#aiworkstation .hx-worked{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--hx-muted-2);padding:0 4px 8px;border-bottom:1px solid var(--hx-line-2);font-variant-numeric:tabular-nums}
#aiworkstation .hx-worked .lc{width:12px;height:12px}
#aiworkstation .hx-art{display:flex;align-items:center;gap:14px;padding:10px 14px;border:1px solid var(--hx-line-2);border-radius:12px;background:var(--hx-canvas);font-size:11.5px}
#aiworkstation .hx-art__n{display:grid;min-width:0}
#aiworkstation .hx-art__n b{font-weight:500;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#aiworkstation .hx-art__n span{font-size:10.5px;color:var(--hx-muted-2)}
#aiworkstation .hx-art__a{margin-left:auto;display:flex;gap:14px;white-space:nowrap;color:var(--hx-fg)}
#aiworkstation .hx-art__a u{text-underline-offset:2px}
#aiworkstation .hx-dock{padding:0 22px 14px;width:100%;max-width:700px;margin:0 auto}

/* ---------- right panel ---------- */
#aiworkstation .hx-rp{position:relative;display:grid;grid-template-rows:40px minmax(0,1fr);min-width:0;min-height:0;border-left:1px solid var(--hx-line);background:var(--hx-panel)}
#aiworkstation .hx-rtabs{display:flex;align-items:center;gap:4px;padding:0 8px 0 10px;border-bottom:1px solid var(--hx-line);background:var(--hx-sidebar);min-width:0}
#aiworkstation .hx-rtab{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 8px 0 6px;border-radius:7px;font-size:11px;color:var(--hx-muted-2);white-space:nowrap}
#aiworkstation .hx-rtab .lc{width:12px;height:12px}
#aiworkstation .hx-rtab[aria-current=true]{background:rgb(255 255 255 / 7%);color:var(--hx-fg);box-shadow:inset 0 -2px var(--hx-accent)}
#aiworkstation .hx-rtabs > .lc{color:var(--hx-muted-2);width:13px;height:13px;margin-left:2px}
#aiworkstation .hx-rtools{margin-left:auto;display:flex;align-items:center;gap:8px;color:var(--hx-muted-2)}
#aiworkstation .hx-rtools .lc{width:13px;height:13px}
#aiworkstation .hx-rtools .on{color:var(--hx-fg)}
#aiworkstation .hx-term{position:relative;padding:10px 12px;font-family:var(--hx-mono);font-size:10.5px;line-height:1.65;color:#e9e4ec;overflow:hidden;min-height:0}
#aiworkstation .hx-term .dim{color:var(--hx-muted)}
#aiworkstation .hx-term .ok{color:#6ee7b7}
#aiworkstation .hx-term .cur{display:inline-block;width:7px;height:13px;vertical-align:-2px;border:1.5px solid var(--hx-accent-ink);margin-left:2px;animation:hx-blink 1.1s steps(2,start) infinite}
@keyframes hx-blink{50%{opacity:0}}

/* ---------- split view panes ---------- */
#aiworkstation .hx-grid{display:grid;gap:6px;padding:6px;min-height:0;min-width:0;background:var(--hx-sidebar)}
#aiworkstation .hx-pane{position:relative;display:grid;grid-template-rows:34px minmax(0,1fr);min-height:0;min-width:0;border:1px solid var(--hx-line);border-radius:14px;overflow:hidden;background:var(--hx-canvas);transition:border-color .3s,box-shadow .3s}
#aiworkstation .hx-pane[data-focus=true]{border-color:color-mix(in srgb,var(--hx-accent) 55%,var(--hx-line))}
#aiworkstation .hx-pane .hx-head{padding:0 8px 0 11px;gap:6px}
#aiworkstation .hx-pane .hx-crumb{font-size:11px;gap:6px}
#aiworkstation .hx-pane .hx-num{width:16px;height:16px;font-size:9.5px}

/* ---------- toast ---------- */
#aiworkstation .hx-toast{position:absolute;z-index:5;display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:9px;background:#1b1b1d;border:1px solid var(--hx-line-2);box-shadow:0 14px 36px -12px rgb(0 0 0 / 80%);font-size:11.5px;color:var(--hx-fg);opacity:0;transform:translateY(-6px);transition:opacity .25s,transform .35s cubic-bezier(.16,1,.3,1);pointer-events:none}
#aiworkstation .hx-toast .lc{width:14px;height:14px;color:#4ade80}
#aiworkstation .hx-toast[data-show=true]{opacity:1;transform:none}


/* ---------- Sep 14 product refresh (latest master: studioLayout.css / index.css / Sidebar.tsx) ----------
   New thread moves into the "Your threads" header as an icon button, navigation sits at the top,
   the active group tab / panel tab / thread row wear a 1px primary ring, split panes are inset cards,
   and the composer gains the ✦ "Edit workspace" action. Opt in with .hx--v2. */
#aiworkstation .hx-nav--top{margin-top:12px}
#aiworkstation .hx-sechead{flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0 6px}
#aiworkstation .hx-sechead .hx-label{margin:0 0 0 2px}
#aiworkstation .hx-iconbtn{width:26px;height:26px;display:grid;place-items:center;border-radius:7px;color:var(--hx-fg)}
#aiworkstation .hx-iconbtn .lc{width:14px;height:14px}
#aiworkstation .hx--v2 .hx-row{border-radius:8px}
#aiworkstation .hx--v2 .hx-row[data-active=true]{box-shadow:inset 0 0 0 1px var(--hx-accent)}
#aiworkstation .hx--v2 .hx-gtab{height:28px;border-radius:8px}
#aiworkstation .hx--v2 .hx-gtab[aria-current=true]{background:rgb(255 255 255 / 6%);box-shadow:inset 0 0 0 1px var(--hx-accent)}
#aiworkstation .hx--v2 .hx-rtab{border-radius:8px}
#aiworkstation .hx--v2 .hx-rtab[aria-current=true]{box-shadow:inset 0 0 0 1px var(--hx-accent)}
#aiworkstation .hx--v2 .hx-stage{margin:0 8px 8px 0;border:1px solid var(--hx-line);border-radius:10px}
#aiworkstation .hx-edit{display:grid;place-items:center;width:22px;height:22px;flex:none;font-size:15px;line-height:1;color:var(--hx-muted-2)}

/* ---------- Kanagawa (chatBackgroundPresets.ts "kanagawa", intensity 30, canvas #1f1f28) with the Ocean dark accent ---------- */
#aiworkstation .hx--wave{--hx-sidebar:#16161d;--hx-canvas:#1f1f28;--hx-surface:#252533;--hx-raised:#2a2a37;--hx-overlay:#30303e;
  --hx-fg:#e8e4d4;--hx-text:#ebe7d8;--hx-muted:#8c8ea4;--hx-muted-2:#a7a9bd;
  --hx-line:rgb(200 206 255 / 9%);--hx-line-2:rgb(200 206 255 / 15%);
  --hx-accent:#6cb0ee;--hx-accent-ink:#92c6f6;--hx-accent-rgb:108 176 238;
  --hx-row:#2a2a37;--hx-ctl:#1b1b24;--hx-composer:#1b1b24;--hx-msg:#2d2d3c;--hx-tile:#22222d;--hx-panel:#1f1f28;
  --hx-wall:url(assets/hx/ui-4.webp);--hx-wall-op:.3;--hx-scrim:linear-gradient(180deg,rgb(22 22 29 / 20%),rgb(22 22 29 / 55%))}
#aiworkstation .hx--wave .hx-mode{background:#252533}
#aiworkstation .hx--wave .hx-send{color:#12151d}
#aiworkstation .hx--wave .hx-send[data-empty=true]{background:color-mix(in srgb,#6cb0ee 38%,#16161d);color:rgb(255 255 255 / 50%)}
