.page-heading { padding: 40px 0 56px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.page-heading h1, .admin-heading h1 { margin: 0 0 20px; font-size: clamp(2rem,5vw,4rem); line-height: 1.2; letter-spacing: -.04em; word-break: keep-all; }
.lead,.reading { font-size: 1rem; line-height: 1.85; }
.reading { max-width: 780px; }
.reading h2 { margin-top: 44px; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.85; }
.empty-state { padding: 28px 0; color: var(--muted); line-height: 1.7; }
.notice { border-left: 3px solid var(--ink); padding: 18px; background: var(--soft); line-height: 1.6; }
.editor { display: grid; gap: 22px; margin: 28px 0 64px; }
.editor label,.account-panel>label,.filter label { display: grid; gap: 10px; font-size: .875rem; }
.editor input,.editor textarea,.editor select,.account-panel input,.filter select { width: 100%; min-height: 46px; padding: 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 0; font-size: 1rem; }
.editor textarea { resize: vertical; }
.editor .button { justify-self: start; }
.editor input[type=checkbox],.composer input[type=checkbox] { width: 18px; min-height: 18px; height: 18px; flex: 0 0 auto; }
.editor .check,.composer .check { display: flex; align-items: start; gap: 12px; line-height: 1.6; }
.editor fieldset { border: 1px solid var(--line); padding: 20px; }
.editor fieldset label { margin-top: 14px; }
.field-hint { margin: -12px 0 0; font-size: .875rem; color: var(--muted); line-height: 1.6; }
.account-panel { max-width: 480px; margin: 56px auto; }
.account-panel h1 { font-size: 2.7rem; line-height: 1.2; }
.record { padding: 24px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.record h3 { margin-top: 0; }
.record small { display: block; color: var(--muted); margin-bottom: 18px; }
.record summary,details summary { cursor: pointer; padding: 14px 0; line-height: 1.6; }
.source-box a,.context-panel a { overflow-wrap: anywhere; }
.text-button { cursor: pointer; padding: 11px 0; border: 0; background: transparent; font-size: inherit; }
.site-header nav { align-items: center; flex-wrap: wrap; gap: 20px; }
.site-header nav form { margin: 0; }
.app-footer { display: flex; justify-content: space-between; gap: 20px; margin: 0 24px; border-top: 1px solid var(--line); padding: 28px 0; font-size: .875rem; }
.filter { display: flex; align-items: end; gap: 16px; padding: 32px 0; }
.admin-heading { display: flex; justify-content: space-between; align-items: end; padding: 28px 0; }
.admin-tabs,.filters { display: flex; flex-wrap: wrap; gap: 22px; margin: 0 0 36px; }
.admin-tabs a,.filters a { padding: 10px 0; text-underline-offset: 8px; }
.filters [aria-current] { font-weight: bold; }
.moderation-card { padding: 28px; margin-bottom: 20px; border: 1px solid var(--line); background: var(--surface); }
.moderation-card h3 { font-size: 1.4rem; }
.compact { margin-bottom: 0; }
.management-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
.management-grid p { line-height: 1.7; }
.milestones { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); margin:32px 0; }
.milestones article { display:grid; gap:12px; padding:22px; background:var(--surface); }
.milestones small { color:var(--muted); }
.stage-editor { display:grid; grid-template-columns:80px 1fr 1fr 1fr; gap:16px; align-items:end; padding:20px 0; border-bottom:1px solid var(--line); }
.form-errors { padding:18px; margin:0 24px; border:2px solid var(--ink); line-height:1.65; }
.form-errors:empty { display:none; }
.pagination { display:flex; align-items:center; gap:18px; margin:24px 0; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .875rem; }
th,td { text-align: left; border-bottom: 1px solid var(--line); padding: 14px; }
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.preview-panel { margin: 0 24px; padding: 18px; border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.topic-hero h1,.discussion-hero h1,.post-article h1 { line-height: 1.15; }
.topic-copy h3 { line-height: 1.2; }
button:disabled { opacity: .6; cursor: wait; }
section[id],article[id] { scroll-margin-top: 100px; }
@media(max-width: 940px) { .management-grid { grid-template-columns: 1fr; } }
@media(max-width: 700px) { .site-header nav { flex-wrap: nowrap; } .filter { flex-wrap: wrap; } .admin-heading { display: block; } .moderation-card { padding: 18px; } .app-footer { flex-wrap: wrap; } .stage-editor { grid-template-columns:1fr 1fr; } .milestones { grid-template-columns:1fr; } }
