/* Cognitive V8 — workspace UI. Builds on the tokens defined in index.html. */

/* ---------- popovers, menus, modals ---------- */
.v8-pop { position: fixed; z-index: 600; min-width: 220px; max-width: 340px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; font-size: 13px; max-height: 70vh; overflow: auto; }
.v8-pop .mi { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 7px 10px; border-radius: 8px; color: var(--text); }
.v8-pop .mi:hover, .v8-pop .mi.on { background: var(--hover); }
.v8-pop .mi small { color: var(--text3); margin-left: auto; font-size: 11.5px; }
.v8-pop .mi .mic { width: 18px; text-align: center; color: var(--text2); flex-shrink: 0; }
.v8-pop .mi .mdesc { display: block; color: var(--text2); font-size: 11.5px; line-height: 1.35; }
.v8-pop .msep { height: 1px; background: var(--border); margin: 5px 4px; }
.v8-pop .mh { font-size: 11px; font-weight: 600; color: var(--text3); padding: 6px 10px 4px; text-transform: uppercase; letter-spacing: .5px; }
.v8-pop .mfoot { font-size: 11.5px; color: var(--text3); padding: 6px 10px 4px; line-height: 1.4; }
.v8-scrim { position: fixed; inset: 0; z-index: 700; background: rgba(0,0,0,.42); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow: auto; }
.v8-modal { width: 100%; max-width: 720px; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.v8-modal.wide { max-width: 960px; } .v8-modal.narrow { max-width: 520px; }
.v8-modal-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.v8-modal-h b { font-size: 15px; flex: 1; }
.v8-modal-b { padding: 16px 18px; max-height: 72vh; overflow: auto; }
.v8-modal-f { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--bg); }

/* ---------- forms ---------- */
.f-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.f-row:last-child { border-bottom: none; }
.f-row .f-l { flex: 1; min-width: 0; } .f-row .f-l b { display: block; font-weight: 600; font-size: 13.5px; } .f-row .f-l small { display: block; color: var(--text2); font-size: 12.5px; line-height: 1.45; }
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.f-grid label, .f-lab { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text2); font-weight: 500; }
.field.sm { height: 34px; font-size: 13px; }
textarea.field { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; }
select.field { appearance: auto; }
.v8-sec { margin: 18px 0 8px; } .v8-sec b { font-weight: 600; } .v8-sec small { display: block; color: var(--text2); font-size: 12.5px; }
.box { border: 1px solid var(--border); border-radius: 12px; background: var(--panel); padding: 12px 14px; }
.box + .box { margin-top: 10px; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--text2); } .faint { color: var(--text3); }
.grow { flex: 1; min-width: 0; }
.hstack { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vstack { display: flex; flex-direction: column; gap: 8px; }
.copyline { display: flex; gap: 6px; align-items: center; background: var(--hover); border-radius: 8px; padding: 6px 8px; font-family: var(--mono); font-size: 12px; overflow: hidden; }
.copyline span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- page chrome ---------- */
.pg { max-width: 1040px; margin: 0 auto; padding: 26px 28px 60px; }
.pg-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.pg-h .page-h { flex: 1; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 14px 0 16px; overflow-x: auto; }
.tabs button { padding: 8px 12px; font-weight: 500; font-size: 13px; color: var(--text2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--text); border-bottom-color: var(--text); }
.tabs button .ct { font-size: 11px; color: var(--text3); margin-left: 4px; }
.pills { display: inline-flex; gap: 4px; background: var(--hover); padding: 3px; border-radius: 9px; }
.pills button { padding: 4px 11px; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--text2); }
.pills button.on { background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.empty-card { text-align: center; padding: 44px 20px; color: var(--text2); border: 1px dashed var(--border2); border-radius: 14px; }
.empty-card .ei { width: 40px; height: 40px; border-radius: 12px; background: var(--hover); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 10px; }
.empty-card b { display: block; color: var(--text); font-size: 14.5px; margin-bottom: 4px; }
.callout { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); border-left: 3px solid var(--accent); }
.callout .rt { flex: 1; min-width: 0; } .callout b { display: block; } .callout small { color: var(--text2); font-size: 12.5px; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.tcard { text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); display: flex; flex-direction: column; gap: 6px; min-height: 118px; transition: border-color .12s, transform .12s; }
.tcard:hover { border-color: var(--border2); transform: translateY(-1px); }
.tcard b { font-size: 13.5px; } .tcard small { color: var(--text2); font-size: 12.5px; line-height: 1.45; flex: 1; }
.tcard .tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; padding: 1px 7px; border-radius: 6px; background: var(--hover); color: var(--text2); }
.sev { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; text-transform: uppercase; letter-spacing: .3px; }
.sev.critical { background: #7f1d1d; color: #fecaca; } .sev.high { background: var(--bad-soft); color: var(--bad); } .sev.medium { background: var(--warn-soft); color: var(--warn); } .sev.low { background: var(--accent-soft); color: var(--accent-text); } .sev.info { background: var(--hover); color: var(--text2); }
.list { border: 1px solid var(--border); border-radius: 12px; background: var(--panel); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.li:last-child { border-bottom: none; }
.li.click { cursor: pointer; } .li.click:hover { background: var(--hover); }
.li .rt { flex: 1; min-width: 0; } .li .rt b { font-weight: 600; font-size: 13.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .li .rt small { color: var(--text2); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .ri { width: 30px; height: 30px; border-radius: 8px; background: var(--hover); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.statusdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: var(--text3); }
.statusdot.running { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); animation: pulse 1.4s infinite; }
.statusdot.done { background: var(--ok); } .statusdot.failed, .statusdot.stopped { background: var(--bad); } .statusdot.paused, .statusdot.waiting { background: var(--warn); }

/* ---------- filter chips (sessions list) ---------- */
.fchips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 10px; border-radius: 8px; border: 1px solid var(--border); font-size: 12.5px; background: var(--panel); color: var(--text2); }
.fchip b { color: var(--text); font-weight: 500; }
.fchip button { width: 18px; height: 18px; border-radius: 5px; color: var(--text3); display: inline-flex; align-items: center; justify-content: center; }
.fchip button:hover { background: var(--hover); color: var(--text); }
.grp-h { font-size: 12px; font-weight: 600; color: var(--text3); padding: 10px 14px 6px; background: var(--bg); border-bottom: 1px solid var(--border); }

/* ---------- command palette ---------- */
.pal { width: 100%; max-width: 620px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.pal input { width: 100%; border: none; outline: none; background: transparent; padding: 15px 18px; font-size: 15px; border-bottom: 1px solid var(--border); }
.pal-list { max-height: 56vh; overflow: auto; padding: 6px; }
.pal-h { font-size: 11px; font-weight: 600; color: var(--text3); padding: 8px 10px 4px; }
.pal-i { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; }
.pal-i.on { background: var(--hover); }
.pal-i .pk { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text3); }
.pal-f { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--text3); }

/* ---------- session workspace ---------- */
body.ws-open .main { display: grid; grid-template-columns: minmax(0, 1fr) var(--wsw, 46%); grid-template-rows: 52px minmax(0, 1fr) auto; }
body.ws-open .topbar { grid-column: 1 / -1; }
body.ws-open .view { grid-column: 1; grid-row: 2; }
body.ws-open #dock { grid-column: 1; grid-row: 3; }
#wsPanel { display: none; }
body.ws-open #wsPanel { display: flex; flex-direction: column; grid-column: 2; grid-row: 2 / 4; border-left: 1px solid var(--border); background: var(--panel); min-height: 0; min-width: 0; position: relative; }
body.ws-open #wsPanel.max { position: fixed; inset: 52px 0 0 0; z-index: 90; }
.ws-grip { position: absolute; left: -3px; top: 0; bottom: 0; width: 6px; cursor: col-resize; z-index: 5; }
.ws-tabs { display: flex; align-items: center; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid var(--border); overflow-x: auto; flex-shrink: 0; }
.ws-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px 8px 0 0; font-size: 12.5px; font-weight: 500; color: var(--text2); white-space: nowrap; border: 1px solid transparent; border-bottom: none; margin-bottom: -1px; }
.ws-tab.on { color: var(--text); background: var(--panel); border-color: var(--border); }
.ws-tab:hover { color: var(--text); }
.ws-tab .x { width: 16px; height: 16px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; color: var(--text3); font-size: 12px; }
.ws-tab .x:hover { background: var(--hover); color: var(--text); }
.ws-tools { margin-left: auto; display: flex; gap: 2px; padding-bottom: 4px; }
.ws-body { flex: 1; min-height: 0; overflow: auto; position: relative; }
.ws-pad { padding: 12px 14px; }
.ws-foot { flex-shrink: 0; border-top: 1px solid var(--border); padding: 6px 12px; font-size: 11.5px; color: var(--text3); display: flex; gap: 10px; align-items: center; }
.ws-foot .dot { width: 7px; height: 7px; }
.term { background: var(--code-bg); color: #D4D4D8; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; min-height: 100%; padding: 10px 12px; }
.term .tl { white-space: pre-wrap; word-break: break-word; }
.term .tp { color: #86EFAC; } .term .te { color: #FCA5A5; } .term .tm { color: #71717A; }
.term-in { display: flex; gap: 8px; align-items: center; background: var(--code-bg); border-top: 1px solid rgba(255,255,255,.08); padding: 8px 12px; }
.term-in span { color: #86EFAC; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.term-in input { flex: 1; background: transparent; border: none; outline: none; color: #F4F4F5; font-family: var(--mono); font-size: 12.5px; }
.ftree { font-size: 12.5px; padding: 6px 0; }
.ftree .fi { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; padding: 3px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text2); }
.ftree .fi:hover { background: var(--hover); color: var(--text); }
.ftree .fi.on { background: var(--accent-soft); color: var(--accent-text); }
.ftree .fi .st { margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 700; }
.st-M { color: var(--warn); } .st-A, .st-\?\? { color: var(--ok); } .st-D { color: var(--bad); }
.fview { display: grid; grid-template-columns: auto 1fr; font-family: var(--mono); font-size: 12px; line-height: 1.55; }
.fview .ln { color: var(--text3); text-align: right; padding: 0 10px; user-select: none; border-right: 1px solid var(--border); }
.fview .lc { padding: 0 12px; white-space: pre; overflow-x: auto; }
.dfile { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.dfile-h { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--bg); font-family: var(--mono); font-size: 12px; cursor: pointer; border-bottom: 1px solid var(--border); }
.dfile-h .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dfile pre { margin: 0; font-family: var(--mono); font-size: 11.5px; line-height: 1.5; background: var(--code-bg); color: #D4D4D8; overflow-x: auto; padding: 6px 0; }
.dfile pre .l { display: block; padding: 0 10px; white-space: pre; }
.dfile pre .a { background: rgba(16,185,129,.14); color: #A7F3D0; } .dfile pre .d { background: rgba(239,68,68,.14); color: #FECACA; } .dfile pre .h { color: #93C5FD; }
.plus { color: var(--ok); font-family: var(--mono); font-size: 12px; } .minus { color: var(--bad); font-family: var(--mono); font-size: 12px; }
.scrub { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--border); flex-shrink: 0; }
.scrub input[type=range] { flex: 1; accent-color: var(--accent); }
.sc-cmd { font-family: var(--mono); font-size: 12px; color: var(--text); background: var(--hover); padding: 8px 10px; border-radius: 8px; margin-bottom: 8px; white-space: pre-wrap; word-break: break-word; }
.preview-frame { width: 100%; height: 100%; border: none; background: #fff; }
.side-chat .msg { margin-bottom: 14px; }
.report { margin-top: 12px; }
.report table { width: 100%; }
.report .pill { font-weight: 600; }

/* ---------- builder ---------- */
.trig { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; background: var(--bg); }
.trig + .trig { margin-top: 8px; }
.trig .ti { width: 26px; height: 26px; border-radius: 7px; background: var(--hover); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.evchk { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 10px; font-size: 12.5px; }
.evchk label { display: flex; gap: 6px; align-items: center; color: var(--text2); }

/* ---------- marketplace ---------- */
.mk-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.mk-img { background: #fff; border: 1px solid var(--border); }
.mk-img img { display: block; }
.mk-logo { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; flex-shrink: 0; }
.mk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 12px; background: var(--panel); overflow: hidden; }
.mk-grid .mk-row:nth-last-child(-n+2) { border-bottom: none; }
.mk-grid .mk-row:nth-child(odd) { border-right: 1px solid var(--border); }

/* ---------- charts ---------- */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding: 8px 4px 0; border-bottom: 1px solid var(--border); }
.bars .bar { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 1px; position: relative; opacity: .85; }
.bars .bar:hover { opacity: 1; }
.bars-x { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text3); padding: 4px 2px 0; }

/* ---------- sidebar extras ---------- */
.side-sec .icon-btn + .icon-btn { margin-left: 2px; }
.nav-more { margin-top: 2px; }
.nav-sub { font-size: 11px; font-weight: 600; color: var(--text3); padding: 10px 10px 2px; text-transform: uppercase; letter-spacing: .5px; }
.side-foot .icon-btn { flex-shrink: 0; }
.dict.on { color: var(--bad) !important; border-color: var(--bad) !important; }
.att { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 6px 3px 9px; border-radius: 7px; background: var(--hover); color: var(--text2); }
.att button { color: var(--text3); }
.atts { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 4px; }

@media (max-width: 1100px) { body.ws-open .main { grid-template-columns: minmax(0, 1fr) 50%; } }
@media (max-width: 860px) {
  body.ws-open .main { display: flex; flex-direction: column; }
  body.ws-open #wsPanel { position: fixed; inset: 52px 0 0 0; z-index: 90; }
  .pg { padding: 18px 16px 40px; }
  .mk-grid { grid-template-columns: 1fr; } .mk-grid .mk-row:nth-child(odd) { border-right: none; }
}
.f-row:not([style*="block"]) > input.field, .f-row:not([style*="block"]) > select.field { width: auto; flex: 0 1 280px; max-width: 280px; }
.empty-card .hstack { justify-content: center; }
.term .tl:first-child { padding-top: 2px; }

/* memory files */
.mem-wrap { display: grid; grid-template-columns: 240px 1fr; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); min-height: 380px; overflow: hidden; }
.mem-tree { border-right: 1px solid var(--border); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.mem-f { text-align: left; background: none; border: 0; border-radius: 8px; padding: 6px 8px; font-size: 13px; color: var(--text); cursor: pointer; }
.mem-f:hover { background: var(--hover, rgba(0,0,0,.04)); } .mem-f.on { background: var(--hover, rgba(0,0,0,.06)); font-weight: 600; }
.mem-dir { font-size: 13px; padding: 6px 8px; color: var(--text2); }
.mem-bar { padding: 8px 12px; border-bottom: 1px solid var(--border); gap: 8px; }
.mem-md { padding: 14px 18px; }
@media (max-width: 720px) { .mem-wrap { grid-template-columns: 1fr; } .mem-tree { border-right: none; border-bottom: 1px solid var(--border); } }

/* pull request workspace */
.pr-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; height: 100%; min-height: calc(100vh - 56px); }
.pr-main { padding: 18px 24px 40px; overflow: auto; min-width: 0; }
.pr-side { border-left: 1px solid var(--border); padding: 12px 14px; overflow: auto; background: var(--panel); display: flex; flex-direction: column; }
.pr-side-body { margin-top: 12px; flex: 1; display: flex; flex-direction: column; }
.pr-meta { gap: 8px; flex-wrap: wrap; font-size: 13px; }
.pr-meta .add, .pr-file .add, .pr-fl .add { color: #16a34a; font-size: 12.5px; } .pr-meta .del, .pr-file .del, .pr-fl .del { color: #dc2626; font-size: 12.5px; }
.pr-files { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.pr-fl { display: flex; width: 100%; gap: 8px; align-items: center; background: none; border: 0; border-bottom: 1px solid var(--border); padding: 6px 12px; font-size: 12.5px; color: var(--text); cursor: pointer; text-align: left; }
.pr-fl:last-child { border-bottom: none; } .pr-fl:hover { background: var(--hover, rgba(0,0,0,.04)); }
.pr-file { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; background: var(--panel); overflow: hidden; }
.pr-file > summary { padding: 10px 14px; gap: 10px; cursor: pointer; border-bottom: 1px solid var(--border); list-style: none; }
.pr-diff { width: 100%; border-collapse: collapse; font-family: var(--mono, ui-monospace, monospace); font-size: 12.5px; }
.pr-diff td { padding: 1px 8px; vertical-align: top; white-space: pre-wrap; word-break: break-word; }
.pr-diff td:nth-child(-n+2) { width: 1%; min-width: 34px; text-align: right; color: var(--text3, #999); user-select: none; }
.pr-diff tr.add { background: rgba(22,163,74,.12); } .pr-diff tr.del { background: rgba(220,38,38,.10); }
.pr-diff tr.hunk td { background: rgba(59,130,246,.08); color: #2563eb; }
.pr-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--bg, transparent); }
.pr-skel { height: 34px; border-radius: 8px; margin-top: 8px; background: linear-gradient(90deg, rgba(0,0,0,.04), rgba(0,0,0,.08), rgba(0,0,0,.04)); background-size: 200% 100%; animation: prsk 1.2s infinite; }
@keyframes prsk { to { background-position: -200% 0; } }
.pr-bug { border-top: 1px solid var(--border); padding-top: 8px; margin-top: 8px; font-size: 13px; }
.pr-sec { border-top: 1px solid var(--border); padding: 12px 2px; margin-top: 12px; font-size: 13px; }
.pr-bar { height: 6px; border-radius: 4px; background: rgba(0,0,0,.08); display: flex; overflow: hidden; margin: 8px 0 6px; }
.pr-bar span { background: #16a34a; } .pr-bar i { background: #f97316; margin-left: auto; }
.pr-chat { display: flex; flex-direction: column; flex: 1; min-height: 420px; }
.pr-msgs { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.pr-msg.user { align-self: flex-end; background: var(--hover, rgba(0,0,0,.06)); border-radius: 12px; padding: 8px 12px; max-width: 90%; font-size: 13.5px; }
.pr-msg.assistant { font-size: 13.5px; }
.pr-sug { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 6px 2px; font-size: 13.5px; color: var(--text2); cursor: pointer; }
.pr-sug:hover { color: var(--text); }
.pr-in { display: flex; gap: 6px; border: 1px solid var(--border); border-radius: 12px; padding: 8px; margin-top: 10px; align-items: flex-end; }
.pr-in textarea { flex: 1; border: 0; outline: none; resize: none; background: transparent; font: inherit; font-size: 13.5px; color: var(--text); }
@media (max-width: 900px) { .pr-wrap { grid-template-columns: 1fr; } .pr-side { border-left: none; border-top: 1px solid var(--border); } }

/* live working indicator */
.typing.wk { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13.5px; }
.typing.wk i { display: none; }
.wk-spark { width: 14px; height: 14px; fill: var(--accent, #7c3aed); flex-shrink: 0; animation: wkSpin 2.4s linear infinite, wkPulse 1.2s ease-in-out infinite; transform-origin: 50% 50%; }
.wk-l { font-weight: 500; background: linear-gradient(90deg, var(--text3, #9aa0a6) 0%, var(--text3, #9aa0a6) 35%, var(--text, #111) 50%, var(--text3, #9aa0a6) 65%, var(--text3, #9aa0a6) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: wkShimmer 1.8s linear infinite; }
.wk-t { color: var(--text3, #9aa0a6); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.wk-t::after { content: ' ›'; }
@keyframes wkSpin { to { transform: rotate(360deg); } }
@keyframes wkPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes wkShimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .wk-spark, .wk-l { animation: none; } .wk-l { color: var(--text2); background: none; } }
