:root { color-scheme: dark; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #0d1117; color: #f2f5f7; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 82% 6%, #163042 0, transparent 31rem), #0d1117; }
.topbar { height: 76px; padding: 0 clamp(24px, 5vw, 84px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #26313b; }
.brand { display: flex; align-items: center; gap: 12px; letter-spacing: .08em; font-size: 13px; font-weight: 700; }
.brand strong { color: #80e0bb; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #80e0bb; border-radius: 8px; color: #80e0bb; font-size: 19px; font-weight: 800; }
.session-status, .revision { color: #a7b7c1; font-size: 13px; }
main { max-width: 1300px; margin: auto; padding: 0 clamp(24px, 5vw, 84px) 100px; }
.hero { padding: 100px 0 88px; max-width: 850px; }
.eyebrow { color: #80e0bb; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 23px 0 23px; font-size: clamp(42px, 5.6vw, 76px); line-height: 1.05; letter-spacing: -.055em; }
h1 em { color: #80e0bb; font-style: normal; }
.hero p { max-width: 610px; color: #b5c2cb; font-size: 18px; line-height: 1.6; }
button { margin-top: 18px; padding: 13px 20px; background: #80e0bb; color: #10201d; border: 0; border-radius: 9px; font: inherit; font-weight: 700; cursor: pointer; }
button:hover { background: #a0f0d1; }
button:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.message { min-height: 24px; font-size: 14px !important; }
.intro { padding: 68px 0 38px; max-width: 850px; }
.intro h1 { max-width: 800px; font-size: clamp(42px, 5vw, 66px); }
.intro h1 em { color: #80e0bb; font-style: normal; }
.intro p { max-width: 650px; color: #b5c2cb; font-size: 17px; line-height: 1.55; }
.workspace-nav { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 18px; border-bottom: 1px solid #26313b; }
.nav-button { margin: 0; flex: 0 0 auto; padding: 11px 18px; background: transparent; color: #aebfc8; border: 1px solid transparent; border-radius: 9px; font-size: 14px; }
.nav-button:hover { background: #1a2931; color: #fff; }
.nav-button.active { background: #173a34; border-color: #397a68; color: #9af0cd; }
.workspace-view { padding-top: 38px; min-height: 480px; }
.workspace-view[hidden] { display: none; }
.section-copy { color: #b5c2cb; max-width: 720px; line-height: 1.6; margin: 0 0 28px; }
.preview-tag, .step-state { color: #c4d5de; font-size: 12px; border: 1px solid #40505a; border-radius: 99px; padding: 7px 11px; white-space: nowrap; }
.step-grid, .library-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step-card, .feature-card { background: #141d25; border: 1px solid #2b3944; border-radius: 16px; padding: 24px; }
.step-card h3, .feature-card h3 { font-size: 19px; margin: 16px 0 10px; }
.step-card p, .feature-card p { color: #b5c2cb; line-height: 1.55; min-height: 76px; font-size: 14px; }
.step-number, .feature-icon { color: #80e0bb; font-size: 25px; font-weight: 700; }
.notice { display: flex; gap: 24px; margin-top: 20px; padding: 20px 24px; border-radius: 14px; border: 1px solid #385349; background: #132720; line-height: 1.5; font-size: 14px; }
.notice strong { min-width: 170px; color: #9af0cd; }
.notice span { color: #c9dad3; }
.evidence-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.evidence-layout .feature-card h3 { margin-top: 0; }
.muted { color: #9dafba; }
.secondary-button { background: transparent; color: #9af0cd; border: 1px solid #397a68; font-size: 13px; padding: 10px 14px; }
.secondary-button:hover { background: #173a34; }
.detail-panel, .content-browser { margin-top: 24px; padding: 26px; background: #111b22; border: 1px solid #38505b; border-radius: 16px; }
.detail-panel[hidden] { display: none; }
.detail-panel h3, .content-browser h3 { margin: 0 0 10px; font-size: 24px; }
.detail-panel p { color: #b5c2cb; }
.search-label { display: block; margin-bottom: 8px; color: #c8d8df; font-size: 13px; }
input[type="search"] { width: min(100%, 460px); padding: 12px 14px; background: #0d151b; color: #f2f5f7; border: 1px solid #47606c; border-radius: 9px; font: inherit; }
input[type="search"]:focus-visible { outline: 3px solid #80e0bb; outline-offset: 2px; }
.content-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.content-controls > div:first-child { flex: 1 1 280px; }
.content-controls input { width: 100%; }
select { padding: 12px 14px; background: #0d151b; color: #f2f5f7; border: 1px solid #47606c; border-radius: 9px; font: inherit; }
select:focus-visible { outline: 3px solid #80e0bb; outline-offset: 2px; }
.content-count { margin: 14px 0 0; color: #9dafba; font-size: 13px; }
.content-layout { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 2fr); gap: 18px; margin-top: 20px; }
.content-list { display: flex; flex-direction: column; gap: 8px; }
.content-item { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; margin: 0; padding: 16px; background: #17232c; color: #f2f5f7; border: 1px solid #32434e; text-align: left; }
.content-item[aria-pressed="true"] { border-color: #80e0bb; background: #18392f; }
.content-item strong { font-size: 15px; }
.content-item small, .content-meta { color: #9dafba; }
.content-detail { min-height: 260px; padding: 24px; background: #17232c; border: 1px solid #32434e; border-radius: 12px; }
.content-detail h4 { font-size: 24px; margin: 12px 0; }
.content-detail p { line-height: 1.6; }
.content-detail > p:not(.content-meta):not(.content-note) { white-space: pre-wrap; }
.content-note { border-top: 1px solid #32434e; padding-top: 16px; color: #c5d2d8; font-size: 13px; }
.content-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.content-form label { display: flex; flex-direction: column; gap: 7px; color: #c8d8df; font-size: 13px; }
.field-hint { color: #9dafba; font-size: 12px; }
.content-form .wide, .form-actions { grid-column: 1 / -1; }
.content-form input, .content-form select, .content-form textarea { width: 100%; padding: 12px 14px; background: #0d151b; color: #f2f5f7; border: 1px solid #47606c; border-radius: 9px; font: inherit; }
.content-form input:focus-visible, .content-form select:focus-visible, .content-form textarea:focus-visible { outline: 3px solid #80e0bb; outline-offset: 2px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.draft-preview { margin-top: 24px; padding: 24px; background: #172c2a; border: 1px solid #397a68; border-radius: 12px; }
.draft-preview[hidden] { display: none; }
.draft-preview h4 { margin: 0 0 12px; font-size: 24px; }
.draft-preview h5 { margin: 0 0 12px; font-size: 20px; }
.draft-preview .secondary-button { margin-right: 10px; }
#draft-unsaved-warning[hidden] { display: none; }
.draft-manager { margin-top: 30px; border-top: 1px solid #32434e; padding-top: 24px; }
.draft-manager[hidden] { display: none; }
.draft-manager h4 { font-size: 22px; margin: 0 0 8px; }
.draft-manager p { color: #b5c2cb; line-height: 1.5; }
.draft-lookup { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.draft-lookup label { width: 100%; color: #c8d8df; font-size: 13px; }
.draft-lookup input { flex: 1 1 280px; padding: 12px 14px; background: #0d151b; color: #f2f5f7; border: 1px solid #47606c; border-radius: 9px; font: inherit; }
.draft-lookup button { margin: 0; }
.draft-body { white-space: pre-wrap; line-height: 1.6; }
.catalog { border-top: 1px solid #26313b; padding-top: 36px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
h2 { margin: 10px 0 0; font-size: 32px; letter-spacing: -.035em; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 18px; }
.project { padding: 26px; background: #141d25; border: 1px solid #2b3944; border-radius: 16px; }
.project h3 { margin: 8px 0 18px; font-size: 22px; }
.project-id { color: #80e0bb; font-size: 12px; font-family: ui-monospace, monospace; }
.field-label { display: block; margin: 22px 0 10px; color: #9dafba; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #27343e; color: #dbe4e9; font-size: 14px; overflow-wrap: anywhere; }
.badge { color: #80e0bb; white-space: nowrap; }
.digest { color: #91a4af; font-family: ui-monospace, monospace; font-size: 12px; overflow-wrap: anywhere; }
footer { padding: 28px clamp(24px, 5vw, 84px); border-top: 1px solid #26313b; color: #7f929e; font-size: 12px; }
@media (max-width: 620px) { .topbar { height: 64px; } .session-status { display: none; } .hero { padding: 64px 0; } .section-heading { align-items: start; flex-direction: column; } .item { flex-direction: column; gap: 4px; } }
@media (max-width: 980px) { .step-grid, .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .intro { padding: 48px 0 22px; } .step-grid, .library-grid, .evidence-layout, .content-layout, .content-form { grid-template-columns: 1fr; } .notice { flex-direction: column; gap: 8px; } .preview-tag { align-self: flex-start; } }
@media (prefers-reduced-motion: no-preference) { button { transition: background .16s ease; } }
.draft-inbox-actions { margin: 1rem 0; }
.draft-inbox { display: grid; gap: .5rem; margin: .75rem 0; }
.draft-inbox-item { width: 100%; text-align: left; background: #14242c; border: 1px solid #35505c; border-radius: .6rem; padding: .75rem; color: inherit; }
