/* Layan.ai — Command Center.
   Same world as the home hero: a pale sky page with soft blue and amber light, the calligraphic wordmark, navy type with a
   lighter blue second line, and one rounded prompt. The business intro sits on top and its performance cards rest on its edge.
   Light is the default (js/theme.js); every colour comes from css/tokens.css so dark mode follows. */
.app-body { background: var(--abyss); color: var(--paper); }
.cc-backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 42% at 58% 0%, rgba(96, 157, 252, 0.26), transparent 70%),
    radial-gradient(ellipse 38% 34% at 96% 62%, rgba(96, 157, 252, 0.14), transparent 70%),
    radial-gradient(ellipse 34% 30% at 18% 96%, rgba(255, 145, 51, 0.12), transparent 70%); }
:root[data-theme="light"] .cc-backdrop {
  background:
    radial-gradient(ellipse 55% 42% at 58% 0%, rgba(170, 206, 253, 0.85), transparent 70%),
    radial-gradient(ellipse 38% 34% at 96% 62%, rgba(201, 220, 247, 0.8), transparent 70%),
    radial-gradient(ellipse 34% 30% at 18% 96%, rgba(255, 214, 180, 0.6), transparent 70%); }
.app { position: relative; z-index: 1; display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }

/* ---------- sidebar ---------- */
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 16px; padding: 18px 14px 16px; overflow-y: auto;
  border-right: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 2px 2px 6px; }
.side .brand { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; }
.side .brand-word { font-size: 2.1em; }
:root[data-theme="light"] .side .brand-word { background-image: linear-gradient(100deg, #0B1B3F 0%, var(--cobalt) 60%, var(--signal) 100%); }
/* the play swarm only lives in site headers; here the mark stays visible and the free wisps come from js/cc-wisps.js */
.side .brand.is-play .brand-mark { width: 26px; opacity: 1; }
.side .brand.is-play .brand-mark .whisp-canvas { display: block; }
.side .theme-toggle { flex: 0 0 auto; }
.ws { display: grid; grid-template-columns: 32px 1fr 12px; align-items: center; gap: 10px; text-align: left; padding: 8px 10px 8px 8px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--ink); color: var(--paper); box-shadow: 0 10px 24px -20px rgba(11, 27, 63, 0.5); transition: border-color var(--t-fast); }
.ws:hover { border-color: var(--line-strong); }
.ws-avatar { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, #609DFC, #254EC1); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: var(--fs-sm); }
.ws-name { display: flex; flex-direction: column; font-size: var(--fs-sm); font-weight: 600; line-height: 1.25; }
.ws-name small { font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.side-nav { display: grid; gap: 2px; }
.side-label { margin: 10px 10px 4px; font-size: 0.7rem; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
.side-label:first-child { margin-top: 0; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-md); font-size: var(--fs-sm); color: var(--paper-2);
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-ui) var(--ease-out); }
.side-nav a:hover { background: rgba(96, 157, 252, 0.08); color: var(--paper); }
.side-nav a.is-on { background: var(--ink); color: var(--paper); font-weight: 500; box-shadow: 0 0 0 1px var(--line), 0 8px 20px -16px rgba(11, 27, 63, 0.55); }
.side-nav a.is-on .ic { color: var(--signal); }
.side-nav .ic { width: 16px; height: 16px; flex: 0 0 auto; color: var(--muted); transition: color var(--t-fast); }
.side-nav .count { margin-left: auto; font-size: 0.7rem; font-weight: 600; color: var(--paper-2); background: rgba(96, 157, 252, 0.12); padding: 1px 8px; border-radius: var(--r-pill); }
.side-nav .count-warn { color: var(--on-live); background: var(--live); }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.credits { padding: 12px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--ink); display: grid; gap: 8px; font-size: var(--fs-xs); color: var(--paper-2); }
.credits-row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.meter { height: 6px; border-radius: 3px; background: rgba(96, 157, 252, 0.14); overflow: hidden; }
.meter span { display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, #609DFC, #254EC1); border-radius: 3px; transition: width var(--t-slow) var(--ease-out); }
.side-link { font-size: var(--fs-xs); color: var(--muted); padding: 0 8px; }
.side-link:hover { color: var(--paper); }

/* ---------- main ---------- */
.main { padding: 16px clamp(16px, 2.6vw, 36px) 64px; display: grid; gap: 20px; align-content: start; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar h1 { font-size: var(--fs-md); font-weight: 600; color: var(--paper-2); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--glass-2); color: var(--muted); width: 260px; }
.search input { flex: 1; background: none; border: 0; outline: none; color: var(--paper); font: inherit; font-size: var(--fs-sm); min-width: 0; }
.search kbd { font-family: var(--font-mono); font-size: 0.62rem; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line-strong); color: var(--muted); }
.search:focus-within { border-color: var(--signal); }
.btn-sm { height: 36px; padding: 0 14px; font-size: var(--fs-xs); border-radius: var(--r-pill); }
.btn-xs { height: 28px; padding: 0 12px; font-size: var(--fs-xs); border-radius: var(--r-pill); }

/* ---------- business intro + performance cards ---------- */
.intro { display: grid; }
.intro-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: start; padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 44px) calc(clamp(24px, 3vw, 40px) + 56px);
  border-radius: 28px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 30px 70px -48px rgba(11, 27, 63, 0.55); }
.intro-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 88% 0%, rgba(96, 157, 252, 0.22), transparent 70%), radial-gradient(ellipse 40% 60% at 0% 100%, rgba(255, 145, 51, 0.1), transparent 70%); }
.intro-mode { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: var(--r-pill); background: var(--cobalt); color: #fff; font-size: var(--fs-xs); font-weight: 600; }
.intro-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.6); }
.intro-title { font-size: clamp(1.8rem, 1.1rem + 2vw, 3rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; max-width: 24ch; }
.intro-title-2 { display: block; font-weight: 300; color: var(--signal); }
.intro-lede { max-width: 62ch; font-size: var(--fs-md); line-height: 1.55; color: var(--paper-2); }
.intro-lede .ev { vertical-align: 1px; }
.ask { width: min(640px, 100%); display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 18px; border-radius: 18px; border: 1px solid var(--line-strong);
  background: var(--ink); box-shadow: 0 18px 40px -26px rgba(11, 27, 63, 0.45); transition: border-color var(--t-fast), box-shadow var(--t-ui); }
.ask:focus-within { border-color: var(--signal); box-shadow: 0 0 0 4px rgba(96, 157, 252, 0.16), 0 18px 40px -26px rgba(11, 27, 63, 0.45); }
.ask input { flex: 1; min-width: 0; height: 40px; border: 0; outline: none; background: none; color: var(--paper); font: inherit; font-size: var(--fs-md); }
.ask input::placeholder { color: var(--muted); }
.ask-mic, .ask-go { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; border: 0; cursor: pointer; transition: background var(--t-fast), transform var(--t-fast); }
.ask-mic { background: none; color: var(--paper-2); }
.ask-mic:hover { background: rgba(96, 157, 252, 0.1); color: var(--paper); }
.ask-mic[hidden] { display: none; }
.ask-mic.is-listening { color: var(--bad); background: rgba(210, 56, 76, 0.1); animation: cc-listen 1.2s var(--ease-io) infinite; }
.ask-go { background: var(--cobalt); color: #fff; }
.ask-go:hover { background: #2F5CD8; }
.ask-go:active { transform: scale(0.95); }
.ask-go:disabled { opacity: 0.5; cursor: wait; }
.ask-mic:focus-visible, .ask-go:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
@keyframes cc-listen { 0%, 100% { box-shadow: 0 0 0 0 rgba(210, 56, 76, 0.35); } 50% { box-shadow: 0 0 0 6px rgba(210, 56, 76, 0); } }
.ask-answer { width: min(640px, 100%); padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--glass-2); font-size: var(--fs-sm); line-height: 1.55; color: var(--paper-2); white-space: pre-wrap; }
.ask-answer[hidden] { display: none; }
.ask-answer .ev { margin: 0 2px; vertical-align: 1px; }
.ask-answer.is-wait { color: var(--muted); }

.kpis { position: relative; z-index: 2; margin: -56px clamp(10px, 2vw, 24px) 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { border-radius: 20px; border: 1px solid var(--line); background: var(--ink); padding: 16px 18px; display: grid; gap: 10px; align-content: start;
  box-shadow: 0 22px 44px -30px rgba(11, 27, 63, 0.5); }
.kpi-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--paper-2); }
.kpi-val { font-size: 2.1rem; font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
.kpi-unknown .kpi-val { color: var(--muted); }
.kpi-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: var(--fs-xs); }
.kpi-bar { position: relative; height: 8px; border-radius: 4px; background: rgba(96, 157, 252, 0.12); }
.kpi-bar span { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 4px; background: linear-gradient(90deg, #609DFC, #254EC1); }
.kpi-bar i { position: absolute; top: -3px; bottom: -3px; left: var(--p); width: 2px; border-radius: 1px; background: var(--paper-2); }
.spark { width: 100%; height: 56px; display: block; overflow: visible; }
.spark .line { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark .area { fill: url(#spark-fill); }
.spark .grid { stroke: var(--line-strong); stroke-width: 1; }
.spark .hit { fill: transparent; }
.spark .pt { fill: var(--signal); stroke: var(--ink); stroke-width: 2; opacity: 0; transition: opacity var(--t-fast); }
.spark .pt.is-on { opacity: 1; }
.spark .cross { stroke: var(--frost); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0; }
.spark .cross.is-on { opacity: 0.8; }

/* ---------- panels ---------- */
.panel { position: relative; border-radius: 22px; border: 1px solid var(--line); background: var(--glass-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: 20px 22px; display: grid; gap: 14px; align-content: start; min-width: 0; box-shadow: 0 24px 50px -40px rgba(11, 27, 63, 0.5);
  transition: box-shadow var(--t-slow) var(--ease-out), border-color var(--t-slow) var(--ease-out); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-head h2 { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.01em; }
.panel-head h3 { font-size: var(--fs-sm); font-weight: 600; }
.panel-head .muted { font-size: var(--fs-xs); }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
/* a wisp brought something here, or the person asked for this section */
.panel.cc-lit { border-color: rgba(96, 157, 252, 0.55); box-shadow: 0 0 0 4px rgba(96, 157, 252, 0.12), 0 24px 50px -30px rgba(37, 78, 193, 0.5); }

/* rows share one card look */
.q, .rec, .ag, .bd, .twin-cell { border-radius: 14px; border: 1px solid var(--line); background: var(--ink); transition: box-shadow var(--t-ui) var(--ease-out), border-color var(--t-ui), opacity var(--t-ui); }
.cc-grab { border-color: rgba(96, 157, 252, 0.6) !important; box-shadow: 0 0 0 3px rgba(96, 157, 252, 0.16); }

/* brief */
.brief[hidden] { display: none; }
.brief-list { display: grid; gap: 12px; }
.brief-list li { display: grid; gap: 2px; font-size: var(--fs-sm); line-height: 1.5; color: var(--paper-2); padding-left: 14px; border-left: 2px solid rgba(96, 157, 252, 0.35); }
.brief-list b { font-weight: 600; color: var(--paper); font-size: var(--fs-xs); }
.brief-list .ev { vertical-align: 1px; }

/* approvals queue */
.queue { display: grid; gap: 10px; }
.q { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; }
.q.is-decided { opacity: 0.55; }
.q-main { display: grid; gap: 6px; min-width: 0; }
.q-title { font-size: var(--fs-sm); font-weight: 600; line-height: 1.4; }
.q-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--muted); align-items: center; }
.q-meta .perms span { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.04em; padding: 2px 7px; border-radius: var(--r-pill); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.q-actions { display: flex; gap: 6px; }
.q-actions .btn { height: 32px; padding: 0 14px; font-size: var(--fs-xs); border-radius: var(--r-pill); }
.q-result { font-size: var(--fs-xs); color: var(--paper-2); max-width: 240px; }
.q-result b { font-weight: 600; }
.q-result.ok b { color: var(--ok); }
.q-result.bad b { color: var(--bad); }

/* recommendations */
.recs { display: grid; gap: 8px; }
.rec { overflow: hidden; }
.rec-head { width: 100%; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 12px 14px; text-align: left; font-size: var(--fs-sm); font-weight: 600; color: var(--paper); transition: background var(--t-fast); }
.rec-head:hover { background: rgba(96, 157, 252, 0.05); }
.rec-head .chev { width: 14px; height: 14px; transition: transform var(--t-ui) var(--ease-out); color: var(--muted); }
.rec.is-open .chev { transform: rotate(180deg); }
.rec-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-ui) var(--ease-out); }
.rec.is-open .rec-body { grid-template-rows: 1fr; }
.rec-body > div { overflow: hidden; }
.rec-rows { padding: 0 14px 12px; display: grid; gap: 6px; font-size: var(--fs-sm); }
.rec-rows .row { display: grid; grid-template-columns: 64px 1fr; gap: 10px; }
.rec-rows .row b { font-weight: 600; color: var(--paper); font-size: var(--fs-xs); padding-top: 2px; }
.rec-rows .row span { color: var(--paper-2); }
.rec-rows .row .ev { margin-right: 6px; vertical-align: 1px; }
.rec-actions { display: flex; gap: 6px; padding: 4px 14px 14px; flex-wrap: wrap; }
.rec-actions .btn { height: 32px; padding: 0 14px; font-size: var(--fs-xs); border-radius: var(--r-pill); }

/* agents */
.agent-list { display: grid; gap: 8px; }
.ag { display: grid; grid-template-columns: 1fr 150px; gap: 12px; align-items: center; padding: 10px 14px; }
.ag-main { display: grid; gap: 3px; min-width: 0; }
.ag-name { font-size: var(--fs-sm); font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ag-last { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-budget { display: grid; gap: 4px; font-size: var(--fs-xs); color: var(--muted); }
.ag-budget.is-high .meter span { background: var(--warn); }
.ag-paused { opacity: 0.55; }

/* builds */
.builds { display: grid; gap: 8px; }
.bd { display: grid; gap: 6px; padding: 12px 14px; }
.bd-row { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); flex-wrap: wrap; font-weight: 500; }
.bd-row .mono { color: var(--signal); font-size: var(--fs-xs); }
.bd-row .pill { margin-left: auto; }
.bd-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--muted); align-items: center; }
.bd-meta .btn-xs { margin-left: auto; }

/* company brain */
.twin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.twin-cell { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; font-size: var(--fs-sm); font-weight: 500; }
.twin-gap { border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.brain-foot { display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--paper-2); }
.brain-foot > div { display: flex; gap: 8px; align-items: center; }

/* audit + experiments */
.audit { display: grid; gap: 2px; font-size: var(--fs-xs); }
.audit li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--paper-2); }
.audit li:last-child { border-bottom: 0; }
.audit time { font-family: var(--font-mono); color: var(--muted); }
.audit b { font-weight: 600; color: var(--paper); }
.exp { display: grid; gap: 4px; padding-top: 6px; }
.exp-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: var(--fs-sm); padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; padding: 10px 16px; border-radius: var(--r-pill); background: var(--paper); color: var(--abyss); font-size: var(--fs-sm); font-weight: 500; box-shadow: 0 20px 50px -20px rgba(11, 27, 63, 0.6); transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out); pointer-events: none; z-index: 100; max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1240px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .grid-main, .grid-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .side-top { width: 100%; }
  .ws { display: none; }
  .side-nav { display: flex; gap: 4px; width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { flex: 0 0 auto; }
  .side-label, .side-foot { display: none; }
  .topbar { flex-wrap: wrap; }
  .topbar-right { width: 100%; flex-wrap: wrap; }
  .search { flex: 1 1 200px; width: auto; }
}
@media (max-width: 600px) {
  .kpis { grid-template-columns: minmax(0, 1fr); margin: -48px 8px 0; }
  .intro-card { padding-bottom: 72px; border-radius: 22px; }
  .q { grid-template-columns: minmax(0, 1fr); }
  .ag { grid-template-columns: minmax(0, 1fr); }
  .topbar h1 { display: none; }
}

/* ---------- Command Center wisps (js/cc-wisps.js) ---------- */
.cc-wisps { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
.cc-wisps.is-hot { pointer-events: auto; cursor: grab; }
.cc-wisps.is-drag { pointer-events: auto; cursor: grabbing; touch-action: none; }
.cc-enter .app { animation: cc-lightup 1.4s var(--ease-out) both; }
@keyframes cc-lightup { from { filter: brightness(0.92) saturate(0.85); } to { filter: none; } }

/* what a wisp says to another wisp: short, from the page's own data, gone in a few seconds */
.cc-say { position: fixed; left: 0; top: 0; z-index: 70; max-width: min(220px, calc(100vw - 32px)); padding: 6px 11px; border-radius: 14px 14px 14px 4px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--line-strong); font-size: 0.75rem; line-height: 1.35; font-weight: 500;
  box-shadow: 0 14px 30px -18px rgba(11, 27, 63, 0.55); opacity: 0; pointer-events: none; transition: opacity var(--t-ui) var(--ease-out); }
.cc-say.is-on { opacity: 1; }
/* the thing a wisp carries from a section to its tab */
.cc-chip { position: fixed; left: 0; top: 0; z-index: 65; max-width: 170px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--cobalt); color: #fff;
  font-size: 0.68rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 8px 20px -10px rgba(37, 78, 193, 0.8);
  opacity: 0; pointer-events: none; transition: opacity var(--t-ui) var(--ease-out); }
.cc-chip.is-on { opacity: 1; }
.side-nav a.cc-lit { background: rgba(96, 157, 252, 0.16); color: var(--paper); box-shadow: 0 0 0 1px rgba(96, 157, 252, 0.45); }
.side-nav a.cc-lit .ic { color: var(--signal); }

.cc-chat { position: fixed; left: 0; top: 0; z-index: 90; width: min(300px, calc(100vw - 32px)); display: grid; gap: 10px; padding: 12px 14px 14px; border-radius: 20px; border: 1px solid rgba(96, 157, 252, 0.45); background: var(--glass-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--paper); box-shadow: 0 24px 60px -24px rgba(11, 27, 63, 0.6), 0 0 50px -24px rgba(96, 157, 252, 0.8); }
.cc-chat[hidden] { display: none; }
.cc-chat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cc-chat-note { font-size: 0.68rem; color: var(--muted); }
.cc-chat-x { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; line-height: 1; color: var(--muted); border: 1px solid var(--line); background: none; cursor: pointer; transition: color var(--t-fast), border-color var(--t-fast); }
.cc-chat-x:hover { color: var(--paper); border-color: var(--line-strong); }
.cc-chat-line { font-size: var(--fs-md); font-weight: 500; line-height: 1.4; }
.cc-chat-answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cc-chat-answers[hidden] { display: none; }
.cc-ans { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 72px; padding: 8px 4px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--ink); color: var(--paper); font: inherit; font-size: var(--fs-xs); font-weight: 500; cursor: pointer; transition: transform var(--t-fast) var(--ease-out), border-color var(--t-fast), background var(--t-fast); }
.cc-ans:hover { border-color: var(--signal); background: rgba(96, 157, 252, 0.1); }
.cc-ans:active { transform: scale(0.96); }
.cc-ans-emoji { font-size: 1.9rem; line-height: 1; }
.cc-chat-x:focus-visible, .cc-ans:focus-visible, .cc-sayhi:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.cc-sayhi { position: absolute; left: 14px; top: 6px; z-index: 95; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; border: 0; }
.cc-sayhi:focus-visible { width: auto; height: auto; clip: auto; overflow: visible; padding: 6px 12px; border-radius: var(--r-pill); background: var(--paper); color: var(--abyss); font-size: var(--fs-xs); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .cc-enter .app, .ask-mic.is-listening { animation: none; }
  .cc-say, .cc-chip, .cc-ans, .panel, .side-nav a { transition: none; }
}
