.blank-intro { padding: 28px 0 20px; }
.blank-intro h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 38px); line-height: 1.2; }
.blank-intro p { margin: 0; max-width: 760px; color: var(--text-secondary); }
.blank-workspace { margin-bottom: 48px; }
.blank-paper { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: hidden; }
.blank-paper-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--border); }
.blank-paper-head label { font-size: 13px; font-weight: 700; }
.blank-paper-head .btn { padding: 8px 12px; width: auto; flex-shrink: 0; }
#blankEditor { display: block; width: 100%; height: clamp(340px, 49vh, 620px); min-height: 280px; resize: vertical; border: 0; border-radius: 0; padding: 28px max(24px, calc((100% - 78ch) / 2)); background: var(--surface); color: var(--text-primary); font-size: 18px; line-height: 1.8; caret-color: currentColor; tab-size: 4; }
#blankEditor::placeholder { color: var(--text-secondary); opacity: 1; }
#blankEditor:focus-visible { outline-offset: -3px; }
#blankEditor[data-size="small"] { font-size: 16px; }
#blankEditor[data-size="large"] { font-size: 22px; }
#blankEditor[data-spacing="compact"] { line-height: 1.5; }
#blankEditor[data-spacing="relaxed"] { line-height: 2.2; }
#blankEditor[data-theme="light"] { background: #fff; color: #172033; color-scheme: light; }
#blankEditor[data-theme="dark"] { background: #152033; color: #edf2fa; color-scheme: dark; }
#blankEditor[data-theme="warm"] { background: #fcf5e8; color: #44372b; color-scheme: light; }
#blankEditor[data-theme="light"]::placeholder { color: #566174; }
#blankEditor[data-theme="dark"]::placeholder { color: #b7c4d9; }
#blankEditor[data-theme="warm"]::placeholder { color: #73614b; }
.blank-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 16px; gap: 12px; border-top: 1px solid var(--border); background: var(--surface-secondary); }
.blank-stats div { display: flex; flex-direction: column-reverse; text-align: center; min-width: 0; }
.blank-stats dt { font-size: 11px; color: var(--text-secondary); }
.blank-stats dd { margin: 0; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.blank-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.blank-actions .btn { width: auto; }
.blank-save-row { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; margin: 12px 0; font-size: 13px; color: var(--text-secondary); }
.blank-save-row p { margin: 0; }
.blank-status { min-height: 1.6em; margin: 8px 0; font-size: 13px; color: var(--text-secondary); }
.blank-options { padding: 0 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.blank-options > summary { padding: 14px 0; min-height: 48px; font-size: 14px; font-weight: 600; cursor: pointer; }
.blank-option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: 20px; }
.blank-options label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.blank-options select, .blank-options input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text-primary); font-size: 16px; }
.blank-session-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--border); padding: 20px 0; }
.blank-session-grid fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.blank-session-grid legend { font-weight: 700; padding: 0; margin-bottom: 12px; }
.blank-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.blank-timer-readout { display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.blank-session-grid progress { width: 100%; height: 8px; accent-color: var(--primary); }
.blank-goal-progress { margin: 8px 0 4px; font-size: 13px; min-height: 21px; }
.blank-toc { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-secondary); }
.blank-toc h2 { margin: 0 0 12px; font-size: 20px; }
.blank-toc ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; padding-left: 20px; margin-bottom: 0; }
.blank-article { padding: 48px 0; background: var(--surface); }
.blank-article section { margin-top: 44px; }
.blank-article h2 { font-size: 27px; line-height: 1.3; margin: 0 0 18px; scroll-margin-top: 95px; }
.blank-article h3 { margin: 26px 0 10px; font-size: 19px; }
.blank-article p, .blank-article li { color: var(--text-secondary); line-height: 1.85; }
.blank-article li { margin-bottom: 10px; }
.blank-table-wrap { overflow-x: auto; }
.blank-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.blank-table caption { text-align: left; font-weight: 600; padding: 10px 0; }
.blank-table th, .blank-table td { border: 1px solid var(--border); padding: 12px; text-align: left; vertical-align: top; }
.blank-table th { background: var(--surface-secondary); }
.blank-callout { border-left: 3px solid var(--primary); background: var(--surface-secondary); padding: 16px 20px; }
.blank-related { padding: 48px 0; }
.blank-related h2 { margin-top: 0; }
.blank-related .feature-card::before { display: none; }
.blank-related .feature-card h3 a { text-decoration: underline; text-underline-offset: 3px; }
.blank-print { display: none; }
.blank-focus > .site-header, .blank-focus > .site-footer, .blank-focus .blank-intro, .blank-focus .blank-article, .blank-focus .blank-related { display: none; }
.blank-focus .blank-workspace { padding-top: 12px; margin-bottom: 12px; }
.blank-focus #blankEditor { height: 65vh; height: 65dvh; }
.blank-page [hidden] { display: none !important; }
@media (max-width: 768px) {
    .blank-intro { padding-top: 20px; }
    .blank-intro p { font-size: 14px; }
    .blank-paper-head { padding: 8px 12px; }
    #blankEditor { padding: 20px; height: 43vh; min-height: 300px; font-size: 17px; }
    .blank-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px 8px; }
    .blank-session-grid { grid-template-columns: 1fr; }
    .blank-toc ul { grid-template-columns: 1fr; }
    .blank-article h2 { font-size: 24px; }
}
@media (max-width: 480px) {
    .blank-actions .btn { flex: 1 1 auto; padding-inline: 12px; }
    .blank-option-grid { grid-template-columns: 1fr; gap: 12px; }
    .blank-stats dd { font-size: 16px; }
    .blank-table th, .blank-table td { padding: 8px; overflow-wrap: anywhere; }
}
@media print {
    @page { margin: 20mm; }
    html, body.blank-page { background: #fff !important; color: #000 !important; }
    body.blank-page > * { display: none !important; }
    body.blank-page > .blank-print { display: block !important; margin: 0; padding: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 12pt/1.6 Arial, sans-serif; color: #000 !important; background: #fff !important; orphans: 3; widows: 3; }
}
