:root {
  color-scheme:light;
  --bg:oklch(98% .006 140);
  --surface:oklch(99.5% .003 140);
  --ink:oklch(27% .027 153);
  --muted:oklch(48% .02 153);
  --soft:oklch(94% .017 150);
  --line:oklch(89% .013 150);
  --accent:oklch(43% .076 155);
  --accent-hover:oklch(37% .068 155);
  --on-accent:oklch(99% .005 150);
  --warning:oklch(45% .088 70);
  --warning-bg:oklch(96% .037 82);
  --error:oklch(44% .14 27);
  --error-bg:oklch(97% .018 25);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  font-size:15px;
  line-height:1.5;
  color:var(--ink);
  background:var(--bg);
  font-synthesis:none;
}
* { box-sizing:border-box; }
body { margin:0; }
button,input,textarea,select { font:inherit; color:inherit; }
button,a,summary,input,textarea,select { -webkit-tap-highlight-color:transparent; }
button,summary { cursor:pointer; }
button { transition:background-color .16s ease-out,color .16s ease-out; }
button:disabled { cursor:default; opacity:.48; }
button:hover:not(:disabled) { filter:brightness(.97); }
a { color:var(--accent); }
button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible {
  outline:3px solid oklch(68% .1 155); outline-offset:3px;
}
[hidden] { display:none!important; }
h1,h2,h3,p { margin:0; }
h1 { font-size:1.7rem; line-height:1.3; font-weight:650; letter-spacing:-.035em; }
h2 { font-size:1.05rem; line-height:1.45; font-weight:630; }
h3 { font-size:.94rem; line-height:1.5; font-weight:630; }
p { max-width:72ch; }
svg { width:20px; height:20px; display:block; stroke:currentColor; stroke-width:1.65; fill:none; stroke-linecap:round; stroke-linejoin:round; }
button svg { flex:none; }
select { min-height:44px; min-width:0; border:1px solid var(--line); border-radius:8px; background:var(--surface); padding:7px 30px 7px 10px; }
summary { min-height:44px; align-content:center; list-style-position:inside; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; top:-60px; left:16px; z-index:30; background:var(--accent); color:var(--on-accent); padding:12px 16px; border-radius:8px; }
.skip-link:focus { top:12px; }
.app-shell { height:100dvh; }
.workspace { display:flex; flex-direction:column; height:100%; min-height:0; }
.topbar { display:flex; align-items:center; gap:16px; flex:none; padding:10px max(22px,calc((100% - 1000px)/2)); border-bottom:1px solid var(--line); background:var(--surface); }
.brand { display:flex; align-items:center; min-height:44px; font-size:1.7rem; font-weight:720; letter-spacing:-.075em; color:var(--ink); text-decoration:none; }
.souk-picker { flex:1; min-width:0; }
.souk-picker select { width:100%; max-width:360px; border-color:transparent; background:transparent; text-overflow:ellipsis; font-size:.88rem; }
.souk-picker select:hover { background:var(--soft); }
.top-balance { display:flex; align-items:center; gap:7px; min-height:44px; padding:8px; border:0; border-radius:8px; background:transparent; color:var(--accent); }
.top-balance strong { max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.88rem; font-weight:600; font-variant-numeric:tabular-nums; }
.top-balance:hover { background:var(--soft); }
.app-menu { position:relative; flex:none; }
.app-menu>summary { display:grid; place-items:center; width:44px; min-height:44px; border-radius:8px; list-style:none; }
.app-menu>summary::-webkit-details-marker { display:none; }
.app-menu[open]>summary { background:var(--soft); }
.app-menu>summary svg { stroke-width:4; }
.menu-panel { position:absolute; right:0; top:calc(100% + 8px); z-index:20; width:232px; padding:6px; border:1px solid var(--line); border-radius:12px; background:var(--surface); box-shadow:0 8px 30px oklch(27% .027 153/.1); }
.menu-panel button { display:flex; align-items:center; gap:10px; width:100%; min-height:44px; padding:10px 12px; border:0; border-radius:7px; text-align:left; background:transparent; font-size:.87rem; }
.menu-panel button:hover,.menu-panel button[aria-current=page] { background:var(--soft); }
.connection-state { display:flex; align-items:center; gap:8px; margin:6px 12px 8px; padding-top:10px; border-top:1px solid var(--line); font-size:.72rem; color:var(--muted); }
.status-dot { width:6px; height:6px; flex:none; border-radius:50%; background:var(--muted); }
.status-dot.connected { background:var(--accent); }
.status-dot.error { background:var(--error); }
main { width:100%; max-width:804px; flex:1; min-height:0; margin:0 auto; padding:24px 22px 40px; overflow-y:auto; }
body[data-view=chat] main { display:flex; flex-direction:column; padding:0 22px; overflow:hidden; }
body[data-view=chat] .workspace-foot { display:none; }
.notice-region { flex:none; max-height:40dvh; overflow:auto; }
.chat-view { display:flex; flex-direction:column; flex:1; min-height:0; }
.conversation-heading { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; flex:none; padding:20px 0 12px; }
.conversation-heading h1 { font-size:1.04rem; font-weight:600; letter-spacing:-.015em; }
.account-switch { display:flex; align-items:center; gap:6px; min-height:44px; margin-left:auto; padding:6px; border:0; border-radius:8px; background:transparent; font-size:.74rem; color:var(--muted); }
.account-switch:hover { background:var(--soft); }
.account-avatar { display:grid; place-items:center; width:24px; height:24px; flex:none; border-radius:50%; background:var(--soft); color:var(--accent); font-size:.69rem; font-weight:650; }
.workspace-label { border:1px solid var(--line); border-radius:4px; padding:1px 4px; font-size:.63rem; }
.chat-scroll { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:8px 3px 20px; }
.timeline { display:flex; flex-direction:column; gap:24px; }
.empty-conversation { padding:22px 0; color:var(--muted); font-size:.96rem; }
.conversation-history { margin-bottom:18px; color:var(--muted); font-size:.8rem; }
.conversation-history>.timeline { padding:14px 0 24px; color:var(--ink); }
.message { min-width:0; max-width:100%; }
.message.user { max-width:90%; align-self:flex-end; }
.message-meta { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; margin-bottom:7px; color:var(--muted); font-size:.72rem; }
.message-meta strong { font-weight:570; }
.message-meta time { font-size:.68rem; }
.message.user .message-meta { justify-content:flex-end; }
.message-body { max-width:72ch; font-size:.92rem; line-height:1.75; white-space:pre-wrap; overflow-wrap:anywhere; }
.message.user>.message-body { padding:11px 14px; background:var(--soft); border-radius:12px 12px 3px 12px; }
.message.souk>.message-body { font-size:.9rem; }
.message.system { color:var(--muted); }
.message.system .message-body { font-size:.81rem; }
.message-error { margin-top:8px; color:var(--error); font-size:.82rem; overflow-wrap:anywhere; }
.message-evidence { display:flex; align-items:center; gap:7px; margin-top:9px; color:var(--muted); font-size:.75rem; }
.message-evidence svg { width:16px; height:16px; }
.full-response { margin-top:6px; }
.full-response>summary { font-size:.79rem; color:var(--accent); }
.full-response[open]>.message-body { padding-top:8px; }
.submission-receipt-line { display:flex; flex-wrap:wrap; align-items:center; gap:5px 8px; font-size:.79rem; }
.submission-receipt-line svg { width:16px; height:16px; color:var(--accent); }
.submission-receipt-line strong { font-weight:550; }
.submission-receipt-line span { color:var(--muted); font-size:.73rem; }
.receipt-agent-response>summary { color:var(--muted); font-size:.73rem; }
.receipt-agent-response[open] { margin-top:7px; }
.souk-updates { margin-top:24px; }
.updates-heading { color:var(--muted); font-size:.75rem; font-weight:550; margin-bottom:5px; }
.souk-update { padding:17px 0 8px; border-top:1px solid var(--line); }
.update-heading { display:flex; align-items:center; gap:10px; }
.update-symbol { display:grid; place-items:center; width:26px; height:26px; border-radius:50%; background:var(--soft); color:var(--accent); flex:none; font-size:.85rem; }
.update-title { display:grid; min-width:0; gap:2px; }
.update-title>strong { font-size:.88rem; font-weight:600; }
.update-context { color:var(--muted); font-size:.75rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.update-amount { display:grid; text-align:right; margin-left:auto; flex:none; font-variant-numeric:tabular-nums; }
.update-amount strong { color:var(--accent); font-size:1.08rem; font-weight:620; }
.update-amount.negative strong { color:var(--error); }
.update-amount span { color:var(--muted); font-size:.65rem; }
.update-request { font-size:.88rem; line-height:1.6; margin-top:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.update-detail { color:var(--muted); font-size:.75rem; margin-top:8px; }
.update-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:0 10px; min-height:44px; }
.update-footer>time,.reply-needed { color:var(--muted); font-size:.7rem; }
.reply-needed { color:var(--warning); }
.update-actions { display:flex; align-items:center; gap:10px; margin-left:auto; }
.update-actions .button { min-height:44px; padding:6px 13px; font-size:.78rem; }
.earlier-updates>summary { font-size:.76rem; color:var(--muted); }
.reply-context { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:-5px 0 9px; border-bottom:1px solid var(--line); color:var(--accent); font-size:.76rem; }
.reply-context>span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.reply-context .icon-button { flex:none; }
.composer-dock { flex:none; padding:12px 0 max(16px,env(safe-area-inset-bottom)); background:var(--bg); }
.composer { padding:12px 12px 10px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.composer:focus-within { border-color:oklch(63% .05 153); box-shadow:0 0 0 2px var(--soft); }
textarea { display:block; width:100%; min-height:54px; max-height:160px; resize:vertical; padding:0 2px; border:0; background:transparent; font-size:16px; line-height:1.5; }
textarea:focus-visible { outline:0; }
textarea::placeholder { color:var(--muted); }
.composer-tools { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:8px; }
.composer-tools>span { max-width:65%; color:var(--muted); font-size:.7rem; line-height:1.5; }
.composer-buttons { display:flex; align-items:center; gap:5px; }
.send-button { display:flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:9px 13px; border:0; border-radius:8px; background:var(--accent); color:var(--on-accent); font-size:.81rem; font-weight:580; }
.send-button:hover { background:var(--accent-hover); }
.send-button svg { width:17px; height:17px; }
.icon-button { display:inline-grid; place-items:center; min-width:44px; min-height:44px; padding:8px; border:0; border-radius:8px; background:transparent; color:var(--muted); }
.icon-button:hover { background:var(--soft); }
.draft-notice,.input-note { margin-top:8px; color:var(--warning); font-size:.76rem; line-height:1.5; }
.operation { display:flex; gap:10px; margin-top:20px; padding:12px; background:var(--soft); border-radius:8px; font-size:.83rem; }
.operation p { margin-top:4px; color:var(--muted); font-size:.8rem; overflow-wrap:anywhere; }
.operation-dot { width:7px; height:7px; flex:none; border-radius:50%; background:var(--accent); margin-top:6px; }
.operation.failed { background:var(--error-bg); }
.operation.failed .operation-dot { background:var(--error); }
.operation.waiting .operation-dot { background:var(--warning); }
.button-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:12px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:9px 14px; border:1px solid transparent; border-radius:8px; font-size:.83rem; line-height:1.4; font-weight:570; text-decoration:none; }
.button.primary { background:var(--accent); color:var(--on-accent); }
.button.secondary { border-color:var(--line); background:var(--surface); }
.button.subtle { background:transparent; color:var(--accent); }
.text-button,.back-button { display:inline-flex; align-items:center; gap:7px; min-height:44px; padding:8px 0; border:0; background:transparent; color:var(--accent); font-size:.83rem; text-align:left; }
.back-button { margin-bottom:12px; }
.page-heading { margin-bottom:28px; }
.page-heading h1 { margin-bottom:8px; }
.page-heading p { color:var(--muted); font-size:.88rem; }
.eyebrow { color:var(--muted); font-size:.7rem; font-weight:620; letter-spacing:.065em; text-transform:uppercase; }
.quiet,.fine-print { color:var(--muted); font-size:.76rem; line-height:1.65; }
.empty-copy { padding:16px 0; color:var(--muted); font-size:.85rem; line-height:1.65; }
.section-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; margin-bottom:16px; }
.status-pill { display:inline-flex; align-items:center; border-radius:18px; padding:5px 9px; background:var(--soft); font-size:.72rem; color:var(--accent); font-weight:560; }
.status-pill.warning { color:var(--warning); background:var(--warning-bg); }
.status-pill.failed { color:var(--error); background:var(--error-bg); }
.case-heading { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:24px; }
.case-heading h1 { margin:6px 0; font-size:1.18rem; overflow-wrap:anywhere; }
.case-summary { color:var(--muted); font-size:.87rem; line-height:1.65; }
.next-step { display:flex; gap:10px; padding:16px 0 24px; border-bottom:1px solid var(--line); margin-bottom:24px; }
.next-step-symbol { color:var(--accent); padding-top:4px; }
.next-step-copy { min-width:0; }
.next-step-copy h2 { margin:4px 0 7px; }
.next-step-copy p { font-size:.86rem; color:var(--muted); line-height:1.65; }
.action-reason { flex-basis:100%; color:var(--muted); font-size:.76rem; }
.work-section { margin-bottom:24px; }
.work-item { border-bottom:1px solid var(--line); }
.work-item:first-child { border-top:1px solid var(--line); }
.work-item>summary { display:flex; align-items:center; gap:12px; padding:16px 0; list-style:none; }
.work-item>summary::-webkit-details-marker { display:none; }
.work-item-heading { display:grid; gap:6px; flex:1; min-width:0; }
.work-item-heading>strong { font-size:.86rem; font-weight:600; overflow-wrap:anywhere; }
.work-item-summary { color:var(--muted); font-size:.76rem; line-height:1.6; }
.work-item>summary>svg { width:16px; height:16px; flex:none; }
.work-item[open]>summary>svg { transform:rotate(90deg); }
.work-item-body { padding-bottom:20px; }
.work-item-body h3 { margin:16px 0 6px; color:var(--muted); font-size:.8rem; }
.work-item-text { font-size:.88rem; line-height:1.75; white-space:pre-wrap; overflow-wrap:anywhere; }
.work-item-body>time { display:block; margin-top:14px; color:var(--muted); font-size:.72rem; }
.work-item-body>.button { margin-top:16px; }
.work-result { display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:16px; font-size:.84rem; }
.work-result p { flex-basis:100%; }
.case-detail,.activity-detail,.account-detail,.agent-connection,.diagnostics { margin-top:20px; padding:8px 0; border-top:1px solid var(--line); font-size:.85rem; }
.activity-detail>p,.agent-connection>p { margin:8px 0; color:var(--muted); line-height:1.7; }
.case-steps { display:flex; gap:8px; list-style:none; margin:16px 0 20px; padding:0; }
.case-steps li { display:flex; align-items:center; gap:7px; flex:1; color:var(--muted); font-size:.73rem; }
.step-circle { display:grid; place-items:center; flex:none; width:23px; height:23px; border:1px solid var(--line); border-radius:50%; font-size:.68rem; }
.step-circle svg { width:13px; height:13px; }
.case-steps .complete .step-circle { background:var(--accent); color:var(--on-accent); border-color:var(--accent); }
.case-steps .current { color:var(--ink); font-weight:600; }
.case-facts { display:flex; flex-wrap:wrap; gap:20px 28px; margin:20px 0; }
.case-facts dt { color:var(--muted); font-size:.74rem; }
.case-facts dd { margin:5px 0 0; font-size:.93rem; }
.evidence-section { margin-top:24px; }
.evidence-row { padding:8px 0; border-bottom:1px solid var(--line); }
.evidence-row summary { display:flex; align-items:center; gap:9px; min-height:44px; list-style:none; }
.evidence-row summary::-webkit-details-marker { display:none; }
.evidence-row summary>svg { flex:none; width:17px; height:17px; }
.evidence-row summary>span:nth-child(2) { flex:1; font-size:.84rem; font-weight:550; }
.version-badge { padding:2px 6px; border-radius:4px; background:var(--soft); font-size:.67rem; }
.evidence-row .chevron { width:14px; height:14px; }
.evidence-row[open] .chevron { transform:rotate(90deg); }
.evidence-content { padding:8px 0 12px; font-size:.85rem; line-height:1.75; white-space:pre-wrap; overflow-wrap:anywhere; }
.evidence-content time { display:block; margin-top:10px; font-size:.72rem; color:var(--muted); }
.balance-statement { padding:22px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.statement-total { display:flex; flex-direction:column; gap:5px; }
.statement-total>span { color:var(--muted); font-size:.8rem; }
.statement-total strong { font-size:2rem; font-weight:650; letter-spacing:-.04em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.statement-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin:24px 0 0; }
.statement-stats dt { font-size:.75rem; color:var(--muted); }
.statement-stats dd { margin:5px 0 0; font-size:1rem; font-weight:600; }
.account-note { margin-top:16px; color:var(--muted); font-size:.78rem; line-height:1.65; }
.detail-list { margin:16px 0; }
.detail-list>div { display:grid; grid-template-columns:150px minmax(0,1fr); gap:16px; padding:10px 0; border-bottom:1px solid var(--line); font-size:.82rem; }
.detail-list dt { color:var(--muted); }
.detail-list dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.balance-opportunities { margin:28px 0; }
.opportunity { padding:18px 0; border-bottom:1px solid var(--line); }
.opportunity p { margin-top:6px; color:var(--muted); font-size:.84rem; line-height:1.65; }
.ledger-row { display:flex; justify-content:space-between; gap:20px; padding:18px 0; border-bottom:1px solid var(--line); }
.ledger-row>div:first-child { min-width:0; }
.ledger-row strong { display:block; font-size:.86rem; overflow-wrap:anywhere; }
.ledger-row p,.ledger-row time { display:block; margin-top:5px; font-size:.76rem; color:var(--muted); overflow-wrap:anywhere; }
.ledger-value { text-align:right; flex:none; }
.ledger-value.positive { color:var(--accent); }
.activity-list { margin:14px 0 24px; }
.activity-event { display:flex; gap:12px; padding:14px 0; }
.event-icon { flex:none; padding-top:3px; color:var(--muted); }
.event-icon svg { width:17px; height:17px; }
.activity-event>div { min-width:0; }
.activity-event h3 { font-size:.87rem; }
.activity-event p { margin-top:5px; white-space:pre-wrap; overflow-wrap:anywhere; font-size:.83rem; line-height:1.7; color:var(--muted); }
.activity-event time { display:block; margin-top:8px; font-size:.72rem; color:var(--muted); }
.test-account-control { display:flex; align-items:center; flex-wrap:wrap; gap:10px 16px; margin:16px 0; }
.test-account-control select { font-size:16px; }
.credential-row { display:flex; gap:8px; margin:8px 0 10px; }
.credential-row input { flex:1; min-width:0; min-height:44px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:var(--surface); }
.diagnostics pre { padding:12px; background:var(--soft); overflow:auto; font-size:.73rem; line-height:1.7; max-height:380px; }
.model-setting { display:grid; grid-template-columns:1fr 1fr; gap:10px; align-items:center; margin:16px 0; }
.model-setting p { grid-column:1/-1; }
.explore-filters { display:flex; gap:12px; margin-bottom:18px; }
.search-field { display:flex; align-items:center; gap:10px; flex:1; min-width:0; padding:0 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--muted); }
.search-field>span { flex:none; }
.search-field:focus-within { outline:3px solid oklch(68% .1 155); outline-offset:3px; }
.search-field input { width:100%; min-width:0; min-height:46px; border:0; outline:none; background:transparent; color:var(--ink); font-size:16px; }
.search-field input:focus-visible { outline:none; }
.readiness-filter select { min-height:48px; }
.catalog-count { margin-bottom:12px; color:var(--muted); font-size:.79rem; }
.souk-list { border-top:1px solid var(--line); }
.souk-row { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:20px 0; border-bottom:1px solid var(--line); }
.souk-identity { display:flex; align-items:flex-start; gap:14px; min-width:0; }
.souk-monogram { display:grid; place-items:center; flex:none; width:40px; height:40px; border:1px solid var(--line); border-radius:9px; color:var(--accent); background:var(--surface); font-size:1.05rem; }
.souk-copy { min-width:0; }
.souk-row-heading { display:flex; align-items:baseline; flex-wrap:wrap; gap:5px 10px; }
.current-label { font-size:.71rem; color:var(--muted); }
.souk-row p { margin-top:5px; font-size:.83rem; line-height:1.65; color:var(--muted); }
.souk-meta { display:flex; flex-wrap:wrap; gap:5px 12px; margin-top:8px; color:var(--muted); font-size:.72rem; }
.ready-label { color:var(--accent); }
.catalog-case { flex-basis:100%; }
.souk-row>.button { flex:none; }
.catalog-empty { padding:30px 0; }
.catalog-empty p { margin:8px 0 18px; color:var(--muted); font-size:.85rem; }
.connection-banner,.deployment-banner,.error-banner,.request-notice,.uncertain-request { margin:10px 0; padding:12px 14px; border-radius:8px; font-size:.82rem; line-height:1.65; overflow-wrap:anywhere; }
.connection-banner,.deployment-banner,.uncertain-request { background:var(--warning-bg); color:var(--warning); }
.error-banner { display:flex; align-items:flex-start; gap:12px; background:var(--error-bg); color:var(--error); }
.error-banner>div { flex:1; min-width:0; }
.error-banner p { margin-top:4px; }
.error-banner>.icon-button { margin:-6px -6px 0 0; flex:none; color:var(--error); }
.request-notice { background:var(--soft); color:var(--accent); }
.uncertain-request pre { max-height:180px; overflow:auto; white-space:pre-wrap; font-size:.76rem; }
.workspace-foot { margin-top:30px; padding-top:14px; border-top:1px solid var(--line); font-size:.7rem; color:var(--muted); }
.recording { background:var(--error-bg); color:var(--error); }
@media(max-width:640px) {
  .topbar { padding:8px 12px; gap:6px; }
  .brand { font-size:1.4rem; }
  .souk-picker select { font-size:16px; padding-left:6px; padding-right:22px; }
  .top-balance { gap:5px; padding:6px; }
  .top-balance strong { max-width:72px; font-size:.83rem; }
  .top-balance svg { width:17px; height:17px; }
  main { padding:16px 16px 32px; }
  body[data-view=chat] main { padding:0 16px; }
  .conversation-heading { padding:10px 0 8px; gap:4px 6px; }
  .conversation-heading h1 { font-size:.96rem; }
  .account-switch { gap:5px; padding-right:0; font-size:.7rem; }
  .account-avatar { width:21px; height:21px; font-size:.64rem; }
  .workspace-label { font-size:.61rem; }
  .chat-scroll { padding-top:4px; padding-bottom:12px; }
  .timeline { gap:20px; }
  .message-body { font-size:.88rem; line-height:1.7; }
  .message-meta { font-size:.67rem; }
  .message-meta time { font-size:.64rem; }
  .message.user { max-width:94%; }
  .empty-conversation { font-size:.92rem; padding-top:20px; }
  .composer-dock { padding-top:10px; }
  .composer { padding:11px 10px 9px; }
  .composer-tools>span { font-size:.65rem; }
  .send-button { font-size:.78rem; padding:9px 11px; }
  .page-heading { margin-bottom:22px; }
  .page-heading h1 { font-size:1.55rem; }
  .case-heading h1 { font-size:1.12rem; }
  .detail-list>div { grid-template-columns:100px minmax(0,1fr); gap:12px; font-size:.77rem; }
  .explore-filters { flex-wrap:wrap; gap:10px; }
  .search-field { flex-basis:100%; }
  .readiness-filter select,.model-setting select,.credential-row input { font-size:16px; }
  .souk-row { align-items:flex-start; gap:10px; }
  .souk-identity { gap:10px; }
  .souk-monogram { width:32px; height:34px; font-size:.93rem; }
  .souk-row h3 { font-size:.9rem; }
  .souk-row p { font-size:.79rem; }
  .souk-row>.button { padding:9px 10px; font-size:.77rem; }
  .souk-row>.button svg { display:none; }
  .work-item>summary { flex-wrap:wrap; gap:8px; }
  .work-item-heading { flex-basis:calc(100% - 26px); }
  .work-item>summary>svg { order:1; }
  .work-item>summary>.status-pill { order:2; }
  .case-steps { flex-wrap:wrap; gap:12px; }
  .case-steps li { flex-basis:45%; }
  .balance-statement { padding:18px; }
  .statement-total strong { font-size:1.8rem; }
  .ledger-row { gap:12px; }
  .ledger-value { max-width:35%; }
  .model-setting { grid-template-columns:1fr; }
  .model-setting p { grid-column:1; }
}
@media(prefers-reduced-motion:reduce) {
  * { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
