/* Super Turtle components. Copied from design-system/project/components/bundle.css: edit that file, then copy. */
/* Super Turtle components, comic edition. Loaded after tokens.css; every colour, radius, stroke and space is a token. */

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  background: var(--ground);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }

/* The ink of the ground you stand on. Outlines and hard shadows read --st-line, halftone reads --st-dot.
   A colour block changes both for what is inside it; its own edge and shadow stay in the ink of the ground it sits on. */
.st-on-color { --st-dot: var(--dot-press); color: var(--comic-ink); }
.st-on-color > * { --st-line: var(--comic-ink); }
.st-on-deep { --st-dot: var(--deep-raised); background-color: var(--deep); color: var(--on-deep); }
.st-on-deep > * { --st-line: var(--on-deep); }
:root, [data-theme] { --st-line: var(--ink); --st-dot: var(--dot); }

/* Layout helpers used by the previews */
.st-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; padding: var(--space-5); }
.st-row-end { align-items: flex-end; }
.st-stack { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); }
.st-app { font-family: var(--font-app); font-size: 13px; line-height: 18px; }

/* ---------- Comic lettering ---------- */
.st-title { margin: 0; font-family: var(--font-comic); font-weight: 400; line-height: 0.95; letter-spacing: 0.02em; text-transform: uppercase; }
/* Pop lettering: sun fill, ink outline, a punch drop. For the name and for one headline per view. */
.st-pop { color: var(--sun); -webkit-text-stroke: 0.13em var(--comic-ink); paint-order: stroke fill; text-shadow: 0.07em 0.08em 0 var(--st-pop-drop, var(--punch)); letter-spacing: 0.045em; }
.st-pop-paper { color: var(--paper); }

/* ---------- Halftone and rays: the two printed textures ---------- */
.st-halftone {
  background-color: var(--st-fill, transparent);
  background-image:
    linear-gradient(var(--st-dot-angle, 135deg), transparent 0%, var(--st-fill, transparent) var(--st-dot-fade, 72%)),
    radial-gradient(circle, var(--st-dot) var(--halftone-dot), transparent calc(var(--halftone-dot) + 0.6px)),
    radial-gradient(circle, var(--st-dot) var(--halftone-dot), transparent calc(var(--halftone-dot) + 0.6px));
  background-size: auto, var(--halftone-pitch) var(--halftone-pitch), var(--halftone-pitch) var(--halftone-pitch);
  background-position: 0 0, 0 0, calc(var(--halftone-pitch) / 2) calc(var(--halftone-pitch) / 2);
}
.st-rays {
  background-color: var(--st-fill, var(--sky));
  background-image: repeating-conic-gradient(from var(--st-ray-from, 0deg) at var(--st-ray-x, 50%) var(--st-ray-y, 50%), transparent 0deg 8.8deg, var(--ray) 9deg 17.8deg, transparent 18deg);
}

/* ---------- Icon ---------- */
.st-icon { flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.st-icon .st-icon-dot { fill: currentColor; stroke: none; }

/* ---------- Mascot ---------- */
.st-mascot { display: block; flex: none; max-width: none; user-select: none; -webkit-user-drag: none; }
.st-mascot-badge { position: relative; display: inline-block; flex: none; border: var(--st-badge-line, 3px) solid var(--comic-ink); border-radius: 50%; overflow: hidden; --st-fill: var(--sky); --st-ray-y: 62%; }
.st-mascot-badge .st-mascot { position: absolute; left: -9%; top: -3%; width: 122%; height: auto; }

/* ---------- Shell icon: one vault, in its colour ---------- */
.st-shellicon { display: block; flex: none; overflow: visible; }
.st-si-ink { stroke: var(--on-shell); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.st-si-dome-fill { fill: var(--st-shell, var(--shell-sage)); }
.st-si-rim { fill: var(--st-shell-deep, var(--shell-sage-deep)); }
.st-si-shade { fill: var(--st-shell-deep, var(--shell-sage-deep)); opacity: 0.38; }
.st-si-seam { fill: none; stroke: var(--st-shell-deep, var(--shell-sage-deep)); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.st-si-shine { fill: none; stroke: var(--paper); stroke-opacity: 0.6; stroke-width: 3.5; stroke-linecap: round; }
.st-si-key { fill: var(--on-shell); }
.st-si-glow { fill: var(--sun); }
.st-si-paper { fill: var(--paper); }
.st-si-rule { fill: none; stroke: var(--on-shell); stroke-width: 1.6; stroke-linecap: round; }
.st-si-pop { fill: none; stroke: var(--st-line); stroke-width: 3; stroke-linecap: round; }
.st-si-dome { transform-origin: 104px 68px; transition: transform 0.22s cubic-bezier(0.3, 1.5, 0.5, 1); }
.st-si-inside, .st-si-pop { opacity: 0; transition: opacity 0.12s linear; }
.st-si-key { transition: opacity 0.12s linear; }
.st-shellicon-open .st-si-dome { transform: rotate(17deg); }
.st-shellicon-open .st-si-inside, .st-shellicon-open .st-si-pop { opacity: 1; }
.st-shellicon-open .st-si-key { opacity: 0; }
.st-shellicon-sm .st-si-ink { stroke-width: 7; }
.st-shellicon-sm .st-si-detail { display: none; }
.st-shellicon-sm .st-si-pop { stroke-width: 6; }
.st-shellicon-sm .st-si-inside { display: none; }
.st-shellicon-sm.st-shellicon-open .st-si-dome { transform: none; }
@media (prefers-reduced-motion: reduce) { .st-si-dome { transition: none; } }

/* ---------- Logo ---------- */
.st-logo { display: inline-flex; align-items: center; gap: 0.3em; font-family: var(--font-comic); font-weight: 400; font-size: 28px; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; color: inherit; white-space: nowrap; }
.st-logo-word { padding-right: 0.1em; }
.st-logo-pop .st-logo-word { color: var(--sun); -webkit-text-stroke: 0.14em var(--comic-ink); paint-order: stroke fill; text-shadow: 0.07em 0.08em 0 var(--punch); letter-spacing: 0.06em; }

/* ---------- App icon ---------- */
.st-appicon { position: relative; display: inline-block; flex: none; border-radius: 22.5%; overflow: hidden; --st-fill: var(--sky); --st-ray-y: 58%; }
.st-appicon .st-mascot { position: absolute; height: auto; }
.st-appicon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 var(--st-appicon-line, 4px) var(--comic-ink); pointer-events: none; }
.st-appicon-fly .st-mascot { left: -7%; top: 18%; width: 114%; }
.st-appicon-bust .st-mascot { left: -11%; top: -5%; width: 124%; }
.st-appicon-face .st-mascot { left: -12%; top: -8%; width: 126%; }

/* ---------- Button ---------- */
.st-btn {
  appearance: none; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  border: var(--stroke-sm) solid var(--st-line); border-radius: var(--radius-sm); box-shadow: 2px 2px 0 var(--st-line);
  font-family: var(--font-comic); font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s, background-color 0.12s;
}
.st-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--st-line); }
.st-btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--st-line); }
.st-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.st-btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.st-btn-sm { height: var(--control-sm); padding: 1px var(--space-3) 0; font-size: 14px; line-height: 1; gap: 6px; }
.st-btn-md { height: var(--control-md); padding: 1px var(--space-4) 0; font-size: 16px; line-height: 1; }
.st-btn-lg { height: var(--control-lg); padding: 2px var(--space-5) 0; border-width: var(--stroke-md); box-shadow: 4px 4px 0 var(--st-line); font-size: 21px; line-height: 1; }
.st-btn-xl { height: var(--control-xl); padding: 2px var(--space-6) 0; border-width: var(--stroke-md); border-radius: var(--radius-md); box-shadow: 5px 5px 0 var(--st-line); font-size: 28px; line-height: 1; gap: var(--space-3); }
.st-btn-lg:hover { box-shadow: 5px 5px 0 var(--st-line); }
.st-btn-xl:hover { box-shadow: 6px 6px 0 var(--st-line); }
.st-btn-lg:active, .st-btn-xl:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--st-line); }
.st-btn-primary { background: var(--brand); border-color: var(--comic-ink); color: var(--on-brand); }
.st-btn-highlight { background: var(--sun); border-color: var(--comic-ink); color: var(--on-sun); }
.st-btn-punch { background: var(--punch); border-color: var(--comic-ink); color: var(--on-punch); }
.st-btn-secondary { background: var(--surface); color: var(--ink); }
.st-btn-secondary:hover { background: var(--surface-sunk); }
.st-btn-quiet { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink); }
.st-btn-quiet:hover { background: var(--surface-sunk); box-shadow: none; transform: none; }
.st-btn-quiet:active { transform: translate(1px, 1px); }
.st-btn-on-deep { background: transparent; border-color: var(--on-deep); box-shadow: 4px 4px 0 var(--on-deep); color: var(--on-deep); }
.st-btn-on-deep:hover { background: var(--deep-raised); }

/* ---------- Caption box: the narrator ---------- */
.st-caption { display: inline-block; padding: 5px 10px 3px; border: var(--stroke-sm) solid var(--comic-ink); background: var(--sun); color: var(--on-sun); box-shadow: 2px 2px 0 var(--st-line); font: 400 16px/1.1 var(--font-comic); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.st-caption-sm { padding: 3px 7px 2px; font-size: 13px; box-shadow: none; }
.st-caption-lg { padding: 8px 14px 5px; border-width: var(--stroke-md); box-shadow: 3px 3px 0 var(--st-line); font-size: 22px; }
.st-caption-paper { background: var(--paper); color: var(--comic-ink); }
.st-caption-punch { background: var(--punch); color: var(--on-punch); }
.st-caption-brand { background: var(--brand); color: var(--on-brand); }
.st-caption-ink { background: var(--comic-ink); color: var(--paper); }
.st-caption-tilt { transform: rotate(-2deg); }

/* ---------- Speech balloon: someone talking ---------- */
.st-balloon { --st-b: var(--stroke-md); position: relative; display: inline-block; max-width: 420px; padding: 0.72em 1em 0.76em; border: var(--st-b) solid var(--comic-ink); border-radius: var(--radius-xl); background: var(--paper); color: var(--comic-ink); font-family: var(--font-display); font-size: 22px; line-height: 1.22; font-weight: 700; letter-spacing: -0.005em; text-align: left; }
.st-balloon-sm { --st-b: var(--stroke-sm); padding: 0.6em 0.9em 0.64em; border-radius: var(--radius-lg); font-size: 15px; }
.st-balloon-lg { font-size: 30px; }
.st-balloon-shout { font-family: var(--font-comic); font-weight: 400; font-size: 1.5em; line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; }
.st-balloon-whisper { border-style: dashed; font-weight: 500; }
.st-balloon-tail { position: absolute; top: 100%; left: 1.5em; width: 1.5em; height: 1.4em; overflow: visible; fill: var(--paper); stroke: var(--comic-ink); stroke-width: var(--st-b); stroke-linejoin: round; stroke-linecap: butt; }
.st-balloon-tail path { vector-effect: non-scaling-stroke; }
.st-balloon-tail-right .st-balloon-tail { left: auto; right: 1.5em; transform: scaleX(-1); }
.st-balloon-tail-up .st-balloon-tail { top: auto; bottom: 100%; transform: scaleY(-1); }
.st-balloon-tail-up.st-balloon-tail-right .st-balloon-tail { transform: scale(-1, -1); }

/* ---------- Burst: one loud word ---------- */
.st-burst { position: relative; display: inline-grid; place-items: center; flex: none; aspect-ratio: 1.25; color: var(--on-sun); font-family: var(--font-comic); font-weight: 400; line-height: 0.95; letter-spacing: 0.03em; text-transform: uppercase; text-align: center; }
.st-burst-shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: var(--sun); stroke: var(--comic-ink); stroke-width: var(--stroke-md); stroke-linejoin: round; filter: drop-shadow(3px 3px 0 var(--st-line)); }
.st-burst-shape polygon { vector-effect: non-scaling-stroke; }
.st-burst-text { position: relative; max-width: 66%; }
.st-burst-punch { color: var(--on-punch); }
.st-burst-punch .st-burst-shape { fill: var(--punch); }
.st-burst-brand { color: var(--on-brand); }
.st-burst-brand .st-burst-shape { fill: var(--brand); }
.st-burst-paper { color: var(--comic-ink); }
.st-burst-paper .st-burst-shape { fill: var(--paper); }
.st-burst-sky { color: var(--comic-ink); }
.st-burst-sky .st-burst-shape { fill: var(--sky); }

/* ---------- Panel: one frame of the page ---------- */
.st-panel { position: relative; border: var(--stroke-md) solid var(--st-panel-line, var(--st-line)); border-radius: var(--radius-md); --st-fill: var(--surface); background-color: var(--st-fill); color: var(--ink); }
.st-panel-shadow { box-shadow: 6px 6px 0 var(--st-panel-line, var(--st-line)); }
.st-panel-clip { overflow: hidden; }
.st-panel-ground { --st-fill: var(--ground); }
.st-panel-sunk { --st-fill: var(--surface-sunk); }
.st-panel-sun { --st-fill: var(--sun); }
.st-panel-sky { --st-fill: var(--sky); }
.st-panel-brand { --st-fill: var(--brand); }
.st-panel-punch { --st-fill: var(--punch); }
.st-panel-shell { --st-fill: var(--st-shell-soft); }
.st-panel-deep { --st-fill: var(--deep); }
.st-panel.st-on-color { color: var(--comic-ink); }
.st-panel-punch.st-on-color { color: var(--on-punch); }
.st-panel.st-on-deep { color: var(--on-deep); }
/* a bright panel keeps its printed black edge in both themes; a deep panel takes the ink of the page */
.st-panel.st-on-color { border-color: var(--st-panel-line, var(--comic-ink)); }

/* ---------- Lock state: a rubber stamp ---------- */
.st-lock { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 1px 9px 0 7px; border: var(--stroke-sm) solid var(--st-line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 400 14px/1 var(--font-comic); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; transform: rotate(-2deg); }
.st-lock-open { border-color: var(--comic-ink); background: var(--brand); color: var(--on-brand); }

/* ---------- Shell card ---------- */
.st-shell { display: flex; flex-direction: column; width: 240px; border: var(--stroke-md) solid var(--st-line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: 4px 4px 0 var(--st-line); overflow: hidden; text-align: left; transition: transform 0.1s, box-shadow 0.1s; }
.st-shell-selected { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--st-line); }
.st-shell-stage { display: grid; place-items: center; height: 136px; border-bottom: var(--stroke-md) solid var(--st-line); --st-fill: var(--st-shell-soft); --st-dot-angle: 200deg; }
.st-shell-body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); }
.st-shell-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.st-shell-name { margin: 0; font: 400 26px/1 var(--font-comic); letter-spacing: 0.03em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-shell-meta { display: flex; align-items: center; gap: var(--space-1); margin: var(--space-1) 0 0; font: 500 11px/14px var(--font-app); color: var(--ink-muted); }
.st-shell .st-btn { width: 100%; }

/* ---------- Shell colour picker ---------- */
.st-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); margin: 0; padding: 0; border: 0; min-width: 0; }
.st-swatch { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: var(--space-2) var(--space-1) 6px; border: var(--stroke-sm) solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--ink-muted); font: 500 11px/14px var(--font-app); cursor: pointer; }
.st-swatch:hover { background: var(--surface-sunk); }
.st-swatch:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.st-swatch[aria-checked="true"] { border-color: var(--st-line); background: var(--st-shell-soft); box-shadow: 2px 2px 0 var(--st-line); color: var(--ink); font-weight: 700; }

/* ---------- Text field ---------- */
.st-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-field-label { font: 400 18px/1.1 var(--font-comic); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.st-input { width: 100%; height: var(--control-lg); padding: 0 var(--space-4); border: var(--stroke-sm) solid var(--st-line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 400 16px/24px var(--font-sans); }
textarea.st-input { height: auto; min-height: 120px; padding: var(--space-3) var(--space-4); resize: vertical; }
.st-input::placeholder { color: var(--ink-muted); opacity: 1; }
.st-input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.st-field-hint { display: flex; align-items: center; gap: 6px; font: 500 14px/20px var(--font-sans); color: var(--ink-muted); }
.st-field-error .st-input { border-color: var(--danger); background: var(--danger-soft); }
.st-field-error .st-field-hint { color: var(--danger); font-weight: 700; }
.st-field-app .st-field-label { font-size: 15px; }
.st-field-app .st-input { height: var(--control-md); padding: 0 var(--space-3); font: 400 13px/18px var(--font-app); }
.st-field-app .st-field-hint { font: 500 11px/14px var(--font-app); }
.st-field-app.st-field-error .st-field-hint { font-weight: 600; }

/* ---------- Search field ---------- */
.st-search { display: flex; align-items: center; gap: var(--space-2); height: var(--control-sm); min-width: 200px; padding: 0 6px 0 var(--space-3); border: var(--stroke-sm) solid var(--st-line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: 400 13px/18px var(--font-app); }
.st-search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.st-search input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
.st-search input::placeholder { color: var(--ink-muted); opacity: 1; }
.st-kbd { padding: 0 6px; border-radius: var(--radius-pill); background: var(--surface-sunk); font: 600 11px/16px var(--font-app); color: var(--ink-muted); }

/* ---------- Sidebar item ---------- */
.st-side { display: flex; align-items: center; gap: var(--space-2); width: 100%; height: 30px; padding: 0 var(--space-2); border: var(--stroke-sm) solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--ink); font: 400 13px/18px var(--font-app); text-align: left; cursor: pointer; }
.st-side:hover { background: var(--surface); }
.st-side:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.st-side .st-icon { color: var(--ink-muted); }
.st-side[aria-current="true"] { border-color: var(--comic-ink); background: var(--brand); box-shadow: 2px 2px 0 var(--st-line); color: var(--on-brand); font-weight: 700; }
.st-side[aria-current="true"] .st-icon, .st-side[aria-current="true"] .st-side-count { color: var(--on-brand); }
.st-side-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-side-count { font: 600 11px/14px var(--font-app); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.st-side-heading { align-self: flex-start; margin: var(--space-1) 0 var(--space-2) 2px; padding: 3px 7px 2px; border: var(--stroke-sm) solid var(--comic-ink); background: var(--sun); color: var(--on-sun); font: 400 13px/1.1 var(--font-comic); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Document row ---------- */
.st-doc { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-3); padding: 6px var(--space-3) 6px var(--space-2); border: var(--stroke-sm) solid transparent; border-radius: var(--radius-sm); color: var(--ink); font: 400 13px/18px var(--font-app); cursor: default; }
.st-doc:hover { background: var(--surface-sunk); }
.st-doc[aria-selected="true"] { border-color: var(--st-line); background: var(--brand-soft); box-shadow: 2px 2px 0 var(--st-line); }
.st-doc-thumb { position: relative; display: block; width: 30px; height: 38px; border: var(--stroke-sm) solid var(--comic-ink); border-radius: 4px; background: var(--paper); overflow: hidden; }
.st-doc-thumb::before { content: ""; position: absolute; left: 4px; right: 8px; top: 5px; height: 8px; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.st-doc-kind { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0 1px; border-top: var(--stroke-sm) solid var(--comic-ink); background: var(--shell-stone); color: var(--on-shell); font: 800 8px/1 var(--font-app); letter-spacing: 0.03em; text-align: center; }
.st-doc-kind-pdf { background: var(--shell-coral); }
.st-doc-kind-img { background: var(--shell-sky); }
.st-doc-kind-doc { background: var(--shell-lagoon); }
.st-doc-text { min-width: 0; }
.st-doc-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-doc-path { display: flex; align-items: center; gap: 3px; font: 500 11px/14px var(--font-app); color: var(--ink-muted); }
.st-doc-meta { font: 500 11px/14px var(--font-app); color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Notice ---------- */
.st-notice { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: var(--stroke-sm) solid var(--st-line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: 3px 3px 0 var(--st-line); color: var(--ink); font: 400 14px/20px var(--font-sans); }
.st-notice-icon { margin-top: 1px; color: var(--ink); }
.st-notice-text { flex: 1; min-width: 0; }
.st-notice-title { display: block; font: 400 18px/1.15 var(--font-comic); letter-spacing: 0.04em; text-transform: uppercase; }
.st-notice-action { align-self: center; }
.st-notice-positive { background: var(--positive-soft); }
.st-notice-positive .st-notice-icon { color: var(--positive); }
.st-notice-danger { background: var(--danger-soft); }
.st-notice-danger .st-notice-icon { color: var(--danger); }
.st-notice-warning { background: var(--sun-soft); }
.st-app .st-notice, .st-window .st-notice { padding: var(--space-2) var(--space-3); box-shadow: 2px 2px 0 var(--st-line); font: 400 13px/18px var(--font-app); }
.st-app .st-notice-title, .st-window .st-notice-title { font-size: 16px; }

/* ---------- Progress ---------- */
.st-progress { display: flex; flex-direction: column; gap: var(--space-2); font: 400 13px/18px var(--font-app); color: var(--ink); }
.st-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.st-progress-label { font: 400 16px/1.1 var(--font-comic); letter-spacing: 0.05em; text-transform: uppercase; }
.st-progress-detail { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.st-progress-track { height: 16px; border: var(--stroke-sm) solid var(--st-line); border-radius: var(--radius-pill); background: var(--surface); overflow: hidden; }
.st-progress-bar { height: 100%; border-right: var(--stroke-sm) solid var(--comic-ink); background-color: var(--brand); background-image: repeating-linear-gradient(-55deg, transparent 0 7px, var(--ray) 7px 14px); transition: width 0.2s ease-out; }

/* ---------- Empty state ---------- */
.st-empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-6); text-align: center; }
.st-empty-art { position: relative; flex: none; margin-bottom: var(--space-3); }
.st-empty-disc { position: absolute; left: 50%; top: 50%; height: 100%; aspect-ratio: 1; transform: translate(-50%, -50%); border: var(--stroke-md) solid var(--comic-ink); border-radius: 50%; --st-fill: var(--sky); --st-ray-y: 60%; box-shadow: 4px 4px 0 var(--st-line); }
.st-empty-art .st-mascot { position: absolute; left: 0; top: 50%; transform: translateY(-50%) rotate(-4deg); }
.st-empty-shell { display: grid; place-items: center; border: var(--stroke-md) solid var(--st-line); border-radius: var(--radius-lg); --st-fill: var(--st-shell-soft); --st-dot-angle: 200deg; box-shadow: 4px 4px 0 var(--st-line); }
.st-empty-title { margin: var(--space-2) 0 0; font: 400 32px/1 var(--font-comic); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); }
.st-empty-body { margin: 0; max-width: 340px; font: 400 13px/18px var(--font-app); color: var(--ink-muted); }
.st-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-4); }

/* ---------- Mac window ---------- */
.st-window { display: flex; flex-direction: column; border: var(--stroke-md) solid var(--st-line); border-radius: var(--radius-md); background: var(--ground); color: var(--ink); box-shadow: 8px 8px 0 var(--st-line); overflow: hidden; font: 400 13px/18px var(--font-app); text-align: left; }
.st-window-flat { box-shadow: none; }
.st-window-bar { display: flex; flex: none; align-items: center; gap: var(--space-3); height: var(--toolbar-height); padding: 0 var(--space-4); border-bottom: var(--stroke-sm) solid var(--st-line); background: var(--ground); }
.st-window-lights { display: flex; gap: 7px; margin-right: var(--space-2); }
.st-window-lights i { display: block; width: 13px; height: 13px; border: 1.5px solid var(--comic-ink); border-radius: 50%; }
.st-window-lights i:nth-child(1) { background: #ff5f57; }
.st-window-lights i:nth-child(2) { background: #febc2e; }
.st-window-lights i:nth-child(3) { background: #28c840; }
.st-window-title { display: flex; align-items: center; gap: var(--space-2); min-width: 0; font: 400 22px/1 var(--font-comic); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.st-window-tools { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; padding-right: 2px; }
.st-window-main { display: flex; flex: 1; min-height: 0; }
.st-window-side { display: flex; flex: none; flex-direction: column; gap: 2px; width: var(--sidebar-width); padding: var(--space-3) var(--space-2); border-right: var(--stroke-sm) solid var(--st-line); --st-fill: var(--surface-sunk); --st-dot-angle: 20deg; --st-dot-fade: 60%; overflow: auto; }
.st-window-content { position: relative; flex: 1; min-width: 0; background: var(--surface); overflow: auto; }

/* ---------- Document preview ---------- */
.st-preview { display: flex; flex-direction: column; border: var(--stroke-sm) solid var(--st-line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 4px 4px 0 var(--st-line); overflow: hidden; font: 400 13px/18px var(--font-app); color: var(--ink); }
.st-preview-bar { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3); border-bottom: var(--stroke-sm) solid var(--st-line); }
.st-preview-name { flex: 1; min-width: 0; font: 600 15px/20px var(--font-app); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-preview-stage { flex: 1; display: grid; place-items: center; padding: var(--space-5) var(--space-4); --st-fill: var(--surface-sunk); --st-dot-angle: 315deg; }
.st-paper { display: flex; flex-direction: column; gap: 7px; width: 100%; max-width: 230px; aspect-ratio: 0.72; padding: 9% 10%; border: var(--stroke-sm) solid var(--comic-ink); border-radius: 3px; background: var(--paper); box-shadow: 4px 4px 0 var(--st-line); transform: rotate(-1.5deg); }
.st-paper i { display: block; height: 5px; border-radius: 3px; background: #d9d3c5; }
.st-paper i.st-paper-title { width: 58%; height: 9px; margin-bottom: 6px; background: var(--comic-ink); }
.st-paper i.st-paper-short { width: 64%; }
.st-paper-sign { margin-top: auto; }
.st-paper-sign svg { display: block; width: 62%; height: auto; fill: none; stroke: #1a5fb4; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.st-paper-sign i { width: 70%; height: 2px; margin-top: 2px; background: var(--comic-ink); }

/* ---------- Vault window (the unlocked shell) ---------- */
.st-vault-head { display: flex; align-items: baseline; gap: var(--space-3); padding: var(--space-4) var(--space-4) var(--space-2) var(--space-5); }
.st-vault-folder { margin: 0; font: 400 26px/1 var(--font-comic); letter-spacing: 0.03em; text-transform: uppercase; }
.st-vault-count { font: 500 11px/14px var(--font-app); color: var(--ink-muted); }
.st-vault-list { display: flex; flex-direction: column; gap: 3px; padding: 0 var(--space-4) var(--space-4) var(--space-3); }
.st-vault-notice { padding: var(--space-3) var(--space-4) 0 var(--space-3); }
.st-vault-split { display: flex; height: 100%; }
.st-vault-split > :first-child { flex: 1; min-width: 0; overflow: auto; }
.st-vault-split .st-preview { flex: none; width: 44%; margin: var(--space-3) var(--space-4) var(--space-4) var(--space-1); }
.st-vault-foot { margin-top: auto; padding-top: var(--space-2); }
