/* Wink app replica: Precision skin (default). Inert decoration unless a page wires it up. */
@font-face{font-family:"Space Grotesk";src:url(fonts/space-grotesk-latin-wght.woff2) format("woff2");font-weight:300 700;font-display:swap}
@font-face{font-family:"Wink Mono";src:url(fonts/jetbrains-mono-latin-wght.woff2) format("woff2");font-weight:100 800;font-display:swap}

.wk{
  --app:#121316;--panel:#191a1f;--raised:#23252c;--raised-h:#2b2e36;--inset:#0f1013;--control:#272a32;
  --line:#353944;--line-soft:#2a2d35;--ink:#eeeff3;--ink-2:#a3a7b3;--ink-3:#8b8f9c;
  --accent:#929fff;--accent-b:#a9b3ff;--accent-t:#b5bdff;--bubble:#1d2028;
  --ok:#7bd8a6;--bad:#ff8c98;--warn:#e7c56e;--claude:#d97757;
  --w1:#929fff;--w2:#b26e25;--w3:#2fa290;--w4:#1885d0;--w5:#91669f;--w6:#23cce6;--wg:#80848f;
  --git:#d4d7de;--git-pr:#34d399;--git-merged:#b48cff;
  --r1:6px;--r2:8px;
  font:400 14px/1.55 "Space Grotesk",system-ui,sans-serif;color:var(--ink);
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;cursor:default;
  text-align:left;letter-spacing:0;
}
.wk *,.wk *::before,.wk *::after{box-sizing:border-box}
.wk svg{flex:none}
:where(.wk) :where(button){appearance:none;border:0;background:none;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit}
.wk .ic{width:16px;height:16px}
.wk .mono{font-family:"Wink Mono",ui-monospace,monospace}
.wk .e-claude{color:var(--claude)}

/* window */
.wk-win{background:var(--app);border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;container-type:inline-size;box-shadow:0 40px 90px -30px rgba(0,0,0,.7)}
/* the app's title bar is a blank 32px strip with the window buttons */
.wk-bar{height:32px;flex:none;display:flex;align-items:center;gap:8px;padding-left:12px;font-size:12px;color:var(--ink-2)}
.wk-bar > :not(.wk-ctl){display:none}
.wk-ctl{margin-left:auto;display:flex;color:var(--ink-2)}
.wk-ctl span{width:42px;height:32px;display:grid;place-items:center}
.wk-ctl svg{width:13px;height:13px}
.wk-body{flex:1;display:grid;grid-template-columns:var(--side,232px) minmax(0,1fr) var(--pane,0px);min-height:0}
.wk-body.no-side{grid-template-columns:minmax(0,1fr) var(--pane,0px)}

/* sidebar */
.wk-side{background:var(--panel);border-right:1px solid var(--line-soft);display:flex;flex-direction:column;gap:1px;min-width:0;padding:10px 8px;overflow:hidden}
.wk-side-top{display:flex;gap:6px;padding:0 2px 6px}
.wk-new{flex:1;height:30px;display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid var(--line);border-radius:var(--r1);font-size:13px;color:var(--ink)}
.wk-new svg{width:14px;height:14px;color:var(--ink-2)}
.wk-sec{font-size:11.5px;font-weight:600;letter-spacing:.02em;color:var(--ink-3);padding:10px 8px 4px}
.wk-bot{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:var(--r1);min-width:0}
.wk-bot.on{background:var(--raised)}
.wk-bot > span:last-child{min-width:0;flex:1}
.wk-bot b{display:block;font-weight:500;font-size:13.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wk-bot small{display:block;font-size:12px;line-height:1.3;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wk-bot .n{margin-left:auto;font-size:11px;font-weight:600;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--accent);color:#14151a;display:grid;place-items:center}
.wk-bot .when{margin-left:auto;align-self:stretch;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;font-size:11.5px;line-height:1.3;color:var(--ink-3);white-space:nowrap}
.wk-search{display:flex;align-items:center;gap:8px;height:37px;margin:0 2px 8px;padding:8px 12px;border-radius:6px;background:color-mix(in srgb,var(--raised) 70%,transparent);color:var(--ink-2);font-size:14px}
.wk-search svg{width:16px;height:16px}
.wk-you{margin-top:auto;display:flex;align-items:center;gap:12px;min-height:48px;padding:4px 0 0 8px;font-size:14px;color:var(--ink)}
.wk-you .wk-av{width:28px;height:28px;border-radius:50%;background:var(--raised);font-size:12px;color:var(--ink-2)}
.wk-you > svg{width:18px;height:18px;margin:0 11px 0 auto;color:var(--ink-2)}

/* avatars */
.wk-av{width:28px;height:28px;border-radius:7px;background:var(--control);display:grid;place-items:center;flex:none;position:relative;color:var(--ink)}
.wk-av svg{width:15px;height:15px}
.wk-av.lg{width:36px;height:36px;border-radius:9px}
.wk-av.lg svg{width:18px;height:18px}
.wk-av.sm{width:20px;height:20px;border-radius:5px}
.wk-av.sm svg{width:11px;height:11px}
.wk-av.person{border-radius:50%;font-size:11.5px;font-weight:600;color:#101114;background:var(--hue,#c9b8ff)}
.wk-av.mark{background:var(--tile,#1b2140)}
.wk-av.mark svg{width:72%;height:72%}
.wk-av.lg.person{font-size:13px}
.wk-dot{position:absolute;left:-3px;bottom:-3px;width:10px;height:10px;border-radius:50%;background:var(--ok);border:2px solid var(--panel)}
.wk-dot.busy{background:var(--accent)}
.wk-dot.wait{background:var(--warn)}
.wk-dot.off{background:#5b5f6b}

/* chat */
.wk-chat{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--app)}
.wk-head{min-height:58px;flex:none;display:flex;align-items:center;gap:6px;padding:10px 14px;min-width:0}
.wk-head b{font-weight:600;font-size:15px;white-space:nowrap}
.wk-head .sp{flex:1}
.wk-head .wk-ib{color:var(--ink-2)}
.wk-chip{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 10px;border:1px solid var(--line);border-radius:8px;font-size:12.5px;color:var(--ink);white-space:nowrap}
.wk-chip svg{width:12px;height:12px}
.wk-chip .dot{width:6px;height:6px;border-radius:50%;background:var(--dot,var(--claude))}
.wk-chip .eff{color:var(--ink-2)}
.wk-head > .wk-chip{order:3}
.wk-head > .wk-av{margin-right:4px}
/* ChatView header and ModelPicker chip on the desktop app */
.wk-win .wk-head{min-height:72px;padding:12px 20px;gap:8px}
.wk-win .wk-chip{gap:6px;height:30px;padding:0 8px;border:1px solid color-mix(in srgb,var(--line) 40%,transparent);border-radius:3px;background:color-mix(in srgb,var(--control) 60%,transparent);font-size:13px}
.wk-win .wk-chip > svg:first-child{width:14px;height:14px}
.wk-win .wk-chip > svg:last-child{width:14px;height:14px;color:var(--ink-2)}
.wk-win .wk-chip .eff{font-size:12px}
.wk-wchip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 8px;border-radius:6px;font-size:13px;color:var(--ink-2);white-space:nowrap}
.wk-wchip svg{width:15px;height:15px}
.wk-wchip i{width:6px;height:6px;border-radius:50%;background:var(--accent)}
.wk-day{font-size:12px;color:var(--ink-3);text-align:center}
.wk-chip.on{border-color:var(--accent-b);color:var(--ink)}
.wk-msgs{flex:1;overflow:hidden;padding:16px 20px 8px;display:flex;flex-direction:column;gap:14px;min-height:0}
.wk-msgs.end{justify-content:flex-end;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 24px);mask-image:linear-gradient(to bottom,transparent,#000 24px)}
.wk-msg{min-width:0}
.wk-who{font-size:11.5px;font-weight:600;letter-spacing:.02em;color:var(--ink-2);margin-bottom:5px;display:flex;align-items:center;gap:6px}
.wk-who svg{width:12px;height:12px}
.wk-who time{font-weight:400;color:var(--ink-3)}
.wk-card{background:var(--raised);border-radius:var(--r2);padding:10px 14px}
.wk-card p{margin:0}
.wk-card p + p{margin-top:6px}
.wk-me{align-self:flex-end;max-width:80%;background:var(--bubble);border:1px solid var(--line);border-radius:var(--r2);padding:8px 12px}
.wk-me p{margin:0}
.wk-sub{font-size:12.5px;color:var(--ink-2)}
.wk-code{font-family:"Wink Mono",ui-monospace,monospace;font-size:12.5px;background:var(--inset);border:1px solid var(--line-soft);border-radius:4px;padding:0 4px}
.wk-typing{display:inline-flex;gap:4px;padding:6px 2px}
.wk-typing i{width:6px;height:6px;border-radius:50%;background:var(--ink-2);animation:wk-dots 1.1s infinite var(--ease,ease-in-out)}
.wk-typing i:nth-child(2){animation-delay:.15s}
.wk-typing i:nth-child(3){animation-delay:.3s}
/* TurnPresence.tsx: the app shows no dots, only the face in a spinning ring and a shimmering label */
.wk-think{display:flex;align-items:center;gap:8px;font-size:13px;line-height:1}
.wk-think .wk-av{border-radius:50%;isolation:isolate}
.wk-think .wk-av::before{content:"";position:absolute;inset:-2px;z-index:-1;border-radius:50%;background:conic-gradient(var(--accent),#c9b8ff,#74a7ff,var(--accent));-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2.4px),#000 calc(100% - 1.6px));mask:radial-gradient(farthest-side,transparent calc(100% - 2.4px),#000 calc(100% - 1.6px));animation:wk-spin 1.6s linear infinite}
.wk-shim{font-weight:400;white-space:nowrap;color:var(--ink-2);background:linear-gradient(90deg,var(--ink-2) 30%,var(--ink) 50%,var(--ink-2) 70%) 0 0/300% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:wk-sheen 1s linear infinite}
@keyframes wk-sheen{from{background-position:100% 0}to{background-position:0 0}}
@keyframes wk-dots{0%,80%,100%{opacity:.25}40%{opacity:1}}

/* tool lines and status rows inside a bot reply */
.wk-steps{display:flex;flex-direction:column;gap:4px;margin-top:8px}
.wk-step{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--ink-2)}
.wk-step svg{width:13px;height:13px}
.wk-step.ok svg{color:var(--ok)}
.wk-step.run svg{color:var(--accent)}

/* composer */
.wk-comp{flex:none;margin:6px 16px 14px;border:1px solid var(--line);border-radius:18px;background:var(--panel);padding:10px 10px 8px 12px;display:flex;flex-direction:column;gap:6px}
.wk-comp .ph{color:var(--ink-3);min-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wk-comp .tx{color:var(--ink);min-height:22px}
.wk-comp .row{display:flex;align-items:center;gap:6px}
.wk-comp .row .sp{flex:1}
.wk-ib{width:30px;height:30px;border-radius:var(--r1);display:grid;place-items:center;color:var(--ink-2)}
.wk-ib svg{width:16px;height:16px}
.wk-ib.call{background:var(--accent);color:#14151a;border-radius:50%}
.wk-ib.send{background:var(--ink);color:var(--app);border-radius:50%}
.wk-ib.on{background:var(--raised);color:var(--ink)}
.wk-ib.end{background:#e5484d;color:#fff;border-radius:50%}
/* desktop composer = Composer.tsx frame: rounded-3xl bg-raised, 32px round buttons, Send only with text */
.wk-win .wk-comp{margin:0 20px 12px;border:0;border-radius:24px;background:var(--raised);padding:4px 12px 8px;gap:4px}
.wk-win .wk-comp .ph{color:var(--ink-2);font-size:15px;line-height:24px;padding:4px}
.wk-win .wk-comp .row{gap:4px}
.wk-win .wk-comp .row .wk-ib{width:32px;height:32px;border-radius:50%}
.wk-win .wk-comp .row .wk-ib svg{width:17px;height:17px}
.wk-win .wk-comp .wk-ib.send{background:var(--accent);color:#121316}
.wk-win .wk-comp .wk-ib.call{color:#121316}
.wk-win .wk-comp:not(:has(.tx,.typed,.h2-att,.mr-draft)) .wk-ib.send,.wk-win .wk-comp:has(.tx,.typed,.h2-att) .wk-ib.call{display:none}
.wk-win .wk-comp .wk-ib.call svg,.wk-win .wk-comp .wk-ib.end svg{width:16px;height:16px}

/* model picker */
.wk-pick{width:330px;background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 24px 60px -10px rgba(0,0,0,.6);overflow:hidden;font-size:13px}
.wk-pick-top{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line-soft);color:var(--ink-3)}
.wk-pick-top svg{width:14px;height:14px}
.wk-pick-top .k{margin-left:auto;font-size:11px;border:1px solid var(--line);border-radius:4px;padding:1px 5px;color:var(--ink-2)}
.wk-pick-list{padding:6px}
.wk-eng{display:flex;align-items:center;gap:8px;padding:8px 8px 4px;font-size:11.5px;font-weight:600;letter-spacing:.02em;color:var(--ink-3)}
.wk-eng svg{width:13px;height:13px}
.wk-mod{display:flex;align-items:center;gap:8px;height:32px;padding:0 8px 0 29px;border-radius:var(--r1);color:var(--ink)}
.wk-mod small{color:var(--ink-3);font-size:12px}
.wk-mod svg{width:14px;height:14px;margin-left:auto;color:var(--accent)}
.wk-mod.on{background:var(--raised)}
.wk-eff{display:flex;align-items:center;gap:8px;padding:10px 12px;border-top:1px solid var(--line-soft)}
.wk-eff > span:first-child{font-size:12px;color:var(--ink-3);margin-right:auto}
.wk-seg{display:flex;background:var(--inset);border:1px solid var(--line-soft);border-radius:var(--r1);padding:2px;gap:2px}
.wk-seg span{height:24px;padding:0 8px;border-radius:4px;font-size:12px;color:var(--ink-2);display:grid;place-items:center}
.wk-seg span.on{background:var(--control);color:var(--ink)}

/* workers */
.wk-wl{display:flex;flex-direction:column}
.wk-card:has(> .wk-wl){background:none;padding:0;border-radius:0}
.wk-wl-head{display:flex;align-items:baseline;gap:8px;padding:2px 12px 6px;font-size:12.5px;font-weight:500;color:var(--ink-2)}
.wk-wl-head small{font-size:12px;font-weight:400;color:var(--ink-3)}
.wk-wr{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:10px;align-items:center;padding:6px 12px;border-radius:12px;border-bottom:1px solid rgba(53,57,68,.4);font-size:13px}
.wk-wr:has(> .chev){grid-template-columns:24px minmax(0,1fr) auto 12px}
.wk-wr .wk-av{width:24px;height:24px;border-radius:6px;background:var(--raised);border:1px solid rgba(53,57,68,.4)}
.wk-wr .wk-av svg{width:14px;height:14px}
.wk-wr > span:nth-child(2){display:flex;align-items:baseline;gap:8px;min-width:0;white-space:nowrap;overflow:hidden}
.wk-wr b{font-weight:500;font-size:13px;line-height:1.3;flex:none}
.wk-wr small{font-size:13px;line-height:1.3;color:var(--ink-2);min-width:0;overflow:hidden;text-overflow:ellipsis}
.wk-wr .chev{width:12px;height:12px;color:var(--ink-2)}
.wk-wr.hot{background:rgba(35,37,44,.5)}
.wk-wnote{padding:2px 12px 8px 46px;font-size:12.5px;color:var(--ink-2);border-bottom:1px solid rgba(53,57,68,.4)}
.wk-st{font-size:11.5px;font-weight:500;height:22px;padding:0 9px;border-radius:999px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border:1px solid var(--line);color:var(--ink-2)}
.wk-st::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.wk-st.working{color:var(--accent-t);border-color:rgba(146,159,255,.4)}
.wk-st.waiting{color:var(--warn);border-color:rgba(231,197,110,.4)}
.wk-st.done{color:var(--ok);border-color:rgba(123,216,166,.4)}
.wk-st.failed{color:var(--bad);border-color:rgba(255,140,152,.4)}
.wk-st.open{color:var(--ink-2)}
.wk-st.building{color:var(--accent-t);border-color:rgba(146,159,255,.4)}
.wk-wr .wk-st{height:auto;padding:0;border:0;border-radius:0;font-size:12.5px;font-weight:400;gap:5px}
.wk-wr .wk-st::before{width:8px;height:8px}
.wk-wr .wk-st.working{color:var(--accent)}
.wk-wr .wk-st.waiting::before{width:6px;height:10px;border-radius:0;background:linear-gradient(90deg,currentColor 2px,transparent 2px 4px,currentColor 4px)}
.wk-wr .wk-st.done::before,.wk-wr .wk-st.failed::before{width:12px;height:12px;border-radius:0;-webkit-mask:var(--m) center/contain no-repeat;mask:var(--m) center/contain no-repeat}
.wk-wr .wk-st.done{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")}
.wk-wr .wk-st.failed{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E")}
.wk-wr .wk-st.ended{color:var(--ink-2)}
.wk-wr .wk-st.ended::before{background:none;border:1px solid currentColor}
.wk-sw{width:8px;height:8px;border-radius:2px;background:var(--c,var(--w1));flex:none}

/* side pane: Show | Media | Map */
.wk-pane{background:var(--panel);border-left:1px solid var(--line-soft);display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.wk-tabs{flex:none;display:flex;gap:2px;padding:7px 8px;border-bottom:1px solid var(--line-soft)}
.wk-tab{height:28px;padding:0 12px;border-radius:var(--r1);font-size:12.5px;color:var(--ink-2);display:flex;align-items:center;gap:6px}
.wk-tab.on{background:var(--raised);color:var(--ink)}
.wk-tab svg{width:14px;height:14px}
.wk-pane-in{padding:12px;display:flex;flex-direction:column;gap:12px;min-height:0;overflow:hidden}
.wk-sel{display:flex;align-items:center;gap:6px;height:28px;padding:0 10px;border:1px solid var(--line);border-radius:var(--r1);font-size:12.5px;width:max-content}
.wk-sel svg{width:13px;height:13px;color:var(--ink-3)}
.wk-sum{font-size:12px;color:var(--ink-2)}
.wk-legend{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px;color:var(--ink-2)}
.wk-legend span{display:inline-flex;align-items:center;gap:6px}
.wk-tree{display:flex;flex-direction:column;gap:3px;font-size:12px}
.wk-tr{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px;align-items:center;min-height:20px}
.wk-tr > span:first-child{display:flex;align-items:center;gap:6px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wk-tr > span:first-child svg{width:12px;height:12px;color:var(--ink-3)}
.wk-sqs{display:flex;flex-wrap:wrap;gap:2px}
.wk-sq{width:7px;height:7px;border-radius:1.5px;background:var(--control);transition:background-color var(--t-med,200ms) var(--ease-out,ease)}
.wk-sq.w1{background:var(--w1)}.wk-sq.w2{background:var(--w2)}.wk-sq.w3{background:var(--w3)}.wk-sq.w4{background:var(--w4)}.wk-sq.w5{background:var(--w5)}.wk-sq.w6{background:var(--w6)}.wk-sq.wg{background:var(--wg)}
.wk-sq.two{background:linear-gradient(135deg,var(--a) 50%,var(--b) 50%)}
.wk-sq.hot{box-shadow:0 0 0 2px var(--app),0 0 0 3.5px var(--ink)}
.wk-follow{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border:1px solid var(--line);border-radius:6px;color:var(--ink);font-size:11px;white-space:nowrap;width:max-content}
.wk-follow::before{content:"";width:6px;height:6px;background:var(--c,var(--w1))}
.wk-files{display:flex;flex-direction:column;gap:2px;font-size:12px}
.wk-files div{display:flex;align-items:center;gap:8px;height:24px;padding:0 6px;border-radius:4px;color:var(--ink-2)}
.wk-files div.on{background:var(--raised);color:var(--ink)}
.wk-files .add{margin-left:auto;color:var(--ok)}
.wk-files .del{color:var(--bad)}
.wk-diff{font:11.5px/1.6 "Wink Mono",ui-monospace,monospace;background:var(--inset);border:1px solid var(--line-soft);border-radius:var(--r1);padding:8px 0;overflow:hidden;white-space:pre}
.wk-diff div{padding:0 10px}
.wk-diff .a{background:rgba(123,216,166,.1);color:#bfeed4}
.wk-diff .d{background:rgba(255,140,152,.1);color:#ffc2c9}
.wk-diff .c{color:var(--ink-3)}
/* Git row, as MapGitFlow draws it: a word over a square per stop on one line; gray-white up to the PR, the status color from it on */
.wk-git{display:flex;align-items:flex-start;height:36px;padding-top:5px;font-size:11px;line-height:12px;color:var(--ink-2)}
.wk-git > *{flex:1 1 0;min-width:0}
.wk-git span{display:flex;flex-direction:column;align-items:center;gap:3px;position:relative;white-space:nowrap}
.wk-git span::after{content:"";width:8px;height:8px;border-radius:2px;background:rgba(163,167,179,.38);position:relative;z-index:1}
.wk-git span::before{content:"";position:absolute;top:18px;right:50%;width:100%;height:2px;background:linear-gradient(rgba(163,167,179,.38),rgba(163,167,179,.38)) 0 50%/100% 1px no-repeat}
.wk-git > :first-child::before,.wk-git > :first-child span::before{display:none}
.wk-git span.ok::after,.wk-git span.ok::before{background:var(--git)}
.wk-git > span.ok:nth-child(n+4)::after{background:var(--git-pr)}
.wk-git > span.ok:nth-child(n+5)::before{background:var(--lc,var(--git))}
.wk-git > span:last-child::after{width:10px;height:10px;margin:-1px 0;border-radius:50%;background:var(--panel);box-shadow:inset 0 0 0 1.5px rgba(163,167,179,.38)}
.wk-git > span.ok:last-child::after{background:var(--git-merged);box-shadow:inset 0 0 0 1.5px var(--git-merged)}
.wk-git span.now{color:var(--ink)}
.wk-git span.now::after{background:var(--accent);box-shadow:0 0 0 3px rgba(146,159,255,.25)}
/* Checks: one labelled box with a square per check; the line into it starts at the PR square */
.wk-git .checks{flex:2.6 1 0}
.wk-git .checks::after{display:none}
.wk-git .checks::before{left:calc(-100% / 5.2);width:auto}
.wk-git .checks u{display:flex;flex-direction:column;gap:3px;width:61.5%;margin-top:-3px;padding:3px 6px 4px;border:1px solid var(--line);border-radius:5px;background:var(--panel);text-decoration:none;position:relative;z-index:1;overflow:hidden}
.wk-git .checks em{display:flex;gap:2px;height:6px}
.wk-git .checks em i{flex:0 1 6px;min-width:2px;height:6px;border-radius:1px;background:var(--control)}
.wk-git .checks em i.run{background:#60a5fa}
.wk-git .checks em i.ok{background:var(--git-pr)}

/* Map pane, as MapPane and MapTree draw it: worker pill, the tree with the open folder's squares and file rows, a Git row per worker, then the followed diff */
.wk-map{container:map/inline-size;display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--panel)}
.wk-map-head{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--line)}
.wk-mw{display:inline-flex;align-items:center;gap:7px;max-width:100%;height:24px;padding:3px 7px;border:1px solid var(--line);border-radius:6px;font-weight:600;font-size:11px;letter-spacing:.04em;white-space:nowrap}
.wk-mw i{width:6px;height:6px;flex:none;background:var(--c,var(--accent))}
.wk-mw svg{width:12px;height:12px;color:var(--ink-2)}
.wk-where{display:flex;justify-content:space-between;gap:6px;padding:10px 12px 0;font-size:11px;color:var(--ink-2);white-space:nowrap}
.wk-where b{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
.wk-where span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
.wk-mtree{--map-edge:color-mix(in oklab,var(--ink) 13%,transparent);--map-edge-on:color-mix(in oklab,var(--ink) 26%,transparent);--map-fill:color-mix(in oklab,var(--ink) 2.5%,var(--panel));position:relative;min-width:0;padding:8px 12px 12px;border-bottom:1px solid var(--line);overflow:hidden}
.wk-mtree > svg.lines{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none;stroke:color-mix(in oklab,var(--ink) 15%,transparent);stroke-width:1;stroke-linejoin:round}
.wk-mtree > svg.lines .hot{stroke:var(--c,var(--accent));stroke-width:1.5;stroke-linecap:round}
.wk-legend{display:flex;flex-wrap:wrap;gap:3px 12px;padding:8px 12px 0;font:500 11px/16px var(--sans,inherit);color:var(--ink-2)}
.wk-legend:empty{display:none}
.wk-legend > span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.wk-legend > span[data-now]{color:var(--ink)}
.wk-legend i{flex:none;width:8px;height:8px;background:var(--c)}
.wk-legend em{font-weight:400;font-style:normal;font-variant-numeric:tabular-nums;opacity:.75}
.wk-legend u{display:inline-flex;align-items:center;height:16px;padding:0 6px;border:1px dashed color-mix(in oklab,var(--ink) 18%,transparent);text-decoration:none;white-space:nowrap}
.wk-mrow{display:flex;gap:10px;width:max-content;margin-top:22px;position:relative;z-index:1}
.wk-mrow:first-child{margin-top:0}
.wk-mrow.mid,.wk-mrow.tops{margin-left:auto;margin-right:auto}
.wk-mbox{height:26px;padding:0 9px;display:inline-flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--map-edge,var(--line));border-radius:6px;overflow:hidden;white-space:nowrap;position:relative;flex:none}
.wk-mbox[hidden]{display:none}
.wk-mbox b{font-weight:400;font-size:11.5px;color:var(--ink-2)}
.wk-mbox b i{font-style:normal;color:var(--ink-2)}
.wk-mbox small{font-size:11px;color:var(--ink-2);font-variant-numeric:tabular-nums}
.wk-mbox.on{background:var(--map-fill,var(--panel))}
.wk-mbox.on b{font-weight:500;color:var(--ink)}
.wk-mbox.root{background:color-mix(in oklab,var(--ink) 6%,var(--panel))}
.wk-mbox.root b{font-weight:600;font-size:12.5px;color:var(--ink)}
.wk-mbox:is(.on,.root).hit{border-color:var(--map-edge-on,var(--line))}
.wk-mbox.more{justify-content:center;border-style:dashed;border-color:color-mix(in oklab,var(--ink) 18%,transparent)}
.wk-mbox .tick{position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--tk)}
.wk-mbox .tick.off{opacity:0}
.wk-mopen{width:max-content;max-width:100%;margin-top:7px;position:relative;z-index:1}
.wk-mopen .wk-sqs{box-sizing:content-box;padding:2px 0 4px 14px}
.wk-mopen .wk-sqs:empty{display:none}
.wk-mfile{display:flex;align-items:center;gap:6px;height:17px;padding:0 4px 0 14px;font:11px/1 "Wink Mono",ui-monospace,monospace;color:var(--ink-2);position:relative;white-space:nowrap}
.wk-mfile::before{content:"";position:absolute;inset:0 0 0 10px;background:rgba(146,159,255,.22);opacity:0}
.wk-mfile.flash::before{animation:wk-flash 1.6s var(--ease-out,ease)}
.wk-mfile i{width:7px;height:7px;flex:none;border-radius:1.5px;border:1px solid rgba(163,167,179,.75)}
.wk-mfile span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.wk-mfile.hit{color:var(--ink)}
.wk-mfile.hit i{background:var(--c);border-color:var(--c)}
.wk-mfile[data-now] span{font-weight:600}
.wk-mfile.off{opacity:0}
.wk-pin{position:absolute;left:0;top:0;width:14px;height:14px;z-index:3;pointer-events:none;overflow:visible;transition:transform 750ms var(--ease-in-out,ease),opacity 200ms var(--ease-out,ease)}
.wk-pin.off{opacity:0}
.wk-pin path{fill:var(--c,var(--accent));stroke:var(--panel);stroke-width:1.2;stroke-linejoin:round}
@keyframes wk-flash{0%{opacity:0}30%{opacity:1}100%{opacity:0}}

/* Git rows: same columns on every row, so the stops line up */
.wk-flow{display:flex;flex-direction:column;gap:2px;padding:5px 12px 6px;border-bottom:1px solid var(--line)}
.wk-frow{display:grid;grid-template-columns:8px 76px minmax(0,1fr) 94px;align-items:center;column-gap:8px;height:36px}
.wk-frow > i,.wk-frow .who > i{width:8px;height:8px;flex:none;background:var(--c)}
.wk-frow .nick{min-width:0;font-weight:600;font-size:11px;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wk-frow > small{font:11px "Wink Mono",ui-monospace,monospace;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wk-frow[data-at="pr"] .wk-git{--lc:var(--git-pr)}
.wk-frow[data-at="merged"] .wk-git{--lc:var(--git-merged)}
.wk-crumbs{display:flex;align-items:center;gap:7px;min-height:34px;padding:0 8px 0 12px;border-bottom:1px solid var(--line);white-space:nowrap}
.wk-crumbs .path{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;font:500 11px "Wink Mono",ui-monospace,monospace;color:var(--ink-2)}
.wk-crumbs .path b{color:var(--ink);font-weight:600}
.wk-crumbs .wk-ib{width:28px;height:28px}
.wk-crumbs .wk-ib svg{width:14px;height:14px}
.wk-mseg{display:inline-flex;align-items:center;flex:none;font-size:11px}
.wk-mseg > *{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:999px;color:var(--ink-2)}
.wk-mseg .on{background:var(--raised);color:var(--ink);font-weight:500}
.wk-mstep{display:flex;align-items:center;gap:9px;min-width:0;padding:10px 12px;border-bottom:1px solid var(--line)}
.wk-mstep i{width:8px;height:8px;flex:none;background:var(--c)}
.wk-mstep b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;font-size:13px;line-height:1.3}
.wk-mstep time{margin-left:auto;font:500 11px "Wink Mono",ui-monospace,monospace;color:var(--ink-2)}
.wk-mcode{flex:1;min-height:0;overflow:hidden;padding:10px 0 24px;background:var(--inset);font:12px/1.65 "Wink Mono",ui-monospace,monospace;color:var(--ink);-webkit-mask-image:linear-gradient(#000 calc(100% - 24px),transparent);mask-image:linear-gradient(#000 calc(100% - 24px),transparent)}
.wk-mcode div{display:grid;grid-template-columns:38px 18px minmax(0,1fr);padding-right:14px;white-space:pre}
.wk-mcode div > span:first-child{text-align:right;color:var(--ink-2);opacity:.8;font-variant-numeric:tabular-nums}
.wk-mcode div > span:nth-child(2){text-align:center;font-weight:500}
.wk-mcode div > span:last-child{overflow:hidden;text-overflow:ellipsis;opacity:.6}
.wk-mcode .a{background:rgba(52,211,153,.09);box-shadow:inset 2px 0 #34d399}
.wk-mcode .a > span:nth-child(2){color:#34d399}
.wk-mcode .a > span:last-child{opacity:1}
.wk-mcode .d{background:rgba(255,140,152,.09);box-shadow:inset 2px 0 var(--bad)}
.wk-mcode .d > span:nth-child(2){color:var(--bad)}
.wk-mcode .d > span:last-child{opacity:.7}
.wk-mcode .gap{display:flex;align-items:center;gap:10px;margin:6px 0;padding:0 16px 0 56px;font:11px/18px "Space Grotesk",system-ui,sans-serif;color:var(--ink-2)}
.wk-mcode .gap::after{content:"";flex:1;border-top:1px dashed var(--line)}
/* The pane gives way like the real one: the end words go, then each row keeps only its latest stop's word, then rows split in two */
@container map (max-width:569px){
  .wk-frow{grid-template-columns:8px 76px minmax(0,1fr)}
  .wk-frow > small{display:none}
}
@container map (max-width:467px){
  .wk-git > span:not(.checks){color:transparent}
  .wk-git > span.ok:not(:has(+ .ok)){color:var(--ink-2)}
  .wk-git .checks{flex:3 1 0}
  .wk-git .checks::before{left:calc(-100% / 6)}
  .wk-git .checks u{width:66.7%;padding:3px 4px 4px}
  .wk-crumbs{flex-wrap:wrap;row-gap:4px;padding-top:5px;padding-bottom:5px}
  .wk-crumbs .path{flex-basis:100%}
}
@container map (max-width:359px){
  .wk-map-head,.wk-where,.wk-legend,.wk-mtree,.wk-flow,.wk-crumbs,.wk-mstep{padding-left:10px;padding-right:10px}
  .wk-frow{grid-template-columns:8px minmax(0,1fr) auto;grid-template-rows:16px 36px;height:auto}
  .wk-frow > .wk-git{grid-column:1/-1;grid-row:2}
  .wk-frow > small{display:block;grid-row:1;grid-column:3}
}

/* group room */
.wk-room-head{gap:8px}
.wk-room-head .hash{width:16px;height:16px;color:var(--ink-3)}
.wk-faces{display:flex}
.wk-faces .wk-av{width:22px;height:22px;border-radius:50%;border:2px solid var(--app);margin-left:-6px;font-size:11px}
.wk-faces .wk-av svg{width:11px;height:11px}
.wk-faces .wk-av:first-child{margin-left:0}
/* room feed = GroupView.tsx: 16px face + 11px name once per sender, then the bubble; yours sit right with no label */
.wk-post{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:center;justify-items:start;column-gap:6px;row-gap:4px;padding-bottom:8px;border-bottom:1px solid color-mix(in srgb,var(--line) 68%,transparent)}
.wk-post > div{display:contents}
.wk-post > .wk-av.lg{width:16px;height:16px;border-radius:50%;margin-left:2px;font-size:11px}
.wk-post > .wk-av.lg svg{width:11px;height:11px}
.wk-post .meta{grid-column:2;margin:0;font-size:11px;line-height:16px}
.wk-post .meta b{font-weight:500;color:var(--ink-2)}
.wk-post .meta :is(small,.wk-role){display:none}
.wk-post p{grid-column:1 / -1;margin:0;width:fit-content;max-width:min(42rem,94%);border-radius:16px;background:var(--raised);padding:10px 14px}
.wk-post > div > :not(.meta){grid-column:1 / -1}
.wk-post.mine{justify-items:end}
.wk-post.mine > .wk-av,.wk-post.mine .meta{display:none}
.wk-post.mine p{background:var(--bubble);border:1px solid var(--line);padding:10px 16px}
.wk-at{color:var(--accent-t);background:rgba(146,159,255,.14);border-radius:4px;padding:0 3px}
.wk-sys{font-size:12px;color:var(--ink-2);text-align:center;padding:8px 0}
/* Composer.tsx data-bot-chain: plain status over the composer while bots answer each other; Stop is the composer's round button */
.wk-chain{flex:none;margin:0 24px 6px;font-size:12px;color:var(--ink-2)}

/* voice */
.wk-live .cap{display:flex;align-items:flex-start;gap:8px;min-height:32px;padding:4px;font-size:15px;line-height:24px;color:var(--ink-2)}
.wk-live .cap b{flex:none;max-width:35%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;color:var(--ink)}
.wk-win .wk-live .wk-ib.on{background:color-mix(in srgb,var(--accent) 15%,transparent);color:var(--accent)}
.wk-win .wk-live .wk-ib.end{background:#ff8c98;color:#fff}
.wk-bars{display:inline-flex;align-items:center;gap:3px;height:18px}
.wk-bars i{width:3px;height:16px;border-radius:2px;background:var(--accent);transform:scaleY(.3);animation:wk-bar 1s infinite var(--ease-in-out,ease-in-out)}
.wk-bars i:nth-child(2){animation-delay:.18s}.wk-bars i:nth-child(3){animation-delay:.36s}.wk-bars i:nth-child(4){animation-delay:.54s}
.wk-bars.still i{animation:none;transform:scaleY(.3)}
@keyframes wk-bar{0%,100%{transform:scaleY(.3)}50%{transform:scaleY(1)}}
.wk-live :is(.clock,.doing){font-size:13px;color:var(--ink-2);font-variant-numeric:tabular-nums}
/* CallCard.tsx: a finished call; a live one is only the centred divider (.wk-callrow) */
.wk-callcard{align-self:flex-start;width:100%;max-width:min(26rem,78%);background:var(--raised);border-radius:16px;padding:10px 16px;color:var(--ink)}
.wk-callcard .top{display:flex;align-items:center;gap:6px;font-size:13px}
.wk-callcard .top svg{width:13px;height:13px;color:var(--ink-2)}
.wk-callcard .top b{font-weight:500}
.wk-callcard .top time{margin-left:auto;font-size:12px;color:var(--ink-2)}
.wk-callcard p{margin:8px 0 0;font-size:14px;line-height:1.375;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wk-callcard .more{display:flex;align-items:center;gap:4px;margin:4px 0 0 -4px;padding:2px 4px;font-size:12.5px;color:var(--ink-2)}
.wk-callcard .more svg{width:13px;height:13px}
.wk-stripe{display:flex;align-items:center;gap:2px;height:20px;margin-top:8px}
.wk-stripe i{flex:1;min-width:1px;max-width:4px;border-radius:999px;background:var(--accent)}
.wk-stripe i.s{background:var(--control)}
.wk-stripe i.u{background:color-mix(in srgb,var(--ink-2) 70%,transparent)}
.wk-callrow{padding:12px 0;text-align:center;font-size:13px;color:var(--ink-2)}

/* phone push (Android style, from the service worker) */
.wk-push{width:100%;max-width:340px;background:#2a2c33;border-radius:20px;padding:12px 14px 10px;color:#f2f3f6;box-shadow:0 16px 40px -10px rgba(0,0,0,.6)}
.wk-push .app{display:flex;align-items:center;gap:6px;font-size:11.5px;color:#b9bcc6}
.wk-push .app img{width:16px;height:16px;border-radius:4px}
.wk-push .t{display:flex;align-items:center;gap:7px;font-weight:600;font-size:14.5px;margin-top:6px}
.wk-push .t svg{width:15px;height:15px;color:#7bd8a6}
.wk-push p{margin:2px 0 0;font-size:13px;line-height:1.45;color:#d3d5dc}
.wk-push .acts{display:flex;gap:8px;margin-top:10px}
.wk-push .acts span{flex:1;height:34px;border-radius:17px;display:grid;place-items:center;font-size:13px;font-weight:600;background:#3a3d46;color:#f2f3f6}
.wk-push .acts span.yes{background:#7bd8a6;color:#0d1a13}

/* Live Verify */
/* VerifyCard.css: a finished check shows Rerun and the tally */
.wk-verify{background:var(--raised);border:1px solid color-mix(in srgb,var(--line) 40%,transparent);border-radius:16px;padding:16px;display:flex;flex-direction:column;max-width:840px;font-size:13px;line-height:1.5}
.wk-verify .top{display:flex;align-items:center;gap:8px;font-weight:600}
.wk-verify .top > svg{width:14px;height:14px;flex:none;color:var(--accent)}
.wk-verify .top .cnt{margin:-6px 0 -6px auto;display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:6px 12px;border-radius:8px;background:var(--control);font-size:12.5px;font-weight:500;color:var(--ink)}
.wk-verify .top .cnt svg{width:13px;height:13px}
.wk-checks{display:flex;flex-direction:column;gap:3px}
.wk-checks div{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--ink-2)}
.wk-checks svg{width:13px;height:13px;color:var(--ok)}
.wk-checks .fix svg{color:var(--warn)}
.wk-tally{display:flex;flex-wrap:wrap;gap:6px}
.wk-tally span{font-size:11.5px;height:22px;padding:0 8px;border-radius:999px;display:inline-flex;align-items:center;gap:5px;background:var(--inset);border:1px solid var(--line-soft);color:var(--ink-2)}
.wk-tally b{font-weight:600;color:var(--ink)}
.wk-result{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;margin-top:8px;color:var(--ink-2)}
.wk-result b{font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.wk-link{font-size:12.5px;color:var(--accent-t)}

/* memory */
.wk-mem,.wk-act{display:inline-flex;align-items:center;gap:8px;width:max-content;max-width:100%;min-width:0;padding:6px 12px;border:1px solid transparent;border-radius:var(--r1);color:var(--ink-2);font-size:13px;line-height:1.5}
.wk-mem svg,.wk-act svg{width:13px;height:13px;flex:none}
.wk-mem span,.wk-act code{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wk-act code{font-family:"Wink Mono";font-size:inherit;color:inherit}
.wk-act .ico{display:grid;flex:none}
.wk-act .ico > svg{grid-area:1/1}
.wk-act .done{color:var(--ok)}
.wk-act:not(.run) .spin,.wk-act.run .done{visibility:hidden}
.wk-act.run .spin{animation:wk-spin .7s linear infinite}
@keyframes wk-spin{to{rotate:360deg}}
@media (prefers-reduced-motion:reduce){.wk-act.run .spin{animation:none}}
.wk-memp{display:flex;flex-direction:column;gap:12px}
.wk-memp h5{margin:0 0 6px;font-size:11.5px;font-weight:600;letter-spacing:.02em;color:var(--ink-3);display:flex;align-items:center;gap:6px}
.wk-memp h5 .live{color:var(--ok);font-size:11px;border:1px solid rgba(123,216,166,.4);border-radius:4px;padding:0 5px}
.wk-memp ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.wk-memp li{font-size:12.5px;color:var(--ink);background:var(--inset);border:1px solid var(--line-soft);border-radius:var(--r1);padding:6px 9px;display:flex;align-items:center;gap:8px}
.wk-memp li .wk-st{margin-left:auto}
.wk-prog{height:4px;border-radius:2px;background:var(--control);overflow:hidden}
.wk-prog i{display:block;height:100%;width:var(--p,33%);background:var(--ok);border-radius:2px}

/* terminal */
.wk-term{background:var(--inset);border:1px solid var(--line-soft);border-radius:var(--r1);font:12px/1.55 "Wink Mono",ui-monospace,monospace;color:#c9ccd6;padding:10px 12px;white-space:pre;overflow:hidden}
.wk-term .g{color:var(--ok)}.wk-term .b{color:var(--accent-t)}.wk-term .y{color:var(--warn)}.wk-term .m{color:var(--ink-3)}

/* phone */
.wk-phone{width:300px;aspect-ratio:300/630;border-radius:46px;background:#08090b;border:1px solid #2b2e36;padding:9px;box-shadow:0 40px 80px -30px rgba(0,0,0,.8),inset 0 0 0 1px #15161a;flex:none}
.wk-screen{height:100%;border-radius:38px;overflow:hidden;background:var(--app);display:flex;flex-direction:column;position:relative}
.wk-status{height:36px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:4px 26px 0;font-size:12.5px;font-weight:600}
.wk-status span:last-child{display:flex;gap:5px;align-items:center}
.wk-status svg{width:13px;height:13px}
.wk-phead{height:50px;flex:none;display:flex;align-items:center;gap:9px;padding:0 12px;border-bottom:1px solid var(--line-soft)}
.wk-phead svg.ic{width:18px;height:18px;color:var(--ink-2)}
.wk-phead b{display:block;font-size:14px;font-weight:600;line-height:1.2}
.wk-phead small{display:block;font-size:11.5px;color:var(--ink-3);line-height:1.2}
.wk-pc{margin-left:auto;display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 9px;border:1px solid var(--line);border-radius:999px;font-size:11.5px;color:var(--ink-2);white-space:nowrap}
.wk-pc svg{width:12px;height:12px}
.wk-screen .wk-msgs{padding:12px 12px 6px;gap:10px}
.wk-screen .wk-card{padding:8px 11px;font-size:13px}
.wk-screen .wk-me{font-size:13px;max-width:86%}
.wk-screen .wk-comp{margin:4px 10px 18px}

@container (max-width:700px){
  .wk-body{grid-template-columns:minmax(0,1fr) var(--pane-sm,0px)}
  .wk-side{display:none}
}
@media (prefers-reduced-motion:reduce){
  .wk *,.wk *::before,.wk *::after{animation:none!important;transition:none!important}
}
