:root{color-scheme:light;--paper:#f6f2eb;--card:#fffdf8;--ink:#292520;--muted:#827b72;--line:#ddd6cb;--accent:#8b3f4a;--row:36px}

*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:13px/1.5 Manrope,system-ui,sans-serif}a{color:inherit}button,select,textarea{font:inherit}button,a,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent)}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}[hidden]{display:none!important}
.check-shell{max-width:1600px;margin:auto;padding:28px 30px 22px}.check-intro{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:25px}.eyebrow{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:1.2px;color:var(--accent);margin:0 0 7px}h1,h2,h3,p{margin-top:0}h1{font:650 clamp(26px,2.6vw,36px)/1.2 'Source Serif 4',Georgia,serif;letter-spacing:-.7px;margin-bottom:9px}.lede{max-width:790px;color:#756e65;line-height:1.7;font-size:12px;margin-bottom:0}.sample-button{flex-shrink:0;padding:10px 14px;border:1px solid #cfc5b7;border-radius:7px;background:transparent;color:var(--accent);font-weight:700;font-size:11px}.sample-button:hover{background:#ede6db}
.workspace-layout{display:grid;grid-template-columns:164px minmax(0,1fr) 260px;gap:18px;align-items:start}.library-panel{padding:14px 0;min-height:500px;display:flex;flex-direction:column}.sidebar-label{padding-left:10px;text-transform:uppercase;letter-spacing:1px;font-size:9px;font-weight:800;color:var(--muted);margin-bottom:16px}.active-document{padding:12px 10px;border:1px solid #d7c8ba;border-radius:7px;background:#ece5da;display:flex;gap:9px;align-items:center}.active-document svg{width:18px;height:22px;stroke:var(--accent);fill:none;stroke-width:1.4;flex-shrink:0}.active-document strong{display:block;font-size:11px;font-weight:750}.active-document small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.sidebar-note{display:flex;align-items:flex-start;gap:7px;margin:17px 10px;font-size:10px;color:var(--muted);line-height:1.6}.live-dot{width:6px;height:6px;border-radius:50%;background:#76906f;flex-shrink:0;margin-top:5px}.sidebar-bottom{margin-top:auto;padding:34px 10px 0;font-size:10px;color:var(--muted)}.sidebar-bottom p{margin-bottom:5px}.sidebar-bottom a{color:var(--accent);text-underline-offset:3px}
.writing-workspace{min-width:0}.editor-card,.rhythm-card,.results,.continue-card{border:1px solid var(--line);border-radius:9px;background:var(--card)}.editor-card{box-shadow:0 12px 40px #3730270a;overflow:hidden}.editor-title-row{padding:16px 18px 12px;display:flex;justify-content:space-between;align-items:center;gap:12px}.editor-title-row h2{font:650 19px 'Source Serif 4',Georgia,serif;margin:0}.draft-state{font-size:9px;color:var(--muted);white-space:nowrap}.editor-toolbar{display:flex;align-items:flex-end;gap:9px;padding:0 18px 16px;border-bottom:1px solid #e9e4da;flex-wrap:wrap}.field{min-width:0;flex:1}.field label{display:block;font-size:9px;color:var(--muted);font-weight:650;margin-bottom:5px}.field select{height:34px;padding:5px 24px 5px 8px;border:1px solid #cec8bd;border-radius:6px;background:#f8f5ef;color:var(--ink);font-size:10px;max-width:100%;width:100%}.editor-toolbar button{height:34px;white-space:nowrap;padding:6px 11px;border:1px solid var(--accent);border-radius:6px;background:var(--accent);color:#fff;font-size:10px;font-weight:750}.editor-toolbar .stress-button{background:#3e403b;border-color:#3e403b}.stress-button>span:first-child{margin-right:4px;font-family:Georgia,serif;font-size:14px}
.surface-caption{display:grid;grid-template-columns:minmax(0,1fr) 240px;padding:10px 18px 0;color:var(--muted);font-size:9px}.surface-caption>span{padding-left:12px}.editor-surface{display:grid;grid-template-columns:minmax(0,1fr) 240px;margin:6px 18px 0;border:1px solid #d9d3c8;border-radius:7px;background:#fffefa;overflow:hidden;box-shadow:inset 0 1px 4px #3e342a06}.writing-pane{position:relative;min-width:0;background:linear-gradient(90deg,transparent 0,transparent 62px,#8b3f4a12 62px,#8b3f4a12 63px,transparent 63px)}#poemText{display:block;width:100%;height:452px;border:0;background:transparent;resize:none;padding:20px 14px 20px 75px;line-height:var(--row);font-family:'Fira Code',monospace;font-size:16px;color:#37322d;caret-color:var(--accent);tab-size:2;outline-offset:-3px;white-space:pre}#poemText::placeholder{color:#b5aca0;font-family:Manrope,system-ui,sans-serif;font-size:12px}.gutter-clip{position:absolute;top:20px;bottom:20px;left:5px;width:55px;overflow:hidden;pointer-events:none}#gutterRows{will-change:transform}.gutter-line{height:var(--row);display:flex;align-items:center;justify-content:flex-end;gap:5px;font-family:'Fira Code',monospace}.gutter-line-number{color:#aaa39a;font-size:9px;font-variant-numeric:tabular-nums}.gutter-syllables{display:inline-grid;place-items:center;min-width:22px;height:19px;padding:0 4px;border:1px solid #cec8be;border-radius:999px;background:#f5f2ec;color:#49453f;font:650 9px 'Fira Code',monospace}.rhythm-valid .gutter-syllables,.gutter-syllables.rhythm-valid{border-color:#a9b9a7;background:#f1f5ef}.rhythm-invalid .gutter-syllables{border-color:#c9aa7a;background:#f8f1e7}.inline-analysis{padding:20px 10px;height:452px;overflow:auto;border-left:1px solid #eee8de;background:#faf8f2;scrollbar-width:thin}.inline-line{height:var(--row);display:flex;align-items:center;gap:7px;overflow:hidden;white-space:nowrap}.vowel-strip{display:inline-flex;align-items:center;gap:3px;flex-shrink:0}.vowel-token{display:inline-grid;place-items:center;min-width:16px;height:20px;padding:0 3px;border:1px solid #ddd7cd;border-radius:4px;background:#fffefa;color:#7c756b;font:11px 'Fira Code',monospace}.vowel-token.stressed{border-color:var(--accent);background:var(--accent);color:white}.line-scansion{font:9px 'Fira Code',monospace;color:#9c8b79}.inline-placeholder{font-size:9px;color:#b1a89c;white-space:normal;line-height:1.7}.editor-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 18px}.status{font-size:10px;color:#65775f;min-height:15px;margin:0}.status.error{color:#a43240}.editor-bottom>small{font-size:9px;color:var(--muted)}.editor-legend{display:flex;align-items:center;gap:8px;padding:10px 18px;border-top:1px solid #eee9e0;background:#faf7f1;color:var(--muted);font-size:9px}
.inspector{display:grid;gap:14px}.results{padding:17px}.results h2{font:650 18px 'Source Serif 4',Georgia,serif;margin-bottom:14px}.meter-metric{padding-bottom:15px;border-bottom:1px solid #eee8de}.meter-metric small,.metric small{display:block;color:var(--muted);font-size:10px;margin-bottom:5px}.meter-metric strong{font-size:13px;font-weight:700}.summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:13px 0}.metric strong{font-size:21px;font-weight:650}.result-section{border-top:1px solid #eee8de;padding-top:13px}.result-section h3{font-size:11px;margin-bottom:7px}.repeat-list{list-style:none;padding:0;margin:0}.repeat-list li{display:flex;justify-content:space-between;padding:5px 0;font-size:11px}.repeat-list li>span:last-child{color:var(--muted)}.empty{color:var(--muted);font-size:11px}.continue-card{padding:20px;background:#eee6dc;border-color:#d5c5b5}.continue-card h2{font:650 25px/1.2 'Source Serif 4',Georgia,serif;letter-spacing:-.4px;margin:10px 0}.continue-card>p{font-size:11px;line-height:1.8;color:#756758;margin-bottom:17px}.continue-button{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border-radius:6px;text-decoration:none;background:var(--accent);color:white;font-size:11px;font-weight:750}.continue-button:hover{background:#71343e}.continue-card .access-note{font-size:9px;line-height:1.6;color:#8b7d6f;margin:12px 0 0}.feature-links{display:grid;gap:3px}.feature-links>a{display:flex;align-items:center;gap:10px;text-decoration:none;padding:11px 4px;border-bottom:1px solid #e4dcd0}.feature-links>a:hover{color:var(--accent)}.feature-links>a>span:last-child{margin-left:auto;color:#a59786}.feature-icon{display:grid;place-items:center;flex:0 0 30px;height:30px;background:#eae3d8;border-radius:6px;font-size:12px;color:#8a6c57}.feature-links strong{display:block;font-size:11px}.feature-links small{display:block;font-size:9px;color:var(--muted);margin-top:3px}
.rhythm-card{margin-top:16px;overflow:hidden}.section-heading{padding:13px 18px;border-bottom:1px solid #eee8de;display:flex;justify-content:space-between;align-items:center;gap:15px}.section-heading h2{font:650 18px 'Source Serif 4',Georgia,serif;margin:0}.section-heading>span{font-size:9px;color:var(--muted)}.rhythm-list{padding:0;margin:0;list-style:none}.rhythm-list>li{padding:12px 18px;border-bottom:1px solid #eee8de}.rhythm-list>li:last-child{border:0}.rhythm-row-head{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;margin-bottom:7px}.line-label{display:flex;align-items:center;gap:10px;color:var(--muted)}.syllable-count{font-size:10px}.rhythm-status{color:#81786b;font-size:9px;text-align:right}.line-quote{display:block;border:0;background:none;color:var(--ink);padding:0;margin:0 0 8px;max-width:100%;text-align:left;overflow-wrap:anywhere;font:12px/1.6 'Fira Code',monospace}.line-quote:hover{color:var(--accent)}.rhythm-visual{display:grid;grid-template-columns:minmax(0,1fr) 150px;align-items:center;gap:16px}.rhythm-visual>.vowel-strip{max-width:100%;overflow-x:auto;padding-bottom:3px}.rhythm-chart{width:100%;height:34px;display:block;overflow:visible}.rhythm-axis{stroke:#e3dbd0;stroke-width:1}.rhythm-path{fill:none;stroke:#a28169;stroke-width:1.4}.rhythm-point{fill:#fffdf8;stroke:#a28169;stroke-width:1.3}.rhythm-point.stressed{fill:var(--accent);stroke:var(--accent)}.check-footer{display:flex;justify-content:space-between;font-size:9px;color:#9c9184;margin-top:24px}.check-footer a{text-underline-offset:3px}
@media(min-width:1500px){.editor-surface,.surface-caption{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:1200px){.workspace-layout{grid-template-columns:minmax(0,1fr) 250px}.library-panel{display:none}.editor-toolbar{gap:8px}.draft-state{font-size:8px}}
@media(max-width:860px){.workspace-layout{grid-template-columns:minmax(0,1fr)}.inspector{grid-template-columns:1fr 1fr;align-items:start}.feature-links{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))}.continue-card{grid-column:2}.inspector>.continue-card:first-child{grid-column:1/-1}.feature-links>a{min-width:0}.feature-links small{font-size:8px}.check-head{padding:14px 20px}.check-shell{padding:24px 20px}.check-intro{gap:18px}.lede{max-width:550px}}
@media(max-width:600px){.check-shell{padding:22px 12px}.check-intro{display:block;margin:0 4px 18px}h1{font-size:30px}.lede{font-size:11px}.sample-button{margin-top:14px}.editor-title-row{padding:14px 12px 10px;display:block}.editor-title-row h2{font-size:19px}.draft-state{display:block;margin-top:3px;font-size:9px}.editor-toolbar{padding:0 12px 12px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.field select{font-size:11px;height:37px}.editor-toolbar button{font-size:11px;height:37px}.surface-caption{display:block;padding:10px 12px 0}.surface-caption>span{display:none}.editor-surface{display:block;margin:6px 10px 0}.inline-analysis{display:none}#poemText{height:400px;font-size:14px;padding-left:66px}.writing-pane{background:linear-gradient(90deg,transparent 0,transparent 54px,#8b3f4a12 54px,#8b3f4a12 55px,transparent 55px)}.gutter-clip{width:49px;left:2px}.editor-bottom{display:block;padding:10px 12px}.editor-bottom>small{display:block;margin-top:6px;line-height:1.6}.editor-legend{font-size:9px;padding:10px 12px;align-items:flex-start}.editor-legend>.gutter-syllables{flex-shrink:0}.section-heading{display:block;padding:13px 12px}.section-heading h2{font-size:19px}.section-heading>span{display:block;margin-top:4px}.rhythm-list>li{padding:12px}.rhythm-visual{grid-template-columns:minmax(0,1fr) 95px;gap:10px}.rhythm-status{max-width:45%}.line-label{gap:6px;flex-wrap:wrap}.inspector{display:block}.inspector>*{margin-top:15px}.results{padding:17px}.continue-card{padding:22px}.feature-links{display:grid;grid-template-columns:1fr}.feature-links>a{padding:10px 5px}.feature-links small{font-size:10px}.feature-links strong{font-size:12px}.feature-icon{flex-basis:34px;height:34px}.continue-card h2{font-size:29px}.continue-card>p{font-size:12px}.continue-button{font-size:12px}.check-footer{gap:14px;line-height:1.6}.check-footer>span{max-width:80%}}
.stress-help{margin:0;padding:10px 18px 14px;color:var(--muted);font-size:10px;line-height:1.7}.vowel-token:is(button):hover{border-color:var(--accent);box-shadow:0 0 0 2px #8b3f4a24}.vowel-token:is(button):focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Keep the manuscript grid intact under the shared public-page foundation. */
body:has(.check-shell) #pf-site-notice { position:relative!important;inset:auto!important }
#pf-public-header ~ .check-shell { --card:var(--paper) }
#pf-public-header ~ .check-shell #poemText { border:0;border-radius:0;background:transparent;color:var(--ink);font:16px/var(--row) 'Fira Code',monospace }
#pf-public-header ~ .check-shell #checkForm select { font:10px/normal Manrope,system-ui,sans-serif }
.editor-surface { background:var(--paper);border-color:var(--line) }
.inline-analysis,.editor-legend { background:var(--soft);border-color:var(--line) }
:root[data-theme=dark] .check-shell :is(.editor-toolbar,.meter-metric,.result-section,.feature-links>a,.section-heading,.rhythm-list>li) { border-color:var(--line) }
:root[data-theme=dark] .check-shell :is(.active-document,.continue-card,.feature-icon) { background:var(--soft);border-color:var(--line) }
:root[data-theme=dark] .check-shell :is(.lede,.continue-card>p,.continue-card .access-note,.feature-icon,.rhythm-status,.line-scansion,.inline-placeholder) { color:var(--muted) }
:root[data-theme=dark] .check-shell .sample-button { border-color:var(--line) }
:root[data-theme=dark] .check-shell .sample-button:hover { background:var(--soft) }
:root[data-theme=dark] .check-shell .vowel-token { background:var(--paper);border-color:var(--line);color:var(--ink) }
:root[data-theme=dark] .check-shell .vowel-token.stressed { background:var(--accent);border-color:var(--accent);color:#171815 }
:root[data-theme=dark] .check-shell :is(.continue-button,.editor-toolbar button:not(.stress-button)) { background:var(--accent);color:#171815 }
:root[data-theme=dark] .check-shell .status { color:var(--good) }
:root[data-theme=dark] .check-shell .status.error { color:#ff9eac }
:root[data-theme=dark] .check-shell .gutter-syllables { background:var(--soft);border-color:var(--line);color:var(--ink) }
:root[data-theme=dark] .check-shell .rhythm-valid .gutter-syllables { border-color:#709474 }
:root[data-theme=dark] .check-shell .rhythm-invalid .gutter-syllables { border-color:#b49b6f }
:root[data-theme=dark] .check-shell .rhythm-axis { stroke:var(--line) }
:root[data-theme=dark] .check-shell .rhythm-point:not(.stressed) { fill:var(--paper) }
@media(max-width:600px){#pf-public-header ~ .check-shell #poemText{font-size:14px}#pf-public-header ~ .check-shell #checkForm select{font-size:11px}}

/* The manuscript uses the full surface; the rhythm pattern opens separately. */
body.rhythm-wide-layout .editor-surface{display:block}body.rhythm-wide-layout .inline-analysis{display:none}.surface-caption{display:flex;align-items:center;justify-content:space-between;gap:12px}
.surface-caption .rhythm-dialog-trigger{padding:6px 9px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--accent);font:650 11px Manrope,system-ui,sans-serif;cursor:pointer}
body.rhythm-wide-layout #poemText{overflow-x:hidden;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal}
body.rhythm-wide-layout #gutterRows{position:relative}body.rhythm-wide-layout .gutter-line{position:absolute;width:100%}.rhythm-list>li{min-width:0}.rhythm-visual{min-width:0}
