:root { --ink: #000; --muted: #8d8d8d; --soft: #4e4e4e; --line: #cfcfcf; --frame: 1024px; }

@font-face { font-family: 'Chronos Roboto'; src: url('/fonts/chronos-roboto-light.ttf') format('truetype'); font-style: normal; font-weight: 300; font-display: swap; }
@font-face { font-family: 'Chronos Roboto'; src: url('/fonts/chronos-roboto-regular.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Chronos Roboto'; src: url('/fonts/chronos-roboto-medium.ttf') format('truetype'); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: 'Chronos Roboto'; src: url('/fonts/chronos-roboto-medium.ttf') format('truetype'); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: 'Chronos Roboto'; src: url('/fonts/chronos-roboto-bold.ttf') format('truetype'); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: 'Chronos Roboto'; src: url('/fonts/chronos-roboto-italic.ttf') format('truetype'); font-style: italic; font-weight: 400; font-display: swap; }

body.history-document { overflow-x: hidden; background: #fff; color: var(--ink); font-family: 'Chronos Roboto', Arial, sans-serif; font-size: 16px; }
.history-topline { height: 25px; background: #000; margin-top: -12px; }
.history-page { width: min(var(--frame), calc(100% - 40px)); margin: 0 auto; padding: 43px 0 0; }
.history-shell { width: 100%; }
.site-header { height: 117px; display: flex; align-items: flex-start; justify-content: space-between; padding-top: 0; }
.brand { display: block; width: 184.64px; height: 54.67px; line-height: 0; }
.brand img { display: block; width: 184.64px; height: 54.67px; }
.site-header p { width: 413px; margin: 0; padding-top: 9px; color: #5e5e5e; font-size: 16px; line-height: 1.2; }
.history-category-nav { margin-bottom: 30px; }
.history-category-nav a { color: #000; font: 700 12px/1.2 'Chronos Roboto', Arial, sans-serif; letter-spacing: .08em; text-decoration: none; }
.history-category-nav a:hover, .history-category-nav a.is-active { color: #000; text-decoration: underline; text-underline-offset: 4px; }
.history-category-mobile-menu { display: none; position: relative; margin-bottom: 30px; }
.category-mobile-trigger, .category-mobile-options button { width: 100%; border: 0; border-radius: 0; background: #fff; color: #000; font: 700 13px/1.2 'Chronos Roboto', Arial, sans-serif; letter-spacing: .08em; text-align: left; }
.category-mobile-trigger { display: flex; min-height: 46px; align-items: center; justify-content: space-between; border: 1px solid #000; padding: 12px 14px; cursor: pointer; }
.category-mobile-trigger svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; transition: transform .18s ease; }
.category-mobile-menu.is-open .category-mobile-trigger svg { transform: rotate(180deg); }
.category-mobile-options { position: absolute; z-index: 10; right: 0; left: 0; max-height: min(58vh, 410px); overflow-y: auto; border: 1px solid #000; border-top: 0; background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }
.category-mobile-options button { display: block; min-height: 42px; padding: 11px 14px; cursor: pointer; }
.category-mobile-options button + button { border-top: 1px solid #dedede; }
.category-mobile-options button[aria-selected="true"] { background: #000; color: #fff; }
.category-mobile-options button:hover { background: #efefef; color: #000; }
.category-mobile-options button[aria-selected="true"]:hover { background: #000; color: #fff; }
.cover-block { width: 100%; aspect-ratio: 2048 / 734; background: #000 center / cover no-repeat; }
.cover-block.has-cover { background-color: #000; }
.legal-notice { margin-top: 30px; border-left: 4px solid #000; padding: 4px 0 4px 14px; max-width: 657px; }
.legal-notice strong { display: block; margin-bottom: 8px; font-size: 13px; line-height: 1.2; letter-spacing: .08em; }
.legal-notice p { margin: 0; color: #4e4e4e; font-size: 16px; line-height: 1.35; text-align: left; white-space: pre-line; }
.intro { padding-top: 39px; }
.intro-links { display: flex; justify-content: space-between; align-items: center; height: 25px; color: #4e4e4e; font-size: 16px; }
.editor-actions { display: inline-flex; align-items: center; gap: 24px; }
.voice-export-link { color: inherit; text-decoration: underline; }
.intro-links a, .intro-links button { color: inherit; }
.home-link { font-weight: 700; text-decoration: none; }
.edit-history-link { border: 0; background: transparent; padding: 0; font: inherit; cursor: pointer; }
.intro h1 { max-width: 1024px; margin: 13px 0 30px; color: #000; font-size: 64px; line-height: .98; font-weight: 700; letter-spacing: -.02em; }
.intro > p { width: 1024px; max-width: 100%; margin: 0; color: #000; font-size: 24px; line-height: 1.2; }
.history-controls { position: relative; height: 115px; margin-top: 48px; border-top: 1px solid #000; color: #4e4e4e; font-size: 16px; }
.history-controls [data-expand], .history-controls [data-reverse], .history-controls [data-follow] { position: absolute; top: 39px; white-space: nowrap; text-align: left; }
.history-controls [data-expand] { left: 46px; width: 112px; }
.history-controls [data-reverse] { left: 177px; width: 154px; }
.history-controls [data-follow] { left: 472px; width: 90px; }
.history-controls [data-add-event] { position: absolute; top: 39px; left: 575px; width: 120px; white-space: nowrap; color: #4e4e4e; text-align: left; text-decoration: underline; }
.history-controls button, .plain-link { border: 0; border-radius: 0; background: transparent; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.history-controls button:hover, .plain-link:hover, .edit-link:hover, .home-link:hover { color: inherit; background: transparent; }
.moderator-note { margin: -14px 0 22px; color: #4e4e4e; font-size: 12px; }
.story-layout { display: grid; grid-template-columns: 657px 321px; column-gap: 30px; align-items: start; }
.timeline-column { position: relative; min-width: 0; }
.timeline-line { position: absolute; left: 60px; top: 0; bottom: 101px; width: 2px; background: #000; }
.event-row { position: relative; min-height: 118px; padding-left: 96px; color: #000; }
.event-row.is-collapsed { min-height: 120px; }
.event-index { position: absolute; left: 15px; top: 3px; color: var(--muted); font-size: 16px; line-height: 1.3; font-weight: 300; }
.event-dot { position: absolute; left: 54.6px; top: 2px; width: 12.8px; height: 12.8px; border: 0; border-radius: 50%; background: #000; z-index: 1; }
.event-row:first-of-type .event-dot { width: 28px; height: 28px; left: 47px; top: -1px; border: 0; background: #fff; box-shadow: inset 0 0 0 2px #000; }
.event-row:first-of-type .event-dot::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #000; }
.event-card { position: relative; width: 456px; padding-top: 7.7px; padding-bottom: 31px; }
.event-date { width: 319px; color: var(--muted); font-size: 11px; line-height: 1.3; text-transform: uppercase; }
.event-edit-line { position: absolute; top: 0; right: 0; min-height: 18px; }
.edit-link { border: 0; background: transparent; padding: 0; color: #4e4e4e; font-size: 14px; text-decoration: underline; cursor: pointer; }
.event-title { display: block; max-width: 456px; margin: 11px 0 17px; border: 0; background: transparent; padding: 0; color: #000; font: 600 24px/1.1667 'Chronos Roboto', Arial, sans-serif; letter-spacing: -.035em; text-align: left; cursor: pointer; }
.event-title:hover { background: transparent; color: #000; }
.event-expanded { width: 456px; }
.event-cover { display: block; width: 456px; height: auto; aspect-ratio: 2048 / 734; margin: 0 0 16px; background: #000; object-fit: cover; }
.event-body { margin: 0; color: #4e4e4e; font-size: 16px; line-height: 1.2; text-align: left; white-space: pre-line; }
.event-block { width: 456px; margin-top: 24px; color: #8a8a8a; }
.event-block h3, .candidate-label { margin: 0 0 9px; color: #8a8a8a; font-size: 14px; line-height: 1.1; font-weight: 700; }
.event-block p { margin: 0; color: #8a8a8a; font-size: 16px; line-height: 1.2; text-align: left; white-space: pre-line; }
.meaning-block { margin-top: 26px; border-left: 4px solid #000; padding: 4px 0 4px 11px; }
.sources-block { margin-top: 25px; }
.source-row { display: grid; grid-template-columns: 130px 1fr auto; column-gap: 12px; min-height: 88px; align-items: start; border-top: 1px solid #cfcfcf; padding: 14px 0 10px; }
.source-row strong { display: block; color: #000; font-size: 14px; line-height: 1.3; font-weight: 500; }
.source-row > span { color: #4e4e4e; font-size: 16px; line-height: 1.2; }
.external-link, .opinion-source { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; color: #000; text-decoration: none; white-space: nowrap; }
.external-link svg, .opinion-source svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.external-link:hover { color: #000; }
.opinion-block { margin-top: 24px; }
.opinion-item { min-height: 114px; border-left: 4px solid #000; padding: 4px 0 10px 11px; }
.opinion-item + .opinion-item { margin-top: 25px; }
.opinion-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.opinion-heading h3 { margin: 0 0 8px; font-weight: 700; text-transform: uppercase; }
.opinion-source { flex: none; }
.opinion-source:hover { color: #000; }
.branch-row { position: relative; display: block; width: 456px; margin: -7px 0 31px 96px; padding: 0 0 20px 72px; color: #8a8a8a; text-decoration: none; }
.branch-row::before { content: ''; position: absolute; left: -35.4px; top: 0; width: 86.4px; border-top: 1px solid #000; }
.branch-row::after { content: ''; position: absolute; left: 44.1px; top: -6.4px; width: 12.8px; height: 12.8px; border-radius: 50%; background: #000; }
.branch-row span { display: block; margin-bottom: 8px; font-size: 11px; text-transform: uppercase; }
.branch-row strong { display: block; color: #000; font-size: 18px; line-height: 1.1; }
.intersection-row small { display: block; margin-top: 8px; color: #4e4e4e; font-size: 13px; line-height: 1.3; }
.intersection-proposed { color: #b00000; }
.intersection-proposed strong { color: #b00000; }
.intersection-row > a { color: inherit; text-decoration: none; }
.intersection-context { margin-top: 13px; padding: 13px 0 0 14px; border-left: 3px solid currentColor; color: #000; }
.intersection-context > div + div { margin-top: 10px; }
.intersection-context b { display: block; font-size: 11px; line-height: 1.2; letter-spacing: .07em; text-transform: uppercase; }
.intersection-context p { margin: 4px 0 0; color: #4e4e4e; font-size: 13px; line-height: 1.35; }
.intersection-context details { margin-top: 13px; color: #000; }
.intersection-context summary { cursor: pointer; font-size: 13px; text-decoration: underline; }
.intersection-context details p + p { margin-top: 8px; }
.intersection-actions { display: flex; gap: 18px; margin-top: 10px; }
.intersection-actions button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.intersection-actions button:disabled { opacity: .5; cursor: wait; }
.candidate-row .event-dot { background: #f00; }
.candidate-row .event-title, .candidate-row .edit-link, .candidate-row .event-index, .candidate-row .candidate-label { color: #f00; }
.candidate-expanded { border-left: 4px solid #f00; padding-left: 11px; }
.candidate-expanded .event-body, .candidate-expanded .candidate-source { color: #4e4e4e; }
.candidate-label { color: #000; }
.event-draft .event-dot { background: #f00; }
.event-draft .event-title, .event-draft .edit-link, .event-draft .event-index, .event-draft .event-date { color: #f00; }
.draft-label { display: inline-block; margin-left: 14px; color: #f00; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.candidate-actions, .opinion-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.candidate-actions button, .opinion-actions button, .reader-form button { border-radius: 0; padding: 8px 12px; font-size: 13px; }
.ghost { border: 1px solid #cfcfcf; background: transparent; color: #4e4e4e; }
.event-hidden { opacity: .5; }
.timeline-end { position: relative; display: flex; min-height: 93px; gap: 14px; padding-left: 72px; color: #8d8d8d; }
.timeline-arrow { position: absolute; left: 56px; top: -18px; width: 10px; height: 10px; border-right: 2px solid #000; border-bottom: 2px solid #000; transform: rotate(45deg); z-index: 1; }
.end-ring { position: absolute; left: 54.5px; top: 0; width: 13px; height: 13px; border: 1px solid #8d8d8d; border-radius: 50%; background: #fff; z-index: 2; }
.timeline-end small { font-size: 11px; text-transform: uppercase; }
.timeline-end p { width: 182px; margin: 5px 0 0; font-size: 11px; line-height: 1.3; }
.history-contribution-cta { width: 456px; max-width: 100%; margin: 48px 0 0 96px; border-top: 1px solid #000; padding-top: 20px; }
.history-contribution-cta small { color: #8d8d8d; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.history-contribution-cta h2 { margin: 8px 0 7px; font-size: 22px; line-height: 1.08; font-weight: 600; letter-spacing: -.025em; }
.history-contribution-cta p { margin: 0; color: #4e4e4e; font-size: 14px; line-height: 1.4; }
.history-contribution-cta button { margin-top: 14px; color: #000; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.history-prediction { width: 456px; max-width: 100%; margin: 48px 0 0 96px; border-top: 1px solid #000; padding-top: 20px; }
.history-prediction small { color: #8d8d8d; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.history-prediction h2 { margin: 8px 0; font-size: 22px; line-height: 1.08; font-weight: 600; letter-spacing: -.025em; }
.history-prediction > p { margin: 0; color: #4e4e4e; font-size: 14px; line-height: 1.4; }
.prediction-options { display: grid; gap: 8px; margin-top: 16px; }
.prediction-option { border: 1px solid #000; border-radius: 0; background: #fff; padding: 12px 14px; color: #000; font: inherit; font-size: 15px; line-height: 1.25; text-align: left; cursor: pointer; transition: background .15s ease, color .15s ease; }
.prediction-option:hover:not(:disabled) { background: #000; color: #fff; }
.prediction-option:disabled { opacity: .55; cursor: wait; }
.history-prediction .prediction-voted { color: #000; font-size: 16px; font-weight: 500; }
.history-prediction .prediction-timing { margin-top: 8px; color: #4e4e4e; font-size: 14px; }
.history-prediction .prediction-outcome { color: #000; font-size: 16px; font-weight: 500; }
.prediction-results { display: grid; gap: 0; margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid #000; }
.prediction-results li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #d6d6d6; font-size: 14px; line-height: 1.3; }
.prediction-results b { flex: 0 0 auto; font-weight: 600; white-space: nowrap; }
.history-prediction .prediction-disclaimer { margin-top: 13px; color: #8d8d8d; font-size: 12px; }
.contribution-trap { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.story-sidebar { align-self: start; min-width: 0; margin-top: -114px; padding-top: 0; }
.story-sidebar .history-contribution-cta { width: 321px; margin: 0; border-top: 0; border-bottom: 1px solid #000; padding: 38px 0 30px; }
.story-sidebar .history-contribution-cta small, .sidebar-heading { color: #8a8a8a; font-size: 14px; line-height: 1.1; font-weight: 700; }
.story-sidebar .history-contribution-cta h2 { font-size: 20px; }
.story-sidebar .history-contribution-cta > p { font-size: 13px; }
.parallel-panel { width: 321px; }
.sidebar-heading { display: flex; align-items: center; padding-top: 8px; }
.sidebar-heading strong { font-weight: 700; }
.parallel-panel .sidebar-heading { padding-top: 37px; padding-bottom: 9px; }
.story-sidebar .history-contribution-cta + .parallel-panel .sidebar-heading { padding-top: 30px; }
.parallel-card { display: block; color: #4e4e4e; text-decoration: none; }
.parallel-cover { width: 321px; aspect-ratio: 2048 / 734; height: auto; margin-top: 7px; background: #000 center / cover no-repeat; }
.parallel-category { margin-top: 11px; color: #000; font-size: 14px; line-height: 1.1; }
.parallel-title { display: block; margin-top: 5px; color: #000; font-size: 16px; line-height: 1.15; font-weight: 500; }
.parallel-card p { display: -webkit-box; margin: 10px 0 20px; overflow: hidden; color: #4e4e4e; font-size: 12px; line-height: 1.3; text-align: left; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.banner { width: 321px; height: 491px; margin-top: 42px; background: #d9d9d9; }
.banner-link { display: block; width: 100%; height: 100%; background: center / cover no-repeat; }
.history-footer { display: flex; width: 100vw; margin: 137px calc((var(--frame) - 100vw) / 2) 0; height: 122px; align-items: center; gap: 28px; background: #000; padding: 0 max(calc((100vw - var(--frame)) / 2), 20px); }
.history-footer .brand { color: #fff; }
.history-footer .footer-copyright { color: #666; font-size: 12px; line-height: 1.2; }
.editor-entry { margin-left: auto; color: #8d8d8d; font-size: 11px; font-weight: 300; text-decoration: none; }
.editor-entry:hover { color: #fff; }
.empty { padding: 26px 0; color: #8d8d8d; }
dialog { width: min(650px, calc(100vw - 30px)); max-height: calc(100vh - 40px); border: 0; border-radius: 0; padding: 0; overflow-y: auto; box-shadow: 0 24px 80px rgba(0, 0, 0, .25); }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
.history-document input:focus, .history-document textarea:focus, .history-document select:focus { border-color: #000; outline: 0; box-shadow: none; }
.history-document button:focus-visible { outline: 1px solid #000; outline-offset: 2px; box-shadow: none; }
.dialog-body { padding: 26px; font-family: 'Chronos Roboto', Arial, sans-serif; font-weight: 400; }
.dialog-body h2 { margin-top: 0; font-weight: 500; }
.dialog-body p { text-align: left; }
.dialog-body label { margin-top: 18px; font-weight: 400; }
.dialog-body label input, .dialog-body label textarea, .dialog-body label select { margin-top: 8px; }
.dialog-body input, .dialog-body textarea, .dialog-body select { font-family: 'Chronos Roboto', Arial, sans-serif; font-weight: 400; }
.dialog-body textarea { width: 100%; min-height: 100px; border: 1px solid #cfcfcf; padding: 12px; font: inherit; }
.editorial-stage { margin: 22px 0 0; padding: 16px; border: 1px solid #cfcfcf; }
.editorial-stage legend { padding: 0 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.editorial-stage p { margin: 0; color: #666; font-size: 13px; line-height: 1.4; }
.form-help { display: block; margin-top: -2px; color: #8d8d8d; font-size: 12px; line-height: 1.35; }
.legal-notice-editor { margin: 24px 0 20px; border: 0; border-top: 1px solid #cfcfcf; padding: 18px 0 0; }
.legal-notice-editor legend { padding: 0 12px 0 0; font-size: 18px; font-weight: 500; }
.legal-notice-editor > .ghost { margin-top: 12px; }
.legal-notice-dialog { width: min(520px, calc(100vw - 30px)); }
.legal-notice-dialog .dialog-body { padding: 30px; }
.legal-notice-dialog p { margin: 18px 0 0; color: #4e4e4e; font-size: 18px; line-height: 1.35; white-space: pre-line; }
.legal-risk-status { margin: 20px 0; padding: 16px 0; border-top: 1px solid #cfcfcf; border-bottom: 1px solid #cfcfcf; }
.legal-risk-status strong { font-size: 18px; }
.legal-risk-status p { margin: 8px 0; line-height: 1.4; }
.legal-risk-status small { color: #6c6c6c; }
.legal-risk-findings { display: grid; gap: 14px; }
.legal-risk-finding { border-left: 3px solid #7c7c7c; padding: 3px 0 3px 14px; }
.legal-risk-finding.level-high { border-color: #b00020; }
.legal-risk-finding > div { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.legal-risk-finding b { font-size: 11px; letter-spacing: .06em; }
.legal-risk-finding.level-high b { color: #b00020; }
.legal-risk-finding small { display: block; margin-top: 5px; color: #6c6c6c; }
.legal-risk-finding p { margin: 8px 0; line-height: 1.4; }
.legal-risk-finding blockquote { margin: 10px 0; padding: 9px 12px; background: #f3f3f3; color: #4e4e4e; }
.legal-risk-source { font-size: 14px; }
.legal-risk-decision { margin: 24px 0 0; padding: 18px 0 0; border: 0; border-top: 1px solid #cfcfcf; }
.legal-risk-decision legend { padding: 0 12px 0 0; font-size: 18px; font-weight: 500; }
.dialog-body input[type="file"] { border: 1px solid #cfcfcf; border-radius: 0; padding: 10px; background: #fff; }
.cover-adjuster { margin-top: 14px; border-top: 1px solid #cfcfcf; padding-top: 14px; }
.cover-adjuster-preview { width: 100%; aspect-ratio: 2048 / 734; background: #e5e5e5 center / cover no-repeat; }
.cover-adjuster p { margin: 10px 0 0; color: #4e4e4e; font-size: 13px; line-height: 1.35; }
.cover-adjuster label { display: grid; grid-template-columns: 128px 1fr; align-items: center; gap: 12px; margin-top: 10px; font-size: 13px; }
.cover-adjuster label input { width: 100%; margin: 0; accent-color: #000; }
.cover-package-summary { min-height: 20px; margin-top: 18px; color: #4e4e4e; font-size: 13px; line-height: 1.4; }
.cover-package-preview { margin-top: 14px; border-top: 1px solid #cfcfcf; }
.cover-package-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: center; border-bottom: 1px solid #e0e0e0; padding: 10px 0; }
.cover-package-thumb { width: 88px; aspect-ratio: 2048 / 734; background: #e5e5e5 center / cover no-repeat; }
.cover-package-row strong, .cover-package-row small { display: block; }
.cover-package-row strong { font-size: 14px; line-height: 1.25; }
.cover-package-row small { margin-top: 4px; color: #4e4e4e; font-size: 12px; line-height: 1.3; }
.cover-package-row.is-warning strong, .cover-package-row.is-warning small { color: #b00000; }
.dialog-body .cover-clear { display: flex; align-items: center; gap: 8px; }
.dialog-body .cover-clear input { width: auto; }
.dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.dialog-actions .ghost:hover { border-color: #000; background: #fff; color: #000; }
.event-editor-dialog { width: min(720px, calc(100vw - 30px)); }
.source-editor, .expert-editor { margin: 24px 0 20px; border: 0; border-top: 1px solid #cfcfcf; padding: 18px 0 0; }
.source-editor legend, .expert-editor legend { padding: 0 12px 0 0; font-size: 18px; font-weight: 500; }
.source-editor > p, .expert-editor > p { margin: 0 0 15px; color: #4e4e4e; font-size: 13px; line-height: 1.4; }
.source-view-fields, .expert-opinion-fields { position: relative; margin-bottom: 16px; border-left: 4px solid #000; padding: 0 0 16px 14px; }
.source-view-fields + .source-view-fields, .expert-opinion-fields + .expert-opinion-fields { padding-top: 4px; }
.source-view-fields label, .expert-opinion-fields label { margin-top: 12px; }
.source-view-fields label:first-child, .expert-opinion-fields label:first-child { margin-top: 0; }
.source-view-fields textarea, .expert-opinion-fields textarea { min-height: 88px; }
.remove-source-view, .add-source-view, .remove-expert-opinion, .add-expert-opinion { border-radius: 0; padding: 8px 12px; font-size: 13px; }
.remove-source-view, .remove-expert-opinion { margin-top: 12px; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 20; min-width: 88px; border: 1px solid #000; border-radius: 22px; background: #fff; padding: 10px 16px; color: #000; font-size: 13px; font-weight: 400; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: #000; color: #fff; }
.compact-dialog { width: min(390px, calc(100vw - 30px)); }
.compact-dialog .dialog-body { padding: 20px; }
.compact-dialog .dialog-body h2 { margin-bottom: 10px; font-size: 22px; }
.compact-dialog .dialog-body p { margin: 0; color: #4e4e4e; font-size: 14px; line-height: 1.35; }
.compact-dialog .dialog-body label { margin-top: 14px; }
.compact-dialog .dialog-body small { display: block; margin-top: 8px; color: #8d8d8d; font-size: 11px; }
.compact-dialog .dialog-body textarea { min-height: 150px; resize: vertical; }
.compact-dialog .muted { min-height: 18px; margin-top: 10px; font-size: 13px; }
.compact-dialog .muted:empty { display: none; }
.compact-dialog .dialog-actions { margin-top: 16px; }

@media (max-width: 1100px) {
  .history-page { width: min(var(--frame), calc(100% - 32px)); }
  .story-layout { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 24px; }
  .event-card, .event-expanded, .event-cover, .event-block { width: 100%; }
  .timeline-column > .branch-row { width: calc(100% - 96px); }
  .event-cover { height: auto; aspect-ratio: 2048 / 734; }
  .parallel-panel, .banner { width: 100%; }
  .parallel-cover { width: 100%; }
  .history-footer { margin-left: calc((100% - 100vw) / 2); }
}
@media (max-width: 900px) {
  .history-page { width: calc(100% - 32px); }
  .story-layout { display: block; }
  .story-sidebar { margin-top: 68px; padding-top: 0; }
  .story-sidebar .history-contribution-cta { width: 456px; max-width: 100%; margin: 0 0 0 96px; border-bottom: 0; padding-top: 0; padding-bottom: 0; }
  .parallel-panel, .banner { width: 100%; }
  .parallel-cover { width: 100%; }
  .parallel-panel { display: none; }
  .history-category-nav { display: none; }
  .history-category-mobile-menu { display: block; }
  .intro h1 { font-size: clamp(40px, 7vw, 62px); line-height: .98; }
  .site-header .brand, .site-header .brand img { width: 200px; height: auto; }
  .history-footer .brand, .history-footer .brand img { width: 180px; height: auto; }
  .history-footer { width: 100vw; margin-left: calc((100% - 100vw) / 2); padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 760px) {
  .history-page { padding-top: 20px; }
  .history-topline { height: 18px; margin-top: 0; }
  .site-header { display: block; height: auto; min-height: 0; }
  .site-header .brand { width: 200px; height: auto; }
  .site-header .brand img { width: 200px; height: auto; }
  .site-header p { width: min(100%, 510px); margin: 22px 0 30px; font-size: 14px; line-height: 1.25; }
  .cover-block { height: auto; min-height: 0; }
  .intro h1 { max-width: 760px; font-size: clamp(42px, 10.5vw, 64px); line-height: .98; }
  .intro > p { width: 100%; max-width: 660px; font-size: 18px; line-height: 1.25; }
  .history-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; min-height: 0; gap: 4px 18px; padding: 19px 0 28px; }
  .history-controls [data-expand], .history-controls [data-reverse], .history-controls [data-follow], .history-controls [data-add-event] { position: static; display: flex; align-items: center; width: auto; min-height: 40px; white-space: normal; }
  .history-controls [data-add-event] { grid-column: 1 / -1; }
  .source-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 9px; min-height: 0; padding: 14px 0; }
  .source-row > span { grid-column: 1 / -1; }
  .source-row .external-link { grid-column: 2; grid-row: 1; }
  .branch-row { padding-bottom: 24px; }
  .banner { height: 280px; }
  .history-footer { height: 132px; margin-top: 90px; flex-direction: column; justify-content: center; gap: 7px; text-align: center; }
  .history-footer .brand, .history-footer .brand img { width: 180px; height: auto; }
  .history-footer .editor-entry { margin-left: 0; }
  .back-to-top { right: 16px; bottom: 16px; min-width: 0; padding: 10px 14px; }
  dialog, .event-editor-dialog { width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
  .dialog-body { padding: 20px; }
}
@media (max-width: 480px) {
  .history-page { width: calc(100% - 28px); }
  .site-header p { margin-bottom: 24px; font-size: 13px; }
  .cover-block { height: auto; min-height: 0; }
  .intro h1 { font-size: clamp(32px, 10vw, 42px); letter-spacing: -.055em; }
  .intro > p { font-size: 16px; }
  .history-controls { grid-template-columns: 1fr; gap: 0; padding-bottom: 24px; }
  .history-controls [data-expand], .history-controls [data-reverse], .history-controls [data-follow] { min-height: 38px; }
  .event-row { padding-left: 58px; }
  .timeline-column > .branch-row { width: calc(100% - 58px); margin-left: 58px; }
  .branch-row { padding-left: 52px; }
  .branch-row::before { left: -21px; width: 58px; }
  .branch-row::after { left: 30px; }
  .event-index { left: 0; }
  .event-dot { left: 31.6px; }
  .event-row:first-of-type .event-dot { left: 24px; }
  .timeline-line { left: 37px; }
  .timeline-arrow { left: 33px; }
  .end-ring { left: 31.5px; }
  .timeline-end { padding-left: 58px; }
  .history-contribution-cta { width: calc(100% - 58px); margin-left: 58px; }
  .story-sidebar .history-contribution-cta { width: calc(100% - 58px); margin-left: 58px; }
  .event-date { width: auto; padding-right: 48px; }
  .event-title { margin-top: 9px; font-size: 20px; line-height: 1.12; }
  .event-edit-line { position: static; margin-top: 7px; }
  .event-cover { height: auto; min-height: 0; aspect-ratio: 2048 / 734; margin-bottom: 14px; }
  .event-block { margin-top: 21px; }
  .meaning-block, .opinion-item { border-left-width: 4px; padding-left: 10px; }
  .opinion-heading { gap: 10px; }
  .opinion-source { margin-top: 1px; }
  .timeline-end { min-height: 76px; }
  .story-sidebar { margin-top: 58px; }
  .sidebar-heading { font-size: 15px; }
  .reader-nav { margin-left: 10px; }
  .reader-copy { font-size: 15px; }
  .parallel-panel .sidebar-heading { padding-top: 30px; }
  .parallel-cover { height: auto; }
  .history-footer { height: 132px; margin-top: 72px; }
  .history-footer .brand, .history-footer .brand img { width: 160px; }
  .editor-entry { font-size: 10px; }
  .compact-dialog .dialog-body { padding: 18px; }
  .dialog-actions { gap: 8px; }
}
