/* Mochi Squad demo: the Mac app's main window, rebuilt in the browser with sample data.
   Colours and sizes follow the app's design tokens (Sources/MochiSquad/UI/Theme.swift). Loaded after styles.css and docs.css.
   The window is always dark, whatever the page around it looks like: everything inside it uses the --d-* tokens only. */
.demo-page {
  --d-canvas: #0a0a0a; --d-card: #232323; --d-bubble: #2660eb; --d-pill: #3e3e3e; --d-relayed: #1c2848; --d-dialog: #161616;
  --d-glass: #2c2c2e; --d-glass-stroke: rgba(252,252,252,.15); --d-selected: #1d1d1d; --d-hover: #212121;
  --d-text: rgba(245,245,245,1); --d-dim: rgba(245,245,245,.66); --d-faint: rgba(245,245,245,.54);
  --d-rule: rgba(245,245,245,.06); --d-edge: rgba(245,245,245,.10); --d-primary: #f5f5f5; --d-on-primary: #121212;
  --d-accent: #4d9bff; --d-accent-fill: #2660eb; --d-success: #00ba69; --d-working: #0e9f5a; --d-warning: #e28600; --d-danger: #ff6463;
}
.demo-main { max-width: 1544px; margin: 0 auto; padding: 18px clamp(16px, 2.4vw, 32px) 0; }
.demo-label { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); text-align: center; }
.demo-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--d-success); flex: none; }
.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; }
.demo-after { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin: 26px auto 0; text-align: center; }
.demo-after p { width: 100%; font-size: 16px; color: var(--dim); }
.demo-after .btn { height: 48px; padding: 0 22px; font-size: 15px; }
.demo-after .dl-ico { width: 18px; height: 18px; margin-left: -4px; }
.demo-after .demo-first { color: var(--text); font-weight: 500; font-size: 15px; }
.demo-after .demo-first:hover { text-decoration: underline; text-underline-offset: 3px; }
.demo-page .dfoot { max-width: none; margin-top: 64px; padding-left: 0; padding-right: 0; }
.demo-noscript { padding: 40px 20px; text-align: center; color: var(--dim); border: 1px solid var(--edge); border-radius: 18px; }

/* ---------- the window ---------- */
/* The window keeps the app's native size (the default window of 1480 × 936 pt) and is scaled as a whole to the page,
   like an interactive screenshot: every size inside is the app's own. Its shadow is quiet enough for a light page. */
.win-stage { position: relative; width: 100%; height: calc(936px * var(--s, 1)); }
.win { position: absolute; left: calc((100% - 1480px * var(--s, 1)) / 2); top: 0; display: flex; width: 1480px; height: 936px; transform: scale(var(--s, 1)); transform-origin: 0 0; border-radius: 12px; overflow: hidden; isolation: isolate;
  background: var(--d-canvas); color: var(--d-text); font: 400 13px/1.35 var(--body); -webkit-font-smoothing: antialiased; text-align: left; color-scheme: dark;
  border: 1px solid rgba(255,255,255,.13); box-shadow: 0 0 0 .5px rgba(0,0,0,.7), 0 36px 90px -28px rgba(0,0,0,.5), 0 14px 34px -14px rgba(0,0,0,.28); }
/* resets without weight, so every component's own padding and background win */
:where(.win) :where(button, input, textarea, select) { font: inherit; color: inherit; }
:where(.win) :where(button) { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
.win [hidden] { display: none !important; }
.win :focus-visible { outline: 2px solid var(--d-accent); outline-offset: 2px; }
.win svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
.win a { color: var(--d-accent); text-decoration: underline; text-underline-offset: 2px; }
.win code { font: 500 .9em var(--mono); background: rgba(255,255,255,.07); color: inherit; padding: .05em .3em; border-radius: 4px; }
.win ::selection { background: #2f6bff; color: #fff; }
.win .grow { flex: 1; min-width: 4px; }
.win .list, .win .pbody, .win .scroll, .win .pg, .win .mem-tree, .win .mem-note, .win .set-main, .win .gl-side, .win .gl-main, .win .sheet { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.press { transition: transform .22s cubic-bezier(.3,1.6,.5,1), opacity .15s; }
.press:active { transform: scale(.96); opacity: .9; }
.lights { position: absolute; left: 20px; top: 19px; z-index: 6; display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.25); }
.lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.av { position: relative; display: block; flex: none; }
.av .mochi { width: 100%; height: 100%; }
.av.round { border-radius: 50%; overflow: hidden; }
.av .dot { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--d-working); box-shadow: 0 0 0 2px var(--d-canvas); }
.av.working .mochi { animation: hopd 1.1s ease-in-out infinite; }
@keyframes hopd { 50% { transform: translateY(-2px); } }
@keyframes fadeo { from { opacity: 0; } }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }
.grp-av { position: relative; flex: none; display: block; }
.grp-av .av { position: absolute; }

/* the icon bar: all the navigation there is */
.rail-d { width: 76px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 52px 0 14px; background: var(--d-canvas); }
.rail-d .sp { flex: 1; }
.rmochi { padding: 3px; margin-bottom: 6px; border-radius: 50%; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .25s, transform .22s cubic-bezier(.3,1.6,.5,1); }
.rmochi.on { box-shadow: inset 0 0 0 2px var(--d-accent); }
.rmochi .av { transition: transform .3s cubic-bezier(.3,1.5,.5,1), filter .3s; }
.rmochi:hover .av { transform: scale(1.07); filter: drop-shadow(0 0 10px rgba(77,155,255,.4)); }
.rb { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: var(--d-dim);
  background: rgba(245,245,245,.05); box-shadow: inset 0 0 0 1px rgba(245,245,245,.06); }
.rb:hover { background: rgba(245,245,245,.09); }
.rb.on { color: var(--d-text); background: rgba(245,245,245,.14); box-shadow: inset 0 0 0 1px rgba(245,245,245,.18); }
.rb .badge { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--d-accent-fill); color: #fff; font: 700 10px/16px var(--body); text-align: center; font-variant-numeric: tabular-nums; }
.gauge svg { width: 30px; height: 30px; display: block; }
.gauge { position: relative; }
.gauge span { position: absolute; inset: 0; display: grid; place-items: center; font: 600 11px var(--body); color: var(--d-text); font-variant-numeric: tabular-nums; }

/* the drawer behind Tools › Helpers and chats */
.drawer-wrap { position: absolute; left: 76px; top: 0; right: 0; bottom: 0; z-index: 20; }
.drawer-dim { position: absolute; inset: 0; background: rgba(0,0,0,.28); animation: fadeo .2s ease; }
.drawer { position: absolute; left: 0; top: 0; bottom: 0; width: 320px; display: flex; flex-direction: column; background: var(--d-canvas); border-right: 1px solid var(--d-rule); box-shadow: 8px 0 24px rgba(0,0,0,.35); animation: slidel .32s cubic-bezier(.16,1,.3,1); }
.win .drawer:focus-visible, .win .page:focus-visible, .win .pop:focus-visible, .win .scroll:focus-visible { outline: 0; }
@keyframes slidel { from { transform: translateX(-24px); opacity: 0; } }
.side-head { display: flex; align-items: center; gap: 2px; height: 52px; padding: 0 10px 0 16px; flex: none; }
.squad-btn { display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; min-width: 0; }
.squad-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.squad-btn svg.i { font-size: 11px; color: var(--d-dim); stroke-width: 2.4; }
.tool { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 16px; color: rgba(199,199,199,1); flex: none; }
.tool:hover { background: var(--d-selected); color: var(--d-text); }
.tool:disabled { opacity: .35; cursor: default; background: none; }
.list { flex: 1; overflow-y: auto; padding: 0 10px 14px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 12px; margin-bottom: 2px; }
.row:hover { background: rgba(29,29,29,.6); }
.row.on { background: var(--d-selected); }
.row .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row .top { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.row .name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.row .name small { font-size: 12px; font-weight: 400; color: var(--d-faint); margin-left: 6px; }
.row .time { margin-left: auto; padding-left: 4px; font-size: 12px; color: var(--d-faint); white-space: nowrap; font-variant-numeric: tabular-nums; flex: none; }
.row .prev { color: var(--d-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .prev.warn { color: var(--d-warning); }
.row .prev.busy { color: var(--d-success); }
.ghead { display: flex; align-items: center; gap: 6px; width: 100%; padding: 16px 10px 6px; font-size: 12.5px; font-weight: 500; color: var(--d-dim); }
.ghead svg.i { font-size: 10px; stroke-width: 2.4; }
.more-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 4px 10px; border-radius: 10px; font-size: 13px; }
.more-row:hover { background: rgba(29,29,29,.6); }
.more-row.on { background: var(--d-selected); }
.more-row svg.i { color: var(--d-dim); font-size: 14px; }
.arch-row { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border-radius: 10px; color: var(--d-dim); }
.arch-row:hover { background: var(--d-selected); }
.arch-row .av { filter: saturate(0); opacity: .7; }
.arch-note { padding: 8px 10px 0; font-size: 12px; color: var(--d-faint); }
.empty-note { padding: 4px 10px; font-size: 12.5px; color: var(--d-dim); }

/* the chat */
.chat { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--d-canvas); position: relative; border-left: 1px solid var(--d-rule); }
.chead { position: relative; height: 66px; flex: none; display: flex; align-items: center; padding: 8px 22px 12px; gap: 8px; }
.chead .left, .chead .right { display: flex; align-items: center; gap: 8px; z-index: 1; }
.chead .right { margin-left: auto; }
.pill-title { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: calc(100% - 330px); min-height: 38px; padding: 4px 14px 4px 4px; border-radius: 99px;
  background: var(--d-glass); box-shadow: inset 0 0 0 1px var(--d-glass-stroke), 0 2px 6px rgba(0,0,0,.25); }
.pill-title > b { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-title .pjob { font-size: 13px; color: var(--d-dim); white-space: nowrap; }
.pill-title.old { padding-left: 14px; max-width: min(420px, calc(100% - 60px)); }
.pill-title.old > svg.i { color: var(--d-dim); font-size: 14px; }
.dstat { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--d-dim); white-space: nowrap; }
.dstat i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dstat.busy { color: var(--d-success); } .dstat.wait { color: var(--d-warning); }
.icon-28 { width: 28px; height: 28px; display: grid; place-items: center; color: var(--d-dim); font-size: 14px; border-radius: 8px; }
.glass-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: var(--d-dim); background: var(--d-glass); box-shadow: inset 0 0 0 1px var(--d-glass-stroke); }
.glass-btn.on { color: var(--d-text); }
.scroll { flex: 1; overflow-y: auto; }
.tx { max-width: 960px; margin: 0 auto; padding: 18px 24px; }
.notice { text-align: center; font-size: 14px; color: var(--d-dim); padding: 4px 14px; }
.dmsg { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.dmsg.me { align-items: flex-end; }
/* Only your own messages have a bubble; an answer stands on the background like a page. */
.bubble { max-width: min(620px, calc(100% - 120px)); padding: 10px 16px; border-radius: 16px; background: var(--d-bubble); color: #fff; font-size: 15px; line-height: 1.42; overflow-wrap: anywhere; }
.says { max-width: min(720px, calc(100% - 40px)); padding: 4px 2px; font-size: 15px; line-height: 1.42; overflow-wrap: anywhere; }
.bubble p + p, .bubble p + .li, .bubble .li + p, .bubble .li + .li, .says p + p, .says p + .li, .says .li + p, .says .li + .li, .post-b p + p, .post-b p + .li, .post-b .li + p, .post-b .li + .li { margin-top: 7px; }
.bubble .li, .says .li, .post-b .li { display: flex; gap: 8px; }
.bubble .li > span:first-child, .says .li > span:first-child, .post-b .li > span:first-child { min-width: 12px; text-align: right; color: var(--d-dim); font-variant-numeric: tabular-nums; flex: none; }
.bubble .li > span:first-child { color: rgba(255,255,255,.75); }
.win .bubble a { color: #fff; }
.readl { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--d-faint); padding-right: 6px; margin-top: -2px; }
.readl svg.i { font-size: 10px; stroke-width: 2.8; }
/* a helper's report and Mochi's task for a helper: one folded line each */
.hpost { max-width: 720px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.post-h { display: flex; align-items: center; gap: 8px; height: 34px; max-width: 100%; min-width: 0; padding: 0 10px; border-radius: 10px; }
.post-h:hover, .hpost.open .post-h { background: var(--d-hover); }
.post-h b { font-size: 13px; font-weight: 600; white-space: nowrap; flex: none; }
.post-h .pv { font-size: 13px; color: var(--d-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.post-h > svg.i { font-size: 10px; stroke-width: 2.4; color: var(--d-dim); transition: transform .18s; }
.hpost.open .post-h > svg.i { transform: rotate(90deg); }
.post-b { align-self: stretch; margin-left: 10px; padding: 12px 14px; border-radius: 14px; background: var(--d-card); font-size: 14px; line-height: 1.45; animation: fadeo .18s ease; }
/* a file an answer names */
.fcard { display: flex; flex-direction: column; gap: 6px; width: min(420px, 100%); margin-top: 2px; }
.fpage { width: 220px; height: 132px; padding: 16px 18px 0; border-radius: 10px 10px 3px 3px; background: #f4f4f2; color: #1a1a1a; display: flex; flex-direction: column; gap: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.fpage b { font-size: 13px; font-weight: 700; }
.fpage span { font-size: 9.5px; color: #666; margin: -4px 0 4px; }
.fpage i { height: 4px; border-radius: 2px; background: #d9d9d6; flex: none; }
.fpage i.s { width: 62%; }
.fpage u { height: 6px; width: 36%; margin: 4px 0 0 auto; border-radius: 2px; background: #2660eb; flex: none; }
.fbar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 10px; border-radius: 10px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-edge); font-size: 13px; }
.fbar > svg.i { color: var(--d-dim); font-size: 15px; }
.fname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fbar small { font-size: 12px; color: var(--d-faint); white-space: nowrap; }
.fbar button { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--d-dim); font-size: 14px; flex: none; }
.fbar button:hover { background: rgba(245,245,245,.08); color: var(--d-text); }
/* "… is working …" and the "N steps" summary (UI/WorkSteps.swift): a plain list on the page, no card around it */
.dwork { display: flex; flex-direction: column; gap: 12px; max-width: 560px; padding: 4px 0 4px 6px; }
.dwork .wh { display: flex; align-items: center; gap: 10px; }
.wshim { font-size: 13.5px; font-weight: 600; color: var(--d-dim); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .wshim { background: linear-gradient(90deg, rgba(245,245,245,.66) 40%, #f5f5f5 50%, rgba(245,245,245,.66) 60%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shim 1.8s linear infinite; }
}
@keyframes shim { from { background-position: 100% 0; } to { background-position: 0 0; } }
.wmore { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; background: rgba(255,255,255,.06); font-size: 11.5px; font-weight: 500; color: var(--d-dim); white-space: nowrap; }
.wmore svg.i { font-size: 10px; stroke-width: 2.4; }
.wmore[aria-expanded="true"] svg.i { transform: rotate(180deg); }
.stepl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.stepl li { position: relative; display: flex; align-items: flex-start; gap: 7px; padding: 0 0 9px 26px; font-size: 12.5px; line-height: 16px; color: var(--d-dim); min-width: 0; }
.stepl li:last-child { padding-bottom: 0; }
.stepl li::before { content: ""; position: absolute; left: 7.5px; top: 16px; bottom: 0; width: 1px; background: rgba(255,255,255,.09); }
.stepl li:last-child::before { display: none; }
.stepl .smk { position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,186,105,.13); color: var(--d-success); }
.stepl .smk svg.i { font-size: 9px; stroke-width: 3.2; }
.stepl li > svg.i { font-size: 12px; color: var(--d-faint); margin-top: 2px; }
.stepl li > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.stepl li.th > span:last-child { font-style: italic; }
.stepl li.cur { color: var(--d-text); font-weight: 500; animation: fadein .25s ease-out; }
.stepl li.cur > svg.i { color: var(--d-accent); }
.stepl li.cur .smk { background: none; }
.stepl li.cur .smk i { width: 11px; height: 11px; border-radius: 50%; border: 1.6px solid rgba(245,245,245,.22); border-top-color: var(--d-text); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dsteps { display: flex; flex-direction: column; gap: 8px; padding: 2px 0 0 4px; }
.dsteps > button { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--d-faint); align-self: flex-start; }
.dsteps > button svg.i { font-size: 12px; }
.dsteps > button svg.i:last-child { font-size: 9px; stroke-width: 2.6; transition: transform .18s; }
.dsteps.open > button svg.i:last-child { transform: rotate(90deg); }
/* the helpers under the chat, while they work */
.hstrip { display: flex; flex-direction: column; gap: 4px; max-width: 720px; }
.hline { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; height: 36px; padding: 0 10px; border-radius: 10px; animation: fadeo .3s ease; }
.hline:hover, .hline:focus-visible { background: var(--d-hover); }
.hline b { font-size: 13px; font-weight: 600; white-space: nowrap; }
.hline .hjob { font-size: 12.5px; color: var(--d-dim); white-space: nowrap; margin-left: -2px; }
.hline .hdo { flex: 1; min-width: 0; font-size: 12.5px; color: var(--d-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hline > svg.i { font-size: 10px; stroke-width: 2.4; color: var(--d-dim); opacity: 0; }
.hline:hover > svg.i, .hline:focus-visible > svg.i { opacity: 1; }
.dempty { max-width: 460px; margin: 80px auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.dempty h3 { font-size: 22px; font-weight: 600; margin: 10px 0 0; letter-spacing: 0; }
.dempty p { font-size: 14px; color: var(--d-dim); }
.dex { width: 100%; margin-top: 20px; border-radius: 14px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-edge); overflow: hidden; text-align: left; }
.dex button { display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 14px; font-size: 13.5px; }
.dex button + button { border-top: 1px solid var(--d-rule); }
.dex button:hover { background: rgba(62,62,62,.5); }
.dex button span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dex svg.i { color: var(--d-dim); font-size: 14px; }
.dex svg.i:last-child { color: var(--d-faint); font-size: 12px; }
.readonly { text-align: center; font-size: 12.5px; color: var(--d-dim); padding: 26px 0 0; }

/* composer */
.compose { max-width: 960px; width: 100%; margin: 0 auto; padding: 6px 24px 24px; flex: none; }
.dchips { display: flex; gap: 6px; overflow-x: auto; padding: 0 28px 8px 4px; scrollbar-width: none; scroll-padding-inline: 4px;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.dchips.at-end { -webkit-mask-image: none; mask-image: none; }
.dchips::-webkit-scrollbar { display: none; }
.dchip { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-edge); font-size: 13px; font-weight: 500; white-space: nowrap; flex: none; }
.dchip svg.i { font-size: 12px; color: var(--d-faint); }
.capsule { display: flex; align-items: flex-end; gap: 8px; min-height: 52px; padding: 10px 10px 10px 12px; border-radius: 26px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-edge); }
.capsule:focus-within { box-shadow: inset 0 0 0 1px rgba(245,245,245,.22); }
.round-g { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: var(--d-dim); background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-edge); flex: none; }
.capsule textarea { flex: 1; min-width: 0; min-height: 34px; max-height: 150px; padding: 7px 0; resize: none; background: none; border: 0; outline: 0; font-size: 15px; line-height: 20px; color: var(--d-text); }
.capsule textarea::placeholder { color: rgba(245,245,245,.4); }
.capsule textarea:focus-visible { outline: 0; }
.send { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: rgba(245,245,245,.13); color: rgba(245,245,245,.3); flex: none; }
.send svg.i { stroke-width: 2.4; }
.send:not(:disabled) { background: var(--d-primary); color: var(--d-on-primary); }
.send:disabled { cursor: default; }

/* the right column: Activity and Library */
.panel { width: 370px; flex: none; display: flex; flex-direction: column; background: var(--d-canvas); border-left: 1px solid var(--d-rule); min-height: 0; }
.ptabs { display: flex; align-items: center; gap: 4px; height: 60px; padding: 0 14px; flex: none; }
.ptabs [role="tab"] { height: 28px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; color: var(--d-dim); }
.ptabs [role="tab"][aria-selected="true"] { background: var(--d-selected); color: var(--d-text); font-weight: 600; }
.pbody { flex: 1; overflow-y: auto; padding: 4px 16px 20px; display: flex; flex-direction: column; gap: 24px; }
.sheet-grip { display: none; }
.pnow-slot:empty { display: none; }
.pnow { display: flex; flex-direction: column; gap: 8px; }
.pnow .h { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.pnow .h i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pnow .h b { font-weight: 600; }
.pnow p { font-size: 12.5px; color: var(--d-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psec { display: flex; flex-direction: column; gap: 14px; }
.psec > h4 { font-size: 12px; font-weight: 600; color: var(--d-faint); text-transform: uppercase; letter-spacing: .03em; margin: 0 0 -4px; }
.prows { display: flex; flex-direction: column; }
.prow { display: flex; align-items: center; gap: 10px; min-height: 48px; border-top: 1px solid var(--d-rule); }
.prow:first-child, .prow.last { border-top: 0; }
.prow > span:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prow b { font-size: 13px; font-weight: 500; }
.prow small { font-size: 11.5px; color: var(--d-faint); }
.prows > .dnote { padding-bottom: 10px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pillb { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 13px; border-radius: 99px; background: var(--d-hover); box-shadow: inset 0 0 0 1px var(--d-edge); font-size: 13px; font-weight: 500; white-space: nowrap; flex: none; }
.pillb.primary { background: var(--d-primary); color: var(--d-on-primary); box-shadow: none; font-weight: 600; }
.pillb:disabled { opacity: .45; cursor: default; }
.pillb svg.i { font-size: 13px; }
.dnote { font-size: 11.5px; color: var(--d-dim); line-height: 1.45; }
.dnote.warn { color: var(--d-warning); }
.sel { appearance: none; -webkit-appearance: none; height: 24px; padding: 0 24px 0 10px; border-radius: 7px; border: 0; background: var(--d-pill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 9l4-4 4 4M8 15l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 7px center / 10px;
  font-size: 12.5px; color: var(--d-text); cursor: pointer; box-shadow: 0 .5px 1px rgba(0,0,0,.4), inset 0 .5px 0 rgba(255,255,255,.12); }
.sel.selbig { height: 32px; max-width: 100%; padding: 0 30px 0 12px; border-radius: 99px; background-color: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-edge); font-weight: 500; font-size: 13px; background-position: right 11px center; }
.sel option { background: #2a2a2a; color: #f5f5f5; }
.switch { appearance: none; -webkit-appearance: none; width: 32px; height: 18px; border-radius: 99px; background: rgba(255,255,255,.18); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #f2f2f2; box-shadow: 0 1px 2px rgba(0,0,0,.4); transition: transform .2s; }
.switch:checked { background: var(--d-accent-fill); }
.switch:checked::after { transform: translateX(14px); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 14px; height: 14px; margin: 1px 0 0; border-radius: 4px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.2); flex: none; cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--d-accent-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") no-repeat center / 10px; }
.check small { display: block; font-size: 11.5px; color: var(--d-dim); margin-top: 2px; }
.expl { font-size: 12.5px; color: var(--d-dim); line-height: 1.5; white-space: pre-line; }
.tiny { font-size: 11px; color: var(--d-faint); line-height: 1.45; }
.bar5 { height: 5px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar5 i { display: block; height: 100%; border-radius: 99px; background: var(--d-accent); }
.lib { display: flex; flex-direction: column; gap: 2px; }
.lib button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border-radius: 10px; }
.lib button:hover { background: var(--d-hover); }
.lib i { width: 28px; height: 28px; border-radius: 7px; background: var(--d-selected); display: grid; place-items: center; color: var(--d-dim); font-size: 14px; flex: none; }
.lib span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lib b { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib small { font-size: 11.5px; color: var(--d-faint); }
.libempty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 40px; text-align: center; font-size: 12.5px; color: var(--d-dim); }
.libempty svg.i { font-size: 24px; color: var(--d-faint); stroke-width: 1.3; }

/* routines */
.rlist { display: flex; flex-direction: column; gap: 2px; }
.rrow { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 10px; font-size: 13px; font-weight: 500; width: 100%; }
.rrow.on { background: var(--d-selected); }
.rrow svg.i { font-size: 12px; color: var(--d-dim); }
.rrow span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrow i.d { width: 6px; height: 6px; border-radius: 50%; background: var(--d-success); flex: none; }
.rrow i.d.off { background: var(--d-faint); }
.starters { display: flex; flex-direction: column; gap: 6px; }
.starters button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 14px; background: var(--d-card); }
.starters .si { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(77,155,255,.14); color: var(--d-accent); font-size: 15px; flex: none; }
.starters button > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.starters b { font-size: 13.5px; font-weight: 500; }
.starters small { font-size: 12px; color: var(--d-dim); line-height: 1.35; }
.starters button > svg.i { color: var(--d-faint); font-size: 13px; stroke-width: 2.2; }
.bellnote, .handn { display: flex; gap: 7px; font-size: 12px; }
.bellnote svg.i, .handn svg.i { font-size: 13px; margin-top: 1px; }
.rtop { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.lbl { font-size: 12.5px; color: var(--d-dim); margin-bottom: -8px; }
.ta { width: 100%; min-height: 96px; max-height: 160px; resize: vertical; padding: 8px 12px; border-radius: 10px; border: 0; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-edge); font-size: 13.5px; line-height: 1.45; color: var(--d-text); outline: 0; }
.ta::placeholder { color: rgba(245,245,245,.4); }
.ta:focus-visible { box-shadow: inset 0 0 0 1px var(--d-accent); outline: 0; }
.when { padding: 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--d-edge); display: flex; flex-direction: column; gap: 10px; }
.when .t { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; min-width: 0; }
.when .t svg.i { color: var(--d-dim); font-size: 14px; }
.days { display: flex; gap: 4px; }
.days button { flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0; text-align: center; height: 26px; border-radius: 99px; font-size: 11.5px; background: var(--d-selected); color: var(--d-dim); }
.days button[aria-pressed="true"] { background: var(--d-primary); color: var(--d-on-primary); font-weight: 600; }
.runs h4 { font-size: 15px; font-weight: 600; margin: 10px 0 0; letter-spacing: 0; }
.run { padding: 6px 0; border-bottom: 1px solid var(--d-rule); }
.run .h { display: flex; font-size: 13px; font-variant-numeric: tabular-nums; }
.run .h span:last-child { margin-left: auto; font-size: 12px; color: var(--d-dim); }
.run p { font-size: 12px; color: var(--d-dim); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.run.fresh { animation: fadein .5s ease; }
.dashed { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; width: 100%; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--d-edge); font-size: 13px; font-weight: 500; flex: none; }

/* ---------- pages of their own: one header for all of them ---------- */
.page { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--d-canvas); border-left: 1px solid var(--d-rule); animation: fadeo .2s ease; }
.phead { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px; border-bottom: 1px solid var(--d-rule); flex: none; }
.phead h2 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: 0; white-space: nowrap; }
.psym { display: grid; color: var(--d-accent); font-size: 16px; }
.pcirc { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--d-hover); box-shadow: inset 0 0 0 1px var(--d-edge); flex: none; }
.pcirc svg.i { stroke-width: 2.2; }
.ptrail { display: flex; align-items: center; gap: 12px; min-width: 0; }
.psearch { display: flex; align-items: center; gap: 8px; height: 32px; min-width: 0; max-width: 100%; padding: 0 12px; border-radius: 99px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-edge); color: var(--d-faint); font-size: 13px; }
.psearch input { flex: 1; min-width: 0; appearance: none; -webkit-appearance: none; background: none; border: 0; outline: 0; font-size: 13px; color: var(--d-text); }
.psearch input::placeholder { color: var(--d-faint); }
.psearch input::-webkit-search-cancel-button { display: none; }
.psearch input:focus-visible { outline: 0; }
.psearch:focus-within { box-shadow: inset 0 0 0 1px var(--d-accent); }
.ppick { display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-edge); flex: none; }
.ppick button { height: 26px; padding: 0 11px; border-radius: 99px; font-size: 12.5px; color: var(--d-dim); white-space: nowrap; }
.ppick button[aria-pressed="true"] { background: var(--d-pill); color: var(--d-text); font-weight: 600; }
.ptoday { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-edge); font-size: 13px; font-weight: 500; white-space: nowrap; flex: none; }
.ptoday svg.i { font-size: 14px; color: var(--d-dim); }
.pcount { font-size: 13px; color: var(--d-dim); white-space: nowrap; }
.pg { flex: 1; min-height: 0; overflow-y: auto; }
.pg.split { display: flex; overflow: hidden; }
.chev { display: grid; width: 12px; color: var(--d-faint); font-size: 9px; transition: transform .15s; flex: none; }
.chev svg.i { stroke-width: 3; }
.chev.open { transform: rotate(90deg); }

/* the marketplace */
.mk { max-width: 1180px; margin: 0 auto; padding: 26px 32px 40px; display: flex; flex-direction: column; gap: 30px; }
.art { position: relative; overflow: hidden; display: flex; background: linear-gradient(135deg, var(--a), var(--b)); }
@supports (background: color-mix(in srgb, red 50%, blue)) {
  .art { background: radial-gradient(circle at 18% 5%, color-mix(in srgb, var(--a) 75%, transparent), transparent 58%), radial-gradient(circle at 95% 100%, color-mix(in srgb, var(--b) 60%, transparent), transparent 55%), linear-gradient(135deg, color-mix(in srgb, var(--a) 55%, #000), color-mix(in srgb, var(--b) 42%, #000)); }
}
.art::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 26px 26px, linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 26px 26px, linear-gradient(transparent 50%, rgba(0,0,0,.35)); }
.art > * { position: relative; }
.troupe { display: flex; align-items: flex-end; flex: none; }
.troupe .av + .av { margin-left: -8px; }
.art.feat { height: 300px; border-radius: 26px; align-items: flex-end; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 12px 24px rgba(0,0,0,.35); }
.feat-txt { flex: 1; min-width: 0; align-self: center; padding: 34px 20px 34px 36px; display: flex; flex-direction: column; gap: 14px; }
.feat-k { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.85); }
.feat-k svg.i { font-size: 12px; fill: currentColor; }
.feat-txt h3 { font-size: 38px; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; color: #fff; margin: 0; }
.feat-txt p { max-width: 400px; font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.86); }
.feat-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.art.feat > .troupe { padding: 0 36px 26px 0; }
.learn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 18px; border-radius: 99px; background: var(--d-primary); color: var(--d-on-primary); font-size: 13.5px; font-weight: 600; white-space: nowrap; flex: none; }
.learn.onart { background: #fff; }
.learn.large { height: 42px; padding: 0 22px; font-size: 14px; }
.learn.done { background: rgba(0,186,105,.16); color: var(--d-success); cursor: default; }
.learn.onart.done { background: rgba(255,255,255,.16); color: #fff; }
.learn svg.i { font-size: 15px; }
.more-btn { height: 38px; padding: 0 18px; border-radius: 99px; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.mk-cats { display: flex; gap: 8px; }
.mk-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 99px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-edge); font-size: 13px; font-weight: 500; }
.mk-chip.on { background: var(--d-primary); color: var(--d-on-primary); box-shadow: none; font-weight: 600; cursor: default; }
.mk-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.mk-h h3 { font-size: 19px; font-weight: 600; margin: 0; letter-spacing: 0; }
.mk-h span { font-size: 13px; font-weight: 500; color: var(--d-faint); }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.tile { display: flex; flex-direction: column; max-width: 420px; border-radius: 20px; overflow: hidden; background: var(--d-card); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 4px 8px rgba(0,0,0,.2); transition: box-shadow .18s, transform .22s cubic-bezier(.3,1.6,.5,1); }
.tile:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 10px 18px rgba(0,0,0,.4); }
.art.tart { height: 170px; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
.tb { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.tn { display: flex; align-items: center; gap: 8px; }
.tn b { font-size: 15.5px; font-weight: 600; }
.tt { min-height: 35px; font-size: 12.5px; line-height: 1.4; color: var(--d-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tm { display: flex; align-items: center; gap: 14px; font-size: 11.5px; font-weight: 500; color: var(--d-faint); }
.tm span { display: inline-flex; align-items: center; gap: 5px; }
.tm em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--d-success); }
.seal { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 600; letter-spacing: 0; color: var(--d-accent); background: rgba(77,155,255,.14); white-space: nowrap; flex: none; }
.seal.ok { color: var(--d-success); background: rgba(0,186,105,.14); }
.seal svg.i { font-size: 11px; stroke-width: 2.2; }
.mk-none { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 50px 0; font-size: 13px; color: var(--d-dim); }
.trust { display: flex; gap: 12px; padding: 16px; border-radius: 16px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-edge); }
.trust > svg.i { color: var(--d-accent); font-size: 18px; margin-top: 1px; }
.trust b { font-size: 13px; font-weight: 600; }
.trust p { margin-top: 3px; max-width: 760px; font-size: 12.5px; line-height: 1.5; color: var(--d-dim); }
.mk.sk { gap: 34px; padding-top: 24px; padding-bottom: 48px; }
.sk-hero { display: flex; flex-direction: column; gap: 22px; }
.art.shero { height: 250px; border-radius: 26px; align-items: flex-end; justify-content: center; padding-bottom: 22px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.sk-id { display: flex; align-items: center; gap: 18px; }
.sk-ico { width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; color: #fff; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); flex: none; }
.sk-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sk-name h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 28px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.sk-name p { font-size: 14px; color: var(--d-dim); }
.sk-name small { font-size: 12px; font-weight: 500; color: var(--d-faint); }
.sk-get { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.sk-get small { font-size: 11.5px; font-weight: 500; color: var(--d-faint); }
.sk-cols { display: flex; align-items: flex-start; gap: 32px; }
.sk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.sk-main section { display: flex; flex-direction: column; gap: 12px; }
.sk-main h5 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin: 0; }
.sk-main h4 { font-size: 18px; font-weight: 600; margin: 0; letter-spacing: 0; }
.sk-promise { font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.sk-out { display: flex; gap: 14px; margin-top: 10px; }
.sk-out > div { flex: 1; min-width: 0; padding: 16px; border-radius: 18px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-edge); display: flex; flex-direction: column; gap: 10px; }
.sk-out span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; color: var(--d-accent); background: rgba(77,155,255,.15); }
.sk-out b { font-size: 14.5px; font-weight: 600; }
.sk-out p { font-size: 12.5px; line-height: 1.45; color: var(--d-dim); margin-top: -4px; }
.sk-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 4px; }
.mcard { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--d-card); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.mtop { height: 118px; display: flex; align-items: flex-end; justify-content: center; background: rgba(255,255,255,.05); }
@supports (background: color-mix(in srgb, red 50%, blue)) { .mtop { background: linear-gradient(color-mix(in srgb, var(--c) 32%, transparent), color-mix(in srgb, var(--c) 8%, transparent)); } }
.mtxt { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.mtxt small { font-size: 11.5px; font-weight: 600; color: var(--c); }
.mtxt b { font-size: 15px; font-weight: 700; }
.mtxt p { flex: 1; font-size: 12.5px; line-height: 1.4; color: var(--d-dim); }
.mtxt span { display: flex; gap: 6px; margin-top: 4px; font-size: 11px; font-weight: 500; color: var(--d-faint); overflow-wrap: anywhere; }
.mtxt span svg.i { font-size: 12px; margin-top: 1px; }
.sk-facts { width: 290px; flex: none; display: flex; flex-direction: column; gap: 18px; }
.fbox { padding: 16px; border-radius: 16px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-edge); display: flex; flex-direction: column; gap: 11px; }
.fbox h6 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--d-faint); margin: 0; }
.fbox p { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.4; color: var(--d-dim); }
.fbox p svg.i { color: var(--d-accent); font-size: 13px; margin-top: 2px; }
.fr { display: flex; align-items: baseline; gap: 10px; font-size: 12.5px; }
.fr span { color: var(--d-faint); }
.fr b { margin-left: auto; font-weight: 500; text-align: right; }

/* running tasks */
.tk { max-width: 860px; margin: 0 auto; padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.tkrow { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 16px; background: var(--d-card); box-shadow: inset 0 0 0 1px transparent; }
.tkrow:hover { box-shadow: inset 0 0 0 1px var(--d-edge); }
.tkrow.off { opacity: .7; }
.tkm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.tkh { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tkh b { font-size: 15px; font-weight: 600; }
.tkh span { font-size: 13px; color: var(--d-dim); }
.tkm p { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkm small { font-size: 12px; color: var(--d-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkchip { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 500; font-style: normal; color: var(--d-dim); background: rgba(245,245,245,.08); }
.tkchip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tkchip.busy { color: var(--d-success); background: rgba(0,186,105,.12); }
.tkchip.wait { color: var(--d-warning); background: rgba(226,134,0,.12); }
.tkchip.off { color: var(--d-faint); }
.tka { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.tkc { font-size: 13px; color: var(--d-dim); font-variant-numeric: tabular-nums; }
.tka > div { display: flex; gap: 6px; }
.tka .pillb svg.i { font-size: 11px; }
.tka [data-stop] svg.i { fill: currentColor; }
.tk-none { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 70px 0; text-align: center; }
.tk-none svg.i { font-size: 34px; stroke-width: 1.1; color: var(--d-dim); }
.tk-none b { font-size: 17px; font-weight: 600; }
.tk-none p { font-size: 13.5px; color: var(--d-dim); }

/* Mochi Memory */
.mem-side { width: 270px; flex: none; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--d-rule); }
.mem-tools { display: flex; align-items: center; gap: 2px; height: 40px; padding: 0 10px; flex: none; }
.mem-tree { flex: 1; overflow-y: auto; padding: 0 8px 16px; display: flex; flex-direction: column; gap: 1px; }
.trow { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; height: 28px; padding-right: 6px; border-radius: 7px; font-size: 13px; color: var(--d-dim); flex: none; }
.trow:hover { background: rgba(29,29,29,.6); }
.trow.on { background: var(--d-selected); color: var(--d-text); }
.trow b { font-weight: 500; color: var(--d-text); }
.trow b, .trow > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow > svg.i { width: 12px; font-size: 12px; color: var(--d-faint); }
.hit { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 6px 10px; border-radius: 8px; flex: none; }
.hit:hover { background: rgba(29,29,29,.6); }
.hit.on { background: var(--d-selected); }
.hit b { font-size: 13px; font-weight: 500; }
.hit small { font-size: 11.5px; color: var(--d-faint); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mem-note { flex: 1; min-width: 0; overflow-y: auto; padding: 8px 48px 48px; }
.mem-note > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.note-top { display: flex; align-items: center; gap: 4px; height: 40px; }
.ncrumb { margin-left: 8px; font-size: 12px; color: var(--d-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-title { font-size: 28px; font-weight: 700; letter-spacing: -.01em; margin-top: 14px; margin-bottom: 12px; }
.props { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--d-rule); font-size: 13px; }
.props div { display: flex; align-items: center; gap: 12px; min-height: 26px; }
.props div span { width: 110px; color: var(--d-faint); }
.props b { font-weight: 400; }
.props button { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; height: 26px; font-size: 12.5px; color: var(--d-faint); }
.props button svg.i { font-size: 11px; }
.note-body { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.55; }
.note-body h4 { font-size: 19px; font-weight: 700; margin: 12px 0 0; letter-spacing: 0; }
.note-body h5 { font-size: 15px; font-weight: 600; margin: 6px 0 0; }
.note-body .li { display: flex; gap: 8px; }
.note-body .li > span:first-child { min-width: 14px; text-align: right; color: var(--d-dim); flex: none; }
.wl { display: inline; color: var(--d-accent); text-decoration: underline; text-decoration-color: rgba(77,155,255,.4); text-underline-offset: 3px; }
.wl.miss { color: var(--d-faint); text-decoration-style: dashed; text-decoration-color: currentColor; }
.tg { display: inline; padding: 1px 7px; border-radius: 99px; font-size: .86em; color: #c4a7ff; background: rgba(169,126,254,.16); }
.backl { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--d-rule); }
.backl h5 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--d-faint); margin: 0 0 4px; }
.backl button { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; margin-left: -8px; border-radius: 7px; font-size: 13.5px; color: var(--d-dim); }
.backl button:hover { background: var(--d-hover); color: var(--d-text); }
.net { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.net-ctl { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 0; }
.net-ctl .pillb[aria-pressed="true"] { background: var(--d-primary); color: var(--d-on-primary); box-shadow: none; }
.net-leg { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 18px 0; }
.net-leg button { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; color: var(--d-dim); background: rgba(245,245,245,.05); }
.net-leg button[aria-pressed="false"] { opacity: .4; }
.net-leg i { width: 8px; height: 8px; border-radius: 50%; }
.net svg { flex: 1; min-height: 0; width: 100%; }
.net .ln line { stroke: rgba(245,245,245,.16); stroke-width: 1; }
.nd { cursor: pointer; }
.win .nd:focus-visible { outline: 0; }
.nd circle { stroke: transparent; stroke-width: 6; }
.nd text { font: 500 11px var(--body); fill: rgba(245,245,245,.66); text-anchor: middle; }
.nd:hover text, .nd:focus-visible text, .nd.on text { fill: #f5f5f5; }
.nd:hover circle, .nd:focus-visible circle { stroke: rgba(245,245,245,.28); }
.nd.on circle { stroke: rgba(77,155,255,.6); }
.nd.gone { cursor: default; }

/* settings */
.set-side { width: 230px; flex: none; padding: 16px 12px; border-right: 1px solid var(--d-rule); display: flex; flex-direction: column; gap: 2px; }
.set-side button { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13.5px; color: var(--d-dim); white-space: nowrap; flex: none; }
.set-side button svg.i { width: 20px; font-size: 15px; }
.set-side button.on { background: var(--d-selected); color: var(--d-text); font-weight: 600; }
.set-side button.on svg.i { color: var(--d-accent); }
.set-main { flex: 1; min-width: 0; overflow-y: auto; padding: 30px 40px 48px; }
.set-in { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.set-in > h3 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.set-in > .expl { margin-bottom: -14px; font-size: 13px; }
.sgroup { display: flex; flex-direction: column; gap: 8px; }
.sgroup > h4 { font-size: 13px; font-weight: 600; color: var(--d-dim); margin: 0; padding-left: 4px; letter-spacing: 0; }
.sbox { padding: 6px 16px; border-radius: 12px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-edge); }
.sfoot { padding: 0 4px; font-size: 12px; line-height: 1.45; color: var(--d-faint); }
.srow { display: flex; align-items: center; gap: 16px; min-height: 44px; padding: 10px 0; border-top: 1px solid var(--d-rule); }
.srow:first-child { border-top: 0; }
.stx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.stx small { font-size: 12px; line-height: 1.4; color: var(--d-faint); }
.stx > span small { margin-left: 4px; font-size: 11px; }
.infob { display: inline-grid; vertical-align: -2px; font-size: 13px; color: var(--d-faint); }
.infob[aria-expanded="true"] { color: var(--d-text); }
.smore { max-width: 480px; padding: 8px 0 2px; font-size: 12.5px; line-height: 1.5; color: var(--d-dim); }
.sfield { width: 240px; max-width: 100%; height: 30px; padding: 0 10px; border-radius: 8px; border: 0; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--d-edge); color: var(--d-text); font-size: 13.5px; outline: 0; }
.sfield::placeholder { color: rgba(245,245,245,.4); }
.sfield:focus-visible { box-shadow: inset 0 0 0 1px var(--d-accent); outline: 0; }
.plogo { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--d-selected); box-shadow: inset 0 0 0 1px var(--d-edge); font-size: 14px; font-weight: 600; flex: none; }
.okdot { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-style: normal; color: var(--d-success); white-space: nowrap; }
.okdot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.splan { padding: 10px 0; border-top: 1px solid var(--d-rule); }
.splan:first-child { border-top: 0; }
.splan h5 { font-size: 12px; font-weight: 600; color: var(--d-faint); margin: 0 0 8px; }
.splan > div { display: flex; gap: 8px; }
.splan .sfield { flex: 1; width: auto; min-width: 0; }

/* documentation */
.gl-side { width: 250px; flex: none; overflow-y: auto; padding: 18px 12px; border-right: 1px solid var(--d-rule); display: flex; flex-direction: column; gap: 1px; }
.grow2 { display: flex; align-items: center; gap: 9px; width: 100%; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; color: var(--d-dim); flex: none; }
.grow2:hover { background: rgba(29,29,29,.6); }
.grow2 svg.i { width: 18px; font-size: 13px; color: var(--d-faint); }
.grow2 span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grow2.on { background: var(--d-selected); color: var(--d-text); font-weight: 600; }
.grow2.on svg.i { color: var(--d-accent); }
.ggroup { display: flex; align-items: center; width: 100%; height: 26px; margin-top: 8px; padding: 0 12px; font-size: 11.5px; font-weight: 600; color: var(--d-faint); flex: none; }
.ggroup span:first-child { flex: 1; }
.gl-main { flex: 1; min-width: 0; overflow-y: auto; }
.gl-in { max-width: 820px; margin: 0 auto; padding: 40px 48px 56px; display: flex; flex-direction: column; gap: 12px; }
.gl-in h3 { font-size: 30px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.gl-in h4 { font-size: 19px; font-weight: 700; margin: 24px 0 0; letter-spacing: 0; }
.glead { font-size: 16px; line-height: 1.45; color: var(--d-dim); }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gcards button { display: flex; flex-direction: column; gap: 10px; min-height: 118px; padding: 14px; border-radius: 14px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-edge); }
.gcards button:hover { background: #292929; }
.gsym { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--d-accent); background: rgba(77,155,255,.13); font-size: 15px; flex: none; }
.gsym.gbig { width: 44px; height: 44px; border-radius: 12px; font-size: 21px; margin-bottom: 6px; }
.gcards b { font-size: 14px; font-weight: 600; }
.gcards p { margin-top: -6px; font-size: 12.5px; line-height: 1.4; color: var(--d-dim); }
.gart ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.gart li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.5; color: var(--d-dim); }
.gart li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--d-accent); }
.glink { align-self: flex-start; margin-top: 14px; font-size: 14px; font-weight: 500; }
.gback { display: none; align-items: center; gap: 6px; align-self: flex-start; margin-bottom: 8px; font-size: 13px; color: var(--d-dim); }

/* popovers, menus, sheets, tour, toast, notification */
.pop { position: absolute; z-index: 30; width: 300px; padding: 18px; border-radius: 14px; background: #1e1e1e; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 20px 60px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 16px; }
.pop h3 { font-size: 16px; font-weight: 600; margin: 0 0 4px; letter-spacing: 0; }
.plan { padding: 12px; border-radius: 12px; background: rgba(35,35,35,.6); display: flex; flex-direction: column; gap: 9px; }
.plan .h { display: flex; align-items: baseline; }
.plan .h b { font-size: 13.5px; font-weight: 600; }
.plan .h small { margin-left: auto; font-size: 11px; color: var(--d-faint); }
.plan .w .r { display: flex; font-size: 12px; color: var(--d-dim); margin-bottom: 5px; }
.plan .w .r b { margin-left: auto; color: var(--d-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.plan .w small { display: block; font-size: 11px; color: var(--d-faint); margin-top: 5px; }
.rmenu { position: absolute; z-index: 30; width: 320px; padding: 8px; border-radius: 14px; background: #1e1e1e; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 20px 60px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 2px; }
.rmenu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 10px; }
.rmenu button:hover, .rmenu button:focus-visible { background: rgba(245,245,245,.07); }
.ri { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(77,155,255,.13); color: var(--d-accent); font-size: 15px; flex: none; }
.rmenu b { display: block; font-size: 13.5px; font-weight: 600; }
.rmenu small { display: block; margin-top: 1px; font-size: 12px; line-height: 1.35; color: var(--d-faint); }
.menu { position: absolute; z-index: 30; min-width: 220px; padding: 5px; border-radius: 10px; background: rgba(40,40,42,.97); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 14px 40px rgba(0,0,0,.6); font-size: 13px; }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 10px 4px 26px; border-radius: 5px; position: relative; min-height: 24px; white-space: nowrap; }
.menu button:hover, .menu button:focus-visible { background: var(--d-accent-fill); color: #fff; outline: 0; }
.menu button svg.i { position: absolute; left: 8px; font-size: 12px; stroke-width: 2.4; }
.menu hr { border: 0; border-top: 1px solid rgba(255,255,255,.1); margin: 5px 8px; }
.menu .danger { color: var(--d-danger); }
.sheet-wrap { position: absolute; inset: 0; z-index: 40; display: grid; place-items: start center; padding-top: 60px; background: rgba(0,0,0,.4); animation: fadeo .18s ease; }
.sheet { width: min(520px, calc(100% - 32px)); max-height: calc(100% - 80px); overflow-y: auto; padding: 22px; border-radius: 14px; background: var(--d-dialog); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 30px 80px rgba(0,0,0,.7); display: flex; flex-direction: column; gap: 14px; font-size: 13.5px; }
.sheet.s-skills { width: min(640px, calc(100% - 32px)); padding: 24px; }
.sheet.s-watchers { width: min(600px, calc(100% - 32px)); }
.sheet .hd { display: flex; align-items: center; gap: 10px; }
.sheet h3 { font-size: 22px; font-weight: 600; margin: 0; letter-spacing: 0; }
.sheet .hd > h3, .sheet .hd > div { flex: 1; min-width: 0; }
.sheet h4 { font-size: 13px; font-weight: 600; color: var(--d-dim); margin: 6px 0 -4px; letter-spacing: 0; }
.cnt { display: inline-block; height: 20px; margin-left: 8px; padding: 0 8px; border-radius: 99px; background: var(--d-card); font-size: 13px; font-weight: 500; line-height: 20px; color: var(--d-dim); vertical-align: 3px; }
.svlist, .sklist { display: flex; flex-direction: column; gap: 6px; min-height: 180px; }
.svrow, .skrow { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 10px; border-radius: 12px; background: var(--d-card); }
.svrow .stx small { color: var(--d-dim); }
.skrow { background: rgba(35,35,35,.55); }
.skrow .stx small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skrow .pillb svg.i { font-size: 10px; stroke-width: 2.4; }
.dotc { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--d-warning); vertical-align: 1px; }
.dotc.ok { background: var(--d-success); }
.addsvc summary { font-size: 13px; color: var(--d-dim); cursor: pointer; }
.addsvc > div { display: flex; gap: 8px; padding-top: 8px; }
.addsvc .sfield { flex: 1; min-width: 0; width: auto; }
.addsvc .sfield:first-child { flex: none; width: 130px; }
.skfilter { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.skb { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; color: var(--d-success); background: rgba(0,186,105,.15); flex: none; }
.skb.claude { color: var(--d-warning); background: rgba(226,134,0,.15); }
.wsym { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--d-accent); background: rgba(77,155,255,.14); font-size: 17px; flex: none; }
.s-watchers h3 { font-size: 18px; font-weight: 700; }
.wempty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 44px 0 34px; border-top: 1px solid var(--d-rule); text-align: center; }
.wempty b { font-size: 15px; font-weight: 600; }
.wempty button { display: flex; align-items: center; gap: 12px; width: min(440px, 100%); min-height: 46px; padding: 6px 14px; border-radius: 12px; background: var(--d-card); box-shadow: inset 0 0 0 1px var(--d-edge); font-size: 13px; text-align: left; }
.wempty button:first-of-type { margin-top: 12px; }
.wempty button span { flex: 1; }
.wempty button svg.i:first-child { color: var(--d-accent); font-size: 15px; }
.wempty button svg.i:last-child { color: var(--d-faint); font-size: 12px; }
.newsl { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--d-dim); }
.newsl b { color: var(--d-text); font-weight: 600; }
.sheet.s-learned { align-items: center; text-align: center; border-radius: 26px; gap: 14px; }
.s-learned h3 { font-size: 22px; font-weight: 700; margin-top: 8px; }
.s-learned .expl { max-width: 400px; font-size: 13.5px; }
.s-learned .pills { justify-content: center; margin-top: 6px; }
.art.arrive { width: 100%; height: 190px; border-radius: 20px; align-items: flex-end; justify-content: center; padding-bottom: 18px; flex: none; }
.art.arrive .troupe { gap: 2px; transform-origin: 50% 100%; }
.art.arrive .troupe .av + .av { margin-left: 0; }
.tour { position: absolute; inset: 0; z-index: 50; overflow: hidden; }
.tour.dim { background: rgba(0,0,0,.55); }
.tour-ring { position: absolute; border-radius: 50%; box-shadow: 0 0 0 2px var(--d-accent), 0 0 0 9999px rgba(0,0,0,.55); pointer-events: none; transition: left .25s, top .25s; }
.tour-card { position: absolute; width: 320px; padding: 18px; border-radius: 16px; background: #1e1e1e; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 20px 60px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 8px; }
.tour-card h3 { font-size: 17px; font-weight: 700; margin: 0; letter-spacing: 0; }
.tour-card p { font-size: 13.5px; line-height: 1.45; color: var(--d-dim); }
.tfoot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.tdots { display: flex; gap: 5px; }
.tdots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(245,245,245,.2); }
.tdots i.on { background: var(--d-accent); }
.tskip { font-size: 12.5px; color: var(--d-faint); white-space: nowrap; }
.tour-card.center { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(360px, calc(100% - 24px)); align-items: center; text-align: center; padding: 26px 24px 20px; }
.tour-card.center .tfoot { align-self: stretch; }
.toast { position: absolute; z-index: 45; left: 50%; bottom: 96px; transform: translateX(-50%); max-width: min(440px, calc(100% - 32px)); padding: 10px 16px; border-radius: 14px; background: rgba(44,44,46,.97); box-shadow: inset 0 0 0 1px var(--d-glass-stroke), 0 14px 40px rgba(0,0,0,.55); font-size: 13px; line-height: 1.45; text-align: center; }
.notif { position: absolute; z-index: 35; right: 14px; top: 12px; width: 340px; max-width: calc(100% - 28px); display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 16px;
  background: rgba(46,46,48,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 16px 50px rgba(0,0,0,.6); animation: slidein .5s cubic-bezier(.16,1,.3,1); text-align: left; cursor: pointer; }
.notif img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.notif b { display: block; font-size: 13px; font-weight: 600; }
.notif span { display: block; font-size: 12.5px; color: rgba(245,245,245,.8); line-height: 1.4; margin-top: 1px; }
.notif small { position: absolute; right: 12px; top: 11px; font-size: 11px; color: var(--d-faint); }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.5); }

/* ---------- stacked layout: phones, and screens too small for the scaled window (the script sets .stacked on <html>) ----------
   The icon bar lies across the top, the chat or a page fills the rest, the right column is a sheet from below. */
.stacked .demo-main { padding-top: 14px; }
.stacked .win-stage { height: auto; display: flex; justify-content: center; }
.stacked .win { position: relative; left: 0; flex: 1; width: auto; max-width: 640px; margin: 0 auto; transform: none; flex-direction: column; height: calc(100svh - 150px); min-height: 540px; max-height: 760px; border-radius: 22px; isolation: auto; }
.stacked .lights { display: none !important; }
.stacked .rail-d { flex-direction: row; justify-content: space-between; gap: 0; width: 100%; height: 52px; padding: 0 10px; border-bottom: 1px solid var(--d-rule); }
.stacked .rail-d .sp { display: none; }
.stacked .rmochi { margin: 0; padding: 2px; }
.stacked .rmochi .av { width: 34px !important; height: 34px !important; }
.stacked .rb { width: 36px; height: 36px; }
.stacked .chat, .stacked .page { border-left: 0; min-height: 0; }
.stacked .chead { padding: 8px 10px 10px; height: 56px; }
.stacked .chead .glass-btn[data-act="nid"] { display: none; }
.stacked .pill-title { max-width: calc(100% - 110px); }
.stacked .pill-title .dstat, .stacked .pill-title .pjob { display: none; }
.stacked .tx { padding: 14px 12px; }
.stacked .bubble { max-width: calc(100% - 40px); font-size: 14.5px; }
.stacked .says { max-width: 100%; font-size: 14.5px; }
.stacked .fpage { width: 180px; height: 108px; }
.stacked .compose { padding: 6px 10px 12px; }
.stacked .capsule textarea { font-size: 16px; }
.stacked .panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 70; width: auto; height: 82svh; border: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.1); }
.stacked .sheet-grip { display: block; width: 36px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.25); margin: 8px auto 0; flex: none; }
.stacked .ptabs { height: 50px; }
.stacked .drawer-wrap { left: 0; top: 52px; }
.stacked .drawer { width: min(100%, 340px); }
.stacked .pop, .stacked .rmenu { position: fixed; left: 16px !important; right: 16px; top: auto !important; bottom: 16px !important; width: auto; z-index: 70; }
.stacked .sheet-wrap { position: fixed; z-index: 70; padding-top: 40px; }
.stacked .sheet { padding: 18px 16px; }
.stacked .sheet .hd { flex-wrap: wrap; }
.stacked .notif { left: 10px; right: 10px; top: 60px; width: auto; }
.stacked .toast { bottom: 84px; }
.stacked .menu { left: 12px !important; }
.stacked .tour-card:not(.center) { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; }
.stacked .phead { flex-wrap: wrap; height: auto; min-height: 52px; padding: 8px 12px; gap: 8px; }
.stacked .ptrail { order: 9; width: 100%; gap: 8px; }
.stacked .ptrail:empty { display: none; }
.stacked .psearch { flex: 1; width: auto !important; }
.stacked .pg.split { flex-direction: column; }
.stacked .mk { padding: 16px 14px 28px; gap: 22px; }
.stacked .art.feat { flex-direction: column; align-items: stretch; height: auto; }
.stacked .feat-txt { align-self: stretch; padding: 22px 18px 0; }
.stacked .feat-txt h3 { font-size: 28px; }
.stacked .art.feat > .troupe, .stacked .art.shero > .troupe { align-self: center; padding: 0; margin: -44px 0 14px; transform: scale(.5); transform-origin: 50% 100%; }
.stacked .art.shero { height: 150px; padding-bottom: 0; }
.stacked .art.shero > .troupe { transform: scale(.44); }
.stacked .art.tart .troupe { transform: scale(.85); transform-origin: 50% 100%; }
.stacked .art.arrive .troupe { transform: scale(.62); }
.stacked .sk-id { flex-wrap: wrap; }
.stacked .sk-name h3 { font-size: 23px; }
.stacked .sk-get { align-items: flex-start; width: 100%; }
.stacked .sk-cols { flex-direction: column; }
.stacked .sk-facts { width: 100%; }
.stacked .sk-out { flex-direction: column; }
.stacked .sk-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stacked .sk-promise { font-size: 24px; }
.stacked .tk { padding: 14px 12px 22px; }
.stacked .tkrow { flex-wrap: wrap; }
.stacked .tka { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; padding-left: 58px; }
.stacked .mem-side { width: auto; max-height: 34%; border-right: 0; border-bottom: 1px solid var(--d-rule); }
.stacked .mem-note { padding: 6px 16px 30px; }
.stacked .note-title { font-size: 23px; }
.stacked .net svg { min-height: 280px; }
.stacked .set-side { flex-direction: row; width: auto; gap: 4px; padding: 8px 10px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--d-rule); scrollbar-width: none; }
.stacked .set-side button { width: auto; }
.stacked .set-main { padding: 18px 14px 30px; }
.stacked .srow { flex-wrap: wrap; gap: 8px 16px; }
.stacked .stx { flex-basis: 60%; }
.stacked .gl-side { display: none; }
.stacked .gl-in { padding: 20px 16px 30px; }
.stacked .gl-in h3 { font-size: 24px; }
.stacked .gback { display: inline-flex; }

@media (prefers-reduced-motion: reduce) {
  .win *, .win *::before, .win *::after { animation: none !important; transition: none !important; }
  /* the step running now is marked without a turning ring */
  .stepl li.cur .smk i { width: 7px; height: 7px; border: 0; background: var(--d-accent); }
}

/* the label above the window, which briefly turns into the "not in this demo" notice. The notice is a dark chip of its
   own, so it reads on a light page as well as on a dark one. */
.demo-label { display: grid; justify-items: center; align-items: center; min-height: 26px; margin: 0 0 12px; }
.demo-label > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; transition: opacity .35s, transform .35s cubic-bezier(.16,1,.3,1); }
.demo-label .lbl-b { opacity: 0; transform: translateY(4px); pointer-events: none; text-transform: none; letter-spacing: 0; font: 500 13px var(--body); color: #f6c076;
  padding: 4px 12px 4px 9px; border-radius: 99px; background: #2a2114; box-shadow: inset 0 0 0 1px rgba(226,134,0,.45); }
.demo-label .lbl-b svg { width: 14px; height: 14px; flex: none; }
.demo-label .lbl-b a { color: #ffd08a; text-decoration: underline; text-underline-offset: 2px; }
.demo-label.warn .lbl-a { opacity: 0; transform: translateY(-4px); }
.demo-label.warn .lbl-b { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .demo-label > span { transition: none; } }
