/* demo/kit.css — mockup kit for /brand/demo.html scenes */
:root {
  --bg: #15151a; --win: #17171c; --card: #141419; --term: #101014;
  --panel: #1d1d24; --panel2: #26262f; --panel3: #34343e;
  --line: #2c2c36; --line2: #232330; --line3: #3a3a46;
  --txt: #e7e7ee; --txt2: #c9c9d4; --muted: #8a8a99; --mut2: #6f6f7e;
  --faint: #55555f; --onacc: #221407; --accent: #FF9257;
  --green: #3ecf8e; --red: #e5484d;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
/* stage: fixed 1280x720 frame, scaled from outside via transform */
.stage { width: 1280px; height: 720px; position: relative; overflow: hidden;
  background: var(--bg); border-radius: 16px; font-family: var(--sans);
  color: var(--txt); }
/* enter pattern: elements start hidden, .on reveals via transition */
.k-in { opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; }
.k-in.on { opacity: 1; transform: none; }
/* fake cursor */
.demo-cursor { position: absolute; z-index: 50; opacity: 0; transition: opacity .3s;
  pointer-events: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.demo-cursor.on { opacity: 1; }
.demo-cursor.press svg { transform: scale(.8); }
.demo-cursor svg { transition: transform .15s; }
.clicked { filter: brightness(1.25); }
/* app window chrome */
.win { position: absolute; inset: 40px 50px; background: var(--win); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 24px 80px rgba(0,0,0,.55); display: flex;
  flex-direction: column; overflow: hidden; }
.win-head { height: 40px; flex: none; display: flex; align-items: center; gap: 8px;
  padding: 0 16px; border-bottom: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line3); }
.win-title { margin-left: 10px; font: 500 13px/1 var(--mono); color: var(--muted); }
.win-body { flex: 1; display: flex; min-height: 0; }
/* left icon rail */
.rail { width: 52px; flex: none; border-right: 1px solid var(--line); padding: 12px 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rail-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--panel2);
  opacity: .55; }
.rail-ic.active { background: var(--accent); opacity: 1; }
/* sidebar + tree */
.side { width: 230px; flex: none; border-right: 1px solid var(--line); padding: 14px 10px; }
.tree-cap { font: 600 10.5px/1 var(--sans); letter-spacing: 1.2px; color: var(--muted);
  text-transform: uppercase; margin: 12px 8px 8px; }
.tree-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  border-radius: 8px; font: 450 13.5px/1 var(--sans); color: var(--txt); }
.tree-item .fico { color: var(--muted); font-size: 12px; }
.tree-item.active { background: var(--panel2); }
.tree-item .fname { font-family: var(--mono); font-size: 12.5px; }
/* generic pieces */
.pill { font: 600 10px/1 var(--sans); letter-spacing: .8px; padding: 4px 8px;
  border-radius: 20px; text-transform: uppercase; }
.pill.live { color: var(--green); background: rgba(62,207,142,.12); }
.pill.idle { color: var(--muted); background: var(--panel2); }
.gdot { width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(62,207,142,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62,207,142,.45); }
  70% { box-shadow: 0 0 0 7px rgba(62,207,142,0); } 100% { box-shadow: 0 0 0 0 rgba(62,207,142,0); } }
.btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 9px;
  font: 600 13px/1 var(--sans); padding: 9px 14px; cursor: default; }
.btn.acc { background: var(--accent); color: var(--onacc); }
.btn.ghost { background: var(--panel2); color: var(--txt); }
/* typing caret */
.typing::after { content: ''; display: inline-block; width: 2px; height: 1em;
  background: var(--accent); margin-left: 2px; vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
/* approval banner (workspace) */
.appr { position: absolute; left: 50%; bottom: 26px; transform: translate(-50%, 16px);
  display: flex; align-items: center; gap: 14px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5); opacity: 0; z-index: 40;
  transition: opacity .35s, transform .35s; }
.appr.on { opacity: 1; transform: translate(-50%, 0); }
.appr .atext { font: 450 13.5px/1.35 var(--sans); }
.appr .atext code { font: 500 12.5px var(--mono); color: var(--accent); }
/* editor pane (workspace scene) */
.ed { flex: 1; padding: 26px 34px; overflow: hidden; }
.ed-title-row { display: flex; align-items: center; margin-bottom: 18px; }
.ed-title { font: 650 24px/1.2 var(--sans); }
.ed-h2 { font: 600 17px/1.3 var(--sans); color: var(--txt); margin: 16px 0 8px; }
.ed-p, .ed-li { font: 400 14px/1.65 var(--sans); color: var(--txt2); max-width: 640px; }
.ed-li { padding-left: 18px; position: relative; }
.ed-li::before { content: '•'; position: absolute; left: 4px; color: var(--accent); }
.live-chip { display: inline-flex; align-items: center; gap: 7px; margin-left: 14px;
  font: 500 11.5px/1 var(--sans); color: var(--green); background: rgba(62,207,142,.1);
  padding: 5px 10px; border-radius: 20px; }
.tree-item.new { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.tree-item.new .fname { color: var(--accent); }
.appr.ok .btn { display: none; }
.appr.ok .atext { color: var(--green); }
/* avatar (agent) */
.avatar { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font: 650 16px/1 var(--sans); color: var(--onacc); background: var(--accent); }
.spin { width: 10px; height: 10px; border: 2px solid var(--accent); display: inline-block;
  box-sizing: border-box; flex: none;
  border-top-color: transparent; border-radius: 50%; animation: rot 0.9s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.alert-chip { display: inline-flex; gap: 7px; align-items: center; font: 500 12px/1 var(--sans);
  color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 7px 10px; border-radius: 9px; }
/* chat scene */
.chat-win { position: absolute; left: 260px; top: 40px; width: 760px; height: 640px;
  background: var(--win); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,.55); display: flex; flex-direction: column; }
.chat-head { height: 52px; flex: none; display: flex; align-items: center; gap: 12px;
  padding: 0 18px; border-bottom: 1px solid var(--line); }
.chat-head .avatar { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
.chat-head .cname { font: 600 14.5px/1 var(--sans); }
.chat-head .cstat { font: 450 11.5px/1 var(--sans); color: var(--green); margin-top: 3px; }
.msgs { flex: 1; padding: 22px 22px 10px; display: flex; flex-direction: column;
  gap: 12px; overflow: hidden; }
.bub { max-width: 78%; padding: 11px 14px; border-radius: 14px;
  font: 400 13.5px/1.55 var(--sans); }
.bub.user { align-self: flex-end; background: var(--accent); color: var(--onacc);
  border-bottom-right-radius: 4px; }
.bub.agent { align-self: flex-start; background: var(--panel); color: var(--txt2);
  border-bottom-left-radius: 4px; }
.typing-dots { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px;
  background: var(--panel); border-radius: 14px; border-bottom-left-radius: 4px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
  animation: tdot 1s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 30% { transform: translateY(-4px); opacity: 1; } 60% { transform: none; } }
.tchip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--mono); color: var(--muted); background: var(--panel2);
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; }
.tchip .st { color: var(--accent); }
.tchip.ok .st { color: var(--green); }
.tchip b { color: var(--txt2); font-weight: 600; }
.appr-card { align-self: flex-start; background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 12px; padding: 13px 15px;
  display: flex; flex-direction: column; gap: 10px; font: 450 13px/1.4 var(--sans); }
.appr-card .abody code { font: 500 12px var(--mono); color: var(--accent); }
.appr-card .row { display: flex; gap: 10px; }
.appr-card.ok .row { display: none; }
.appr-card.ok .abody { color: var(--green); }
.comp { flex: none; margin: 12px 18px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); display: flex; align-items: center; padding: 12px 14px; gap: 10px; }
.comp .ctext { flex: 1; font: 400 13.5px/1.4 var(--sans); color: var(--txt); min-height: 18px; }
.comp .ctext:empty::before { content: 'Write a message…'; color: var(--muted); }
.comp .send { width: 30px; height: 30px; border-radius: 8px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; color: var(--onacc); font-size: 13px; flex: none; }
/* css-drawn icons (webfont subsets lack ⚙ ✓ ▤ ◆ ▲ glyphs) */
.ck { display: inline-flex; align-items: center; }
.fico-doc { width: 10px; height: 12px; border: 1.5px solid var(--muted); border-radius: 2px;
  display: inline-block; position: relative; flex: none; }
.fico-doc::after { content: ''; position: absolute; left: 2px; right: 2px; top: 3px;
  height: 1.5px; background: var(--muted); box-shadow: 0 3px 0 var(--muted); }
.fico-agent { width: 8px; height: 8px; background: var(--muted); transform: rotate(45deg);
  border-radius: 2px; display: inline-block; margin: 0 1px; flex: none; }
.tri-up { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-bottom: 7px solid var(--accent); display: inline-block; }
.appr.ok .atext { display: inline-flex; align-items: center; gap: 7px; }
.appr-card.ok .abody { display: flex; align-items: center; gap: 7px; }
/* ===== workspace v2: editor top bar, right panel, checklists, diff ===== */
.ico { display: inline-flex; align-items: center; flex: none; }
.tree-item .ico { color: var(--muted); }
.mainwrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.workrow { flex: 1; display: flex; min-height: 0; }
.ed-bar { height: 44px; flex: none; display: flex; align-items: center; gap: 10px;
  padding: 0 14px; border-bottom: 1px solid var(--line); }
.ed-bar .bar-title { font: 500 12.5px var(--mono); color: var(--muted); margin-right: auto; }
.autosave { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--sans);
  color: var(--muted); }
.autosave .sw { width: 26px; height: 15px; border-radius: 10px; background: var(--accent);
  position: relative; }
.autosave .sw::after { content: ''; position: absolute; right: 2px; top: 2px; width: 11px;
  height: 11px; border-radius: 50%; background: #fff; }
.seg { display: inline-flex; background: var(--panel2); border: 1px solid var(--line);
  border-radius: 9px; padding: 2px; }
.seg .seg-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px;
  border-radius: 7px; font: 550 11.5px/1 var(--sans); color: var(--muted); }
.seg .seg-btn .ico { color: inherit; }
.seg .seg-btn.active { background: var(--panel3); color: var(--txt); }
/* right panel */
.rpanel { width: 330px; flex: none; border-left: 1px solid var(--line); display: flex;
  flex-direction: column; min-height: 0; }
.rp-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-bottom: 1px solid var(--line); flex: none; }
.rp-head .avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
.rp-head .rname { font: 600 13.5px/1.2 var(--sans); }
.rp-head .rsub { font: 450 11px/1.2 var(--sans); color: var(--muted); margin-top: 2px; }
.rp-tabs { display: flex; gap: 12px; padding: 10px 14px 8px; border-bottom: 1px solid var(--line);
  font: 500 11.5px/1 var(--sans); color: var(--muted); flex: none; }
.rp-tabs .rtab { display: inline-flex; align-items: center; gap: 5px; padding-bottom: 2px; }
.rp-tabs .rtab.active { color: var(--txt); }
.rp-body { flex: 1; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px;
  overflow: hidden; min-height: 0; }
.rp-hint { color: var(--faint); font: 400 12px/1.5 var(--sans); text-align: center; margin-top: 46px; }
.rp-bub { max-width: 92%; padding: 9px 11px; border-radius: 12px;
  font: 400 12.5px/1.5 var(--sans); }
.rp-bub.user { align-self: flex-end; background: var(--accent); color: var(--onacc);
  border-bottom-right-radius: 4px; }
.rp-bub.agent { align-self: flex-start; background: var(--panel); color: var(--txt2);
  border-bottom-left-radius: 4px; }
.rp-comp { flex: none; margin: 10px 12px 12px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--panel); display: flex; align-items: center; padding: 10px 11px; gap: 8px; }
.rp-comp .ctext { flex: 1; font: 400 12px/1.4 var(--sans); color: var(--txt); min-height: 16px; }
.rp-comp .ctext:empty::before { content: 'Write a message…'; color: var(--muted); }
.rp-comp .send { width: 26px; height: 26px; border-radius: 7px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex: none; }
/* checklists */
.chk { display: flex; align-items: center; gap: 9px; padding: 4px 2px; max-height: 36px;
  font: 400 14px/1.5 var(--sans); color: var(--txt2); overflow: hidden;
  transition: max-height .35s ease, opacity .35s ease, padding .35s ease; }
.chk .box { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--faint);
  flex: none; display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s; }
.chk .box .ck svg { display: block; }
.chk .box .ck { opacity: 0; transform: scale(.4); color: var(--onacc);
  transition: opacity .2s, transform .3s cubic-bezier(.34,1.56,.64,1); }
.chk.done .box { background: var(--accent); border-color: var(--accent); }
.chk.done .box .ck { opacity: 1; transform: none; }
.chk.done .lbl { color: var(--mut2); text-decoration: line-through; }
.chk.gone { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
/* suggestion diff */
.chk.diff-del { background: rgba(229,72,77,.08); border-radius: 8px; padding-left: 8px; }
.chk.diff-del .lbl { color: #d98b8f; text-decoration: line-through; }
.chk.diff-del .box { border-color: #7a4a4e; }
.diff-add { background: rgba(62,207,142,.07); border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0; padding: 4px 10px; margin: 4px 0;
  transition: background .6s, border-color .6s, padding .6s; }
.diff-add.applied { padding-left: 0; padding-right: 0; }
.diff-add .chk .lbl { color: #9fd8bd; transition: color .6s; }
.diff-add.applied { background: transparent; border-color: transparent; }
.diff-add.applied .chk .lbl { color: var(--txt2); }
.diff-actions { display: flex; gap: 8px; margin: 8px 0 2px; max-height: 40px; overflow: hidden;
  transition: max-height .35s, opacity .35s, margin .35s; }
.diff-actions.gone { max-height: 0; opacity: 0; margin: 0; }
.btn.sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
/* stat chips (recap doc) */
.stats { display: flex; gap: 10px; margin: 12px 0 4px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; }
.stat b { display: block; font: 650 17px/1.2 var(--sans); color: var(--txt); }
.stat span { font: 500 10.5px/1.4 var(--sans); color: var(--muted); }
/* raw view */
.rawview { font: 400 12.5px/1.75 var(--mono); color: var(--txt2); white-space: pre;
  padding: 24px 30px; }
/* entity settings rows (right panel) */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 2px; border-bottom: 1px solid var(--line2); font: 450 12.5px/1.4 var(--sans);
  color: var(--muted); }
.set-row .val { color: var(--txt); display: inline-flex; gap: 6px; align-items: center;
  font-weight: 500; }
.set-row .val .ico { color: var(--muted); }
.chip { background: var(--panel2); border-radius: 7px; padding: 4px 8px;
  font: 500 11px/1 var(--mono); color: var(--txt2); }
@keyframes rowhl { 30% { background: color-mix(in srgb, var(--accent) 14%, transparent); } }
.set-row.hl { animation: rowhl 1.3s ease; border-radius: 8px; }
/* task rows in right panel */
.trow { display: flex; align-items: center; gap: 9px; padding: 9px 10px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; font: 500 12.5px/1 var(--mono);
  color: var(--txt2); }
.trow .ico { color: var(--muted); }
.trow .tail { margin-left: auto; display: flex; align-items: center; }
.trow .runbtn { width: 26px; height: 26px; border-radius: 7px; background: var(--panel2);
  display: flex; align-items: center; justify-content: center; }
.trow .runbtn::after { content: ''; border-left: 8px solid var(--accent);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.trow.running .runbtn::after { display: none; }
.trow.done .runbtn { display: none; }
/* ===== workspace v3: icon toolbar, compact agent tabs, clickable ===== */
.ibar { display: flex; gap: 4px; align-items: center; }
.ibar .sep { width: 1px; height: 16px; background: var(--line); margin: 0 5px; }
.ibtn { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; color: var(--muted); border: 1px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s; position: relative; }
.ibtn:hover { background: var(--panel2); color: var(--txt); }
.ibtn.active { background: var(--panel2); color: var(--accent); border-color: var(--line3); }
.ibtn.ok-dot::after { content: ''; position: absolute; right: 3px; top: 3px; width: 5px;
  height: 5px; border-radius: 50%; background: var(--green); }
.rp-tabs.compact { gap: 5px; border-bottom: 1px solid var(--line); padding: 8px 12px; }
.rp-tabs.compact .rtab { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px;
  border-radius: 7px; color: var(--muted); font: 550 11px/1 var(--sans); cursor: pointer;
  transition: background .2s, color .2s; }
.rp-tabs.compact .rtab:hover { background: var(--panel2); }
.rp-tabs.compact .rtab.active { background: var(--panel2); color: var(--txt); }
.tree-item, .chk, .runbtn, .send, .trow { cursor: pointer; }
.tree-item:hover { background: color-mix(in srgb, var(--panel2) 60%, transparent); }
.rp-comp .ctext { outline: none; }
.skill-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
/* diff-add: text lines inside a suggestion */
.diff-add .ed-p, .diff-add .ed-h2 { color: #9fd8bd; transition: color .6s; }
.diff-add.applied .ed-p { color: var(--txt2); }
.diff-add.applied .ed-h2 { color: var(--txt); }
/* ===== page rail with icons ===== */
.rail-btn { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; color: var(--muted); cursor: pointer;
  transition: background .2s, color .2s; }
.rail-btn:hover { background: var(--panel2); color: var(--txt); }
.rail-btn.active { background: var(--accent); color: var(--onacc); }
/* ===== chat scene v2: terminal-style multi-window ===== */
.side-lay { display: flex; gap: 4px; padding: 2px 6px 6px; }
.tree-item.open { background: var(--panel2); }
.tree-item.open .fname { color: var(--accent); }
.cgrid { flex: 1; display: grid; gap: 4px; padding: 8px; min-height: 0; }
.cgrid.lay-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.cgrid.lay-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.cgrid.lay-3 { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr; }
.cgrid.lay-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.cgrid.lay-6 { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.cwin { background: var(--card); border: 1px solid var(--line); border-radius: 0;
  display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden;
  animation: cwin-in .25s ease; }
@keyframes cwin-in { from { opacity: 0; } }
.cwin.empty { border-style: dashed; align-items: center; justify-content: center;
  color: var(--faint); font: 500 12px/1 var(--sans); }
.cwin-head { flex: none; display: flex; align-items: center; gap: 7px; padding: 8px 11px;
  border-bottom: 1px solid var(--line); }
.cwin-head .avatar { width: 22px; height: 22px; border-radius: 7px; }
.cwin-head .cwname { font: 600 11.5px/1 var(--sans); color: var(--txt); }
.cwin-head .cwsep { font: 400 10px/1 var(--sans); color: var(--faint); }
.cwin-head .cwchat { font: 500 10.5px/1 var(--mono); color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cwin-head .cwmodel { margin-left: auto; flex: none; font: 500 9.5px/1 var(--mono);
  color: var(--muted); background: var(--panel2); padding: 4px 7px; border-radius: 5px; }
/* small logo avatar in the sidebar agent list */
.mini-ava { width: 18px; height: 18px; border-radius: 5px; background: var(--panel2);
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cwin-body { flex: 1; min-height: 0; overflow: hidden; padding: 10px; display: flex;
  flex-direction: column; gap: 7px; }
.cbub { max-width: 88%; padding: 7px 10px; border-radius: 10px;
  font: 400 11.5px/1.5 var(--sans); }
.cbub.user { align-self: flex-end; background: var(--accent); color: var(--onacc);
  border-bottom-right-radius: 3px; }
.cbub.agent { align-self: flex-start; background: var(--panel); color: var(--txt2);
  border-bottom-left-radius: 3px; }
.cbub.sys { align-self: stretch; max-width: 100%; background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: color-mix(in srgb, var(--accent) 55%, var(--txt)); font: 450 10.5px/1.5 var(--mono); border-left: 2px solid var(--accent); }
.cwin .tchip { font-size: 10.5px; padding: 6px 9px; gap: 6px; }
.cwin .tchip .spin { width: 8px; height: 8px; }
.cwin .typing-dots { padding: 8px 10px; }
/* composer: flush terminal-style strip, part of the window */
.cwin-comp { flex: none; margin: 0; border: none; border-top: 1px solid var(--line);
  border-radius: 0; background: var(--term); display: flex; align-items: center;
  padding: 8px 10px; gap: 7px; }
.cwin-comp::before { content: '>'; font: 600 11px/1 var(--mono); color: var(--accent);
  flex: none; }
.cwin-comp .ctext { flex: 1; font: 400 11px/1.4 var(--mono); color: var(--txt);
  min-height: 14px; outline: none; }
.cwin-comp .ctext:empty::before { content: 'Message…'; color: var(--faint); }
.cwin-comp .send { width: 22px; height: 22px; border-radius: 5px; background: transparent;
  color: var(--mut2); display: flex; align-items: center; justify-content: center; flex: none;
  cursor: pointer; transition: color .2s, background .2s; }
.cwin-comp .send:hover { color: var(--accent); background: var(--panel2); }
/* layout switcher icons (rect grids drawn in svg) */
.lay-ic svg rect { fill: currentColor; }
.cwin-body { justify-content: flex-end; }
.cwin .alert-chip { font-size: 10.5px; padding: 6px 9px; align-self: flex-start; }
/* brand mark */
.apl-logo { display: inline-flex; align-items: center; flex: none; }
.win-head .apl-logo { margin-left: 8px; }
.win-head .win-title { margin-left: 7px; }
.avatar.brand { background: var(--panel2); }
/* agent "working" indicator: crystal facets breathe in cascade + status line */
.work { display: flex; align-items: center; gap: 8px; padding: 3px 2px; }
.work .wtext { font: 450 11.5px/1.4 var(--sans); color: var(--muted); }
.apl-work { display: inline-flex; }
.apl-work svg path { transform-box: fill-box; transform-origin: center;
  animation: awp 1.9s ease-in-out infinite; }
.apl-work svg path:nth-child(1) { animation-delay: 0s; }
.apl-work svg path:nth-child(2) { animation-delay: .13s; }
.apl-work svg path:nth-child(3) { animation-delay: .26s; }
.apl-work svg path:nth-child(4) { animation-delay: .39s; }
.apl-work svg path:nth-child(5) { animation-delay: .52s; }
.apl-work svg path:nth-child(6) { animation-delay: .65s; }
.apl-work svg path:nth-child(7) { animation-delay: .78s; }
@keyframes awp { 0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .3; transform: scale(.8); } }
/* fixed activity lines (what the agent did) */
.wline { display: flex; align-items: center; gap: 7px; font: 400 11px/1.5 var(--sans);
  color: var(--mut2); padding: 1px 2px; }
.wline .ck svg { width: 10px; height: 10px; }
/* prompt quote block (task docs) */
.ed-quote { border-left: 3px solid var(--accent); background: var(--panel);
  padding: 12px 16px; border-radius: 0 10px 10px 0; color: var(--txt2);
  font: 400 13.5px/1.65 var(--sans); max-width: 640px; margin: 6px 0; }
/* doc title row extras (agent docs) */
.ed-title-row .avatar { margin-right: 12px; }
.ed-title-row .chip { margin-left: 10px; }
.ed-chips { display: flex; gap: 7px; flex-wrap: wrap; margin: 4px 0 10px; }
/* ===== chain canvas (n8n-style) ===== */
.canvas { flex: 1; position: relative; display: none; overflow: hidden;
  background-image: radial-gradient(var(--line2) 1.3px, transparent 1.3px);
  background-size: 22px 22px; background-position: 4px 4px; }
.canvas svg.links { position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; }
.clink { stroke: var(--line); stroke-width: 2; fill: none; transition: stroke .3s; }
.clink.flow { stroke: var(--accent); stroke-dasharray: 7 7; animation: cflow .5s linear infinite; }
.clink.did { stroke: rgba(62,207,142,.5); }
@keyframes cflow { to { stroke-dashoffset: -14; } }
.cnode { position: absolute; width: 160px; background: var(--panel);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 11px;
  display: flex; align-items: center; gap: 9px;
  transition: border-color .3s, box-shadow .3s; }
.cnode .cico { width: 28px; height: 28px; border-radius: 8px; background: var(--panel2);
  display: flex; align-items: center; justify-content: center; color: var(--muted); flex: none; }
.cnode .ct { font: 600 12px/1.25 var(--sans); color: var(--txt); }
.cnode .cs { font: 450 10px/1.3 var(--sans); color: var(--muted); }
.cnode.running { border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent), 0 10px 28px color-mix(in srgb, var(--accent) 10%, transparent); }
.cnode.done { border-color: rgba(62,207,142,.5); }
.cnode .okb { position: absolute; top: -7px; right: -7px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--green); color: #0c2019; display: flex;
  align-items: center; justify-content: center; opacity: 0; transform: scale(.4);
  transition: opacity .25s, transform .3s cubic-bezier(.34,1.56,.64,1); }
.cnode .okb svg { width: 9px; height: 9px; }
.cnode.done .okb { opacity: 1; transform: none; }
.canvas .runbar { position: absolute; top: 14px; right: 16px; z-index: 5; }
.cresult { position: absolute; display: inline-flex; align-items: center; gap: 6px;
  font: 500 10.5px/1 var(--mono); color: var(--green); background: rgba(62,207,142,.1);
  border: 1px solid rgba(62,207,142,.25); padding: 6px 9px; border-radius: 8px;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.cresult.on { opacity: 1; transform: none; }
/* ===== skills scene: scrollable marketplace (bundles + skills + integrations) ===== */
.sk-main { flex: 1; min-width: 0; padding: 0; overflow: hidden; position: relative; }
.sk-scroll { position: absolute; inset: 0; overflow-y: auto; padding: 24px 28px 30px;
  scrollbar-width: none; }
.sk-scroll::-webkit-scrollbar { display: none; }
.sk-sect { margin: 26px 0 12px; }
.sk-grid2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.scard { display: flex; align-items: center; gap: 11px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; cursor: pointer;
  transition: border-color .25s, transform .25s; }
.scard:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translateY(-1px); }
.stile { width: 34px; height: 34px; border-radius: 9px; background: var(--panel2);
  display: flex; align-items: center; justify-content: center; color: var(--txt2);
  flex: none; }
.stile.itile { font: 600 12px/1 var(--mono); color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent); }
.stw { flex: 1; min-width: 0; }
.sname { display: flex; align-items: center; gap: 7px; font: 600 12.5px/1.2 var(--sans); }
.stag { font: 400 10.5px/1.35 var(--sans); color: var(--muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard .tgl, .scard .istat { flex: none; }
.pill.hot { color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent); }
.sk-title { font: 650 22px/1.2 var(--sans); }
.sk-sub { font: 400 12.5px/1.5 var(--sans); color: var(--muted); margin-top: 6px;
  max-width: 520px; }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.bcard { position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px;
  cursor: pointer; transition: border-color .25s, transform .25s; }
.bcard:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-2px); }
.bcard.enabled { border-color: rgba(62,207,142,.35); }
.bico { width: 40px; height: 40px; border-radius: 11px; flex: none;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); background: var(--win); color: var(--txt);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 14%, transparent); }
.bcard .bname, .sk-mtitle .bname { font: 600 13.5px/1.2 var(--sans); }
.bcard .btag, .sk-mtitle .btag { font: 400 11px/1.45 var(--sans); color: var(--muted); }
.bcard .btag { min-height: 32px; }
.bstats { display: flex; gap: 12px; font: 500 10px/1 var(--mono); color: var(--mut2);
  align-items: center; margin-top: auto; }
.bstats .bstat { display: inline-flex; align-items: center; gap: 4px; }
.bstats .ico { color: var(--mut2); }
.ebadge { position: absolute; top: 10px; right: 10px; opacity: 0; transform: scale(.6);
  transition: opacity .25s, transform .3s cubic-bezier(.34,1.56,.64,1); }
.ebadge.on { opacity: 1; transform: none; }
/* bundle detail popup */
.sk-modal { position: absolute; inset: 0; z-index: 30; background: rgba(10,10,14,.55);
  display: flex; align-items: center; justify-content: center; opacity: 0;
  pointer-events: none; transition: opacity .25s; }
.sk-modal.on { opacity: 1; pointer-events: auto; }
.sk-card { width: 470px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 11px;
  box-shadow: 0 24px 80px rgba(0,0,0,.55); transform: translateY(12px) scale(.97);
  transition: transform .25s; }
.sk-modal.on .sk-card { transform: none; }
.sk-mhead { display: flex; align-items: center; gap: 12px; }
.sk-mtitle { display: flex; flex-direction: column; gap: 3px; }
.sk-card .bdesc { font: 400 12.5px/1.6 var(--sans); color: var(--txt2); }
.sk-cap { font: 600 9.5px/1 var(--sans); letter-spacing: 1.1px; color: var(--muted);
  text-transform: uppercase; margin-top: 2px; }
.chipwrap { display: flex; flex-wrap: wrap; gap: 6px; }
.sk-mrow { display: flex; gap: 8px; margin-top: 6px; }
.sk-mrow .btn { cursor: pointer; }
/* left panel: skills + integrations */
.skpanel { width: 300px; flex: none; border-right: 1px solid var(--line);
  padding: 10px 10px; overflow: hidden; display: flex; flex-direction: column; }
.skpanel .tree-cap { margin: 10px 8px 6px; }
.srow { display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: 8px;
  font: 450 12.5px/1 var(--sans); cursor: pointer; }
.srow:hover { background: color-mix(in srgb, var(--panel2) 60%, transparent); }
.srow .ico { color: var(--muted); }
.srow .tgl, .srow .istat { margin-left: auto; }
.tgl { width: 26px; height: 15px; border-radius: 10px; background: var(--panel3); position: relative;
  flex: none; transition: background .25s; }
.tgl::after { content: ''; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px;
  border-radius: 50%; background: #8a8a99; transition: left .25s, background .25s; }
.tgl.on { background: var(--accent); }
.tgl.on::after { left: 13px; background: #fff; }
.istat { font: 500 10px/1 var(--mono); color: var(--mut2); display: inline-flex;
  align-items: center; gap: 6px; }
.istat.ok { color: var(--green); }
.istat .gdot { display: inline-block; }
/* ===== cost scene: spend dashboard ===== */
.cost-main { flex: 1; min-width: 0; padding: 22px 26px; display: flex;
  flex-direction: column; gap: 13px; overflow: hidden; }
.cost-head { display: flex; align-items: center; }
.cost-head .seg { margin-left: auto; }
.seg .seg-btn { cursor: pointer; }
.cost-stats { display: flex; gap: 10px; }
.cost-stats .stat { flex: 1; padding: 12px 16px; }
.cost-stats .stat b { font: 650 19px/1.25 var(--mono); }
.cost-row { flex: 1; display: flex; gap: 13px; min-height: 0; }
.ccard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; display: flex; flex-direction: column; min-height: 0; }
.chart-card { flex: 1; }
.ccap { margin-bottom: 10px; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 4px; min-height: 0;
  border-bottom: 1px solid var(--line2); }
.bar { flex: 1; display: flex; align-items: flex-end; height: 100%; cursor: pointer; }
.bar i { display: block; width: 100%; height: 0%; border-radius: 3px 3px 0 0; opacity: .72;
  background: linear-gradient(180deg, #FF9257, color-mix(in srgb, var(--accent) 70%, #000));
  transition: height .55s cubic-bezier(.22,1,.36,1), opacity .2s; }
.bar:hover i { opacity: 1; }
.bar.hot i { opacity: 1; box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 35%, transparent); }
.bxlab { display: flex; justify-content: space-between; font: 500 9px/1 var(--mono);
  color: var(--faint); margin-top: 7px; }
.cost-side { width: 300px; flex: none; display: flex; flex-direction: column; gap: 13px; }
.mrow { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; }
.mtop { display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--sans); }
.mtop .msub { color: var(--muted); font: 450 10px/1 var(--mono); }
.mtop b { margin-left: auto; font: 600 11.5px/1 var(--mono); }
/* share bars in brand facet colours: accent / amber / olive */
.share { height: 4px; border-radius: 3px; background: var(--panel2); overflow: hidden; flex: none; }
.share i { display: block; height: 100%; width: 0%; background: var(--accent);
  border-radius: 3px; transition: width .7s cubic-bezier(.22,1,.36,1); }
.share.g2 i { background: #FAB569; }
.share.g3 i { background: #D9CC69; }
.share.budget { height: 6px; margin-top: 2px; }
.share.budget i { background: linear-gradient(90deg, #FF9257, #FAB569); }
.budget-note { display: flex; align-items: center; gap: 7px; font: 400 10.5px/1.5 var(--sans);
  color: var(--muted); margin-top: 8px; }
.budget-note .tri-up { border-left-width: 4px; border-right-width: 4px;
  border-bottom-width: 6px; }
.bpct { color: var(--accent); }
/* ===== themes (Appearance page switches these on the .stage) ===== */
.stage.th-amber { --accent: #FAB569; }
.stage.th-olive { --accent: #D9CC69; }
.stage.th-rose { --accent: #F59795; }
.stage.th-cream {
  --bg: #EDE0CF; --win: #FBF5EC; --card: #F6EDDF; --term: #F0E5D4;
  --panel: #F6EFE3; --panel2: #EADFCC; --panel3: #DECFB6;
  --line: #DFD0BB; --line2: #E6D9C5; --line3: #D3C2A8;
  --txt: #2A1D12; --txt2: #4A3A2C; --muted: #8A7663; --mut2: #9C8977;
  --faint: #B3A08C; --onacc: #221407; --accent: #FF9257;
}
/* ===== cost scene: bottom modules (area chart + hour heatmap) ===== */
.cost-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 13px; }
.chart-card { flex: none; height: 232px; }
.cost-brow { flex: 1; display: flex; gap: 13px; min-height: 0; }
.cost-brow .ccard { flex: 1; min-width: 0; }
.area-wrap { flex: 1; position: relative; min-height: 0; }
.area-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.area-line { fill: none; stroke: var(--accent); stroke-width: 2;
  vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s cubic-bezier(.4,0,.2,1); }
.area-fill { stroke: none; opacity: 0; transition: opacity .9s ease .4s; }
.area-wrap.drawn .area-line { stroke-dashoffset: 0; }
.area-wrap.drawn .area-fill { opacity: 1; }
.area-end { position: absolute; right: 8px; top: 6px; font: 600 12px/1 var(--mono);
  color: var(--accent); opacity: 0; transition: opacity .5s ease .9s; }
.area-wrap.drawn .area-end { opacity: 1; }
/* heatmap */
.hm { display: flex; gap: 8px; flex: 1; min-height: 0; }
.hm-days { display: flex; flex-direction: column; justify-content: space-between;
  font: 500 8.5px/1 var(--mono); color: var(--faint); padding: 1px 0; }
.hm-body { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hm-grid { flex: 1; display: grid; grid-template-columns: repeat(24, 1fr);
  grid-template-rows: repeat(7, 1fr); gap: 2px; }
.hm-grid i { display: block; border-radius: 2.5px; background: var(--panel2);
  opacity: 0; transform: scale(.5); transition: opacity .3s, transform .3s; }
.hm-grid i.on { opacity: 1; transform: none; }
.hm-grid i.l1 { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.hm-grid i.l2 { background: color-mix(in srgb, var(--accent) 34%, transparent); }
.hm-grid i.l3 { background: color-mix(in srgb, var(--accent) 58%, transparent); }
.hm-grid i.l4 { background: var(--accent); }
.hm-hours { display: flex; justify-content: space-between;
  font: 500 8.5px/1 var(--mono); color: var(--faint); }
/* ===== settings scene ===== */
.set-nav { width: 216px; flex: none; border-right: 1px solid var(--line);
  padding: 12px 10px; display: flex; flex-direction: column; gap: 1px; }
.set-nav .tree-item.active { color: var(--accent); }
.set-nav .tree-item.active .ico { color: var(--accent); }
.set-main { flex: 1; min-width: 0; padding: 24px 30px; overflow: hidden; }
.set-main .set-row { max-width: 560px; font-size: 13px; padding: 12px 2px; }
.set-main .sk-cap { margin: 18px 0 10px; }
.set-main .sk-cap:first-of-type { margin-top: 16px; }
.set-sub { font: 400 12.5px/1.5 var(--sans); color: var(--muted); margin-top: 6px; }
/* theme picker cards */
.thgrid { display: flex; gap: 10px; flex-wrap: wrap; }
.thcard { width: 118px; cursor: pointer; border: 1px solid var(--line); border-radius: 10px;
  padding: 6px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.thcard:hover { transform: translateY(-2px); }
.thcard.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.thprev { height: 62px; border-radius: 7px; position: relative; overflow: hidden; }
.thprev .tp-side { position: absolute; left: 0; top: 0; bottom: 0; width: 24%; }
.thprev .tp-acc { position: absolute; right: 8px; top: 8px; width: 11px; height: 11px;
  border-radius: 50%; }
.thprev .tp-l1, .thprev .tp-l2 { position: absolute; left: 32%; height: 4px;
  border-radius: 2px; opacity: .55; }
.thprev .tp-l1 { top: 30px; width: 44%; }
.thprev .tp-l2 { top: 40px; width: 30%; }
.thname { display: flex; align-items: center; justify-content: space-between;
  font: 550 11px/1 var(--sans); margin: 8px 3px 3px; color: var(--txt); }
.thname .ck svg { width: 11px; height: 11px; }
/* ===== automations scene: one chain, full width ===== */
.auto-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.auto-head { flex: none; display: flex; align-items: center; gap: 14px; padding: 14px 22px;
  border-bottom: 1px solid var(--line); }
.auto-head .aico { width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  display: flex; align-items: center; justify-content: center; color: var(--accent); }
.auto-trow { display: flex; align-items: center; gap: 10px; }
.auto-title { font: 650 16px/1.2 var(--mono); }
.auto-meta { display: flex; gap: 7px; margin-top: 7px; }
.auto-chip { display: inline-flex; align-items: center; gap: 6px; font: 500 10.5px/1 var(--mono);
  color: var(--muted); background: var(--panel2); padding: 5px 9px; border-radius: 7px; }
.auto-chip .ico { color: var(--mut2); }
.auto-head .btn { margin-left: auto; cursor: pointer; }
/* big canvas: dot grid + soft vignette toward the page bg */
.canvas2 { flex: 1; position: relative; overflow: hidden; min-height: 0;
  background-image: radial-gradient(var(--line2) 1.3px, transparent 1.3px);
  background-size: 24px 24px; background-position: 6px 6px; }
.canvas2::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(120% 100% at 50% 45%, transparent 58%, var(--bg) 140%); }
.canvas2 svg.links { position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1; }
/* large chain nodes */
.cnode.lg { width: 210px; border-radius: 14px; padding: 12px 14px; gap: 11px; z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.cnode.lg .cico { width: 36px; height: 36px; border-radius: 10px; }
.cnode.lg .ct { font-size: 13.5px; }
.cnode.lg .cs { font-size: 10.5px; margin-top: 2px; }
.cnode.lg .ctw { flex: 1; min-width: 0; }
.cnode.lg .cml { flex: none; font: 500 9px/1 var(--mono); color: var(--muted);
  background: var(--panel2); padding: 4px 6px; border-radius: 5px; }
.cnode.lg.trig .cico { color: #FAB569;
  background: color-mix(in srgb, #FAB569 13%, transparent); }
/* travelling pulse dot on a flowing link */
.cpulse { fill: var(--accent); opacity: 0; filter: drop-shadow(0 0 5px var(--accent)); }
/* legend + result card */
.cleg { position: absolute; left: 20px; bottom: 16px; z-index: 2; display: flex; gap: 16px;
  align-items: center; font: 500 10px/1 var(--mono); color: var(--faint); }
.cleg .lg-it { display: inline-flex; align-items: center; gap: 6px; }
.cres2 { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 4px;
  background: rgba(62,207,142,.08); border: 1px solid rgba(62,207,142,.28);
  padding: 10px 13px; border-radius: 11px; opacity: 0; transform: translateY(8px);
  transition: opacity .35s, transform .35s; }
.cres2.on { opacity: 1; transform: none; }
.cres2 .crmain { display: inline-flex; align-items: center; gap: 7px;
  font: 500 11.5px/1 var(--mono); color: var(--green); }
.cres2 .crsub { font: 450 10.5px/1.4 var(--sans); color: var(--muted); }
/* ===== coupon doc (get-10-off): ticket card with side notches ===== */
.coupon { position: relative; max-width: 470px; margin: 18px 0; padding: 22px 26px;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 16px; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.coupon::before, .coupon::after { content: ''; position: absolute; top: 50%; width: 18px;
  height: 18px; border-radius: 50%; background: var(--win); transform: translateY(-50%);
  border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); }
.coupon::before { left: -11px; }
.coupon::after { right: -11px; }
.coupon .cbig { display: flex; align-items: center; gap: 12px;
  font: 700 32px/1.05 var(--sans); color: var(--accent); letter-spacing: -.5px; }
.coupon .cnote { font: 400 12.5px/1.6 var(--sans); color: var(--muted); margin-top: 10px;
  max-width: 370px; }
.coupon .crow { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.coupon .ccode { font: 600 13px/1 var(--mono); letter-spacing: 2.5px; color: var(--txt);
  background: var(--panel2); border: 1px solid var(--line3); border-radius: 8px;
  padding: 9px 13px; }
.coupon .crow .btn { cursor: pointer; }
/* status dot on a tree item: the document has a pending suggestion */
.tree-item .sdot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none; animation: apulse 2s infinite; }
@keyframes apulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  70% { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; } }
/* ===== settings → usage: the spend dashboard, embedded (tighter budget) ===== */
.set-main.usage { display: flex; flex-direction: column; overflow: hidden; }
.cost-main.embed { padding: 12px 0 0; flex: 1; min-height: 0; gap: 10px; }
.cost-main.embed .chart-card { height: 168px; }
.cost-main.embed .cost-side { width: 264px; gap: 10px; }
.cost-main.embed .cost-row, .cost-main.embed .cost-brow { gap: 10px; }
.cost-main.embed .cost-left { gap: 10px; }
.cost-main.embed .ccard { padding: 10px 13px; }
.cost-main.embed .cost-stats .stat { padding: 9px 14px; }
.cost-main.embed .mrow { padding: 4px 0; gap: 5px; }
.cost-main.embed .budget-note { margin-top: 6px; }
