/*
  Agent Keireki design tokens — the single source of truth for the Origami Forest UI.
  Color names describe materials; spacing follows a 4px base rhythm.
*/
:root {
  color-scheme: dark;
  --ink-950: #070a08;
  --ink-900: #0b100d;
  --ink-800: #121a15;
  --ink-700: #1a241d;
  --forest-700: #247a42;
  --forest-500: #54b66d;
  --forest-400: #82d492;
  --paper-50: #f7f8f2;
  --paper-300: #bbc4bb;
  --wood-700: #62391f;
  --wood-500: #9c623a;
  --wood-300: #c99263;
  --danger-500: #d76b63;
  --warning-500: #d7ae62;
  --line: rgba(187, 196, 187, .15);
  --line-strong: rgba(130, 212, 146, .32);
  --surface: rgba(18, 26, 21, .88);
  --surface-raised: #18211b;
  --shadow: 0 28px 80px rgba(0, 0, 0, .32);
  --radius-sm: .5rem;
  --radius-md: .875rem;
  --radius-lg: 1.25rem;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --focus: 0 0 0 3px var(--ink-900), 0 0 0 5px var(--forest-400);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background-color: var(--ink-950);
  background-image: linear-gradient(rgba(130, 212, 146, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(130, 212, 146, .035) 1px, transparent 1px), radial-gradient(circle at 72% 8%, rgba(36, 122, 66, .14), transparent 36rem);
  background-size: 48px 48px, 48px 48px, auto;
  color: var(--paper-50);
  font: 400 1rem/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--forest-400); text-decoration-thickness: .08em; text-underline-offset: .22em; }
a:hover { color: var(--paper-50); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 0; box-shadow: var(--focus); border-radius: var(--radius-sm); }
::selection { color: var(--ink-950); background: var(--forest-400); }
.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; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: 1rem; padding: .7rem 1rem; background: var(--paper-50); color: var(--ink-950); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: absolute; z-index: 30; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; width: min(100% - 2rem, 1320px); height: 76px; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--paper-50); font-size: .94rem; font-weight: 720; letter-spacing: .02em; text-decoration: none; }
.brand:hover { color: var(--forest-400); }
.brand-mark { position: relative; display: inline-grid; grid-template-columns: repeat(3, .6rem); align-items: end; width: 1.9rem; height: 1.6rem; }
.brand-mark i { display: block; background: var(--forest-500); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.brand-mark i:first-child { height: 65%; }.brand-mark i:nth-child(2) { height: 100%; margin-left: -.22rem; }.brand-mark i:last-child { height: 52%; margin-left: -.4rem; background: var(--forest-700); }
.public-nav { display: flex; align-items: center; gap: 1.5rem; }
.public-nav > a:not(.button) { color: var(--paper-300); font-size: .9rem; text-decoration: none; }
.public-nav > a:not(.button):hover { color: var(--paper-50); }
.nav-toggle, .sidebar-toggle { display: none; border: 0; background: transparent; color: var(--paper-50); cursor: pointer; }
.nav-toggle span:not(.sr-only), .sidebar-toggle span:not(.sr-only) { display: block; width: 1.45rem; height: 1px; margin: .35rem; background: currentColor; }

.button { position: relative; display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: .65rem; padding: .72rem 1.2rem; border: 1px solid var(--forest-500); border-radius: var(--radius-sm); background: var(--forest-500); color: var(--ink-950); font-weight: 760; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease; }
.button::after { position: absolute; inset: 0 0 auto auto; width: .7rem; height: .7rem; background: color-mix(in srgb, var(--paper-50) 46%, var(--forest-500)); content: ""; clip-path: polygon(0 0, 100% 0, 100% 100%); opacity: .7; }
.button:hover { transform: translateY(-2px); border-color: var(--forest-400); background: var(--forest-400); color: var(--ink-950); }
.button:active { transform: translateY(0); }
.button:disabled, .button[aria-disabled="true"] { opacity: .42; cursor: not-allowed; transform: none; }
.button-small { min-height: 38px; padding: .55rem .9rem; font-size: .86rem; }
.button-full { width: 100%; }
.button-quiet { border-color: var(--line-strong); background: transparent; color: var(--paper-50); }
.button-quiet:hover { background: var(--ink-700); color: var(--paper-50); }
.button-danger { border-color: var(--danger-500); background: transparent; color: #f0aaa4; }
.button-danger:hover { background: var(--danger-500); color: var(--ink-950); }
.button-google { border-color: var(--line); background: var(--paper-50); color: #1c241f; }
.button.is-loading, form.is-loading .button[type="submit"] { color: transparent; pointer-events: none; }
.button.is-loading::before, form.is-loading .button[type="submit"]::before { position: absolute; width: 1rem; height: 1rem; border: 2px solid var(--ink-950); border-right-color: transparent; border-radius: 50%; content: ""; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.eyebrow, .panel-label { margin: 0 0 .5rem; color: var(--forest-400); font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero { display: grid; min-height: 100svh; place-content: center; justify-items: center; padding: 9rem 1.25rem 6rem; overflow: hidden; text-align: center; }
.hero::before { position: absolute; z-index: -1; width: min(64vw, 54rem); height: min(64vw, 54rem); border: 1px solid rgba(130, 212, 146, .08); border-radius: 50%; content: ""; box-shadow: inset 0 0 9rem rgba(36, 122, 66, .08), 0 0 0 5rem rgba(36, 122, 66, .02); }
.hero-kicker { margin-bottom: 1.1rem; color: var(--wood-300); font-size: .72rem; font-weight: 750; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { position: relative; margin: 0; color: var(--paper-50); font: 500 clamp(4rem, 12vw, 10.5rem)/.82 var(--font-display); letter-spacing: -.065em; transform-origin: top left; will-change: transform; animation: hero-unfold 0.85s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes hero-unfold { from { opacity: 0; clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); } to { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); } }
.hero h1 em { color: var(--forest-400); font-weight: 500; }
.hero-subtitle { max-width: 52rem; margin: 2rem auto .5rem; color: var(--paper-50); font: 500 clamp(1.22rem, 2.4vw, 2rem)/1.35 var(--font-display); }
.hero-copy { max-width: 42rem; margin: .8rem auto 1.8rem; color: var(--paper-300); }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 1.5rem; display: flex; align-items: center; gap: .7rem; color: var(--paper-300); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue span { width: 2.2rem; height: 1px; background: var(--wood-500); transform-origin: left; animation: breathe-line 2.2s ease-in-out infinite; }
@keyframes breathe-line { 50% { transform: scaleX(.55); opacity: .55; } }

.story-section, .map-section { width: min(100% - 2rem, 1200px); min-height: 90vh; margin-inline: auto; padding: 8rem 0; }
.section-heading { max-width: 47rem; margin-bottom: 4rem; }
.section-heading h2, .map-copy h2, .closing-cta h2, .auth-intro h1, .page-heading h1 { margin: 0; color: var(--forest-400); font: 500 clamp(2.3rem, 5vw, 4.6rem)/1.02 var(--font-display); letter-spacing: -.035em; }
.workflow-layout { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(320px, 1fr); gap: clamp(3rem, 9vw, 9rem); align-items: center; }
.phone-stage { position: relative; min-height: 610px; display: grid; place-items: center; }
.phone-shell { position: relative; z-index: 1; width: min(100%, 325px); min-height: 580px; padding: 1.15rem; border: 1px solid var(--line-strong); border-radius: 2.8rem; background: #111914; box-shadow: var(--shadow), inset 0 0 0 7px #090d0a; overflow: hidden; }
.phone-shell::before { display: block; width: 5rem; height: 1.1rem; margin: -.65rem auto 1rem; border-radius: 0 0 1rem 1rem; background: var(--ink-950); content: ""; }
.phone-top { display: flex; align-items: center; justify-content: space-between; padding: .4rem .35rem 1rem; border-bottom: 1px solid var(--line); font-size: .78rem; }
.phone-top span { width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--forest-700); }
.phone-top i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--forest-400); }
.message { max-width: 84%; margin-top: 1rem; padding: .75rem .9rem; border-radius: .85rem; font-size: .78rem; }
.message-user { margin-left: auto; border-bottom-right-radius: .2rem; background: var(--forest-700); }
.message-agent { display: grid; gap: .25rem; border: 1px solid var(--line); border-bottom-left-radius: .2rem; background: var(--ink-800); }
.message-agent small { color: var(--forest-400); }.message-agent span { color: var(--paper-300); }
.file-stack { display: flex; gap: .8rem; align-items: center; margin: .75rem 0 0 .6rem; padding: .7rem; border: 1px solid var(--line); border-radius: .65rem; background: rgba(247, 248, 242, .03); }
.file-stack > span { display: grid; width: 2.4rem; aspect-ratio: 4/5; place-items: center; background: var(--wood-700); color: var(--paper-50); font-size: .58rem; font-weight: 800; clip-path: polygon(0 0, 76% 0, 100% 22%, 100% 100%, 0 100%); }
.file-stack div { display: grid; }.file-stack strong { font-size: .75rem; }.file-stack small { color: var(--paper-300); font-size: .64rem; }
.phone-compose { position: absolute; inset: auto 1rem 1.2rem; display: flex; justify-content: space-between; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 2rem; color: var(--paper-300); font-size: .68rem; }.phone-compose b { color: var(--forest-400); }
.phone-plane { position: absolute !important; z-index: 2; right: 0; top: 38%; width: 7rem !important; }
.steps-list { margin: 0; padding: 0; list-style: none; }
.steps-list li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.8rem 0; border-top: 1px solid var(--line); }
.steps-list li:last-child { border-bottom: 1px solid var(--line); }.steps-list > li > span { color: var(--wood-300); font: 500 1.4rem var(--font-display); }
.steps-list h3 { margin: 0 0 .4rem; font-size: 1.12rem; }.steps-list p { max-width: 35rem; margin: 0; color: var(--paper-300); }

.map-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 4rem; align-items: center; }
.map-copy > p:not(.eyebrow) { color: var(--paper-300); }
.activity-metrics { display: flex; gap: 2rem; margin: 2rem 0 1rem; }.activity-metrics div { min-width: 8rem; }.activity-metrics dt { color: var(--paper-300); font-size: .72rem; }.activity-metrics dd { margin: .2rem 0 0; color: var(--paper-50); font: 500 2.5rem var(--font-display); }
.coming-soon { color: var(--wood-300); font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.world-map { position: relative; padding: 1rem; border: 1px solid var(--line); background: rgba(11, 16, 13, .72); clip-path: polygon(0 0, calc(100% - 1.2rem) 0, 100% 1.2rem, 100% 100%, 0 100%); }
.world-map svg { display: block; width: 100%; }.map-grid { fill: none; stroke: rgba(130, 212, 146, .08); stroke-width: 1; }.continents { fill: rgba(36, 122, 66, .2); stroke: rgba(130, 212, 146, .35); stroke-width: 1; }
.closing-cta { display: grid; width: min(100% - 2rem, 1040px); min-height: 65vh; margin-inline: auto; place-content: center; justify-items: center; text-align: center; }.closing-cta h2 { max-width: 50rem; margin: 0 0 2rem; color: var(--paper-50); font: 500 clamp(2.7rem, 6vw, 5.5rem)/1 var(--font-display); }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; width: min(100% - 2rem, 1200px); margin-inline: auto; padding: 2.5rem 0 3.5rem; border-top: 1px solid var(--line); color: var(--paper-300); font-size: .78rem; }.site-footer p { margin: 0; }.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }.site-footer nav a { font-size: .78rem; }

.auth-page { background-color: #101611; background-image: linear-gradient(rgba(36, 122, 66, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(36, 122, 66, .04) 1px, transparent 1px), radial-gradient(circle at 18% 42%, rgba(84, 182, 109, .11), transparent 30rem); background-size: 48px 48px, 48px 48px, auto; }
.auth-page .site-header { position: relative; }.auth-layout { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(340px, 520px); gap: clamp(2rem, 8vw, 8rem); align-items: center; width: min(100% - 2rem, 1120px); min-height: calc(100svh - 76px); margin-inline: auto; padding: 4rem 0 7rem; }.auth-layout-wide { grid-template-columns: minmax(260px, .55fr) minmax(500px, 1fr); align-items: start; }.auth-intro { position: sticky; top: 7rem; align-self: start; padding-top: 5rem; }.auth-intro h1 { color: var(--paper-50); }.auth-intro > p:not(.eyebrow) { max-width: 34rem; color: var(--paper-300); }.privacy-note { display: flex; gap: .8rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--paper-300); font-size: .82rem; }.privacy-note > span { color: var(--forest-400); }.privacy-note p { margin: 0; }
.paper-panel, .panel { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }.auth-panel { position: relative; padding: clamp(1.25rem, 4vw, 2.4rem); color: var(--paper-50); }.folded-corner { position: relative; clip-path: polygon(0 0, calc(100% - 1.5rem) 0, 100% 1.5rem, 100% 100%, 0 100%); --corner-fold: 1; }.folded-corner::after { position: absolute; top: 0; right: 0; width: 1.5rem; height: 1.5rem; background: linear-gradient(135deg, var(--wood-700) 0%, var(--wood-500) 100%); clip-path: polygon(0 0, 100% 100%, 0 100%); content: ""; opacity: .82; transform-origin: 0 100%; transform: scale(var(--corner-fold, 1)); transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1), opacity .3s ease; box-shadow: -2px 2px 5px rgba(7, 10, 8, .4); }.folded-corner:hover::after { transform: scale(1.12); opacity: .96; }
.form-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }.form-heading span { font: 500 1.6rem var(--font-display); }.form-heading small { color: var(--paper-300); }
fieldset { min-width: 0; margin: 0 0 2rem; padding: 0; border: 0; }legend { width: 100%; margin-bottom: 1rem; padding: 0 0 .55rem; border-bottom: 1px solid var(--line); color: var(--forest-400); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.field { display: grid; gap: .4rem; margin: 0 0 1rem; }.field > span, .field-label { display: block; color: var(--paper-300); font-size: .76rem; font-weight: 700; letter-spacing: .03em; }.field em { font-weight: 400; }.field small { color: var(--paper-300); font-size: .7rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; min-height: 46px; padding: .68rem .78rem; border: 1px solid rgba(187, 196, 187, .24); border-radius: var(--radius-sm); background: rgba(7, 10, 8, .55); color: var(--paper-50); transition: border-color .18s ease, background-color .18s ease; }
textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; }
input:hover, select:hover, textarea:hover { border-color: rgba(130, 212, 146, .5) !important; }
input:focus, select:focus, textarea:focus { border-color: var(--forest-400) !important; background: var(--ink-950) !important; outline: 0; box-shadow: 0 0 0 3px rgba(130, 212, 146, .14); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--danger-500); }
.check-row, .check-group label { display: inline-flex; align-items: center; gap: .55rem; color: var(--paper-300); font-size: .78rem; }.check-row input, .check-group input { accent-color: var(--forest-500); }.check-group { display: flex; gap: 1rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.file-drop { display: flex; min-height: 7rem; align-items: center; justify-content: center; margin-bottom: 1.4rem; border: 1px dashed rgba(130, 212, 146, .45); border-radius: var(--radius-md); background: rgba(36, 122, 66, .08); text-align: center; cursor: pointer; }.file-drop:hover { background: rgba(36, 122, 66, .14); }.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }.file-drop span { display: grid; }.file-drop small { color: var(--paper-300); }
.choice-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: .5rem 0 1rem; }.choice-cards label { position: relative; }.choice-cards input { position: absolute; opacity: 0; }.choice-cards label > span { display: grid; min-height: 5rem; place-content: center; padding: .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ink-900); text-align: center; cursor: pointer; }.choice-cards small { color: var(--paper-300); font-size: .66rem; }.choice-cards input:checked + span { border-color: var(--forest-400); background: rgba(36, 122, 66, .18); }.choice-cards input:focus-visible + span { box-shadow: var(--focus); }
.custom-format { margin: -.2rem 0 1.2rem; padding: 1rem; border-left: 2px solid var(--wood-500); background: rgba(98, 57, 31, .12); }.custom-format[hidden] { display: none; }
.form-between { display: flex; justify-content: space-between; gap: 1rem; margin: -.25rem 0 1.4rem; font-size: .78rem; }.form-foot { margin: 1.3rem 0 0; color: var(--paper-300); text-align: center; font-size: .8rem; }.divider { display: flex; align-items: center; gap: .8rem; margin: 1.25rem 0; color: var(--paper-300); font-size: .7rem; }.divider::before, .divider::after { flex: 1; height: 1px; background: var(--line); content: ""; }.google-g { font-weight: 900; color: #356ac3; }
.notice { margin-bottom: 1.2rem; padding: .8rem .95rem; border: 1px solid; border-radius: var(--radius-sm); font-size: .82rem; }.notice-success { border-color: rgba(130, 212, 146, .45); background: rgba(36, 122, 66, .14); color: #bfe8c7; }.notice-error { border-color: rgba(215, 107, 99, .5); background: rgba(215, 107, 99, .1); color: #f0aaa4; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.app-frame { display: grid; grid-template-columns: 245px 1fr; min-height: 100svh; background: rgba(7, 10, 8, .35); }.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; display: flex; width: 245px; flex-direction: column; padding: 1.4rem 1rem; border-right: 1px solid var(--line); background: rgba(11, 16, 13, .96); backdrop-filter: blur(12px); }.app-brand { padding: .25rem .55rem 2.5rem; }.side-nav { display: grid; gap: .35rem; }.side-nav a { display: flex; align-items: center; gap: .8rem; min-height: 44px; padding: .55rem .75rem; border-left: 2px solid transparent; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--paper-300); font-size: .86rem; text-decoration: none; }.side-nav a span { display: grid; width: 1.4rem; color: var(--wood-300); place-items: center; }.side-nav a:hover { background: var(--ink-800); color: var(--paper-50); }.side-nav a[aria-current="page"] { border-left-color: var(--forest-400); background: rgba(36, 122, 66, .17); color: var(--forest-400); }.sidebar-note { margin: auto .75rem .25rem; color: rgba(187, 196, 187, .52); font-size: .68rem; }
.app-main { grid-column: 2; min-width: 0; }.app-topbar { position: sticky; z-index: 25; top: 0; display: flex; height: 70px; align-items: center; justify-content: flex-end; gap: 1rem; padding: 0 clamp(1rem, 3vw, 2.4rem); border-bottom: 1px solid var(--line); background: rgba(7, 10, 8, .78); backdrop-filter: blur(14px); }.mobile-wordmark { display: none; }.topbar-wallet { display: flex; gap: .5rem; align-items: center; padding-right: 1rem; border-right: 1px solid var(--line); color: var(--paper-300); font-size: .68rem; text-decoration: none; }.topbar-wallet strong { color: var(--forest-400); }.account-menu { position: relative; }.account-menu summary { display: flex; align-items: center; gap: .65rem; color: var(--paper-300); list-style: none; cursor: pointer; }.account-menu summary::-webkit-details-marker { display: none; }.avatar { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid var(--forest-500); border-radius: 50%; background: var(--ink-800); color: var(--forest-400); font-weight: 800; }.account-name { font-size: .78rem; }.account-popover { position: absolute; top: calc(100% + .8rem); right: 0; display: grid; width: 210px; padding: .55rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-raised); box-shadow: var(--shadow); }.account-popover a, .menu-button { width: 100%; padding: .55rem .65rem; border: 0; border-radius: .35rem; background: transparent; color: var(--paper-300); font-size: .78rem; text-align: left; text-decoration: none; cursor: pointer; }.account-popover a:hover, .menu-button:hover { background: var(--ink-700); color: var(--paper-50); }
.workspace { position: relative; width: min(100% - 2rem, 1180px); margin-inline: auto; padding: clamp(2rem, 5vw, 4.5rem) 0 6rem; }.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }.page-heading h1 { font-size: clamp(2.25rem, 5vw, 4.2rem); }.page-heading > div > p:last-child { margin: .65rem 0 0; color: var(--paper-300); }.back-link { display: inline-block; margin-bottom: 1.2rem; font-size: .75rem; text-decoration: none; }
.dashboard-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 1rem; margin-bottom: 1rem; }.panel { position: relative; padding: clamp(1.15rem, 3vw, 1.7rem); border-radius: var(--radius-md); }.panel h2 { margin: 0; font: 500 1.55rem var(--font-display); }.panel p { color: var(--paper-300); }.balance-card { overflow: hidden; }.key-figure { display: block; margin: .2rem 0 .5rem; color: var(--paper-50); font: 500 clamp(2.4rem, 5vw, 4rem)/1 var(--font-display); }.balance-card > a { font-size: .8rem; font-weight: 750; text-decoration: none; }.connection-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }.connection-card > div { max-width: 32rem; }.status-pill { display: inline-flex; padding: .25rem .55rem; border: 1px solid var(--line); border-radius: 3rem; background: var(--ink-900); color: var(--paper-300); font-size: .65rem; white-space: nowrap; }.status-good::before { width: .38rem; height: .38rem; margin: .28rem .4rem 0 0; border-radius: 50%; background: var(--forest-400); content: ""; }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }.panel-heading a { font-size: .78rem; }.table-panel { padding: 0; overflow: hidden; }.table-panel > .panel-heading { padding: 1.5rem 1.5rem 0; }.responsive-table { overflow-x: auto; }table { width: 100%; border-collapse: collapse; }th, td { padding: .9rem 1.2rem; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }th { color: var(--paper-300); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }td { font-size: .78rem; }td strong, td small { display: block; }td small { color: var(--paper-300); }.fit-score { color: var(--forest-400); font-weight: 800; }.row-link { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; }.row-link:hover { border-color: var(--forest-400); }
.empty-state { display: grid; min-height: 260px; place-content: center; justify-items: center; padding: 2rem; text-align: center; }.empty-state h3 { margin: .7rem 0 0; }.empty-state p { margin: .35rem 0; color: var(--paper-300); }.empty-fold { width: 3rem; height: 3.6rem; background: var(--ink-700); clip-path: polygon(0 0, 72% 0, 100% 25%, 100% 100%, 0 100%); box-shadow: inset -1rem 1rem var(--ink-800); }
.wallet-hero { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1rem; padding: 1.8rem; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: rgba(36, 122, 66, .1); }.wallet-hero p { margin: 0; color: var(--paper-300); font-size: .75rem; }.topup-form { display: flex; align-items: end; gap: .7rem; }.field.compact { margin: 0; }.money-input { position: relative; }.money-input i { position: absolute; left: .75rem; top: .7rem; color: var(--paper-300); font-style: normal; }.money-input input { padding-left: 1.7rem !important; }.config-note { position: absolute; right: 1.8rem; bottom: .25rem; font-size: .65rem !important; }.transaction-row { position: relative; display: grid; grid-template-columns: 55px minmax(220px, 1fr) auto auto; gap: 1rem; align-items: center; padding: 1rem 1.3rem; border-top: 1px solid var(--line); }.transaction-date { display: grid; place-items: center; color: var(--paper-300); font-size: .64rem; text-transform: uppercase; }.transaction-date strong { color: var(--paper-50); font: 500 1.45rem var(--font-display); }.transaction-main h3 { margin: 0; font-size: .9rem; }.transaction-main p { margin: .15rem 0 0; font-size: .7rem; }.transaction-amount { font: 500 1.1rem var(--font-display); }.detail-drawer summary { padding: .5rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--forest-400); font-size: .7rem; font-weight: 750; list-style: none; cursor: pointer; }.detail-drawer summary::-webkit-details-marker { display: none; }.detail-drawer[open]::before { position: fixed; z-index: 80; inset: 0; background: rgba(0, 0, 0, .65); content: ""; }.drawer-content { position: fixed; z-index: 90; inset: 0 0 0 auto; width: min(100%, 480px); padding: clamp(1.4rem, 4vw, 2.2rem); border-left: 1px solid var(--line-strong); background: var(--ink-900); box-shadow: var(--shadow); overflow-y: auto; }.drawer-heading { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }.drawer-heading h3 { margin: 0; font: 500 1.55rem var(--font-display); }.drawer-heading > strong { color: var(--forest-400); font: 500 1.7rem var(--font-display); }.drawer-content h4 { margin: 1.6rem 0 .6rem; color: var(--paper-300); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }.file-links { margin: 0; padding: 0; list-style: none; }.file-links li { border-top: 1px solid var(--line); }.file-links li:last-child { border-bottom: 1px solid var(--line); }.file-links a { display: flex; justify-content: space-between; padding: .75rem .1rem; color: var(--paper-50); font-size: .8rem; text-decoration: none; }.file-links a span { color: var(--forest-400); }.usage-list { margin: 0; }.usage-list div { display: flex; justify-content: space-between; padding: .65rem 0; border-top: 1px solid var(--line); }.usage-list dt { color: var(--paper-300); }.usage-list dd { margin: 0; }.usage-total { color: var(--forest-400); font-weight: 800; }.drawer-note { font-size: .7rem; }.drawer-close { margin-top: 1.5rem; }.credit-list { margin: 0; padding: 0; list-style: none; }.credit-list li { display: flex; justify-content: space-between; padding: .65rem 0; border-top: 1px solid var(--line); font-size: .78rem; }.credit-list span { color: var(--paper-300); }.credit-list strong { color: var(--forest-400); }
.file-grid, .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }.paper-file { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.2rem; border: 1px solid var(--line); background: var(--surface); }.file-type { display: grid; width: 3rem; height: 3.7rem; place-items: center; background: var(--wood-700); font-size: .62rem; font-weight: 800; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }.paper-file h2 { margin: 0; font-size: .9rem; }.paper-file p, .paper-file small { margin: 0; color: var(--paper-300); font-size: .68rem; }.full-span { grid-column: 1/-1; }.settings-grid .danger-zone { grid-column: 1/-1; border-color: rgba(215, 107, 99, .25); }.muted-copy { color: var(--paper-300); }.fit-card { min-width: 150px; padding: 1rem; border-left: 1px solid var(--wood-500); }.fit-card span, .fit-card small { display: block; color: var(--paper-300); font-size: .68rem; }.fit-card strong { display: block; color: var(--forest-400); font: 500 3rem/1 var(--font-display); }.job-description { max-height: 600px; margin: 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--paper-300); font: 400 .82rem/1.75 var(--font-ui); white-space: pre-wrap; overflow: auto; }.screenshot-link { display: inline-block; margin-top: 1rem; }.connect-panel { max-width: 650px; margin: 8vh auto; padding: 2.5rem; }.connect-panel h1 { margin: 0; color: var(--forest-400); font: 500 3rem var(--font-display); }.copy-command { display: grid; gap: .4rem; margin-top: 2rem; }.copy-command span { color: var(--paper-300); font-size: .72rem; }.copy-command code { padding: .8rem; border: 1px solid var(--line); background: var(--ink-950); overflow-wrap: anywhere; }
.job-tabs-container { display: grid; gap: 1.25rem; }
.job-tabs-nav { display: flex; gap: .65rem; overflow-x: auto; padding-bottom: .6rem; border-bottom: 1px solid var(--line); -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.job-tabs-nav::-webkit-scrollbar { height: 4px; }
.job-tabs-nav::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.job-tab-btn { display: inline-flex; align-items: center; gap: .65rem; padding: .65rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--paper-300); font-family: var(--font-ui); font-size: .82rem; font-weight: 500; cursor: pointer; transition: all .18s ease; white-space: nowrap; }
.job-tab-btn:hover { border-color: var(--line-strong); background: var(--ink-800); color: var(--paper-50); }
.job-tab-btn.is-active { border-color: var(--forest-500); background: var(--ink-800); color: var(--paper-50); box-shadow: inset 0 -2px 0 var(--forest-400), 0 4px 14px rgba(0, 0, 0, .2); }
.job-tab-title { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-tab-count { display: inline-block; padding: .15rem .5rem; border-radius: 999px; background: rgba(187, 196, 187, .12); color: var(--paper-300); font-size: .68rem; font-weight: 700; }
.job-tab-btn.is-active .job-tab-count { background: rgba(130, 212, 146, .2); color: var(--forest-400); }
.job-tab-panel { display: grid; gap: 1.25rem; }
.job-tab-panel[hidden] { display: none !important; }
.job-group-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; padding: 1.6rem; border: 1px solid var(--line); background: var(--surface); }
.job-group-heading { display: grid; gap: .35rem; }
.job-group-meta { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--paper-300); flex-wrap: wrap; }
.company-tag { color: var(--forest-400); font-weight: 700; }
.location-tag, .meta-date { color: var(--paper-300); }
.job-group-heading h2 { margin: .15rem 0; font: 500 1.55rem var(--font-display); color: var(--paper-50); line-height: 1.25; }
.job-group-description { margin: .25rem 0 0; color: var(--paper-300); font-size: .84rem; line-height: 1.65; max-width: 78ch; }
.job-group-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .85rem; flex-shrink: 0; }
.fit-score-badge { display: inline-flex; align-items: baseline; gap: .3rem; padding: .35rem .75rem; border: 1px solid rgba(130, 212, 146, .35); border-radius: var(--radius-sm); background: rgba(36, 122, 66, .2); }
.fit-score-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--paper-300); }
.fit-score-num { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--forest-400); }
.fit-score-badge small { font-size: .72rem; color: var(--paper-300); }


/* Origami Forest: Layered Crease-Aware Paper Artifacts */
.origami-scene { position: fixed; z-index: -1; inset: 0; pointer-events: none; overflow: hidden; perspective: 1000px; }
.origami-layer { position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; transition: transform 0.4s ease-out; }
.origami-layer[data-depth="far"] { transform: scale(0.7) translate3d(calc(var(--scene-parallax-x, 0px) * -0.5), calc(var(--scene-parallax-y, 0px) * -0.5), -100px); opacity: 0.35; }
.origami-layer[data-depth="mid"] { transform: scale(0.85) translate3d(calc(var(--scene-parallax-x, 0px) * 0.3), calc(var(--scene-parallax-y, 0px) * 0.3), -40px); opacity: 0.7; }
.origami-layer[data-depth="near"] { transform: scale(1) translate3d(calc(var(--scene-parallax-x, 0px) * 1), calc(var(--scene-parallax-y, 0px) * 1), 0); opacity: 1; }
.origami-mist { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent 45%, rgba(7, 10, 8, 0.45) 100%), radial-gradient(ellipse at 85% 15%, rgba(36, 122, 66, 0.08), transparent 50%), radial-gradient(ellipse at 10% 90%, rgba(98, 57, 31, 0.06), transparent 45%); opacity: 0.85; }

.origami { position: absolute; width: 7.5rem; perspective: 800px; transform-style: preserve-3d; will-change: transform, opacity; --fold: 1; --tilt-x: 0deg; --tilt-y: 0deg; transform: translate3d(0, 0, 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease; }
.origami svg { display: block; width: 100%; overflow: visible; transform-style: preserve-3d; }

button.origami[data-interactive="true"] { background: transparent; border: none; padding: 0; margin: 0; cursor: pointer; pointer-events: auto; color: inherit; font: inherit; border-radius: var(--radius-sm); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease; }
button.origami[data-interactive="true"]:focus-visible { outline: 2px solid var(--forest-400); outline-offset: 4px; box-shadow: 0 0 14px rgba(84, 182, 109, 0.35); }
button.origami[data-interactive="true"]:hover { filter: drop-shadow(0 6px 14px rgba(7, 10, 8, 0.65)); }

.origami [data-face] { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, fill 0.3s ease; transform-origin: center; }
.origami [data-face]:nth-child(1) { transition-delay: 0ms; }
.origami [data-face]:nth-child(2) { transition-delay: 60ms; }
.origami [data-face]:nth-child(3) { transition-delay: 120ms; }
.origami [data-face]:nth-child(4) { transition-delay: 180ms; }
.origami [data-face]:nth-child(5) { transition-delay: 240ms; }

.origami .paper { fill: rgba(130, 212, 146, 0.42); }
.origami .paper-highlight { fill: rgba(130, 212, 146, 0.58); }
.origami .paper-wood { fill: rgba(201, 146, 99, 0.65); }
.origami .shade { fill: rgba(36, 122, 66, 0.52); }
.origami .shade-dark { fill: rgba(18, 26, 21, 0.72); }

.origami .crease { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.origami [data-crease="mountain"] { stroke: rgba(247, 248, 242, 0.5); stroke-width: 0.9; }
.origami [data-crease="valley"] { stroke: rgba(18, 26, 21, 0.7); stroke-width: 0.9; stroke-dasharray: 2 1.5; }
.origami .trail-line { fill: none; stroke: rgba(247, 248, 242, 0.38); stroke-width: 1.2; stroke-dasharray: 5 6; }
.origami .pin-eyelet { fill: var(--ink-950); stroke: rgba(247, 248, 242, 0.45); stroke-width: 0.8; }

.origami:not(.is-launching):not(:hover) { animation: origami-crease-breathe 8s ease-in-out infinite; }
@keyframes origami-crease-breathe { 0%, 100% { transform: translate3d(0, 0, 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(1); } 50% { transform: translate3d(0, -3px, 0) rotateX(calc(var(--tilt-x, 0deg) + 1.5deg)) rotateY(calc(var(--tilt-y, 0deg) - 1deg)) scale(1.012); } }

.motif-1 { top: 16%; left: 4%; }
.motif-2 { right: 5%; bottom: 14%; }
.motif-near { bottom: 18%; left: 6%; }
.phone-plane { right: -.6rem; }

.origami-plane { width: 7.5rem; }
.origami-plane .face-wing-left { transform-origin: 8px 30px; transform: rotateY(calc((1 - var(--fold, 1)) * 36deg)); }
.origami-plane .face-wing-right { transform-origin: 55px 40px; transform: rotateY(calc((1 - var(--fold, 1)) * -36deg)); }
button.origami-plane:hover .face-wing-right { transform: rotateY(-18deg) translate3d(0, -1px, 2px); }
.origami-plane.is-launching { animation: plane-crease-and-launch 0.9s cubic-bezier(0.2, 0.8, 0.25, 1) forwards !important; pointer-events: none; }
@keyframes plane-crease-and-launch { 0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 1; } 30% { transform: translate3d(-8px, 6px, 0) rotate(-8deg) scale(0.94); opacity: 1; } 100% { transform: translate3d(140px, -110px, 80px) rotate(16deg) scale(0.65); opacity: 0; } }

.origami-leaf { width: 7rem; }
.origami-leaf .face-tip-left { transform-origin: 50px 52px; transform: rotateZ(calc((1 - var(--fold, 1)) * -24deg)); }
.origami-leaf .face-tip-right { transform-origin: 50px 52px; transform: rotateZ(calc((1 - var(--fold, 1)) * 24deg)); }
button.origami-leaf:hover [data-face="tip-left"], button.origami-leaf:focus-visible [data-face="tip-left"] { transform: translate3d(-3px, -4px, 0) rotateZ(-12deg); }
button.origami-leaf:hover [data-face="tip-right"], button.origami-leaf:focus-visible [data-face="tip-right"] { transform: translate3d(3px, -3px, 0) rotateZ(10deg); }
.origami-leaf.has-files [data-face="base-right"] { transform: translate3d(2px, 3px, 0) rotate(8deg); fill: rgba(130, 212, 146, 0.62); }

.origami-stone { width: 7.5rem; }
.origami-stone .face-top { transform-origin: 56px 38px; transform: rotateX(calc((1 - var(--fold, 1)) * 28deg)); }
.origami-stone.heavy-weight { filter: drop-shadow(0 14px 18px rgba(7, 10, 8, 0.85)); }

.origami-trail { width: 10rem; }
.origami-trail .trail-glider { transform-origin: 56px 25px; transition: transform 0.4s ease; }

.origami-bird { width: 8rem; }
.origami-bird[data-agent-state="working"] .face-wing-left { animation: bird-wing-left 1.6s ease-in-out infinite; transform-origin: 66px 37px; }
.origami-bird[data-agent-state="working"] .face-wing-right { animation: bird-wing-right 1.6s ease-in-out infinite; transform-origin: 66px 37px; }
@keyframes bird-wing-left { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(15deg) translate3d(0, -3px, 0); } }
@keyframes bird-wing-right { 0%, 100% { transform: rotate(3deg); } 50% { transform: rotate(-16deg) translate3d(0, 3px, 0); } }
.agent-status-bird { width: 2rem; position: static; display: inline-block; vertical-align: middle; opacity: 0.85; }
.agent-status { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.5rem; border-radius: var(--radius-sm); background: rgba(18, 26, 21, 0.6); border: 1px solid var(--line); font-size: 0.72rem; color: var(--paper-300); }

@media (max-width: 850px) {
  .nav-toggle { display: block; padding: .6rem; }.js .public-nav { position: absolute; top: 66px; right: 0; display: none; width: min(280px, calc(100vw - 2rem)); align-items: stretch; flex-direction: column; gap: .4rem; padding: 1rem; border: 1px solid var(--line); background: var(--surface-raised); box-shadow: var(--shadow); }.js .public-nav.is-open { display: flex; }.public-nav .button { width: 100%; }
  .workflow-layout, .map-section, .auth-layout, .auth-layout-wide { grid-template-columns: 1fr; }.story-section, .map-section { padding: 5rem 0; }.phone-stage { min-height: 570px; }.map-section { gap: 2rem; }.world-map { order: -1; }.auth-layout { gap: 1rem; padding-top: 1rem; }.auth-intro { position: static; padding-top: 2rem; }.auth-intro h1 { font-size: 2.7rem; }
  .app-frame { display: block; }.app-main { grid-column: 1; }.sidebar { transform: translateX(-102%); transition: transform .22s ease; }.sidebar.is-open { transform: translateX(0); box-shadow: var(--shadow); }.sidebar-toggle { display: block; padding: .4rem; }.app-topbar { justify-content: space-between; }.mobile-wordmark { display: inline; margin-right: auto; padding-left: .4rem; font-size: .8rem; font-weight: 750; }.account-name { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }.file-grid, .settings-grid { grid-template-columns: 1fr; }.settings-grid .danger-zone { grid-column: auto; }.wallet-hero { align-items: stretch; flex-direction: column; }.topup-form { align-items: stretch; }.config-note { position: static; }.transaction-row { grid-template-columns: 45px 1fr auto; }.transaction-amount { grid-column: 3; grid-row: 1; }.detail-drawer { grid-column: 2/-1; }.paper-file { grid-template-columns: auto 1fr; }.paper-file .button { grid-column: 1/-1; }
  .job-group-header { flex-direction: column; align-items: stretch; gap: 1rem; }
  .job-group-actions { flex-direction: row; justify-content: space-between; align-items: center; padding-top: .75rem; border-top: 1px solid var(--line); }
  .job-tab-title { max-width: 160px; }
}
@media (max-width: 560px) {
  .hero { min-height: 92svh; }.hero h1 { font-size: clamp(3.7rem, 21vw, 6rem); }.hero-actions { width: 100%; }.hero-actions .button { width: 100%; }.scroll-cue { display: none; }.section-heading h2, .map-copy h2 { font-size: 2.6rem; }.phone-plane { right: -.6rem; }.activity-metrics { gap: 1rem; }.field-grid, .choice-cards { grid-template-columns: 1fr; }.choice-cards label > span { min-height: 4rem; }.form-heading { align-items: flex-start; flex-direction: column; gap: .1rem; }.connection-card, .page-heading { align-items: flex-start; flex-direction: column; }.topup-form { flex-direction: column; }.transaction-row { grid-template-columns: 42px 1fr; }.transaction-amount { grid-column: 2; grid-row: auto; }.detail-drawer { grid-column: 2; }.drawer-content { width: 100%; }.fit-card { border-left: 0; border-top: 1px solid var(--wood-500); }
}

/*
  Admin console — owner-only surfaces. These reuse the Origami Forest tokens
  above and are only ever rendered behind the owner gate.
*/
.admin-workspace { max-width: 1240px; }
.admin-badge { display: inline-flex; min-width: 1.35rem; height: 1.35rem; align-items: center; justify-content: center; padding: 0 .35rem; margin-left: auto; border-radius: 3rem; background: var(--forest-500); color: var(--ink-950); font-size: .62rem; font-weight: 800; }
.admin-owner { color: var(--paper-300); font-size: .7rem; white-space: nowrap; }
.admin-env-badge { padding: .3rem .6rem; border: 1px solid var(--line-strong); border-radius: 3rem; background: rgba(36, 122, 66, .14); color: var(--forest-400); font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-env-production { border-color: var(--danger-500); background: rgba(215, 107, 99, .16); color: #f0b3ad; }
.admin-env-staging { border-color: var(--warning-500); background: rgba(215, 174, 98, .16); color: #e8cf9c; }

.status-bad, .status-warn { display: inline-flex; align-items: center; }
.status-bad::before, .status-warn::before { width: .38rem; height: .38rem; margin-right: .4rem; border-radius: 50%; content: ""; }
.status-bad::before { background: var(--danger-500); }.status-bad { color: #f0b3ad; }
.status-warn::before { background: var(--warning-500); }.status-warn { color: #e8cf9c; }

.panel-alert { border: 1px solid var(--warning-500); background: rgba(215, 174, 98, .08); }
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { display: flex; align-items: center; gap: .5rem; padding: .45rem 0; border-top: 1px solid var(--line); font-size: .78rem; }
.plain-list li:first-child { border-top: 0; }

.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.metric-card { display: grid; gap: .2rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--paper-50); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.metric-card:hover { transform: translateY(-2px); border-color: var(--line-strong); color: var(--paper-50); }
.metric-card > span { color: var(--paper-300); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.metric-card > strong { font: 500 2rem/1.1 var(--font-display); }
.metric-card > small { color: var(--paper-300); font-size: .68rem; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; margin-bottom: 1rem; padding: 1.1rem 1.2rem; }
.filter-reset { align-self: center; color: var(--paper-300); font-size: .74rem; }

.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem; }
.action-row { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.action-row:first-of-type { padding-top: 0; border-top: 0; }
.action-row .field { flex: 1 1 11rem; margin: 0; }
.flag-form { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; }
.flag-form .field { margin: 0; }

.code-figure { margin: 0 0 .9rem; padding: .9rem 1rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ink-950); color: var(--paper-300); font: .72rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code-figure strong, .code-figure span { color: var(--forest-400); }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 1rem; }
.pagination-state { color: var(--paper-300); font-size: .72rem; }

@media (max-width: 960px) {
  .metric-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .admin-owner { display: none; }
}
@media (max-width: 700px) {
  .metric-grid { grid-template-columns: 1fr; }
  .filter-bar, .flag-form { align-items: stretch; }
  .filter-bar .field, .filter-bar .button, .flag-form .field, .flag-form .button { width: 100%; }
  .action-grid { grid-template-columns: 1fr; }
  .action-row { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .origami, .origami-motion, [data-hero-title] { animation: none !important; transform: none !important; }
  .origami { --fold: 1 !important; --tilt-x: 0deg !important; --tilt-y: 0deg !important; }
  .origami [data-face] { transition: none !important; transform: none !important; }
  .folded-corner::after { transition: none !important; transform: none !important; }
}

/* Admin console — restrained wood/amber operational accent over the Origami Forest. */
.admin-page { background-image: linear-gradient(rgba(201, 146, 99, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 146, 99, .03) 1px, transparent 1px), radial-gradient(circle at 78% 10%, rgba(98, 57, 31, .22), transparent 40rem); background-size: 48px 48px, 48px 48px, auto; }
.admin-env-badge { padding: .3rem .7rem; border: 1px solid var(--wood-500); border-radius: 3rem; background: rgba(98, 57, 31, .35); color: var(--wood-300); font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.admin-env-production { border-color: var(--danger-500); background: rgba(215, 107, 99, .16); color: #f0aaa4; }
.admin-env-staging { border-color: var(--warning-500); color: var(--warning-500); }
.admin-owner { color: var(--paper-300); font-size: .7rem; }
.admin-badge { margin-left: auto; padding: 0 .42rem; border-radius: 3rem; background: var(--wood-700); color: var(--paper-50); font-size: .62rem; font-weight: 800; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.metric-card { display: grid; gap: .3rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-left: 3px solid var(--wood-500); border-radius: var(--radius-md); background: var(--surface); color: var(--paper-300); text-decoration: none; }
.metric-card:hover { border-left-color: var(--forest-400); color: var(--paper-50); }
.metric-card > span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.metric-card > strong { color: var(--paper-50); font: 500 2.1rem var(--font-display); }
.metric-card > small { color: var(--paper-300); font-size: .68rem; }
.panel-alert { margin-bottom: 1rem; border-color: rgba(215, 174, 98, .4); background: rgba(98, 57, 31, .22); }
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.action-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .8rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; margin-bottom: 1rem; }
.filter-bar .field { min-width: 160px; flex: 1 1 180px; }
.filter-reset { align-self: center; font-size: .74rem; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.pagination-state { color: var(--paper-300); font-size: .74rem; }
.code-figure { color: var(--wood-300); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(1.4rem, 4vw, 2.2rem); letter-spacing: .12em; }
.plain-list { display: grid; gap: .4rem; margin: 0 0 .6rem; padding: 0; list-style: none; }
.flag-form { display: grid; gap: .5rem; min-width: 200px; }
.status-warn::before, .status-bad::before { width: .38rem; height: .38rem; margin: .28rem .4rem 0 0; border-radius: 50%; content: ""; }
.status-warn::before { background: var(--warning-500); }
.status-bad::before { background: var(--danger-500); }
.status-warn { color: var(--warning-500); }
.status-bad { color: #f0aaa4; }
.admin-workspace .usage-list dd small { display: block; color: var(--paper-300); font-size: .66rem; }
.promo-panel { margin-bottom: 1rem; }
.promo-panel form { display: flex; flex-wrap: wrap; gap: .7rem; align-items: end; }
.promo-panel .field { min-width: 180px; flex: 1 1 200px; }
.choice-cards-stack { display: grid; gap: .8rem; }
.choice-cards-stack .button { text-decoration: none; }
@media (max-width: 850px) { .metric-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .metric-grid { grid-template-columns: 1fr; } .admin-owner { display: none; } .pagination { flex-direction: column; } }
