/* Shape app shell (HOLE · Shape · Projects), local. Last updated: 2026-10-26.
   Paper & Glass tokens, glass navigation and Lamplight come from the website shell (WEBSITE_2026-10-22/app.css);
   glass is for navigation and controls only. */
:root {
  --ui: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --serif: "Newsreader", "New York", ui-serif, Georgia, serif;
  --radius: 18px; --radius-sm: 12px; --ease: cubic-bezier(.2, .8, .2, 1);
  --bg: #f5f0e6; --paper: #fbf8f2; --raised: #fffdf8; --ink: #1d1b18; --ink-2: #5a544b; --ink-3: #847c70;
  --line: rgba(40, 30, 15, .1); --line-2: rgba(40, 30, 15, .18);
  --accent: #1d1b18; --on-accent: #fbf8f2; --gap: #d9a521; --gap-wash: rgba(232, 182, 47, .1);
  --ok: #3d7a4f; --warn: #b4542d; --ai: #6b6fb3;
  --glass-bg: rgba(253, 250, 244, .62); --glass-edge: rgba(255, 255, 255, .75); --glass-hi: rgba(255, 255, 255, .9); --glass-shadow: rgba(60, 40, 10, .08);
  --page-shadow: 0 1px 2px rgba(60, 40, 10, .05), 0 12px 40px rgba(60, 40, 10, .06);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #17130f; --paper: #211c17; --raised: #2a241d; --ink: #efe7d8; --ink-2: #bcb19f; --ink-3: #8c8170;
  --line: rgba(255, 230, 190, .1); --line-2: rgba(255, 230, 190, .2);
  --accent: #f0c35a; --on-accent: #1d1710; --gap: #f0c35a; --gap-wash: rgba(240, 195, 90, .08);
  --ok: #8fd19e; --warn: #f0a07a; --ai: #a9acec;
  --glass-bg: rgba(44, 37, 30, .58); --glass-edge: rgba(255, 235, 200, .12); --glass-hi: rgba(255, 240, 210, .1); --glass-shadow: rgba(0, 0, 0, .4);
  --page-shadow: 0 0 0 1px rgba(255, 230, 190, .05), 0 30px 80px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17130f; --paper: #211c17; --raised: #2a241d; --ink: #efe7d8; --ink-2: #bcb19f; --ink-3: #8c8170;
    --line: rgba(255, 230, 190, .1); --line-2: rgba(255, 230, 190, .2);
    --accent: #f0c35a; --on-accent: #1d1710; --gap: #f0c35a; --gap-wash: rgba(240, 195, 90, .08);
    --ok: #8fd19e; --warn: #f0a07a; --ai: #a9acec;
    --glass-bg: rgba(44, 37, 30, .58); --glass-edge: rgba(255, 235, 200, .12); --glass-hi: rgba(255, 240, 210, .1); --glass-shadow: rgba(0, 0, 0, .4);
    --page-shadow: 0 0 0 1px rgba(255, 230, 190, .05), 0 30px 80px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: clip; padding-bottom: 110px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
svg { stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { margin: 0; font: 600 11px/1.3 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-3); }
.fine { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }
.glass { background: var(--glass-bg); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi), 0 10px 30px var(--glass-shadow); }
@media (prefers-reduced-transparency: reduce) { .glass { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px 24px; max-width: 1280px; margin: 0 auto; }
.topbar::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; pointer-events: none; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); -webkit-mask: linear-gradient(#000 75%, transparent); mask: linear-gradient(#000 75%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 17px/1 var(--ui); justify-self: start; }
.brand .mark { width: 24px; height: 24px; stroke: none; fill: currentColor; }
.top-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.local-label { margin: 0; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.lamp { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.lamp svg { width: 19px; height: 19px; }
.lamp .i-sun { display: none; } :root[data-theme="dark"] .lamp .i-sun { display: block; } :root[data-theme="dark"] .lamp .i-moon { display: none; }
.places { display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.place { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 8px 16px; min-height: 40px; border-radius: 999px; color: var(--ink-2); font-weight: 500; transition: background .25s, color .25s; }
.place svg { width: 18px; height: 18px; }
.place[aria-current="page"] { background: var(--raised); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.place .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--gap); color: #1d1710; font-size: 11px; display: inline-grid; place-items: center; }
.tabbar { display: none; }

/* views */
.view { max-width: 820px; margin: 0 auto; padding: 28px 24px; }
.view.wide { max-width: 1180px; }
.place-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.place-head h1 { margin: 6px 0 4px; font: 400 clamp(30px, 5vw, 44px)/1.1 var(--serif); letter-spacing: -.02em; }
.place-head .sub { margin: 0; color: var(--ink-2); font: 400 17px/1.45 var(--serif); }
.btn { border: 1px solid var(--line-2); background: var(--paper); border-radius: 999px; padding: 8px 14px; min-height: 38px; font-size: 14px; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { border: 0; background: var(--accent); color: var(--on-accent); }
.btn.small { padding: 4px 10px; min-height: 30px; font-size: 12.5px; }
.btn.quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
.linkish { border: 0; background: none; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.chip.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.chip.fixture { color: var(--gap); border-color: var(--gap); font-weight: 600; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.empty { color: var(--ink-3); font-size: 14px; padding: 18px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }
.label-note { font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.label-note b { color: var(--ink-2); font-weight: 600; }

/* HOLE */
.capture { background: var(--paper); border-radius: var(--radius); box-shadow: var(--page-shadow); padding: 16px 18px; }
.capture textarea { width: 100%; border: 0; background: transparent; resize: vertical; font: 400 19px/1.55 var(--serif); min-height: 90px; }
.capture textarea:focus-visible { outline: none; }
.capture:focus-within { box-shadow: var(--page-shadow), 0 0 0 2px var(--accent); }
.capture-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.capture-row .opts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
select.sel { border: 1px solid var(--line-2); background: var(--paper); border-radius: 999px; padding: 6px 10px; min-height: 36px; font-size: 13px; max-width: 220px; }
.filters { display: flex; gap: 4px; flex-wrap: wrap; margin: 22px 0 10px; }
.filters button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 4px 12px; min-height: 32px; font-size: 13px; color: var(--ink-2); }
.filters button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.captures { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cap { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper); }
.cap.archived { opacity: .55; }
.cap-text { margin: 0; font: 400 16.5px/1.5 var(--serif); white-space: pre-wrap; overflow-wrap: anywhere; }
.cap-text.clip { max-height: 7.5em; overflow: hidden; -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); }
.cap-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.cap-meta .grow { flex: 1; }
.cap a { color: var(--ink); overflow-wrap: anywhere; }
.suggest { margin-top: 18px; border: 1px solid var(--gap); background: var(--gap-wash); border-radius: var(--radius); padding: 14px 16px; }
.suggest ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.suggest li { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; background: var(--paper); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; }
.suggest li .why { display: block; color: var(--ink-3); font-size: 12px; }
.suggest .preview { flex-basis: 100%; font-size: 12.5px; color: var(--ink-2); border-left: 2px solid var(--gap); padding-left: 10px; }

/* Projects */
.new-proj { display: flex; gap: 8px; margin: 0 0 16px; }
.new-proj input { flex: 1; min-width: 0; border: 1px solid var(--line-2); background: var(--paper); border-radius: 999px; padding: 8px 14px; min-height: 40px; }
.project-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.project { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 14px 16px; }
.project:hover { border-color: var(--ink-3); }
.project[aria-current="true"] { border-color: var(--ink); }
.project .poly { width: 44px; height: 44px; }
.project b { display: block; font: 500 19px/1.3 var(--serif); }
.project small { color: var(--ink-3); font-size: 13px; display: block; }
.project .chips { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.vault { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 12px; }
.vault > summary, .seeds > summary { cursor: pointer; font-weight: 500; min-height: 44px; display: flex; align-items: center; gap: 6px; list-style: none; }
.vault > summary::-webkit-details-marker, .seeds > summary::-webkit-details-marker { display: none; }
.vault > summary::before, .seeds > summary::before { content: "▸"; color: var(--ink-3); transition: transform .2s; }
.vault[open] > summary::before, .seeds[open] > summary::before { transform: rotate(90deg); }
.seeds { margin: 10px 0 0 12px; }
.row-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.row-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.row-list li small { display: block; color: var(--ink-3); }
.row-list .acts { display: flex; gap: 4px; flex-wrap: wrap; }

/* project detail */
.detail { margin-top: 18px; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.detail-head h2 { margin: 0; font: 400 30px/1.15 var(--serif); outline: none; border-radius: 6px; padding: 0 4px; margin-left: -4px; }
.detail-head h2:focus { box-shadow: inset 0 -2px 0 var(--gap); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; margin-top: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.field textarea, .field input { border: 1px solid var(--line-2); background: var(--raised); border-radius: var(--radius-sm); padding: 9px 12px; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; font: 400 15.5px/1.5 var(--serif); }
.next-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px; }
.decisions { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.decisions li { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding: 8px 10px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); }
.decisions li small { color: var(--ink-3); white-space: nowrap; }
.shape-slot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--raised); margin-bottom: 8px; }
.shape-slot b { font: 500 16px/1.3 var(--serif); }
.shape-slot small { display: block; color: var(--ink-3); font-size: 12.5px; }

/* chat */
.chat { margin-top: 26px; }
.chat-log { display: grid; gap: 10px; margin: 10px 0; }
.msg { padding: 10px 14px; border-radius: 14px; font-size: 14.5px; white-space: pre-wrap; }
.msg.me { background: var(--raised); border: 1px solid var(--line); justify-self: end; max-width: 85%; }
.msg.claude { background: var(--paper); border: 1px solid var(--line); }
.msg .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; white-space: normal; }
.chat-form { display: flex; gap: 8px; }
.chat-form textarea { flex: 1; min-height: 44px; border: 1px solid var(--line-2); background: var(--paper); border-radius: 16px; padding: 10px 14px; resize: vertical; }

/* Shape (workspaces) */
.shapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.shape-card { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; align-content: start; }
.shape-card h3 { margin: 0; font: 400 24px/1.2 var(--serif); }
.shape-card p { margin: 0; color: var(--ink-2); font-size: 14px; }
.story-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; }
.story-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.entry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 6px; }
.entry button { text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 14px 16px; }
.entry b { display: block; font: 500 17px/1.3 var(--serif); }
.entry small { color: var(--ink-3); font-size: 12.5px; }

/* toast with Undo */
.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 8px); z-index: 50; margin: 0; max-width: min(560px, calc(100% - 32px)); padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; display: flex; gap: 10px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { border: 0; border-radius: 999px; padding: 4px 12px; background: rgba(127,127,127,.3); color: inherit; font-weight: 600; }

@media (max-width: 760px) {
  body { padding-bottom: 150px; }
  .topbar { grid-template-columns: 1fr auto; padding: 10px 16px; }
  .topbar .places, .local-label { display: none; }
  .tabbar { display: flex; position: fixed; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 40; gap: 2px; padding: 4px; border-radius: 999px; }
  .tabbar .place { flex-direction: column; gap: 2px; padding: 6px 16px; font-size: 11px; min-height: 52px; }
  .view { padding: 18px 16px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .next-row { grid-template-columns: minmax(0, 1fr); }
  .project { grid-template-columns: 36px minmax(0, 1fr); }
  .project .poly { width: 36px; height: 36px; }
  .project .chips { grid-column: 2; justify-content: flex-start; }
  .entry { grid-template-columns: minmax(0, 1fr); }
  .toast { bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Library */
.lib-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; margin-top: 12px; }
.lib-toc { display: grid; gap: 2px; align-content: start; position: sticky; top: 84px; max-height: calc(100vh - 120px); overflow: auto; }
.lib-toc button { text-align: left; border: 0; background: none; padding: 6px 10px; border-radius: 8px; font-size: 13px; color: var(--ink-2); }
.lib-toc button[aria-current="true"] { background: var(--raised); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.lib-text { background: var(--paper); border-radius: var(--radius); padding: 26px 34px; box-shadow: var(--page-shadow); font: 400 18px/1.6 var(--serif); max-width: 40em; }
.lib-text h2 { font: 400 26px/1.2 var(--serif); margin: 0 0 16px; }
.lib-text p { margin: 0 0 .8em; } .lib-text p.hl { background: var(--gap-wash); box-shadow: -8px 0 0 var(--gap-wash), 8px 0 0 var(--gap-wash); border-radius: 4px; }
.lib-nav { display: flex; justify-content: space-between; margin-top: 18px; }
.lib-hits { margin-top: 10px; }
@media (max-width: 760px) { .lib-grid { grid-template-columns: minmax(0, 1fr); } .lib-toc { position: static; max-height: 30vh; } .lib-text { padding: 18px; } }

/* Use on your iPhone panel (Mac only) */
.phone-panel { position: fixed; right: 16px; top: 76px; z-index: 60; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow: auto; border-radius: var(--radius); padding: 18px 20px; }
/* home-screen app: room for the notch and home bar */
@media (display-mode: standalone) { .topbar { padding-top: max(10px, env(safe-area-inset-top)); } .tabbar { bottom: max(14px, env(safe-area-inset-bottom)); } }

@media (max-width: 760px) { #view-hole .place-head .sub { display: none; } #view-hole .place-head h1 { font-size: 30px; } .capture textarea { min-height: 110px; } }
/* Hole, website look (2026-10-25 night): round kind buttons, quiet options row, plain privacy note */
.hole-head .sub b { font-weight: 500; color: var(--ink); }
.kinds { display: flex; gap: 4px; }
.kinds button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; color: var(--ink-2); padding: 0; }
.kinds button[aria-checked="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.kinds svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.capture-row #captureBtn { margin-left: auto; min-height: 44px; padding: 10px 20px; }
.capture .opts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.capture .opts .sel { border-color: var(--line); color: var(--ink-2); }
.kind-hint { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); padding: 8px 12px; border-radius: 12px; background: var(--gap-wash); }
.kind-hint.planned { border: 1px dashed var(--gap); }
.cloud-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; }
.cloud-note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.privacy-first { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 14px; font-size: 14.5px; line-height: 1.5; }
.privacy-first p { margin: 0 0 8px; }
@media (max-width: 760px) { #view-hole .place-head .sub { display: block; font-size: 15px; } .kinds button { width: 42px; height: 42px; } }
/* Talk to Shape + project plans (2026-10-25 night) */
.talk { margin: 18px 0 0; }
.talk-h { margin: 4px 0 2px; font: 400 26px/1.2 var(--serif); }
/* Projects: Talk to Shape header + the Vault's neighbours (2026-10-26) */
.talk-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; } .talk-top .talk-h { margin: 0; }
.talk-line { margin: 6px 0 2px; font: italic 400 18px/1.35 var(--serif); color: var(--ink-2); }
#view-projects > .talk { margin-top: 26px; }
#view-projects > .seeds { margin: 4px 0 0; border-top: 1px solid var(--line); padding-top: 6px; }
.plan-card { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line-2); white-space: normal; }
.plan-card h3 { margin: 2px 0 6px; font: 500 19px/1.3 var(--serif); } .plan-card p { margin: 6px 0; } .plan-card ol { margin: 6px 0; padding-left: 20px; display: grid; gap: 4px; } .plan-card small { color: var(--ink-3); }
.plan-goal { margin: 2px 0 6px; font-size: 14px; color: var(--ink-2); }
.plan-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 4px 0 8px; } .plan-bar i { display: block; height: 100%; background: var(--ok); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.steps li label { display: flex; gap: 8px; align-items: flex-start; flex: 1; min-width: 0; } .steps input { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.steps li.done span { text-decoration: line-through; color: var(--ink-3); } .steps li small { color: var(--ink-3); white-space: nowrap; } .steps li.late small { color: var(--warn); }
/* Hairline figures (MIT, © Lucas Marques; hairline/LICENSE): Shape's palette, one stroke weight everywhere */
[data-hairline] { --hairline-plate: var(--paper); --hairline-hi: var(--ink); --hairline-edge: var(--ink-3); --hairline-mid: color-mix(in srgb, var(--ink-3) 55%, var(--paper)); --hairline-lo: var(--line-2); --hairline-stroke: 0.9; }
.hl-wrap { position: relative; margin: -6px -6px 2px; }
.hl-fig { width: 100%; max-width: 240px; margin: -14px auto -22px; }
.hl-wrap.map .hl-fig { margin: -10px auto; }
.hl-read { position: absolute; top: 6px; right: 8px; font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-3); font-variant-numeric: tabular-nums; pointer-events: none; }
.hl-wrap.map { margin: 4px 0 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.hl-wrap.map .hl-fig { max-width: 360px; cursor: pointer; }
/* Library: highlights, notes, Writing Taste (2026-10-25 night). Source text stays serif and attributed; your words are sans. */
.lib-tabs { display: flex; gap: 4px; margin: 4px 0 14px; } .lib-tabs button { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 6px 14px; min-height: 36px; font-size: 14px; color: var(--ink-2); }
.lib-tabs button[aria-current="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); } .lib-tabs .n { font-style: normal; font-size: 11px; background: var(--gap); color: #1d1b18; border-radius: 999px; padding: 0 6px; margin-left: 4px; }
.lib-hint { font: 13px/1.4 var(--ui); color: var(--ink-3); margin: 0 0 10px !important; }
mark.ann { background: transparent; color: inherit; border-radius: 3px; padding: 0 1px; cursor: pointer; box-shadow: inset 0 -0.45em 0 var(--lab); }
mark.ann.on { box-shadow: inset 0 -1.2em 0 var(--lab); outline: 1.5px solid var(--ink-3); }
.lab-inspiration { --lab: rgba(232, 182, 47, .38); } .lab-technique { --lab: rgba(107, 111, 179, .3); } .lab-dislike { --lab: rgba(180, 84, 45, .26); } .lab-research { --lab: rgba(61, 122, 79, .26); } .lab-undecided { --lab: rgba(132, 124, 112, .25); }
.selbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 40; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; padding: 8px 10px; border-radius: 18px; max-width: calc(100% - 24px); }
.selbar .lab-btn { box-shadow: inset 0 -4px 0 var(--lab); }
.ann-panel { position: fixed; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); width: min(420px, calc(100% - 32px)); max-height: 70vh; overflow: auto; z-index: 35; box-shadow: var(--page-shadow); display: grid; gap: 10px; }
.ann-panel h3 { margin: 6px 0; font: 500 16px var(--serif); } .ann-panel textarea { width: 100%; border: 1px solid var(--line-2); background: var(--raised); border-radius: 12px; padding: 8px 10px; font-size: 15px; }
.ann-panel .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .ann-panel .tr-row { display: flex; justify-content: space-between; align-items: center; }
.src-quote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--lab, var(--line-2)); background: var(--raised); border-radius: 0 12px 12px 0; font: italic 400 16px/1.5 var(--serif); }
.src-quote cite { display: block; margin-top: 6px; font: normal 12px var(--ui); color: var(--ink-3); }
.lab-row { display: flex; flex-wrap: wrap; gap: 6px; } .lab-row .chip { cursor: pointer; background: transparent; min-height: 30px; box-shadow: inset 0 -3px 0 var(--lab); } .lab-row .chip.on { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.disclose { padding: 10px 12px; border: 1px dashed var(--gap); border-radius: 12px; background: var(--gap-wash); font-size: 14px; } .disclose ul { margin: 4px 0 8px; padding-left: 18px; } .disclose textarea { margin-top: 4px; }
.an-item { border-top: 1px solid var(--line); padding-top: 8px; font-size: 14px; line-height: 1.5; }
.note-link { display: grid; text-align: left; border: 0; background: none; padding: 6px 10px; border-radius: 8px; font: italic 13px/1.35 var(--serif); color: var(--ink-2); box-shadow: inset 3px 0 0 var(--lab); } .note-link small { font: normal 11px var(--ui); color: var(--ink-3); }
.switchrow { display: flex; gap: 10px; align-items: flex-start; } .switchrow input { width: 20px; height: 20px; margin-top: 2px; flex: none; } .switchrow small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.prefs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } .pref { padding: 10px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; } .pref p { margin: 0; font-size: 15px; } .pref.dismissed p { color: var(--ink-3); text-decoration: line-through; }
.pref-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .pref .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.ev { border: 0; background: var(--raised); border-radius: 10px; padding: 4px 8px; font: italic 12.5px/1.3 var(--serif); color: var(--ink-2); text-align: left; box-shadow: inset 3px 0 0 var(--lab); } .ev small { font: normal 11px var(--ui); color: var(--ink-3); }
.pref-edit { display: flex; gap: 6px; } .pref-edit input { flex: 1; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 10px; background: var(--raised); }
.warnbtn { color: var(--warn) !important; border-color: color-mix(in srgb, var(--warn) 50%, transparent) !important; }
@media (max-width: 760px) { .ann-panel { right: 12px; left: 12px; width: auto; } }
/* Hole as a black hole (2026-10-25 night): the whole page goes dark, you drop things in, they're gone. The archive and log are one link away. */
:root[data-theme="dark"] body.void {
  --bg: #07060a; --paper: #121017; --raised: #1a1720; --ink: #ece6da; --ink-2: #b9b1a3; --ink-3: #807868;
  --line: rgba(255, 235, 200, .09); --line-2: rgba(255, 235, 200, .17); --accent: #f0c35a; --on-accent: #17110a; --gap: #f0c35a; --gap-wash: rgba(240, 195, 90, .08);
  --glass-bg: rgba(24, 20, 28, .6); --glass-edge: rgba(255, 235, 200, .1); --glass-hi: rgba(255, 240, 210, .08); --glass-shadow: rgba(0, 0, 0, .5);
  --page-shadow: 0 0 0 1px rgba(255, 230, 190, .06), 0 30px 80px rgba(0, 0, 0, .55); color-scheme: dark;
  background: radial-gradient(120% 70% at 50% 18%, #17121f 0%, #07060a 60%) fixed, #07060a;
}
.void-stage { display: grid; justify-items: center; text-align: center; gap: 6px; margin: 4px 0 18px; }
.void-stage h1 { margin: 6px 0 0; font: 400 clamp(32px, 6vw, 46px)/1.1 var(--serif); letter-spacing: -.02em; }
.void-stage .sub { margin: 0; max-width: 34ch; color: var(--ink-2); font: 400 16.5px/1.45 var(--serif); }
.bh { position: relative; width: min(230px, 56vw); aspect-ratio: 1; display: grid; place-items: center; }
.bh i { position: absolute; border-radius: 50%; }
.bh .disk { inset: 0; background: conic-gradient(from 0deg, transparent 0 8%, rgba(240, 195, 90, .55) 18%, rgba(255, 236, 200, .2) 30%, transparent 42%, rgba(169, 172, 236, .35) 58%, transparent 70%, rgba(240, 195, 90, .4) 86%, transparent);
  -webkit-mask: radial-gradient(circle, transparent 0 34%, #000 37%, #000 52%, transparent 71%); mask: radial-gradient(circle, transparent 0 34%, #000 37%, #000 52%, transparent 71%);
  filter: blur(3px); animation: bh-spin 22s linear infinite; }
.bh .disk.two { inset: 12%; opacity: .7; animation-duration: 13s; animation-direction: reverse; filter: blur(1.5px); }
.bh .core { inset: 33%; background: #000; box-shadow: 0 0 0 1.5px rgba(255, 228, 170, .55), 0 0 24px 6px rgba(240, 195, 90, .22), inset 0 0 18px #000; }
.bh.gulp .core { animation: bh-gulp .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes bh-spin { to { transform: rotate(360deg); } }
@keyframes bh-gulp { 0% { box-shadow: 0 0 0 1.5px rgba(255, 228, 170, .55), 0 0 24px 6px rgba(240, 195, 90, .22); } 35% { box-shadow: 0 0 0 3px rgba(255, 238, 200, .9), 0 0 48px 16px rgba(240, 195, 90, .45); transform: scale(1.06); } 100% { transform: scale(1); } }
.swallow { position: fixed; z-index: 60; pointer-events: none; font: 400 19px/1.5 var(--serif); color: var(--ink); white-space: pre-wrap; overflow: hidden; max-height: 4.5em; transform-origin: center; }
.saved { min-height: 22px; margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); opacity: 0; transition: opacity .5s; } .saved.show { opacity: 1; }
body.void .capture { background: color-mix(in srgb, var(--paper) 80%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); }
body.void #captureInput::placeholder { color: var(--ink-3); }
.archive-link { text-align: center; margin: 26px 0 0; } .archive-link .linkish { color: var(--ink-3); font-size: 13.5px; }
.hole-archive { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.arch-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; } .arch-head h2, .log-h { margin: 0; font: 400 22px/1.2 var(--serif); }
.arch-tools { display: flex; gap: 8px; flex-wrap: wrap; } .arch-tools input { border: 1px solid var(--line-2); background: var(--paper); border-radius: 999px; padding: 7px 14px; min-height: 38px; min-width: min(280px, 70vw); font-size: 15px; }
.log-h { margin-top: 22px !important; margin-bottom: 8px !important; }
.sort-log { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; font-size: 14px; }
.sort-log li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); } .sort-log small { display: block; color: var(--ink-3); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .bh .disk { animation: none; } .bh.gulp .core { animation: none; } }
.cap-more { margin-top: 10px; } .cap-more summary { cursor: pointer; font-size: 12.5px; color: var(--ink-3); min-height: 32px; display: flex; align-items: center; }
@media (max-width: 760px) { .bh { width: 150px; } .void-stage { gap: 2px; margin-bottom: 12px; } .void-stage h1 { font-size: 30px; } .void-stage .sub { font-size: 15px; } }
.planned-box { margin-top: 16px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }

/* Light/dark Hole. Light (default, or theme = light): the paper stays, the hole is a near-black well with a warmer ring.
   Dark (theme = dark, or the system is dark and you haven't picked light): deep space. */
body.void { background: radial-gradient(90% 55% at 50% 16%, color-mix(in srgb, var(--bg) 82%, #c9b48a) 0%, var(--bg) 62%) fixed, var(--bg); }
body.void .bh .core { background: radial-gradient(circle at 50% 45%, #1c1916 0%, #0a0908 72%); box-shadow: 0 0 0 1.5px rgba(160, 112, 20, .6), 0 0 26px 8px rgba(200, 150, 40, .3), inset 0 0 18px #000; }
body.void .bh .disk { filter: blur(3px) saturate(1.35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.void {
  --bg: #07060a; --paper: #121017; --raised: #1a1720; --ink: #ece6da; --ink-2: #b9b1a3; --ink-3: #807868;
  --line: rgba(255, 235, 200, .09); --line-2: rgba(255, 235, 200, .17); --accent: #f0c35a; --on-accent: #17110a; --gap: #f0c35a; --gap-wash: rgba(240, 195, 90, .08);
  --glass-bg: rgba(24, 20, 28, .6); --glass-edge: rgba(255, 235, 200, .1); --glass-hi: rgba(255, 240, 210, .08); --glass-shadow: rgba(0, 0, 0, .5); color-scheme: dark;
  background: radial-gradient(120% 70% at 50% 18%, #17121f 0%, #07060a 60%) fixed, #07060a; } }
:root[data-theme="dark"] body.void { background: radial-gradient(120% 70% at 50% 18%, #17121f 0%, #07060a 60%) fixed, #07060a; }
:root[data-theme="dark"] body.void .bh .core { background: #000; box-shadow: 0 0 0 1.5px rgba(255, 228, 170, .55), 0 0 24px 6px rgba(240, 195, 90, .22), inset 0 0 18px #000; }
.store-box { margin-top: 16px; } .store-now { font-size: 14px; line-height: 1.5; color: var(--ink-2); } .store-now code { font-size: 12px; word-break: break-all; color: var(--ink); }
.store-box .acts { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
/* Project micrographics: one colour each, one stroke weight; lighter in dark mode. */
svg.micro { flex: none; fill: none; stroke: color-mix(in srgb, var(--mc) 88%, var(--ink)); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
svg.micro .t { stroke-width: .6; opacity: .7; } svg.micro .d { fill: color-mix(in srgb, var(--mc) 88%, var(--ink)); stroke: none; }
svg.micro.seed { stroke-dasharray: 2 2.5; }
[data-theme="dark"] svg.micro { stroke: color-mix(in srgb, var(--mc) 72%, #fff); } [data-theme="dark"] svg.micro .d { fill: color-mix(in srgb, var(--mc) 72%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) svg.micro { stroke: color-mix(in srgb, var(--mc) 72%, #fff); } :root:not([data-theme="light"]) svg.micro .d { fill: color-mix(in srgb, var(--mc) 72%, #fff); } }

/* Last updated: 2026-10-25 · writing leads, all supporting tools retained. */
.resume-writing { margin: 0 0 24px; }
/* Hosted: Your stories leads the Shape page (and fills an empty Projects list). */
.your-stories h2 { margin: 0 0 8px; font: 400 26px/1.2 var(--serif); }
.my-stories { list-style: none; padding: 0; margin: 0; display: grid; }
.my-stories li + li { border-top: 1px solid var(--line); }
.my-stories a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; padding: 12px 2px; min-height: 44px; box-sizing: border-box; color: inherit; text-decoration: none; }
.my-stories a:hover b { text-decoration: underline; }
.my-stories b { font: 500 18px/1.3 var(--serif); overflow-wrap: anywhere; }
.my-stories small { color: var(--ink-3); font-size: 13px; }
.empty .my-stories { margin: 8px 0; text-align: left; } .empty .my-stories b { color: var(--ink); }
#shapes .shape-card:first-child { grid-column: 1 / -1; }
#shapes .shape-card:nth-child(3) { order: 1; }
#shapes .shape-card:nth-child(2), #shapes .shape-card:nth-child(4), #shapes .shape-card:nth-child(5) { order: 2; }
.shape-demo-bar { position: relative; z-index: 100; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; padding: 8px 14px; font: 12px system-ui; background: #eee7da; color: #29251f; }
.shape-demo-bar button { font: inherit; cursor: pointer; }
/* Hole glow: brighter as you get close (hole-glow.js sets --near 0..1). The calm look stays the default. */
.bh { --near: 0; }
.bh::before { content: ""; position: absolute; inset: -18%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 214, 140, .55) 0%, rgba(240, 190, 90, .22) 30%, rgba(169, 172, 236, .12) 48%, transparent 66%); opacity: calc(var(--near) * .9); filter: blur(10px); transform: scale(calc(.85 + var(--near) * .2)); }
.bh .disk { opacity: calc(.78 + var(--near) * .22); filter: blur(calc(3px - var(--near) * 1.2px)) saturate(calc(1.2 + var(--near) * .25)) brightness(calc(1 + var(--near) * .5)) hue-rotate(calc(var(--near) * -10deg)); }
:root body .bh[style] .core { transform: scale(calc(1 - var(--near) * .05)); box-shadow: 0 0 0 calc(1.5px + var(--near) * 1.2px) rgba(255, 226, 168, calc(.5 + var(--near) * .45)), 0 0 calc(24px + var(--near) * 34px) calc(6px + var(--near) * 10px) rgba(240, 190, 90, calc(.22 + var(--near) * .4)), inset 0 0 18px #000; transition: transform .3s; }
