:root{font-family:"Segoe UI",Arial,"Microsoft YaHei",sans-serif;color:#252525;background:#fff;font-size:13px;--bg:#fff;--side:#f6f6f5;--line:#e9e9e7;--muted:#92928e;--ink:#262626;--hover:#eeeeeb;--sub:#62625f;--bubble:#f0f0ed;--panel:#fafaf8;color-scheme:light}*{box-sizing:border-box}body{margin:0;height:100svh;overflow:hidden}button,input,textarea{font:inherit}button,a{color:inherit;-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{text-decoration:none}button{border:0;background:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #678377;outline-offset:2px}button:disabled{cursor:default;opacity:.45}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}h1,h2,h3,p{margin:0}::selection{background:#d8e6df}.workspace{height:100%;display:grid;grid-template-columns:214px 1fr;grid-template-rows:minmax(0,1fr);background:var(--bg)}.sidebar{background:var(--side);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:20px 12px 12px;min-height:0}.brand{display:flex;align-items:center;gap:8px;padding:0 9px 21px;font-weight:600;font-size:13px}.brand img{opacity:.78}.brand small{font:10px monospace;color:#999a96;margin-left:auto;font-weight:400}.new-task{display:flex;align-items:center;gap:7px;text-align:left;padding:9px 10px;border:1px solid #dfdfdb;border-radius:7px;background:var(--bg);font-size:12px;box-shadow:0 1px 2px #00000003}.new-task:hover{background:var(--hover)}.new-task>span{font-size:18px;color:#777}.new-task kbd{margin-left:auto;font:9px Arial;color:#aaa}.sidebar-label{font-size:10px;color:var(--muted);padding:24px 10px 8px;display:flex;justify-content:space-between}.workspace-path{display:flex;align-items:center;gap:7px;padding:8px 10px;text-align:left;color:var(--sub);font-size:11px;border-radius:6px}.workspace-path:hover{background:var(--hover)}.workspace-path svg{width:15px;height:15px}.tasks-label{padding-top:22px}.task-list{display:grid;gap:3px;overflow:auto}.task-list button{display:flex;align-items:center;gap:8px;padding:10px;border-radius:6px;text-align:left;font-size:11px;color:var(--sub)}.task-list button:hover,.task-list button.selected{background:var(--hover);color:var(--ink)}.task-list small{font-size:9px;color:var(--muted);margin-left:auto;white-space:nowrap}.task-dot{width:4px;height:4px;border-radius:50%;background:#c1c2bc;flex-shrink:0}.task-list .selected .task-dot{background:#647669}.sidebar-bottom{margin-top:auto;padding-top:20px}.sidebar-bottom>button{display:flex;align-items:center;gap:8px;width:100%;padding:10px;text-align:left;font-size:11px;color:var(--sub);border-radius:6px}.sidebar-bottom>button:hover{background:var(--hover)}.sidebar-bottom>button>span{margin-left:auto;color:#a4a59f;font-size:10px}.sidebar-bottom svg{width:16px;height:16px}.demo-account{display:flex;align-items:center;gap:9px;padding:12px 8px 0;border-top:1px solid var(--line);margin-top:7px}.avatar{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#e0e4db;color:#687260;font-size:11px}.demo-account strong{display:block;font-size:11px;font-weight:500}.demo-account small{display:block;font-size:9px;color:var(--muted);margin-top:2px}.demo-account>span:last-child{margin-left:auto;color:var(--muted)}.main{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;position:relative}.topbar{height:49px;min-height:49px;padding:0 20px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);font-size:11px;color:var(--sub)}.icon-button{height:29px;width:29px;display:flex;justify-content:center;align-items:center;border-radius:5px;color:var(--sub);font-size:19px}.icon-button:hover{background:var(--hover)}#sidebar-toggle{display:none}.demo-label{margin-left:auto;font-size:9px;color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:3px 6px;white-space:nowrap}.subtle-button{font-size:10px;color:var(--muted);border-radius:4px;padding:5px 7px}.subtle-button:hover{background:var(--hover);color:var(--ink)}.chat-view{flex:1;min-height:0;display:flex;flex-direction:column;position:relative}.scroll-area{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#dcdcd7 transparent;overflow-anchor:none}.conversation{width:min(790px,calc(100% - 72px));margin:auto;padding:38px 0 42px}.welcome{padding:86px 0 25px;max-width:560px;margin:auto}.welcome-kicker{font-size:10px;color:var(--muted)}.welcome h1{font-size:28px;letter-spacing:-.04em;font-weight:500;margin-top:11px}.welcome>p{font-size:12px;color:var(--muted);margin-top:11px;line-height:1.8}.prompt-suggestions{display:flex;gap:10px;margin-top:30px}.prompt-suggestions button{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:13px 14px;border:1px solid var(--line);border-radius:8px;font-size:11px;color:var(--sub)}.prompt-suggestions button:hover{border-color:#cbd5cc;background:var(--panel)}.prompt-suggestions span{color:#a1aba0}.welcome-note{display:block;font-size:9px;color:#abaca7;margin-top:17px}.turn{margin-top:24px}.user-turn{margin-left:auto;max-width:80%;width:fit-content;white-space:pre-wrap;background:var(--bubble);border-radius:14px;padding:11px 16px;line-height:1.8;color:var(--ink);font-size:13px}.assistant-turn{line-height:1.9;font-size:13px;color:var(--ink);margin-top:31px}.assistant-turn>p{margin:14px 0}.assistant-turn h2{font-size:18px;font-weight:500;margin:24px 0 12px;line-height:1.45}.assistant-turn ul{padding-left:21px;margin:12px 0}.assistant-turn li{padding-left:2px;margin:6px 0}.status-line{font-size:11px;color:var(--muted);display:flex;gap:8px;align-items:center;margin-bottom:13px;min-height:20px}.status-dot{width:5px;height:5px;border-radius:50%;background:#849b84;animation:pulse 1.3s ease-in-out infinite}.status-line.done .status-dot{animation:none;background:#a8afa3}.status-line.stopped .status-dot{animation:none;background:#aaa}.tool{border:0;border-radius:5px;margin:6px 0;background:transparent;overflow:hidden}.tool summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer;padding:7px 4px;color:var(--sub);font-size:11px;border-radius:4px;line-height:1.4}.tool summary:hover{background:var(--panel)}.tool summary::-webkit-details-marker{display:none}.tool summary::before{content:'›';display:block;color:#b3b4af;font-size:15px;transition:transform .15s}.tool[open] summary::before{transform:rotate(90deg)}.tool-name{font-size:11px}.tool-state{margin-left:auto;color:#9ba094;font-size:10px}.tool pre{margin:3px 0 8px 23px;padding:13px;background:var(--panel);border:1px solid var(--line);border-radius:6px;font:11px/1.8 Consolas,monospace;white-space:pre-wrap;word-break:break-word;max-height:220px;overflow:auto;color:var(--sub)}.code-block{background:var(--panel);border:1px solid var(--line);border-radius:7px;overflow:hidden;margin:16px 0}.code-head{display:flex;align-items:center;justify-content:space-between;padding:7px 12px;border-bottom:1px solid var(--line);color:var(--muted);font-size:10px}.code-head button{font-size:10px;color:var(--sub)}.code-block pre{margin:0;padding:14px;font:11px/1.9 Consolas,monospace;overflow:auto;color:#626968;white-space:pre}.code-keyword{color:#74667e}.completion-note{font-size:10px;color:var(--muted);margin-top:23px;border-top:1px solid var(--line);padding-top:14px}.composer-zone{width:min(790px,calc(100% - 72px));margin:0 auto;padding:0 0 15px;flex-shrink:0}.composer{border:1px solid #ddddda;border-radius:13px;background:var(--bg);box-shadow:0 3px 12px #00000004;padding:9px 10px 8px;position:relative}.composer:focus-within{border-color:#b4bcb0}.composer textarea{resize:none;display:block;width:100%;max-height:160px;min-height:58px;background:none;color:var(--ink);border:0;outline:none;padding:4px 6px 7px;font-size:13px;line-height:1.7}.composer textarea:focus-visible{outline:none}.composer textarea::placeholder{color:#9c9d97}.composer-toolbar{display:flex;align-items:center;gap:4px}.toolbar-spacer{flex:1}.chip{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--sub);padding:7px 8px;border-radius:6px;white-space:nowrap}.chip:hover{background:var(--hover)}.chip>span{font-size:10px;color:var(--muted)}.send-button,.stop-button{height:30px;width:30px;border-radius:50%;background:#292b28;color:white;display:grid;place-items:center;margin-left:6px;flex-shrink:0}.send-button:hover{background:#454942}.send-button svg{width:18px;height:18px;stroke-width:1.7}.stop-button{background:#eceee8;color:#3c4338;border-radius:7px}.stop-button span{width:9px;height:9px;background:#616b5c;border-radius:1px}.composer-foot{display:flex;justify-content:space-between;align-items:center;margin-top:7px;font-size:9px;color:var(--muted);padding:0 4px}.composer-foot>span{display:flex;align-items:center;gap:4px}.composer-foot svg{width:12px;height:12px}.composer-foot small{font-size:9px;color:#abadA4}.attachments{display:flex;flex-wrap:wrap;gap:6px}.attachment{padding:5px 7px;margin-bottom:4px;background:var(--panel);border:1px solid var(--line);border-radius:5px;font-size:10px;color:var(--sub);max-width:200px;display:flex;gap:8px;align-items:center}.attachment span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment button{color:var(--muted);font-size:12px;padding:0}.popover-anchor{position:relative}.popover{position:absolute;bottom:38px;right:0;z-index:8;width:235px;background:var(--bg);border:1px solid var(--line);box-shadow:0 12px 34px #00000014;border-radius:9px;padding:13px;color:var(--sub)}.popover small{font-size:10px;color:var(--muted)}.model-popover>button{display:flex;justify-content:space-between;align-items:center;width:100%;padding:10px 7px;border-radius:5px;font-size:11px;text-align:left;margin-top:5px}.model-popover>button:hover{background:var(--hover)}.popover p{font-size:10px;color:var(--muted);line-height:1.7;margin-top:10px}.popover-title{font-size:11px;display:flex;justify-content:space-between}.popover-title strong{font-weight:400;color:var(--ink)}.effort-popover input{width:100%;margin:19px 0 4px;accent-color:#6f8268}.effort-labels{display:flex;justify-content:space-between}.effort-labels button{padding:4px 0;font-size:10px;color:var(--muted)}.effort-labels button.active{color:#47734e}.latest{position:absolute;bottom:160px;left:50%;transform:translateX(-50%);background:var(--bg);box-shadow:0 3px 14px #00000012;border:1px solid var(--line);padding:7px 14px;border-radius:20px;font-size:10px;z-index:3;color:var(--sub)}.smart-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.answer-card{border:1px solid var(--line);background:var(--panel);border-radius:7px;padding:15px 17px}.answer-card small{display:block;color:var(--muted);font-size:10px}.answer-card h3{font-size:15px;line-height:1.5;font-weight:500;margin-top:5px}.answer-card p{font-size:11px;color:var(--sub);margin-top:6px;line-height:1.75}.native-chart,.native-calculator{border:1px solid var(--line);border-radius:8px;padding:19px;margin:16px 0;background:var(--bg)}.native-chart h3,.native-calculator h3{font-size:13px;font-weight:500}.chart-subtitle{font-size:10px;color:var(--muted);margin-top:4px}.chart-rows{display:grid;gap:11px;margin:18px 0}.chart-row{display:grid;grid-template-columns:55px 1fr 50px;gap:12px;align-items:center;font-size:10px;text-align:left;border-radius:4px;padding:4px}.chart-row:hover,.chart-row[aria-pressed=true]{background:var(--panel)}.chart-row .track{height:24px;background:repeating-linear-gradient(to right,transparent,transparent calc(25% - 1px),var(--line) calc(25% - 1px),var(--line) 25%)}.chart-row i{display:block;height:100%;width:var(--size);background:#c8dce8;border-radius:3px}.chart-row:hover i,.chart-row[aria-pressed=true] i{background:#9dc5dc}.chart-row b{font-size:10px;font-weight:400;color:var(--sub)}.chart-detail{font-size:10px;border-top:1px solid var(--line);padding-top:11px;color:var(--sub);min-height:30px}.chart-foot{font-size:9px;color:var(--muted);margin-top:9px}.calc-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:17px 0}.calc-fields label{font-size:10px;display:grid;gap:6px;color:var(--muted)}.calc-fields input{border:1px solid var(--line);border-radius:5px;padding:8px 10px;min-width:0;width:100%;background:var(--bg);color:var(--ink);font-size:12px}.calc-result{display:flex;justify-content:space-between;align-items:baseline;border-top:1px solid var(--line);padding-top:15px;font-size:11px;color:var(--sub)}.calc-result strong{font-size:24px;font-weight:500;color:var(--ink)}.calc-result small{font-size:10px;margin-left:5px;font-weight:400;color:var(--muted)}.settings-view{overflow:auto;flex:1;padding:37px max(30px,calc((100% - 730px)/2));background:var(--bg)}.settings-heading>span{font-size:10px;color:var(--muted)}.settings-heading h1{font-size:24px;font-weight:500;margin-top:10px;letter-spacing:-.025em}.settings-heading p{font-size:11px;color:var(--muted);margin-top:10px;line-height:1.8}.settings-tabs{display:flex;gap:23px;margin-top:29px;border-bottom:1px solid var(--line)}.settings-tabs button{padding:10px 0 12px;color:var(--muted);font-size:11px;border-bottom:2px solid transparent}.settings-tabs button.active{border-color:#5d7256;color:var(--ink)}.setting-row{padding:21px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:24px}.setting-row h2{font-size:12px;font-weight:500}.setting-row p{font-size:10px;color:var(--muted);margin-top:4px;line-height:1.8;max-width:360px}.setting-control{display:flex;gap:5px;align-items:center;flex-shrink:0}.segmented{background:var(--side);border:1px solid var(--line);border-radius:6px;padding:3px;display:flex;gap:2px}.segmented button{padding:6px 10px;border-radius:4px;color:var(--sub);font-size:10px}.segmented .active{background:var(--bg);box-shadow:0 1px 3px #0000000b;color:var(--ink)}.toggle{width:31px;height:18px;border-radius:12px;background:#dcded5;padding:3px;display:flex;align-items:center}.toggle i{width:12px;height:12px;border-radius:50%;background:white;box-shadow:0 1px 2px #00000020;transition:transform .18s}.toggle[aria-checked=true]{background:#74876e}.toggle[aria-checked=true] i{transform:translateX(13px)}.plain-button{border:1px solid var(--line);background:var(--bg);border-radius:5px;padding:7px 11px;font-size:10px;white-space:nowrap}.plain-button:hover{background:var(--hover)}.setting-note{font-size:10px;line-height:1.8;color:var(--muted);margin-top:23px}.history-intro{padding-bottom:21px;border-bottom:1px solid var(--line);margin-bottom:26px}.history-intro small{color:var(--muted);font-size:10px}.history-intro h1{font-size:24px;font-weight:500;margin-top:9px}.history-badge{display:inline-block;font-size:9px;color:#6c8064;background:#edf0e9;padding:3px 7px;border-radius:4px;margin-top:11px}.toast{position:fixed;bottom:23px;left:50%;transform:translate(-50%,10px);border:1px solid #d5ddd0;box-shadow:0 8px 25px #00000014;background:#f6f8f2;color:#5e7254;padding:10px 16px;border-radius:8px;font-size:11px;opacity:0;pointer-events:none;z-index:20;transition:opacity .2s,transform .2s}.toast.visible{opacity:1;transform:translate(-50%,0)}.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}.workspace.dark{--bg:#20211f;--side:#191b18;--line:#353833;--muted:#8c9285;--ink:#e1e5db;--hover:#30352b;--sub:#b7bfae;--bubble:#30362c;--panel:#272c23;color:var(--ink);color-scheme:dark}.workspace.dark .new-task{border-color:var(--line)}.workspace.dark .composer{border-color:#454e3d}.workspace.dark .send-button{background:#c1d0b6;color:#24301d}.workspace.dark .answer-card,.workspace.dark .history-badge{color:#abb8a0}.workspace.motion-reduced *{animation:none!important;transition:none!important}
@keyframes pulse{0%,100%{opacity:.35}50%{opacity:1}}@media(max-width:1050px){.workspace{grid-template-columns:185px 1fr}.sidebar{padding-inline:8px}.brand{padding-inline:7px}.brand small{display:none}.task-list button{gap:6px;font-size:10px}.task-list small{display:none}.conversation,.composer-zone{width:calc(100% - 48px)}.welcome{padding-top:60px}.topbar{padding-inline:16px}}@media(max-width:650px){.workspace{grid-template-columns:1fr}.sidebar{position:absolute;inset:0 auto 0 0;width:220px;z-index:10;transform:translateX(-100%);transition:transform .2s;box-shadow:10px 0 30px #0000000d}.workspace.sidebar-open .sidebar{transform:none}.task-list button{font-size:11px}.task-list small{display:block}#sidebar-toggle{display:flex}.topbar{gap:6px;height:43px;min-height:43px;padding-inline:10px;font-size:10px}.demo-label{font-size:8px;padding-inline:4px}.topbar .subtle-button{font-size:9px;padding-inline:5px}.conversation,.composer-zone{width:calc(100% - 32px)}.conversation{padding-top:26px}.welcome{padding-top:52px}.welcome h1{font-size:24px}.prompt-suggestions{flex-direction:column;gap:8px;max-width:290px;margin-top:24px}.prompt-suggestions button{font-size:11px;padding:12px}.welcome-note{font-size:8px}.user-turn{max-width:91%;font-size:12px}.assistant-turn{font-size:12px}.composer-zone{padding-bottom:11px}.composer textarea{font-size:12px;min-height:50px}.composer-foot small{display:none}.composer-foot{font-size:8px}.chip{font-size:9px;padding-inline:5px;gap:4px}.popover{width:205px}.smart-grid{gap:7px}.answer-card{padding:12px}.answer-card h3{font-size:13px}.answer-card p{font-size:10px}.settings-view{padding:25px 19px}.settings-heading h1{font-size:21px}.setting-row{gap:15px}.setting-row p{font-size:9px}.segmented button{padding-inline:7px;font-size:9px}.native-chart,.native-calculator{padding:14px}.chart-row{gap:7px;grid-template-columns:43px 1fr 42px}.latest{bottom:145px;font-size:9px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* B02: neutral desktop palette and readable offline experience. */
:root{font-family:"Noto Sans SC","Segoe UI","Microsoft YaHei",sans-serif}
.workspace.dark{--bg:#202022;--side:#19191b;--line:#353537;--muted:#9a9aa2;--ink:#ececee;--hover:#303034;--sub:#c3c3c9;--bubble:#323236;--panel:#27272b}
.workspace.dark .composer{border-color:#48484e}
.workspace.dark .send-button{background:#ececee;color:#202022}
.workspace.dark .stop-button{background:#35353b;color:#ececee}
.workspace.dark .stop-button span{background:#c3c3c9}
.workspace.dark .answer-card{color:var(--ink)}
.workspace.dark .avatar{background:#33333c;color:#c8c8d4}
.workspace.dark .status-dot{background:#a4b5e9}
.workspace.dark .task-list .selected .task-dot{background:#a4b5e9}
.workspace.dark .effort-popover input{accent-color:#a4b5e9}
.workspace.dark .effort-labels button.active{color:#b8c7f7}
.workspace.dark .composer:focus-within{border-color:#8c96ad}
.workspace.dark .settings-tabs button.active{border-color:#b2bdd6}
.assistant-turn{font-size:14px;line-height:1.85}
.user-turn,.composer textarea{font-size:14px}
.tool summary,.tool-name{font-size:12px}
.tool pre,.code-block pre{font-size:12px}
.workspace.dark button:focus-visible,.workspace.dark input:focus-visible,.workspace.dark textarea:focus-visible{outline-color:#a4b5e9}

/* ---------------------------------------------------------------------------
   Clue identity layer.

   The offline demo started life as a generic Windows-utility mock, so its
   chrome was flat grey with a square-cornered send button. This block re-dresses
   the same DOM as the real Clue desktop client: a soft jade tray that holds two
   floating panels, a filled jade primary action, pill tabs and bubbles. Only
   surfaces, radii and colour change — every element keeps its behaviour, so the
   tour script and the accessible names stay untouched.
   --------------------------------------------------------------------------- */

:root{
  --clue-jade:#0f9d63;
  --clue-jade-strong:#0c8554;
  --clue-jade-soft:#e8f5ee;
  --clue-ink:#0b0f0d;
  --clue-ink-soft:#3f4c45;
  --clue-muted:#77877e;
  --clue-line:#e2ece6;
  --clue-tray:linear-gradient(158deg,#eef6f1,#e5f0e9);
  --clue-panel:#ffffff;
  --clue-side:#f6faf7;
  --clue-shadow:0 18px 46px #0d2b1d12;
  --clue-shadow-lift:0 24px 60px #0d2b1d1c;
}

body{background:var(--clue-tray)}

/* Tray + floating panels */
.workspace{
  grid-template-columns:212px 1fr;
  gap:8px;
  padding:8px;
  background:var(--clue-tray);
}
.sidebar{
  background:var(--clue-side);
  border:1px solid #ffffffb0;
  border-right:1px solid #ffffffb0;
  border-radius:18px;
  padding:14px 10px 10px;
  box-shadow:var(--clue-shadow);
}
.main{
  background:var(--clue-panel);
  border-radius:18px;
  box-shadow:var(--clue-shadow);
  overflow:hidden;
}

/* Brand */
.brand{padding:0 6px 14px;font-weight:600;font-size:13.5px;letter-spacing:-.01em;color:var(--clue-ink)}
.brand img{width:22px;height:22px;opacity:1}
.brand small{font:500 10px/1 ui-monospace,monospace;color:var(--clue-muted);background:#eaf3ee;border-radius:999px;padding:3px 6px}

/* Primary action */
.new-task{
  gap:8px;
  padding:0 10px;
  height:38px;
  border:0;
  border-radius:12px;
  background:linear-gradient(180deg,#12a86b,var(--clue-jade-strong));
  color:#fff;
  font-size:12.5px;
  font-weight:600;
  box-shadow:0 6px 16px #0f9d6335;
}
.new-task:hover{background:linear-gradient(180deg,#14b374,#0d8f5b)}
.new-task>span{font-size:16px;color:#ffffffd0}
.new-task kbd{color:#ffffffa8;font:9px/1 ui-monospace,monospace;background:#ffffff1f;border-radius:4px;padding:2px 4px}

.sidebar-label{font-size:10.5px;font-weight:600;letter-spacing:.09em;color:#8b9a92;padding:18px 8px 6px}
.workspace-path{font-size:11.5px;color:var(--clue-ink-soft);border-radius:9px;padding:7px 8px;gap:6px}
.workspace-path:hover{background:#e9f2ec}
.tasks-label{padding-top:14px}

/* Session rows read as white cards once selected, matching the client list */
.task-list{gap:2px}
.task-list button{padding:8px 9px;border-radius:10px;font-size:11.5px;color:var(--clue-ink-soft);position:relative}
.task-list button:hover{background:#eaf3ee;color:var(--clue-ink)}
.task-list button.selected{background:#fff;color:var(--clue-ink);font-weight:600;box-shadow:0 1px 2px #0d2b1d0f,0 6px 14px #0d2b1d0d}
.task-list button.selected::before{content:'';position:absolute;left:0;top:6px;bottom:6px;width:2.5px;border-radius:2px;background:var(--clue-jade)}
.task-dot{display:none}
.task-list small{font-size:9px;color:#9aa8a0;font-variant-numeric:tabular-nums}

.sidebar-bottom>button{border-radius:9px;font-size:11.5px;color:var(--clue-ink-soft);padding:9px}
.sidebar-bottom>button:hover{background:#e9f2ec}
.demo-account{border-top:1px solid var(--clue-line);padding:10px 6px 2px}
.avatar{background:var(--clue-jade);color:#fff;font-weight:600;width:26px;height:26px;font-size:11px}
.demo-account strong{font-size:11.5px;font-weight:600;color:var(--clue-ink)}
.demo-account small{color:var(--clue-muted)}

/* Title bar */
.topbar{height:46px;min-height:46px;padding:0 16px;border-bottom:1px solid var(--clue-line);font-size:11.5px;color:var(--clue-muted);gap:8px}
#task-title{font-weight:600;color:var(--clue-ink);font-size:12.5px}
.demo-label{border:1px solid #d9e8df;background:#f2f8f4;border-radius:999px;padding:3px 9px;font-size:9.5px;color:#5f7d6c;letter-spacing:.02em}
.subtle-button{border-radius:999px;padding:5px 10px;font-size:10.5px;color:var(--clue-muted)}
.subtle-button:hover{background:#eef5f1;color:var(--clue-ink)}
.icon-button{border-radius:9px}
.icon-button:hover{background:#eef5f1}

/* Welcome / hero */
.welcome{padding:72px 0 22px}
.welcome-kicker{font-size:10px;letter-spacing:.14em;color:#8b9a92;text-transform:uppercase}
.welcome h1{font-size:30px;font-weight:620;letter-spacing:-.035em;margin-top:12px;color:var(--clue-ink)}
.welcome>p{font-size:12px;color:var(--clue-muted);margin-top:10px;line-height:1.85;max-width:46ch}
.prompt-suggestions{margin-top:26px;gap:8px}
.prompt-suggestions button{
  border:1px solid var(--clue-line);
  border-radius:12px;
  padding:12px 13px;
  font-size:11.5px;
  color:var(--clue-ink-soft);
  background:#fff;
  box-shadow:0 1px 2px #0d2b1d08;
}
.prompt-suggestions button:hover{border-color:#bfe0cd;background:#f4fbf7;box-shadow:0 6px 18px #0f9d6314}
.prompt-suggestions span{color:var(--clue-jade)}
.welcome-note{color:#9aa8a0;margin-top:16px}

/* Turns */
.user-turn{
  background:linear-gradient(180deg,#12a86b,var(--clue-jade-strong));
  color:#fff;
  border-radius:16px 16px 5px 16px;
  padding:11px 15px;
  box-shadow:0 6px 18px #0f9d6326;
  font-size:13.5px;
}
.assistant-turn{font-size:13.5px;color:#16211b}
.assistant-turn h2{font-size:16.5px;font-weight:640;letter-spacing:-.02em}
.status-line{font-size:11px;color:var(--clue-muted)}
.status-dot{background:var(--clue-jade)}
.status-line.done .status-dot{background:#b3c6bb}

/* Tool rows and code keep the client's quiet card treatment */
.tool summary{border-radius:9px;padding:7px 6px;color:#4b5a52;font-size:11.5px}
.tool summary:hover{background:#f2f8f4}
.tool summary::before{color:var(--clue-jade)}
.tool pre,.code-block{background:#f7faf8;border:1px solid var(--clue-line);border-radius:11px}
.code-head{border-bottom:1px solid var(--clue-line);color:#83948b}
.code-block pre{color:#40514a}
.answer-card{border:1px solid var(--clue-line);background:#fbfdfc;border-radius:12px}
.answer-card h3{font-weight:600}
.native-chart,.native-calculator{border:1px solid var(--clue-line);border-radius:14px;background:#fff;box-shadow:0 1px 2px #0d2b1d08}
.chart-row i{background:#bfe3d0;border-radius:4px}
.chart-row:hover i,.chart-row[aria-pressed=true] i{background:#64c295}
.calc-result strong{color:var(--clue-ink);font-weight:600}
.calc-fields input{border:1px solid var(--clue-line);border-radius:9px;background:#fff}

/* Composer */
.composer{
  border:1px solid #dde9e2;
  border-radius:16px;
  background:#fff;
  box-shadow:0 2px 6px #0d2b1d0a,0 18px 40px #0d2b1d0f;
  padding:10px 10px 9px;
}
.composer:focus-within{border-color:#9ed0b6;box-shadow:0 0 0 3px #0f9d631a,0 18px 40px #0d2b1d12}
.composer textarea{font-size:13.5px;color:var(--clue-ink)}
.composer textarea::placeholder{color:#9aa8a0}
.chip{border-radius:999px;font-size:10.5px;color:#5f7068;padding:6px 9px}
.chip:hover{background:#eef5f1;color:var(--clue-ink)}
.send-button{background:linear-gradient(180deg,#12a86b,var(--clue-jade-strong));width:32px;height:32px;box-shadow:0 6px 14px #0f9d6330}
.send-button:hover{background:linear-gradient(180deg,#14b374,#0d8f5b)}
.stop-button{background:#eef5f1;color:#2f4a3d;border-radius:9px}
.stop-button span{background:#3f6252}
.composer-foot{color:#93a29a}
.composer-foot small{color:#a9b6af}
.attachments .attachment,.attachment{background:#f4faf6;border:1px solid var(--clue-line);border-radius:9px}
.popover{border:1px solid var(--clue-line);border-radius:14px;box-shadow:0 18px 44px #0d2b1d1f}
.popover-title strong{color:var(--clue-ink);font-weight:600}
.effort-popover input{accent-color:var(--clue-jade)}
.effort-labels button.active{color:var(--clue-jade-strong);font-weight:600}
.latest{border:1px solid var(--clue-line);border-radius:999px;color:#4b5a52;box-shadow:0 8px 22px #0d2b1d14}
.toast{border:1px solid #c9e5d5;background:#f2fbf6;color:#186b45;border-radius:12px;box-shadow:0 14px 34px #0d2b1d16}

/* Settings */
.settings-heading>span{color:#8b9a92;letter-spacing:.12em;text-transform:uppercase;font-size:10px}
.settings-heading h1{font-weight:640;letter-spacing:-.03em;color:var(--clue-ink)}
.settings-tabs{gap:6px;border-bottom:0;margin-top:22px;background:#f3f8f5;border-radius:999px;padding:4px;width:fit-content}
.settings-tabs button{border:0;border-radius:999px;padding:7px 14px;font-size:11px;color:#63756c}
.settings-tabs button.active{background:#fff;color:var(--clue-ink);font-weight:600;box-shadow:0 1px 3px #0d2b1d14}
.setting-row{border-bottom:1px solid var(--clue-line)}
.setting-row h2{font-weight:600}
.segmented{background:#f3f8f5;border:1px solid var(--clue-line);border-radius:10px}
.segmented .active{background:#fff;color:var(--clue-ink);font-weight:600}
.toggle{background:#dfe9e3}
.toggle[aria-checked=true]{background:var(--clue-jade)}
.plain-button{border:1px solid var(--clue-line);border-radius:9px;background:#fff;color:#3f4c45}
.plain-button:hover{background:#f2f8f4}
.history-badge{background:#e9f6ef;color:#1a7a51;border-radius:999px}
.history-intro{border-bottom:1px solid var(--clue-line)}

/* Dark theme follows the client's near-black jade rather than neutral grey */
.workspace.dark{--clue-ink:#e9f1eb;--clue-panel:#151b18;--clue-side:#121714;--clue-line:#25302a;--clue-tray:#0b100d;background:#0b100d}
.workspace.dark .sidebar{background:#121714;border-color:#1f2a24}
.workspace.dark .main{background:#151b18}
.workspace.dark .brand{color:#e9f1eb}
.workspace.dark .brand small{background:#1e2a23;color:#93a49b}
.workspace.dark .new-task{background:linear-gradient(180deg,#12a86b,#0b7a4e);color:#fff}
.workspace.dark .task-list button{color:#a9b8b0}
.workspace.dark .task-list button:hover{background:#1b2620}
.workspace.dark .task-list button.selected{background:#1f2b24;color:#f2f8f4;box-shadow:0 1px 2px #00000040}
.workspace.dark .sidebar-bottom>button{color:#a9b8b0}
.workspace.dark .sidebar-bottom>button:hover{background:#1b2620}
.workspace.dark .topbar{border-color:#25302a;color:#93a49b}
.workspace.dark #task-title{color:#e9f1eb}
.workspace.dark .demo-label{background:#16211c;border-color:#26332c;color:#89a996}
.workspace.dark .welcome h1{color:#f2f8f4}
.workspace.dark .welcome>p,.workspace.dark .welcome-kicker{color:#93a49b}
.workspace.dark .prompt-suggestions button{background:#171f1b;border-color:#25302a;color:#c3d2ca}
.workspace.dark .prompt-suggestions button:hover{background:#1c2621;border-color:#2f6f52}
.workspace.dark .assistant-turn{color:#e3ece6}
.workspace.dark .composer{background:#161d19;border-color:#2a3a32;box-shadow:0 18px 40px #00000040}
.workspace.dark .composer:focus-within{border-color:#2f6f52;box-shadow:0 0 0 3px #0f9d6326}
.workspace.dark .composer textarea{color:#e9f1eb}
.workspace.dark .tool pre,.workspace.dark .code-block{background:#121815;border-color:#243029}
.workspace.dark .answer-card{background:#161d19;border-color:#243029;color:#dfe9e2}
.workspace.dark .native-chart,.workspace.dark .native-calculator{background:#161d19;border-color:#243029}
.workspace.dark .chart-row i{background:#2c5642}
.workspace.dark .chart-row:hover i{background:#3f8a63}
.workspace.dark .settings-tabs{background:#121815}
.workspace.dark .settings-tabs button{color:#8fa49a}
.workspace.dark .settings-tabs button.active{background:#1f2b24;color:#f2f8f4;box-shadow:none}
.workspace.dark .setting-row{border-color:#25302a}
.workspace.dark .segmented{background:#121815;border-color:#243029}
.workspace.dark .segmented .active{background:#1f2b24;color:#f2f8f4}
.workspace.dark .calc-fields input{background:#121815;border-color:#243029;color:#e9f1eb}
.workspace.dark .attachment{background:#161d19;border-color:#243029}
.workspace.dark .chip{color:#a9b8b0}
.workspace.dark .chip:hover{background:#1b2620}
.workspace.dark .settings-view{background:#151b18}

/* The client centres the hero and its composer as one block before a session
   starts; the demo used to pin the hero to the top of a tall empty column. */
.chat-view:has(#welcome:not([hidden])){justify-content:center}
.chat-view:has(#welcome:not([hidden])) .scroll-area{flex:0 1 auto;overflow:visible;min-height:0}
.conversation:has(> #welcome:not([hidden])){min-height:0;display:block}
.conversation:has(> #welcome:not([hidden])) #welcome{padding:0 0 34px}

/* Keep the two panels legible against the tray at any zoom level. */
.workspace:not(.dark) .sidebar{border-color:#e6efe9;box-shadow:0 14px 34px #0d2b1d0f}
.workspace:not(.dark) .main{box-shadow:0 18px 46px #0d2b1d14}
