/* Patchwork: colored evidence folders on a warm measuring-paper desk. */
@font-face { font-family: "Besley Variable"; src: url("/fonts/besley-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next Variable"; src: url("/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "B612 Mono"; src: url("/fonts/b612-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* the story site's clay world (pedro/app-v3 app/src/styles/tokens.css), mapped onto this screen's token names */
  --clay-red: #d7352b; --clay-yellow: #f2b91d; --clay-green: #2e9e5b; --clay-blue: #2f6fd0; --clay-brown: #7a4a2b;
  --clay-red-deep: #93201a; --clay-yellow-deep: #7a5800; --clay-green-deep: #18663a; --clay-blue-deep: #1b468c; --clay-brown-deep: #4c2c17;
  --linen: #e7d5c6; --linen-deep: #d9bfab; --cloth: #f7ede3; --rule: #c6aa95;
  --paper: var(--linen); --card: var(--cloth); --sunk: #efe1d5; --line: var(--rule); --sidebar-bg: #e0cbba;
  --ink: #141414; --ink-soft: #4f4a45; --on-ink: var(--cloth); --on-ink-soft: #f3e4d7;
  --crimson: var(--clay-red-deep); --crimson-deep: #6e1812; --crimson-lit: #f4b5a3;
  --indigo: var(--clay-blue-deep); --green: var(--clay-green-deep); --ochre: var(--clay-yellow-deep); --grey: var(--clay-brown);
  --yellow: var(--clay-yellow); --yellow-paper: #f8e7bf; --coral-paper: #f5d9cf; --cobalt-paper: #dde5f3;
  --text: "Atkinson Hyperlegible Next Variable", Verdana, sans-serif;
  --display: "Besley Variable", Georgia, serif; --mono: var(--text);
  --fs-body: 1.0625rem; --fs-small: 0.875rem;
  --sidebar: 224px; --edge: clamp(1.5rem, 4.2vw, 4.6rem); --r: 18px; --r-s: 12px;
  --shadow: inset 0 1.5px 0 rgb(255 251 246 / 0.8), inset 0 -2px 3px rgb(150 100 66 / 0.13), 1.5px 2.5px 0 -0.5px rgb(120 78 48 / 0.2), 3px 6px 10px -3px rgb(110 68 40 / 0.3);
  --lift-2: inset 0 1.5px 0 rgb(255 251 246 / 0.8), inset 0 -2px 4px rgb(150 100 66 / 0.14), 2px 3px 0 -0.5px rgb(120 78 48 / 0.22), 6px 14px 26px -8px rgb(100 60 34 / 0.42);
  --press: inset 2px 3px 5px rgb(120 76 46 / 0.3), inset -1px -1.5px 0 rgb(255 250 244 / 0.7);
  --woven: repeating-linear-gradient(0deg, rgb(20 20 20 / 0.035) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgb(255 255 255 / 0.06) 0 1px, transparent 1px 3px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.55 var(--text); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { color: var(--ink); background: #f0c65c; }
input, textarea { caret-color: var(--crimson); }
* { scrollbar-width: thin; scrollbar-color: var(--line) var(--paper); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line); border: 2px solid var(--paper); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-soft); }
p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 3.9vw, 4rem); }
h2 { font-size: 1.55rem; letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 4px; border-radius: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { position: fixed; left: 1rem; top: 1rem; background: var(--card); padding: 0.6rem 1rem; z-index: 20; }
.label, .section-label, .workspace-label { font: 600 var(--fs-small)/1.4 var(--text); color: var(--ink-soft); }
.soft { color: var(--ink-soft); }
.ico { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.18em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The navigation stays quiet while the folders carry color. */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 6; width: var(--sidebar); padding: 2rem 1.15rem 1.25rem; display: flex; flex-direction: column; background: var(--sidebar-bg); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 0.65rem; padding: 0 0.3rem; color: var(--ink); font: 700 1.35rem/1.1 "Besley Variable", Georgia, serif; letter-spacing: -0.04em; text-decoration: none; }
.quilt-mark { display: block; width: 27px; height: 27px; flex: 0 0 27px; transform: rotate(-5deg); }
.workspace-label { padding: 2.6rem 0.65rem 0.65rem; font-size: var(--fs-small); color: var(--ink-soft); }
.sidebar nav { display: grid; gap: 0.2rem; }
.sidebar nav a { position: relative; display: flex; align-items: center; gap: 0.7rem; min-height: 43px; padding: 0.6rem 0.7rem; border-radius: 6px; text-decoration: none; font-weight: 600; color: var(--ink-soft); }
.sidebar nav a:hover { color: var(--ink); background: var(--sunk); }
.sidebar nav a[aria-current="page"] { background: var(--sunk); color: var(--ink); }
.sidebar nav a[aria-current="page"]::before { content: ""; position: absolute; left: -1.15rem; top: 10px; bottom: 10px; width: 3px; border-radius: 0 2px 2px 0; background: var(--indigo); }
.nav-icon { display: block; width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--ink-soft); }
[aria-current="page"] .nav-icon { color: var(--indigo); }
.side-section { margin-top: 2.1rem; padding: 0 0.6rem; }
.side-section .section-label { font-size: var(--fs-small); margin-bottom: 0.8rem; }
#recent-reports { display: grid; gap: 0.35rem; }
.recent-link { display: flex; align-items: start; gap: 0.55rem; padding: 0.35rem 0; color: var(--ink-soft); font-size: var(--fs-small); line-height: 1.35; text-decoration: none; }
.recent-link:hover { color: var(--indigo); text-decoration: underline; }
.folder-dot { width: 12px; height: 9px; margin-top: 0.22rem; flex: 0 0 12px; border: 1px solid color-mix(in srgb, var(--folder-color, var(--yellow)) 70%, var(--ink)); border-radius: 1px; background: var(--folder-color, var(--yellow)); }
.side-bottom { margin-top: auto; padding-top: 1.5rem; position: relative; }
.account { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.65rem; width: 100%; padding: 0.5rem 0.55rem; border: 1px solid transparent; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.account:hover, .account[aria-expanded="true"] { background: var(--sunk); border-color: var(--line); }
.avatar { position: relative; display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: var(--fs-small); font-weight: 700; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--line); border: 2px solid var(--sidebar-bg); }
.status-dot.up { background: #2f9e5f; }
.avatar .status-dot { position: absolute; right: -2px; bottom: -2px; }
.who { display: grid; min-width: 0; line-height: 1.25; }
.who b { font-size: var(--fs-small); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who span { font-size: var(--fs-small); color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-menu { position: absolute; left: 0; right: 0; bottom: calc(100% - 1rem); padding: 0.3rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: 0 12px 30px -12px rgb(30 40 30 / 0.35); display: grid; gap: 0.1rem; }
.account-menu[hidden] { display: none; }
.account-menu button { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.6rem; border: 0; border-radius: 7px; background: transparent; font-size: var(--fs-small); font-weight: 600; text-align: left; cursor: pointer; }
.account-menu button:hover, .account-menu button:focus-visible { background: var(--sunk); }
.sheet { width: min(26rem, calc(100vw - 2rem)); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgb(20 30 20 / 0.45); }
.sheet::backdrop { background: rgb(30 36 32 / 0.4); backdrop-filter: blur(2px); }
.sheet form { display: grid; gap: 1rem; padding: 1.6rem; }
.sheet h2 { font-size: 1.3rem; }
.field { display: grid; gap: 0.35rem; font-size: var(--fs-small); font-weight: 600; color: var(--ink-soft); }
.field input, .field select { font: inherit; font-size: var(--fs-body); font-weight: 400; color: var(--ink); padding: 0.6rem 0.7rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.sheet-note { display: flex; align-items: center; gap: 0.45rem; font-size: var(--fs-small); color: var(--ink-soft); }
.sheet-note .status-dot { border-color: var(--card); }
.sheet-actions { display: flex; justify-content: end; gap: 0.5rem; padding-top: 0.3rem; }
.workspace { min-height: 100vh; margin-left: var(--sidebar); display: flex; flex-direction: column; background-image: linear-gradient(rgb(77 102 72 / 0.045) 1px, transparent 1px), linear-gradient(90deg, rgb(77 102 72 / 0.045) 1px, transparent 1px); background-size: 24px 24px; }
.workspace-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 63px; padding: 0 var(--edge); border-bottom: 1px solid var(--line); background: rgb(247 245 237 / 0.88); }
#breadcrumb { font-size: var(--fs-small); color: var(--ink-soft); }
main { flex: 1; width: 100%; max-width: 88rem; margin: 0 auto; padding: 0 var(--edge) 4rem; outline: none; min-width: 0; }

/* A useful workbench: search first, colored research folders directly below. */
.research-home { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; padding: clamp(2.4rem, 3.4vw, 3.2rem) 0 2.5rem; }
.desk-intro { min-width: 0; }
.desk-intro > .label { margin-bottom: 1.3rem; }
.desk-intro h1 { font-size: clamp(3rem, 4.6vw, 5.2rem); line-height: 1; letter-spacing: -0.02em; }
.headline-accent { display: block; color: var(--crimson); }
.intro-copy { margin-top: 1.45rem; max-width: 43ch; font-size: var(--fs-body); line-height: 1.5; color: var(--ink-soft); }
.search { display: flex; align-items: center; gap: 0.4rem; width: 100%; max-width: 40rem; padding: 0.35rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 2px 2px rgb(48 44 28 / 0.03), 0 5px 0 -3px var(--line); }
.desk-intro .search { margin-top: 1.8rem; }
.search:focus-within { outline: 2px solid var(--indigo); outline-offset: 3px; }
.search input { flex: 1; min-width: 0; padding: 0.7rem 0.65rem; font-size: var(--fs-body); border: 0; background: transparent; color: var(--ink); outline: none; }
.search input::placeholder { color: var(--ink-soft); }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; font-weight: 600; font-size: var(--fs-small); padding: 0.65rem 1.25rem; border: 1px solid var(--crimson); border-radius: 5px; background: var(--crimson); color: var(--on-ink); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--crimson-deep); border-color: var(--crimson-deep); }
.btn.ghost { background: var(--card); border-color: var(--line); color: var(--ink); padding: 0.5rem 0.9rem; font-size: var(--fs-small); box-shadow: 0 1px 0 rgb(48 44 28 / 0.04); }
.btn.ghost:hover { background: var(--sunk); border-color: var(--ink-soft); }
.btn:disabled { opacity: 0.65; cursor: progress; }
.btn:disabled:hover { background: var(--sunk); }
.example-searches { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; margin-top: 0.9rem; }
.example-searches > span, .example-searches > p { color: var(--ink-soft); font-size: var(--fs-small); }
.example-chip { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 32px; padding: 0.3rem 0.55rem; font-size: var(--fs-small); line-height: 1.2; text-decoration: none; border: 1px dashed var(--line); border-radius: 4px; background: rgb(255 253 246 / 0.7); }
.example-chip::before { content: ""; display: block; width: 6px; height: 6px; background: var(--folder-color, var(--yellow)); }
.example-chip:hover { border-color: var(--indigo); color: var(--indigo); background: var(--card); }
.blueprint-art { position: relative; width: 100%; max-width: 420px; margin: 0; justify-self: end; background-color: var(--indigo); background-image: linear-gradient(rgb(255 255 245 / 0.12) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 245 / 0.12) 1px, transparent 1px); background-size: 22px 22px; border: 1px solid #2345af; border-radius: 9px; color: var(--on-ink); box-shadow: 5px 6px 0 -2px #e5e2d4, 6px 7px 0 -2px #bfc4b5, 0 16px 24px -20px rgb(33 49 77 / 0.4); transform: rotate(1.5deg); }
.blueprint-art::after { content: ""; pointer-events: none; position: absolute; inset: 10px; border: 1px dashed rgb(255 251 237 / 0.32); border-radius: 3px; }
.blueprint-art svg { display: block; width: 100%; height: auto; }
.blueprint-caption, .blueprint-art figcaption { font-size: var(--fs-small); padding: 0 1.3rem 1.25rem; color: #e0e7ff; }
.folder-section { padding-top: 1.25rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; }
.section-heading a { font-size: var(--fs-small); color: var(--ink-soft); white-space: nowrap; }
.section-heading a:hover { color: var(--indigo); }
.folder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; list-style: none; padding: 0; margin: 0; }
.folder-grid > li { min-width: 0; }
.folder-card { --folder-color: var(--yellow); --folder-paper: var(--yellow-paper); --folder-tab-ink: #3d361d; position: relative; display: flex; flex-direction: column; height: 100%; padding-top: 25px; color: var(--ink); text-decoration: none; }
:is(.folder-card, .recent-link, .example-chip)[data-tone="yellow"] { --folder-color: var(--yellow); --folder-paper: var(--yellow-paper); --folder-tab-ink: #3d361d; }
:is(.folder-card, .recent-link, .example-chip)[data-tone="coral"] { --folder-color: var(--crimson); --folder-paper: var(--coral-paper); --folder-tab-ink: #fffbed; }
:is(.folder-card, .recent-link, .example-chip)[data-tone="cobalt"] { --folder-color: var(--indigo); --folder-paper: var(--cobalt-paper); --folder-tab-ink: #fffbed; }
.folder-tab { position: absolute; top: 0; left: 0; max-width: 85%; height: 27px; overflow: hidden; padding: 0.28rem 1rem; border: 1px solid rgb(71 62 30 / 0.18); border-bottom: 0; border-radius: 7px 10px 0 0; background: var(--folder-color); color: var(--folder-tab-ink); font-size: var(--fs-small); line-height: 1.5; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.folder-content { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 237px; padding: 1.5rem 1.4rem 1.15rem; border: 1px solid rgb(71 62 30 / 0.17); border-radius: 0 8px 8px 8px; background: var(--folder-paper); box-shadow: 1px 3px 0 -1px #e6e2d5, 1px 4px 0 -1px #c7c8ba, 0 9px 16px -14px rgb(47 44 25 / 0.5); }
.folder-content::after { content: ""; position: absolute; inset: 8px; pointer-events: none; border: 1px dashed rgb(74 73 57 / 0.16); border-radius: 2px; }
.folder-title { max-width: 18ch; margin-top: 0.9rem; font-size: clamp(1.25rem, 1.55vw, 1.55rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.folder-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font: 400 var(--fs-small)/1.5 var(--text); color: var(--ink-soft); }
.range-to { font: 400 0.75em var(--text); padding: 0 0.1rem; color: var(--ink-soft); }
/* the estimate on a report card: a green figure, a tape for its range, a coin for each priced listing */
.folder-money { margin-top: auto; padding-top: 1.6rem; display: grid; gap: 0.55rem; --money: #0f5a3c; }
.folder-value { display: flex; align-items: baseline; gap: 0.3rem; flex-wrap: wrap; font: 700 clamp(1.5rem, 2.1vw, 2rem)/1 var(--display); letter-spacing: -0.035em; color: var(--money); font-variant-numeric: tabular-nums; }
.folder-value .sign { font-size: 0.6em; font-weight: 600; vertical-align: 0.42em; margin-right: 0.03em; opacity: 0.75; }
.folder-value .range-to { font-weight: 400; opacity: 0.55; margin: 0 0.1em; }
.tape { --money: #0f5a3c; position: relative; display: block; height: 8px; border-radius: 4px; background: repeating-linear-gradient(90deg, rgb(15 90 60 / 0.22) 0 1px, transparent 1px 10%), rgb(15 90 60 / 0.09); overflow: hidden; }
.tape i { position: absolute; inset: 0 auto 0 calc(var(--lo) * 100%); width: max(8px, calc((var(--hi) - var(--lo)) * 100%)); border-radius: 4px; background: linear-gradient(90deg, #2f9e5f, var(--money)); }
.tape.none i { display: none; }
.folder-proof { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: var(--fs-small); color: var(--ink-soft); }
.coins { display: inline-flex; padding-left: 5px; }
.coins i { display: grid; place-items: center; width: 19px; height: 19px; margin-left: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6d977, #d9a520 70%); border: 1.5px solid #9a7412; color: #6b4f08; font: 700 var(--fs-small)/1 var(--text); font-style: normal; box-shadow: 0 1px 0 rgb(255 255 255 / 0.5) inset; }
.coins b { margin-left: 0.3rem; font-weight: 600; }
.span-tag { margin-left: auto; padding: 0.12rem 0.45rem; border-radius: 999px; border: 1px solid rgb(15 90 60 / 0.35); color: var(--money); font: 600 var(--fs-small)/1.4 var(--text); }
.folder-footer { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 1rem; padding-top: 0.8rem; border-top: 1px dashed rgb(74 73 57 / 0.25); color: var(--ink-soft); font-size: var(--fs-small); }
.folder-footer .opened { display: grid; gap: 0.3rem; min-width: 0; flex: 1; }
.folder-footer .opened b { color: var(--ink); font-weight: 700; }
.ratio { display: block; height: 4px; max-width: 9rem; border-radius: 2px; background: rgb(74 73 57 / 0.14); overflow: hidden; }
.ratio i { display: block; height: 100%; width: max(4px, calc(var(--n) * 100%)); border-radius: 2px; background: var(--ink); }
.go { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--ink); color: var(--on-ink); }
.go svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.folder-card:hover .go, .folder-card:focus-visible .go { background: var(--folder-color); color: var(--folder-tab-ink); }
.folder-card:hover .folder-content::after, .folder-card:focus-visible .folder-content::after { border-color: color-mix(in srgb, var(--folder-color) 65%, transparent); }

/* Quiet reading surfaces and measured amounts share the same paper geometry. */
.patch { position: relative; display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.patch::after { content: ""; position: absolute; inset: 7px; border: 1px dashed transparent; border-radius: 4px; pointer-events: none; }
a.patch:hover::after, a.patch:focus-visible::after, .patch.row:has(> summary:hover)::after { border-color: color-mix(in srgb, var(--stitch, var(--indigo)) 40%, transparent); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.bento > li, .bento.even > li { grid-column: span 4; min-width: 0; }
.tile { height: 100%; padding: 1.4rem; display: grid; gap: 1.1rem; align-content: space-between; min-height: 13rem; }
.tile .name { font: 700 1.35rem/1.15 var(--display); letter-spacing: -0.03em; }
.tile .amount { font: 400 1.35rem/1.2 var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.tile .amount small { font: 500 var(--fs-small) var(--text); color: var(--ink-soft); margin-right: 0.35rem; }
.bar { display: block; position: relative; height: 5px; border-radius: 1px; background: color-mix(in srgb, currentColor 12%, transparent); overflow: hidden; }
.bar i { position: absolute; top: 0; bottom: 0; left: calc(var(--lo) * 100%); width: max(5px, calc((var(--hi) - var(--lo)) * 100%)); border-radius: 1px; background: var(--fill, var(--indigo)); }
.bar.none i { display: none; }
.page-head { padding: 2.7rem 0 0; display: grid; gap: 1.5rem; }
.page-head h1 { font-size: clamp(2.4rem, 4vw, 3.8rem); }
.report-head { display: flex; align-items: end; justify-content: space-between; gap: 1.2rem 2rem; flex-wrap: wrap; padding: 2.5rem 0 1.6rem; }
.report-head h1 { max-width: 23ch; font-size: clamp(2rem, 3.7vw, 3.4rem); }
.report-head .label { margin-bottom: 0.7rem; font-family: var(--text); font-size: var(--fs-small); }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.estimate-note { max-width: 70ch; font-size: var(--fs-small); margin: 0.9rem 0; line-height: 1.5; }
.opportunity-actions { padding: 0 0 1.25rem; }
.opportunity-brief { margin-top: 1rem; padding-block: 1rem; border-block: 1px solid var(--line); }
.opportunity-brief h4 { font-size: var(--fs-body); margin-bottom: 0.5rem; }
.opportunity-brief p, .opportunity-brief li { max-width: 70ch; line-height: 1.6; }
.opportunity-brief details { margin-block: 1rem; }
.opportunity-brief .source-meta { margin-top: 0.65rem; overflow-wrap: anywhere; }
.live-workspace { display: grid; gap: 1.5rem; padding-top: 2rem; }
.run-status { max-width: 65ch; margin-top: 0.75rem; }
.run-recovery:empty { display: none; }
.fallback-reports { padding-left: 1.2rem; margin-top: 0.75rem; line-height: 1.8; }
.live-findings { max-height: 32rem; overflow: auto; margin-top: 1rem; }
.money { --bill: #0f5a3c; --bill-deep: #0a4530; --mint: #cfeedd; position: relative; isolation: isolate; overflow: hidden; color: #f3fbf5; border-radius: var(--r); padding: clamp(1.5rem, 3.4vw, 2.8rem); display: grid; gap: 1.15rem; box-shadow: var(--shadow);
  /* a banknote: engraved fine lines over deep green, with a ruled inner border */
  background: repeating-radial-gradient(circle at 100% 0%, rgb(255 255 255 / 0.05) 0 1px, transparent 1px 9px), repeating-linear-gradient(115deg, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 7px), linear-gradient(135deg, #14744c, var(--bill) 45%, var(--bill-deep)); }
.money::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgb(207 238 221 / 0.35); border-radius: calc(var(--r) - 6px); outline: 1px solid rgb(207 238 221 / 0.14); outline-offset: 3px; pointer-events: none; z-index: -1; }
.money::after { content: "$"; position: absolute; right: clamp(1rem, 5vw, 4rem); top: 50%; translate: 0 -50%; width: clamp(7rem, 17vw, 13rem); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgb(207 238 221 / 0.22); outline: 1px dashed rgb(207 238 221 / 0.22); outline-offset: -10px; font: 700 clamp(4rem, 10vw, 8rem)/1 "Besley Variable", Georgia, serif; color: rgb(207 238 221 / 0.16); pointer-events: none; z-index: -1; }
.money .label { color: var(--mint); }
.money .figure { font: 700 clamp(2.6rem, 5.8vw, 5.5rem)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 rgb(0 0 0 / 0.18); }
.money .cash .sign { font-size: 0.58em; font-weight: 600; color: #8fe0b4; vertical-align: 0.42em; margin-right: 0.04em; letter-spacing: 0; }
.money .figure .to { color: var(--mint); font-size: 0.42em; font-weight: 400; margin: 0 0.5em; vertical-align: 0.3em; letter-spacing: 0; }
.money .facts { display: flex; gap: 0.5rem 1.6rem; flex-wrap: wrap; font-size: var(--fs-small); color: var(--mint); }
.money .facts b { color: #fff; font-weight: 600; }
.money details { color: var(--mint); font-size: var(--fs-small); padding-top: 0.35rem; border-top: 1px dashed rgb(207 238 221 / 0.3); }
.money summary { color: #fff; }
.money :focus-visible { outline-color: var(--yellow); }
details > summary { cursor: pointer; font-weight: 600; width: fit-content; list-style: none; display: inline-flex; align-items: center; gap: 0.5rem; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; font: 400 1.1rem/1 var(--text); opacity: 0.65; }
details[open] > summary::after { content: "−"; }
details > :not(summary) { margin-top: 0.7rem; max-width: 72ch; }

/* One paper record: current fit first, editing and provenance on demand. */
.profile-evidence { margin-top: 1.3rem; padding: 1.25rem 1.5rem 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.cap-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }
.cap-head h2 { font-size: 1.1rem; letter-spacing: -0.02em; }
.text-action { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 40px; padding: 0.25rem 0; border: 0; border-radius: 2px; background: transparent; color: var(--ink-soft); font-size: var(--fs-small); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; }
.text-action:hover { color: var(--indigo); text-decoration-color: currentColor; }
.text-action:active { color: var(--crimson-deep); }
.text-action:disabled, .text-action[aria-disabled="true"] { color: var(--ink-soft); cursor: progress; opacity: 0.7; text-decoration: none; }
.cap-selected { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 1.8rem; list-style: none; padding: 0; margin: 0.55rem 0 0; }
.cap-selected li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem 0.6rem; font-size: var(--fs-body); font-weight: 600; }
.cap-selected .ico { align-self: center; width: 1rem; color: var(--green); }
.cap-selected small { font-size: var(--fs-small); color: var(--ink-soft); font-weight: 400; }
.cap-empty { margin-top: 0.5rem; font-size: var(--fs-small); }
.profile-caveat { max-width: 75ch; margin-top: 0.6rem; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-soft); }
.process-editor { min-width: 0; padding: 0; margin: 1rem 0 0; border: 0; }
.process-editor[hidden] { display: none; }
.editor-note { font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: 0.6rem; }
.process-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.5rem; }
.process-option { display: flex; align-items: start; gap: 0.65rem; min-height: 62px; padding: 0.7rem 0; border-top: 1px solid var(--line); cursor: pointer; }
.process-option:hover .process-name { color: var(--indigo); }
.process-option input { appearance: auto; accent-color: var(--indigo); width: 16px; height: 16px; flex: 0 0 16px; margin: 0.15rem 0 0; cursor: pointer; }
.process-option > span { min-width: 0; }
.process-name { display: block; font-size: var(--fs-small); font-weight: 600; line-height: 1.3; }
.process-option small { display: block; margin-top: 0.2rem; color: var(--ink-soft); font-size: var(--fs-small); line-height: 1.4; overflow-wrap: anywhere; }
/* Maker choices use the same small control vocabulary. */
.strip { display: flex; gap: 0.8rem 1rem; align-items: center; flex-wrap: wrap; }
.strip > .label { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 38px; font-size: var(--fs-small); font-weight: 600; padding: 0.4rem 0.65rem; border: 1px solid var(--line); border-radius: 4px; background: var(--card); color: var(--ink-soft); cursor: pointer; }
.chip::before { content: ""; width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 1px; opacity: 0.65; }
.chip:hover { color: var(--ink); background: var(--sunk); border-color: var(--ink-soft); }
.chip[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--on-ink); }
.chip[aria-pressed="true"]::before { background: currentColor; opacity: 1; }
.source-check-message { font-size: var(--fs-small); color: var(--ink-soft); max-width: 75ch; }
.source-check-message:not(:empty) { margin-top: 0.75rem; }
.source-check-message.error { color: var(--crimson-deep); }
.source-review { position: relative; border-top: 1px solid var(--line); margin-top: 1rem; min-height: 48px; }
.source-review > .source-meta { padding: 1rem 8rem 1rem 0; }
.source-check { position: absolute; top: 2px; right: 0; }
.why { font-size: var(--fs-small); }
.why > summary { display: flex; gap: 0.5rem; width: calc(100% - 8rem); min-height: 48px; }
.why > summary::after { display: none; }
.source-chevron { width: 0.85rem; height: 0.85rem; }
.why[open] > summary .source-chevron { transform: rotate(180deg); }
.review-count { font-size: var(--fs-small); font-weight: 400; color: var(--ink-soft); }
.why > ul { list-style: none; padding: 0; margin: 0; max-width: none; }
.source-row { display: grid; gap: 0.45rem; padding: 1.1rem 0; border-top: 1px solid var(--line); min-width: 0; }
.source-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem 1rem; }
.source-heading b { font-size: var(--fs-small); }
.source-status { font-size: var(--fs-small); color: var(--ink-soft); }
.source-status.status-verified { color: var(--green); }
.source-status.status-blocked, .source-status.status-unsupported { color: var(--ochre); }
.source-row p, .source-row dd { overflow-wrap: anywhere; }
.source-url, .source-meta { font-size: var(--fs-small); line-height: 1.55; color: var(--ink-soft); }
.source-url a { text-decoration-color: var(--line); }
.source-url a:hover { color: var(--indigo); text-decoration-color: currentColor; }
.source-attempt { font-size: var(--fs-small); color: var(--ink-soft); }
.passage { max-width: 75ch; margin-top: 0.3rem; }
.source-quote { margin: 0.3rem 0; padding: 0 0 0 0.9rem; border-left: 1px solid var(--line); font-size: var(--fs-small); overflow-wrap: anywhere; white-space: pre-wrap; }
.source-note { font-size: var(--fs-small); color: var(--ink-soft); }
.source-note > summary { font-weight: 400; min-height: 32px; }
.source-note > p { margin-top: 0.2rem; }
.evidence-toggle { justify-self: start; min-height: 36px; color: var(--indigo); }
.evidence-result { min-width: 0; }
.saved-evidence { display: grid; gap: 0.5rem; border-top: 1px solid var(--line); padding-top: 0.8rem; }
.integrity-line { font-size: var(--fs-small); font-weight: 600; }
.evidence-facts { display: grid; gap: 0.5rem; margin: 0.25rem 0; font-size: var(--fs-small); }
.evidence-facts > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.5rem; }
.evidence-facts dt { color: var(--ink-soft); }
.evidence-facts dd { margin: 0; }
.saved-context { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--fs-small); }

/* The toolbar and opportunities belong to one ruled report sheet. */
.parts-section { margin-top: 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.bar-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; flex-wrap: wrap; padding: 0.55rem 1.2rem; border-bottom: 1px solid var(--line); }
.bar-head h2 { font-size: var(--fs-body); letter-spacing: -0.015em; }
.seg { display: inline-flex; gap: 1rem; }
.seg button { min-height: 40px; font-size: var(--fs-small); font-weight: 500; padding: 0.4rem 0.15rem; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--ink-soft); }
.seg button:hover { color: var(--indigo); }
.seg button[aria-pressed="true"] { border-bottom-color: var(--ink); color: var(--ink); font-weight: 700; }
.parts-note { padding: 0.6rem 1.2rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: var(--fs-small); }
.parts-section > .empty { border: 0; background: transparent; }
.rows { background: transparent; }
.row.patch { --stitch: var(--call); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.row.patch:last-child { border-bottom: 0; }
.row.patch::after { display: none; }
.row > summary { display: grid; grid-template-columns: 1.5rem minmax(0, 1.6fr) minmax(10rem, 1fr) auto 1rem; gap: 0.35rem 1rem; align-items: center; width: 100%; padding: 1rem 1.2rem; font-weight: 400; }
.row > summary:hover { background: var(--sunk); }
.row > summary::after { display: none; }
.row .rank { font: 400 var(--fs-small) var(--text); color: var(--ink-soft); }
.row .name { display: grid; gap: 0.35rem; min-width: 0; }
.row .name h3 { font-size: var(--fs-body); letter-spacing: -0.015em; }
.row-meta { display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; font-size: var(--fs-small); color: var(--ink-soft); }
.row-meta > span { display: inline-flex; align-items: center; gap: 0.3rem; }
.row-meta .ico { display: none; }
.row .size { display: grid; gap: 0.4rem; }
.size-basis { color: var(--ink-soft); font-size: var(--fs-small); line-height: 1.3; }
.row .size .tape { height: 4px; max-width: 13rem; background: var(--sunk); }
.row .size .tape i { border-radius: 1px; background: var(--green); }
.row .size .tape.none { display: none; }
.worth { font: 600 var(--fs-body)/1.3 var(--text); color: var(--green); font-variant-numeric: tabular-nums; white-space: nowrap; }
.worth.none { font: 400 var(--fs-small) var(--text); color: var(--ink-soft); }
.worth .sign { font-size: 0.85em; }
.worth .range-to { color: inherit; margin: 0 0.1em; }
.pill { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-small); font-weight: 500; color: var(--call); white-space: nowrap; }
.pill .ico { width: 0.9rem; height: 0.9rem; }
.chev { width: 1rem; height: 1rem; color: var(--ink-soft); }
.row[open] > summary { background: var(--sunk); }
.row[open] > summary .chev { transform: rotate(180deg); }
.row .inside { margin: 0; max-width: none; padding: 1.2rem 1.2rem 1.2rem 3.7rem; display: grid; gap: 1.1rem; }
.part-assessment { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem 2rem; }
.part-rationale { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.row .reason { color: var(--ink-soft); margin-top: 0.35rem; max-width: 42ch; font-size: var(--fs-small); line-height: 1.5; }
.facts3 { display: grid; gap: 0.55rem; margin: 0; }
.facts3 > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0.6rem; align-items: baseline; }
.facts3 dt, .fact-label { font-size: var(--fs-small); color: var(--ink-soft); }
.facts3 dd { margin: 0; font-weight: 600; font-size: var(--fs-small); }
.facts3 dd small { display: block; margin-top: 0.2rem; font-weight: 400; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-soft); }
.findings { list-style: none; margin: 0; padding: 0; }
.finding { display: grid; grid-template-columns: 1rem minmax(0, 1fr) auto; gap: 0.25rem 0.7rem; align-items: start; padding: 0.85rem 0; border-top: 1px solid var(--line); }
.kind-mark { color: var(--ink-soft); padding-top: 0.1rem; }
.finding .what { display: grid; gap: 0.3rem; min-width: 0; }
.dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; border: 1.5px solid var(--green); align-self: center; }
.dot.opened { background: var(--green); }
.finding .title { font-size: var(--fs-small); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.finding .title:hover { text-decoration: underline; }
.finding .nums { display: flex; flex-direction: column; align-items: end; gap: 0.3rem; padding-left: 1rem; max-width: 15rem; text-align: right; font-variant-numeric: tabular-nums; }
.price { color: var(--green); font-size: var(--fs-small); font-weight: 600; }
.count { font-size: var(--fs-small); color: var(--ink-soft); }
.count b { color: var(--ink); font-weight: 500; }
.via { font-size: var(--fs-small); color: var(--ochre); }
.finding .meta { font-size: var(--fs-small); color: var(--ink-soft); display: flex; gap: 0.2rem 0.8rem; flex-wrap: wrap; }
.finding .src { display: inline-flex; align-items: center; gap: 0.35rem; }
.finding.noise .title { text-decoration: line-through; color: var(--ink-soft); }
.more > summary { min-height: 40px; font-size: var(--fs-small); color: var(--indigo); }
.more > .findings { max-width: none; margin: 0.4rem 0 0; }
.legend { display: flex; gap: 0.4rem 1.2rem; flex-wrap: wrap; align-items: center; font-size: var(--fs-small); color: var(--ink-soft); }
.legend span { display: inline-flex; gap: 0.4rem; align-items: center; }
.legend .ico { width: 0.95rem; height: 0.95rem; }
.tail { padding-top: 1.8rem; display: grid; gap: 1rem; font-size: var(--fs-small); }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-small); }
th, td { text-align: left; padding: 0.6rem 0.8rem 0.6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: var(--fs-small); font-weight: 600; color: var(--ink-soft); }
.empty { padding: 2rem; border: 1px dashed var(--line); border-radius: 7px; background: rgb(255 253 246 / 0.85); color: var(--ink-soft); text-align: center; }
.error { color: var(--crimson-deep); }
.gap { --stitch: var(--green); }
.gap .tile { min-height: 13rem; }
.gap .bar { color: var(--ink); --fill: var(--green); }
.steps { display: flex; gap: 0.35rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.steps li { flex: 1 1 4rem; font-size: var(--fs-small); font-weight: 600; color: var(--ink-soft); padding-top: 0.65rem; border-top: 3px dashed var(--line); }
.steps li.done { border-top-color: var(--green); color: var(--green); }
.steps li.now { border-top: 3px solid var(--crimson); color: var(--crimson-deep); }
.meters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; }
.meter { padding: 1.3rem; }
.meter b { display: block; margin-bottom: 0.5rem; color: var(--indigo); font: 400 clamp(1.8rem, 3vw, 3rem)/1 var(--text); font-variant-numeric: tabular-nums; }
.log { max-height: 16rem; overflow: auto; list-style: none; margin: 0.7rem 0 0; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 4px; background: var(--card); font-size: var(--fs-small); line-height: 1.7; color: var(--ink-soft); overflow-wrap: anywhere; }

/* The story site's look, display only: a clay ground with the measuring grid, cloth panels, and pill controls with a
   running stitch just inside the edge that takes its colour on hover, focus and the current state. */
.workspace { background-color: var(--paper); background-image: linear-gradient(rgb(122 74 43 / 0.07) 1px, transparent 1px), linear-gradient(90deg, rgb(122 74 43 / 0.07) 1px, transparent 1px); }
.workspace-top { gap: 1rem; background: rgb(231 213 198 / 0.9); border-bottom-color: var(--rule); }
.sidebar { background: var(--sidebar-bg); border-right-color: var(--rule); }
.brand { font: 800 1.4rem/1.1 var(--display); letter-spacing: -0.02em; }
[data-nav="home"] { --tone: var(--clay-red); }
[data-nav="reports"] { --tone: var(--clay-blue); }
[data-nav="makers"] { --tone: var(--clay-green); }
.sidebar nav { margin-top: 1.6rem; gap: 0.4rem; }
.sidebar nav a { border-radius: 999px; padding-inline: 0.95rem; }
.who span { white-space: normal; }
.sidebar nav a:hover, .sidebar nav a[aria-current="page"] { background: var(--cloth); box-shadow: var(--shadow); }
.sidebar nav a[aria-current="page"]::before { display: none; }
[aria-current="page"] .nav-icon { color: var(--tone); }
.recent-link:hover { color: var(--ink); }

.btn, .chip, .seg button, .example-chip, .story-link, .sidebar nav a { position: relative; isolation: isolate; }
.btn::after, .chip::after, .seg button::after, .example-chip::after, .story-link::after, .sidebar nav a::after { content: ""; position: absolute; inset: 4px; z-index: -1; border: 1.5px dashed var(--seam, transparent); border-radius: inherit; pointer-events: none; }
.btn { --seam: rgb(247 237 227 / 0.5); border: 0; border-radius: 999px; padding-inline: 1.4rem; background-color: var(--crimson); background-image: var(--woven); box-shadow: var(--shadow); color: var(--cloth); font-weight: 600; }
.btn:hover { background-color: var(--clay-red); border-color: transparent; }
.btn.ghost { --seam: var(--rule); --tone: var(--clay-red); border: 0; background-color: var(--cloth); color: var(--ink); padding-inline: 1.1rem; box-shadow: var(--shadow); }
.btn.ghost:hover { background-color: #fbf4ec; }
.btn:active, .chip:active, .seg button:active, .story-link:active { box-shadow: var(--press); }
.btn:disabled:hover { background-color: var(--sunk); }
.chip, .example-chip, .story-link { --seam: var(--rule); border: 0; border-radius: 999px; background: var(--cloth); box-shadow: var(--shadow); color: var(--ink); }
.chip { --tone: var(--clay-green); padding: 0.45rem 1rem; }
.chip::before, .example-chip::before { border-radius: 50%; }
.chip:hover { background: #fbf4ec; color: var(--ink); }
.chip[aria-pressed="true"] { --seam: rgb(247 237 227 / 0.55); background: var(--clay-green-deep); color: var(--cloth); }
.example-chip { --tone: var(--folder-color); padding: 0.35rem 0.85rem; }
.example-chip::before { width: 8px; height: 8px; }
.example-chip:hover { color: var(--ink); background: #fbf4ec; }
.story-link { --tone: var(--clay-red); display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.5rem; padding: 0.4rem 1.1rem; font-size: var(--fs-small); text-decoration: none; white-space: nowrap; }
.story-link svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:is(.btn.ghost, .chip:not([aria-pressed="true"]), .example-chip, .story-link, .sidebar nav a):is(:hover, :focus-visible, [aria-current="page"])::after { border-color: var(--tone); }
.seg { gap: 0.25rem; padding: 0.25rem; border-radius: 999px; background: var(--sunk); box-shadow: var(--press); }
.seg button { --tone: var(--clay-blue); border: 0; border-radius: 999px; padding: 0.35rem 1rem; color: var(--ink-soft); }
.seg button:hover { color: var(--ink); }
.seg button:hover::after { --seam: var(--rule); }
.seg button[aria-pressed="true"] { --seam: var(--tone); background: var(--cloth); box-shadow: var(--shadow); color: var(--ink); font-weight: 600; }
.search { border: 0; border-radius: 999px; padding: 0.35rem 0.35rem 0.35rem 1rem; background: var(--cloth); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--rule); }
.search:focus-within { outline-color: var(--clay-blue-deep); }

/* Panels are calm cloth patches with a quiet seam; nothing on a reading surface moves. */
.patch, .profile-evidence, .parts-section, .empty, .log, .sheet { border: 1px solid rgb(198 170 149 / 0.75); border-radius: var(--r); background: var(--cloth); box-shadow: var(--shadow); }
.parts-section { overflow: hidden; }
.empty { border-style: dashed; border-width: 1.5px; box-shadow: none; }
.profile-evidence { position: relative; padding: 1.5rem 1.7rem 0; }
.cap-head h2, .bar-head h2 { font-size: 1.3rem; }
.blueprint-art { background-color: var(--clay-blue); border-color: var(--clay-blue-deep); border-radius: var(--r); box-shadow: 5px 6px 0 -2px var(--cloth), 6px 7px 0 -2px var(--rule), var(--lift-2); }
/* The stitched sheet draws its own paper, grid, tilt and shadow inside the SVG: no CSS rotation, so it stays sharp. */
.blueprint-art.stitched { background: none; border: 0; border-radius: 0; box-shadow: none; transform: none; }
.blueprint-art.stitched::after { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .bp-draw .bp-thread { stroke-dasharray: 1; animation: bp-sew 1.2s cubic-bezier(0.45, 0, 0.25, 1) both; }
  .bp-draw .bp-tail { stroke-dasharray: 1; animation: bp-sew 0.3s ease-out 1.15s both; }
  .bp-draw .bp-needle { transform-box: fill-box; transform-origin: center; animation: bp-settle 0.45s cubic-bezier(0.16, 1, 0.3, 1) 1.05s both; }
}
@keyframes bp-sew { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bp-settle { from { opacity: 0; transform: translate(4px, -6px) rotate(-7deg); } to { opacity: 1; transform: none; } }

/* The estimate is one fact among others: a calm cloth panel, the range in ink, the method one click away. */
.money { color: var(--ink); background: var(--cloth); border: 1px solid rgb(198 170 149 / 0.75); box-shadow: var(--shadow); padding: clamp(1.4rem, 3vw, 2.1rem); gap: 0.85rem; }
.money::before { inset: 7px; border: 1.5px dashed var(--rule); border-radius: calc(var(--r) - 5px); outline: 0; }
.money::after { display: none; }
.money .label { color: var(--ink-soft); }
.money .figure { font: 800 clamp(1.9rem, 3.2vw, 2.7rem)/1.05 var(--display); letter-spacing: -0.02em; text-shadow: none; color: var(--ink); }
.money .cash .sign { color: var(--ink-soft); font-size: 0.75em; vertical-align: 0.15em; }
.money .figure .to { color: var(--ink-soft); font: 400 var(--fs-body)/1 var(--text); vertical-align: 0.35em; }
.money .facts { color: var(--ink-soft); font-size: var(--fs-small); }
.money .facts b { color: var(--ink); }
.money .estimate-note { margin: 0; color: var(--ink-soft); font-size: var(--fs-small); }
.money details { color: var(--ink-soft); border-top-color: var(--rule); }
.money summary { color: var(--ink); }
.money :focus-visible { outline-color: var(--indigo); }

/* Report folders take the clay colours; the money on them reads in ink, not green. */
:is(.folder-card, .recent-link, .example-chip)[data-tone="coral"] { --folder-color: var(--clay-red); --folder-tab-ink: var(--cloth); }
:is(.folder-card, .recent-link, .example-chip)[data-tone="cobalt"] { --folder-color: var(--clay-blue); --folder-tab-ink: var(--cloth); }
:is(.folder-card, .recent-link, .example-chip)[data-tone="yellow"] { --folder-color: var(--clay-yellow); --folder-tab-ink: var(--ink); }
.folder-tab { border-radius: 12px 14px 0 0; font-size: var(--fs-small); font-weight: 600; padding: 0.2rem 1rem; height: 28px; }
.folder-content { border-radius: 0 var(--r) var(--r) var(--r); box-shadow: var(--shadow); }
.folder-content::after { border: 1.5px dashed color-mix(in srgb, var(--folder-color) 35%, transparent); border-radius: calc(var(--r) - 6px); }
.folder-title { font-weight: 800; letter-spacing: -0.02em; }
.folder-money { --money: var(--ink); }
.folder-value { font: 800 clamp(1.4rem, 1.9vw, 1.8rem)/1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.folder-value.none { font: 400 var(--fs-body)/1.3 var(--text); color: var(--ink-soft); }
.tape { background: repeating-linear-gradient(90deg, rgb(122 74 43 / 0.2) 0 1px, transparent 1px 10%), rgb(122 74 43 / 0.1); }
.tape i, .row .size .tape i { background: var(--folder-color, var(--clay-blue)); }
.span-tag { border-color: var(--rule); color: var(--ink-soft); font-size: var(--fs-small); }
.worth, .price { color: var(--ink); }
.row .size .tape { background: var(--sunk); }

/* Three calls on screen. Needs more evidence is a state of the evidence, drawn quietly, not a fourth call. */
.pill { padding: 0.3rem 0.85rem 0.3rem 0.7rem; border-radius: 999px; background: color-mix(in srgb, var(--call) 11%, var(--cloth)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--call) 45%, transparent); color: var(--call); font-weight: 600; }
.pill > span { display: grid; line-height: 1.25; }
.pill small { font-weight: 400; color: var(--ink-soft); }
.pill:has(small) { border-radius: 14px; }
.call-build { --call: var(--clay-red-deep); --call-fill: var(--clay-red); }
.call-addon { --call: var(--clay-blue-deep); --call-fill: var(--clay-blue); }
.call-skip { --call: var(--clay-brown); --call-fill: var(--clay-brown); }
.verdict { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.4rem 0.6rem; }
.conf { font-size: var(--fs-small); color: var(--ink-soft); white-space: nowrap; }
.conf::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.35rem; border-radius: 50%; border: 1.5px solid var(--ink-soft); vertical-align: 0.02em; }
.conf-high::before { background: var(--ink-soft); }
.conf-medium::before { background: linear-gradient(90deg, var(--ink-soft) 50%, transparent 50%); }
.safety { padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--clay-yellow); color: var(--ink); font-size: var(--fs-small); font-weight: 600; }

/* The ten-second brief: counts by call, where to start, what the lines can make, the sized total and the sources. */
.brief-summary { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.4rem 2.4rem; padding: clamp(1.4rem, 3vw, 2.1rem); border: 1px solid rgb(198 170 149 / 0.75); border-radius: var(--r); background: var(--cloth); box-shadow: var(--shadow); position: relative; }
.brief-summary::before { content: ""; position: absolute; inset: 7px; border: 1.5px dashed var(--rule); border-radius: calc(var(--r) - 5px); pointer-events: none; }
.tally { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; list-style: none; margin: 0; padding: 0; }
.tally li { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.8rem 1.1rem; border-radius: var(--r-s); background: color-mix(in srgb, var(--call-fill) 13%, var(--cloth)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--call-fill) 40%, transparent); color: var(--call); }
.tally b { font: 800 clamp(1.8rem, 2.6vw, 2.4rem)/1 var(--display); }
.tally span { font-weight: 600; }
.start-here h2, .how h2 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.start-here ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.45rem; }
.start-here li a { font-weight: 700; }
.start-here li span { color: var(--ink-soft); }
.lines-line { margin-top: 0.9rem; font-weight: 600; }
.summary-facts { display: grid; gap: 1.2rem; align-content: start; }
.sized-figure { font: 800 clamp(1.6rem, 2.4vw, 2.1rem)/1.1 var(--display); margin-top: 0.2rem; }
.sized-figure .sign { font-size: 0.75em; color: var(--ink-soft); }
.sized-figure .range-to { font: 400 var(--fs-body) var(--text); color: var(--ink-soft); }
.sized-none { margin-top: 0.2rem; font-weight: 600; }
.groups { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0.35rem 0 0.4rem; padding: 0; }
.groups li { padding: 0.15rem 0.7rem; border-radius: 999px; background: var(--sunk); font-size: var(--fs-small); }

/* Your capabilities: the same toggles on a report and on Makers. */
.caps-panel { margin-top: 1.3rem; padding: 1.5rem 1.7rem 0.4rem; border: 1px solid rgb(198 170 149 / 0.75); border-radius: var(--r); background: var(--cloth); box-shadow: var(--shadow); }
.caps-note { margin: 0.4rem 0 0.9rem; max-width: 80ch; color: var(--ink-soft); font-size: var(--fs-small); }
.caps-panel > .profile-caveat { margin-top: 0.9rem; }
.caps-panel .source-review { margin-top: 0.8rem; }

/* An opened part: the call, the problem, every finding as a card, the facts and a filled brief. */
.call-block { display: grid; gap: 0.45rem; padding: 1rem 1.2rem; border-radius: var(--r-s); background: color-mix(in srgb, var(--call-fill) 8%, var(--cloth)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--call-fill) 30%, transparent); }
.call-block .reason { margin: 0; max-width: 75ch; color: var(--ink); font-size: var(--fs-body); }
.raise, .problem { max-width: 80ch; }
.raise { color: var(--ink-soft); font-size: var(--fs-small); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.fcard { display: grid; gap: 0.35rem; align-content: start; padding: 0.8rem 0.95rem; border-radius: var(--r-s); background: #fbf4ec; box-shadow: inset 0 0 0 1px rgb(198 170 149 / 0.7); font-size: var(--fs-small); min-width: 0; }
.fcard .title { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.fcard .title:hover { text-decoration: underline; }
.fcard .meta { display: flex; flex-wrap: wrap; gap: 0.15rem 0.7rem; color: var(--ink-soft); }
.fcard .src { display: inline-flex; align-items: center; gap: 0.35rem; }
.fcard .nums { display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; align-items: baseline; }
.empty-card { color: var(--ink-soft); }
.opportunity-brief { padding: 1rem 1.2rem; border: 1.5px dashed var(--rule); border-radius: var(--r-s); }
.brief3 { display: grid; gap: 0.5rem; margin: 0.6rem 0 0.9rem; }
.brief3 > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.8rem; }
.brief3 dt { color: var(--ink-soft); }
.brief3 dd { margin: 0; max-width: 75ch; }
.fit-needs { color: var(--clay-red-deep); }
.fit-fits { color: var(--clay-green-deep); }
.how { margin-top: 1.5rem; padding: 1.5rem 1.7rem; border: 1px solid rgb(198 170 149 / 0.75); border-radius: var(--r); background: var(--cloth); box-shadow: var(--shadow); display: grid; gap: 0.8rem; }
.how table { font-size: var(--fs-small); }
.makers-count { padding: 1.2rem 0 1rem; }
.tile .verdict { justify-self: start; }
.built-later { padding: 0.1rem 0.65rem; border-radius: 999px; background: color-mix(in srgb, var(--clay-brown) 14%, var(--cloth)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--clay-brown) 45%, transparent); color: var(--clay-brown-deep); font-size: var(--fs-small); font-weight: 600; white-space: nowrap; }
.acted { margin-top: 1rem; }
.acted a { font-weight: 600; }
.stitch-line { margin: 0.2rem 0 0.15rem; font-weight: 600; }

@media (max-width: 940px) {
  .brief-summary { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .tally { grid-template-columns: minmax(0, 1fr); }
  .brief3 > div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
}
.steps li.now { border-top-color: var(--clay-red); }

@media (max-width: 1120px) {
  :root { --sidebar: 200px; --edge: 2rem; }
  .sidebar { padding-left: 0.9rem; padding-right: 0.9rem; }
  .sidebar nav a[aria-current="page"]::before { left: -0.9rem; }
  .brand { font-size: 1.2rem; gap: 0.5rem; }
  .research-home { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 2rem; }
  .desk-intro h1 { font-size: clamp(3.2rem, 5.6vw, 4.6rem); }
  .intro-copy { font-size: var(--fs-small); }
  .folder-grid { gap: 1rem; }
  .folder-content { padding: 1.25rem 1.15rem 1rem; }
  .row > summary { grid-template-columns: 1.5rem minmax(0, 1fr) auto 1rem; }
  .row .size { grid-column: 2; grid-row: 2; }
  .row > summary .verdict { grid-column: 3; grid-row: 1; justify-self: end; }
  .row .chev { grid-column: 4; grid-row: 1; }
}
@media (max-width: 940px) {
  .research-home { grid-template-columns: minmax(0, 1fr); padding-top: 2.8rem; gap: 2.5rem; }
  .desk-intro h1 { font-size: 4.6rem; }
  .intro-copy { max-width: 48ch; }
  .blueprint-art { display: none; }
  .folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .folder-title { font-size: 1.4rem; }
  .bento > li, .bento.even > li { grid-column: span 6; }
  .part-assessment { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
  .part-rationale { padding-left: 0; border-left: 0; }
  .process-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --edge: 1.25rem; }
  .sidebar { position: sticky; inset: 0 0 auto; width: 100%; padding: 1rem var(--edge) 0; border-right: 0; border-bottom: 1px solid var(--line); background: var(--sidebar-bg); }
  .brand { width: fit-content; padding: 0; font-size: 1.2rem; }
  .side-section, .side-bottom { display: none; }
  .sidebar nav { display: flex; gap: 1.2rem; margin-top: 0.8rem; }
  .sidebar nav a { gap: 0.4rem; min-height: 39px; border-radius: 0; padding: 0.5rem 0.1rem 0.65rem; font-size: var(--fs-small); }
  .sidebar nav a:hover, .sidebar nav a[aria-current="page"] { background: transparent; }
  .sidebar nav a[aria-current="page"]::before { inset: auto 0 -1px; width: auto; height: 3px; border-radius: 2px 2px 0 0; }
  .nav-icon { width: 16px; height: 16px; }
  .workspace { margin-left: 0; min-height: calc(100vh - 105px); }
  .workspace-top { min-height: 43px; }
  #breadcrumb { font-size: var(--fs-small); }
  main { padding-bottom: 3rem; }
  .research-home { padding: 2.4rem 0 2.1rem; }
  .desk-intro h1 { font-size: clamp(3.2rem, 11vw, 4.6rem); }
  .desk-intro > .label { margin-bottom: 1rem; }
  .intro-copy { margin-top: 1.2rem; font-size: var(--fs-body); }
  .desk-intro .search { margin-top: 1.5rem; }
  .section-heading { margin-bottom: 1.3rem; }
  .section-heading h2 { font-size: 1.3rem; }
  .folder-content { min-height: 220px; }
  .page-head { padding-top: 2rem; }
  .page-head h1 { font-size: 2.5rem; }
  .report-head { padding-top: 2rem; gap: 1rem; }
  .report-head h1 { font-size: 2.3rem; }
  .money .figure { font-size: clamp(2.1rem, 8vw, 3.4rem); }
  .money .figure small { display: block; vertical-align: 0; margin: 0 0 0.6rem; }
  .money .facts { gap: 0.5rem 1.2rem; font-size: var(--fs-small); }
  .profile-evidence { padding: 1.2rem; }
  .profile-evidence, .parts-section { scroll-margin-top: 7rem; }
  .source-check { min-height: 44px; }
  .evidence-facts > div { grid-template-columns: 1fr; gap: 0.1rem; }
  .row > summary { grid-template-columns: 1.2rem minmax(0, 1fr) 1rem; gap: 0.4rem 0.65rem; padding: 1rem; }
  .row .name h3 { font-size: var(--fs-body); }
  .row .size { grid-column: 2; grid-row: 2; }
  .row > summary .verdict { grid-column: 2; grid-row: 3; justify-self: start; }
  .row .chev { grid-column: 3; grid-row: 1; }
  .row .inside { padding: 1rem 1rem 1.2rem; }
  .bar-head { padding: 0.5rem 1rem; }
  .parts-note { padding-left: 1rem; padding-right: 1rem; }
  .finding { grid-template-columns: 1rem minmax(0, 1fr); }
  .finding .nums { grid-column: 2; align-items: start; padding-left: 0; max-width: none; text-align: left; }
  .text-action, .seg button { min-height: 44px; }
  .why > summary { flex-wrap: wrap; align-content: center; gap: 0.15rem 0.5rem; }
  .process-options { grid-template-columns: minmax(0, 1fr); }
  .process-option { min-height: 54px; }
  .meters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meter { padding: 1rem; }
}
@media (max-width: 560px) {
  .folder-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .folder-content { min-height: 216px; padding: 1.45rem 1.4rem 1.1rem; }
  .folder-title { font-size: 1.65rem; max-width: 20ch; }
  .folder-meta { font-size: var(--fs-small); }
  .bento > li, .bento.even > li { grid-column: span 12; }
  .tile { min-height: 12rem; }
  .example-searches { gap: 0.4rem; }
  .example-searches > span:first-child { width: 100%; }
  .search input { font-size: var(--fs-small); padding-left: 0.55rem; }
  .search .btn { padding-left: 0.9rem; padding-right: 0.9rem; }
  .chip { min-height: 40px; }
  .section-heading a { font-size: var(--fs-small); }
  .table { font-size: var(--fs-small); }
  .facts3 > div { grid-template-columns: 7.5rem minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .chip, .text-action, .seg button, .sidebar nav a, .example-chip, .story-link { transition: background-color 0.16s, color 0.16s, border-color 0.16s, translate 0.25s var(--ease), box-shadow 0.25s var(--ease); }
  :is(.btn, .chip, .seg button, .example-chip, .story-link, .sidebar nav a)::after { transition: border-color 0.2s, scale 0.25s var(--ease); }
  :is(.btn, .chip, .example-chip, .story-link):hover { translate: 0 -1px; }
  :is(.btn, .chip, .seg button, .example-chip, .story-link):active { translate: 0 1px; }
  :is(.btn, .chip, .seg button, .example-chip, .story-link):active::after { scale: 0.96; }
  .folder-card { transition: transform 0.25s var(--ease); }
  .go, .go svg, .tape i { transition: background-color 0.2s, color 0.2s, transform 0.3s var(--ease), width 0.5s var(--ease); }
  .folder-card:hover .go svg { transform: translateX(3px); }
  .folder-card:hover { transform: translateY(-3px); }
  .folder-content, a.patch { transition: box-shadow 0.25s var(--ease); }
  .folder-card:hover .folder-content { box-shadow: 1px 3px 0 -1px #e6e2d5, 1px 4px 0 -1px #c7c8ba, 0 16px 20px -15px rgb(47 44 25 / 0.3); }
}
@media print {
  html { background: #fff; font-size: 10.5pt; }
  .sidebar, .workspace-top, .actions, .seg, .skip, .source-check, .evidence-toggle, .edit-processes, .process-editor, .caps-panel .chip:not([aria-pressed="true"]), .caps-panel .source-review, .opportunity-brief .actions { display: none !important; }
  .workspace { margin: 0; min-height: 0; background: #fff; }
  main { max-width: none; padding: 0; }
  .money { background: #fff; color: #000; border: 1.5pt solid #000; text-shadow: none; }
  .money::before, .money::after { display: none; }
  .money .cash .sign, .money .facts b { color: #000; }
  .money .label, .money .facts, .money .figure small, .money .figure .to, .money details, .money summary { color: #333; }
  .patch, .profile-evidence, .parts-section, .brief-summary, .caps-panel, .how { box-shadow: none; border: 0.75pt solid #999; background: #fff; break-inside: avoid; }
  .brief-summary::before { display: none; }
  .row.patch { break-inside: avoid; }
  .finding .title::after { content: " " attr(href); font: 400 7pt var(--mono); }
}
.replay-note { margin-top: 0.6rem; font-size: var(--fs-small); color: var(--ink-soft); }
.search-note { margin-top: 0.8rem; max-width: 40rem; font-size: var(--fs-small); color: var(--ink-soft); }
.replay-ticker { min-height: 1.5em; font-size: var(--fs-small); color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-note .saved-chips { margin-top: 0.6rem; }
