/* Guio Studio — translucent surfaces, system typography, quiet depth. */
:root {
  color-scheme:dark;
  --ui-font:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;
  --sans-font:var(--ui-font); --display-font:var(--ui-font);
  --bg:#111318; --bg-soft:#181b22; --panel:#1e222b; --panel-muted:#262b35; --panel-strong:#343b47;
  --text:#f5f6fa; --muted:#9aa3b3; --muted-light:#b5bdca;
  --stroke:rgba(255,255,255,.12); --stroke-soft:rgba(255,255,255,.06);
  --accent:#79b2ff; --accent-strong:#a4cbff; --accent-soft:rgba(94,161,255,.12); --accent-glow:transparent;
  --glass:rgba(33,39,50,.7); --glass-subtle:rgba(30,36,46,.45); --glass-edge:rgba(255,255,255,.16);
  --glass-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 8px 28px rgba(0,0,0,.12);
  --radius-xl:26px; --radius-lg:18px; --radius-md:12px; --radius-sm:9px;
  --shadow-sm:0 2px 6px #00000010; --shadow:0 8px 30px #00000012; --shadow-lg:0 28px 70px #00000024;
  --focus-ring:0 0 0 3px #3289ff44;
}
html[data-theme="light"] {
  color-scheme:light;
  --bg:#f5f6f9; --bg-soft:#edf0f5; --panel:#fff; --panel-muted:#f3f5f9; --panel-strong:#e5eaf2;
  --text:#1b1e25; --muted:#6b7381; --muted-light:#57606e;
  --stroke:rgba(36,51,77,.11); --stroke-soft:rgba(36,51,77,.06);
  --accent:#0065d8; --accent-strong:#004ea9; --accent-soft:rgba(0,101,216,.07); --accent-glow:transparent;
  --glass:rgba(255,255,255,.68); --glass-subtle:rgba(255,255,255,.42); --glass-edge:rgba(255,255,255,.85);
  --glass-shadow:inset 0 1px 0 #ffffff,0 8px 28px rgba(34,57,91,.06);
  --shadow-sm:0 2px 6px #273b5508; --shadow:0 8px 30px #273b550b; --shadow-lg:0 28px 70px #273b5518;
}
html { scroll-behavior:smooth; scroll-padding-top:100px; }
body { font-family:var(--ui-font); background:var(--bg); color:var(--text); -webkit-font-smoothing:antialiased; }
button,input,select,textarea { font-family:inherit; }
:where(a,button,input,select,textarea):focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
::selection { background:var(--accent-soft); color:var(--text); }
.ambient { display:none; }
html .brand-mark { font-family:var(--ui-font); font-size:19px; font-weight:700; letter-spacing:-1px; color:var(--text); background:linear-gradient(145deg,var(--panel),var(--panel-strong)); border:1px solid var(--glass-edge); border-radius:12px; box-shadow:inset 0 1px 1px #ffffff70,0 3px 8px #16274210; }
html .brand-copy .eyebrow { display:none; }
html .brand-copy strong { font-family:var(--ui-font); font-size:16px; font-weight:600; letter-spacing:-.6px; }
html .topbar, html[data-theme="light"] .topbar,
html body.dashboard-view-active .topbar,html[data-theme="light"] body.dashboard-view-active .topbar {
  background:var(--glass); border-bottom:1px solid var(--glass-edge); box-shadow:0 1px 0 var(--stroke-soft);
  backdrop-filter:blur(28px) saturate(150%); -webkit-backdrop-filter:blur(28px) saturate(150%);
}
html .accent-button,html .auth-submit { background:var(--accent); border-color:transparent; box-shadow:inset 0 1px 0 #ffffff25,0 3px 8px #0065d815; color:var(--bg); border-radius:100px; }
html[data-theme="light"] .accent-button,html[data-theme="light"] .auth-submit { color:#fff; }
html .accent-button:hover,html .auth-submit:hover { background:var(--accent-strong); transform:none; box-shadow:0 4px 12px #0065d820; }
html .ghost-button { border-radius:100px; box-shadow:none; }
html .ghost-button:hover { transform:none; background:var(--panel-muted); }
html .eyebrow { font-size:11px; letter-spacing:.04em; text-transform:none; color:var(--muted); }
html .panel-card,html[data-theme="light"] .panel-card,html .guide-section,html[data-theme="light"] .guide-section,html .guide-nav-card,html .guide-hero-card {
 background:var(--glass); border:1px solid var(--glass-edge); box-shadow:var(--glass-shadow); border-radius:var(--radius-lg);
}
html .dashboard-shell { grid-template-columns:236px minmax(0,1fr); }
html .dashboard-sidebar { padding:28px 16px; background:var(--glass-subtle); border-right:1px solid var(--stroke-soft); gap:26px; }
html .sidebar-brand { background:none; border:0; padding:0 10px 14px; }
html .sidebar-avatar { border-radius:50%; background:var(--panel-strong); box-shadow:inset 0 1px 0 var(--glass-edge); color:var(--text); }
html .sidebar-brand-copy { min-width:0; }
html .sidebar-brand-copy span { max-width:150px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
html .sidebar-link { padding:11px 14px; font-size:13px; font-weight:500; color:var(--muted-light); border-radius:12px; }
html .sidebar-link.active,html[data-theme="light"] .sidebar-link.active { color:var(--text); border-color:var(--glass-edge); background:var(--glass); box-shadow:var(--glass-shadow); }
html .sidebar-block,html[data-theme="light"] .sidebar-block { background:none; border:0; padding:0 12px; box-shadow:none; }
html .sidebar-metric { display:grid; grid-template-columns:minmax(0,1fr); gap:6px; min-width:0; background:none; border:0; padding:10px 0; }
html .sidebar-metric strong { display:block; font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
html .sidebar-metric span { display:block; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
html .sidebar-label { text-transform:none; letter-spacing:0; font-weight:500; font-size:11px; }
html .sidebar-tip,html[data-theme="light"] .sidebar-tip { border:0; border-top:1px solid var(--stroke); border-radius:0; padding:22px 12px 0; }
html .sidebar-tip h3 { font-family:var(--ui-font); font-size:17px; font-weight:600; line-height:1.3; letter-spacing:-.4px; }
html .sidebar-tip p { font-size:12px; line-height:1.7; }
html .sidebar-utilities { margin-block:-12px; }
html .dashboard-panel { background:none; max-width:1400px; margin:auto; padding:clamp(28px,4vw,56px); }
html .dashboard-heading { border:0; padding-bottom:10px; margin-bottom:24px; align-items:flex-end; }
html .dashboard-heading h1 { font:600 clamp(32px,3.6vw,46px)/1.12 var(--ui-font); letter-spacing:-1.8px; margin-top:10px; }
.library-intro { font-size:14px; line-height:1.5; color:var(--muted); margin:12px 0 0; }
html .dashboard-updated { font-size:11px; }
html .dashboard-search input,html[data-theme="light"] .dashboard-search input { background:var(--glass); border:1px solid var(--glass-edge); box-shadow:var(--glass-shadow); border-radius:15px; height:48px; font-size:13px; }
html input::placeholder,html[data-theme="light"] input::placeholder { color:var(--muted); opacity:1; }
html .dashboard-section { margin-top:32px; }
html .section-heading h2 { font-family:var(--ui-font); font-size:14px; font-weight:600; letter-spacing:-.2px; }
html .section-drop-hint { max-width:300px; font-size:11px; line-height:1.5; }
html .project-row,html body.dashboard-view-active .project-row,html[data-theme="light"] body.dashboard-view-active .project-row,
html .standalone-row,html[data-theme="light"] .standalone-row { background:var(--glass); border:1px solid var(--glass-edge); border-radius:15px; box-shadow:var(--glass-shadow); }
html body.dashboard-view-active .project-row::before { opacity:.35; }
html body.dashboard-view-active .empty-project-row::before { display:none; }
html body.dashboard-view-active .empty-project-row { box-shadow:none; border:1px dashed var(--stroke); background:var(--glass-subtle); }
html .project-row:hover,html .standalone-row:hover { background:var(--panel); transform:none; }
html .project-view { background:none; }
html .pv-title { font-family:var(--ui-font); font-weight:600; letter-spacing:-1px; }
html .pv-header-icon,html[data-theme="light"] .pv-header-icon { background:var(--project-accent-soft,var(--panel-muted)); }
html .pv-workspace-nav,html .pv-bible-nav,html .sidebar-tab-bar,html[data-theme="light"] .sidebar-tab-bar { background:var(--glass); border-color:var(--glass-edge); box-shadow:var(--glass-shadow); border-radius:16px; }
html .auth-card,html .profile-card { background:var(--glass); border:1px solid var(--glass-edge); border-radius:28px; box-shadow:var(--glass-shadow),var(--shadow-lg); backdrop-filter:blur(28px); -webkit-backdrop-filter:blur(28px); }
html .auth-intro h1 { font:600 clamp(38px,4.5vw,64px)/1.06 var(--ui-font); letter-spacing:-2.5px; }
html .auth-proof-list span { background:none; border:0; border-radius:0; padding:12px 0; box-shadow:none; }
html .auth-proof-list b { color:var(--muted); background:var(--glass); border:1px solid var(--glass-edge); }
html .auth-tab.active { background:var(--panel); color:var(--text); box-shadow:0 2px 6px #00000010; }
html .guide-hero-card h1 { font-family:var(--ui-font); letter-spacing:-1.5px; }
/* The public studio: a floating glass navigation and a layered editor preview. */
.landing-page { background:var(--bg); }
.landing-page .nav {
 position:sticky; top:18px; height:62px; max-width:1020px; margin:18px auto 0; padding:0 18px 0 22px;
 border:1px solid var(--glass-edge); border-radius:100px; background:var(--glass); box-shadow:var(--glass-shadow);
 backdrop-filter:blur(30px) saturate(160%); -webkit-backdrop-filter:blur(30px) saturate(160%);
}
html[data-theme="light"] .landing-page .nav { background:var(--glass); }
.landing-page .nav-brand { font-size:15px; font-weight:600; letter-spacing:-.6px; gap:10px; }
.landing-page .brand-mark { width:32px; height:32px; }
.landing-page .nav-links { gap:14px; margin-right:28px; }
.landing-page .nav-link { font-size:12px; color:var(--muted-light); }
.landing-page .btn { min-height:38px; border-radius:100px; padding:9px 18px; font-size:12px; font-weight:500; transition:background .2s,box-shadow .2s; }
.landing-page .btn-accent { background:var(--text); border-color:transparent; color:var(--bg); box-shadow:inset 0 1px 0 #ffffff20,0 3px 8px #00000010; }
.landing-page .btn-accent:hover { opacity:.85; }
.landing-page .btn-ghost { border:1px solid var(--stroke); background:var(--glass-subtle); color:var(--text); }
.landing-page .nav .btn-ghost { border-color:transparent; background:none; }
.landing-page .btn-large { min-height:49px; padding:14px 25px; font-size:14px; }
.landing-intro { position:relative; max-width:1280px; margin:auto; padding:76px 30px 70px; isolation:isolate; }
.landing-page .hero { text-align:center; max-width:850px; margin:auto; padding:0; }
.landing-page .hero-badge { color:var(--muted-light); text-transform:none; letter-spacing:0; font-size:12px; font-weight:500; border:1px solid var(--glass-edge); background:var(--glass); box-shadow:var(--glass-shadow); padding:7px 14px; margin-bottom:24px; }
html[data-theme="light"] .landing-page .hero-badge { border-color:var(--glass-edge); }
.landing-page .hero h1 { font:650 clamp(44px,5.8vw,76px)/1.03 var(--ui-font); letter-spacing:-.055em; margin-bottom:24px; }
.landing-page .hero h1 span { color:var(--muted); }
.landing-page .hero p { font-size:17px; line-height:1.6; color:var(--muted); max-width:480px; margin:0 auto 28px; letter-spacing:-.25px; }
.landing-page .hero-actions { justify-content:center; gap:10px; }
.landing-page .hero .hero-note { font-size:11px; color:var(--muted); margin:16px auto 0; }
.landing-page .preview-wrap { position:relative; width:100%; max-width:870px; margin:58px auto 0; padding:0; perspective:1600px; }
.landing-page .preview-wrap::before {
 content:''; position:absolute; z-index:-1; inset:-60px -100px -30px; pointer-events:none;
 background:radial-gradient(ellipse at 18% 50%,#87b8f44d,transparent 50%),radial-gradient(ellipse at 85% 55%,#b8ccdc55,transparent 45%); filter:blur(32px);
}
.landing-page .preview-card { position:relative; overflow:hidden; border:1px solid var(--glass-edge); border-radius:22px; background:var(--glass); box-shadow:inset 0 1px 0 #ffffff80,0 30px 60px -20px #20385540,0 3px 10px #20385510; backdrop-filter:blur(30px); -webkit-backdrop-filter:blur(30px); transform:rotateX(5deg); transform-origin:center top; }
.landing-page .preview-topbar { padding:17px 22px; background:transparent; border-color:var(--stroke-soft); gap:6px; }
.landing-page .preview-dot { display:block; width:8px; height:8px; background:var(--muted); opacity:.3; }
.landing-page .preview-title { color:var(--muted-light); font-family:var(--ui-font); font-size:11px; letter-spacing:0; text-transform:none; font-weight:500; margin-left:14px; }
.preview-save { margin-left:auto; display:flex; align-items:center; gap:5px; font-size:10px; color:var(--muted); }
.preview-save::before { content:''; width:5px; height:5px; border-radius:50%; background:#58a87c; }
.landing-page .product-flow { margin:0 auto 18px; display:flex; justify-content:center; gap:4px; padding:5px; width:fit-content; border:1px solid var(--glass-edge); border-radius:100px; background:var(--glass-subtle); box-shadow:inset 0 1px 2px #00000005; }
.landing-page .flow-step { border:0; color:var(--muted); text-transform:none; letter-spacing:0; font-size:11px; padding:8px 20px; border-radius:100px; }
.landing-page .flow-step.is-active { background:var(--panel); box-shadow:0 2px 5px #152b4c13,inset 0 1px 0 var(--glass-edge); color:var(--text); }
.landing-page .preview-body { position:relative; max-width:650px; margin:0 auto; min-height:325px; padding:45px 65px; background:#fff; color:#20242a; border:1px solid #dfe3ea; border-bottom:0; border-radius:4px 4px 0 0; box-shadow:0 2px 12px #20385508; font-size:12px; line-height:1.8; }
.landing-page .preview-body :is(.sc,.ac,.ch,.dl,.pa) { color:#30353d; }
.landing-page .preview-body .sc { font-size:11px; }
.landing-page .preview-body .ch { margin-top:20px; }
.landing-page .preview-body .pa { font-size:11px; }
.script-page-number { position:absolute; right:28px; top:18px; color:#737c89; font-size:11px; }
.studio-caption { display:flex; gap:20px; align-items:center; justify-content:center; font-size:11px; color:var(--muted); padding:5px 24px 35px; }
.studio-caption span:first-child { font-weight:600; color:var(--muted-light); }
.landing-page .features { max-width:1120px; padding:70px 30px 75px; }
.landing-page .features-header { text-align:center; margin-bottom:42px; }
.landing-page .features-header h2 { font:600 clamp(30px,3.5vw,44px)/1.1 var(--ui-font); letter-spacing:-1.8px; }
.landing-page .features-header p { font-size:14px; color:var(--muted); margin-top:18px; }
.landing-page .features-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.landing-page .feature-card { padding:26px; background:var(--glass); border:1px solid var(--glass-edge); border-radius:22px; box-shadow:var(--glass-shadow); }
.landing-page .feature-card:hover { box-shadow:var(--shadow); border-color:var(--stroke); }
.landing-page .feature-icon { width:39px; height:39px; border:1px solid var(--glass-edge); border-radius:12px; background:linear-gradient(145deg,var(--panel),var(--panel-strong)); color:var(--muted-light); box-shadow:inset 0 1px 1px #ffffff50,0 3px 5px #20385508; font-weight:500; font-size:11px; margin-bottom:24px; }
.landing-page .feature-card h3 { font-size:14px; font-weight:600; letter-spacing:-.3px; margin-bottom:9px; }
.landing-page .feature-card p { color:var(--muted); font-size:12px; line-height:1.7; }
.landing-page .cta-strip { border:1px solid var(--glass-edge); background:var(--glass); box-shadow:var(--glass-shadow); border-radius:28px; margin:0; padding:48px 25px; }
.landing-page .cta-strip::before { display:none; }
.landing-page .cta-strip h2 { font:600 32px/1.15 var(--ui-font); letter-spacing:-1.1px; color:var(--text); }
.landing-page .cta-strip p { color:var(--muted); font-size:14px; }
.landing-page .btn-white { background:var(--text); border:0; color:var(--bg); }
.landing-page footer { padding:25px max(30px,5vw); font-size:11px; border-color:var(--stroke-soft); }
.skip-link { position:fixed; z-index:9999; top:8px; left:8px; padding:12px; background:var(--text); color:var(--bg); transform:translateY(-150%); }
.skip-link:focus { transform:none; }
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
 :root,html[data-theme="light"] { --glass:var(--panel); --glass-subtle:var(--panel-muted); }
}
@media(max-width:1100px) { .landing-page .nav { margin-inline:24px; } html .dashboard-shell { grid-template-columns:210px minmax(0,1fr); } .topbar-actions .dashboard-only { font-size:11px; padding-inline:9px; } }
@media(max-width:760px) {
 html .dashboard-shell { grid-template-columns:1fr; }
 html .dashboard-sidebar { display:flex; flex-wrap:wrap; gap:10px; padding:14px 18px; border-right:0; border-bottom:1px solid var(--stroke-soft); }
 html .dashboard-sidebar .sidebar-header,html .dashboard-sidebar .sidebar-block { display:none; }
 html .sidebar-nav { display:flex; flex-wrap:wrap; gap:4px; width:100%; }
 html .sidebar-link { min-height:40px; width:auto; padding:10px; font-size:12px; }
 html .sidebar-utilities { margin:0; width:auto; }
 html .dashboard-panel { padding:26px 18px; }
 html .dashboard-heading { align-items:flex-start; gap:14px; }
 html .dashboard-heading h1 { font-size:36px; }
 html .section-heading { flex-wrap:wrap; }
 html .section-drop-hint { max-width:none; }
 body.dashboard-view-active .topbar { display:flex; flex-wrap:wrap; gap:12px; padding:14px 18px; }
 body.dashboard-view-active .topbar .brand { order:0; margin-right:auto; }
 body.dashboard-view-active .topbar-actions { order:1; width:auto; margin:0; }
 body.dashboard-view-active .topbar-actions .dashboard-only { display:none; }
 .landing-page .nav { margin:12px 14px 0; top:12px; padding:0 12px; height:58px; min-height:58px; }
 .landing-page .nav-links { display:none; }
 .landing-page .nav-brand { font-size:14px; gap:7px; }
 .landing-page .nav .btn { padding:9px 12px; font-size:11px; }
 .landing-page .nav-actions { gap:0; }
 .landing-page .nav-actions .btn-ghost { display:inline-flex; }
 .landing-intro { padding:58px 20px 35px; }
 .landing-page .hero h1 { font-size:clamp(40px,8.5vw,62px); letter-spacing:-2px; }
 .landing-page .hero p { font-size:15px; max-width:340px; }
 .landing-page .hero-badge { margin-bottom:24px; font-size:11px; }
 .landing-page .btn-large { font-size:12px; padding:12px 18px; min-height:46px; }
 .landing-page .preview-wrap { margin-top:40px; }
 .landing-page .preview-wrap::before { inset:-20px 0; filter:blur(20px); }
 .landing-page .preview-card { transform:none; border-radius:18px; }
 .landing-page .preview-topbar { padding:15px 13px; }
 .landing-page .preview-title { margin-left:8px; font-size:9px; }
 .preview-save { font-size:9px; }
 .landing-page .product-flow { margin-bottom:12px; max-width:calc(100% - 20px); }
 .landing-page .flow-step { padding:7px 12px; font-size:9px; }
 .landing-page .preview-body { margin:0 14px; min-height:295px; padding:40px 20px 26px; font-size:10px; }
 .landing-page .preview-body .sc { font-size:9px; }
 .landing-page .preview-body .pa { font-size:9px; }
 .landing-page .preview-body .dl { max-width:75%; }
 .studio-caption { flex-direction:column; gap:6px; font-size:10px; padding-bottom:0; }
 .landing-page .features { padding:55px 20px; }
 .landing-page .features-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .landing-page .feature-card { padding:20px; }
 .landing-page .features-header h2 { letter-spacing:-1px; }
 .landing-page .cta-strip h2 { font-size:28px; }
 .landing-page footer { flex-direction:column; align-items:flex-start; gap:10px; font-size:10px; }
}
@media(max-width:430px) {
 .landing-page .features-grid { grid-template-columns:1fr; }
 .landing-page .feature-card { display:grid; grid-template-columns:40px 1fr; column-gap:15px; }
 .landing-page .feature-icon { grid-row:1/3; margin:0; }
 .landing-page .feature-card h3,.landing-page .feature-card p { grid-column:2; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none!important; transition:none!important; } }
@media(prefers-reduced-transparency:reduce) { :root,html[data-theme="light"] { --glass:var(--panel); --glass-subtle:var(--panel-muted); } }
/* Keep the working surface visible within the first desktop viewport. */
@media(min-width:761px) {
 .landing-intro { padding-top:52px; }
 .landing-page .hero h1 { font-size:clamp(44px,5.2vw,68px); }
 .landing-page .hero-badge { margin-bottom:20px; }
 .landing-page .hero p { margin-bottom:22px; }
 .landing-page .preview-wrap { margin-top:40px; }
}
html .auth-kicker { color:var(--muted); text-transform:none; letter-spacing:0; font-weight:500; }
html body::before { pointer-events:none; }
body:has(.auth-card)::before { background:radial-gradient(ellipse at 75% 45%,#8bafe51a,transparent 55%); mask-image:none; -webkit-mask-image:none; }
/* Screenplay pagination: editable blocks remain continuous; PDF spans are explicit. */
.block-page-range { display:block; width:fit-content; margin:6px 0 2px; padding:3px 7px; border-radius:6px; background:var(--accent-soft); color:var(--muted-light); font:500 11px/1.4 var(--ui-font); pointer-events:none; }
.mobile-export-button,.mobile-editor-controls { display:none; }
.script-search { position:fixed; right:18px; top:100px; z-index:170; width:min(410px,calc(100vw - 24px)); padding:10px; background:var(--panel); border:1px solid var(--stroke); border-radius:16px; box-shadow:var(--shadow); }
.script-search-row { display:flex; align-items:center; gap:5px; }
.script-search input { flex:1; min-width:0; width:0; font:16px/1.4 var(--ui-font); padding:8px; }
.script-search button { flex-shrink:0; width:38px; height:40px; padding:0; border:0; border-radius:9px; background:var(--panel-strong); color:var(--text); font-size:20px; cursor:pointer; }
.script-search button:disabled { opacity:.35; cursor:default; }
.script-search output { display:block; margin:6px 4px 0; color:var(--muted-light); font:12px/1.4 var(--ui-font); }
.editor-field-shell { position:relative; }
.script-search-highlight { position:absolute; z-index:5; box-sizing:border-box; border-style:solid; border-color:transparent; overflow:hidden; overflow-wrap:break-word; color:transparent; pointer-events:none; }
.script-search-highlight mark { background:rgba(255,185,40,.42); color:transparent; border-radius:2px; box-shadow:0 0 0 1px rgba(255,185,40,.7); }
#findInScript { justify-content:space-between; }
#findInScript span { font-size:10px; opacity:.65; }
@media(max-width:760px) { .script-search { right:12px; } .script-search button { width:40px; height:44px; } }
.export-pdf-status { flex-shrink:0; padding:0 20px; margin:10px 0; color:var(--muted-light); font-size:13px; line-height:1.5; }
.export-pdf-status:empty { display:none; }
.export-pdf-result { display:flex; flex-shrink:0; gap:8px; padding:0 20px 12px; flex-wrap:wrap; }
.export-pdf-result a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; text-decoration:none; }
#exportModal .export-modal-body { min-height:0; }
#exportModal .export-modal-footer { flex-shrink:0; }
@media(max-width:760px) {
 body.editor-view .topbar { display:grid; grid-template-columns:1fr; grid-template-rows:auto auto; gap:8px; padding:8px 10px; overflow:visible; }
 body.editor-view .topbar > .brand,body.editor-view .editor-breadcrumb { display:none; }
 body.editor-view .topbar-actions { grid-column:1; grid-row:1; width:100%; max-width:none; overflow:visible; justify-self:stretch; justify-content:flex-end; align-items:center; gap:6px; }
 body.editor-view .editor-tools { order:-1; flex:1; justify-content:space-between; gap:6px; }
 body.editor-view .editor-primary-nav { gap:4px; }
 body.editor-view .topbar-center,body.editor-view .focus-project-title { grid-column:1; grid-row:2; }
 body.editor-view .editor-switchers { gap:6px; }
 body.editor-view .topbar .inline-select select { min-width:0; height:38px; font-size:13px; }
 body.editor-view #saveStatus,body.editor-view .editor-history-controls,body.editor-view #focusToggle,body.editor-view .topbar-divider,body.editor-view .topbar-stats { display:none; }
 body.editor-view .topbar :is(button,.ghost-button) { min-height:44px; }
 body.editor-view .mobile-export-button { display:inline-flex; align-items:center; font-size:13px; padding:0 12px; color:var(--accent); }
 body.editor-view #backToProjects { font-size:12px; padding:0 8px; }
 body.editor-view #editorMenuBtn { width:38px; }
 body.editor-view .editor-menu-dropdown { right:0; max-height:calc(100dvh - 145px); overflow-y:auto; }
 body.editor-view .workspace-view { padding:8px 4px 100px; }
 body.editor-view .editor-card { padding:8px 0 0; border-radius:12px; }
 body.editor-view .editor-card > .card-heading { padding:0 10px 8px; }
 body.editor-view .editor-sprint-inline { display:none; }
 body.editor-view .draft-sheet,body.editor-view.focus-mode .draft-sheet { padding:10px 6px; border-radius:12px; width:100%; }
 body.editor-view .free-draft-editor { padding:8px 10px 100px; }
 body.editor-view .draft-block-input,body.editor-view .block-text { font-size:16px; line-height:1.6; scroll-margin-top:160px; scroll-margin-bottom:110px; }
 body.editor-view .draft-block[data-type="dialogue"] { width:92%; margin-left:4%; }
 body.editor-view .draft-block[data-type="character"] { width:75%; margin-left:22%; }
 body.editor-view .draft-block[data-type="parenthetical"] { width:82%; margin-left:12%; }
 body.editor-view .draft-block[data-type="transition"] { width:90%; }
 body.editor-view .draft-block .draft-block-gutter { display:none; }
 body.editor-view .script-block .spell-overlay { display:none; }
 body.editor-view .block-text.has-spell-overlay.spell-overlay-active { color:var(--text); -webkit-text-fill-color:currentColor; }
 body.editor-view .mobile-editor-controls { position:fixed; display:flex; align-items:center; gap:8px; left:10px; right:10px; bottom:calc(var(--keyboard-inset,0px) + max(8px,env(safe-area-inset-bottom))); z-index:150; padding:6px 10px; background:var(--panel); border:1px solid var(--stroke); border-radius:16px; box-shadow:var(--shadow); }
 .mobile-editor-controls label { display:flex; align-items:center; flex:1; min-width:0; gap:8px; font-size:12px; color:var(--muted); }
 .mobile-editor-controls select { width:100%; min-width:0; height:44px; font-size:16px; padding:0 8px; }
 .mobile-editor-controls button { min-height:44px; padding:0 12px; font-size:13px; flex-shrink:0; }
 #exportBackdrop { top:var(--visual-viewport-top,0px); bottom:auto; height:var(--visual-viewport-height,100dvh); padding:8px; z-index:1500; }
 #exportModal { width:100%; max-height:100%; border-radius:20px; }
 #exportModal .export-modal-header,#exportModal .export-modal-footer { padding:10px 14px; }
 #exportModal .export-field-row { padding:9px 14px; gap:10px; flex-wrap:wrap; }
 #exportModal :is(input,textarea,select) { font-size:16px; min-width:0; max-width:100%; }
 #exportModal :is(button,.ghost-button) { min-height:44px; }
 #exportModal .export-filename-row { min-width:0; flex:1; }
 #exportModal .export-filename-input { width:0; flex:1 1 0; }
 #exportModal .export-toggle { min-height:28px; height:28px; width:46px; }
 #exportModal .export-toggle-thumb { width:22px; height:22px; top:3px; left:3px; }
 #exportModal .export-toggle.is-on .export-toggle-thumb { transform:translateX(18px); }
 #exportModal .export-field-label { flex:1 1 110px; }
 #exportModal .export-modal-footer { padding-bottom:max(10px,env(safe-area-inset-bottom)); }
}

/* Evidence and reading coverage in screenplay evaluations. */
.contest-methodology {
  padding: 1rem;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.contest-methodology summary, .contest-evidence summary {
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}
.contest-methodology p:last-child, .contest-evidence p:last-child { margin-bottom: 0; }
.contest-evidence { margin-top: .65rem; overflow-wrap: anywhere; }
.contest-evidence blockquote {
  margin: .5rem 0;
  padding: .5rem .8rem;
  border-left: 2px solid var(--stroke);
  color: var(--text);
  white-space: pre-wrap;
}
.contest-report-section li > span:first-child { min-width: 0; }
