/* ════════════════════════════════════════════════════════════════════
   workspace-command-center.css — operational floor (.cc-*)

   Pure liquid glass throughout. Tab strip = pill row, tab content =
   single frosted pane below it, message stream + sticky input bar.
   ════════════════════════════════════════════════════════════════════ */

/* ─── Loading / spinner ─────────────────────────────────────────── */
.cc-loading {
  display: flex; align-items: center; gap: 10px;
  padding: 28px 22px;
  font: 500 13px/1.4 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.70);
}
.cc-spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.78);
  animation: cc-spin 700ms linear infinite;
}
@keyframes cc-spin { to { transform: rotate(360deg) } }

/* ─── Section head: ONE compact row (2026-06-05, per K) ───────────
   "Command Center" and its description sit side by side on a single
   line; vertical padding trimmed so the working area below grows. */
.ws-section[data-ws-section-view="command-center"] > .ws-section__head {
  padding: 13px 22px;
}
.ws-section[data-ws-section-view="command-center"] > .ws-section__head > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-width: 0;
}
.ws-section[data-ws-section-view="command-center"] .ws-section__title {
  flex: 0 0 auto;
  font-size: 22px;
}
.ws-section[data-ws-section-view="command-center"] .ws-section__sub {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Tab strip ─────────────────────────────────────────────────── */
.cc-tabstrip {
  display: flex; flex-direction: column; gap: 6px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  margin-bottom: 5px;          /* unified 5px rhythm: head → strip → pane */
}
/* 2026-06-05 (K) — Safari-style strip: ALWAYS one line. Tabs share the row
   and shrink equally as more open (titles ellipsize); the active tab keeps
   a little extra room. Never wraps. */
.cc-tabstrip__row {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}
.cc-tabstrip__hint {
  font: 500 11px/1 ui-sans-serif, system-ui;
  color: rgba(255, 220, 150, 0.86);
  padding: 4px 8px;
}

.cc-tab {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 10px 8px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.74);
  font: 500 12.5px/1 ui-sans-serif, system-ui;
  cursor: pointer;
  flex: 1 1 0;                 /* Safari-style: tabs share the row equally */
  max-width: 210px;
  min-width: 34px;             /* never wraps — shrinks to dot + ellipsis */
  justify-content: center;
  transition: background 160ms ease, border-color 160ms ease,
              color 160ms ease, box-shadow 220ms ease, flex 200ms ease;
}
.cc-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.96);
  /* 2026-06-06 (per K): hover EXPANDS the tab to its full title — the
     other tabs compress to make room (Safari-style). */
  flex: 6 0 auto;
  max-width: 460px;
}
.cc-tab--active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 1);
  flex: 2.2 1 0;               /* the focused tab keeps breathing room */
  min-width: 120px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 0 14px rgba(255, 255, 255, 0.12);
}
.cc-tab__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.20);
}
.cc-dot--ok {
  background: radial-gradient(circle at 35% 30%, rgba(110, 220, 150, 0.95), rgba(60, 170, 110, 0.85));
  box-shadow: 0 0 8px rgba(110, 220, 150, 0.50);
}
.cc-dot--run {
  background: radial-gradient(circle at 35% 30%, rgba(180, 200, 255, 0.95), rgba(120, 140, 220, 0.85));
  box-shadow: 0 0 8px rgba(180, 200, 255, 0.50);
  animation: cc-pulse 1.2s ease-in-out infinite;
}
.cc-dot--warn {
  background: radial-gradient(circle at 35% 30%, rgba(255, 200, 110, 0.95), rgba(220, 150, 50, 0.85));
  box-shadow: 0 0 8px rgba(255, 200, 110, 0.50);
}
.cc-dot--err {
  background: radial-gradient(circle at 35% 30%, rgba(255, 130, 130, 0.95), rgba(220, 70, 70, 0.85));
  box-shadow: 0 0 8px rgba(255, 130, 130, 0.50);
}
.cc-dot--idle {
  background: rgba(255, 255, 255, 0.20);
}
@keyframes cc-pulse { 50% { transform: scale(1.2); opacity: 0.85 } }

/* ─── "Working on it" live banner — pure liquid glass + white light ─── */
.cc-working {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  margin: 12px 0; padding: 13px 16px; border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
/* a soft white light sweeps across the glass, left to right, forever */
.cc-working::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 28%, rgba(255,255,255,0.12) 50%, transparent 72%);
  transform: translateX(-100%);
  animation: cc-sheen 2.6s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes cc-sheen { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }
/* a breathing white orb with a soft halo — no colour, just light */
.cc-working__orb {
  position: relative; z-index: 1; flex: 0 0 auto;
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, rgba(255,255,255,0.55));
  box-shadow: 0 0 10px 2px rgba(255,255,255,0.5);
  animation: cc-orb-breathe 1.7s ease-in-out infinite;
}
@keyframes cc-orb-breathe {
  0%, 100% { transform: scale(0.82); box-shadow: 0 0 7px 1px rgba(255,255,255,0.35); opacity: 0.78; }
  50%      { transform: scale(1.12); box-shadow: 0 0 15px 4px rgba(255,255,255,0.7);  opacity: 1; }
}
.cc-working__txt {
  position: relative; z-index: 1;
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  background: linear-gradient(90deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0.4) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: cc-shimmer 2s linear infinite;
}
@keyframes cc-shimmer { to { background-position: -200% 0; } }
.cc-working__txt::after { content: ''; animation: cc-ellipsis 1.5s steps(4, end) infinite; }
@keyframes cc-ellipsis { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75%, 100% { content: '...'; } }

/* ─── Live task board — what the agent / swarm is working through ─── */
.cc-taskboard {
  margin: 12px 0; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}
.cc-taskboard__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 9px;
}
.cc-taskboard__title {
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  text-transform: uppercase; color: rgba(255,255,255,0.65);
}
.cc-taskboard__count { font-size: 11px; color: rgba(255,255,255,0.5); }
.cc-taskboard__list { display: flex; flex-direction: column; gap: 4px; }
.cc-task {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: 9px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.cc-task__pill {
  flex: 0 0 auto; width: 16px; text-align: center;
  font-size: 11px; color: rgba(255,255,255,0.55);
}
.cc-task__title {
  flex: 1 1 auto; min-width: 0;
  font-size: 13px; color: rgba(255,255,255,0.9);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cc-task__who {
  flex: 0 0 auto; font-size: 10.5px; color: rgba(255,255,255,0.5);
  padding: 1px 7px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
}
.cc-task__status { flex: 0 0 auto; font-size: 10.5px; color: rgba(255,255,255,0.45); }
/* running — breathing white dot + brighter glass */
.cc-task--running { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.14); }
.cc-task--running .cc-task__pill { color: #fff; animation: cc-orb-breathe 1.7s ease-in-out infinite; }
.cc-task--running .cc-task__status { color: rgba(255,255,255,0.8); }
/* done — dim + checked */
.cc-task--done { opacity: 0.55; }
.cc-task--done .cc-task__pill { color: rgba(255,255,255,0.85); }
.cc-task--done .cc-task__title { text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.3); }
/* blocked — amber-free, just a brighter warning glyph */
.cc-task--blocked .cc-task__pill { color: #fff; }
.cc-task--blocked .cc-task__status { color: rgba(255,255,255,0.75); }

.cc-tab__pin {
  font: 600 10px/1 ui-sans-serif, system-ui;
  color: rgba(180, 200, 255, 0.86);
}
.cc-tab__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
  text-align: center;          /* Safari-style centered labels */
}
.cc-tab__close {
  display: grid; place-items: center;
  width: 18px; height: 18px;
  border-radius: 5px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.55);
  font: 400 14px/1 ui-sans-serif, system-ui;
  cursor: pointer;
  opacity: 0;
  transition: opacity 140ms ease, background 140ms ease;
}
.cc-tab:hover .cc-tab__close,
.cc-tab--active .cc-tab__close { opacity: 1; }
.cc-tab__close:hover { background: rgba(255, 255, 255, 0.10); color: rgba(255, 255, 255, 0.96); }

.cc-newtab {
  display: grid; place-items: center;
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.20);
  color: rgba(255, 255, 255, 0.78);
  font: 400 18px/1 ui-sans-serif, system-ui;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.cc-newtab:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.40);
  color: rgba(255, 255, 255, 0.96);
}
.cc-newtab[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ── Saved-missions dropdown (⌖) — body-level liquid glass ────────── */
.cc-archive-pop {
  position: fixed;
  z-index: 3000;
  width: min(380px, 92vw);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(44px) saturate(170%);
  -webkit-backdrop-filter: blur(44px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  animation: cc-pop-in 160ms ease;
}
@keyframes cc-pop-in { from { opacity: 0; transform: translateY(-6px); } }
.cc-archive-pop__head {
  padding: 12px 16px 10px;
  font: 600 12px/1.2 ui-sans-serif, system-ui;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cc-archive-pop__list {
  max-height: 340px;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
}
.cc-archive-pop__list::-webkit-scrollbar { width: 8px; }
.cc-archive-pop__list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 8px; }
.cc-archive-pop__row {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  text-align: left;
  min-width: 0;
  transition: background 130ms ease;
}
.cc-archive-pop__row:hover { background: rgba(255, 255, 255, 0.09); }
.cc-archive-pop__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 12.5px/1.3 ui-sans-serif, system-ui;
}
.cc-archive-pop__meta {
  flex: 0 0 auto;
  font: 400 10.5px/1.2 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}
.cc-archive-pop__del {
  flex: 0 0 auto;
  min-width: 18px;
  padding: 2px 5px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.40);
  font: 500 12px/1 ui-sans-serif, system-ui;
  white-space: nowrap;
  transition: background 130ms ease, color 130ms ease;
}
.cc-archive-pop__del:hover { background: rgba(248, 113, 113, 0.18); color: #fecaca; }
.cc-icon-btn--stop { color: #fecaca; border-color: rgba(248, 113, 113, 0.35); }
.cc-icon-btn--stop:hover { background: rgba(248, 113, 113, 0.15); }

.cc-archive-pop__empty {
  padding: 22px 16px;
  text-align: center;
  font: 400 12px/1.5 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.50);
}

/* ─── Empty state ───────────────────────────────────────────────── */
.cc-empty {
  display: flex; flex-direction: column; gap: 24px;
  padding: 32px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(40px) saturate(170%);
  -webkit-backdrop-filter: blur(40px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 30px 80px rgba(0, 0, 0, 0.30);
}
.cc-empty__head { max-width: 720px; }
.cc-empty__eyebrow {
  font: 600 10.5px/1 ui-sans-serif, system-ui;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.cc-empty__title {
  font: 600 30px/1.15 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.98);
  margin: 8px 0 8px;
}
.cc-empty__sub {
  font: 400 14px/1.6 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.66);
  max-width: 620px;
  margin: 0 0 16px;
}
.cc-btn-lg { font-size: 14px !important; padding: 12px 22px !important; }

.cc-starters__label {
  font: 600 11px/1 ui-sans-serif, system-ui;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}
.cc-starters__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.cc-starter {
  display: flex; align-items: flex-start; gap: 10px;
  text-align: left;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.82);
  font: 500 13px/1.45 ui-sans-serif, system-ui;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.cc-starter:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateY(-1px);
}
.cc-starter__spark {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 7px;
  background: rgba(180, 200, 255, 0.14);
  color: rgba(200, 220, 255, 0.96);
  font: 600 13px/1 ui-sans-serif, system-ui;
}

/* ─── Active tab pane ───────────────────────────────────────────── */
.cc-tabpane {
  display: flex; flex-direction: column;
  /* 2026-06-04 — fill the section frame (was calc(100vh-200px) + min 480 which
     overflowed the fixed pane and forced a page-pane scroll). The transcript
     (.cc-stream) is the internal scroller; the input bar stays pinned. */
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(40px) saturate(170%);
  -webkit-backdrop-filter: blur(40px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 30px 80px rgba(0, 0, 0, 0.30);
  overflow: hidden;
}

/* 2026-06-05 (K) — single compact row: title left, coins meter + menu at the
   right corner. Status chip dropped (the tab dot carries status). */
.cc-tabhead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
}
.cc-tabhead__left { flex: 1; min-width: 0; }
.cc-tabhead__title {
  font: 600 20px/1.2 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.96);
  margin: 0;
  padding: 4px 6px;
  border-radius: 7px;
  outline: none;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-tabhead__title:hover { background: rgba(255, 255, 255, 0.04); }
.cc-tabhead__title:focus { background: rgba(255, 255, 255, 0.08); }
.cc-tabhead__meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 6px;
  font: 500 11.5px/1 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.62);
}
.cc-tabhead__cost {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cc-status-chip {
  padding: 4px 9px;
  border-radius: 999px;
  font: 600 10.5px/1 ui-sans-serif, system-ui;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.cc-status--idle      { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.70); }
.cc-status--running,
.cc-status--planning  { background: rgba(180, 200, 255, 0.14); color: rgba(200, 220, 255, 0.96); }
.cc-status--awaiting_approval { background: rgba(255, 200, 110, 0.14); color: rgba(255, 220, 170, 0.96); }
.cc-status--done      { background: rgba(110, 220, 150, 0.14); color: rgba(180, 240, 200, 0.96); }
.cc-status--failed,
.cc-status--cancelled { background: rgba(255, 130, 130, 0.14); color: rgba(255, 200, 200, 0.96); }

.cc-tabhead__right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; font: 500 11.5px/1 ui-sans-serif, system-ui; color: rgba(255, 255, 255, 0.62); }
.cc-icon-btn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.78);
  font: 500 13px/1 ui-sans-serif, system-ui;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.cc-icon-btn:hover  { background: rgba(255, 255, 255, 0.10); color: rgba(255, 255, 255, 0.96); }
.cc-icon-btn.is-on  { background: rgba(180, 200, 255, 0.14); border-color: rgba(180, 200, 255, 0.34); color: rgba(200, 220, 255, 0.96); }
.cc-icon-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.cc-icon-btn svg { width: 16px; height: 16px; }

/* Header menu dropdown */
.cc-menu-wrap { position: relative; }
.cc-menu {
  position: absolute;
  top: 36px; right: 0;
  z-index: 30;
  min-width: 220px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.cc-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 11px;
  border-radius: 8px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.86);
  font: 500 12.5px/1.3 ui-sans-serif, system-ui;
  cursor: pointer;
  transition: background 120ms ease;
}
.cc-menu button:hover { background: rgba(255, 255, 255, 0.10); color: rgba(255, 255, 255, 0.98); }
.cc-menu__danger:hover { background: rgba(248, 113, 113, 0.16); color: rgba(254, 200, 200, 0.96); }

/* ─── Message stream ────────────────────────────────────────────── */
.cc-stream {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 18px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.cc-stream::-webkit-scrollbar { width: 8px; }
.cc-stream::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.10); border-radius: 4px; }

.cc-stream-empty {
  padding: 50px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.60);
}
.cc-stream-empty__title {
  font: 600 14.5px/1.3 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 4px;
}
.cc-stream-empty__sub {
  font: 400 12.5px/1.5 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.62);
}

.cc-msg {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cc-msg__head {
  display: flex; align-items: center; gap: 8px;
  font: 600 11.5px/1 ui-sans-serif, system-ui;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}
.cc-msg__body {
  font: 400 13.5px/1.6 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.92);
  word-wrap: break-word;
}
.cc-msg__cost {
  margin-left: auto;
  font: 500 10.5px/1 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.55);
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}
.cc-msg__actions {
  display: flex; gap: 4px; margin-top: 6px;
}
.cc-link {
  font: 500 11.5px/1 ui-sans-serif, system-ui;
  color: rgba(180, 200, 255, 0.92);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 7px;
}
.cc-link:hover { background: rgba(180, 200, 255, 0.10); }

.cc-msg--user {
  background: rgba(180, 200, 255, 0.06);
  border-color: rgba(180, 200, 255, 0.20);
}
.cc-msg--user .cc-msg__head { color: rgba(200, 220, 255, 0.92); }

.cc-msg--orch {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}
.cc-msg--agent {
  background: rgba(245, 200, 130, 0.05);
  border-color: rgba(245, 200, 130, 0.16);
}
.cc-msg--agent .cc-msg__head { color: rgba(255, 220, 170, 0.92); }

.cc-msg--output {
  background: rgba(110, 220, 150, 0.06);
  border-color: rgba(110, 220, 150, 0.22);
}
.cc-msg--output .cc-msg__head { color: rgba(180, 240, 200, 0.96); }

.cc-msg--system {
  font: 500 11.5px/1.4 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 6px 12px;
  background: transparent;
  border: 0;
}

.cc-msg--live {
  background: rgba(180, 200, 255, 0.05);
  border-color: rgba(180, 200, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(180, 200, 255, 0.10) inset,
              0 0 18px rgba(180, 200, 255, 0.10);
}
.cc-msg--live .cc-msg__head { color: rgba(200, 220, 255, 0.96); }
.cc-msg__live-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(180, 200, 255, 0.98), rgba(120, 140, 220, 0.85));
  box-shadow: 0 0 10px rgba(180, 200, 255, 0.55);
  animation: cc-pulse 1.2s ease-in-out infinite;
  margin-left: auto;
}
.cc-live-thinking {
  font-style: italic;
  color: rgba(200, 220, 255, 0.80);
}
.cc-live-steps {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 4px;
}
.cc-live-step {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 10px; align-items: baseline;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  font: 400 12px/1.4 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.74);
}
.cc-live-step__stage {
  font: 600 10.5px/1 ui-sans-serif, system-ui;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(200, 220, 255, 0.86);
}
.cc-live-step__time {
  font: 500 10.5px/1 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.50);
}

/* Reconnect banner — shown when watchdog switches to a fresh server */
.cc-msg--reconnect {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(120, 220, 180, 0.06);
  border: 1px solid rgba(120, 220, 180, 0.24);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: 0 0 16px rgba(120, 220, 180, 0.08);
}
.cc-reconnect__icon {
  font-size: 18px; line-height: 1; flex-shrink: 0; margin-top: 1px;
  color: rgba(120, 220, 180, 0.90);
  animation: cc-spin 1.6s linear infinite;
}
.cc-reconnect__text {
  display: flex; flex-direction: column; gap: 3px; flex: 1;
}
.cc-reconnect__text strong {
  font: 600 12.5px/1 ui-sans-serif, system-ui;
  color: rgba(140, 230, 190, 0.96);
  letter-spacing: 0.02em;
}
.cc-reconnect__text span {
  font: 400 12px/1.4 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.70);
}
@keyframes cc-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.cc-msg--gate {
  background: rgba(255, 200, 110, 0.08);
  border-color: rgba(255, 200, 110, 0.28);
}
.cc-msg--gate .cc-msg__head { color: rgba(255, 220, 170, 0.96); }

/* Output payloads */
.cc-output-image,
.cc-output-images img {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.cc-output-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.cc-output-file,
.cc-output-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(200, 220, 255, 0.96);
  text-decoration: none;
  font: 500 12.5px/1 ui-sans-serif, system-ui;
}
.cc-output-list {
  margin: 8px 0 0;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.85);
  font: 400 13px/1.55 ui-sans-serif, system-ui;
}

/* ─── Input bar — single rounded glass row, icons inside ───────── */
.cc-inputbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 12px;
  margin: 12px 16px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: border-color 160ms ease, background 160ms ease;
}
.cc-inputbar:focus-within {
  border-color: rgba(180, 200, 255, 0.42);
  background: rgba(255, 255, 255, 0.09);
}
.cc-inputbar.is-disabled { opacity: 0.6; }

/* Icon buttons inside the bar — flat, no border, hover ring */
.cc-input-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.cc-input-icon:hover  { background: rgba(255, 255, 255, 0.10); color: rgba(255, 255, 255, 0.98); }
.cc-input-icon:active { background: rgba(255, 255, 255, 0.16); }
.cc-input-icon[disabled] { opacity: 0.4; cursor: not-allowed; }
.cc-input-icon svg { width: 18px; height: 18px; }
.cc-input-icon--rec {
  background: rgba(248, 113, 113, 0.22) !important;
  color: rgba(254, 202, 202, 0.98) !important;
  animation: cc-rec-pulse 1.2s ease-in-out infinite;
}
@keyframes cc-rec-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(248, 113, 113, 0); }
}

/* Textarea — borderless, fills middle */
.cc-input {
  flex: 1;
  min-width: 0;                  /* flexbox shrink fix */
  min-height: 28px;
  max-height: 160px;
  padding: 6px 4px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.96);
  font: 400 14px/1.5 ui-sans-serif, system-ui;
  resize: none;
  outline: none;
  overflow-y: auto;
}
.cc-input::placeholder { color: rgba(255, 255, 255, 0.45); }
.cc-input:disabled { cursor: not-allowed; }

/* Send button — pill on the right */
.cc-send-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.98);
  font: 600 13px/1 ui-sans-serif, system-ui;
  cursor: pointer;
  transition: background 120ms ease, transform 80ms ease;
}
.cc-send-btn:hover  { background: rgba(255, 255, 255, 0.22); }
.cc-send-btn:active { transform: scale(0.97); }
.cc-send-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.cc-send-kbd {
  font: 500 11px/1 ui-sans-serif, system-ui;
  opacity: 0.7;
  margin-left: 2px;
}

/* ─── Drag-reorder visuals ──────────────────────────────────────── */
.cc-tab--dragging { opacity: 0.5; }
.cc-tab--dragover {
  border-color: rgba(180, 200, 255, 0.50) !important;
  box-shadow: 0 0 0 1px rgba(180, 200, 255, 0.20) inset,
              0 0 16px rgba(180, 200, 255, 0.20);
}

/* Archive button (in tab strip, after new-tab) */
.cc-newtab--archive {
  border-style: solid;
  font-size: 14px !important;
}

/* ─── Attachments (pending + on user message) ──────────────────── */
.cc-inputbar-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 160ms ease;
}
.cc-inputbar-wrap.cc-dragover {
  background: rgba(180, 200, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(180, 200, 255, 0.20) inset;
}

.cc-attachments {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 18px 0;
}
.cc-attachment {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font: 500 12px/1.3 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.88);
  max-width: 260px;
}
.cc-attachment__thumb {
  width: 28px; height: 28px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.10);
}
.cc-attachment__icon {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.10);
  font: 600 14px/1 ui-sans-serif, system-ui;
}
.cc-attachment__icon--spin {
  animation: cc-attach-spin 1s linear infinite;
  color: rgba(165, 200, 255, 0.9);
}
.cc-attachment--uploading { opacity: 0.7; }
@keyframes cc-attach-spin {
  to { transform: rotate(360deg); }
}
.cc-attachment__name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 140px;
}
.cc-attachment__size {
  font: 500 10.5px/1 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.55);
}
.cc-attachment__remove {
  display: grid; place-items: center;
  width: 18px; height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  font: 400 13px/1 ui-sans-serif, system-ui;
  cursor: pointer;
}
.cc-attachment__remove:hover {
  background: rgba(248, 113, 113, 0.20);
  color: rgba(254, 200, 200, 0.96);
}

.cc-msg__attachments {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 6px;
}
.cc-msg__attach-img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.cc-msg__attach-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font: 500 12px/1 ui-sans-serif, system-ui;
  color: rgba(200, 220, 255, 0.92);
  text-decoration: none;
}

/* ─── Pre-flight cost badge (sits between mic and Send) ────────── */
.cc-send-group {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.cc-cost-badge {
  font: 600 11.5px/1 ui-sans-serif, system-ui;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(110, 220, 150, 0.10);
  border: 1px solid rgba(110, 220, 150, 0.24);
  color: rgba(180, 240, 200, 0.96);
  white-space: nowrap;
}
.cc-cost-badge--tiny    { background: rgba(110, 220, 150, 0.08); border-color: rgba(110, 220, 150, 0.20); color: rgba(180, 240, 200, 0.92); }
.cc-cost-badge--small   { background: rgba(110, 220, 150, 0.10); border-color: rgba(110, 220, 150, 0.24); color: rgba(180, 240, 200, 0.96); }
.cc-cost-badge--medium  { background: rgba(255, 200, 110, 0.12); border-color: rgba(255, 200, 110, 0.28); color: rgba(255, 220, 170, 0.96); }
.cc-cost-badge--large   { background: rgba(255, 160, 100, 0.14); border-color: rgba(255, 160, 100, 0.32); color: rgba(255, 210, 170, 0.96); }
.cc-cost-badge--heavy   { background: rgba(248, 113, 113, 0.16); border-color: rgba(248, 113, 113, 0.36); color: rgba(254, 200, 200, 0.96); }

/* ─── Tab archive dialog ────────────────────────────────────────── */
.cc-archive-list { display: flex; flex-direction: column; gap: 6px; }
.cc-archive-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.cc-archive-row__body { flex: 1; min-width: 0; }
.cc-archive-row__name {
  font: 600 13px/1.3 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.96);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cc-archive-row__meta {
  font: 400 11.5px/1.4 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.58);
  margin-top: 2px;
}

/* ─── Tab-limit dialog rows ─────────────────────────────────────── */
.cc-limit-list { display: flex; flex-direction: column; gap: 4px; }
.cc-limit-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.cc-limit-row__name {
  flex: 1; min-width: 0;
  font: 500 13px/1.3 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Brand picker dialog rows ──────────────────────────────────── */
/* ─── Toast ─────────────────────────────────────────────────────── */
.cc-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 14px);
  z-index: 11000;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(38px) saturate(180%);
  -webkit-backdrop-filter: blur(38px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font: 500 13px/1.4 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 240ms ease, transform 240ms cubic-bezier(.2,.7,.2,1);
}
.cc-toast--in { opacity: 1; transform: translate(-50%, 0); }
.cc-toast--err {
  background: rgba(255, 100, 100, 0.12);
  border-color: rgba(255, 130, 130, 0.30);
  color: rgba(255, 220, 220, 0.96);
}

/* ════════════════════════════════════════════════════════════════════
   Rich output rendering — video, audio, scenes, structured plans,
   story manifests, sub-mission cards
   ════════════════════════════════════════════════════════════════════ */

/* ─── Inline video ──────────────────────────────────────────────── */
.cc-output-video {
  display: block;
  width: 100%;
  max-width: 640px;
  margin-top: 10px;
  border-radius: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.30);
}
.cc-output-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.cc-output-videos .cc-output-video { margin-top: 0; max-width: none; }

/* ─── Inline audio ──────────────────────────────────────────────── */
.cc-output-audio {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.cc-output-audio audio {
  width: 100%;
  max-width: 480px;
  outline: none;
}
.cc-output-audio__title {
  font: 600 12.5px/1.2 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.88);
}
.cc-output-audios { display: flex; flex-direction: column; gap: 8px; }

/* ─── Scene carousel ────────────────────────────────────────────── */
.cc-output-scenes {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-bottom: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.cc-output-scenes::-webkit-scrollbar { height: 6px; }
.cc-output-scenes::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18); border-radius: 3px;
}
.cc-scene {
  position: relative;
  flex: 0 0 140px;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  scroll-snap-align: start;
  transition: transform 140ms ease, border-color 140ms ease;
}
.cc-scene--playable { cursor: pointer; }
.cc-scene--playable:hover {
  transform: translateY(-2px);
  border-color: rgba(180, 200, 255, 0.40);
}
.cc-scene__thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cc-scene__thumb--blank {
  background: linear-gradient(135deg, rgba(120,140,180,0.18), rgba(80,100,140,0.18));
}
.cc-scene__num {
  position: absolute;
  top: 6px; left: 6px;
  padding: 2px 7px;
  font: 700 10px/1 ui-sans-serif, system-ui;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.cc-scene__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 50%;
  font: 700 14px/1 ui-sans-serif, system-ui;
  opacity: 0;
  transition: opacity 140ms ease;
  pointer-events: none;
}
.cc-scene--playable:hover .cc-scene__play { opacity: 1; }
.cc-scene__prompt {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 6px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0));
  font: 400 10.5px/1.3 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.92);
  max-height: 50%;
  overflow: hidden;
}
.cc-scene-player {
  width: 100%;
  max-height: 70vh;
  background: #000;
  border-radius: 8px;
}
.rt-dlg--wide { width: min(900px, calc(100vw - 48px)); }

/* ─── Orchestration plan card ──────────────────────────────────── */
.cc-plan {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(180, 200, 255, 0.05);
  border: 1px solid rgba(180, 200, 255, 0.18);
}
.cc-plan__label {
  font: 600 10.5px/1 ui-sans-serif, system-ui;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(180, 200, 255, 0.78);
  margin-bottom: 6px;
}
.cc-plan__north {
  font: 600 14px/1.4 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.96);
}
.cc-plan__goals ul, .cc-plan__steps {
  margin: 0; padding-left: 18px;
  color: rgba(255, 255, 255, 0.86);
  font: 400 13px/1.55 ui-sans-serif, system-ui;
}
.cc-plan__steps { list-style: none; padding-left: 0; }
.cc-plan__step {
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cc-plan__step-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.cc-plan__step-num {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: rgba(180, 200, 255, 0.18);
  border-radius: 999px;
  font: 700 11px/1 ui-sans-serif, system-ui;
  color: rgba(220, 230, 255, 0.96);
}
.cc-plan__step-master {
  font: 600 13px/1 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.94);
}
.cc-plan__step-dep {
  font: 500 10.5px/1 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.50);
  margin-left: auto;
}
.cc-plan__step-role {
  font: 500 11.5px/1.4 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.72);
}
.cc-plan__step-brief {
  font: 400 12px/1.5 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.66);
  margin-top: 4px;
}
.cc-plan__cohere p {
  margin: 0;
  font: 400 12.5px/1.55 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.82);
}
.cc-plan__cta {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.10);
}
.cc-plan__exec { font-weight: 600; }
.cc-plan__hint {
  font: 400 11.5px/1.4 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.55);
}
.cc-plan__executed {
  font: 600 12px/1 ui-sans-serif, system-ui;
  color: rgba(180, 240, 200, 0.94);
  padding: 8px 10px;
  background: rgba(110, 220, 150, 0.10);
  border-radius: 8px;
  border: 1px solid rgba(110, 220, 150, 0.22);
}

/* ─── Creative direction card (Director) ─────────────────────── */
.cc-direction {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.cc-direction__card {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.cc-direction__card.is-chosen {
  border-color: rgba(180, 200, 255, 0.45);
  background: rgba(180, 200, 255, 0.08);
}
.cc-direction__title {
  font: 700 14px/1.2 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: 4px;
}
.cc-direction__logline {
  font: 400 12.5px/1.5 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 10px;
  font-style: italic;
}
.cc-direction__rows {
  display: flex; flex-direction: column; gap: 4px;
  font: 400 12px/1.45 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.82);
}
.cc-direction__rows > div span {
  display: inline-block;
  min-width: 60px;
  font: 600 10.5px/1 ui-sans-serif, system-ui;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.50);
  margin-right: 6px;
}

/* ─── Story manifest (compose_story final output) ─────────────── */
.cc-story-manifest {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.cc-story-manifest__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.cc-story-manifest__title {
  font: 700 15px/1.2 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.98);
}
.cc-story-manifest__meta {
  display: inline-flex; gap: 10px;
  font: 500 12px/1 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.62);
}
.cc-story-manifest__final { margin-top: 4px; }
.cc-story-manifest__scenes summary {
  cursor: pointer;
  font: 500 12px/1.2 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.72);
  padding: 6px 0;
}

/* ─── Sub-mission cards (orchestrator children) ───────────────── */
.cc-submissions {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cc-submissions__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.cc-submissions__title {
  font: 700 11px/1 ui-sans-serif, system-ui;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}
.cc-submissions__count {
  font: 500 12px/1 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.56);
}
.cc-submissions__list { display: flex; flex-direction: column; gap: 6px; }

.cc-submission {
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 140ms ease;
}
.cc-submission:hover { background: rgba(255, 255, 255, 0.07); }
.cc-submission--live {
  border-color: rgba(180, 200, 255, 0.28);
  background: rgba(180, 200, 255, 0.06);
}
.cc-submission__head {
  display: flex; align-items: center; gap: 8px;
}
.cc-submission__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.cc-submission__master {
  font: 600 12.5px/1 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.94);
}
.cc-submission__status {
  font: 600 10px/1 ui-sans-serif, system-ui;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  margin-left: 4px;
}
.cc-submission__cost {
  margin-left: auto;
  font: 500 11px/1 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.60);
}
.cc-submission__bar {
  margin-top: 8px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.cc-submission__bar-fill {
  height: 100%;
  background: linear-gradient(to right, rgba(180, 200, 255, 0.72), rgba(220, 200, 255, 0.72));
  transition: width 400ms ease;
}
.cc-submission__pct {
  margin-top: 4px;
  font: 500 11px/1.3 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.56);
}
.cc-submission__last {
  margin-top: 6px;
  font: 400 12px/1.45 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.74);
}
.cc-submission__output {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.10);
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease;
}
.cc-submission--open .cc-submission__output {
  max-height: 600px;
  overflow: auto;
}

/* ════════════════════════════════════════════════════════════════════
   Agent-first output rendering — markdown, master shapes,
   web/tool universals
   ════════════════════════════════════════════════════════════════════ */

/* ─── Markdown ──────────────────────────────────────────────────── */
.cc-md > * + * { margin-top: 8px; }
.cc-md p { margin: 0; font: 400 13.5px/1.55 ui-sans-serif, system-ui; color: rgba(255,255,255,0.90); }
.cc-md-h2 { font: 700 17px/1.3 ui-sans-serif, system-ui; color: rgba(255,255,255,0.98); margin-top: 14px !important; }
.cc-md-h3 { font: 700 15px/1.3 ui-sans-serif, system-ui; color: rgba(255,255,255,0.96); margin-top: 12px !important; }
.cc-md-h4 { font: 600 13.5px/1.3 ui-sans-serif, system-ui; color: rgba(255,255,255,0.92); margin-top: 10px !important; letter-spacing: 0.01em; }
.cc-md-list { margin: 0 0 0 18px; padding: 0; color: rgba(255,255,255,0.86); font: 400 13px/1.55 ui-sans-serif, system-ui; }
.cc-md-list li { margin: 2px 0; }
.cc-md-quote {
  margin: 0;
  padding: 8px 12px;
  border-left: 3px solid rgba(180, 200, 255, 0.55);
  background: rgba(180, 200, 255, 0.05);
  border-radius: 0 8px 8px 0;
  font: 400 12.5px/1.55 ui-sans-serif, system-ui;
  color: rgba(255,255,255,0.82);
}
.cc-md-icode {
  font: 600 12px/1.4 ui-monospace, 'SF Mono', Menlo, monospace;
  padding: 1.5px 6px;
  border-radius: 5px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,220,180,0.92);
}
.cc-md-code {
  position: relative;
  margin: 8px 0;
  padding: 28px 14px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(255,255,255,0.10);
  overflow-x: auto;
  font: 500 12.5px/1.55 ui-monospace, 'SF Mono', Menlo, monospace;
  color: rgba(220, 230, 245, 0.92);
  white-space: pre;
}
.cc-md-code code { background: none; padding: 0; color: inherit; font: inherit; }
.cc-md-code__lang {
  position: absolute; top: 6px; left: 12px;
  font: 600 10px/1 ui-sans-serif, system-ui;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(180, 200, 255, 0.66);
}
.cc-md-code__copy {
  position: absolute; top: 4px; right: 6px;
  padding: 4px 8px;
  font: 600 10.5px/1 ui-sans-serif, system-ui;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: rgba(255,255,255,0.78);
  cursor: pointer;
}
.cc-md-code__copy:hover { background: rgba(255,255,255,0.12); }
.cc-md-img {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: 480px;
  margin: 8px 0;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

/* ─── Shared chip + label primitives ────────────────────────────── */
.cc-chip {
  display: inline-block;
  padding: 3px 9px;
  margin: 2px 4px 2px 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  font: 600 11px/1.3 ui-sans-serif, system-ui;
  color: rgba(255,255,255,0.86);
}
.cc-chip--soft { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.cc-chip--good { background: rgba(110,220,150,0.12); border-color: rgba(110,220,150,0.28); color: rgba(180,240,200,0.96); }
.cc-chip--bad  { background: rgba(255,130,130,0.12); border-color: rgba(255,130,130,0.28); color: rgba(255,200,200,0.96); }

/* ─── Daily briefing ────────────────────────────────────────────── */
.cc-briefing { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.cc-briefing__summary { padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.cc-briefing__section { padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); border-left: 3px solid; }
.cc-briefing__section--urgent    { border-color: rgba(255,130,130,0.65); }
.cc-briefing__section--important { border-color: rgba(255,200,110,0.65); }
.cc-briefing__section--fyi       { border-color: rgba(180,200,255,0.55); }
.cc-briefing__section--deferred  { border-color: rgba(255,255,255,0.25); opacity: 0.78; }
.cc-briefing__section--actions   { border-color: rgba(110,220,150,0.55); }
.cc-briefing__label { font: 700 10.5px/1 ui-sans-serif, system-ui; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.66); margin-bottom: 6px; }
.cc-briefing__section ul { margin: 0; padding-left: 18px; color: rgba(255,255,255,0.88); font: 400 12.5px/1.5 ui-sans-serif, system-ui; }
.cc-briefing__detail { color: rgba(255,255,255,0.60); }

/* ─── Brand manifest ────────────────────────────────────────────── */
.cc-brand { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.cc-brand__row { display: flex; gap: 12px; padding: 6px 0; }
.cc-brand__row > span { flex: 0 0 80px; font: 600 10.5px/1 ui-sans-serif, system-ui; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.50); padding-top: 3px; }
.cc-brand__row > div { flex: 1; min-width: 0; color: rgba(255,255,255,0.88); font: 400 13px/1.5 ui-sans-serif, system-ui; }
.cc-brand__chips { display: flex; flex-wrap: wrap; }
.cc-brand__voice { padding: 10px 12px; margin-top: 6px; border-radius: 10px; background: rgba(180,200,255,0.04); border: 1px solid rgba(180,200,255,0.14); }
.cc-brand__voice-row { padding: 4px 0; font: 400 12.5px/1.5 ui-sans-serif, system-ui; color: rgba(255,255,255,0.86); }
.cc-brand__voice-row span { display: inline-block; min-width: 60px; font: 600 10.5px/1 ui-sans-serif, system-ui; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.50); margin-right: 6px; }
.cc-brand__disclaimer { margin-top: 6px; padding: 8px 12px; border-radius: 8px; background: rgba(255,200,110,0.08); border: 1px solid rgba(255,200,110,0.22); font: 500 11.5px/1.45 ui-sans-serif, system-ui; color: rgba(255,220,170,0.94); }

/* ─── Build plan ───────────────────────────────────────────────── */
.cc-buildplan { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.cc-buildplan__brief { font: 400 13px/1.55 ui-sans-serif, system-ui; color: rgba(255,255,255,0.88); }
.cc-buildplan__row { display: flex; gap: 12px; }
.cc-buildplan__row > span { flex: 0 0 80px; font: 600 10.5px/1 ui-sans-serif, system-ui; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.50); padding-top: 3px; }
.cc-buildplan__row > div { flex: 1; min-width: 0; color: rgba(255,255,255,0.88); font: 400 13px/1.5 ui-sans-serif, system-ui; }
.cc-buildplan__files ul { margin: 6px 0 0; padding-left: 18px; font: 400 12.5px/1.55 ui-sans-serif, system-ui; color: rgba(255,255,255,0.84); }
.cc-buildplan__more { color: rgba(255,255,255,0.50); font-style: italic; }
.cc-deploy-link { display: inline-block; margin-top: 6px; padding: 8px 12px; border-radius: 8px; background: rgba(110,220,150,0.10); border: 1px solid rgba(110,220,150,0.24); color: rgba(180,240,200,0.96); font: 600 12px/1.3 ui-sans-serif, system-ui; text-decoration: none; }
.cc-deploy-link:hover { background: rgba(110,220,150,0.16); }

/* ─── Research report ──────────────────────────────────────────── */
.cc-research { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.cc-research__q { font: 600 14px/1.4 ui-sans-serif, system-ui; color: rgba(255,255,255,0.96); }
.cc-research__row { display: flex; gap: 12px; }
.cc-research__row > span { flex: 0 0 80px; font: 600 10.5px/1 ui-sans-serif, system-ui; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.50); padding-top: 3px; }
.cc-research__row > div { flex: 1; min-width: 0; color: rgba(255,255,255,0.86); font: 400 13px/1.5 ui-sans-serif, system-ui; }
.cc-research__findings { display: flex; flex-direction: column; gap: 8px; }
.cc-research__finding { display: flex; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,0.03); }
.cc-research__finding > div { flex: 1; min-width: 0; color: rgba(255,255,255,0.88); font: 400 13px/1.5 ui-sans-serif, system-ui; }
.cc-research__conf { flex: 0 0 44px; padding: 3px 8px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: rgba(180,200,255,0.10); color: rgba(200,220,255,0.92); font: 700 10.5px/1 ui-sans-serif, system-ui; }
.cc-research__freshness { font: 500 11px/1 ui-sans-serif, system-ui; color: rgba(255,255,255,0.50); }
.cc-research__recs ol { margin: 0; padding-left: 18px; color: rgba(255,255,255,0.88); font: 500 12.5px/1.5 ui-sans-serif, system-ui; }

/* ─── Campaign brief ───────────────────────────────────────────── */
.cc-campaign { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.cc-campaign__north { font: 700 15px/1.35 ui-sans-serif, system-ui; color: rgba(255,255,255,0.98); padding: 8px 12px; border-left: 3px solid rgba(180,200,255,0.55); background: rgba(180,200,255,0.05); border-radius: 0 8px 8px 0; }
.cc-campaign__row { display: flex; gap: 12px; }
.cc-campaign__row > span { flex: 0 0 80px; font: 600 10.5px/1 ui-sans-serif, system-ui; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.50); padding-top: 3px; }
.cc-campaign__row > div { flex: 1; min-width: 0; color: rgba(255,255,255,0.88); font: 400 13px/1.5 ui-sans-serif, system-ui; }
.cc-campaign__variants, .cc-campaign__posts { display: flex; flex-direction: column; gap: 6px; }
.cc-campaign__variant, .cc-campaign__post { padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); font: 400 12.5px/1.5 ui-sans-serif, system-ui; color: rgba(255,255,255,0.88); }

/* ─── Composition plan ─────────────────────────────────────────── */
.cc-comp { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.cc-comp__row { display: flex; gap: 12px; padding: 4px 0; }
.cc-comp__row > span { flex: 0 0 80px; font: 600 10.5px/1 ui-sans-serif, system-ui; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.50); padding-top: 3px; }
.cc-comp__row > div { flex: 1; min-width: 0; color: rgba(255,255,255,0.88); font: 400 13px/1.5 ui-sans-serif, system-ui; }

/* ─── Viral pack ───────────────────────────────────────────────── */
.cc-viral { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.cc-viral__platform { display: inline-block; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: rgba(180,200,255,0.14); color: rgba(220,230,255,0.96); font: 700 11px/1 ui-sans-serif, system-ui; letter-spacing: 0.04em; text-transform: uppercase; }
.cc-viral__hooks { display: flex; flex-direction: column; gap: 8px; }
.cc-viral__hook { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.cc-viral__hook-num { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: rgba(180,200,255,0.16); font: 700 12px/1 ui-sans-serif, system-ui; color: rgba(220,230,255,0.96); }
.cc-viral__hook-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cc-viral__copy { font: 600 13.5px/1.4 ui-sans-serif, system-ui; color: rgba(255,255,255,0.96); }
.cc-viral__visual, .cc-viral__sound { font: 400 12px/1.45 ui-sans-serif, system-ui; color: rgba(255,255,255,0.74); }
.cc-viral__row { display: flex; gap: 12px; }
.cc-viral__row > span { flex: 0 0 80px; font: 600 10.5px/1 ui-sans-serif, system-ui; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.50); padding-top: 3px; }
.cc-viral__row > div { flex: 1; min-width: 0; color: rgba(255,255,255,0.88); font: 400 13px/1.5 ui-sans-serif, system-ui; }

/* ─── Atomized pack ────────────────────────────────────────────── */
.cc-atom { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.cc-atom__source { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.cc-atom__outputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.cc-atom__output { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10); }
.cc-atom__head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.cc-atom__schedule { margin-left: auto; font: 500 10.5px/1 ui-sans-serif, system-ui; color: rgba(255,255,255,0.60); }
.cc-atom__body { color: rgba(255,255,255,0.88); font: 400 12.5px/1.5 ui-sans-serif, system-ui; }

/* ─── Search results ───────────────────────────────────────────── */
.cc-search { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.cc-search__result { display: block; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); text-decoration: none; transition: background 140ms ease; }
.cc-search__result:hover { background: rgba(255,255,255,0.07); }
.cc-search__title { font: 600 13px/1.3 ui-sans-serif, system-ui; color: rgba(180,210,255,0.96); }
.cc-search__url   { font: 400 11px/1.3 ui-sans-serif, system-ui; color: rgba(180,240,200,0.78); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-search__snippet { font: 400 12px/1.5 ui-sans-serif, system-ui; color: rgba(255,255,255,0.78); margin-top: 4px; }

/* ─── Sources ──────────────────────────────────────────────────── */
.cc-sources { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.cc-sources ol { margin: 6px 0 0; padding-left: 18px; font: 400 12px/1.55 ui-sans-serif, system-ui; color: rgba(255,255,255,0.84); }
.cc-sources a { color: rgba(180,210,255,0.92); }

/* ─── Terminal ─────────────────────────────────────────────────── */
.cc-term { margin-top: 10px; padding: 12px; border-radius: 10px; background: #0c0d10; border: 1px solid rgba(255,255,255,0.10); font: 500 12px/1.5 ui-monospace, 'SF Mono', Menlo, monospace; color: rgba(220,240,210,0.92); }
.cc-term__cmd { color: rgba(180,210,255,0.92); margin-bottom: 6px; }
.cc-term__out, .cc-term__err { margin: 0; padding: 6px 0; white-space: pre-wrap; overflow-x: auto; }
.cc-term__err { color: rgba(255,180,180,0.92); }
.cc-term__exit { margin-top: 6px; display: inline-block; padding: 2px 8px; border-radius: 6px; font: 700 10.5px/1.4 ui-sans-serif, system-ui; }
.cc-term__exit.is-ok  { background: rgba(110,220,150,0.16); color: rgba(180,240,200,0.96); }
.cc-term__exit.is-err { background: rgba(255,130,130,0.18); color: rgba(255,200,200,0.96); }

/* ─── Deployment card ──────────────────────────────────────────── */
.cc-deploy { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(0,0,0,0.32), rgba(0,0,0,0.18)); border: 1px solid rgba(255,255,255,0.14); }
.cc-deploy__head { display: flex; align-items: center; gap: 10px; }
.cc-deploy__icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #000; color: #fff; font: 700 16px/1 ui-sans-serif, system-ui; }
.cc-deploy__title { font: 700 13px/1.3 ui-sans-serif, system-ui; color: rgba(255,255,255,0.98); }
.cc-deploy__status { font: 500 11px/1.3 ui-sans-serif, system-ui; color: rgba(110,220,150,0.92); }
.cc-deploy__url { color: rgba(180,210,255,0.96); text-decoration: none; font: 600 12.5px/1.4 ui-sans-serif, system-ui; word-break: break-all; }
.cc-deploy__url:hover { text-decoration: underline; }
.cc-deploy__log { font: 500 11px/1.4 ui-sans-serif, system-ui; color: rgba(255,255,255,0.60); }

/* ─── Todos ────────────────────────────────────────────────────── */
.cc-todos { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.cc-todos__item { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,0.03); font: 400 13px/1.4 ui-sans-serif, system-ui; color: rgba(255,255,255,0.88); }
.cc-todos__box { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.32); border-radius: 4px; font: 700 11px/1 ui-sans-serif, system-ui; }
.cc-todos__item.is-done { color: rgba(255,255,255,0.50); text-decoration: line-through; }
.cc-todos__item.is-done .cc-todos__box { background: rgba(110,220,150,0.22); border-color: rgba(110,220,150,0.50); color: rgba(180,240,200,0.96); }

/* ─── Memory recall ────────────────────────────────────────────── */
.cc-memory { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: rgba(180,200,255,0.04); border: 1px solid rgba(180,200,255,0.14); }
.cc-memory ul { margin: 6px 0 0; padding-left: 18px; font: 400 12.5px/1.55 ui-sans-serif, system-ui; color: rgba(255,255,255,0.84); }

/* ─── Confirmation card (email/message sent) ──────────────────── */
.cc-confirm { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(110,220,150,0.06); border: 1px solid rgba(110,220,150,0.22); }
.cc-confirm__check { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(110,220,150,0.30); color: rgba(220,255,230,0.98); font: 700 16px/1 ui-sans-serif, system-ui; }
.cc-confirm__title { font: 700 13px/1.3 ui-sans-serif, system-ui; color: rgba(180,240,200,0.96); }
.cc-confirm__target { font: 500 12px/1.3 ui-sans-serif, system-ui; color: rgba(255,255,255,0.78); }
.cc-confirm__subject { font: 400 11.5px/1.3 ui-sans-serif, system-ui; color: rgba(255,255,255,0.60); margin-top: 2px; }

/* ─── MCP result ───────────────────────────────────────────────── */
.cc-mcp { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.cc-mcp__head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.cc-mcp__action { font: 500 12px/1.4 ui-sans-serif, system-ui; color: rgba(255,255,255,0.74); }
.cc-mcp__link { color: rgba(180,210,255,0.96); text-decoration: none; font: 600 12.5px/1.4 ui-sans-serif, system-ui; }
.cc-mcp__link:hover { text-decoration: underline; }
.cc-mcp__summary { font: 400 12.5px/1.5 ui-sans-serif, system-ui; color: rgba(255,255,255,0.84); margin-top: 6px; }

/* ─── Generic table / key-value ─────────────────────────────────── */
.cc-table-wrap { margin-top: 10px; overflow-x: auto; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); }
.cc-table { width: 100%; border-collapse: collapse; font: 400 12.5px/1.4 ui-sans-serif, system-ui; }
.cc-table th, .cc-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.88); }
.cc-table th { background: rgba(255,255,255,0.04); font: 700 11px/1 ui-sans-serif, system-ui; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.68); }
.cc-kv { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.cc-kv__row { display: flex; gap: 12px; padding: 4px 0; font: 400 12.5px/1.4 ui-sans-serif, system-ui; }
.cc-kv__key { flex: 0 0 140px; font: 600 11px/1.4 ui-sans-serif, system-ui; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.56); }
.cc-kv__val { flex: 1; min-width: 0; color: rgba(255,255,255,0.88); word-break: break-word; }

/* ─── Cross-surface link chip (CC → native surface) ─────────────── */
.cc-cross-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(180, 200, 255, 0.10);
  border: 1px solid rgba(180, 200, 255, 0.28);
  color: rgba(200, 220, 255, 0.96);
  font: 600 11.5px/1 ui-sans-serif, system-ui;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 140ms ease, border-color 140ms ease;
}
.cc-cross-link:hover {
  background: rgba(180, 200, 255, 0.18);
  border-color: rgba(180, 200, 255, 0.50);
  color: rgba(220, 230, 255, 0.98);
}

/* ─── Single live spend meter (tab head) ──────────────────────────── */
/* ONE meter for the whole mission: reasoning steps + generations +
   finalized sub-missions. No upfront fee; fills against the optional cap
   and the run pauses cleanly before crossing it. */
.cc-meter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: rgba(110, 220, 150, 0.07);
  border: 1px solid rgba(110, 220, 150, 0.20);
  color: rgba(200, 240, 215, 0.94);
  max-width: 320px;
}
.cc-meter__bar {
  position: relative;
  width: 86px; height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden; flex-shrink: 0;
}
.cc-meter__fill {
  position: absolute; inset: 0 auto 0 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(110, 220, 150, 0.85), rgba(150, 235, 180, 0.95));
  transition: width 0.5s ease;
}
.cc-meter__label {
  font: 600 11px/1 ui-sans-serif, system-ui;
  white-space: nowrap;
}
.cc-meter--nocap {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.72);
}
/* Near the cap (≥90%) — amber warning before the clean pause. */
.cc-meter.is-near {
  background: rgba(255, 190, 100, 0.12);
  border-color: rgba(255, 190, 100, 0.34);
  color: rgba(255, 220, 175, 0.98);
}
.cc-meter.is-near .cc-meter__fill {
  background: linear-gradient(90deg, rgba(255, 180, 90, 0.9), rgba(255, 140, 90, 0.98));
}

/* ─── Spending-limit chip + popover (input bar) ───────────────────── */
.cc-budget { position: relative; display: inline-flex; }
.cc-budget-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.66);
  font: 600 11.5px/1 ui-sans-serif, system-ui;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cc-budget-chip:hover { background: rgba(255, 255, 255, 0.09); color: rgba(255, 255, 255, 0.85); }
.cc-budget-chip.has-cap {
  background: rgba(110, 220, 150, 0.10);
  border-color: rgba(110, 220, 150, 0.35);
  color: rgba(170, 235, 195, 0.95);
}
.cc-budget-chip:disabled { opacity: 0.5; cursor: default; }
.cc-budget-chip__ic { width: 12px; height: 12px; flex-shrink: 0; }
.cc-budget-pop {
  position: absolute; bottom: calc(100% + 10px); right: 0;
  width: 300px; z-index: 60;
  padding: 16px;
  border-radius: 16px;
  /* Pure liquid glass — same frost recipe as .ws-section__head */
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(36px) saturate(1.7);
  backdrop-filter: blur(36px) saturate(1.7);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.10) inset,
    0 18px 48px rgba(0, 0, 0, 0.45);
  text-align: left;
}
.cc-budget-pop__title {
  display: block;
  font: 700 12.5px/1.2 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 5px;
}
.cc-budget-pop__sub {
  display: block;
  font: 500 11px/1.5 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 11px;
}
/* ── Slider-based limit picker (2026-06-03, replaced preset chips) ── */
.cc-budget-pop__readout {
  display: flex; align-items: baseline; gap: 8px;
  margin: 2px 0 4px;
}
.cc-budget-pop__readout input,
.cc-budget-pop__readout input:focus,
.cc-budget-pop__readout input:focus-visible {
  flex: 0 1 auto; min-width: 0; width: 130px;
  /* Bare number — no box, no ring, regardless of global input styling. */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  border-radius: 0 !important;
  color: rgba(255, 255, 255, 0.97);
  font: 700 21px/1.15 ui-sans-serif, system-ui;
  letter-spacing: -0.02em;
  padding: 0;
  caret-color: rgba(110, 220, 150, 0.9);
}
.cc-budget-pop__wallet {
  margin-left: auto; flex: 0 0 auto;
  font: 500 10.5px/1 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.45);
}
.cc-budget-pop__slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 24px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
/* LIGHT BEAM (K pick, 2026-06-06) — pure liquid glass + white light only.
   The filled portion is a bright white core inside a thin etched groove;
   the thumb is a small point of light with bloom. No exposure colours —
   --cap-color is intentionally ignored (the JS that sets it is harmless). */
.cc-budget-pop__slider::-webkit-slider-runnable-track {
  height: 4px; border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.85) var(--p, 100%),
    rgba(255, 255, 255, 0.06) var(--p, 100%));
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.40);
}
.cc-budget-pop__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  margin-top: -5px;
  background: #fff;
  border: none;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.80), 0 0 26px rgba(255, 255, 255, 0.35), 0 2px 8px rgba(0, 0, 0, 0.35);
  cursor: grab;
}
.cc-budget-pop__slider::-webkit-slider-thumb:active { cursor: grabbing; }
.cc-budget-pop__slider::-moz-range-track {
  height: 4px; border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.85) var(--p, 100%),
    rgba(255, 255, 255, 0.06) var(--p, 100%));
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.40);
}
.cc-budget-pop__slider::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.80), 0 0 26px rgba(255, 255, 255, 0.35), 0 2px 8px rgba(0, 0, 0, 0.35);
  cursor: grab;
}
.cc-budget-pop__scale {
  display: flex; justify-content: space-between;
  margin-top: 2px;
  font: 500 10px/1 ui-sans-serif, system-ui;
  color: rgba(255, 255, 255, 0.38);
}
