:root {
  color-scheme: light;
  --ink: #101824;
  --ink-soft: #263447;
  --paper: #f6f4ef;
  --card: #fffefa;
  --line: #dfdfd8;
  --muted: #627081;
  --accent: #d88757;
  --accent-light: #f2d9c5;
  --lime: #d5ebbb;
  --sky: #dde9f2;
  --danger: #a43431;
  --success: #2c714f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #427dbd; outline-offset: 3px; }
::selection { background: #e6ad7b; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; background: white; color: var(--ink); }
.skip-link:focus { top: 12px; }
.site-shell { min-height: 100dvh; display: flex; flex-direction: column; }

/* Shared controls */
.eyebrow, .card-index { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .15em; line-height: 1.4; }
.eyebrow { color: #987351; }
.card-index { color: #596577; }
.accent-stop { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 46px; border: 1px solid transparent; border-radius: 7px; padding: 11px 17px; font-size: 14px; font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:not(:disabled):hover { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button-primary { background: var(--accent); color: var(--ink); }
.button-primary:not(:disabled):hover { background: #eb9b6a; }
.button-secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
.button-secondary:not(:disabled):hover { background: #eae8e2; }
.button-ink { background: var(--ink); color: white; }
.button-ink:not(:disabled):hover { background: var(--ink-soft); }
.button-outline { background: transparent; color: var(--ink); border-color: #abb4b7; }
.button-outline:not(:disabled):hover { border-color: var(--ink); }
.full-width { width: 100%; }
.text-button, .link-button, .back-link { background: none; border: 0; color: inherit; font-weight: 700; }
.link-button { display: inline-flex; gap: 16px; align-items: center; font-size: 13px; padding: 7px 0; }
.link-button:hover, .back-link:hover { color: #aa623e; }
.small-note, .input-note, .form-footnote { font-size: 12px; color: var(--muted); }
.inline-alert { padding: 13px 15px; border-radius: 7px; font-size: 13px; }
.inline-alert.error { background: #fbe9e7; color: #8a3430; }
.inline-alert.info { background: #e7eff4; color: #254e68; }
.inline-alert.success { background: #e8f2e5; color: #286344; }
.rights-section { padding-top: 18px; }
.rights-attestation { display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; font-size: 14px; font-weight: 600; }
.rights-attestation input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.rights-section .input-note { margin: 9px 0 0 30px; }
.consent-card { margin-top: 18px; padding: 24px 27px; background: #fffaf0; border: 1px solid #e9dcbf; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.consent-card[hidden] { display: none; }
.consent-card h2 { font-size: 21px; letter-spacing: -.03em; margin: 8px 0 5px; }
.consent-card p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.5; }
.consent-card .small-note { margin-top: 8px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
@media (max-width: 720px) { .consent-card { display: block; } .consent-actions { margin-top: 18px; } }

/* Fixed site frame */
.topbar { display: flex; align-items: center; height: 72px; gap: 21px; padding: 0 31px; background: var(--ink); color: #f7f5ef; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; display: flex; align-items: end; gap: 3px; transform: rotate(-12deg); }
.brand-mark span { display: block; width: 7px; height: 100%; background: var(--accent); border-radius: 2px; }
.brand-mark span:nth-child(2) { height: 73%; background: #f3e6cb; }
.brand-mark span:nth-child(3) { height: 44%; background: #a9c6bb; }
.brand-name { display: inline-flex; flex-direction: column; line-height: .84; letter-spacing: -.04em; }
.brand-name strong { font-size: 19px; font-weight: 900; }
.brand-name em { font-style: normal; font-size: 9px; font-weight: 900; letter-spacing: .2em; margin-top: 5px; }
.topbar-divider { height: 28px; width: 1px; background: #46515b; }
.topbar-context { font-size: 12px; color: #aab7c0; letter-spacing: .02em; }
.topbar-end { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.topbar-end .text-button { color: #d5dfe1; font-size: 12px; padding: 8px 0; }
.connection-pill { display: inline-flex; align-items: center; gap: 7px; color: #d5e4d5; font-size: 11px; letter-spacing: .03em; }
.connection-dot { width: 7px; height: 7px; background: #a8d188; border-radius: 50%; }
.global-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; min-height: 54px; padding: 0 31px; color: #677384; background: #eeede8; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.global-footer span { color: #97a0a9; }

/* Guest access */
.auth-page { display: grid; grid-template-columns: minmax(0, 52%) minmax(0, 1fr); min-height: calc(100dvh - 126px); }
.auth-art { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: clamp(34px, 4.5vw, 72px); background: #172232; color: #fbf8f2; }
.art-display { margin: clamp(40px, 9vh, 120px) 0 auto; font-size: clamp(52px, 5.5vw, 105px); line-height: .92; font-weight: 800; letter-spacing: -.07em; white-space: nowrap; }
.art-bottom { max-width: 23ch; margin: 44px 0 0; color: #d3dce0; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.35; }
.auth-content { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 55px clamp(30px, 5vw, 84px); }
.auth-card { width: min(100%, 470px); }
.auth-card h1, .status-card h1 { margin: 0 0 16px; font-size: clamp(38px, 3.8vw, 56px); line-height: 1.04; letter-spacing: -.055em; }
.lede { margin: 0 0 30px; max-width: 34ch; color: #586676; font-size: 17px; line-height: 1.55; }
.auth-tabs { display: flex; border-bottom: 1px solid #d9ddd9; margin-bottom: 29px; }
.auth-tab { position: relative; padding: 12px 16px 15px; background: none; border: 0; color: #65717f; font-size: 15px; font-weight: 700; }
.auth-tab:first-child { padding-left: 0; }
.auth-tab.active { color: var(--ink); }
.auth-tab.active::after { content: ""; position: absolute; height: 2px; bottom: -1px; left: 0; right: 0; background: var(--accent); }
.auth-card > .inline-alert { margin: 0 0 19px; }
.stack-form { display: grid; gap: 10px; }
label { font-size: 13px; font-weight: 700; }
input:not([type=radio]):not([type=file]):not([type=checkbox]), textarea, select { width: 100%; min-height: 45px; padding: 10px 13px; border: 1px solid #d5dad7; border-radius: 6px; background: #fffefa; color: var(--ink); outline: none; }
input:not([type=radio]):not([type=file]):not([type=checkbox]):focus, textarea:focus, select:focus { border-color: #967051; box-shadow: 0 0 0 3px rgba(216, 135, 87, .15); }
textarea { resize: vertical; min-height: 200px; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #99a3a7; }
.stack-form .button { margin-top: 9px; }
.form-footnote { margin-top: 17px; font-size: 14px; }
.status-page { flex: 1; min-height: calc(100dvh - 126px); display: grid; place-items: center; padding: 30px; background: var(--paper); }
.status-card { width: min(100%, 560px); padding: clamp(32px, 5vw, 58px); background: var(--card); }
.status-card p { color: var(--muted); max-width: 390px; }
.status-email { margin: 29px 0; font-weight: 700; word-break: break-all; }

/* Signed-in shell */
.workspace { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 126px); }
.sidebar { background: #f0eee8; border-right: 1px solid #dce0dc; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 31px 15px 22px; }
.sidebar-label { display: block; padding: 0 17px; color: #899299; font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.sidebar-label-spaced { margin-top: 34px; }
.nav-list { display: grid; gap: 5px; margin-top: 18px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 13px; border: 0; border-radius: 5px; background: none; text-align: left; color: #566271; font-size: 13px; font-weight: 650; }
.nav-item:hover { background: #e4e4dc; }
.nav-item.active { background: var(--ink); color: white; }
.nav-icon { display: grid; place-items: center; width: 23px; flex: 0 0 23px; font-size: 17px; font-family: Arial, sans-serif; }
.nav-count { margin-left: auto; padding: 2px 6px; border-radius: 3px; color: var(--ink); background: var(--lime); font-size: 10px; }
.sidebar-rule { height: 1px; background: #d7d9d2; margin-bottom: 19px; }
.sidebar-profile { display: flex; gap: 10px; align-items: center; padding: 0 8px; min-width: 0; }
.profile-avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 7px; display: grid; place-items: center; background: #d8b597; color: #4c3228; font-weight: 900; }
.profile-copy { display: grid; min-width: 0; }
.profile-copy strong { font-size: 12px; }
.profile-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: #697787; }
.workspace-body { max-width: 1500px; width: 100%; padding: 43px clamp(24px, 5.5vw, 85px) 90px; margin: 0 auto; min-width: 0; }
.mobile-nav { display: none; }
.view { width: 100%; }
.page-header { position: relative; overflow: hidden; margin-bottom: 29px; }
.page-header h1 { font-size: clamp(42px, 5vw, 68px); letter-spacing: -.06em; line-height: 1.02; margin: 13px 0 13px; }
.page-header p { margin: 0; color: #667280; font-size: 14px; }
.page-header.compact { margin-bottom: 32px; }
.page-header.compact h1 { margin-top: 8px; font-size: clamp(41px, 5vw, 61px); }
.dashboard-header { display: flex; justify-content: space-between; min-height: 150px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(270px, .9fr); gap: 18px; }
.start-card { min-height: 315px; padding: 25px 30px 30px; display: flex; flex-direction: column; justify-content: space-between; background: #d8e7e1; border: 1px solid #c7d9d2; border-radius: 9px; }
.start-card-top { display: flex; justify-content: space-between; align-items: start; }
.start-arrow { font-size: 25px; line-height: 1; }
.start-star { font-size: 31px; line-height: 1; color: #5e8a80; }
.start-card h2 { font-size: clamp(27px, 3vw, 39px); letter-spacing: -.045em; margin: 12px 0 8px; line-height: 1.1; }
.start-card p { max-width: 400px; color: #506b68; margin: 0 0 19px; font-size: 13px; }
.right-card-stack { display: grid; gap: 18px; }
.metric-card, .small-card { padding: 24px 27px; border: 1px solid #e0e2de; border-radius: 9px; background: #fffefa; }
.metric-card { display: flex; flex-direction: column; min-height: 158px; }
.metric-card strong { display: block; margin-top: 12px; font-size: clamp(22px, 2.5vw, 31px); letter-spacing: -.035em; line-height: 1.15; }
.metric-sub { color: #697789; font-size: 12px; margin-top: 4px; }
.metric-track { height: 6px; border-radius: 10px; background: #e7e9e4; margin-top: auto; overflow: hidden; }
.metric-track span { display: block; height: 100%; background: #95bda5; border-radius: inherit; }
.small-card { min-height: 139px; background: #eee6d9; }
.small-card p { font-size: 12px; color: #756a61; margin: 13px 0 0; }
.render-overview { display: flex; align-items: center; gap: 8px; margin-top: 13px; font-size: 13px; font-weight: 700; }
.render-overview b { color: #a09388; margin: 0 5px; }
.render-tile-icon { width: 27px; height: 27px; display: grid; place-items: center; background: #fff9ed; border-radius: 5px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin: 47px 0 16px; }
.section-heading h2 { font-size: 24px; letter-spacing: -.035em; margin: 5px 0 0; }
.section-heading.slim { margin-top: 32px; }
.section-heading.slim h2 { margin: 0; }
.project-list, .people-list { display: grid; gap: 9px; }
.project-row { display: flex; align-items: center; gap: 19px; min-height: 91px; width: 100%; text-align: left; padding: 16px 19px; border: 1px solid #e2e4df; border-radius: 8px; background: #fffefa; color: var(--ink); transition: border-color .2s, transform .2s; }
.project-row:hover { border-color: #c1a187; transform: translateY(-1px); }
.project-thumb { display: grid; place-items: center; width: 54px; height: 54px; flex: 0 0 54px; border-radius: 5px; background: #e4ded2; color: #a26444; font-size: 23px; }
.project-copy { display: grid; min-width: 0; gap: 3px; }
.project-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.project-copy small { color: #7f8b96; font-size: 11px; }
.project-row .state-badge { margin-left: auto; }
.state-badge { display: inline-block; flex: 0 0 auto; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; background: #e9ebea; color: #526171; }
.state-badge.ready, .state-badge.approved { color: #347254; background: #e3f1e6; }
.state-badge.online { color: #347254; background: #e3f1e6; }
.state-badge.failed, .state-badge.revoked { color: #9b4c40; background: #f8e7e4; }
.state-badge.offline { color: #6d7480; background: #e9ebea; }
.state-badge.running, .state-badge.queued, .state-badge.processing { color: #7f6234; background: #f7ebcd; }
.state-badge.needs_review { color: #7f6234; background: #f7ebcd; }
.state-badge.pending { color: #6a657c; background: #eeeafa; }
.empty-state { padding: 36px; border: 1px dashed #d1d7d1; border-radius: 8px; color: #607081; background: rgba(255,255,255,.45); }
.empty-state strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 5px; }
.empty-state p { margin: 0 0 17px; font-size: 13px; }

/* Create flow */
.creation-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(275px, .72fr); gap: 23px; align-items: start; }
.form-column { display: grid; gap: 17px; }
.form-section { padding: 28px 30px; border: 1px solid #e1e3dd; background: var(--card); border-radius: 9px; display: grid; gap: 10px; }
.form-section-heading { display: flex; align-items: start; gap: 15px; margin-bottom: 13px; }
.form-section-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.form-section-heading p { margin: 2px 0 0; color: #74808b; font-size: 12px; }
.step-number { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 4px; color: #936342; background: #f6eadc; font-size: 12px; font-weight: 800; }
.form-section label:not(.file-drop):not(.choice-card) { margin-top: 8px; }
.input-note { margin: 0; display: flex; gap: 7px; }
.file-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 160px; padding: 20px; border: 1.5px dashed #adb9b3; border-radius: 7px; background: #f8faf6; cursor: pointer; }
.file-drop:hover, .file-drop:focus-within { border-color: #8a9e93; background: #f1f6f0; }
.file-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop input:focus-visible { outline: 3px solid #427dbd; outline-offset: 3px; }
.file-icon { display: grid; place-items: center; width: 37px; height: 37px; margin-bottom: 10px; border-radius: 6px; background: #e3eee4; color: #517963; font-size: 20px; }
.file-drop strong { font-size: 13px; }
.file-drop small { font-size: 11px; color: #84918c; margin-top: 3px; }
.compact-drop { min-height: 115px; margin-top: 12px; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; margin: 0 0 10px; border: 0; }
.choice-card { display: flex; flex-direction: column; position: relative; min-height: 110px; padding: 14px; border: 1px solid #d8ddd8; border-radius: 7px; cursor: pointer; }
.choice-card.selected { border-color: #af835f; background: #fff8ed; box-shadow: 0 0 0 1px #af835f inset; }
.choice-card input { position: absolute; top: 13px; right: 13px; accent-color: #a36c48; }
.choice-symbol { color: #946b50; font-size: 18px; }
.choice-card strong { font-size: 12px; margin-top: 5px; }
.choice-card small { font-size: 11px; color: #77838a; }
.creation-side { position: sticky; top: 20px; }
.summary-card { padding: 26px; border: 1px solid #dfe2dc; border-radius: 9px; background: #fffefa; }
.summary-card h2 { margin: 11px 0 20px; font-size: 24px; letter-spacing: -.04em; }
.check-list { display: grid; gap: 12px; padding: 0; list-style: none; margin: 0; color: #5d6e75; font-size: 12px; }
.check-list li { display: flex; gap: 9px; }
.check-list li span { font-weight: 800; color: #41805f; }
.summary-rule { height: 1px; background: #e2e5df; margin: 23px 0; }
.summary-line { display: flex; justify-content: space-between; gap: 15px; font-size: 12px; }
.summary-line strong { font-size: 13px; }
.summary-card .button { margin-top: 17px; }
.side-help { display: flex; align-items: start; gap: 11px; padding: 15px 8px; color: #718079; font-size: 12px; }
.side-help span { font-size: 20px; color: #a3a363; }
.side-help p { margin: 2px 0; }

/* Project progress */
.back-link { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 27px; padding: 0; font-size: 13px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(265px, .72fr); align-items: start; gap: 22px; }
.detail-main { display: grid; gap: 17px; }
.detail-stage-card, .video-panel { border: 1px solid #dee2dc; border-radius: 8px; background: var(--card); padding: 27px; }
.detail-top-line, .video-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.detail-stage-card h2 { font-size: 28px; letter-spacing: -.04em; margin: 20px 0 6px; }
.detail-stage-card > p { color: #6f7c84; font-size: 13px; margin: 0; }
.detail-steps { display: flex; gap: 5px; margin: 28px 0 0; }
.detail-steps span { flex: 1; height: 5px; border-radius: 99px; background: #e6e9e3; }
.detail-steps span.done { background: #a8cba8; }
.detail-steps span.current { background: #e6ae7b; }
.detail-stage-card .inline-alert { margin-top: 22px; }
.video-panel-header h2 { margin: 0; font-size: 20px; }
.video-panel-header span { color: #48805f; font-size: 12px; font-weight: 700; }
.video-panel video { width: 100%; max-height: 480px; margin: 16px 0 18px; background: #101824; border-radius: 6px; }
.video-panel .button { min-width: 170px; }
.detail-facts { display: grid; gap: 13px; margin: 22px 0 0; }
.detail-facts div { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding-bottom: 11px; border-bottom: 1px solid #edece5; }
.detail-facts dt { color: #78838a; font-size: 12px; }
.detail-facts dd { margin: 0; text-align: right; font-size: 12px; font-weight: 700; }
.quote-facts { display: grid; gap: 8px; margin: 18px 0 11px; padding: 15px 0 0; border-top: 1px solid #e5e8e1; }
.quote-facts div { display: flex; justify-content: space-between; gap: 9px; }
.quote-facts dt { color: #697885; font-size: 12px; }
.quote-facts dd { margin: 0; text-align: right; font-size: 12px; font-weight: 800; }
.summary-card h3 { margin: 0 0 13px; font-size: 15px; }
.render-choice { display: grid; gap: 9px; border: 0; padding: 0; margin: 0; }
.render-choice label { display: flex; align-items: start; gap: 11px; padding: 13px; border: 1px solid #d9ddd7; border-radius: 6px; cursor: pointer; }
.render-choice label:has(input:checked) { border-color: #b17952; background: #fff8ee; }
.render-choice input { margin: 4px 0 0; accent-color: #9f6442; }
.render-choice span { display: grid; gap: 2px; }
.render-choice strong { font-size: 12px; }
.render-choice small { color: #74808a; font-size: 11px; font-weight: 400; }

/* Owner tools */
.owner-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.mini-metric { display: grid; gap: 12px; padding: 20px 23px; border: 1px solid #dce1dc; border-radius: 8px; background: #fffefa; }
.mini-metric span { color: #79838e; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.mini-metric strong { font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.owner-add-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; padding: 22px 25px; border-radius: 8px; background: #d9e7e0; }
.owner-add-card h2 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.owner-add-card p { margin: 3px 0 0; color: #607970; font-size: 12px; }
.owner-add-card form { display: flex; gap: 8px; width: min(100%, 480px); }
.owner-add-card input { min-width: 0; flex: 1; }
.owner-add-card .button { flex: 0 0 auto; }
.person-row { display: flex; align-items: center; gap: 16px; min-height: 79px; padding: 14px 19px; border: 1px solid #dfe2de; border-radius: 7px; background: #fffefa; }
.person-avatar { width: 37px; height: 37px; flex: 0 0 37px; display: grid; place-items: center; border-radius: 5px; background: #e9dfd3; color: #906548; font-weight: 800; }
.person-info { display: grid; gap: 3px; min-width: 0; margin-right: auto; }
.person-info strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.person-info small { color: #8a969e; font-size: 11px; }
.person-row button { padding: 8px 11px; min-height: 36px; white-space: nowrap; }
.owner-reconcile-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; padding: 18px; border: 1px solid #dfe2de; border-radius: 7px; background: #fffefa; }
.owner-reconcile-form > strong, .owner-reconcile-form > p, .owner-reconcile-confirm { grid-column: 1 / -1; }
.owner-reconcile-form > p { margin: 0; }
.owner-reconcile-form label:not(.owner-reconcile-confirm) { display: grid; gap: 5px; }
.owner-reconcile-confirm { display: flex; align-items: flex-start; gap: 9px; }
.owner-reconcile-confirm input[type=checkbox] { flex: none; width: 18px; height: 18px; min-height: 0; padding: 0; margin: 2px 0 0; }
.owner-reconcile-form > button { justify-self: start; }
.operations-notice { display: flex; gap: 15px; align-items: start; border: 1px solid #c7d9d0; background: #e8f1ea; color: #385549; border-radius: 8px; padding: 17px 21px; }
.operations-notice > span { font-size: 24px; line-height: 1; }
.operations-notice strong { font-size: 13px; }
.operations-notice p { font-size: 12px; margin: 3px 0 0; }
.account-grid, .cost-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.account-card, .cost-card { padding: 20px 22px; background: #fffefa; border: 1px solid #dee2db; border-radius: 7px; }
.account-card-top { display: flex; justify-content: space-between; gap: 10px; }
.account-card h3 { margin: 0 0 8px; font-size: 16px; }
.account-card p { margin: 2px 0; color: #71818a; font-size: 12px; }
.cost-card strong { display: block; margin-top: 12px; font-size: 23px; }
.cost-card p { font-size: 11px; color: #849098; margin: 4px 0 0; }
.helper-layout { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; align-items: stretch; }
.helper-layout .form-section { align-content: start; }
#helper-token-panel { margin-top: 9px; }
#helper-token-panel strong { display: block; }
#helper-token-panel code { display: block; padding: 11px 0; font-size: 12px; overflow-wrap: anywhere; user-select: all; }
#helper-token-panel p code { display: inline; padding: 0; }
#helper-token-panel .button { min-height: 35px; font-size: 12px; }
#helper-token-panel p { margin: 9px 0 0; }
#helper-token-panel .helper-token-heading { margin-top: 18px; }
.helper-dismiss { display: block; padding: 8px 0 0; color: #245a77; font-size: 12px; }

/* Status and responsive */
.toast { position: fixed; z-index: 90; right: 22px; bottom: 22px; max-width: min(430px, calc(100vw - 44px)); padding: 14px 18px; border-radius: 7px; background: #243549; color: white; box-shadow: 0 12px 32px rgba(16,24,36,.2); font-size: 13px; }
.toast.error { background: #823f38; }
.toast.success { background: #2d664c; }
@media (max-width: 1100px) {
  .workspace { grid-template-columns: 210px minmax(0,1fr); }
  .workspace-body { padding-left: 35px; padding-right: 35px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.25fr) minmax(250px, .85fr); }
  .creation-layout, .detail-grid { grid-template-columns: minmax(0,1.3fr) minmax(240px,.8fr); }
}
@media (max-width: 850px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-art { min-height: 230px; padding: 28px 32px; }
  .art-display { margin: 0 0 auto; font-size: clamp(49px, 7vw, 72px); }
  .art-bottom { margin-top: 14px; max-width: none; font-size: 16px; }
  .auth-content { min-height: 470px; }
  .workspace { display: block; }
  .sidebar { display: none; }
  .workspace-body { padding: 22px 22px 60px; }
  .mobile-nav { display: flex; gap: 5px; overflow-x: auto; border-bottom: 1px solid #dce0dc; margin: -4px -4px 28px; padding: 0 4px; }
  .mobile-nav button { flex: 0 0 auto; border: 0; border-bottom: 2px solid transparent; background: none; color: #677582; padding: 10px 13px; white-space: nowrap; font-size: 12px; font-weight: 700; }
  .mobile-nav button.active { color: var(--ink); border-color: var(--accent); }
  .creation-layout, .detail-grid { grid-template-columns: 1fr; }
  .helper-layout { grid-template-columns: 1fr; }
  .creation-side { position: static; }
}
@media (max-width: 650px) {
  .topbar { height: 63px; padding: 0 18px; gap: 13px; }
  .topbar-context, .topbar-divider, .connection-pill { display: none !important; }
  .topbar-end .text-button { font-size: 12px; }
  .global-footer { padding: 0 18px; font-size: 9px; }
  .global-footer span { letter-spacing: .03em; }
  .auth-art { min-height: 175px; padding: 23px 24px; }
  .art-display { font-size: clamp(42px, 10.8vw, 60px); }
  .art-bottom { font-size: 14px; line-height: 1.3; }
  .auth-content { padding: 32px 24px 45px; min-height: 430px; }
  .auth-card h1 { font-size: 39px; }
  .status-card { padding: 32px 27px; }
  .status-card h1 { font-size: 41px; }
  .workspace-body { padding: 16px 16px 45px; }
  .dashboard-header { min-height: 150px; }
  .page-header h1 { font-size: 45px; }
  .dashboard-grid, .right-card-stack { grid-template-columns: 1fr; }
  .start-card { min-height: 285px; }
  .right-card-stack { display: grid; }
  .section-heading { margin-top: 35px; }
  .form-section { padding: 22px 17px; }
  .choice-row { grid-template-columns: 1fr 1fr; }
  .choice-card { padding: 11px; }
  .choice-card small { font-size: 10px; }
  .owner-metrics { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .mini-metric { padding: 14px 10px; }
  .mini-metric span { font-size: 8px; }
  .mini-metric strong { font-size: 24px; }
  .owner-add-card, .owner-add-card form { display: grid; width: 100%; }
  .person-row { flex-wrap: wrap; gap: 9px; }
  .owner-reconcile-form { grid-template-columns: 1fr; }
  .person-info { width: calc(100% - 50px); }
  .person-row .state-badge { margin-left: 47px; }
  .account-grid, .cost-grid { grid-template-columns: 1fr; }
}
@media (max-width: 410px) {
  .project-row { gap: 9px; padding: 12px; }
  .project-thumb { width: 38px; height: 38px; flex-basis: 38px; font-size: 18px; }
  .project-row .state-badge { font-size: 9px; padding: 5px 7px; }
  .render-overview { font-size: 11px; }
}
@media (max-width: 360px) {
  .auth-art { min-height: 140px; padding: 20px 24px; }
  .art-bottom { display: none; }
  .auth-content { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Approved FLS student theme. Existing workflow and owner screens share it. */
@font-face{font-family:Inter;src:url('/static/fonts/Inter-400.woff2')}@font-face{font-family:Inter;src:url('/static/fonts/Inter-600.woff2');font-weight:600 900}
:root{color-scheme:dark;--ink:#fafafa;--ink-soft:#d5d5d5;--paper:#0a0a0a;--card:#121212;--line:#292929;--muted:#a3a3a3;--accent:#e10b13;--accent-light:#321315;--lime:#213321;--sky:#182631;--danger:#ffabab;--success:#9ed9b2}
body{font-family:Inter,'Segoe UI',sans-serif}
.topbar,.global-footer,.sidebar,.auth-art{background:#101010;border-color:var(--line)}
.workspace-body{max-width:1320px;width:100%;margin:0 auto}
.button{border-radius:10px}.button-primary,.button-ink{background:var(--accent);color:white}.button-primary:not(:disabled):hover,.button-ink:not(:disabled):hover{background:#bd1018}
.button-secondary:not(:disabled):hover,.nav-item:hover{background:#252525}.nav-item.active{background:#271315;color:#fff}
input:not([type=radio]):not([type=file]):not([type=checkbox]),textarea,select{background:#0c0c0c;border-color:#383838;color:#fafafa}
input:not([type=radio]):not([type=file]):not([type=checkbox]):focus,textarea:focus,select:focus{border-color:#ec4349;box-shadow:0 0 0 3px #e10b1320}
.form-section,.summary-card,.project-card,.project-row,.detail-stage-card,.video-panel,.person-row,.metric-card,.small-card,.mini-metric,.account-card,.cost-card,.owner-reconcile-form,.owner-add-card,.consent-card,.start-card,.file-drop,.choice-card{background:var(--card);border-color:var(--line)}
.render-choice label:has(input:checked),.choice-card.selected{background:#241314;border-color:#f04c52}
.render-choice label,.file-drop:hover{border-color:#444}.render-choice input,.rights-attestation input{accent-color:#f44545}
.page-header p,.lede,.small-card p,.owner-add-card p,.account-card p,.start-card p,.auth-tab,.nav-item,.profile-copy span,.metric-sub,.detail-facts dt,.quote-facts dt,.render-choice small,.eyebrow,.card-index,.sidebar-label{color:#aaa}
.inline-alert.info,.operations-notice{background:#15232b;color:#c0dbe9;border-color:#344956}.inline-alert.error{background:#321719;color:#ffc1c5}.inline-alert.success{background:#182b20;color:#b4e2c4}
.profile-avatar,.person-avatar{background:#302022;color:#ffb2b7}.sidebar-rule,.summary-rule{background:#292929}
#connect-confirmation{display:block;font-size:32px;letter-spacing:.2em;margin:18px 0}.helper-layout{grid-template-columns:1fr 1fr}
#connect-approval{margin-top:24px;border:1px solid #f04c52;scroll-margin-top:24px}
details{font-size:12px;color:#aaa;margin-top:18px}details a{display:inline-block;margin-top:10px}
@media(max-width:720px){.helper-layout{grid-template-columns:1fr}.workspace-body{padding:24px 18px}.person-row{flex-wrap:wrap}}

.creation-side{display:grid;gap:18px;position:static}.creation-layout .form-column{position:sticky;top:20px}.creation-layout textarea{min-height:500px}#draft-status{margin-bottom:0}
@media(max-width:720px){.creation-layout .form-column{position:static}.creation-layout textarea{min-height:320px}}

.fls-logo{width:104px;height:40px;object-fit:contain}.brand-name strong{font-size:15px;font-weight:600}.brand{gap:16px}

.empty-state{background:#121212;border-color:#292929}.empty-state p{color:#a3a3a3}.project-thumb{background:#242424;color:#ddd}
.fls-logo{width:40px}.workspace{display:block}.workspace-body{max-width:1160px;padding:40px 28px 64px}
.sidebar{display:flex;flex-direction:row;padding:14px max(28px,calc((100vw - 1104px)/2));border-right:0;border-bottom:1px solid #292929;gap:24px}
.sidebar-top{display:flex;align-items:center;gap:24px}.sidebar-label,.sidebar-bottom{display:none}.nav-list{display:flex;gap:8px}.nav-item{width:auto;white-space:nowrap}.page-header h1{font-size:42px;letter-spacing:-.04em}.eyebrow{display:none}.form-section-heading .step-number{display:none}
@media(max-width:900px){.sidebar{display:none}.workspace-body{padding:24px 18px 48px}.page-header h1{font-size:34px}}

.rights-attestation input{width:18px;height:18px;min-height:18px}.page-header.compact h1{font-size:42px}.file-icon{background:#252525;color:#ddd}.creation-layout{grid-template-columns:minmax(0,1.4fr) minmax(340px,1fr)}
@media(max-width:720px){.creation-layout{grid-template-columns:1fr}.page-header.compact h1{font-size:34px}}

.creation-side .form-section{padding:22px}.creation-side .file-drop{min-height:110px;padding:14px}.choice-card.selected{box-shadow:none}.file-drop:hover,.file-drop:focus-within{background:#1c1c1c;border-color:#888}.form-section-heading p,.choice-card small{color:#aaa}.choice-symbol{color:#ff969a}
