@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }

:root {
  --deep-green: #143b2b;
  --forest-deep: #0b2a1e;
  --warm-gold: #d1a756;
  --gold-dark: #977126;
  --cream: #f4efe3;
  --cream-light: #faf7f0;
  --ink: #123327;
  --sage: #6f887d;
  --line: #dedfd7;
  --white: #fffefa;
  --rose: #8d3e35;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--cream-light); scroll-behavior: smooth; }
body { margin: 0; background: var(--cream-light); color: var(--ink); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
form { margin: 0; }
[hidden] { display: none !important; }
body.drawer-open { overflow: hidden; }
::selection { background: rgba(209, 167, 86, .34); }
:focus-visible { outline: 3px solid var(--warm-gold); outline-offset: 3px; }

.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; }
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -.025em; }
.eyebrow { margin: 0; color: var(--gold-dark); font-size: .72rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.muted { color: var(--sage); }

/* Shared brand */
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.login-brand-logo { width: 94px; height: 94px; object-fit: contain; }
.login-brand-logo.brand-mark { font-size: 2.2rem; }
.brand-mark { display: grid; width: 42px; height: 48px; place-items: center; border: 1px solid currentColor; color: var(--warm-gold); font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; position: relative; }
.brand-mark::before { content: ""; position: absolute; top: -6px; width: 10px; height: 10px; border-top: 1px solid currentColor; border-left: 1px solid currentColor; transform: rotate(45deg); background: inherit; }
.brand-copy strong { display: block; color: currentColor; font-size: .86rem; letter-spacing: .25em; }
.brand-copy span { display: block; margin-top: 4px; color: color-mix(in srgb, currentColor 60%, transparent); font-size: .57rem; font-weight: 600; letter-spacing: .13em; line-height: 1.5; text-transform: uppercase; }

/* Login */
.login-page { height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(560px, 1.1fr) minmax(470px, .9fr); overflow: hidden; background: #efe7d9; }
.login-story { min-height: 0; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(32px, 4vw, 64px); color: var(--cream); background: radial-gradient(circle at 82% 8%, rgba(45,95,68,.7), transparent 29%), linear-gradient(135deg, #061a12 0%, #0a2d20 52%, #103d2d 100%); }
.login-story::before { content: "UPDS"; position: absolute; inset: auto -9% -13% auto; color: rgba(209,167,86,.12); font-family: var(--font-display); font-size: min(24vw, 18rem); font-weight: 600; letter-spacing: -.06em; line-height: 1; }
.login-story::after { content: ""; position: absolute; width: min(62vw, 920px); height: min(62vw, 920px); left: -44%; top: -43%; border: 1px solid rgba(209,167,86,.2); border-radius: 50%; box-shadow: 0 0 0 36px rgba(209,167,86,.025), 0 0 0 74px rgba(209,167,86,.02); }
.login-story > * { position: relative; z-index: 1; }
.login-arch { position: absolute; z-index: 0; width: 150px; height: 232px; border: 1px solid rgba(209,167,86,.3); border-bottom: 0; border-radius: 90px 90px 0 0; }
.login-arch-top { right: 10%; top: -134px; }
.login-arch-bottom { left: 38%; bottom: -152px; transform: rotate(180deg); opacity: .72; }
.login-story .brand-lockup { color: var(--cream); }
.login-story .brand-copy strong { color: #f7edd5; font-size: .92rem; }
.login-message { max-width: 690px; padding: clamp(24px, 4vh, 50px) 0; }
.login-message .eyebrow { display: flex; align-items: center; gap: 12px; color: #d8b56d; }
.login-message .eyebrow::before { content: ""; width: 35px; border-top: 2px solid currentColor; }
.login-message h1 { margin: 18px 0 20px; font-size: clamp(4.2rem, 6.4vw, 7.3rem); line-height: .81; color: #fbf4e5; }
.login-message h1 em { color: var(--warm-gold); font-style: normal; }
.login-message p:last-child { max-width: 500px; margin: 0; color: rgba(244,239,227,.78); font-size: clamp(.88rem, 1vw, 1.02rem); line-height: 1.72; }
.login-principles { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 760px; border-top: 1px solid rgba(209,167,86,.38); padding-top: 20px; }
.login-principles div { min-width: 0; padding-right: 18px; }
.login-principles div + div { padding-left: 24px; border-left: 1px solid rgba(209,167,86,.23); }
.login-principles strong { display: block; color: #e1bf79; font-family: var(--font-display); font-size: clamp(1.4rem, 1.9vw, 1.85rem); font-weight: 600; }
.login-principles span { display: block; margin-top: 5px; color: rgba(244,239,227,.62); font-size: .62rem; font-weight: 700; letter-spacing: .08em; line-height: 1.55; text-transform: uppercase; }
.login-form-side { min-height: 0; display: grid; place-items: center; padding: clamp(28px, 5vh, 52px) clamp(30px, 4vw, 74px); position: relative; background: radial-gradient(circle at 95% 5%, rgba(209,167,86,.18), transparent 24%), #f5efe4; }
.login-form-side::before { content: "Private invitation"; position: absolute; top: clamp(20px, 3.5vh, 34px); right: clamp(24px, 4vw, 52px); padding: 7px 11px; border: 1px solid rgba(209,167,86,.28); border-radius: 999px; background: rgba(255,254,250,.63); color: var(--gold-dark); font-size: .59rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.login-panel { width: min(100%, 550px); position: relative; padding: clamp(30px, 4vw, 46px); border: 1px solid rgba(209,167,86,.35); border-radius: 22px; background: rgba(255,254,250,.78); box-shadow: 0 24px 55px rgba(17,48,35,.12); }
.login-panel::before { content: ""; position: absolute; inset: 13px; border: 1px solid rgba(209,167,86,.16); border-radius: 14px; pointer-events: none; }
.login-panel > * { position: relative; z-index: 1; }
.login-panel h2 { margin: 10px 0 9px; color: var(--deep-green); font-size: clamp(2.9rem, 4.3vw, 4rem); line-height: .92; }
.login-intro { margin: 0 0 clamp(20px, 3vh, 28px); color: #60776c; font-size: .85rem; line-height: 1.6; }
.demo-access { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; margin: 0 0 clamp(18px, 3vh, 25px); padding: 14px 16px; border: 1px solid #e1c98f; border-radius: 12px; background: linear-gradient(135deg, #fbf5e8, #f4e8cc); }
.demo-access p { margin: 0 0 4px; color: var(--gold-dark); font-size: .65rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.demo-access code { display: block; color: var(--deep-green); font-family: var(--font-ui); font-size: .78rem; line-height: 1.55; }
.text-button { min-height: 40px; border: 0; background: transparent; color: var(--deep-green); font-size: .74rem; font-weight: 700; text-decoration: underline; text-decoration-color: var(--warm-gold); text-underline-offset: 5px; }
.form-stack { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .field-label { color: var(--deep-green); font-size: .72rem; font-weight: 700; letter-spacing: .06em; }
.field label span, .field-label span { color: #a03930; }
.input-wrap { position: relative; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 1px solid #d6dbd5; border-radius: 10px; background: var(--white); color: var(--ink); padding: 12px 14px; transition: border-color .18s ease, box-shadow .18s ease; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #9dafaa; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--warm-gold); box-shadow: 0 0 0 4px rgba(209,167,86,.14); }
.password-input { padding-right: 74px !important; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); min-width: 54px; min-height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--gold-dark); font-size: .72rem; font-weight: 700; }
.login-panel .field input { min-height: 50px; border-color: #d9ceb9; background: #fffefa; }
.login-panel .field input:focus { border-color: var(--warm-gold); box-shadow: 0 0 0 4px rgba(209,167,86,.16); }
.login-panel .primary-button { min-height: 52px; border-color: #c89d45; background: linear-gradient(135deg, #d9b56a, #b98532); color: #152e22; box-shadow: 0 10px 22px rgba(151,113,38,.2); }
.login-panel .primary-button:hover { background: linear-gradient(135deg, #e3c477, #c4943e); transform: translateY(-1px); }
.login-panel .form-note { color: #718078; }
.error-message { margin: -3px 0 0; padding: 11px 13px; border-left: 3px solid #a34a40; border-radius: 4px; background: #f6e7e3; color: #7c342c; font-size: .78rem; line-height: 1.5; }
.field-error { min-height: 1em; margin: 0; color: #8d3e35; font-size: .65rem; line-height: 1.45; }
.field-error:empty { min-height: 0; }
.is-loading { pointer-events: none; opacity: .62; }
.primary-button, .secondary-button, .ghost-button, .danger-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 10px; padding: 0 20px; font-size: .78rem; font-weight: 700; text-decoration: none; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.primary-button { border: 1px solid var(--deep-green); background: var(--deep-green); color: #fff; box-shadow: 0 8px 20px rgba(11,42,30,.12); }
.primary-button:hover { background: var(--forest-deep); transform: translateY(-1px); }
.secondary-button { border: 1px solid #cdd6d1; background: var(--white); color: var(--deep-green); }
.secondary-button:hover { border-color: var(--warm-gold); }
.ghost-button { border: 1px solid transparent; background: transparent; color: var(--deep-green); }
.danger-button { border: 1px solid #ba6a60; background: #fff8f6; color: #873c33; }
.form-note { margin: 16px 0 0; color: var(--sage); font-size: .68rem; line-height: 1.5; text-align: center; }

/* Protected shell */
.loading-screen { min-height: 100vh; display: grid; place-items: center; background: var(--forest-deep); color: var(--cream); text-align: center; }
.loading-screen .brand-mark { margin: 0 auto 18px; background: var(--forest-deep); }
.loading-screen p { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.app-shell { min-height: 100vh; padding-left: 272px; background: var(--cream-light); }
.sidebar { width: 272px; position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 34px 22px 26px; color: var(--cream); background: var(--forest-deep); }
.sidebar .brand-lockup { margin: 0 10px 64px; }
.side-nav { display: grid; gap: 7px; }
.nav-item { width: 100%; min-height: 52px; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; border: 0; border-left: 3px solid transparent; border-radius: 0 9px 9px 0; padding: 0 13px; background: transparent; color: rgba(244,239,227,.58); text-align: left; }
.nav-item .nav-index { color: var(--warm-gold); font-size: .64rem; font-weight: 700; letter-spacing: .1em; }
.nav-item .nav-label { font-size: .78rem; font-weight: 600; }
.nav-item .nav-state { color: rgba(244,239,227,.32); font-size: .56rem; letter-spacing: .09em; text-transform: uppercase; }
.nav-item:hover:not(:disabled) { color: var(--cream); background: rgba(255,255,255,.055); }
.nav-item.active { border-left-color: var(--warm-gold); background: rgba(244,239,227,.09); color: var(--cream-light); }
.nav-item:disabled { opacity: .65; }
.sidebar-footer { margin-top: auto; padding: 23px 12px 0; border-top: 1px solid rgba(244,239,227,.12); }
.sidebar-footer p { margin: 0 0 7px; color: var(--warm-gold); font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.sidebar-footer span { color: rgba(244,239,227,.48); font-size: .7rem; }
.workspace { min-width: 0; }
.topbar { height: 86px; position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 clamp(28px, 4vw, 62px); border-bottom: 1px solid #e4e4dc; background: rgba(250,247,240,.93); backdrop-filter: blur(14px); }
.workspace-name { color: #7f948b; font-size: .69rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.ams-return-button { display: inline-flex; min-height: 40px; align-items: center; gap: 7px; border: 1px solid #cfd6d2; border-radius: 9px; padding: 0 14px; color: var(--deep-green); font-size: .64rem; font-weight: 700; letter-spacing: .05em; text-decoration: none; }
.ams-return-button:hover { border-color: var(--warm-gold); background: #fffaf0; }
.identity { display: flex; align-items: center; gap: 13px; }
.identity-copy { text-align: right; }
.identity-copy strong { display: block; font-size: .77rem; }
.identity-copy span { display: block; margin-top: 3px; color: var(--sage); font-size: .66rem; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #f2e6ca; color: var(--gold-dark); font-size: .75rem; font-weight: 700; }
.logout-button { min-height: 40px; border: 1px solid #cfd6d2; border-radius: 9px; padding: 0 14px; background: transparent; color: var(--deep-green); font-size: .66rem; font-weight: 700; letter-spacing: .08em; }
.mobile-brand { display: none; }
.mobile-nav { display: none; }
.dashboard { width: min(100%, 1510px); margin: 0 auto; padding: clamp(30px, 4vw, 62px); }
.dashboard-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid #dfe1da; }
.dashboard-hero h1 { margin: 11px 0 10px; font-size: clamp(3rem, 5vw, 5rem); line-height: .95; color: var(--deep-green); }
.dashboard-hero .hero-copy { max-width: 710px; }
.dashboard-hero .hero-copy > p:last-child { margin: 0; color: var(--sage); font-size: .9rem; line-height: 1.7; }
.hero-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 38px 0 16px; }
.section-heading h2 { margin: 5px 0 0; font-size: 2rem; color: var(--deep-green); }
.section-heading p { margin: 0; color: var(--sage); font-size: .75rem; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.metric-card { min-height: 142px; position: relative; overflow: hidden; padding: 21px; border: 1px solid #e0e0d8; border-radius: 15px; background: rgba(255,254,250,.76); box-shadow: 0 8px 24px rgba(20,59,43,.035); }
.metric-card::after { content: ""; position: absolute; width: 74px; height: 74px; right: -26px; bottom: -28px; border: 1px solid rgba(209,167,86,.34); border-radius: 50%; }
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--cream); color: var(--gold-dark); }
.metric-delta { color: var(--sage); font-size: .62rem; }
.metric-card strong { display: block; margin: 14px 0 3px; font-family: var(--font-display); font-size: 2.25rem; font-weight: 600; line-height: 1; }
.metric-card > span { color: var(--sage); font-size: .68rem; font-weight: 600; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(300px, .78fr); gap: 17px; align-items: start; }
.panel { border: 1px solid #dfe1da; border-radius: 16px; background: rgba(255,254,250,.78); box-shadow: 0 10px 28px rgba(20,59,43,.035); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid #e7e6df; }
.panel-head h3 { margin: 0; font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; }
.panel-head span { color: var(--sage); font-size: .68rem; }
.approval-list { display: grid; }
.approval-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(120px, .58fr) auto; gap: 18px; align-items: center; padding: 18px 22px; }
.approval-row + .approval-row { border-top: 1px solid #ecebe5; }
.idea-title { min-width: 0; }
.idea-code { color: var(--gold-dark); font-size: .61rem; font-weight: 700; letter-spacing: .11em; }
.idea-title h4 { margin: 5px 0 4px; overflow: hidden; color: var(--deep-green); font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.idea-title p { margin: 0; color: var(--sage); font-size: .65rem; }
.idea-meta { color: var(--sage); font-size: .66rem; line-height: 1.6; }
.small-button { min-height: 40px; border: 1px solid #cbd5cf; border-radius: 9px; padding: 0 14px; background: var(--white); color: var(--deep-green); font-size: .68rem; font-weight: 700; }
.small-button:hover { border-color: var(--warm-gold); }
.empty-state { padding: 42px 24px; text-align: center; color: var(--sage); font-size: .8rem; }
.priority-list { display: grid; gap: 0; }
.priority-item { padding: 17px 21px; }
.priority-item + .priority-item { border-top: 1px solid #ecebe5; }
.priority-rank { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.priority-rank > span:first-child { color: var(--gold-dark); font-family: var(--font-display); font-size: 1rem; }
.support { padding: 5px 8px; border-radius: 999px; background: #e6eee8; color: var(--deep-green); font-size: .58rem; font-weight: 700; }
.priority-item h4 { margin: 7px 0 4px; font-size: .78rem; }
.priority-item p { margin: 0; color: var(--sage); font-size: .63rem; }
.status-badge { display: inline-flex; min-height: 26px; align-items: center; gap: 6px; border-radius: 999px; padding: 0 10px; font-size: .57rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pending { background: #f4ead2; color: #8a651f; }
.status-approved { background: #dfece3; color: #265b41; }
.status-hold { background: #ede1cd; color: #7f5a2a; }
.status-rejected { background: #f2dfdc; color: #843c34; }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(300px, .78fr); gap: 17px; margin-top: 17px; }
.idea-bank-table { width: 100%; border-collapse: collapse; }
.idea-bank-table th { padding: 12px 20px; background: var(--deep-green); color: var(--cream-light); font-size: .58rem; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.idea-bank-table td { padding: 16px 20px; border-bottom: 1px solid #ecebe5; font-size: .68rem; vertical-align: middle; }
.idea-bank-table tbody tr:last-child td { border-bottom: 0; }
.activity-list { list-style: none; margin: 0; padding: 2px 20px 16px; }
.activity-item { position: relative; padding: 15px 0 15px 22px; }
.activity-item::before { content: ""; position: absolute; left: 1px; top: 21px; width: 7px; height: 7px; border: 2px solid var(--cream-light); border-radius: 50%; background: var(--warm-gold); box-shadow: 0 0 0 1px var(--warm-gold); }
.activity-item::after { content: ""; position: absolute; left: 4px; top: 31px; bottom: -5px; border-left: 1px solid #dedfd7; }
.activity-item:last-child::after { display: none; }
.activity-item p { margin: 0; color: var(--deep-green); font-size: .69rem; line-height: 1.5; }
.activity-item span { display: block; margin-top: 5px; color: var(--sage); font-size: .59rem; }
.prototype-note { margin-top: 18px; padding: 13px 16px; border: 1px solid #e7d9b9; border-radius: 11px; background: #f8f0df; color: #765a27; font-size: .66rem; line-height: 1.6; }

/* Drawers */
.drawer-overlay { position: fixed; z-index: 100; inset: 0; display: flex; justify-content: flex-end; background: rgba(6,25,18,.56); backdrop-filter: blur(4px); animation: fade-in .18s ease both; }
.drawer { width: min(100%, 620px); height: 100%; overflow-y: auto; border-left: 1px solid rgba(209,167,86,.45); background: var(--cream-light); box-shadow: -24px 0 60px rgba(4,21,14,.22); animation: slide-in .22s ease both; }
.drawer.wide { width: min(100%, 760px); }
.capture-drawer { background: radial-gradient(circle at 95% 12%, rgba(209,167,86,.17), transparent 22%), var(--cream-light); }
.capture-header { background: rgba(250,247,240,.9); }
.capture-header h2 { max-width: 520px; }
.drawer-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 26px 20px; border-bottom: 1px solid #e0e1da; background: rgba(250,247,240,.96); backdrop-filter: blur(12px); }
.drawer-header h2 { margin: 5px 0 0; color: var(--deep-green); font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; line-height: 1; }
.close-button { width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid #d4dad5; border-radius: 50%; background: var(--white); color: var(--deep-green); font-size: 1.2rem; }
.drawer-body { padding: 26px; }
.review-hero { padding: 22px; border-radius: 15px; background: var(--deep-green); color: var(--cream-light); }
.review-hero .idea-code { color: var(--warm-gold); }
.review-hero h3 { margin: 9px 0 8px; font-family: var(--font-display); font-size: 2rem; font-weight: 500; line-height: 1.05; }
.review-hero p { margin: 0; color: rgba(250,247,240,.66); font-size: .77rem; line-height: 1.6; }
.review-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 24px; border: 1px solid #e0e1da; border-radius: 13px; background: var(--white); }
.review-facts div { padding: 15px; }
.review-facts div + div { border-left: 1px solid #e7e7e1; }
.review-facts span { display: block; margin-bottom: 5px; color: var(--sage); font-size: .57rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.review-facts strong { display: block; font-size: .7rem; }
.drawer-section-title { margin: 26px 0 10px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.idea-description { margin: 0 0 24px; color: #587068; font-size: .78rem; line-height: 1.75; }
.decision-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 14px; }
.decision-button { min-height: 46px; border: 1px solid #cfd7d2; border-radius: 9px; background: var(--white); color: var(--deep-green); font-size: .7rem; font-weight: 700; }
.decision-button:hover { border-color: var(--warm-gold); }
.decision-button.recommend { background: var(--deep-green); border-color: var(--deep-green); color: #fff; }
.decision-button.reject { border-color: #d8aaa4; color: var(--rose); }
.history-callout { margin-top: 22px; padding: 14px 16px; border-left: 3px solid var(--warm-gold); border-radius: 5px; background: var(--cream); color: #63766f; font-size: .67rem; line-height: 1.65; }
.delete-inspiration-form { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 16px; border: 1px solid rgba(153,57,49,.28); border-radius: 12px; background: rgba(153,57,49,.055); }
.delete-inspiration-form div { display: grid; gap: 4px; }
.delete-inspiration-form strong { color: #7e302a; font-size: .72rem; }
.delete-inspiration-form span { color: #7e625f; font-size: .59rem; line-height: 1.45; }
.danger-button { flex: 0 0 auto; border: 1px solid #91372f; border-radius: 999px; padding: 10px 15px; background: #91372f; color: #fff; cursor: pointer; font: inherit; font-size: .6rem; font-weight: 700; letter-spacing: .04em; }
.danger-button:hover { background: #742821; }
.danger-button:disabled { cursor: wait; opacity: .6; }
.testing-notice { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 24px; padding: 16px 18px; border: 1px solid rgba(209,167,86,.52); border-radius: 14px; background: #fff8e8; color: #5f5644; box-shadow: 0 10px 26px rgba(20,59,43,.05); }
.testing-notice > span { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--warm-gold); color: var(--forest-deep); font-weight: 800; }
.testing-notice strong { display: block; margin-bottom: 3px; color: var(--deep-green); font-size: .72rem; }
.testing-notice p { margin: 0; font-size: .64rem; line-height: 1.55; }
.capture-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 0 29px; padding: 0; list-style: none; counter-reset: capture; }
.capture-steps li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 0; border-top: 2px solid #d9ddd8; color: #9ba89f; font-size: .53rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.capture-steps li span { display: grid; width: 21px; height: 21px; flex: 0 0 auto; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .43rem; }
.capture-steps li.is-active { border-top-color: var(--warm-gold); color: var(--deep-green); }
.capture-steps li.is-active span { border-color: var(--deep-green); background: var(--deep-green); color: var(--gold-bright, #f2c96f); }
.capture-section { padding-top: 31px; border-top: 1px solid rgba(20,59,43,.12); }
.capture-origin { padding: 1px 0 5px; }
.capture-section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 17px; }
.capture-section-heading .eyebrow { font-size: .53rem; }
.capture-section-heading h3 { margin: 3px 0 0; color: var(--deep-green); font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: .95; }
.capture-section-number { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(209,167,86,.7); border-radius: 50%; color: var(--gold-dark); font-size: .55rem; font-weight: 700; }
.discovery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 10px; }
.discovery-card { min-height: 130px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 13px; border: 1px solid rgba(20,59,43,.18); border-radius: 4px; padding: 17px; position: relative; overflow: hidden; background: rgba(255,254,250,.76); color: var(--deep-green); text-align: left; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.discovery-card::before { content: ""; position: absolute; inset: 7px; border: 1px solid transparent; pointer-events: none; transition: border-color .18s ease; }
.discovery-card:hover { transform: translateY(-3px); border-color: var(--warm-gold); box-shadow: 0 12px 24px rgba(20,59,43,.1); }
.discovery-card.selected { border-color: var(--warm-gold); background: linear-gradient(135deg, #fbf4e5, #f6ebd2); box-shadow: 0 12px 26px rgba(20,59,43,.1); }
.discovery-card.selected::before { border-color: rgba(151,113,38,.22); }
.capture-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--deep-green); color: #f5d58d; }
.capture-icon svg { width: 22px; height: 22px; }
.discovery-onsite .capture-icon { background: #e9f0e8; color: #2e7956; }
.discovery-card strong, .discovery-card small { display: block; }
.discovery-card strong { margin-bottom: 5px; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: .9; }
.discovery-card small { color: var(--sage); font-size: .59rem; line-height: 1.5; }
.discovery-card i { color: var(--gold-dark); font-size: 1.1rem; font-style: normal; }
.capture-name-field { position: relative; }
.capture-name-field input { padding-right: 42px; }
.input-spark { position: absolute; right: 15px; bottom: 13px; color: var(--gold-dark); font-size: 1.05rem; }
.choice-field { margin: 22px 0 0; border: 0; padding: 0; }
.choice-field legend, .field-label { color: var(--deep-green); font-size: .64rem; font-weight: 700; }
.choice-field legend span, .field label span { color: var(--rose); }
.choice-search { display: flex; align-items: center; gap: 9px; margin-top: 9px; padding: 0 12px; border: 1px solid rgba(20,59,43,.15); background: rgba(255,254,250,.75); color: var(--gold-dark); }
.choice-search svg { width: 17px; height: 17px; flex: 0 0 auto; }
.choice-search input { width: 100%; min-height: 42px; border: 0; padding: 0; background: transparent; box-shadow: none; }
.choice-search input:focus { box-shadow: none; }
.category-choice-grid { max-height: 196px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 7px; overflow: auto; margin-top: 10px; padding: 2px 4px 2px 1px; }
.choice-chip, .source-type-chip { border: 1px solid rgba(20,59,43,.14); border-radius: 999px; background: rgba(255,254,250,.8); color: #507064; font-size: .55rem; font-weight: 600; transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease; }
.choice-chip { padding: 8px 10px; }
.choice-chip:hover, .source-type-chip:hover { transform: translateY(-1px); border-color: var(--warm-gold); color: var(--deep-green); }
.choice-chip.selected, .source-type-chip.selected { border-color: var(--deep-green); background: var(--deep-green); color: #f9efd9; }
.capture-details { margin-top: 30px; }
.source-type-grid { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.source-type-chip { padding: 7px 10px; }
.capture-detail-grid { margin-top: 20px; }
.url-input { display: flex; align-items: center; border: 1px solid #cfd7d2; background: var(--white); color: var(--gold-dark); }
.url-input:focus-within { border-color: var(--warm-gold); box-shadow: 0 0 0 3px rgba(209,167,86,.12); }
.url-input span { width: 43px; flex: 0 0 auto; color: var(--gold-dark); font-size: 1rem; text-align: center; }
.url-input input { border: 0; box-shadow: none; }
.url-input input:focus { box-shadow: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field-hint { margin: 0; color: var(--sage); font-size: .61rem; line-height: 1.55; }
.file-drop { min-height: 148px; display: grid; place-items: center; border: 1px dashed #c7b176; border-radius: 4px; background: radial-gradient(circle at 50% 0, rgba(209,167,86,.17), transparent 35%), #f7f0e2; text-align: center; transition: background .18s ease, border-color .18s ease; }
.file-drop.is-dragging { border-color: var(--deep-green); background: #edf2e9; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop label { cursor: pointer; display: grid; justify-items: center; gap: 5px; padding: 17px 20px; color: var(--deep-green); font-size: .7rem; font-weight: 700; }
.file-drop label > span:last-child { display: block; color: var(--sage); font-size: .57rem; font-weight: 400; }
.upload-orb { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 2px; border: 1px solid rgba(151,113,38,.36); border-radius: 50%; background: rgba(255,254,250,.74); color: var(--gold-dark); }
.upload-orb svg { width: 20px; height: 20px; }
.file-list { display: grid; gap: 6px; margin-top: 8px; }
.file-chip { display: flex; justify-content: space-between; gap: 10px; padding: 9px 11px; border-left: 2px solid var(--warm-gold); background: var(--cream); color: #65766f; font-size: .62rem; }
.textarea-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; color: var(--sage); font-size: .54rem; }
.textarea-meta strong { color: var(--gold-dark); font-size: .52rem; }
.drawer-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #dedfd8; }
.drawer-footer > div:last-child { display: flex; gap: 10px; }
.capture-footer-note { color: var(--sage); font-size: .56rem; line-height: 1.45; }
.capture-footer-note span { margin-right: 4px; color: var(--gold-dark); }
.capture-success { padding: 34px 24px; border: 1px solid #d8ded9; border-radius: 16px; background: var(--white); text-align: center; }
.success-mark { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: var(--deep-green); color: var(--warm-gold); font-size: 1.2rem; }
.capture-success h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.capture-success > p { margin: 0 auto 20px; max-width: 430px; color: var(--sage); font-size: .75rem; line-height: 1.65; }
.reference-card { margin: 0 auto 20px; padding: 15px; border-radius: 12px; background: var(--cream); }
.reference-card span { display: block; color: var(--gold-dark); font-size: .58rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.reference-card strong { display: block; margin-top: 5px; font-family: var(--font-display); font-size: 1.6rem; }
.toast { position: fixed; z-index: 160; right: 24px; bottom: 24px; max-width: 360px; padding: 14px 17px; border: 1px solid rgba(209,167,86,.5); border-radius: 11px; background: var(--forest-deep); color: var(--cream-light); box-shadow: 0 16px 42px rgba(4,21,14,.24); font-size: .7rem; line-height: 1.55; animation: toast-in .2s ease both; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(32px); opacity: .7; } }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }

@media (max-width: 1180px) {
  .app-shell { padding-left: 236px; }
  .sidebar { width: 236px; padding-inline: 16px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .login-page { height: 100dvh; min-height: 100svh; overflow: hidden; grid-template-columns: 1fr; grid-template-rows: 88px minmax(0, 1fr); }
  .login-story { min-height: 0; padding: 12px clamp(18px, 6vw, 30px); background: linear-gradient(135deg, #061a12, #103d2d); }
  .login-story::before, .login-story::after, .login-arch { display: none; }
  .login-story .brand-lockup { gap: 9px; }
  .login-brand-logo { width: 58px; height: 58px; }
  .login-story .brand-copy strong { font-size: .76rem; }
  .login-story .brand-copy span { margin-top: 2px; font-size: .5rem; }
  .login-message, .login-principles { display: none; }
  .login-form-side { min-height: 0; padding: 14px clamp(18px, 7vw, 30px) 18px; background: #f5efe4; }
  .login-form-side::before { top: 10px; right: clamp(18px, 6vw, 30px); }
  .login-panel { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .login-panel::before { display: none; }
  .login-panel h2 { font-size: clamp(2.35rem, 9vw, 3rem); }
  .login-intro { display: none; }
  .demo-access { margin-bottom: 14px; padding: 10px 12px; }
  .form-stack { gap: 10px; }
  .field { gap: 4px; }
  .field input, .login-panel .field input { min-height: 44px; padding-block: 10px; }
  .form-note { margin-top: 12px; }
  .sidebar { display: none; }
  .app-shell { padding-left: 0; }
  .topbar { height: 74px; padding: 0 20px; }
  .workspace-name { display: none; }
  .mobile-brand { display: flex; align-items: center; gap: 9px; font-size: .74rem; font-weight: 700; letter-spacing: .2em; }
  .mobile-brand img { width: 34px; height: 38px; object-fit: contain; }
  .mobile-brand { color: var(--deep-green); text-decoration: none; }
  .mobile-brand .brand-mark { width: 29px; height: 34px; font-size: .95rem; }
  .identity-copy { display: none; }
  .ams-return-button { display: none; }
  .mobile-nav { position: sticky; z-index: 19; top: 74px; display: flex; gap: 8px; overflow-x: auto; padding: 10px 18px; border-bottom: 1px solid #e1e2da; background: rgba(250,247,240,.96); scrollbar-width: none; }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav button { min-height: 38px; flex: 0 0 auto; border: 1px solid #d9ddd8; border-radius: 999px; padding: 0 13px; background: var(--white); color: var(--deep-green); font-size: .64rem; font-weight: 700; }
  .mobile-nav button.active { border-color: var(--deep-green); background: var(--deep-green); color: #fff; }
  .mobile-nav button:disabled { color: #9aa7a2; }
  .dashboard { padding: 30px 22px 48px; }
  .dashboard-hero { align-items: flex-start; flex-direction: column; }
  .hero-actions { width: 100%; }
  .hero-actions > * { flex: 1; }
}

@media (max-height: 700px) and (min-width: 901px) {
  .login-story { padding-block: 24px; }
  .login-brand-logo { width: 58px; height: 58px; }
  .login-message { padding-block: 18px; }
  .login-message h1 { margin-block: 10px 12px; font-size: clamp(2.75rem, 4.8vw, 4.8rem); }
  .login-message p:last-child { font-size: .78rem; line-height: 1.55; }
  .login-principles { padding-top: 13px; }
  .login-principles strong { font-size: 1.45rem; }
  .login-form-side { padding-block: 20px; }
  .login-panel { padding: 28px 32px; }
  .login-panel h2 { font-size: 2.7rem; }
  .login-intro { margin-bottom: 14px; }
  .demo-access { margin-bottom: 14px; padding-block: 10px; }
  .form-stack { gap: 10px; }
  .field input { min-height: 44px; padding-block: 10px; }
  .form-note { margin-top: 12px; }
}

@media (max-width: 640px) {
  .login-story { padding-inline: 18px; }
  .login-story .brand-copy span { max-width: 180px; }
  .login-principles div + div { padding-left: 13px; }
  .login-principles strong { font-size: 1.45rem; }
  .login-form-side { padding-inline: 18px; }
  .login-form-side::before { top: 10px; right: 18px; }
  .topbar { padding-inline: 14px; }
  .logout-button { padding-inline: 10px; }
  .dashboard { padding-inline: 16px; }
  .dashboard-hero h1 { font-size: 3.25rem; }
  .hero-actions { flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 128px; padding: 16px; }
  .approval-row { grid-template-columns: 1fr auto; gap: 10px; padding: 16px; }
  .approval-row .idea-meta { display: none; }
  .panel-head { padding-inline: 16px; }
  .idea-bank-table, .idea-bank-table tbody, .idea-bank-table tr, .idea-bank-table td { display: block; }
  .idea-bank-table thead { display: none; }
  .idea-bank-table tr { padding: 14px 16px; }
  .idea-bank-table tr + tr { border-top: 1px solid #ecebe5; }
  .idea-bank-table td { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; border: 0; }
  .idea-bank-table td::before { content: attr(data-label); color: var(--sage); font-size: .57rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .drawer { width: 100%; }
  .drawer-header, .drawer-body { padding-inline: 18px; }
  .drawer-header h2 { font-size: 1.9rem; }
  .review-facts { grid-template-columns: 1fr; }
  .review-facts div + div { border-left: 0; border-top: 1px solid #e7e7e1; }
  .decision-buttons { grid-template-columns: 1fr; }
  .discovery-grid, .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .capture-steps li { gap: 5px; font-size: .48rem; }
  .capture-steps li strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .drawer-footer { align-items: stretch; flex-direction: column; }
  .drawer-footer > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .drawer-footer button { width: 100%; }
}

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

/* Authenticated product-development workspace */
.app-brand { margin: 0 10px 54px; text-decoration: none; }
.app-brand img { width: 52px; height: 52px; object-fit: contain; }
.sidebar .brand-copy strong { color: #f7edd5; }
.nav-item { grid-template-columns: minmax(0, 1fr) auto; text-decoration: none; }
.nav-item.is-future { cursor: default; opacity: .42; }
.text-link { color: var(--gold-dark); font-size: .69rem; font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--deep-green); text-decoration: underline; text-underline-offset: 4px; }
.idea-snapshot { display: grid; }
.snapshot-row { display: grid; grid-template-columns: 105px minmax(0, 1fr) auto; align-items: center; gap: 14px; border: 0; border-bottom: 1px solid #ecebe5; padding: 15px 20px; background: transparent; color: var(--deep-green); text-align: left; }
.snapshot-row:last-child { border-bottom: 0; }
.snapshot-row strong { overflow: hidden; font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }
.compact-hero { padding-bottom: 29px; }
.compact-hero h1 { font-size: clamp(3.5rem, 6vw, 5.6rem); }
.idea-bank-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 30px 0 22px; padding: 16px 18px; border: 1px solid #dedfd7; border-radius: 14px; background: rgba(255,254,250,.72); }
.idea-bank-toolbar > div:first-child { display: flex; align-items: baseline; gap: 8px; color: var(--sage); font-size: .72rem; }
.idea-bank-toolbar strong { color: var(--deep-green); font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.view-toggle { display: inline-flex; padding: 4px; border: 1px solid #d8ddd8; border-radius: 10px; background: var(--cream); }
.view-toggle a { border-radius: 7px; padding: 8px 13px; color: var(--sage); font-size: .67rem; font-weight: 700; text-decoration: none; }
.view-toggle a.active { background: var(--deep-green); color: #fff; }
.idea-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.idea-card { display: flex; min-height: 310px; flex-direction: column; border: 1px solid #dedfd7; border-radius: 16px; padding: 20px; background: rgba(255,254,250,.82); box-shadow: 0 10px 28px rgba(20,59,43,.04); }
.idea-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.idea-card h2 { margin: 18px 0 8px; color: var(--deep-green); font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; line-height: 1; }
.idea-card > p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--sage); font-size: .7rem; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.idea-card dl { display: grid; gap: 9px; margin: 18px 0 auto; }
.idea-card dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .62rem; }
.idea-card dt { color: var(--sage); }
.idea-card dd { margin: 0; color: var(--deep-green); font-weight: 700; text-align: right; }
.idea-card .small-button { align-self: flex-start; margin-top: 18px; }
.idea-bank-table small { display: block; margin-top: 4px; color: var(--sage); font-size: .58rem; }
.idea-list-panel { overflow: hidden; }
.modal-overlay { position: fixed; z-index: 130; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 24px; background: rgba(6,25,18,.62); backdrop-filter: blur(5px); animation: fade-in .18s ease both; }
.center-modal { width: min(100%, 660px); position: relative; max-height: min(820px, calc(100vh - 48px)); overflow-y: auto; border: 1px solid rgba(209,167,86,.55); border-radius: 18px; padding: clamp(28px, 5vw, 46px); background: var(--cream-light); box-shadow: 0 28px 80px rgba(4,21,14,.35); animation: modal-in .2s ease both; }
.modal-close { position: absolute; top: 16px; right: 16px; }
.success-modal { max-width: 570px; text-align: center; }
.success-modal h2 { margin: 10px auto; max-width: 420px; color: var(--deep-green); font-size: clamp(2.35rem, 5vw, 3.4rem); line-height: .92; }
.success-modal > p:not(.eyebrow) { margin: 0 auto 22px; max-width: 430px; color: var(--sage); font-size: .78rem; line-height: 1.65; }
.modal-actions { display: flex; justify-content: center; gap: 10px; }
.decision-confirmation-overlay { z-index: 140; }
.decision-confirmation-modal { max-width: 520px; text-align: center; }
.decision-confirmation-modal h2 { margin: 10px auto; color: var(--deep-green); font-size: clamp(2rem, 4vw, 2.85rem); line-height: .96; }
.decision-confirmation-modal > p:not(.eyebrow) { margin: 0 auto; max-width: 390px; color: var(--sage); font-size: .74rem; line-height: 1.6; }
.decision-confirmation-summary { display: grid; gap: 9px; margin: 22px 0; padding: 14px 16px; border: 1px solid rgba(20,59,43,.12); border-radius: 12px; background: var(--paper); text-align: left; }
.decision-confirmation-summary div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.decision-confirmation-summary dt { color: var(--sage); font-size: .57rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.decision-confirmation-summary dd { margin: 0; color: var(--deep-green); font-size: .72rem; font-weight: 700; overflow-wrap: anywhere; }
.decision-confirmation-modal[data-decision-tone="reject"] [data-confirm-decision] { border-color: #a34a3f; background: #a34a3f; color: #fff; }
.decision-confirmation-modal[data-decision-tone="reject"] [data-confirm-decision]:hover { border-color: #873b33; background: #873b33; }
.idea-modal { max-width: 720px; }
.idea-modal-heading { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.idea-modal h2 { margin: 14px 0 10px; color: var(--deep-green); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: .94; }
.decision-origin { color: var(--sage); font-size: .65rem; font-weight: 700; }
.vote-summary { display: grid; gap: 6px; margin: 22px 0; padding: 15px 17px; border: 1px solid #e0ded4; border-radius: 12px; background: #f8f0df; }
.vote-summary strong { color: var(--deep-green); font-size: .84rem; }
.vote-summary > span { color: var(--sage); font-size: .62rem; line-height: 1.5; }
.demo-access-roles { grid-template-columns: 1fr auto; }
.demo-role-buttons { display: flex; gap: 2px; }
.demo-role-buttons .text-button { min-width: 0; padding: 0 6px; font-size: .64rem; }
@keyframes modal-in { from { transform: translateY(16px) scale(.985); opacity: .7; } }
@media (max-width: 1100px) { .idea-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .mobile-nav a { min-height: 38px; flex: 0 0 auto; display: inline-flex; align-items: center; border: 1px solid #d9ddd8; border-radius: 999px; padding: 0 13px; background: var(--white); color: var(--deep-green); font-size: .64rem; font-weight: 700; text-decoration: none; } .mobile-nav a.active { border-color: var(--deep-green); background: var(--deep-green); color: #fff; } }
@media (max-width: 640px) { .idea-card-grid { grid-template-columns: 1fr; } .idea-bank-toolbar { margin-block: 22px 16px; } .snapshot-row { grid-template-columns: 1fr auto; padding-inline: 16px; } .snapshot-row .idea-code { grid-column: 1 / -1; } .modal-overlay { padding: 12px; } .center-modal { max-height: calc(100vh - 24px); padding: 28px 20px; } .modal-actions { flex-direction: column; } .modal-actions > * { width: 100%; } .demo-access-roles { grid-template-columns: 1fr; } .delete-inspiration-form { align-items: stretch; flex-direction: column; } .danger-button { width: 100%; } }

/* Idea Bank refresh */
.idea-bank-page { background: radial-gradient(circle at 90% 0, rgba(209,167,86,.12), transparent 30%); }
.idea-bank-toolbar { box-shadow: 0 14px 32px rgba(20,59,43,.06); }
.idea-bank-toolbar > p { margin: 0 auto 0 12px; color: var(--sage); font-size: .68rem; }
.idea-card { overflow: hidden; min-height: 0; padding: 0; background: #fffefa; transition: transform .24s ease, background .24s ease, border-color .24s ease, box-shadow .24s ease; }
.idea-card:hover { transform: translateY(-6px); border-color: rgba(209,167,86,.8); background: #e8f0e9; box-shadow: 0 22px 42px rgba(20,59,43,.14); }
.idea-card-media { height: 154px; overflow: hidden; position: relative; display: grid; place-items: center; background: linear-gradient(145deg, var(--forest-deep), #1f6248); }
.idea-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,25,18,.34), transparent 56%); }
.idea-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.idea-card:hover .idea-card-media img { transform: scale(1.06); }
.idea-card-media .default-idea-image { width: 78px; height: 78px; object-fit: contain; opacity: .72; }
.idea-card-media [hidden] { display: none; }
.idea-card-body { display: flex; min-height: 260px; flex-direction: column; padding: 19px 20px 20px; }
.idea-card h2 { margin-top: 15px; }
.idea-card .small-button { margin-top: 18px; background: rgba(255,254,250,.78); }
.idea-card:hover .small-button { background: var(--deep-green); border-color: var(--deep-green); color: var(--cream-light); }
.idea-bank-table tbody tr { transition: background .2s ease; }
.idea-bank-table tbody tr:hover { background: #e8f0e9; }
.idea-modal { max-width: 900px; padding: 0; overflow: hidden; }
.idea-modal-content { padding: clamp(24px, 4vw, 42px); }
.idea-modal-media { min-height: 236px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));  }
.idea-modal-media img { width: 100%; height: 290px; object-fit: cover; }
.idea-media-default { min-height: 236px; grid-column: 1 / -1; display: grid; place-items: center; gap: 8px; padding: 36px; background: radial-gradient(circle at 35% 30%, rgba(209,167,86,.35), transparent 26%), linear-gradient(135deg, var(--forest-deep), #1d5b43); color: var(--cream); text-align: center; }
.idea-media-default img { width: 94px; height: 94px; object-fit: contain; opacity: .75; }
.idea-media-default span { color: var(--warm-gold); font-size: .65rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.idea-detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0 12px; border: 1px solid #dce1da; border-radius: 14px; overflow: hidden; background: var(--white); }
.idea-detail-facts div { min-height: 76px; padding: 14px; border-right: 1px solid #e4e6df; border-bottom: 1px solid #e4e6df; }
.idea-detail-facts div:nth-child(3n) { border-right: 0; }
.idea-detail-facts div:nth-last-child(-n+3) { border-bottom: 0; }
.idea-detail-facts dt, .idea-source-link span { color: var(--sage); font-size: .55rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.idea-detail-facts dd { margin: 6px 0 0; color: var(--deep-green); font-size: .68rem; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.idea-source-link { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 0; padding: 11px 13px; border-radius: 10px; background: #f3ede0; }
.idea-source-link a { max-width: 100%; overflow: hidden; color: var(--gold-dark); font-size: .66rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.voter-breakdown { margin: 22px 0; padding: 18px; border: 1px solid rgba(209,167,86,.55); border-radius: 13px; background: #fbf3e4; }
.voter-breakdown h3 { margin: 4px 0 0; color: var(--deep-green); font-family: var(--font-display); font-size: 1.55rem; }
.voter-breakdown ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.voter-breakdown li { padding: 10px 11px; border-radius: 9px; background: rgba(255,254,250,.75); color: var(--sage); font-size: .6rem; }
.voter-breakdown li strong, .voter-breakdown li span { display: block; }
.voter-breakdown li strong { margin-bottom: 3px; color: var(--deep-green); font-size: .67rem; }
.owner-override-form { margin-top: 24px; padding-top: 23px; border-top: 1px solid var(--line); }
.decision-buttons.two-actions { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .idea-bank-toolbar { align-items: flex-start; flex-wrap: wrap; } .idea-bank-toolbar > p { width: 100%; margin: 0; } .idea-modal-media { min-height: 190px; grid-template-columns: 1fr; } .idea-modal-media img { height: 210px; } .idea-detail-facts { grid-template-columns: 1fr 1fr; } .idea-detail-facts div:nth-child(3n) { border-right: 1px solid #e4e6df; } .idea-detail-facts div:nth-child(2n) { border-right: 0; } .idea-detail-facts div:nth-last-child(-n+3) { border-bottom: 1px solid #e4e6df; } .idea-detail-facts div:nth-last-child(-n+2) { border-bottom: 0; } .voter-breakdown ul { grid-template-columns: 1fr; } }

/* Idea detail: a fixed frame around one continuous scroll surface. */
.idea-modal { width: min(1240px, calc(100vw - 64px)); max-width: none; height: min(820px, calc(100vh - 48px)); max-height: none; overflow: hidden; padding: 0; border-color: rgba(209,167,86,.65); border-radius: 24px; background: #0b3425; box-shadow: 0 34px 100px rgba(3,19,13,.48); isolation: isolate; }
.idea-modal::after { content: ""; position: absolute; z-index: 10; inset: 11px; border: 1px solid rgba(209,167,86,.2); border-radius: 15px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.018); pointer-events: none; }
.idea-modal-scroll { width: 100%; height: 100%; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; scrollbar-color: rgba(236,224,196,.58) rgba(4,25,17,.72); scrollbar-width: thin; }
.idea-modal-stage { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(390px, .84fr); align-items: stretch; }
.idea-modal-scroll::-webkit-scrollbar { width: 10px; }
.idea-modal-scroll::-webkit-scrollbar-track { background: rgba(4,25,17,.72); }
.idea-modal-scroll::-webkit-scrollbar-thumb { border: 3px solid rgba(4,25,17,.72); border-radius: 999px; background: rgba(236,224,196,.58); }
.idea-modal .modal-close { z-index: 12; top: 20px; right: 20px; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.58); border-radius: 50%; background: rgba(255,254,250,.92); color: var(--deep-green); font-size: 1.15rem; box-shadow: 0 12px 28px rgba(4,21,14,.22), 0 0 0 4px rgba(209,167,86,.12); backdrop-filter: blur(12px); transition: transform .18s ease, background .18s ease; }
.idea-modal .modal-close:hover { transform: rotate(4deg) scale(1.04); background: #fff; }
.idea-modal-content { min-width: 0; position: relative; padding: clamp(32px, 3.5vw, 46px) clamp(34px, 3.7vw, 50px) clamp(38px, 4vw, 48px); background: radial-gradient(circle at 4% 0, rgba(209,167,86,.13), transparent 23%), linear-gradient(150deg, #fbf8f1, #f5efe4); }
.idea-detail-header { position: relative; padding-bottom: 19px; border-bottom: 1px solid rgba(20,59,43,.11); }
.idea-reference-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.idea-reference-row > .eyebrow { font-size: .66rem; }
.idea-modal-heading { display: flex; align-items: center; gap: 9px; margin: 0; }
.idea-modal h2 { max-width: 720px; margin: 17px 0 9px; font-size: clamp(2.8rem, 4.5vw, 4.15rem); line-height: .88; }
.idea-modal-content .idea-description { max-width: 64ch; margin: 0; color: #60766d; font-size: .77rem; line-height: 1.65; }
.decision-origin { font-size: .6rem; }

.idea-modal-side { min-width: 0; display: flex; flex-direction: column; gap: 10px; overflow: hidden; position: relative; padding: 72px 24px 40px; border-left: 1px solid rgba(209,167,86,.15); background: radial-gradient(circle at 95% 4%, rgba(209,167,86,.24), transparent 24%), linear-gradient(145deg, #061c14 0%, #0b3425 56%, #15503a 100%); }
.idea-modal-side::before { content: ""; position: absolute; width: 180px; height: 250px; right: -70px; bottom: 0; border: 1px solid rgba(209,167,86,.22); border-bottom: 0; border-radius: 120px 120px 0 0; transform: rotate(-12deg); box-shadow: 0 0 0 28px rgba(209,167,86,.025), 0 0 0 56px rgba(209,167,86,.018); pointer-events: none; }
.idea-modal-media { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 2; }
.idea-media-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #f8edd6; }
.idea-media-header span { font-size: .61rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.idea-media-header small { color: rgba(244,239,227,.58); font-size: .57rem; }
.idea-media-gallery { display: grid; gap: 8px; position: relative; overflow: hidden; padding: 9px; border: 1px solid rgba(255,255,255,.3); border-radius: 19px; background: linear-gradient(145deg, rgba(255,255,255,.19), rgba(255,255,255,.055)); box-shadow: inset 0 1px rgba(255,255,255,.3), 0 18px 40px rgba(0,0,0,.25); backdrop-filter: blur(18px) saturate(1.2); }
.idea-media-gallery::before { content: ""; position: absolute; inset: -30% 38% 35% -20%; border-radius: 50%; background: rgba(255,255,255,.12); filter: blur(28px); pointer-events: none; }
.idea-media-gallery.has-multiple { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.idea-media-item { min-width: 0; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; position: relative; margin: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: #071f16; box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.idea-media-item::before { content: ""; position: absolute; inset: -22px; background-image: linear-gradient(rgba(5,25,17,.18), rgba(5,25,17,.42)), var(--media-image); background-position: center; background-size: cover; filter: blur(18px) saturate(.9); opacity: .68; transform: scale(1.08); }
.idea-media-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,17,11,.2), transparent 18%, transparent 82%, rgba(2,17,11,.2)); pointer-events: none; }
.idea-modal-media .idea-media-item img { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: none; object-fit: contain; object-position: center; filter: drop-shadow(0 8px 16px rgba(0,0,0,.24)); }
.idea-modal-media .idea-media-gallery.has-multiple .idea-media-item { aspect-ratio: 4 / 3; }
.idea-media-gallery.is-single { min-height: 344px; display: grid; place-items: center; padding: 13px; background: #071e15; }
.idea-media-gallery.is-single::before { display: block; z-index: 0; inset: -14px; border-radius: 0; background: linear-gradient(rgba(3,19,13,.16), rgba(3,19,13,.3)), var(--gallery-image); background-position: center; background-size: cover; filter: blur(9px) brightness(.82) saturate(1.12); opacity: 1; }
.idea-media-gallery.is-single .idea-media-item { z-index: 1; width: min(100%, 318px); height: auto; aspect-ratio: 1; border: 0; border-radius: 8px; background: #081f16; box-shadow: 0 16px 32px rgba(0,0,0,.34), 0 0 0 1px rgba(209,167,86,.36); }
.idea-media-gallery.is-single .idea-media-item::before { display: none; }
.idea-media-gallery.is-single .idea-media-item::after { background: linear-gradient(135deg, rgba(0,0,0,.1), transparent 42%, rgba(0,0,0,.16)); }
.idea-modal-media .idea-media-gallery.is-single .idea-media-item img { object-fit: cover; filter: none; }
.idea-modal-media .idea-media-default { min-height: 230px; border: 1px solid rgba(217,173,85,.52); border-radius: 12px; background: radial-gradient(circle at 50% 22%, rgba(217,173,85,.2), transparent 36%), linear-gradient(145deg, rgba(255,253,248,.98), rgba(245,234,211,.96)); color: var(--deep-green); box-shadow: inset 0 1px rgba(255,255,255,.8); }
.idea-modal-media .idea-media-default img { width: 112px; height: 112px; aspect-ratio: 1; border: 0; opacity: .92; box-shadow: none; }
.idea-modal-media .idea-media-default span { color: var(--gold-dark); }
.idea-modal-media .idea-media-item > .idea-media-default { position: absolute; z-index: 3; inset: 0; min-height: 0; border: 0; border-radius: 0; }
.idea-modal-media .idea-media-item > .idea-media-default[hidden] { display: none; }
.idea-media-note { margin: 0 5px; color: rgba(244,239,227,.52); font-size: .54rem; line-height: 1.35; }
.idea-modal-side .idea-source-link { z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 11px; align-items: center; margin: 0; padding: 11px 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; background: rgba(255,254,250,.9); box-shadow: 0 10px 24px rgba(0,0,0,.13); backdrop-filter: blur(12px); }
.idea-modal-side .idea-source-link span { color: #72867d; }
.idea-modal-side .idea-source-link a { min-width: 0; color: var(--gold-dark); white-space: nowrap; overflow: hidden; overflow-wrap: normal; text-overflow: ellipsis; }
.idea-modal-side .idea-source-link a::after { content: " ↗"; }
.idea-modal-side .vote-summary { z-index: 2; margin: 0; border-color: rgba(255,255,255,.25); background: rgba(251,243,226,.94); box-shadow: 0 12px 26px rgba(0,0,0,.14); backdrop-filter: blur(12px); }

.idea-modal-content .idea-detail-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 17px 0 14px; border: 0; border-radius: 0; overflow: visible; background: transparent; }
.idea-modal-content .idea-detail-facts div { min-height: 68px; padding: 12px 13px; border: 1px solid rgba(20,59,43,.1) !important; border-radius: 10px; background: rgba(255,254,250,.72); box-shadow: 0 5px 16px rgba(20,59,43,.025); }
.idea-detail-facts dt { color: #789087; }
.idea-detail-facts dd { margin-top: 5px; font-size: .66rem; }
.vote-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 14px 0; padding: 14px 16px; border-color: rgba(209,167,86,.38); border-radius: 13px; background: linear-gradient(135deg, #fbf3e2, #f2e5c9); box-shadow: inset 0 1px rgba(255,255,255,.8); }
.vote-summary-copy { display: grid; gap: 4px; }
.vote-summary strong { font-size: .8rem; }
.vote-summary strong i { display: inline-block; width: 3px; height: 3px; margin: 0 6px 3px; border-radius: 50%; background: var(--gold-dark); }
.vote-summary-copy > span { color: var(--sage); font-size: .57rem; line-height: 1.4; }
.vote-summary-mark { flex: 0 0 auto; display: flex; width: 50px; height: 50px; align-items: center; justify-content: center; border: 1px solid rgba(151,113,38,.23); border-radius: 50%; background: rgba(255,254,250,.66); color: var(--gold-dark); font-family: var(--font-display); font-size: 1rem; font-weight: 600; box-shadow: 0 7px 18px rgba(151,113,38,.08); }

.vote-action-card { margin-top: 14px; padding: 18px; border: 1px solid rgba(20,59,43,.13); border-radius: 15px; background: rgba(255,254,250,.84); box-shadow: 0 12px 28px rgba(20,59,43,.05); }
.idea-modal-side .vote-action-card { z-index: 2; margin: 0; padding: 14px; border-color: rgba(255,255,255,.3); background: rgba(255,254,250,.92); box-shadow: 0 14px 28px rgba(0,0,0,.16); backdrop-filter: blur(14px); }
.vote-action-card.has-current-vote { border-color: rgba(70,121,89,.42); background: linear-gradient(145deg, rgba(241,247,241,.96), rgba(255,254,250,.92)); }
.vote-action-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vote-action-head h3, .override-heading h3 { margin: 4px 0 0; color: var(--deep-green); font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1; }
.idea-modal-side .vote-action-head h3 { font-size: 1.34rem; }
.current-vote-pill { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; min-width: 132px; padding: 6px 9px 6px 7px; border: 1px solid #bbd2c1; border-radius: 999px; background: #e3efe5; color: #255a40; }
.current-vote-check { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #2d684a; color: #fff; font-size: .68rem; }
.current-vote-pill small, .current-vote-pill strong { display: block; line-height: 1.2; }
.current-vote-pill small { color: #648071; font-size: .46rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.current-vote-pill strong { margin-top: 1px; font-size: .61rem; }
.vote-action-help { margin: 7px 0 0; max-width: 58ch; color: var(--sage); font-size: .56rem; line-height: 1.45; }
.vote-choice-buttons { margin-top: 10px; }
.vote-choice-buttons .decision-button { min-height: 54px; display: flex; align-items: center; justify-content: flex-start; gap: 9px; padding: 8px 11px; text-align: left; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.vote-choice-buttons .decision-button:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(20,59,43,.1); }
.vote-choice-buttons .decision-button > span:last-child { display: grid; gap: 1px; }
.vote-choice-buttons .decision-button strong { font-size: .65rem; }
.vote-choice-buttons .decision-button small { color: currentColor; font-size: .48rem; font-weight: 600; opacity: .62; }
.decision-icon { display: grid; flex: 0 0 auto; width: 30px; height: 30px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .72rem; opacity: .7; }
.vote-choice-buttons .decision-button.is-current { outline: 2px solid var(--warm-gold); outline-offset: 2px; box-shadow: 0 9px 20px rgba(151,113,38,.14); }
.vote-choice-buttons .decision-button.is-current .decision-icon { background: var(--warm-gold); border-color: var(--warm-gold); color: var(--deep-green); opacity: 1; }

.voter-breakdown { margin: 10px 0 0; padding: 13px 15px; border-color: rgba(209,167,86,.35); border-radius: 13px; background: rgba(251,243,228,.62); }
.idea-modal-side .voter-breakdown { z-index: 2; margin: 0; padding: 10px 12px; background: rgba(255,254,250,.9); box-shadow: 0 12px 25px rgba(0,0,0,.13); backdrop-filter: blur(12px); }
.idea-modal-side .voter-breakdown > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.idea-modal-side .voter-breakdown h3 { font-size: 1.05rem; }
.idea-modal-side .voter-breakdown ul { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 7px; }
.voter-breakdown h3 { font-size: 1.25rem; }
.voter-breakdown ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 9px; }
.voter-breakdown li { padding: 8px 9px; border: 1px solid rgba(209,167,86,.15); background: rgba(255,254,250,.84); }
.idea-rail-header { z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 32px; color: #f8edd6; }
.idea-rail-header .eyebrow { color: rgba(241,201,111,.84); font-size: .5rem; }
.idea-rail-header strong { display: block; margin-top: 3px; color: rgba(255,253,248,.8); font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; line-height: .9; }
.rail-seal { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(241,201,111,.54); border-radius: 50%; color: #f0c96f; font-size: .43rem; font-weight: 700; letter-spacing: .08em; box-shadow: 0 0 0 5px rgba(209,167,86,.07); }
.idea-modal-side .source-artifact, .idea-modal-side .source-artifact:visited, .idea-modal-side .source-artifact:hover, .idea-modal-side .source-artifact:focus { min-height: 64px; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; padding: 9px 12px 9px 9px; border-color: rgba(209,167,86,.38); border-radius: 14px; background: linear-gradient(135deg, rgba(252,247,235,.98), rgba(239,228,199,.94)); color: var(--deep-green); text-decoration: none; }
.source-artifact .source-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--deep-green); color: #f6d98f; font-size: .88rem; }
.source-artifact > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.source-artifact small { color: #72867d; font-size: .47rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.idea-modal-side .source-artifact strong { min-width: 0; overflow: hidden; color: var(--gold-dark); font-size: .61rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.source-artifact > i { padding: 6px 8px; border: 1px solid rgba(151,113,38,.2); border-radius: 999px; color: var(--gold-dark); font-size: .45rem; font-style: normal; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.idea-modal-side .review-pulse { display: block; padding: 17px; border-color: rgba(209,167,86,.44); border-radius: 16px; background: linear-gradient(145deg, rgba(252,247,235,.98), rgba(242,229,198,.96)); box-shadow: 0 16px 30px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.84); }
.review-pulse-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-pulse-heading .eyebrow { font-size: .5rem; }
.review-pulse-heading h3 { margin: 4px 0 0; color: var(--deep-green); font-family: var(--font-display); font-size: 1.48rem; font-weight: 600; line-height: .9; }
.review-pulse .vote-summary-mark { width: 51px; height: 51px; display: flex; gap: 1px; background: #fffdf8; color: var(--gold-dark); font-size: 1.15rem; }
.review-pulse .vote-summary-mark i { color: rgba(151,113,38,.54); font-family: var(--font-ui); font-size: .6rem; font-style: normal; }
.review-tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 16px; padding: 10px 0; border-block: 1px solid rgba(20,59,43,.1); }
.review-tally > div { min-width: 0; display: flex; align-items: center; gap: 7px; }
.review-tally-icon { width: 23px; height: 23px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; font-size: .57rem; font-weight: 700; }
.review-tally-icon.approve { background: #dcebdd; color: #246a47; }
.review-tally-icon.decline { background: #f5dfda; color: var(--rose); }
.review-tally-icon.needed { background: #f0e2bd; color: var(--gold-dark); }
.review-tally strong, .review-tally small { display: block; }
.review-tally strong { color: var(--deep-green); font-size: .83rem; line-height: 1; }
.review-tally small { margin-top: 3px; color: var(--sage); font-size: .43rem; font-weight: 700; letter-spacing: .035em; line-height: 1.1; text-transform: uppercase; }
.vote-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 13px 0 8px; padding: 0; list-style: none; }
.vote-track li { height: 7px; position: relative; border-radius: 999px; background: rgba(20,59,43,.11); overflow: hidden; }
.vote-track li::before { content: ""; position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
.vote-track li.is-approve::before { transform: scaleX(1); background: #32815b; }
.vote-track li.is-reject::before { transform: scaleX(1); background: #b35547; }
.vote-track li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.review-pulse-note { margin: 0; color: var(--sage); font-size: .52rem; line-height: 1.45; }
.review-pulse-note span { color: var(--deep-green); font-weight: 700; }
.idea-modal-side .review-room { padding: 15px; border-color: rgba(209,167,86,.34); border-radius: 15px; background: linear-gradient(145deg, rgba(255,254,250,.94), rgba(245,239,225,.88)); }
.review-room-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.review-room-heading .eyebrow { font-size: .48rem; }
.review-room-heading h3 { margin: 4px 0 0; color: var(--deep-green); font-size: 1.3rem; }
.review-room-heading > span { color: var(--gold-dark); font-size: .48rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.idea-modal-side .review-room ul { grid-template-columns: 1fr; gap: 6px; margin-top: 12px; }
.idea-modal-side .review-room li { min-height: 44px; position: relative; padding: 9px 10px 9px 14px; border: 1px solid rgba(20,59,43,.09); border-radius: 9px; background: rgba(255,255,255,.72); }
.idea-modal-side .review-room li::before { content: ""; width: 4px; position: absolute; inset: 8px auto 8px 0; border-radius: 0 4px 4px 0; background: #a7b6ae; }
.idea-modal-side .review-room li.is-approved::before { background: #32815b; }
.idea-modal-side .review-room li.is-not-approved::before { background: #b35547; }
.idea-modal-side .review-room li.is-empty { display: flex; align-items: center; min-height: 50px; border-style: dashed; color: var(--sage); font-size: .57rem; font-style: italic; }
.idea-modal-side .review-room li.is-empty::before { background: var(--warm-gold); }
.owner-override-form { margin-top: 11px; padding: 15px 16px 16px; border: 1px solid rgba(20,59,43,.14); border-radius: 15px; background: rgba(255,254,250,.78); box-shadow: 0 10px 25px rgba(20,59,43,.045); }
.override-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.override-heading > span { padding: 6px 9px; border: 1px solid rgba(151,113,38,.08); border-radius: 999px; background: #f1e7d2; color: #80652f; font-size: .48rem; font-weight: 700; white-space: nowrap; }
.owner-override-form .field { gap: 5px; }
.owner-override-form .field textarea { min-height: 70px; padding: 10px 12px; border-color: rgba(20,59,43,.18); background: rgba(255,254,250,.96); resize: vertical; }
.owner-decision-buttons { gap: 8px; margin-top: 8px; }
.owner-decision-buttons .decision-button { min-height: 54px; display: flex; align-items: center; justify-content: flex-start; gap: 9px; padding: 7px 10px; text-align: left; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.owner-decision-buttons .decision-button:hover { transform: translateY(-2px); box-shadow: 0 9px 18px rgba(20,59,43,.1); }
.owner-decision-buttons .decision-button > span:last-child { min-width: 0; display: grid; gap: 2px; }
.owner-decision-buttons .decision-button strong { font-size: .63rem; line-height: 1.1; }
.owner-decision-buttons .decision-button small { font-size: .46rem; font-weight: 600; line-height: 1.1; opacity: .62; white-space: nowrap; }
.owner-decision-icon { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .66rem; opacity: .78; }
.owner-decision-buttons .recommend .owner-decision-icon { border-color: rgba(255,255,255,.58); background: rgba(255,255,255,.1); }
.owner-decision-buttons .hold { border-color: #c8d3cd; background: #f8faf7; color: #315847; }
.owner-decision-buttons .hold .owner-decision-icon { background: #e7eee9; }
.owner-decision-buttons .reject { background: #fffaf8; }

@media (max-width: 900px) {
  .idea-modal { width: min(100%, calc(100vw - 24px)); height: calc(100vh - 48px); height: calc(100dvh - 48px); border-radius: 19px; }
  .idea-modal-stage { display: flex; flex-direction: column; }
  .idea-modal-content { order: 1; min-height: auto; width: 100%; flex: 0 0 auto; padding: 30px 25px 40px; }
  .idea-modal-side { order: 2; min-height: auto; width: 100%; flex: 0 0 auto; padding: 22px 70px 20px 20px; }
  .idea-media-item, .idea-modal-media .idea-media-gallery.has-multiple .idea-media-item { height: min(300px, 52vw); aspect-ratio: auto; }
}
@media (max-width: 600px) {
  .idea-modal { height: calc(100vh - 24px); height: calc(100dvh - 24px); }
  .idea-modal .modal-close { top: 15px; right: 15px; width: 42px; height: 42px; }
  .idea-modal-side { padding: 17px 64px 17px 15px; }
  .idea-media-item, .idea-modal-media .idea-media-gallery.has-multiple .idea-media-item { height: min(190px, 48vw); }
  .idea-modal-media .idea-media-default { min-height: 160px; }
  .idea-modal-content { display: flex; flex-direction: column; padding: 25px 18px 36px; }
  .idea-modal-content .idea-detail-header { order: 1; }
  .idea-modal-content > .vote-action-card { order: 2; margin-top: 16px; }
  .idea-modal-content .idea-detail-facts { order: 3; }
  .idea-modal-content .owner-override-form { order: 4; }
  .idea-modal-content .delete-inspiration-form { order: 5; }
  .idea-modal-content .history-callout { order: 6; }
  .idea-reference-row { align-items: flex-start; flex-direction: column; gap: 9px; }
  .idea-modal h2 { margin-top: 15px; font-size: clamp(2.6rem, 13vw, 3.5rem); }
  .idea-modal-content .idea-detail-facts { grid-template-columns: 1fr 1fr; }
  .idea-modal-content .decision-buttons.two-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idea-modal-content .vote-action-head { align-items: flex-start; flex-direction: column; }
  .current-vote-pill { width: 100%; border-radius: 11px; }
  .vote-summary { align-items: flex-start; }
  .vote-summary-mark { width: 46px; height: 46px; }
  .voter-breakdown ul { grid-template-columns: 1fr 1fr; }
  .override-heading { align-items: flex-start; flex-direction: column; }
  .owner-decision-buttons { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .idea-modal-content .idea-detail-facts { grid-template-columns: 1fr; }
  .vote-summary-mark { display: none; }
  .idea-modal-content .decision-buttons.two-actions.vote-choice-buttons { grid-template-columns: 1fr; }
  .idea-modal-content .vote-choice-buttons .decision-button { width: 100%; gap: 8px; padding-inline: 11px; }
  .idea-modal-content .decision-icon { width: 30px; height: 30px; }
}

/* Shared platform refinement: dashboard and Idea Bank */
:root {
  --deep-green: #123f2e;
  --forest-deep: #061c14;
  --forest-black: #03120d;
  --warm-gold: #d9ad55;
  --gold-bright: #efc96f;
  --gold-dark: #9a6e22;
  --cream: #f2e9d8;
  --cream-light: #f8f4ec;
  --paper: #fffdf8;
  --ink: #123428;
  --sage: #70877d;
  --line: #dcd8cb;
}

html { background: var(--forest-deep); }
body { background: var(--cream-light); }
body::before { content: ""; width: 240px; height: 240px; position: fixed; z-index: 0; right: -135px; bottom: -125px; border: 1px solid rgba(209,167,86,.14); border-radius: 50%; box-shadow: 0 0 0 36px rgba(209,167,86,.025), 0 0 0 72px rgba(209,167,86,.018); pointer-events: none; }

.app-shell { min-height: 100vh; padding-left: 284px; background: radial-gradient(circle at 94% 4%, rgba(217,173,85,.08), transparent 22%), linear-gradient(155deg, #fbf8f1 0%, #f6f1e7 100%); }
.workspace { position: relative; z-index: 1; }

.sidebar { width: 284px; overflow: hidden; padding: 30px 21px 25px; border-right: 1px solid rgba(217,173,85,.32); background: radial-gradient(circle at 18% 5%, rgba(58,110,81,.28), transparent 25%), radial-gradient(circle at 92% 88%, rgba(29,84,60,.42), transparent 31%), linear-gradient(155deg, #03170f 0%, #082a1e 64%, #0a3828 100%); }
.sidebar::before { content: ""; position: absolute; inset: 13px; border: 1px solid rgba(217,173,85,.15); pointer-events: none; }
.sidebar::after { content: ""; width: 230px; height: 330px; position: absolute; right: -146px; bottom: 42px; border: 1px solid rgba(217,173,85,.14); border-bottom: 0; border-radius: 130px 130px 0 0; transform: rotate(-8deg); box-shadow: 0 0 0 26px rgba(217,173,85,.018), 0 0 0 52px rgba(217,173,85,.012); pointer-events: none; }
.sidebar > * { position: relative; z-index: 1; }
.app-brand { gap: 13px; margin: 0 10px 50px; }
.app-brand img { width: 58px; height: 58px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.22)); }
.app-brand .brand-copy strong { color: #f7ecd5; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: .2em; }
.app-brand .brand-copy span { color: rgba(242,233,216,.55); font-size: .5rem; letter-spacing: .14em; }
.nav-eyebrow { margin: 0 13px 12px; color: rgba(217,173,85,.7); font-size: .54rem; font-weight: 700; letter-spacing: .23em; text-transform: uppercase; }
.side-nav { gap: 4px; }
.nav-item { min-height: 54px; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 9px; border: 1px solid transparent; border-left: 2px solid transparent; border-radius: 2px; padding: 0 13px; color: rgba(242,233,216,.6); transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.nav-item .nav-index { color: rgba(217,173,85,.78); font-size: .57rem; font-weight: 700; letter-spacing: .1em; }
.nav-item .nav-label { font-size: .72rem; }
.nav-item .nav-state { padding: 4px 6px; border: 1px solid rgba(217,173,85,.1); border-radius: 99px; color: rgba(242,233,216,.35); font-size: .47rem; }
.nav-item:hover:not(.is-future) { transform: translateX(2px); border-color: rgba(217,173,85,.12); color: #fff7e8; background: rgba(255,255,255,.055); }
.nav-item.active { border-color: rgba(217,173,85,.22); border-left-color: var(--warm-gold); background: linear-gradient(90deg, rgba(217,173,85,.15), rgba(255,255,255,.045)); box-shadow: inset 0 1px rgba(255,255,255,.035); }
.nav-item.active .nav-index { color: var(--gold-bright); }
.sidebar-footer { display: grid; gap: 6px; margin-inline: 2px; padding: 23px 12px 0; }
.sidebar-footer p { margin: 0; }
.sidebar-footer strong { max-width: 190px; color: #e1b45c; font-family: var(--font-display); font-size: 1.05rem; font-style: italic; font-weight: 500; line-height: 1.05; }
.sidebar-footer span { font-size: .6rem; }

.topbar { height: 80px; padding: 0 clamp(28px, 3.5vw, 58px); border-bottom-color: rgba(20,59,43,.1); background: rgba(249,246,238,.88); box-shadow: 0 8px 30px rgba(12,42,31,.035); }
.workspace-heading { display: grid; gap: 3px; }
.workspace-name { color: var(--gold-dark); font-size: .59rem; letter-spacing: .22em; }
.workspace-section { color: var(--deep-green); font-family: var(--font-display); font-size: 1.05rem; line-height: 1; }
.identity { gap: 11px; }
.identity-copy strong { color: var(--deep-green); font-size: .72rem; }
.identity-copy span { color: #7c9087; font-size: .6rem; }
.avatar { width: 40px; height: 40px; border: 1px solid rgba(217,173,85,.32); background: linear-gradient(145deg, #f8eedb, #ecdbb8); color: #87601b; box-shadow: 0 6px 16px rgba(151,113,38,.08); }
.logout-button { min-height: 40px; border-color: rgba(20,59,43,.2); border-radius: 2px; padding: 0 14px; letter-spacing: .11em; text-transform: uppercase; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.logout-button:hover { border-color: var(--deep-green); background: var(--deep-green); color: var(--cream); }

.dashboard { width: min(100%, 1540px); padding: clamp(30px, 3.7vw, 56px); }
.dashboard-hero { min-height: 276px; overflow: hidden; position: relative; isolation: isolate; align-items: center; padding: clamp(34px, 4vw, 54px); border: 1px solid rgba(217,173,85,.48); border-radius: 3px; background: radial-gradient(circle at 78% 14%, rgba(82,132,97,.33), transparent 24%), radial-gradient(circle at 2% 105%, rgba(217,173,85,.12), transparent 28%), linear-gradient(135deg, #03170f 0%, #092d20 56%, #104531 100%); box-shadow: 0 24px 55px rgba(6,28,20,.16); }
.dashboard-hero::before { content: ""; position: absolute; z-index: -1; inset: 11px; border: 1px solid rgba(217,173,85,.2); pointer-events: none; }
.dashboard-hero::after { content: ""; width: 240px; height: 330px; position: absolute; z-index: -1; right: 4%; bottom: -258px; border: 1px solid rgba(217,173,85,.25); border-radius: 130px 130px 0 0; box-shadow: 0 0 0 30px rgba(217,173,85,.025), 0 0 0 60px rgba(217,173,85,.018); transform: rotate(4deg); }
.dashboard-hero .hero-copy { max-width: 720px; position: relative; z-index: 2; }
.dashboard-hero .eyebrow { color: var(--gold-bright); }
.dashboard-hero h1 { margin: 14px 0 13px; color: #f8eedb; font-size: clamp(3.4rem, 5vw, 5.4rem); line-height: .86; text-shadow: 0 2px 22px rgba(0,0,0,.18); }
.dashboard-hero .hero-copy > p:last-child { max-width: 600px; color: rgba(242,233,216,.7); font-size: .8rem; line-height: 1.7; }
.hero-brand-mark { width: 310px; height: 310px; position: absolute; z-index: -1; right: 13%; bottom: -119px; object-fit: contain; opacity: .105; filter: saturate(.7); transform: rotate(-4deg); }
.hero-brand-type { display: grid; place-items: center; color: var(--warm-gold); font-family: var(--font-display); font-size: 5.5rem; font-weight: 600; letter-spacing: -.06em; }
.hero-actions { position: relative; z-index: 3; }

.primary-button, .secondary-button, .ghost-button, .danger-button { min-height: 50px; border-radius: 2px; padding: 0 21px; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; box-shadow: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.primary-button { border-color: #d4a64c; background: linear-gradient(135deg, #efcf82 0%, #c89237 100%); color: #112c20; box-shadow: 0 10px 24px rgba(2,15,10,.2), inset 0 1px rgba(255,255,255,.35); }
.primary-button:hover { border-color: #edc36a; background: linear-gradient(135deg, #f5d991 0%, #d7a148 100%); color: #071b12; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(2,15,10,.25); }
.secondary-button { border-color: rgba(244,239,227,.42); background: rgba(255,255,255,.055); color: #f4ead7; backdrop-filter: blur(8px); }
.secondary-button:hover { border-color: var(--gold-bright); background: rgba(217,173,85,.1); color: #fff8e8; transform: translateY(-2px); }
.drawer-footer .secondary-button, .modal-actions .secondary-button { border-color: rgba(20,59,43,.2); background: var(--paper); color: var(--deep-green); }
.small-button { min-height: 40px; border: 1px solid var(--deep-green); border-radius: 2px; padding: 0 14px; background: transparent; color: var(--deep-green); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease; }
.small-button:hover { border-color: var(--deep-green); background: var(--deep-green); color: var(--cream); transform: translateY(-1px); }

.section-heading { margin: 42px 0 17px; padding: 0 2px; }
.section-heading h2 { margin-top: 7px; font-size: clamp(2rem, 3vw, 2.55rem); line-height: .95; }
.section-heading > p { display: flex; align-items: center; gap: 7px; font-size: .62rem; }
.section-heading > p::before { content: ""; width: 34px; border-top: 1px solid var(--warm-gold); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-dark); font-size: .61rem; letter-spacing: .06em; text-transform: uppercase; }
.text-link::after { content: "→"; font-size: .85rem; }

.metric-grid { gap: 12px; }
.metric-card { --metric-accent: #b68028; --metric-tint: #f1dfb8; min-height: 152px; padding: 20px 21px 19px 24px; border: 1px solid rgba(182,128,40,.24); border-left: 4px solid var(--warm-gold); border-radius: 8px; background: linear-gradient(145deg, #fffdf7 0%, #f9f0dd 100%); box-shadow: 0 8px 22px rgba(151,113,38,.075); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.metric-card:nth-child(1), .metric-card:nth-child(2), .metric-card:nth-child(3), .metric-card:nth-child(4) { --metric-accent: #a87320; --metric-tint: #f0ddb2; }
.metric-card::before, .metric-card::after { display: none; }
.metric-card:hover { transform: translateY(-2px); border-color: rgba(182,128,40,.48); border-left-color: #bd882e; box-shadow: 0 13px 28px rgba(151,113,38,.13); }
.metric-card:first-child { color: var(--ink); background: linear-gradient(145deg, #fffdf7 0%, #f9f0dd 100%); }
.metric-card:first-child .metric-delta, .metric-card:first-child > span { color: var(--sage); }
.metric-top { align-items: center; }
.metric-icon { width: 30px; height: 24px; display: grid; place-items: center; border-radius: 999px; background: var(--metric-tint); color: var(--metric-accent); font-family: var(--font-ui); font-size: .53rem; font-weight: 700; letter-spacing: .1em; }
.metric-card:first-child .metric-icon { color: var(--metric-accent); }
.metric-delta { color: var(--metric-accent); font-size: .52rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.metric-card strong { margin: 19px 0 4px; color: #9a6a1f; font-family: var(--font-ui); font-size: 2.45rem; font-weight: 700; letter-spacing: -.06em; }
.metric-card > span { color: var(--sage); font-size: .61rem; font-weight: 600; letter-spacing: .01em; }

.dashboard-grid, .lower-grid { gap: 15px; }
.panel { overflow: hidden; border-color: rgba(20,59,43,.13); border-radius: 3px; background: rgba(255,253,248,.84); box-shadow: 0 14px 34px rgba(20,59,43,.05); }
.panel-head { min-height: 68px; padding: 18px 21px; border-bottom-color: rgba(20,59,43,.1); background: linear-gradient(90deg, rgba(245,238,224,.72), rgba(255,253,248,.55)); }
.panel-head h3 { color: var(--deep-green); font-size: 1.5rem; }
.panel-head span { font-size: .57rem; letter-spacing: .04em; text-transform: uppercase; }
.approval-row { min-height: 91px; padding: 17px 21px; transition: background .18s ease; }
.approval-row:hover { background: #f3ede0; }
.idea-title h4 { margin-top: 6px; font-size: .77rem; }
.idea-title p, .idea-meta { font-size: .59rem; }
.idea-code { font-size: .55rem; letter-spacing: .15em; }
.priority-item { min-height: 91px; padding: 17px 20px; transition: background .18s ease; }
.priority-item:hover { background: #f3ede0; }
.priority-rank > span:first-child { color: var(--gold-dark); font-size: 1.1rem; }
.support { border: 1px solid rgba(37,91,65,.12); background: #e2ece4; font-size: .52rem; }
.snapshot-row { min-height: 64px; padding: 14px 20px; transition: background .18s ease, padding .18s ease; }
.snapshot-row:hover { padding-left: 24px; background: #f3ede0; }
.activity-list { padding-top: 5px; }
.activity-item { padding-block: 14px; }
.activity-item::before { background: var(--warm-gold); }
.status-badge { min-height: 25px; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 18%, transparent); border-radius: 2px; padding: 0 8px; font-size: .5rem; letter-spacing: .08em; }

.idea-bank-page { background: transparent; }
.compact-hero { min-height: 244px; padding-block: 38px; }
.compact-hero h1 { font-size: clamp(4rem, 6vw, 6rem); }
.idea-bank-toolbar { min-height: 72px; margin: 18px 0; padding: 14px 18px; border-color: rgba(20,59,43,.13); border-radius: 3px; background: rgba(255,253,248,.82); box-shadow: 0 12px 28px rgba(20,59,43,.05); }
.idea-bank-toolbar > div:first-child { gap: 9px; }
.idea-bank-toolbar strong { color: var(--gold-dark); font-size: 2.35rem; }
.idea-bank-toolbar > p { font-size: .62rem; }
.view-toggle { padding: 3px; border-color: rgba(20,59,43,.15); border-radius: 2px; background: #eee7d9; }
.view-toggle a { min-width: 64px; border-radius: 1px; padding: 9px 13px; font-size: .57rem; letter-spacing: .07em; text-align: center; text-transform: uppercase; }
.view-toggle a.active { background: var(--deep-green); color: var(--cream); box-shadow: 0 5px 14px rgba(20,59,43,.15); }
.idea-card-grid { align-items: stretch; gap: 14px; }
.idea-card { height: 100%; border-color: rgba(20,59,43,.14); border-radius: 3px; background: var(--paper); box-shadow: 0 13px 30px rgba(20,59,43,.055); }
.idea-card:hover { transform: translateY(-5px); border-color: rgba(217,173,85,.85); background: var(--paper); box-shadow: 0 22px 42px rgba(20,59,43,.13); }
.idea-card-media { height: 188px; background: radial-gradient(circle at 25% 18%, rgba(217,173,85,.2), transparent 24%), linear-gradient(145deg, var(--forest-deep), #174b36); }
.idea-card-media::before { content: ""; position: absolute; z-index: 2; inset: 8px; border: 1px solid rgba(255,255,255,.16); pointer-events: none; }
.idea-card-media::after { z-index: 1; background: linear-gradient(0deg, rgba(3,18,13,.72), transparent 62%); }
.idea-card-media img { position: relative; z-index: 0; }
.idea-card-media .default-idea-image { width: 94px; height: 94px; opacity: .82; }
.idea-media-label { position: absolute; z-index: 3; left: 18px; bottom: 15px; color: rgba(248,238,219,.82); font-size: .49rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.idea-card-body { flex: 1; min-height: 320px; padding: 21px 21px 20px; }
.idea-card h2 { height: 3.78rem; display: -webkit-box; overflow: hidden; margin: 17px 0 9px; font-size: 2.05rem; line-height: .92; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.idea-card-body > p { height: 2.12rem; display: -webkit-box; overflow: hidden; margin: 0; color: var(--sage); font-size: .64rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.idea-card dl { gap: 0; margin: 18px 0 0; border-top: 1px solid rgba(20,59,43,.1); }
.idea-card dl div { min-height: 34px; align-items: center; border-bottom: 1px solid rgba(20,59,43,.075); font-size: .56rem; }
.idea-card dt { letter-spacing: .04em; text-transform: uppercase; }
.idea-card dd { max-width: 62%; }
.idea-card .small-button { width: 100%; align-self: stretch; justify-content: space-between; margin-top: auto; background: transparent; }
.idea-card:hover .small-button { border-color: var(--deep-green); background: var(--deep-green); color: var(--cream); }
.idea-list-panel { border-top: 3px solid var(--warm-gold); }
.idea-bank-table th { height: 49px; padding-inline: 18px; background: linear-gradient(90deg, #092b1f, #124934); color: #f3e8d4; font-size: .52rem; letter-spacing: .14em; }
.idea-bank-table td { padding: 17px 18px; font-size: .62rem; }
.idea-bank-table tbody tr:hover { background: #f1eadc; }

@media (max-width: 1180px) {
  .app-shell { padding-left: 244px; }
  .sidebar { width: 244px; }
  .app-brand .brand-copy span { display: none; }
  .hero-brand-mark { right: 4%; }
}

@media (max-width: 900px) {
  body::before { display: none; }
  .app-shell { padding-left: 0; }
  .topbar { height: 70px; }
  .workspace-heading { display: none; }
  .mobile-brand img { width: 39px; height: 39px; }
  .mobile-nav { top: 70px; border-bottom-color: rgba(20,59,43,.1); background: rgba(248,244,236,.96); }
  .mobile-nav a, .mobile-nav button { border-radius: 2px; font-size: .56rem; letter-spacing: .05em; text-transform: uppercase; }
  .mobile-nav a.active { border-color: var(--deep-green); background: var(--deep-green); color: var(--cream); }
  .dashboard { padding: 25px 20px 44px; }
  .dashboard-hero { min-height: 0; align-items: flex-start; padding: 36px 30px; }
  .hero-brand-mark { width: 240px; height: 240px; right: -30px; bottom: -105px; }
}

@media (max-width: 640px) {
  .topbar { padding-inline: 14px; }
  .identity { gap: 8px; }
  .avatar { width: 36px; height: 36px; }
  .logout-button { min-height: 36px; padding-inline: 9px; font-size: .55rem; }
  .dashboard { padding: 18px 13px 38px; }
  .dashboard-hero { gap: 27px; padding: 32px 24px 26px; }
  .dashboard-hero::before { inset: 7px; }
  .dashboard-hero h1 { font-size: clamp(3rem, 15vw, 4.25rem); }
  .dashboard-hero .hero-copy > p:last-child { max-width: 42ch; font-size: .7rem; }
  .hero-actions { width: 100%; }
  .hero-actions > * { width: 100%; }
  .primary-button, .secondary-button { min-height: 48px; }
  .section-heading { align-items: flex-start; margin-top: 32px; }
  .section-heading > p { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { min-height: 145px; padding: 18px 16px; }
  .metric-card strong { margin-top: 19px; font-size: 2.35rem; }
  .metric-delta { max-width: 86px; text-align: right; }
  .approval-row { min-height: 84px; }
  .panel-head { min-height: 62px; }
  .compact-hero { padding-block: 31px 25px; }
  .compact-hero h1 { font-size: clamp(3.7rem, 18vw, 5rem); }
  .idea-bank-toolbar { align-items: center; gap: 11px; margin-block: 12px; }
  .idea-bank-toolbar > div:first-child { flex: 1 1 auto; }
  .idea-bank-toolbar > p { display: none; }
  .view-toggle { margin-left: auto; }
  .idea-card-grid { gap: 11px; }
  .idea-card-media { height: 176px; }
  .idea-card-body { min-height: 0; }
  .idea-bank-table tr { padding-block: 16px; }
  .idea-bank-table td:last-child { margin-top: 7px; }
  .idea-bank-table td:last-child::before { display: none; }
  .idea-bank-table td:last-child .small-button { width: 100%; }
}

@media (max-width: 390px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 132px; }
  .idea-bank-toolbar strong { font-size: 1.9rem; }
  .view-toggle a { min-width: 55px; padding-inline: 9px; }
}

/* Development Projects */
.development-page { padding-bottom: 80px; }
.development-hero h1 { max-width: 760px; font-size: clamp(3.5rem, 5.5vw, 6rem); }
.development-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 17px; border: 1px solid rgba(20,59,43,.13); background: rgba(20,59,43,.13); box-shadow: 0 12px 28px rgba(20,59,43,.05); }
.development-metrics article { min-height: 116px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 3px 16px; padding: 20px 22px; background: rgba(255,253,248,.94); }
.development-metrics span { color: var(--gold-dark); font-size: .54rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.development-metrics strong { grid-row: span 2; color: var(--deep-green); font-family: var(--font-display); font-size: 3rem; font-weight: 500; line-height: .8; }
.development-metrics small { color: var(--sage); font-size: .56rem; }
.development-flow { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(600px, 1.5fr); align-items: center; gap: 38px; margin-top: 16px; padding: 28px 30px; border: 1px solid rgba(217,173,85,.42); background: linear-gradient(135deg, #07251a, #0e402e); color: var(--cream); }
.flow-copy h2 { margin: 7px 0 8px; color: #f7ecd7; font-size: 2rem; }
.flow-copy > p:last-child { max-width: 43ch; margin: 0; color: rgba(242,233,216,.58); font-size: .62rem; line-height: 1.55; }
.development-flow .eyebrow { color: var(--gold-bright); }
.stage-track { display: grid; grid-template-columns: repeat(7, minmax(70px, 1fr)); margin: 0; padding: 0; list-style: none; }
.stage-track li { min-height: 70px; display: grid; align-content: center; gap: 6px; position: relative; padding-left: 18px; border-left: 1px solid rgba(217,173,85,.25); }
.stage-track li::after { content: ""; width: 6px; height: 6px; position: absolute; left: -4px; top: calc(50% - 3px); border-radius: 50%; background: var(--warm-gold); box-shadow: 0 0 0 5px rgba(217,173,85,.1); }
.stage-track span { color: rgba(239,201,111,.64); font-size: .48rem; font-weight: 700; letter-spacing: .12em; }
.stage-track strong { color: rgba(248,238,219,.8); font-size: .58rem; font-weight: 600; }
.stage-track .product-stage { border-color: var(--warm-gold); background: rgba(217,173,85,.1); }
.stage-track .product-stage strong { color: var(--gold-bright); }
.development-heading { margin-top: 38px; }
.approved-idea-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.approved-idea-card { min-height: 176px; display: flex; flex-direction: column; padding: 19px 20px; border: 1px solid rgba(20,59,43,.14); border-top: 3px solid var(--warm-gold); background: var(--paper); box-shadow: 0 8px 21px rgba(20,59,43,.045); }
.approved-idea-card > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qualification-state { padding: 5px 7px; border: 1px solid rgba(44,116,80,.2); color: #2b7450; background: #e5f1e9; font-size: .48rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.approved-idea-card.is-converted { border-top-color: #83958b; background: rgba(249,248,243,.8); }
.approved-idea-card.is-converted .qualification-state { border-color: rgba(112,135,125,.2); background: #ecefeb; color: #667b71; }
.approved-idea-card h3 { margin: 22px 0 7px; color: var(--deep-green); font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; line-height: 1; }
.approved-idea-card p { margin: 0; color: var(--sage); font-size: .57rem; }
.text-action { align-self: flex-start; margin-top: auto; border: 0; padding: 8px 0 0; background: transparent; color: var(--gold-dark); font-size: .55rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.project-list { display: grid; gap: 14px; }
.development-empty { grid-column: 1 / -1; min-height: 150px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 30px; border: 1px dashed rgba(20,59,43,.22); background: rgba(255,253,248,.5); color: var(--sage); text-align: center; }
.development-empty strong { color: var(--deep-green); font-family: var(--font-display); font-size: 1.8rem; }
.development-empty span { font-size: .64rem; }
.development-empty.large { min-height: 260px; }
.development-empty .primary-button { margin-top: 12px; }
.project-card { overflow: hidden; border: 1px solid rgba(20,59,43,.14); border-left: 4px solid var(--warm-gold); background: rgba(255,253,248,.95); box-shadow: 0 14px 35px rgba(20,59,43,.065); }
.project-card.status-launch_ready { border-left-color: #31865b; }
.project-card.status-product { border-left-color: var(--gold-dark); background: linear-gradient(135deg, #fffdf8, #f8efdc); }
.project-card-header { display: grid; grid-template-columns: minmax(0, 1fr) 130px; align-items: center; gap: 25px; padding: 26px 28px 22px; }
.project-identity > div { display: flex; align-items: center; gap: 10px; }
.project-status { padding: 5px 8px; border: 1px solid rgba(182,128,40,.22); background: #f3e5c7; color: #8a611f; font-size: .49rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.status-launch_ready .project-status { border-color: rgba(43,116,80,.2); background: #e0efe5; color: #246a47; }
.status-product .project-status { background: var(--deep-green); color: var(--cream); }
.project-identity h3 { margin: 15px 0 8px; color: var(--deep-green); font-family: var(--font-display); font-size: clamp(2rem, 3vw, 3rem); font-weight: 600; line-height: .9; }
.project-identity > p { max-width: 84ch; margin: 0; color: var(--sage); font-size: .64rem; line-height: 1.6; }
.project-progress { display: grid; justify-items: center; gap: 8px; }
.progress-ring { width: 88px; height: 88px; display: grid; place-content: center; position: relative; border-radius: 50%; background: conic-gradient(var(--warm-gold) calc(var(--progress) * 1%), #e6e4dc 0); text-align: center; }
.progress-stage-0 { --progress: 0; }
.progress-stage-1 { --progress: 17; }
.progress-stage-2 { --progress: 33; }
.progress-stage-3 { --progress: 50; }
.progress-stage-4 { --progress: 67; }
.progress-stage-5 { --progress: 83; }
.progress-stage-6 { --progress: 100; }
.progress-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--paper); }
.progress-ring strong, .progress-ring span { position: relative; z-index: 1; }
.progress-ring strong { color: var(--deep-green); font-size: .74rem; }
.progress-ring span { color: var(--sage); font-size: .47rem; text-transform: uppercase; }
.project-progress > small { max-width: 125px; color: var(--sage); font-size: .5rem; text-align: center; }
.project-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid rgba(20,59,43,.09); background: #f6f2e8; }
.project-facts div { display: grid; gap: 5px; padding: 13px 24px; border-right: 1px solid rgba(20,59,43,.08); }
.project-facts div:last-child { border-right: 0; }
.project-facts span { color: var(--sage); font-size: .48rem; letter-spacing: .07em; text-transform: uppercase; }
.project-facts strong { color: var(--ink); font-size: .59rem; }
.project-sources { display: flex; flex-wrap: wrap; gap: 7px; padding: 16px 25px 8px; }
.project-sources span { padding: 6px 9px; border: 1px solid rgba(20,59,43,.1); background: #f8f5ed; color: var(--sage); font-size: .52rem; }
.project-stage-status { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 0; padding: 10px 25px 18px; list-style: none; }
.project-stage-status li { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid rgba(20,59,43,.1); color: #8b9b94; background: #faf9f5; font-size: .53rem; }
.project-stage-status li span { font-size: .68rem; }
.project-stage-status li.complete { border-color: rgba(43,116,80,.2); background: #e9f1ea; color: #286a49; font-weight: 700; }
.iteration-history { border-top: 1px solid rgba(20,59,43,.1); }
.iteration-history summary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; color: var(--deep-green); cursor: pointer; font-size: .58rem; font-weight: 700; letter-spacing: .06em; list-style: none; text-transform: uppercase; }
.iteration-history summary::-webkit-details-marker { display: none; }
.iteration-history summary::before { content: "+"; margin-right: 10px; color: var(--gold-dark); font-size: 1rem; }
.iteration-history[open] summary::before { content: "−"; }
.iteration-history summary span { margin-left: auto; color: var(--sage); font-size: .5rem; font-weight: 600; }
.timeline { display: grid; gap: 0; padding: 5px 26px 22px; background: #f8f5ee; }
.timeline-empty { margin: 10px 0; color: var(--sage); font-size: .61rem; }
.timeline-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; position: relative; padding: 16px 0; border-bottom: 1px solid rgba(20,59,43,.09); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-version { width: 38px; height: 38px; display: grid; place-items: center; z-index: 1; border-radius: 50%; background: var(--deep-green); color: var(--cream); font-size: .55rem; font-weight: 700; }
.timeline-title { display: flex; justify-content: space-between; gap: 15px; }
.timeline-title > span { color: var(--gold-dark); font-size: .51rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.timeline-title small { color: var(--sage); font-size: .5rem; }
.timeline-item h4 { margin: 7px 0 5px; color: var(--deep-green); font-size: .74rem; }
.timeline-item p { margin: 0; color: var(--sage); font-size: .59rem; line-height: 1.6; }
.timeline-item pre { overflow: auto; max-height: 260px; margin: 10px 0 0; padding: 13px; border: 1px solid rgba(20,59,43,.1); background: #fffdf8; color: var(--ink); font: .56rem/1.6 var(--font-ui); white-space: pre-wrap; }
.iteration-values { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.iteration-values span { padding: 5px 7px; border: 1px solid rgba(20,59,43,.1); background: #fffdf8; color: var(--sage); font-size: .49rem; }
.project-actions { min-height: 68px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 10px 25px; border-top: 1px solid rgba(20,59,43,.1); }
.compact-button { min-height: 40px; padding-inline: 15px; }
.viewer-note { color: var(--sage); font-size: .55rem; }
.product-seal { width: 100%; display: flex; align-items: center; gap: 12px; }
.product-seal span { padding: 7px 10px; background: var(--deep-green); color: var(--gold-bright); font-size: .5rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.product-seal strong { color: var(--deep-green); font-size: .62rem; }
.development-drawer { width: min(620px, 100%); }
.development-drawer .drawer-body { padding: 25px 28px 35px; }
.development-drawer form { display: grid; gap: 18px; }
.idea-selector, .readiness-checklist { display: grid; gap: 8px; margin: 0; border: 0; padding: 0; }
.idea-selector legend, .readiness-checklist legend { margin-bottom: 4px; color: var(--deep-green); font-size: .62rem; font-weight: 700; }
.idea-selector legend span { color: #a44134; }
.idea-selector label, .readiness-checklist label { display: flex; align-items: center; gap: 11px; padding: 12px 13px; border: 1px solid rgba(20,59,43,.12); background: #faf8f1; cursor: pointer; }
.idea-selector input, .readiness-checklist input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--deep-green); }
.idea-selector label:has(input:checked), .readiness-checklist label:has(input:checked) { border-color: rgba(43,116,80,.45); background: #e9f2ea; }
.idea-selector label span { display: grid; gap: 3px; }
.idea-selector strong { color: var(--ink); font-size: .61rem; }
.idea-selector small { color: var(--sage); font-size: .5rem; }
.dialog-project-name { display: block; margin-top: 8px; color: var(--sage); font-size: .57rem; }
.tall-textarea { min-height: 190px; font-family: var(--font-ui); }
.iteration-numbers { grid-template-columns: 1fr 1fr; }
.readiness-checklist { padding: 17px; border: 1px solid rgba(182,128,40,.25); background: #fbf3e1; }
.readiness-checklist > p { margin: 0 0 5px; color: var(--sage); font-size: .56rem; line-height: 1.5; }
.readiness-checklist label { background: rgba(255,253,248,.8); color: var(--ink); font-size: .59rem; }
.product-modal { width: min(560px, calc(100% - 28px)); }
.product-modal form { width: 100%; margin-top: 20px; text-align: left; }
.product-modal .modal-actions { margin-top: 18px; }

@media (max-width: 1180px) {
  .development-flow { grid-template-columns: 1fr; gap: 18px; }
  .approved-idea-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .development-metrics { grid-template-columns: 1fr 1fr; }
  .stage-track { overflow-x: auto; grid-template-columns: repeat(7, 100px); padding-bottom: 5px; }
  .project-card-header { grid-template-columns: 1fr 100px; padding: 22px; }
  .project-facts { grid-template-columns: 1fr 1fr; }
  .project-facts div:nth-child(2) { border-right: 0; }
  .project-facts div:nth-child(-n+2) { border-bottom: 1px solid rgba(20,59,43,.08); }
  .project-stage-status { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .development-hero h1 { font-size: clamp(3.1rem, 16vw, 4.5rem); }
  .development-metrics article { min-height: 100px; padding: 16px; }
  .development-metrics strong { font-size: 2.35rem; }
  .development-flow { padding: 24px 20px; }
  .approved-idea-strip { grid-template-columns: 1fr; }
  .project-card-header { grid-template-columns: 1fr; }
  .project-progress { grid-template-columns: auto 1fr; justify-items: start; }
  .progress-ring { width: 70px; height: 70px; }
  .project-stage-status { padding-inline: 15px; grid-template-columns: 1fr 1fr; }
  .project-sources { padding-inline: 15px; }
  .project-actions { align-items: stretch; flex-direction: column; padding: 14px 15px; }
  .project-actions button { width: 100%; }
  .iteration-history summary { padding-inline: 16px; }
  .timeline { padding-inline: 16px; }
  .timeline-title { align-items: flex-start; flex-direction: column; gap: 4px; }
  .development-drawer .drawer-body { padding-inline: 18px; }
  .iteration-numbers { grid-template-columns: 1fr; }
}

/* Version-controlled Development Projects */
.development-hero .hero-copy { max-width: 860px; }
.development-hero h1 { max-width: 830px; }
.version-stage-track { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
.version-stage-track li { min-height: 104px; padding: 16px 18px; }
.version-stage-track li small { max-width: 22ch; color: rgba(248,238,219,.48); font-size: .46rem; line-height: 1.45; }
.version-project-card { border-left-width: 5px; }
.version-badge { padding: 5px 8px; border: 1px solid rgba(43,116,80,.18); background: #e7f0e7; color: #286a49; font-size: .49rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.version-progress.progress-stage-1 { --progress: 33; }
.version-progress.progress-stage-2 { --progress: 67; }
.version-progress.progress-stage-3 { --progress: 100; }
.version-facts strong { overflow-wrap: anywhere; }
.version-empty { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 12px 25px 22px; padding: 21px 23px; border: 1px dashed rgba(182,128,40,.34); background: #fcf6e8; }
.version-empty h4 { margin: 5px 0; color: var(--deep-green); font-family: var(--font-display); font-size: 1.5rem; }
.version-empty p:last-child { margin: 0; color: var(--sage); font-size: .57rem; }
.version-ledger { display: grid; gap: 8px; padding: 9px 24px 24px; }
.version-record { overflow: hidden; border: 1px solid rgba(20,59,43,.12); background: #fbfaf5; }
.version-record > summary { min-height: 64px; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 9px 15px; cursor: pointer; list-style: none; }
.version-record > summary::-webkit-details-marker { display: none; }
.version-record > summary::after { content: "+"; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(20,59,43,.15); border-radius: 50%; color: var(--gold-dark); }
.version-record[open] > summary::after { content: "−"; }
.version-record > summary > i { display: none; }
.version-number { width: 50px; height: 40px; display: grid; place-items: center; background: var(--deep-green); color: var(--gold-bright); font-size: .57rem; font-weight: 800; }
.version-record > summary > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.version-record > summary strong { color: var(--deep-green); font-size: .65rem; }
.version-record > summary small { color: var(--sage); font-size: .49rem; }
.version-record-body { display: grid; gap: 12px; padding: 14px; border-top: 1px solid rgba(20,59,43,.1); background: #f6f2e8; }
.version-control-panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 12px; }
.version-stage-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.version-stage-map article { min-height: 108px; display: flex; align-items: flex-start; gap: 10px; padding: 16px 13px; border: 1px solid rgba(20,59,43,.1); background: #fffdf8; }
.version-stage-map article > span { width: 25px; height: 25px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #ecebe5; color: #89958f; font-size: .6rem; }
.version-stage-map article div { display: grid; gap: 6px; }
.version-stage-map article strong { color: var(--deep-green); font-size: .57rem; line-height: 1.3; }
.version-stage-map article small { color: var(--sage); font-size: .48rem; }
.version-stage-map article.is-complete { border-color: rgba(43,116,80,.23); background: #eaf2ea; }
.version-stage-map article.is-complete > span { background: #2c7450; color: #fff; }
.version-stage-map article.is-active { border-color: rgba(182,128,40,.36); background: #fbf1d9; box-shadow: inset 0 0 0 1px rgba(217,173,85,.12); }
.version-stage-map article.is-active > span { background: var(--warm-gold); color: var(--deep-green); }
.version-stage-map article.is-locked { opacity: .64; }
.version-qr-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border: 1px solid rgba(217,173,85,.36); background: linear-gradient(135deg, #092d20, #124632); color: var(--cream); }
.qr-image { min-width: 100px; min-height: 100px; display: grid; place-items: center; padding: 7px; background: #fff; color: var(--deep-green); font-weight: 800; }
.qr-image img { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.version-qr-card .eyebrow { color: var(--gold-bright); }
.version-qr-card strong { display: block; margin: 5px 0; color: #fff4dc; font-size: .62rem; }
.version-qr-card small { display: block; color: rgba(255,244,220,.58); font-size: .48rem; line-height: 1.5; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.qr-actions a, .qr-actions button { border: 1px solid rgba(239,201,111,.33); padding: 5px 7px; background: rgba(255,255,255,.06); color: var(--gold-bright); font: 700 .45rem var(--font-ui); text-decoration: none; text-transform: uppercase; }
.stage-evidence { padding: 20px; border: 1px solid rgba(20,59,43,.11); background: #fffdf8; }
.stage-evidence > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 13px; border-bottom: 1px solid rgba(20,59,43,.09); }
.stage-evidence > header h4 { margin: 5px 0 0; color: var(--deep-green); font-family: var(--font-display); font-size: 1.55rem; }
.stage-evidence > header > span { color: var(--sage); font-size: .49rem; }
.stage-evidence > p { margin: 14px 0 0; color: var(--sage); font-size: .57rem; line-height: 1.65; }
.recipe-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 16px; border: 1px solid rgba(20,59,43,.1); background: rgba(20,59,43,.1); }
.recipe-summary div { display: grid; gap: 4px; padding: 14px; background: #f7f2e7; }
.recipe-summary span, .trial-facts span { color: var(--sage); font-size: .46rem; letter-spacing: .07em; text-transform: uppercase; }
.recipe-summary strong { color: var(--deep-green); font-family: var(--font-display); font-size: 1.35rem; }
.recipe-summary small { color: var(--sage); font-size: .48rem; }
.recipe-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 19px; }
.recipe-detail-grid h5, .review-dashboard h5 { margin: 0 0 10px; color: var(--deep-green); font-size: .62rem; text-transform: uppercase; }
.ingredient-ledger { display: grid; border-top: 1px solid rgba(20,59,43,.1); }
.ingredient-ledger > div { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 3px; border-bottom: 1px solid rgba(20,59,43,.08); }
.ingredient-ledger strong { color: var(--ink); font-size: .55rem; }
.ingredient-ledger span { color: var(--sage); font-size: .48rem; }
.ingredient-ledger b { color: var(--gold-dark); font-size: .54rem; }
.method-ledger { display: grid; gap: 8px; margin: 0; padding: 0; counter-reset: method; list-style: none; }
.method-ledger li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; color: var(--sage); font-size: .53rem; line-height: 1.55; }
.method-ledger li::before { counter-increment: method; content: counter(method); width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--deep-green); color: var(--gold-bright); font-size: .45rem; }
.trial-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; border: 1px solid rgba(20,59,43,.1); }
.trial-facts div { display: grid; gap: 5px; padding: 12px; border-right: 1px solid rgba(20,59,43,.08); }
.trial-facts div:last-child { border-right: 0; }
.trial-facts strong { color: var(--deep-green); font-size: .57rem; }
.review-dashboard { margin-top: 18px; padding: 17px; border: 1px solid rgba(217,173,85,.33); background: #fbf3e2; }
.review-dashboard > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }
.review-dashboard > header span { color: var(--sage); font-size: .49rem; }
.verdict-tallies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.verdict-tallies article { display: grid; grid-template-columns: auto 1fr; gap: 3px 9px; align-items: center; padding: 11px; border: 1px solid rgba(20,59,43,.1); background: #fffdf8; }
.verdict-tallies article strong { grid-row: span 2; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }
.verdict-tallies article span { color: var(--ink); font-size: .51rem; font-weight: 700; }
.verdict-tallies article small { color: var(--sage); font-size: .45rem; }
.verdict-tallies .passed strong { color: #2c7450; }
.verdict-tallies .revision strong { color: var(--gold-dark); }
.verdict-tallies .decline strong { color: #a34a3f; }
.review-list { display: grid; gap: 6px; margin-top: 12px; }
.review-list > p { margin: 0; padding: 18px; border: 1px dashed rgba(20,59,43,.18); color: var(--sage); font-size: .54rem; text-align: center; }
.review-list article { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; padding: 12px; border: 1px solid rgba(20,59,43,.09); background: rgba(255,255,255,.7); }
.reviewer-role { align-self: start; padding: 6px; border-radius: 999px; background: #e8ece9; color: var(--sage); font-size: .43rem; font-weight: 800; text-align: center; text-transform: uppercase; }
.reviewer-role.role-board { background: var(--deep-green); color: var(--gold-bright); }
.review-list article > div:nth-child(2) { min-width: 0; }
.review-list article strong { color: var(--deep-green); font-size: .57rem; }
.review-list article small { display: block; margin-top: 3px; color: var(--gold-dark); font-size: .46rem; }
.review-list article p { margin: 7px 0 0; color: var(--sage); font-size: .52rem; line-height: 1.55; }
.sensory-mini { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 3px; max-width: 120px; }
.sensory-mini span { padding: 4px 5px; background: #f0ecdf; color: var(--sage); font-size: .41rem; }
.final-evidence { border-left: 5px solid var(--gold-dark); }
.final-evidence.outcome-passed { border-left-color: #2c7450; }
.final-evidence.outcome-not_approved { border-left-color: #a34a3f; }
.final-rule { display: grid; gap: 5px; margin-top: 14px; padding: 13px; background: #f5efe1; }
.final-rule strong { color: var(--deep-green); font-size: .57rem; }
.final-rule span { color: var(--sage); font-size: .49rem; line-height: 1.5; }
.legacy-history { background: #f8f5ee; }
.version-actions { justify-content: space-between; }
.version-actions .secondary-button { margin-left: auto; }

/* Detailed development-stage drawer */
.stage-drawer { width: min(980px, 100%); background: radial-gradient(circle at 100% 8%, rgba(209,167,86,.16), transparent 24%), #f3eee2; }
.stage-drawer-header { min-height: 132px; align-items: center; border-color: rgba(229,193,116,.25); background: radial-gradient(circle at 82% -30%, rgba(224,183,96,.28), transparent 42%), linear-gradient(135deg, #09261b, #10432f); box-shadow: 0 14px 35px rgba(6,26,18,.16); }
.stage-drawer-header .eyebrow { color: #dfbd72; }
.stage-drawer-header h2 { color: #fff5df; font-size: clamp(2.45rem, 4vw, 3.35rem); }
.stage-drawer-header .dialog-project-name { display: block; margin-top: 9px; color: rgba(255,255,255,.55); font-size: .58rem; }
.stage-header-actions { display: flex; align-items: center; gap: 12px; }
.stage-version-chip { padding: 9px 12px; border: 1px solid rgba(231,196,122,.42); background: rgba(5,24,17,.25); color: #f2d38c; font-size: .54rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; white-space: nowrap; }
.stage-drawer-header .close-button { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff7e7; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.stage-drawer-header .close-button:hover { transform: rotate(4deg) scale(1.05); border-color: #e8c77d; background: rgba(232,199,125,.14); }
.stage-drawer .drawer-body { padding: 0 28px 34px; }
.stage-drawer form { gap: 20px; }
.stage-workflow-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 0 -28px 4px; padding: 20px 28px 4px; background: rgba(255,253,248,.7); list-style: none; }
.stage-workflow-steps li { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 12px 0 14px; border-top: 2px solid #d4d8d1; color: #99a59e; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.stage-workflow-steps li span { width: 25px; height: 25px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .46rem; font-weight: 800; }
.stage-workflow-steps li strong { overflow: hidden; font-size: .54rem; letter-spacing: .075em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.stage-workflow-steps li.is-active { border-top-color: var(--warm-gold); color: var(--deep-green); transform: translateY(-1px); }
.stage-workflow-steps li.is-active span { border-color: var(--deep-green); background: var(--deep-green); color: #f2cf7e; box-shadow: 0 5px 13px rgba(20,59,43,.18); }
.stage-workflow-steps li.is-complete { border-top-color: #5d9b78; color: #397658; }
.stage-workflow-steps li.is-complete span { border-color: #397658; background: #e7f0e8; }
.stage-form-banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 15px; padding: 17px 19px; border: 1px solid rgba(183,137,51,.32); background: linear-gradient(135deg, #fffaf0, #f4e7c7); box-shadow: 0 9px 22px rgba(68,49,12,.055); }
.stage-form-banner::after { content: ""; width: 170px; height: 170px; position: absolute; right: -78px; top: -87px; border: 1px solid rgba(151,113,38,.12); border-radius: 50%; box-shadow: 0 0 0 24px rgba(151,113,38,.035); }
.stage-form-banner > span { width: 46px; height: 46px; position: relative; z-index: 1; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--deep-green); color: #f4d17f; font-size: .56rem; font-weight: 800; box-shadow: 0 8px 17px rgba(20,59,43,.2); }
.stage-form-banner div { position: relative; z-index: 1; display: grid; gap: 3px; }
.stage-form-banner p { margin: 0; color: var(--gold-dark); font-size: .48rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.stage-form-banner strong { color: var(--deep-green); font-family: var(--font-display); font-size: 1.45rem; line-height: 1; }
.stage-form-banner small { color: #65786f; font-size: .52rem; line-height: 1.45; }
.stage-form-panel, .dynamic-stage-section { display: grid; gap: 22px; padding: clamp(21px, 3vw, 29px); border: 1px solid rgba(20,59,43,.12); background: rgba(255,254,250,.92); box-shadow: 0 14px 32px rgba(20,59,43,.055); animation: stage-card-in .28s ease both; }
.dynamic-stage-section[hidden] { display: none; }
.stage-brief-panel { background: linear-gradient(135deg, rgba(255,254,250,.98), rgba(249,245,235,.96)); }
.stage-panel-heading { display: flex; align-items: flex-start; gap: 15px; }
.stage-section-number { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid rgba(183,137,51,.52); border-radius: 50%; background: #fffdf8; color: var(--gold-dark); font-size: .52rem; font-weight: 800; }
.stage-panel-heading > div { min-width: 0; }
.stage-panel-heading h3 { margin: 5px 0 0; color: var(--deep-green); font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.2rem); font-weight: 600; line-height: .95; }
.stage-panel-heading small, .repeatable-heading small { display: block; margin-top: 7px; color: var(--sage); font-size: .54rem; line-height: 1.55; }
.stage-title-field input { min-height: 58px; padding-inline: 18px; border-color: rgba(20,59,43,.18); border-radius: 3px; background: #fff; font-family: var(--font-display); font-size: 1.3rem; }
.recipe-basics, .costing-inputs, .trial-basics { grid-template-columns: repeat(2, 1fr); }
.stage-drawer .field { position: relative; }
.stage-drawer .field label { font-size: .65rem; }
.stage-drawer .field input, .stage-drawer .field select, .stage-drawer .field textarea { border-radius: 3px; border-color: rgba(20,59,43,.17); background: #fffefa; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.stage-drawer .field input:hover, .stage-drawer .field select:hover, .stage-drawer .field textarea:hover { border-color: rgba(151,113,38,.45); }
.stage-drawer .field input:focus, .stage-drawer .field select:focus, .stage-drawer .field textarea:focus { transform: translateY(-1px); border-color: var(--warm-gold); background: #fff; box-shadow: 0 0 0 4px rgba(209,167,86,.13), 0 10px 22px rgba(20,59,43,.06); }
.repeatable-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-top: 22px; border-top: 1px solid rgba(20,59,43,.1); }
.repeatable-heading h4 { margin: 5px 0 0; color: var(--deep-green); font-family: var(--font-display); font-size: 1.45rem; line-height: .95; }
.form-add-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex: 0 0 auto; border: 1px solid #b98b34; border-radius: 2px; padding: 0 15px; background: linear-gradient(135deg, #f3d58f, #d4a44a); color: #0d2d20; box-shadow: 0 8px 18px rgba(124,88,22,.13); font-size: .57rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.form-add-button span { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--deep-green); color: #f4d17f; font-size: .9rem; line-height: 1; }
.form-add-button:hover { transform: translateY(-2px); box-shadow: 0 12px 23px rgba(124,88,22,.2); filter: saturate(1.08); }
.ingredient-builder, .method-builder { display: grid; gap: 10px; }
.ingredient-row { position: relative; display: grid; grid-template-columns: 38px minmax(150px, 1.4fr) minmax(76px, .5fr) minmax(78px, .55fr) minmax(96px, .7fr) minmax(78px, .55fr) 94px 38px; gap: 8px; align-items: end; padding: 12px; border: 1px solid rgba(20,59,43,.12); border-left: 3px solid rgba(209,167,86,.7); background: #fffefa; box-shadow: 0 5px 15px rgba(20,59,43,.035); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.ingredient-row:hover, .ingredient-row:focus-within { z-index: 1; transform: translateY(-2px); border-color: rgba(151,113,38,.45); border-left-color: var(--warm-gold); box-shadow: 0 12px 25px rgba(20,59,43,.08); }
.ingredient-row.is-new, .method-row.is-new { animation: new-form-row .28s ease both; }
.ingredient-index, .method-index { height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--deep-green); color: #f3d07e; font-size: .47rem; font-weight: 800; box-shadow: 0 6px 13px rgba(20,59,43,.17); }
.ingredient-row label { display: grid; gap: 5px; }
.ingredient-row small { color: #657b70; font-size: .47rem; font-weight: 700; letter-spacing: .025em; }
.ingredient-row input { min-width: 0; height: 44px; border-radius: 2px; padding: 9px 10px; font-size: .59rem; }
.ingredient-row > strong { height: 44px; display: grid; place-items: center; border: 1px solid rgba(183,137,51,.24); background: linear-gradient(135deg, #faf2df, #f2e6c8); color: #7f5c18; font-size: .54rem; }
.ingredient-row > button, .method-row > button { width: 38px; height: 44px; border: 1px solid rgba(163,74,63,.23); border-radius: 2px; background: #fff4f1; color: #a04337; font-size: .9rem; transition: transform .16s ease, background .16s ease, color .16s ease; }
.ingredient-row > button:hover, .method-row > button:hover { transform: scale(1.04); background: #a64a3e; color: #fff; }
.method-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 9px; align-items: start; padding: 12px; border: 1px solid rgba(20,59,43,.12); border-left: 3px solid rgba(209,167,86,.7); background: #fffefa; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.method-row:hover, .method-row:focus-within { transform: translateY(-2px); border-color: rgba(151,113,38,.45); box-shadow: 0 12px 25px rgba(20,59,43,.07); }
.method-row textarea { min-height: 76px; border-radius: 2px; background: #fff; font-size: .65rem; }
.method-row .method-index, .method-row > button { height: 76px; border-radius: 2px; }
.recipe-support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 22px; border-top: 1px solid rgba(20,59,43,.1); }
.recipe-support-grid .full { grid-column: 1 / -1; }
.recipe-support-grid textarea { min-height: 108px; }
.costing-workbench { position: relative; overflow: hidden; display: grid; gap: 21px; margin: 4px -1px -1px; padding: clamp(22px, 3vw, 29px); border: 1px solid rgba(217,173,85,.32); background: radial-gradient(circle at 94% -10%, rgba(217,173,85,.28), transparent 35%), linear-gradient(135deg, #0a2a1e, #124a34); box-shadow: 0 16px 36px rgba(6,29,20,.13); }
.costing-workbench::after { content: ""; width: 250px; height: 250px; position: absolute; right: -145px; bottom: -175px; border: 1px solid rgba(235,204,139,.18); border-radius: 50%; box-shadow: 0 0 0 32px rgba(235,204,139,.035); pointer-events: none; }
.costing-heading { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.costing-heading > span { width: 46px; height: 46px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid rgba(235,204,139,.5); border-radius: 50%; background: rgba(255,255,255,.07); color: #f0ce82; font-family: var(--font-display); font-size: 1.5rem; }
.costing-heading .eyebrow { color: #dcba6f; }
.costing-heading h3 { margin: 4px 0 0; color: #fff4dd; font-family: var(--font-display); font-size: 2rem; line-height: .95; }
.costing-heading small { display: block; margin-top: 6px; color: rgba(255,255,255,.52); font-size: .52rem; }
.costing-inputs { position: relative; z-index: 1; }
.costing-workbench .field label { color: #f5e7c8; }
.costing-workbench .field input { border-color: rgba(235,204,139,.32); background: rgba(255,254,250,.97); }
.live-cost-summary { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid rgba(235,204,139,.3); background: rgba(235,204,139,.28); transition: transform .18s ease; }
.live-cost-summary.is-updating { animation: cost-pulse .32s ease; }
.live-cost-summary div { min-height: 112px; display: grid; align-content: center; gap: 5px; padding: 16px; background: rgba(255,253,247,.96); }
.live-cost-summary span { color: #6e7f76; font-size: .46rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.live-cost-summary strong { color: var(--deep-green); font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1; }
.live-cost-summary small { color: #8b988f; font-size: .43rem; }
.trial-notes-grid textarea { min-height: 120px; }
.stage-evidence-panel { border-top: 3px solid var(--warm-gold); }
.stage-evidence-panel .tall-textarea { min-height: 155px; }
.stage-outcome-picker { margin: 0; border: 0; padding: 0; }
.stage-outcome-picker legend { margin-bottom: 10px; color: var(--deep-green); font-size: .65rem; font-weight: 700; }
.stage-outcome-picker legend span { color: var(--rose); }
.stage-outcome-picker > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.stage-outcome-picker label { position: relative; cursor: pointer; }
.stage-outcome-picker input { position: absolute; opacity: 0; pointer-events: none; }
.stage-outcome-picker label > span { min-height: 112px; display: grid; grid-template-columns: 32px 1fr; align-content: center; gap: 5px 10px; padding: 16px; border: 1px solid rgba(20,59,43,.14); background: #faf8f1; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.stage-outcome-picker label:hover > span { transform: translateY(-2px); border-color: var(--warm-gold); box-shadow: 0 10px 22px rgba(20,59,43,.07); }
.stage-outcome-picker b { width: 32px; height: 32px; grid-row: span 2; display: grid; place-items: center; border-radius: 50%; background: #edf0e9; color: var(--deep-green); font-style: normal; }
.stage-outcome-picker strong { align-self: end; color: var(--deep-green); font-size: .62rem; }
.stage-outcome-picker small { align-self: start; color: var(--sage); font-size: .47rem; line-height: 1.45; }
.stage-outcome-picker input:focus-visible + span { outline: 3px solid var(--warm-gold); outline-offset: 3px; }
.stage-outcome-picker input:checked + span { transform: translateY(-2px); border-color: var(--deep-green); background: #e7f1e8; box-shadow: inset 0 0 0 2px var(--deep-green), 0 12px 24px rgba(20,59,43,.09); }
.stage-outcome-picker .revision input:checked + span { border-color: #b9872e; background: #fbf0d3; box-shadow: inset 0 0 0 2px #c4933b, 0 12px 24px rgba(130,91,20,.08); }
.stage-outcome-picker .decline input:checked + span { border-color: #a34a3f; background: #f8e5e1; box-shadow: inset 0 0 0 2px #a34a3f, 0 12px 24px rgba(121,50,42,.08); }
.stage-outcome-picker .decline input:checked + span b { background: #a34a3f; color: #fff; }
.stage-drawer-footer { position: sticky; z-index: 3; bottom: -34px; margin: 0 -28px -34px; padding: 17px 28px; border-top: 1px solid rgba(20,59,43,.15); background: rgba(250,247,240,.96); box-shadow: 0 -14px 32px rgba(20,59,43,.08); backdrop-filter: blur(12px); }
.stage-footer-note { display: flex; align-items: center; gap: 10px; color: var(--sage); }
.stage-footer-note > span { color: var(--gold-dark); font-size: 1rem; }
.stage-footer-note > div { display: grid; gap: 3px; }
.stage-footer-note strong { color: var(--deep-green); font-size: .55rem; }
.stage-footer-note small { font-size: .45rem; }
.stage-footer-actions { display: flex; gap: 10px; }
.stage-drawer .secondary-button { border-color: rgba(20,59,43,.28); background: #fffefa; color: var(--deep-green); }
.stage-drawer .secondary-button:hover { border-color: var(--warm-gold); background: #fbf1dc; color: #0b2a1e; }
.stage-drawer .primary-button { min-width: 180px; }
.stage-drawer .primary-button:active, .stage-drawer .secondary-button:active, .form-add-button:active { transform: translateY(0) scale(.985); }
@keyframes stage-card-in { from { opacity: 0; transform: translateY(9px); } }
@keyframes new-form-row { from { opacity: 0; transform: translateY(-7px) scale(.99); } }
@keyframes cost-pulse { 50% { transform: scale(1.008); filter: brightness(1.025); } }
.modal-qr-preview { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 15px; border: 1px solid rgba(217,173,85,.35); background: var(--deep-green); }
.modal-qr-preview strong { display: block; margin: 5px 0; color: #fff4dc; font-size: .62rem; }
.modal-qr-preview a { display: block; overflow-wrap: anywhere; color: var(--gold-bright); font-size: .48rem; }
.modal-vote-summary { display: grid; gap: 10px; }
.modal-vote-rule { display: flex; justify-content: space-between; gap: 14px; padding: 13px; background: var(--deep-green); color: #fff4dc; }
.modal-vote-rule strong { font-size: .61rem; }
.modal-vote-rule span { color: var(--gold-bright); font-size: .49rem; }
.modal-vote-summary > p { margin: 0; color: var(--sage); font-size: .54rem; line-height: 1.55; }
.version-start-modal .dialog-project-name { margin: 15px 0; color: var(--gold-dark); }

/* Public tasting form */
body.tasting-page { min-height: 100vh; background: radial-gradient(circle at 80% 0, rgba(217,173,85,.12), transparent 28%), #f4f1e7; }
.tasting-topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px clamp(20px, 5vw, 70px); border-bottom: 1px solid rgba(217,173,85,.32); background: var(--deep-green); }
.tasting-brand { color: #fff; text-decoration: none; }
.tasting-brand img { width: 54px; height: 54px; object-fit: contain; }
.tasting-brand .brand-copy span { color: rgba(255,255,255,.56); }
.tasting-user { display: grid; gap: 4px; text-align: right; }
.tasting-user span { color: rgba(255,255,255,.48); font-size: .47rem; text-transform: uppercase; }
.tasting-user strong { color: var(--gold-bright); font-size: .57rem; }
.tasting-shell { width: min(100%, 1120px); margin: 0 auto; padding: clamp(24px, 5vw, 64px); }
.tasting-intro { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 42px; align-items: end; padding: 33px 36px; background: linear-gradient(135deg, #071f16, #104731); color: #fff4dc; box-shadow: 0 24px 55px rgba(6,28,20,.14); }
.tasting-code { display: inline-block; margin-top: 12px; padding: 6px 9px; border: 1px solid rgba(217,173,85,.35); color: var(--gold-bright); font-size: .48rem; font-weight: 700; }
.tasting-intro h1 { margin: 14px 0 10px; color: #fff5e1; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .88; }
.tasting-intro > div > p:last-child { max-width: 65ch; margin: 0; color: rgba(255,255,255,.6); font-size: .64rem; line-height: 1.65; }
.tasting-intro aside { display: grid; gap: 7px; padding: 18px; border: 1px solid rgba(217,173,85,.32); background: rgba(0,0,0,.12); }
.tasting-intro aside > span { color: var(--gold-bright); font-size: .46rem; text-transform: uppercase; }
.tasting-intro aside strong { color: #fff4dc; font-size: .57rem; }
.tasting-intro aside small { margin-top: 7px; color: rgba(255,255,255,.48); font-size: .48rem; line-height: 1.5; }
.tasting-form { display: grid; gap: 13px; margin-top: 16px; }
.tasting-panel { padding: clamp(22px, 4vw, 38px); border: 1px solid rgba(20,59,43,.12); background: #fffdf8; box-shadow: 0 10px 30px rgba(20,59,43,.045); }
.form-section-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 22px; }
.form-section-heading > span { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; background: var(--deep-green); color: var(--gold-bright); font-size: .52rem; font-weight: 800; }
.form-section-heading h2 { margin: 5px 0 0; color: var(--deep-green); font-family: var(--font-display); font-size: 2rem; }
.form-section-heading div > p:last-child { margin: 6px 0 0; color: var(--sage); font-size: .54rem; }
.registered-reviewer { display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px solid rgba(43,116,80,.2); background: #eaf2ea; }
.registered-reviewer > div { display: grid; gap: 4px; }
.registered-reviewer strong { color: var(--deep-green); font-size: .65rem; }
.registered-reviewer span:last-child { color: var(--sage); font-size: .51rem; }
.guest-grid { grid-template-columns: 1fr 1fr; }
.guest-affiliation { grid-column: 1 / -1; }
.score-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.score-control { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 16px; border: 1px solid rgba(20,59,43,.1); background: #faf8f1; }
.score-control > span { color: var(--deep-green); font-size: .6rem; font-weight: 700; }
.score-control output { color: var(--gold-dark); font-family: var(--font-display); font-size: 1.8rem; line-height: .7; }
.score-control input { grid-column: 1 / -1; width: 100%; accent-color: var(--deep-green); }
.score-control small { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--sage); }
.score-control small i { font-size: .43rem; font-style: normal; }
.score-control em { grid-column: 1 / -1; font-style: normal; }
.score-control:last-child { grid-column: 1 / -1; }
.verdict-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; border: 0; padding: 0; }
.verdict-options label { position: relative; cursor: pointer; }
.verdict-options input { position: absolute; opacity: 0; pointer-events: none; }
.verdict-options span { min-height: 92px; display: grid; align-content: center; gap: 7px; padding: 16px; border: 1px solid rgba(20,59,43,.12); background: #faf8f1; }
.verdict-options strong { color: var(--deep-green); font-size: .66rem; }
.verdict-options small { color: var(--sage); font-size: .49rem; }
.verdict-options input:checked + span { border-color: var(--deep-green); box-shadow: inset 0 0 0 2px var(--deep-green); }
.verdict-options .passed input:checked + span { background: #e6f1e8; }
.verdict-options .revision input:checked + span { background: #fbf0d6; }
.verdict-options .decline input:checked + span { border-color: #a34a3f; background: #f8e5e1; box-shadow: inset 0 0 0 2px #a34a3f; }
.tasting-notes { margin-top: 18px; }
.tasting-notes textarea { min-height: 150px; }
.tasting-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border: 1px solid rgba(217,173,85,.35); background: #f7efd9; }
.tasting-submit p { margin: 0; color: var(--sage); font-size: .52rem; }
.tasting-closed, .tasting-success { max-width: 720px; margin: 60px auto; padding: 50px; border: 1px solid rgba(217,173,85,.35); background: #fffdf8; text-align: center; box-shadow: 0 20px 50px rgba(20,59,43,.08); }
.tasting-closed h1, .tasting-closed h2, .tasting-success h2 { margin: 12px 0; color: var(--deep-green); font-size: clamp(2.4rem, 5vw, 4rem); }
.tasting-closed > p:last-child, .tasting-success > p:last-child { color: var(--sage); font-size: .64rem; line-height: 1.6; }

@media (max-width: 1000px) {
  .version-control-panel { grid-template-columns: 1fr; }
  .version-stage-map article { min-height: 88px; }
  .ingredient-row { grid-template-columns: 38px minmax(0, 1fr) minmax(0, 1fr) 38px; padding: 11px; }
  .ingredient-row .ingredient-index { grid-column: 1; grid-row: 1; }
  .ingredient-row label:nth-of-type(1) { grid-column: 2 / span 2; grid-row: 1; }
  .ingredient-row label:nth-of-type(2) { grid-column: 2; grid-row: 2; }
  .ingredient-row label:nth-of-type(3) { grid-column: 3; grid-row: 2; }
  .ingredient-row label:nth-of-type(4) { grid-column: 2; grid-row: 3; }
  .ingredient-row label:nth-of-type(5) { grid-column: 3; grid-row: 3; }
  .ingredient-row > strong { grid-column: 2 / span 2; grid-row: 4; }
  .ingredient-row > button { grid-column: 4; grid-row: 1 / span 4; height: 100%; }
  .tasting-intro { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 700px) {
  .version-stage-track { grid-template-columns: repeat(4, 150px); }
  .version-empty { align-items: stretch; flex-direction: column; margin-inline: 14px; }
  .version-ledger { padding-inline: 13px; }
  .version-record-body { padding: 8px; }
  .version-stage-map { grid-template-columns: 1fr; }
  .version-stage-map article { min-height: 68px; }
  .version-qr-card { grid-template-columns: 100px minmax(0, 1fr); }
  .recipe-summary, .recipe-detail-grid { grid-template-columns: 1fr; }
  .trial-facts { grid-template-columns: 1fr 1fr; }
  .verdict-tallies { grid-template-columns: 1fr; }
  .review-list article { grid-template-columns: 62px minmax(0, 1fr); }
  .sensory-mini { grid-column: 2; justify-content: flex-start; }
  .ingredient-ledger > div { grid-template-columns: 1fr auto; }
  .ingredient-ledger span { grid-column: 1; }
  .stage-drawer-header { min-height: 112px; padding: 22px 18px; }
  .stage-drawer-header h2 { font-size: 2.3rem; }
  .stage-drawer .drawer-body { padding: 0 16px 28px; }
  .stage-workflow-steps { margin-inline: -16px; padding-inline: 16px; }
  .stage-workflow-steps li { gap: 6px; }
  .stage-workflow-steps li strong { font-size: .46rem; }
  .stage-form-panel, .dynamic-stage-section { gap: 18px; padding: 20px 17px; }
  .recipe-basics, .costing-inputs, .trial-basics, .recipe-support-grid, .live-cost-summary { grid-template-columns: 1fr 1fr; }
  .repeatable-heading { align-items: stretch; flex-direction: column; }
  .form-add-button { align-self: flex-start; }
  .stage-outcome-picker > div { grid-template-columns: 1fr; }
  .stage-outcome-picker label > span { min-height: 88px; }
  .stage-drawer-footer { bottom: -28px; align-items: stretch; flex-direction: column; margin: 0 -16px -28px; padding: 14px 16px; }
  .stage-footer-actions { display: grid; grid-template-columns: 1fr 1.4fr; }
  .stage-drawer .primary-button { min-width: 0; }
  .tasting-topbar { align-items: flex-start; flex-direction: column; }
  .tasting-user { text-align: left; }
  .tasting-shell { padding: 16px 12px 40px; }
  .tasting-intro { padding: 28px 22px; }
  .score-grid, .guest-grid, .verdict-options { grid-template-columns: 1fr; }
  .score-control:last-child, .guest-affiliation { grid-column: auto; }
  .tasting-submit { align-items: stretch; flex-direction: column; }
  .tasting-submit button { width: 100%; }
}

@media (max-width: 430px) {
  .version-qr-card, .modal-qr-preview { grid-template-columns: 1fr; }
  .version-qr-card .qr-image, .modal-qr-preview .qr-image { width: 150px; margin: 0 auto; }
  .stage-drawer-header { align-items: flex-start; }
  .stage-header-actions { gap: 7px; }
  .stage-version-chip { padding: 7px 8px; font-size: .45rem; }
  .stage-workflow-steps li { align-items: flex-start; flex-direction: column; }
  .stage-workflow-steps li strong { overflow: visible; font-size: .41rem; line-height: 1.35; text-overflow: clip; white-space: normal; }
  .stage-form-banner { align-items: flex-start; padding: 15px; }
  .stage-form-banner small { display: block; margin-top: 3px; }
  .stage-panel-heading { gap: 10px; }
  .stage-panel-heading h3 { font-size: 1.7rem; }
  .recipe-basics, .costing-inputs, .trial-basics, .recipe-support-grid, .live-cost-summary { grid-template-columns: 1fr; }
  .recipe-support-grid .full { grid-column: auto; }
  .form-add-button { width: 100%; }
  .ingredient-row { grid-template-columns: 34px minmax(0, 1fr) 34px; }
  .ingredient-row .ingredient-index { grid-column: 1; grid-row: 1; }
  .ingredient-row label, .ingredient-row label:nth-of-type(1), .ingredient-row label:nth-of-type(2), .ingredient-row label:nth-of-type(3), .ingredient-row label:nth-of-type(4), .ingredient-row label:nth-of-type(5) { grid-column: 2; }
  .ingredient-row label:nth-of-type(1) { grid-row: 1; }
  .ingredient-row label:nth-of-type(2) { grid-row: 2; }
  .ingredient-row label:nth-of-type(3) { grid-row: 3; }
  .ingredient-row label:nth-of-type(4) { grid-row: 4; }
  .ingredient-row label:nth-of-type(5) { grid-row: 5; }
  .ingredient-row > strong { grid-column: 2; grid-row: 6; display: flex; align-items: center; justify-content: space-between; padding-inline: 12px; }
  .ingredient-row > strong::before { content: "Line cost"; color: #887443; font-size: .45rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .ingredient-row > button { grid-column: 3; grid-row: 1 / span 6; }
  .method-row { grid-template-columns: 34px minmax(0, 1fr) 34px; padding: 9px; }
  .stage-footer-note { display: none; }
  .stage-footer-actions { grid-template-columns: 1fr; }
  .trial-facts { grid-template-columns: 1fr; }
  .tasting-panel { padding: 22px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-form-panel, .dynamic-stage-section, .ingredient-row.is-new, .method-row.is-new, .live-cost-summary.is-updating { animation: none; }
  .ingredient-row, .method-row, .form-add-button, .stage-outcome-picker label > span { transition: none; }
}
