/* Design lab: the brand foundation every concept shares (tokens and fonts from catalogue/app/public/base.css), the production shell reproduced
   as context (catalogue/app/css/app.css § shell), overlays, the prototype ribbon and controls. Concept styles live in each concept's own file. */
@font-face { font-family: 'Londrina Solid'; src: url('fonts/londrina-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Londrina Solid'; src: url('fonts/londrina-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/jbmono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/jbmono-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/jbmono-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --green: #064F2B; --green-2: #0B6B3A; --green-3: #36873D; --cream: #F5F0EA; --paper: #FFF9F0; --card: #FFFDF8; --yellow: #FDC308; --yellow-ink: #4A3600; --yellow-soft: #FFF3C2;
  --red: #C42B2B; --purple: #8F2998; --orange: #F57D18;
  --ink: #17261D; --muted: #55645A; --faint: #8A968D; --line: rgba(6,79,43,.14); --line-2: rgba(6,79,43,.24); --track: #ece6dc; --soft: #f1ece4;
  --pos: #25692E; --pos-bg: #E5F2E4; --neg: #B02020; --neg-bg: #FBE6E3; --warn: #8A5A00; --warn-bg: #FFF1C9; --info-bg: #EAF1EC;
  --ch-restaurant: #064F2B; --ch-takeaway: #F57D18; --ch-collection: #8F2998; --cmp: #1FA4CF; --cmp-ink: #0E6F8F;
  --cat-staff: #FDC308; --cat-tax: #1747B8; --cat-suppliers: #36873D; --cat-property: #8F2998; --cat-financing: #F57D18; --cat-planned: #0E7C86; --cat-other: #8A968D;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: 'Londrina Solid', 'Arial Narrow', sans-serif; --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ctl-h: 44px; --ease: cubic-bezier(.2, .7, .2, 1); --dur-fast: 140ms; --dur: 180ms; --dur-sheet: 220ms;
  --side-w: 252px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 15px/1.55 var(--font); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1, 'cv11' 1; letter-spacing: -0.003em; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ico { width: 22px; height: 22px; flex: none; }
.skip { position: absolute; left: 12px; top: 10px; z-index: 400; padding: 10px 14px; border-radius: 10px; background: var(--yellow); color: var(--green); font: 700 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; outline: 3px solid var(--green); outline-offset: 2px; }

/* ------------------------------------------------------------------ the shell (reproduced; not part of the exploration) */
.app { min-height: 100vh; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
.sb { background: var(--green); color: #fff; display: flex; flex-direction: column; padding: 14px 12px 0; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; z-index: 5; }
.sb-brand { flex: none; display: block; padding: 0 4px 12px; text-decoration: none; color: inherit; border-radius: 10px; }
.sb-brand img.full { display: block; width: 100%; max-width: 200px; height: auto; margin: 0 auto; }
.sb-brand .rail-icon { display: none; }
.sb-product { display: block; max-width: 200px; margin: 5px auto 0; padding-left: 58px; text-align: center; font: 700 10.5px/1.2 var(--mono); letter-spacing: .22em; text-indent: .22em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.sb-nav { flex: none; display: grid; gap: 2px; }
.sb-nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid transparent; color: rgba(255,255,255,.88); text-decoration: none; font: 400 19px/1.15 var(--display); text-transform: uppercase; letter-spacing: .04em; transition: background var(--dur-fast) var(--ease); }
@media (hover: hover) { .sb-nav a:hover { background: rgba(255,255,255,.09); color: #fff; } }
.sb-nav a[aria-current="page"] { background: rgba(253,195,8,.16); border-color: rgba(253,195,8,.55); color: #fff; }
.sb-nav a[aria-current="page"]::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 22px; width: 4px; border-radius: 0 4px 4px 0; background: var(--yellow); }
.sb-sep { height: 0; margin: 6px 12px; border: 0; border-top: 1px solid rgba(255,255,255,.18); }
.sb-foot { flex: none; margin-top: auto; position: sticky; bottom: 0; display: grid; gap: 2px; padding: 10px 0 8px; background: var(--green); font-size: 12.5px; color: rgba(255,255,255,.72); line-height: 1.3; }
.sb-acct { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-left: 12px; }
.sb-acct > .ico { color: rgba(255,255,255,.7); }
.sb-who { flex: 1 1 auto; min-width: 0; display: grid; } .sb-name { color: #fff; font-weight: 600; font-size: 13.5px; }
.sb-out { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 10px; background: transparent; color: rgba(255,255,255,.86); cursor: pointer; }
.sb-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: rgba(255,255,255,.86); font: 700 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; text-align: left; }
@media (hover: hover) { .sb-link:hover, .sb-out:hover { background: rgba(255,255,255,.09); color: #fff; } }
@media (pointer: fine) { .sb-nav a, .sb-link, .sb-acct { min-height: 40px; } }
.app[data-rail="on"] { --side-w: 80px; }
.app[data-rail="on"] .sb-brand img.full, .app[data-rail="on"] .sb-product, .app[data-rail="on"] .lbl, .app[data-rail="on"] .sb-who, .app[data-rail="on"] .sb-out { display: none; }
.app[data-rail="on"] .sb-brand .rail-icon { display: block; width: 48px; height: 48px; margin: 0 auto; border-radius: 12px; }
.app[data-rail="on"] .sb-nav a, .app[data-rail="on"] .sb-link, .app[data-rail="on"] .sb-acct { justify-content: center; padding: 0; }
.app[data-rail="on"] .sb-collapse .ico { transform: scaleX(-1); }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--green); color: #fff; border: 0; border-radius: 10px; cursor: pointer; flex: none; }
.top { display: flex; align-items: flex-start; gap: 14px 24px; padding: 18px 32px 6px; }
.top-title { flex: 1 1 auto; min-width: 0; }
.top h1 { margin: 0; font: 400 34px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--green); }
.top-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.top-aside { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; min-width: 0; }
.top-aside:empty { display: none; }
.content { flex: 1; min-width: 0; padding: 8px 32px 56px; }
#main:focus { outline: none; }
.sb-scrim { position: fixed; inset: 0; background: rgba(10,30,18,.5); z-index: 110; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sb { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 120; transform: translateX(-102%); visibility: hidden; transition: transform var(--dur-sheet) var(--ease), visibility 0s linear var(--dur-sheet); }
  .app[data-nav="open"] .sb { transform: none; visibility: visible; box-shadow: 14px 0 40px rgba(0,0,0,.3); transition: transform var(--dur-sheet) var(--ease); }
  .sb-collapse { display: none; }
  .menu-btn { display: inline-flex; }
  .top { padding: 12px 16px 4px; align-items: center; }
  .top h1 { font-size: 28px; }
  .content { padding: 6px 16px 48px; }
}

/* ------------------------------------------------------------------ the prototype ribbon and controls (not part of any design) */
.proto-ribbon { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 4px 8px 4px 32px; background: #E7E0D3; color: #3d4a41; font: 500 12px/1.3 var(--font); border-bottom: 1px solid rgba(6,79,43,.12); }
.pr-tag { flex: none; padding: 3px 7px; border-radius: 4px; background: var(--ink); color: var(--cream); font: 700 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pr-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid rgba(23,38,29,.22); border-radius: 8px; background: rgba(255,255,255,.55); cursor: pointer; font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.pr-btn .ico { width: 16px; height: 16px; }
@media (hover: hover) { .pr-btn:hover { background: #fff; } }
@media (max-width: 960px) { .proto-ribbon { padding-left: 16px; } }
@media (max-width: 640px) { .pr-long { display: none; } .pr-btn span { display: none; } .pr-btn { width: 44px; justify-content: center; padding: 0; } }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; max-width: min(560px, calc(100vw - 32px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; font: 500 14px/1.45 var(--font); box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.pc { display: grid; gap: 18px; }
.pc-intro { margin: 0; color: var(--muted); font-size: 14px; }
.pc-concepts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pc-concepts a { display: grid; gap: 2px; min-height: 56px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--card); }
.pc-concepts a b { font: 700 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--green); }
.pc-concepts a span { font-size: 14px; }
.pc-concepts a[aria-current="page"] { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.pc-set { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; }
.pc-set legend { padding: 0 0 6px; font: 700 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pc-opt { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.pc-opt:has(input:checked) { background: var(--info-bg); }
.pc-opt input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.pc-opt span { display: grid; gap: 1px; } .pc-opt b { font-weight: 600; } .pc-opt small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.pc-reset { justify-self: start; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); cursor: pointer; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--green); }

/* ------------------------------------------------------------------ overlays: a panel beside on a wide screen, a sheet from the bottom on a phone */
html.ov-on { overflow: hidden; }
.ov-root { position: fixed; inset: 0; z-index: 200; }
.ov-scrim { position: absolute; inset: 0; background: rgba(12,28,18,.36); opacity: 0; transition: opacity var(--dur-sheet) var(--ease); }
.ov { position: absolute; display: flex; flex-direction: column; background: var(--card); color: var(--ink); box-shadow: -18px 0 50px rgba(6,40,22,.18); transition: transform var(--dur-sheet) var(--ease); }
.ov-root.in .ov-scrim { opacity: 1; }
.ov-grip { display: none; }
.ov-head { flex: none; display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 12px 24px; border-bottom: 1px solid var(--line); }
.ov-titles { flex: 1; min-width: 0; }
.ov-kicker { margin: 0 0 4px; font: 700 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.ov-title { margin: 0; font: 400 26px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--green); }
.ov-title:focus { outline: none; }
.ov-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -4px 0 0; border: 1px solid var(--line-2); border-radius: 50%; background: var(--card); cursor: pointer; color: var(--ink); }
.ov-close svg { width: 20px; height: 20px; }
.ov-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 24px 32px; -webkit-overflow-scrolling: touch; }
@media (min-width: 1024px) {
  .ov { top: 0; right: 0; bottom: 0; width: min(540px, 46vw); transform: translateX(102%); }
  .ov.ov-wide { width: min(760px, 62vw); }
  .ov-root.in .ov { transform: none; }
}
@media (max-width: 1023px) {
  .ov { left: 0; right: 0; bottom: 0; max-height: 92dvh; border-radius: 20px 20px 0 0; transform: translateY(102%); box-shadow: 0 -18px 50px rgba(6,40,22,.2); }
  .ov-root.in .ov { transform: none; }
  .ov-grip { display: block; width: 44px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: var(--line-2); }
  .ov-head { padding: 10px 16px 10px 20px; }
  .ov-body { padding: 14px 20px 28px; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .ov-title { font-size: 22px; }
}
@media (min-width: 640px) and (max-width: 1023px) { .ov { left: 50%; right: auto; width: min(720px, 100vw); transform: translate(-50%, 102%); } .ov-root.in .ov { transform: translate(-50%, 0); } }

/* ------------------------------------------------------------------ shared states: loading outlines, failures */
@keyframes shimmer { 0% { background-position: -320px 0; } 100% { background-position: 320px 0; } }
.skel { border-radius: 8px; background: linear-gradient(90deg, rgba(6,79,43,.06) 0, rgba(6,79,43,.11) 120px, rgba(6,79,43,.06) 240px) var(--soft); background-size: 640px 100%; animation: shimmer 1.4s linear infinite; }
[data-wait="long"] .wait-note::after { content: ' Still working…'; }
.wait-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
