:root {
    --ink: #24231f;
    --ink-soft: #646158;
    --paper: #fbfaf6;
    --canvas: #f2efe8;
    --line: #ded9ce;
    --line-soft: #ebe7de;
    --accent: #405d4a;
    --accent-dark: #304738;
    --accent-pale: #e3ebe4;
    --terracotta: #a65f44;
    --danger: #9a3f36;
    --danger-pale: #f7e9e5;
    --shadow: 0 18px 50px rgba(55, 48, 36, .1);
    --serif: Georgia, 'Times New Roman', serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.brand, .sidebar-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-family: var(--serif); font-size: 20px; font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: inline-grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #f8f5ed; background: var(--accent); font-family: var(--serif); font-size: 19px; font-style: italic; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; }

.button { min-height: 46px; padding: 0 19px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 680; transition: background .18s, border-color .18s, transform .18s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--accent); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { color: var(--accent-dark); background: var(--accent-pale); }
.button-quiet { color: var(--ink-soft); background: transparent; border-color: var(--line); }
.button-danger { color: #fff; background: var(--danger); }
.button-danger:hover { background: #7f3029; }
.button-full { width: 100%; }
.text-button { border: 0; background: none; color: var(--ink-soft); cursor: pointer; padding: 12px; font-size: 14px; }
.text-button:hover { color: var(--ink); }
.icon-button { display: inline-grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 23px; }
.icon-button:hover { background: rgba(40, 38, 32, .06); }

.notice { max-width: 720px; margin: 0 0 24px; padding: 14px 16px; border-radius: 8px; font-size: 14px; }
.notice p { margin: 0; }
.notice p + p { margin-top: 5px; }
.notice-error { border: 1px solid #eac8c0; color: var(--danger); background: var(--danger-pale); }
.notice-success { border: 1px solid #cad9cd; color: var(--accent-dark); background: var(--accent-pale); }
.notice-undo { display: flex; max-width: none; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #cad9cd; color: var(--accent-dark); background: var(--accent-pale); }
.notice-undo form { margin: 0; }
.notice-undo .text-button { color: var(--accent-dark); font-weight: 750; }

.auth-page { background: var(--paper); }
.auth-shell { display: grid; min-height: 100dvh; grid-template-columns: minmax(420px, 48%) 1fr; }
.auth-panel { display: flex; width: min(100%, 560px); min-height: 100%; padding: 52px clamp(32px, 7vw, 88px); flex-direction: column; justify-content: center; }
.auth-panel .brand { position: absolute; top: 38px; }
.auth-copy { margin-bottom: 30px; }
.auth-copy h1 { max-width: 450px; margin-bottom: 13px; font-size: clamp(38px, 4vw, 56px); line-height: .98; }
.auth-copy > p:last-child { color: var(--ink-soft); line-height: 1.6; }
.stack-form { display: grid; gap: 19px; }
.stack-form label, .modal-card label { display: grid; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 680; }
.stack-form label small, .modal-card label small { color: var(--ink-soft); font-weight: 450; }
input, textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; outline: none; }
.stack-form input, .modal-card input, .modal-card textarea { min-height: 48px; padding: 12px 14px; }
input:focus, textarea:focus { border-color: #7a917f; box-shadow: 0 0 0 3px rgba(64, 93, 74, .11); }
.auth-switch { margin: 25px 0 0; color: var(--ink-soft); text-align: center; font-size: 14px; }
.auth-switch a { color: var(--accent); font-weight: 700; }
.auth-quote { display: flex; margin: 18px; padding: clamp(40px, 7vw, 90px); border-radius: 14px; flex-direction: column; justify-content: flex-end; color: #f7f3e9; background: linear-gradient(155deg, rgba(48, 71, 56, .8), rgba(33, 46, 38, .98)), radial-gradient(circle at 75% 20%, #9fae94, #3c5542 60%); }
.auth-quote blockquote { max-width: 570px; margin: 0 0 22px; font-family: var(--serif); font-size: clamp(34px, 4vw, 62px); line-height: 1.05; letter-spacing: -.04em; }
.auth-quote cite { opacity: .72; font-size: 13px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }

.library-header { display: flex; height: 84px; padding: 0 clamp(24px, 6vw, 84px); align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); background: rgba(251, 250, 246, .88); }
.library-actions { display: flex; align-items: center; gap: 4px; }
.library-actions form { margin: 0; }
.library-actions a { text-decoration: none; }
.library-main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 76px 0 100px; }
.section-heading { display: flex; margin-bottom: 42px; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h1 { margin: 0; font-size: clamp(44px, 6vw, 66px); line-height: 1; }
.section-heading.compact h2 { margin: 0; font-size: 37px; }
.novel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.novel-card, .new-novel-card { min-height: 286px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.novel-card { position: relative; display: grid; padding: 22px; grid-template-columns: 112px 1fr; align-items: end; gap: 22px; text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
.novel-card:hover { transform: translateY(-3px); border-color: #c7c0b3; box-shadow: var(--shadow); }
.novel-card:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(64, 93, 74, .12); }
.novel-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.novel-card-link:focus { outline: 3px solid var(--accent); outline-offset: 3px; }
.novel-card .book-cover, .novel-card .novel-details { pointer-events: none; }
.book-cover { display: flex; height: 190px; padding: 16px; align-items: center; justify-content: center; border-radius: 3px 8px 8px 3px; color: rgba(255,255,255,.88); box-shadow: -4px 5px 12px rgba(30,25,18,.18), inset 4px 0 0 rgba(255,255,255,.13); font-family: var(--serif); font-size: 42px; }
.cover-1 { background: #526653; }.cover-2 { background: #9a624d; }.cover-3 { background: #51626e; }.cover-4 { background: #766751; }
.novel-details { display: grid; align-content: end; gap: 6px; padding-bottom: 4px; }
.novel-details strong { margin-bottom: 4px; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.1; }
.novel-details > span { color: var(--ink-soft); font-size: 12px; }
.new-novel-card { display: flex; min-height: 286px; align-items: center; justify-content: center; flex-direction: column; gap: 12px; border-style: dashed; color: var(--ink-soft); cursor: pointer; }
.new-novel-card:hover { border-color: var(--accent); color: var(--accent); }
.new-novel-card > span { display: grid; width: 45px; height: 45px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 26px; font-weight: 300; }
.overflow-menu { position: absolute; top: 12px; right: 12px; z-index: 4; }
.overflow-menu summary { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: var(--ink-soft); background: rgba(251,250,246,.88); cursor: pointer; font-weight: 750; letter-spacing: .08em; list-style: none; }
.overflow-menu summary::-webkit-details-marker { display: none; }
.overflow-menu summary:hover, .overflow-menu summary:focus { color: var(--ink); background: #ebe7de; outline: none; }
.overflow-menu summary:focus-visible { box-shadow: 0 0 0 3px rgba(64, 93, 74, .18); }
.menu-panel { position: absolute; top: 46px; right: 0; width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); box-shadow: 0 14px 40px rgba(38,34,27,.16); }
.menu-panel form { margin: 0; }
.menu-panel button { width: 100%; min-height: 38px; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; text-align: left; font-size: 13px; }
.menu-panel button:hover, .menu-panel button:focus-visible { background: var(--canvas); outline: none; }
.menu-panel button:disabled { opacity: .38; cursor: default; }
.menu-panel .danger-link { color: var(--danger); }
.menu-label { display: grid; padding: 7px 10px 3px; gap: 5px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.menu-label select { min-height: 36px; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; }
.empty-library { padding: 80px 24px; border: 1px dashed #cbc4b7; border-radius: 12px; text-align: center; }
.empty-library h2 { margin: 20px 0 10px; font-size: 34px; }
.empty-library p { max-width: 470px; margin: 0 auto 28px; color: var(--ink-soft); line-height: 1.65; }
.empty-glyph { display: inline-grid; width: 70px; height: 70px; place-items: center; border-radius: 50%; color: var(--accent); background: var(--accent-pale); font-family: var(--serif); font-style: italic; }

.modal { width: min(520px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 13px; background: var(--paper); box-shadow: 0 30px 90px rgba(31, 28, 22, .25); }
.modal::backdrop { background: rgba(39, 36, 30, .42); backdrop-filter: blur(3px); }
.modal-card { display: grid; padding: 30px; gap: 21px; }
.modal-heading { display: flex; align-items: start; justify-content: space-between; }
.modal-heading h2 { margin: 0; font-size: 34px; }
.modal-card textarea { min-height: 90px; resize: vertical; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

.project-header { display: grid; height: 70px; padding: 0 clamp(22px, 5vw, 68px); grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line-soft); background: var(--paper); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); text-decoration: none; font-size: 13px; font-weight: 640; }
.back-link:hover { color: var(--ink); }
.mini-brand { font-family: var(--serif); font-weight: 700; }
.project-main { width: min(900px, calc(100% - 44px)); margin: 0 auto; padding: 75px 0 110px; }
.project-intro { padding-bottom: 58px; border-bottom: 1px solid var(--line); }
.project-title-row { display: flex; align-items: start; justify-content: space-between; gap: 28px; }
.project-intro h1 { max-width: 760px; margin: 0 0 18px; font-size: clamp(50px, 8vw, 78px); line-height: .98; }
.project-description { max-width: 620px; color: var(--ink-soft); line-height: 1.7; }
.project-progress { display: grid; margin-top: 42px; grid-template-columns: auto auto 1fr; align-items: center; gap: 44px; }
.project-progress div:not(.progress-track) { display: grid; gap: 3px; }
.project-progress strong { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.project-progress span { color: var(--ink-soft); font-size: 12px; }
.progress-track { height: 3px; overflow: hidden; background: var(--line); border-radius: 4px; }
.progress-track span { display: block; height: 100%; background: var(--accent); }
.chapter-section { padding-top: 55px; }
.chapter-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.chapter-list li { border-bottom: 1px solid var(--line); }
.chapter-list > li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) 48px; align-items: center; }
.chapter-list .chapter-row-link { display: grid; min-height: 90px; padding: 18px 8px; grid-template-columns: 50px 1fr auto; align-items: center; gap: 16px; text-decoration: none; }
.chapter-list a:hover .chapter-arrow { transform: translateX(4px); }
.chapter-list > li:focus-within { background: rgba(251,250,246,.62); }
.chapter-menu { position: relative; inset: auto; justify-self: end; }
.chapter-menu .menu-panel { z-index: 8; }
.drag-handle { color: #9a958b; cursor: grab; font-size: 16px; letter-spacing: -3px; user-select: none; }
.chapter-list > li.is-dragging { opacity: .48; background: var(--accent-pale); }
.reorder-help { margin: -25px 0 20px; color: var(--ink-soft); font-size: 12px; }
.status-badge { color: var(--accent-dark); font-weight: 700; }
.status-final { color: #536779; }
.status-revising { color: #8a5c34; }
.chapter-number { color: var(--ink-soft); font-family: var(--serif); font-size: 16px; }
.chapter-info { display: grid; gap: 6px; }
.chapter-info strong { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.chapter-info small { color: var(--ink-soft); }
.chapter-arrow { color: var(--accent); font-size: 20px; transition: transform .18s; }
.empty-chapters { padding: 58px 20px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; }
.empty-chapters p { color: var(--ink-soft); font-family: var(--serif); font-size: 22px; }
.chapter-trash { margin-top: 70px; padding-top: 50px; border-top: 1px solid var(--line); }
.chapter-trash h2 { margin: 0 0 24px; font-size: 32px; }
.trash-main { max-width: 900px; }
.trash-explainer { max-width: 650px; margin: -22px 0 36px; color: var(--ink-soft); line-height: 1.65; }
.trash-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.trash-list li { display: flex; min-height: 92px; padding: 16px 4px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.trash-list li > div:first-child { display: grid; gap: 7px; }
.trash-list strong { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.trash-list span { color: var(--ink-soft); font-size: 12px; }
.trash-actions { display: flex; align-items: center; gap: 9px; }
.trash-actions form { margin: 0; }

.writer-page { height: 100dvh; overflow: hidden; background: var(--paper); }
.writer-shell { display: grid; height: 100%; grid-template-columns: 286px minmax(0, 1fr); }
.manuscript-sidebar { display: flex; min-width: 0; padding: 24px 18px 20px; flex-direction: column; border-right: 1px solid var(--line); background: var(--canvas); }
.sidebar-top { display: flex; padding: 0 5px; align-items: center; justify-content: space-between; }
.sidebar-brand { font-size: 18px; }
.sidebar-brand .brand-mark { width: 29px; height: 29px; font-size: 16px; }
.sidebar-collapse { font-size: 24px; }
.sidebar-back { margin: 31px 6px 34px; }
.sidebar-project { padding: 0 6px 25px; }
.sidebar-project h2 { margin: 0; font-size: 25px; line-height: 1.08; }
.nav-label { margin: 0 6px 10px; color: var(--ink-soft); font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.manuscript-nav { min-height: 0; flex: 1; overflow-y: auto; }
.manuscript-nav ol { margin: 0; padding: 0; list-style: none; }
.manuscript-nav a { display: grid; min-height: 46px; padding: 9px 10px; grid-template-columns: 20px minmax(0,1fr); align-items: center; gap: 8px; border-radius: 7px; color: var(--ink-soft); text-decoration: none; font-size: 13px; }
.manuscript-nav a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manuscript-nav a[aria-current="page"] { color: var(--ink); background: var(--paper); box-shadow: 0 1px 2px rgba(30,25,18,.05); font-weight: 680; }
.manuscript-nav a > span:first-child { color: #918c82; font-family: var(--serif); font-size: 11px; }
.sidebar-new-chapter button { display: flex; width: 100%; min-height: 44px; padding: 0 10px; align-items: center; gap: 12px; border: 0; background: transparent; color: var(--accent); cursor: pointer; font-size: 13px; font-weight: 680; }
.sidebar-new-chapter button span { font-size: 20px; font-weight: 300; }
.sidebar-total { display: grid; margin: 12px 5px 0; padding: 18px 3px 0; grid-template-columns: 1fr auto; align-items: baseline; border-top: 1px solid var(--line); }
.sidebar-total span { color: var(--ink-soft); font-size: 11px; }
.sidebar-total strong { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.sidebar-total small { grid-column: 2; color: var(--ink-soft); font-size: 10px; text-align: right; }
.sidebar-scrim { display: none; }
.writing-workspace { display: grid; min-width: 0; height: 100%; grid-template-rows: 66px minmax(0, 1fr) 42px; background: var(--paper); }
.writer-toolbar { display: grid; padding: 0 26px; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 15px; border-bottom: 1px solid var(--line-soft); }
.toolbar-project { color: var(--ink-soft); text-decoration: none; font-family: var(--serif); font-size: 14px; }
.sidebar-toggle { display: none; font-size: 18px; }
.sidebar-is-collapsed .writer-shell { grid-template-columns: 0 minmax(0, 1fr); }
.sidebar-is-collapsed .manuscript-sidebar { visibility: hidden; overflow: hidden; padding-inline: 0; }
.sidebar-is-collapsed .sidebar-toggle { display: inline-grid; }
.chapter-navigation { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 11px; }
.chapter-navigation a, .chapter-navigation > span:first-child, .chapter-navigation > span:last-child { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; text-decoration: none; font-size: 16px; }
.chapter-navigation a:hover { color: var(--ink); background: var(--canvas); }
.chapter-navigation > span:first-child, .chapter-navigation > span:last-child { opacity: .25; }
.save-state { display: inline-flex; justify-self: end; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; }
.save-dot { width: 6px; height: 6px; border-radius: 50%; background: #6a8b70; }
.save-state[data-state="saving"] .save-dot, .save-state[data-state="unsaved"] .save-dot { background: #b98a49; animation: pulse 1.1s infinite; }
.save-state[data-state="failed"] { color: var(--danger); }
.save-state[data-state="failed"] .save-dot { background: var(--danger); }
@keyframes pulse { 50% { opacity: .35; } }
.editor-column { display: grid; width: min(760px, calc(100% - 64px)); min-height: 0; margin: 0 auto; padding: clamp(44px, 8vh, 84px) 0 0; grid-template-rows: auto minmax(0, 1fr); }
.chapter-title-input { padding: 0 0 22px; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-family: var(--serif); font-size: clamp(35px, 4vw, 47px); font-weight: 500; letter-spacing: -.035em; }
.chapter-title-input:focus { border: 0; box-shadow: none; }
.manuscript-editor { min-height: 0; padding: 8px 0 80px; resize: none; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-family: var(--serif); font-size: 20px; line-height: 1.85; }
.manuscript-editor:focus { border: 0; box-shadow: none; }
.manuscript-editor::placeholder { color: #aaa59b; }
.editor-footer { display: flex; padding: 0 28px; align-items: center; justify-content: center; gap: 12px; border-top: 1px solid var(--line-soft); color: var(--ink-soft); font-size: 11px; }
.editor-footer strong { color: var(--ink); font-weight: 650; }
.footer-divider { width: 1px; height: 12px; background: var(--line); }

@media (max-width: 940px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-panel { margin: auto; }
    .auth-quote { display: none; }
    .novel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .writer-shell { display: block; }
    .manuscript-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: min(330px, 88vw); transform: translateX(-102%); box-shadow: 20px 0 60px rgba(30,25,18,.18); transition: transform .24s ease; }
    .sidebar-is-open .manuscript-sidebar { transform: translateX(0); }
    .sidebar-collapse, .sidebar-toggle { display: inline-grid; }
    .sidebar-is-collapsed .manuscript-sidebar { visibility: visible; padding: 24px 18px 20px; }
    .sidebar-scrim { position: fixed; inset: 0; z-index: 15; background: rgba(34,32,27,.34); }
    .sidebar-is-open .sidebar-scrim { display: block; }
    .writing-workspace { height: 100dvh; }
}

@media (max-width: 640px) {
    .auth-panel { width: 100%; padding: 110px 24px 40px; justify-content: flex-start; }
    .auth-panel .brand { top: 30px; }
    .auth-copy h1 { font-size: 42px; }
    .library-header { height: 70px; padding: 0 20px; }
    .library-main { width: calc(100% - 32px); padding: 48px 0 70px; }
    .section-heading { align-items: start; }
    .section-heading h1 { font-size: 46px; }
    .section-heading > .button { width: 48px; padding: 0; overflow: hidden; color: transparent; }
    .section-heading > .button::after { content: '+'; display: block; color: #fff; font-size: 24px; font-weight: 300; }
    .novel-grid { grid-template-columns: 1fr; }
    .novel-card { min-height: 218px; grid-template-columns: 94px 1fr; }
    .book-cover { height: 158px; }
    .new-novel-card { min-height: 150px; }
    .project-header { padding: 0 18px; }
    .project-main { width: calc(100% - 34px); padding-top: 52px; }
    .project-progress { grid-template-columns: 1fr 1fr; gap: 24px; }
    .progress-track { grid-column: 1 / -1; }
    .chapter-list > li { grid-template-columns: 20px minmax(0, 1fr) 44px; }
    .chapter-list .chapter-row-link { grid-template-columns: 36px 1fr auto; gap: 8px; }
    .reorder-help { line-height: 1.5; }
    .project-title-row { display: block; }
    .project-title-row .button { margin-top: 14px; }
    .trash-list li { align-items: start; flex-direction: column; }
    .trash-actions { width: 100%; flex-wrap: wrap; }
    .trash-actions .button { min-height: 42px; }
    .writer-toolbar { padding: 0 14px; }
    .toolbar-project { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .writer-toolbar { gap: 7px; }
    .chapter-navigation { gap: 2px; }
    .chapter-navigation > span:nth-child(2) { display: none; }
    .editor-column { width: calc(100% - 38px); padding-top: 42px; }
    .chapter-title-input { font-size: 34px; }
    .manuscript-editor { font-size: 18px; line-height: 1.75; }
    .editor-footer { justify-content: flex-start; overflow: hidden; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
