    :root {
      color-scheme: light;
      --paper: #ffffff;
      --surface: #ffffff;
      --ink: #202622;
      --muted: #737a73;
      --line: #e4e5dc;
      --green: #28634c;
      --green-soft: #e6f1e9;
      --red: #a63e35;
      --red-soft: #f8e9e5;
      --yellow: #986a17;
      --yellow-soft: #f8f0dc;
      --focus: #296b50;
      font-family: 'DM Sans', sans-serif;
      background: var(--paper);
      color: var(--ink);
    }

    :root[data-theme="halloween"] {
      color-scheme: dark;
      --paper: #0D1117;
      --surface: #151B23;
      --ink: #E7EDF3;
      --muted: #9AA6B2;
      --line: #2A3440;
      --green: #FF6B35;
      --green-soft: #38241D;
      --red: #FF7A70;
      --red-soft: #3B2223;
      --yellow: #F5C451;
      --yellow-soft: #372F1D;
      --focus: #FF6B35;
    }
    :root[data-theme="christmas"] {
      --paper: #F4F8F4;
      --surface: #FFFFFF;
      --ink: #20352B;
      --muted: #67766E;
      --line: #D9E5DC;
      --green: #165B45;
      --green-soft: #E4F1E8;
      --red: #B33A3A;
      --red-soft: #F8E8E8;
      --yellow: #A8781A;
      --yellow-soft: #F8F0DC;
      --focus: #165B45;
    }

    * { box-sizing: border-box; border-radius: 0 !important; box-shadow: none !important; }
    body { margin: 0; min-width: 320px; min-height: 100vh; }
    button, input, textarea, select { font: inherit; }
    button { cursor: pointer; }
    button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
      outline: 3px solid #91bfa2;
      outline-offset: 2px;
    }

    .topbar {
      height: 68px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 max(24px, calc((100vw - 1080px) / 2));
      border-bottom: 1px solid var(--line);
      background: var(--surface);
    }
    .brand { color: var(--ink); text-decoration: none; font: 700 18px 'Space Grotesk', sans-serif; }
    .brand span { color: var(--green); }
    .top-note { display: flex; align-items: center; gap: 9px; color: var(--muted); font: 12px 'DM Mono', monospace; }
    .top-navigation { display: flex; align-items: center; gap: 20px; color: var(--muted); font: 12px 'DM Mono', monospace; }
    .top-navigation a { color: inherit; text-decoration: none; }
    .top-navigation a:hover, .top-navigation a[aria-current="page"] { color: var(--green); }
    .personal-settings { position: relative; margin-left: 20px; }
    .settings-toggle { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
    .settings-toggle:hover, .settings-toggle[aria-expanded="true"] { border-color: var(--green); color: var(--green); }
    .settings-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; width: min(310px, calc(100vw - 32px)); padding: 16px; border: 1px solid var(--line); background: var(--surface); }
    .settings-panel[hidden] { display: none; }
    .settings-panel h2 { margin: 0 0 14px; font: 600 15px 'Space Grotesk', sans-serif; }
    .settings-panel .field { margin-bottom: 12px; }
    .settings-panel .field input { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13px; }
    .settings-save { width: 100%; }
    .panic-trigger { width: 100%; margin-top: 8px; border-color: var(--red); color: var(--red); }
    .panic-trigger:hover { background: var(--red-soft); }
    .settings-status { min-height: 16px; margin: 8px 0 0; color: var(--muted); font-size: 11px; }
    .live-dot { width: 8px; height: 8px; border-radius: 50%; background: #56a271; box-shadow: 0 0 0 3px #e6f1e9; }

    main { width: min(100% - 40px, 900px); margin: 0 auto; padding: 54px 0 88px; }
    .eyebrow { margin: 0 0 12px; color: var(--green); font: 500 11px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: 0; }
    h1 { margin: 0; font: 600 38px/1.12 'Space Grotesk', sans-serif; letter-spacing: 0; }
    .intro { max-width: 570px; margin: 12px 0 30px; color: var(--muted); font-size: 15px; line-height: 1.65; }
    .search-wrap { position: relative; margin-bottom: 19px; }
    .search-icon { position: absolute; left: 16px; top: 50%; color: #81877f; transform: translateY(-50%); pointer-events: none; }
    .search-input {
      width: 100%; height: 52px; padding: 0 18px 0 46px; border: 1px solid #d8dbd1;
      border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 15px;
      box-shadow: 0 2px 5px rgba(29, 40, 31, .025);
    }
    .search-input::placeholder { color: #92978f; }
    .filters { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
    .segmented { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: #eeeee8; }
    .filter-button { min-height: 32px; padding: 0 13px; border: 0; border-radius: 4px; background: transparent; color: #626a62; font-size: 13px; }
    .filter-button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px #17251c1a; }
    .result-count { color: var(--muted); font: 11px 'DM Mono', monospace; }
    .list { display: grid; gap: 8px; }
    .entry { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
    .entry-copy { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.55; font-size: 14px; }
    .entry-meta { display: flex; flex: 0 0 auto; align-items: flex-end; flex-direction: column; gap: 6px; }
    .empty { padding: 38px 20px; border: 1px dashed #d4d8cd; border-radius: 6px; color: var(--muted); text-align: center; font-size: 14px; line-height: 1.7; }
    .empty strong { display: block; margin-bottom: 5px; color: var(--ink); font: 600 15px 'Space Grotesk', sans-serif; }
    .board-warning { margin: 0 0 24px; padding: 12px 14px; border: 1px solid #e5c77e; border-radius: 5px; background: var(--yellow-soft); color: #725313; font-size: 13px; line-height: 1.55; }
    .board-warning strong { display: block; margin-bottom: 3px; color: var(--ink); font-weight: 600; }

    .site-footer { width: min(100% - 40px, 900px); display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 auto; padding: 17px 0 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
    .site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
    .site-footer a { color: #59645b; text-decoration: underline; text-underline-offset: 2px; }
    .page-back { margin-bottom: 28px; }
    .link-category { margin-top: 30px; }
    .link-category h2 { margin: 0 0 10px; font: 600 16px 'Space Grotesk', sans-serif; text-transform: capitalize; }
    .published-links { display: grid; gap: 8px; }
    .published-link { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
    .published-link.is-pinned { border-left: 3px solid var(--green); }
    .category-tabs { margin-bottom: 16px; flex-wrap: wrap; }
    .category-tabs .filter-button { min-width: 72px; }
    .published-link-title { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 12px; }
    .published-link-title > strong { overflow-wrap: anywhere; color: var(--ink); font-size: 14px; font-weight: 600; }
    .published-link-title .entry-category { color: var(--green); font: 10px 'DM Mono', monospace; text-transform: uppercase; }
    .published-link-title .entry-url-list { width: 100%; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); font: 10px 'DM Mono', monospace; }
    .published-link-title .entry-url-list a { overflow-wrap: anywhere; color: #59645b; font: inherit; }
    .entry-pinned { color: var(--green); font: 10px 'DM Mono', monospace; text-transform: uppercase; }
    .entry-links-toggle { width: 100%; padding: 4px 0 0; border: 0; background: transparent; color: var(--green); font: 11px 'DM Mono', monospace; text-align: left; cursor: pointer; }
    .entry-number { color: var(--green); font-family: 'DM Mono', monospace; }
    .terms-main { min-height: calc(100vh - 164px); }
    .terms-list { display: grid; gap: 9px; max-width: 650px; margin: 0; padding-left: 25px; color: var(--ink); font-size: 14px; line-height: 1.7; }
    .terms-list li { padding: 13px 16px 13px 8px; border-bottom: 1px solid var(--line); }
    .terms-list li::marker { color: var(--green); font: 500 12px 'DM Mono', monospace; }
    .terms-list li strong { font-weight: 600; }
    .terms-list li p { margin: 5px 0 0; color: #606860; }
    .terms-note { max-width: 650px; margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
    .staff-main { width: min(100% - 40px, 1100px); height: calc(100vh - 68px); height: calc(100dvh - 68px); display: flex; flex-direction: column; gap: 17px; overflow: hidden; padding-top: 22px; padding-bottom: 18px; }
    .staff-login { width: min(100%, 420px); margin: 24px auto; }
    .shutdown-main { width: min(100% - 40px, 680px); min-height: calc(100vh - 68px); display: flex; flex-direction: column; justify-content: center; padding-top: 40px; padding-bottom: 80px; }
    .control-state-form { max-width: 820px; }
    .control-setting { padding: 16px 0 4px; border-top: 1px solid var(--line); }
    .control-setting h3 { margin: 0 0 12px; font: 600 14px 'Space Grotesk', sans-serif; }
    .control-toggle { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; color: var(--ink); font-size: 13px; }
    .control-toggle input { width: 17px; height: 17px; accent-color: var(--green); }
    .control-console, .control-custom-codes { max-width: 820px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
    .command-form, .custom-code-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
    .custom-code-form { position: relative; }
    .custom-code-form:focus-within { z-index: 2; }
    .command-form .field, .custom-code-form .field { flex: 1 1 180px; margin: 0; }
    .command-form .primary-button, .custom-code-form .primary-button { width: auto; min-width: 140px; }
    .control-code-help { color: var(--muted); font-size: 12px; line-height: 1.6; }
    .command-output { min-height: 44px; margin: 12px 0 0; padding: 12px; overflow-wrap: anywhere; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 12px/1.6 'DM Mono', monospace; white-space: pre-wrap; }
    .custom-code-list { display: grid; gap: 8px; padding: 0; list-style: none; }
    .custom-code-list li { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); }
    .custom-code-list li code { color: var(--green); font-family: 'DM Mono', monospace; }
    .custom-code-list li span { flex: 1; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
    .staff-shell { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; gap: 17px; }
    .staff-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: 0 0 auto; margin: 0; }
    .staff-heading-title { display: flex; align-items: center; gap: 13px; }
    .staff-heading .eyebrow { margin-bottom: 5px; }
    .staff-heading h1 { font-size: 27px; }
    .staff-menu-toggle { width: 40px; height: 40px; display: grid; flex: 0 0 auto; place-items: center; padding: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
    .staff-menu-toggle:hover { background: var(--green-soft); color: var(--green); }
    .back-link { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 13px; white-space: nowrap; }
    .staff-layout { min-height: 0; display: flex; flex: 1 1 auto; gap: 20px; }
    .staff-tabs { width: 205px; display: flex; flex: 0 0 205px; flex-direction: column; gap: 4px; overflow-y: auto; padding-right: 12px; border-right: 1px solid var(--line); }
    .staff-tabs[hidden] { display: none; }
    .staff-tab { width: 100%; display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 0 12px; border: 0; border-left: 2px solid transparent; background: transparent; color: var(--muted); font-size: 13px; text-align: left; }
    .staff-tab:hover { background: var(--green-soft); color: var(--ink); }
    .staff-tab[aria-selected="true"] { border-left-color: var(--green); background: var(--green-soft); color: var(--ink); font-weight: 600; }
    .staff-tab span { color: var(--muted); font: 10px 'DM Mono', monospace; }
    .staff-content { min-width: 0; min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; }
    .staff-panel { flex: 1 1 auto; min-height: 0; }
    .staff-panel[hidden] { display: none; }
    .staff-workspace { height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.35fr); gap: 24px; }
    .staff-workspace > section { min-width: 0; min-height: 0; }
    .staff-workspace > section:first-child { overflow-y: auto; padding: 0 3px 8px 0; }
    .staff-list-panel { overflow-y: auto; padding: 0 5px 8px 0; }
    .staff-list-panel .section-title { position: sticky; top: 0; z-index: 1; padding: 4px 0 10px; background: var(--paper); }
    .announcement-workspace { grid-template-columns: minmax(260px, .8fr) minmax(0, 1.35fr); }
    .announcement-remove { margin-top: 10px; }
    .announcement-banner { padding: 15px 17px; border: 1px solid #e3d5a7; border-left: 3px solid var(--yellow); border-radius: 5px; background: var(--yellow-soft); color: var(--ink); }
    .announcement-banner strong { display: block; color: #725313; font: 500 11px 'DM Mono', monospace; text-transform: uppercase; }
    .announcement-banner p { margin: 7px 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
    .announcement-banner span { color: #725313; font-size: 11px; }
    .announcement-preview { padding-top: 0; }
    .section-title { margin: 0 0 14px; font: 600 16px 'Space Grotesk', sans-serif; }
    .add-form { padding: 19px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
    .field { display: grid; gap: 7px; margin-bottom: 16px; }
    .field label { color: var(--muted); font: 500 11px 'DM Mono', monospace; text-transform: uppercase; }
    .field textarea, .field input, .field select {
      width: 100%; min-height: 40px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 4px;
      background: var(--surface); color: var(--ink); font-size: 13px;
    }
    .field textarea { min-height: 128px; resize: vertical; line-height: 1.55; }
    .field small { color: var(--muted); font-size: 11px; line-height: 1.5; }
    .primary-button, .small-button, .icon-button { min-height: 36px; border-radius: 4px; font-size: 12px; font-weight: 600; }
    .primary-button { width: 100%; border: 1px solid var(--green); background: var(--green); color: white; }
    .primary-button:hover { background: #204f3d; }
    .manage-list { display: grid; gap: 8px; }
    .manage-entry { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
    .manage-entry.is-dragging { opacity: .45; }
    .manage-entry.is-drop-target { border-color: var(--green); box-shadow: inset 0 2px 0 var(--green); }
    .manage-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
    .manage-entry-copy { min-width: 0; display: grid; gap: 6px; overflow-wrap: anywhere; }
    .manage-entry-copy strong { font-size: 13px; }
    .manage-entry-links { display: flex; flex-wrap: wrap; gap: 4px 7px; color: var(--muted); font: 10px 'DM Mono', monospace; overflow-wrap: anywhere; }
    .manage-entry-meta { display: flex; flex-wrap: wrap; gap: 8px; }
    .entry-category { color: var(--green); font: 10px 'DM Mono', monospace; text-transform: uppercase; }
    .manage-actions { display: flex; align-items: center; gap: 7px; }
    .drag-handle { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--muted); cursor: grab; touch-action: none; }
    .drag-handle:active { cursor: grabbing; }
    .drag-handle:hover { background: #f2f4ee; color: var(--ink); }
    .small-button { min-height: 32px; padding: 0 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
    .small-button:hover, .back-link:hover { background: #f2f4ee; }
    .small-button.remove { color: var(--red); }
    .manage-empty { padding: 28px 16px; border: 1px dashed #d4d8cd; border-radius: 5px; color: var(--muted); font-size: 13px; text-align: center; }
    .toast { position: fixed; right: 22px; bottom: 22px; z-index: 2; max-width: calc(100vw - 44px); padding: 12px 16px; border-radius: 5px; background: var(--ink); color: white; font-size: 13px; }
    .toast[hidden] { display: none; }
    @keyframes arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

    .login-main { width: min(100% - 40px, 420px); margin: 0 auto; padding: 64px 0 88px; }
    .login-form { padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
    .login-form .field { margin-bottom: 18px; }
    .login-form input { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid #d8dbd1; border-radius: 4px; background: #fff; color: var(--ink); }
    .form-error { margin: 0 0 14px; color: var(--red); font-size: 13px; }
    .form-error[hidden] { display: none; }
    .login-back { margin-top: 18px; }
    .staff-nav { display: flex; align-items: center; gap: 8px; }
    .list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .list-heading .section-title { margin-bottom: 14px; }
    .list-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
    .link-check-status { margin: 0 0 14px; }
    .link-check-status[hidden] { display: none; }
    .link-check-status progress { width: 100%; height: 7px; accent-color: var(--green); }
    .link-check-status p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
    .link-check-help { margin: 0 0 14px; color: var(--muted); font-size: 10px; line-height: 1.5; }
    .broken-links-section { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
    .broken-links-section .section-title { padding: 0; }
    .broken-links-list { display: grid; gap: 7px; }
    .broken-link-row { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 1px solid var(--line); background: var(--surface); }
    .broken-link-row > div { min-width: 0; display: grid; gap: 4px; }
    .broken-link-row strong, .broken-link-row span { overflow-wrap: anywhere; font-size: 11px; }
    .broken-link-row span { color: var(--muted); font-family: 'DM Mono', monospace; }
    .broken-link-row small { color: var(--red); font-size: 10px; }
    .small-button:disabled { cursor: not-allowed; opacity: .5; }
    .movies-main { width: min(100% - 40px, 1080px); }
    .movie-search-wrap { position: relative; margin-top: 26px; }
    .movie-results-count { margin: 0 0 12px; color: var(--muted); font: 11px 'DM Mono', monospace; }
    .movie-entry-section { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
    .movie-entry-section h2 { margin: 0 0 12px; font: 600 17px 'Space Grotesk', sans-serif; }
    .movie-link-list { display: grid; gap: 8px; }
    .movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px 16px; }
    .movie-card { min-width: 0; display: grid; gap: 9px; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; }
    .movie-card:hover .movie-poster { outline: 2px solid var(--green); outline-offset: 2px; }
    .movie-poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; background: #e5e8df; }
    .movie-poster-placeholder, .manage-movie-placeholder { display: grid; place-items: center; color: var(--green); font-size: 32px; }
    .movie-poster-placeholder { background: #e5e8df; }
    .movie-card-title { overflow-wrap: anywhere; font: 600 14px/1.4 'Space Grotesk', sans-serif; }
    .movie-dialog { width: min(100% - 32px, 960px); max-width: 960px; padding: 14px; border: 1px solid #3e4940; border-radius: 6px; background: #18211b; color: white; }
    .movie-dialog::backdrop { background: #101610d9; }
    .movie-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
    .movie-dialog-heading strong { overflow-wrap: anywhere; font: 600 16px 'Space Grotesk', sans-serif; }
    .movie-dialog .small-button { flex: 0 0 auto; }
    .movie-dialog video { display: block; width: 100%; max-height: min(72vh, 720px); background: #050705; }
    .movie-dialog iframe { display: block; width: 100%; height: min(72vh, 720px); border: 0; background: #050705; }
    .movie-dialog iframe[hidden], .movie-dialog video[hidden] { display: none; }
    .staff-movies { margin-top: 34px; }
    .movie-add-form { max-width: 520px; margin-bottom: 16px; }
    .manage-movie-list { display: grid; gap: 8px; }
    .manage-movie { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
    .manage-movie img { width: 40px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; background: #e5e8df; }
    .manage-movie strong { overflow-wrap: anywhere; font-size: 12px; }
    .manage-movie-placeholder { width: 40px; aspect-ratio: 2 / 3; border-radius: 3px; background: #e5e8df; font-size: 18px; }
    .manage-movie-copy { min-width: 0; display: grid; gap: 4px; }
    .manage-movie-type { color: var(--muted); font: 10px 'DM Mono', monospace; }
    .site-text-editor { height: 100%; overflow-y: auto; padding-right: 5px; }
    .site-text-form { max-width: 820px; }
    .site-text-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-bottom: 24px; }
    .site-text-group .section-title { grid-column: 1 / -1; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
    .site-text-group .field textarea { min-height: 76px; }
    .site-theme-form { max-width: 680px; }
    .theme-fieldset { margin: 0 0 22px; padding: 0; border: 0; }
    .theme-fieldset legend { padding: 0; }
    .theme-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .theme-option { min-width: 0; display: grid; gap: 10px; padding: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
    .theme-option:has(input:checked) { border-color: var(--green); outline: 2px solid var(--green); outline-offset: 1px; }
    .theme-option input { width: 17px; height: 17px; margin: 0; accent-color: var(--green); }
    .theme-option strong { font-size: 13px; }
    .theme-swatches { display: flex; height: 64px; border: 1px solid var(--line); }
    .theme-swatches i { flex: 1; }
    [data-theme-swatch="default"] { background: #ffffff; }
    [data-theme-swatch-accent="default"] { background: #28634c; }
    [data-theme-swatch="halloween"] { background: #0D1117; }
    [data-theme-swatch-accent="halloween"] { background: #FF6B35; }
    [data-theme-swatch="christmas"] { background: #F4F8F4; }
    [data-theme-swatch-accent="christmas"] { background: #B33A3A; }
    .theme-save { max-width: 320px; }
    .site-identity-section { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); }
    .site-identity-form { max-width: 520px; }
    .site-icon-preview { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--muted); font-size: 12px; }
    .site-icon-preview img { width: 32px; height: 32px; object-fit: contain; border: 1px solid var(--line); background: var(--surface); }

    :root[data-theme="halloween"] .board-warning,
    :root[data-theme="halloween"] .announcement-banner { border-color: var(--yellow); background: var(--yellow-soft); color: var(--ink); }
    :root[data-theme="halloween"] .board-warning strong,
    :root[data-theme="halloween"] .announcement-banner strong,
    :root[data-theme="halloween"] .announcement-banner span { color: var(--yellow); }
    :root[data-theme="halloween"] .empty,
    :root[data-theme="halloween"] .manage-empty { border-color: var(--line); color: var(--muted); }
    :root[data-theme="halloween"] .primary-button:hover { background: #e45a28; }

    @media (max-width: 650px) {
      .topbar { height: 60px; padding: 0 20px; }
      main { width: min(100% - 32px, 900px); padding-top: 36px; }
      .staff-main { width: min(100% - 32px, 1100px); height: auto; min-height: calc(100dvh - 60px); overflow: visible; padding-top: 25px; padding-bottom: 30px; }
      .shutdown-main { width: min(100% - 32px, 680px); min-height: calc(100dvh - 60px); }
      .movies-main { width: min(100% - 32px, 1080px); }
      .site-footer { width: min(100% - 32px, 900px); align-items: flex-start; flex-direction: column; }
      h1 { font-size: 32px; }
      .intro { margin-bottom: 23px; font-size: 14px; }
      .filters { align-items: flex-start; flex-direction: column; }
      .entry { align-items: flex-start; padding: 14px; }
      .entry-meta { align-items: flex-end; }
      .staff-shell { min-height: calc(100dvh - 115px); }
      .staff-heading-title { gap: 10px; }
      .staff-heading h1 { font-size: 24px; }
      .staff-layout { position: relative; }
      .staff-tabs { position: absolute; top: 0; left: 0; z-index: 3; width: min(78vw, 250px); max-height: calc(100dvh - 220px); padding: 8px; border: 1px solid var(--line); background: var(--surface); }
      .staff-content { min-height: 420px; }
      .staff-workspace, .announcement-workspace { height: auto; grid-template-columns: 1fr; gap: 22px; }
      .staff-workspace > section:first-child, .staff-list-panel { overflow: visible; }
      .manage-top { gap: 8px; }
      .login-main { width: min(100% - 32px, 420px); padding-top: 42px; }
      .staff-nav { width: 100%; }
      .manage-actions { flex-wrap: wrap; justify-content: flex-end; }
      .published-link { align-items: flex-start; }
      .top-navigation { gap: 14px; }
      .personal-settings { margin-left: 12px; }
      .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
      .manage-movie-list { grid-template-columns: 1fr; }
      .site-text-editor { overflow: visible; }
      .site-text-group { grid-template-columns: 1fr; }
      .theme-options { grid-template-columns: 1fr; }
      .theme-option { grid-template-columns: 20px minmax(0, 1fr); align-items: center; }
      .theme-option input { grid-column: 1; grid-row: 1 / span 2; }
      .theme-swatches { grid-column: 2; height: 40px; }
      .theme-option strong { grid-column: 2; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    }
