:root { --bg:#f4f5f1; --paper:#fff; --ink:#253731; --muted:#64756f; --line:#dce4de; --teal:#176d60; --teal-soft:#e6f2ed; --radius:14px; font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ink); background:var(--bg); }
* { box-sizing:border-box; }
body { margin:0; font-size:15px; line-height:1.5; }
[hidden] { display:none !important; }
button,input,select { font:inherit; }
button,a,select { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
a { color:var(--teal); text-underline-offset:3px; }
a:hover { color:#104a41; }
button:focus-visible,a:focus-visible,select:focus-visible,video:focus-visible,audio:focus-visible { outline:3px solid #80b7a9; outline-offset:4px; }
h1,h2,h3,p { margin-top:0; }
h1 { font-size:clamp(25px,3vw,34px); line-height:1.2; letter-spacing:-.7px; margin-bottom:8px; }
h2 { font-size:19px; line-height:1.35; margin-bottom:12px; }
h3 { font-size:16px; line-height:1.4; margin-bottom:12px; }
p { margin-bottom:16px; }
.muted { color:var(--muted); }
.small { font-size:13px; }
.eyebrow { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1.25px; color:var(--muted); margin-bottom:7px; }
.skip-link { position:absolute; left:14px; top:-70px; z-index:5; padding:10px 16px; background:var(--paper); border:1px solid var(--teal); border-radius:8px; }
.skip-link:focus { top:12px; }
.topbar { min-height:82px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 30px; background:var(--paper); border-bottom:1px solid var(--line); }
.brand { display:flex; gap:12px; align-items:center; }
.brand-mark { width:39px; height:39px; display:grid; place-items:center; background:var(--teal); color:white; border-radius:11px; font-size:23px; font-weight:800; }
.brand strong { display:block; font-size:19px; letter-spacing:-.4px; line-height:1.2; }
.brand div>span { display:block; color:var(--muted); font-size:12px; margin-top:3px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:9px 14px; min-height:40px; border:1px solid var(--teal); border-radius:8px; background:var(--teal); color:white; text-decoration:none; font-size:13px; font-weight:650; white-space:nowrap; }
.button:hover { background:#105549; color:white; }
.button.secondary { background:var(--paper); color:var(--ink); border-color:var(--line); }
.button.secondary:hover { background:var(--teal-soft); border-color:#b4cec3; }
.button[aria-disabled="true"] { opacity:.45; pointer-events:none; }
.app-layout { display:grid; grid-template-columns:260px minmax(0,1fr); min-height:calc(100vh - 82px); }
.library { padding:27px 20px; background:#f9faf7; border-right:1px solid var(--line); }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.section-heading h2 { font-size:15px; margin:0; }
.section-heading .eyebrow { margin:0; font-size:10px; }
#library-status { font-size:12px; margin-top:12px; margin-bottom:18px; }
.project-list { display:flex; flex-direction:column; gap:12px; }
.project-card-body { display:block; padding:12px 14px; }
.project-card-body>strong,.project-card-body>span { display:block; }
.project-card { display:block; width:100%; text-align:left; border:1px solid var(--line); border-radius:11px; padding:0; overflow:hidden; background:var(--paper); color:var(--ink); text-decoration:none; }
.project-card:hover { border-color:#8eafa3; background:#fcfefb; }
.project-card.active,.project-card[aria-current="true"],.project-card[aria-selected="true"] { border-color:var(--teal); box-shadow:0 0 0 1px var(--teal); }
.project-card img { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; background:#e5eae5; }
.project-card>div,.project-card .project-card-body { padding:12px; }
.project-card h3,.project-card strong { font-size:14px; margin:0 0 5px; }
.project-card p,.project-card small { margin:0; color:var(--muted); font-size:12px; }
.library-note { font-size:12px; color:var(--muted); line-height:1.6; margin-top:25px; }
main { padding:30px clamp(20px,3vw,42px) 48px; max-width:1700px; min-width:0; width:100%; }
.state-card { max-width:610px; margin:10vh auto; padding:42px 28px; text-align:center; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); }
.state-card p { color:var(--muted); max-width:450px; margin:0 auto 22px; }
.state-symbol { display:grid; place-items:center; width:54px; height:54px; border-radius:50%; background:var(--teal-soft); color:var(--teal); margin:0 auto 22px; }
.workspace-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:23px; }
#project-meta { font-size:13px; margin:0; }
.status-badge { display:inline-flex; align-items:center; max-width:240px; border-radius:7px; padding:6px 10px; background:var(--teal-soft); color:var(--teal); font-size:12px; font-weight:650; margin-top:8px; }
.tabs { display:flex; gap:22px; border-bottom:1px solid var(--line); overflow-x:auto; margin-bottom:25px; }
.tabs button { border:0; border-bottom:3px solid transparent; background:transparent; color:var(--muted); padding:11px 0 13px; font-size:14px; white-space:nowrap; }
.tabs button[aria-selected="true"] { border-bottom-color:var(--teal); color:var(--teal); font-weight:700; }
.tabs button:hover { color:var(--ink); }
.watch-layout { display:grid; grid-template-columns:minmax(0,1fr) 270px; gap:24px; align-items:start; }
.watch-main { min-width:0; }
.video-frame { position:relative; background:#1b2724; border-radius:var(--radius); overflow:hidden; aspect-ratio:16/9; display:flex; align-items:center; justify-content:center; }
video { display:block; width:100%; height:100%; }
.media-empty { color:#e6eee9; padding:20px; text-align:center; margin:0; }
.video-actions { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; margin-top:15px; }
.video-actions p { font-size:12px; margin:9px 0; }
.version-control { display:flex; gap:12px; align-items:center; margin-bottom:14px; font-size:13px; }
select { background:var(--paper); color:var(--ink); border:1px solid var(--line); border-radius:7px; padding:7px 10px; max-width:100%; }
.voice-card,.content-card { background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:23px; min-width:0; }
.voice-card h2 { font-size:18px; }
.voice-card h3 { margin-top:22px; font-size:13px; }
#voice-name { font-size:14px; }
audio { width:100%; display:block; height:42px; }
.voice-card>.small { margin-top:23px; margin-bottom:0; }
.panel-heading { margin-bottom:20px; }
.panel-heading h2 { margin-bottom:6px; }
.panel-heading p { font-size:13px; margin:0; }
.subheading { margin-top:28px; }
.gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(235px,1fr)); gap:18px; }
.gallery-card { display:block; min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:11px; background:var(--paper); color:var(--ink); text-decoration:none; padding:0; text-align:left; }
.gallery-card:hover { border-color:#8eafa3; }
.gallery-card img { display:block; width:100%; aspect-ratio:16/10; object-fit:contain; background:#eef1eb; }
.gallery-card>div,.gallery-card figcaption,.gallery-card .gallery-caption { padding:12px 14px; }
.gallery-card h3,.gallery-card p { font-size:13px; margin:0; }
.gallery-card small { color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.gallery-label { display:block; padding:12px 14px; font-size:13px; overflow-wrap:anywhere; }
.scene-list { display:flex; flex-direction:column; gap:15px; }
.scene-card { display:grid; grid-template-columns:200px minmax(0,1fr); gap:20px; background:var(--paper); border:1px solid var(--line); border-radius:11px; padding:16px; align-items:start; }
.scene-card img { width:100%; aspect-ratio:16/10; object-fit:contain; background:#edf1eb; border-radius:7px; }
.scene-card h3 { margin:0 0 7px; }
.scene-card p { font-size:13px; margin-bottom:8px; }
.scene-card small { color:var(--muted); font-size:12px; }
.scene-card .button { margin-top:10px; }
.scene-picture { border:0; border-radius:7px; padding:0; background:#edf1eb; overflow:hidden; }
.scene-picture:hover { outline:1px solid #8eafa3; }
.scene-sources { display:flex; flex-wrap:wrap; gap:6px 12px; font-size:12px; margin:10px 0; }
.script-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(250px,1fr); gap:22px; }
.prose { font-family:inherit; font-size:14px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; margin:0; }
.source-list { display:flex; flex-direction:column; gap:0; }
.source-card { padding:15px 0; border-top:1px solid var(--line); overflow-wrap:anywhere; }
.source-card h3 { font-size:14px; margin-bottom:6px; }
.source-card p { font-size:12px; color:var(--muted); margin-bottom:6px; }
.source-card a { font-size:13px; }
.package-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,.8fr); gap:22px; }
.file-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:13px 0; border-top:1px solid var(--line); font-size:13px; overflow-wrap:anywhere; }
.file-row small { display:block; color:var(--muted); font-size:11px; margin-top:3px; }
.pending-list { padding-left:19px; font-size:13px; }
.pending-list li { margin-bottom:10px; }
.claim-list,.review-list { display:grid; gap:13px; }
.claim-card,.review-card { padding:14px 0; border-top:1px solid var(--line); overflow-wrap:anywhere; }
.claim-card h3,.review-card h3 { font-size:14px; margin-bottom:6px; }
.claim-card p,.review-card p { font-size:13px; margin-bottom:6px; }
.claim-card small,.review-card small { color:var(--muted); font-size:12px; }
.claim-card summary,.review-card summary { cursor:pointer; font-size:14px; font-weight:600; }
.claim-card[open] summary,.review-card[open] summary { margin-bottom:12px; }
.evidence-item { margin-top:12px; border-left:2px solid var(--line); padding-left:13px; font-size:13px; }
.review-text { white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; line-height:1.7; max-height:480px; overflow:auto; }
.status.pending { font-size:11px; color:#846536; background:#f8f1e4; border-radius:5px; padding:3px 7px; }
button:disabled { opacity:.5; cursor:default; }
.empty-message { color:var(--muted); font-size:13px; margin:12px 0; }
dialog { width:min(1150px,94vw); max-height:94vh; border:1px solid var(--line); border-radius:var(--radius); padding:20px; background:var(--paper); color:var(--ink); }
dialog::backdrop { background:rgba(17,31,26,.75); }
.dialog-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:18px; }
.dialog-heading p { margin:0; font-size:14px; overflow-wrap:anywhere; }
#dialog-image { width:100%; max-height:calc(90vh - 90px); object-fit:contain; display:block; background:#f2f4ef; }
@media (min-width:1700px) { .watch-layout { grid-template-columns:minmax(0,1fr) 300px; } }
@media (max-width:1100px) { .watch-layout { grid-template-columns:minmax(0,1fr); } .voice-card { display:grid; grid-template-columns:1fr 1fr; gap:8px 24px; } .voice-card .eyebrow,.voice-card h2,.voice-card #voice-name { grid-column:1; } .voice-card audio { grid-column:1; } .voice-card #audition-wrapper { grid-column:2; grid-row:1/6; align-self:center; } .voice-card #audition-wrapper h3 { margin-top:0; } .voice-card>.small { grid-column:1/-1; margin-top:12px; } .script-layout,.package-layout { grid-template-columns:1fr; } }
@media (max-width:760px) { .topbar { padding:16px 18px; min-height:76px; } .app-layout { grid-template-columns:1fr; } .library { border-right:0; border-bottom:1px solid var(--line); padding:20px; } .project-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); } .project-card img { max-height:130px; } .library-note { display:none; } main { padding:24px 20px 36px; } .workspace-heading { gap:12px; } .status-badge { max-width:140px; font-size:11px; } .tabs { gap:20px; } .scene-card { grid-template-columns:140px minmax(0,1fr); gap:14px; } .voice-card,.content-card { padding:20px; } .state-card { margin:28px auto; } }
@media (max-width:480px) { .topbar>.button { font-size:11px; padding:8px 10px; } .brand strong { font-size:17px; } .brand-mark { width:34px; height:34px; } .workspace-heading { flex-direction:column; gap:8px; } .status-badge { margin-top:0; max-width:100%; } .gallery { grid-template-columns:1fr; } .scene-card { grid-template-columns:1fr; } .scene-card img { max-height:210px; } .video-actions { flex-wrap:wrap; } .video-actions p { width:100%; } .voice-card { display:block; } .voice-card #audition-wrapper h3 { margin-top:22px; } .file-row { align-items:flex-start; } }
