    @import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

    :root {
      color-scheme: light dark;
      --paper: #f5f1e8;
      --paper-2: #fffdf8;
      --ink: #171717;
      --muted: #6d6961;
      --line: #d8d1c4;
      --soft: #e9e2d6;
      --red: #e23d2f;
      --red-deep: #b82d23;
      --yellow: #f4bd32;
      --blue: #1f66c4;
      --green: #2c7a57;
      --shadow: 0 14px 36px rgba(32, 27, 20, .10);
      --shadow-sm: 0 5px 16px rgba(32, 27, 20, .08);
      --sidebar: #1a1a19;
      --sidebar-ink: #f8f4ea;
      --danger-soft: #fbe3df;
    }

    @media (prefers-color-scheme: dark) {
      :root {
        --paper: #171716;
        --paper-2: #222220;
        --ink: #f7f1e7;
        --muted: #b7b1a7;
        --line: #3d3a35;
        --soft: #2c2a27;
        --red: #ff5a49;
        --red-deep: #ff7a6d;
        --yellow: #f2bf45;
        --blue: #67a4ee;
        --green: #68be91;
        --shadow: 0 16px 38px rgba(0, 0, 0, .28);
        --shadow-sm: 0 5px 16px rgba(0, 0, 0, .22);
        --sidebar: #0f0f0e;
        --sidebar-ink: #f8f4ea;
        --danger-soft: #44231f;
      }
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      min-width: 320px;
      min-height: 100vh;
      background: var(--paper);
      color: var(--ink);
      font-family: "IBM Plex Sans", sans-serif;
      font-size: 15px;
      line-height: 1.45;
      overflow-x: hidden;
    }
    button, input, textarea, select { font: inherit; }
    button { color: inherit; }
    button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
      outline: 3px solid color-mix(in srgb, var(--blue) 38%, transparent);
      outline-offset: 2px;
    }
    button, a { -webkit-tap-highlight-color: transparent; }
    .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

    .app-shell { min-height: 100vh; display: grid; grid-template-columns: 226px minmax(0, 1fr); }
    .sidebar {
      position: fixed;
      inset: 0 auto 0 0;
      width: 226px;
      padding: 28px 18px 22px;
      background: var(--sidebar);
      color: var(--sidebar-ink);
      display: flex;
      flex-direction: column;
      z-index: 30;
      border-right: 1px solid rgba(255,255,255,.09);
    }
    .season {
      display: flex;
      align-items: center;
      gap: 11px;
      margin: 0 8px 30px;
      color: #fff9ef;
      font-weight: 700;
      letter-spacing: -.01em;
    }
    .season-mark {
      width: 32px;
      height: 32px;
      display: grid;
      place-items: center;
      border-radius: 9px 2px 9px 2px;
      background: var(--red);
      color: white;
      font-family: "Archivo Black", sans-serif;
      transform: rotate(-2deg);
    }
    .season small { display: block; color: #aaa69d; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-top: 1px; }
    .nav { display: grid; gap: 5px; }
    .nav button {
      width: 100%;
      border: 0;
      background: transparent;
      color: #bdb9b0;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 11px 12px;
      border-radius: 8px;
      cursor: pointer;
      text-align: left;
      font-weight: 600;
    }
    .nav button:hover { color: white; background: rgba(255,255,255,.06); }
    .nav button.active { color: #fff; background: #30302e; }
    .nav button.active::before { content: ""; width: 4px; height: 20px; background: var(--yellow); border-radius: 4px; margin-left: -12px; }
    .nav button.active .icon { margin-left: -4px; }
    .sidebar-spacer { flex: 1; }
    .demo-note {
      border-top: 1px solid rgba(255,255,255,.12);
      padding: 18px 8px 0;
      color: #a9a59d;
      font-size: 12px;
      line-height: 1.5;
    }
    .demo-note strong { color: #e7e1d6; font-size: 12px; }

    .workspace { grid-column: 2; min-width: 0; }
    .topbar {
      height: 74px;
      padding: 0 30px;
      border-bottom: 1px solid var(--line);
      background: color-mix(in srgb, var(--paper) 92%, transparent);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(12px);
    }
    .today { color: var(--muted); font-size: 13px; }
    .today strong { color: var(--ink); display: block; font-size: 14px; }
    .top-actions { display: flex; align-items: center; gap: 10px; }
    .btn {
      border: 1px solid var(--line);
      background: var(--paper-2);
      padding: 10px 14px;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      cursor: pointer;
      font-weight: 700;
      transition: background .15s ease, border-color .15s ease, transform .15s ease;
    }
    .btn:hover { border-color: var(--ink); }
    .btn:active { transform: translateY(1px); }
    .btn.primary { background: var(--red); border-color: var(--red); color: white; }
    .btn.primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
    .btn.dark { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }
    .btn.small { padding: 8px 11px; font-size: 13px; }
    .user-chip { border: 1px solid var(--line); background: var(--paper-2); border-radius: 999px; padding: 6px 10px 6px 7px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
    .user-dot { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: #2a2110; font-weight: 800; }
    .user-chip span:last-child { font-size: 13px; font-weight: 700; }

    .content { padding: 30px; max-width: 1520px; margin: 0 auto; }
    .view { display: none; }
    .view.active { display: block; }
    .dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(285px, .65fr); gap: 26px; align-items: start; }
    .main-column { min-width: 0; }
    .right-rail { min-width: 0; display: grid; gap: 18px; position: sticky; top: 96px; }

    .hero {
      min-height: 260px;
      background: var(--red);
      color: white;
      position: relative;
      overflow: hidden;
      padding: 34px 38px;
      display: grid;
      grid-template-columns: 1.3fr .7fr;
      align-items: end;
      border-radius: 4px 22px 4px 22px;
      box-shadow: var(--shadow);
    }
    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      opacity: .16;
      background-image: repeating-linear-gradient(135deg, transparent 0 12px, #fff 12px 14px);
      clip-path: polygon(60% 0,100% 0,100% 100%,30% 100%);
    }
    .hero-copy { position: relative; z-index: 1; max-width: 680px; }
    .edition { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
    .edition::before { content: ""; width: 28px; height: 3px; background: var(--yellow); }
    .hero h1 { margin: 0; font-family: "Archivo Black", sans-serif; font-size: clamp(34px, 4vw, 56px); line-height: .98; letter-spacing: -.045em; max-width: 710px; }
    .hero p { margin: 17px 0 0; font-size: 16px; max-width: 570px; color: #fff1ed; }
    .hero-badge { position: relative; z-index: 1; justify-self: end; width: 155px; height: 155px; border: 3px solid rgba(255,255,255,.75); border-radius: 50%; display: grid; place-items: center; text-align: center; transform: rotate(5deg); background: rgba(123,20,14,.26); }
    .hero-badge strong { font-family: "Archivo Black", sans-serif; font-size: 37px; line-height: 1; display: block; }
    .hero-badge span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }

    .section-head { margin: 30px 0 14px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
    .section-head h2 { margin: 0; font-family: "Archivo Black", sans-serif; font-size: 23px; letter-spacing: -.025em; }
    .section-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
    .text-link { border: 0; background: transparent; color: var(--red); cursor: pointer; padding: 5px 0; font-weight: 700; }

    .podium { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
    .candidate-card {
      position: relative;
      background: var(--paper-2);
      border: 1px solid var(--line);
      padding: 18px;
      min-height: 192px;
      box-shadow: var(--shadow-sm);
      overflow: hidden;
    }
    .candidate-card.first { border-top: 5px solid var(--yellow); }
    .candidate-card.second { border-top: 5px solid var(--blue); }
    .candidate-card.third { border-top: 5px solid var(--red); }
    .rank-no { position: absolute; top: 10px; right: 14px; font-family: "Archivo Black"; font-size: 38px; color: var(--soft); }
    .avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-family: "Archivo Black"; font-size: 20px; color: white; margin-bottom: 15px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); }
    .avatar.red { background: #cf3a2e; }
    .avatar.blue { background: #2d6ebf; }
    .avatar.green { background: #368064; }
    .avatar.yellow { background: #c88b11; }
    .avatar.ink { background: #474641; }
    .candidate-card h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
    .candidate-card .crew { color: var(--muted); font-size: 12px; margin-top: 2px; }
    .score-row { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .score { font-size: 13px; color: var(--muted); }
    .score strong { color: var(--ink); font-size: 20px; margin-right: 3px; }
    .score-detail { margin-top: 4px; color: var(--muted); font-size: 11px; }
    .vote-btn { border: 1px solid var(--line); background: transparent; padding: 7px 9px; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 12px; }
    .vote-btn:hover, .vote-btn.voted { background: var(--yellow); border-color: var(--yellow); color: #221a08; }

    .story-feed { display: grid; gap: 12px; }
    .story {
      background: var(--paper-2);
      border: 1px solid var(--line);
      padding: 20px 22px;
      display: grid;
      grid-template-columns: 8px minmax(0,1fr) auto;
      gap: 16px;
      align-items: stretch;
    }
    .story-accent { width: 8px; height: 100%; min-height: 92px; background: var(--red); border-radius: 2px; }
    .story:nth-child(2n) .story-accent { background: var(--blue); }
    .story-content { min-width: 0; display: grid; align-content: center; }
    .story-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 12px; }
    .tag { background: var(--soft); padding: 3px 7px; border-radius: 4px; font-weight: 700; color: var(--blue); }
    .story h3 { margin: 7px 0 4px; font-size: 17px; letter-spacing: -.015em; overflow-wrap: anywhere; }
    .story p { margin: 0; color: var(--muted); max-width: 760px; overflow-wrap: anywhere; }
    .story-content > p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
    .story-media-note { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 9px; color: var(--blue); font-size: 12px; font-weight: 700; }
    .story-actions { display: flex; flex-direction: column; justify-content: center; gap: 7px; align-items: stretch; }
    .story-actions button { white-space: nowrap; }
    .read-story-btn { border-color: var(--blue); color: var(--blue); }
    .read-story-btn:hover { background: var(--blue); border-color: var(--blue); color: var(--paper-2); }
    .danger-link { border: 0; background: transparent; color: var(--muted); padding: 6px; cursor: pointer; font-size: 12px; }
    .danger-link:hover { color: var(--red); }
    .story.reported { grid-template-columns: 8px minmax(0,1fr); background: var(--danger-soft); }
    .story.reported .story-accent { background: var(--red); }
    .story.reported .story-content { min-height: 74px; }
    .story.reported h3 { margin: 0 0 7px; }
    .story.reported .reported-by { color: var(--red-deep); font-size: 13px; font-weight: 700; }

    .rail-card { background: var(--paper-2); border: 1px solid var(--line); padding: 20px; }
    .rail-card h3 { margin: 0 0 4px; font-size: 16px; }
    .rail-card > p { color: var(--muted); margin: 0 0 16px; font-size: 13px; }
    .liada-title { font-family: "Archivo Black"; font-size: 22px; line-height: 1.08; margin: 12px 0 8px; }
    .quote-mark { font-family: Georgia, serif; font-size: 52px; color: var(--red); line-height: .65; }
    .liada-by { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
    .liada-by .avatar { width: 34px; height: 34px; font-size: 12px; margin: 0; }
    .progress-shell { height: 7px; background: var(--soft); border-radius: 9px; overflow: hidden; margin: 12px 0 6px; }
    .progress-bar { width: 68%; height: 100%; background: var(--red); }
    .meter-copy { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
    .live-status { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 11px; font-weight: 700; }
    .live-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
    .rules-mini { display: grid; gap: 12px; margin-top: 14px; }
    .rule-row { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
    .rule-no { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); font-size: 11px; font-weight: 800; }
    .rule-row strong { display: block; font-size: 13px; }
    .rule-row span { color: var(--muted); font-size: 12px; }

    .page-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 5px 0 26px; }
    .page-head h1 { margin: 0; font-family: "Archivo Black"; font-size: 38px; letter-spacing: -.04em; }
    .page-head p { margin: 6px 0 0; color: var(--muted); }
    .candidate-list { background: var(--paper-2); border: 1px solid var(--line); }
    .candidate-row { display: grid; grid-template-columns: 52px minmax(150px, .8fr) minmax(150px,1.25fr) 120px 140px; gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
    .candidate-row:last-child { border-bottom: 0; }
    .candidate-row .avatar { margin: 0; width: 44px; height: 44px; font-size: 15px; }
    .candidate-row h3 { margin: 0; font-size: 16px; }
    .candidate-row p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
    .candidate-quote { display: block; margin-top: 3px; color: var(--ink); }
    .score-breakdown { display: flex; gap: 18px; align-items: center; }
    .stat-pair { min-width: 72px; }
    .stat-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; display: block; }
    .stat-value { font-weight: 800; font-size: 18px; }
    .candidate-row .row-actions { justify-self: end; }

    .all-stories { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
    .all-stories .story { grid-template-columns: 7px minmax(0,1fr); }
    .all-stories .story-actions { grid-column: 2; flex-direction: row; align-items: center; }
    .all-stories .danger-link { margin-left: auto; }

    .rules-page { max-width: 880px; }
    .rules-intro { background: var(--yellow); color: #221a08; padding: 28px 30px; border-radius: 3px 18px 3px 18px; margin-bottom: 18px; }
    .rules-intro h2 { margin: 0 0 6px; font-family: "Archivo Black"; font-size: 26px; }
    .rules-intro p { margin: 0; max-width: 690px; }
    .rules-list { background: var(--paper-2); border: 1px solid var(--line); }
    .rules-list .rule { display: grid; grid-template-columns: 48px 1fr; gap: 15px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
    .rules-list .rule:last-child { border: 0; }
    .rules-list .big-no { font-family: "Archivo Black"; font-size: 28px; color: var(--red); }
    .rules-list h3 { margin: 1px 0 4px; font-size: 16px; }
    .rules-list p { margin: 0; color: var(--muted); }

    .mobile-nav { display: none; }

    .modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,9,.68); display: none; place-items: center; padding: 20px; overflow-y: auto; overscroll-behavior-y: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
    .modal-backdrop.open { display: grid; }
    .modal { width: min(520px, 100%); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior-y: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; background: var(--paper-2); box-shadow: 0 28px 80px rgba(0,0,0,.36); border-radius: 5px 22px 5px 22px; }
    .modal-head { display: flex; justify-content: space-between; gap: 20px; padding: 24px 26px 18px; border-bottom: 1px solid var(--line); }
    .modal-head h2 { margin: 0; font-family: "Archivo Black"; font-size: 24px; }
    .modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
    .close-btn { border: 0; background: var(--soft); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex: 0 0 auto; }
    .form { padding: 22px 26px 26px; display: grid; gap: 16px; }
    .field { display: grid; gap: 6px; }
    .field label { font-weight: 700; font-size: 13px; }
    .field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 7px; padding: 11px 12px; }
    .field textarea { min-height: 108px; resize: vertical; }
    .field-help { color: var(--muted); font-size: 11px; }
    .form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 4px; }
    .prototype-strip { background: var(--soft); color: var(--muted); padding: 9px 12px; font-size: 11px; border-radius: 6px; }
    .field input[type="file"] { padding: 8px; }
    .field input[type="file"]::file-selector-button { border: 0; border-radius: 6px; background: var(--ink); color: var(--paper-2); padding: 8px 10px; margin-right: 10px; cursor: pointer; font-weight: 700; }
    .upload-preview { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
    .upload-preview:empty { display: none; }
    .upload-preview-item { aspect-ratio: 1; min-width: 0; background: var(--soft); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; position: relative; }
    .upload-preview-item img, .upload-preview-item video { width: 100%; height: 100%; object-fit: cover; }
    .upload-preview-item > span { position: absolute; left: 4px; right: 4px; bottom: 4px; padding: 3px 5px; background: rgba(0,0,0,.72); color: white; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .story-detail-modal { width: min(780px, 100%); }
    .story-detail { padding: 24px 26px 28px; }
    .story-detail .story-meta { margin-bottom: 10px; }
    .story-detail-body { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; text-align: center; }
    .story-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 22px; touch-action: pan-y; }
    .story-media-grid:empty { display: none; }
    .story-media-grid figure { margin: 0; min-width: 0; background: var(--soft); border: 1px solid var(--line); position: relative; touch-action: pan-y; }
    .story-media-grid img, .story-media-grid video { display: block; width: 100%; max-height: 440px; object-fit: contain; background: #0d0d0c; touch-action: pan-y pinch-zoom; }
    .story-media-grid figcaption { padding: 8px 10px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
    .media-expand-btn { position: absolute; top: 7px; right: 7px; z-index: 2; border: 1px solid rgba(255,255,255,.45); border-radius: 7px; background: rgba(10,10,9,.76); color: white; padding: 7px 9px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 11px; font-weight: 700; }
    .media-expand-btn:hover { background: rgba(10,10,9,.95); }
    .media-expand-btn .icon { width: 16px; height: 16px; }
    .media-lightbox { position: fixed; inset: 0; z-index: 180; height: 100dvh; display: none; grid-template-rows: auto minmax(0,1fr); background: #080808; color: white; overscroll-behavior: contain; }
    .media-lightbox.open { display: grid; }
    .media-lightbox-bar { min-height: 58px; padding: 10px max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #141413; border-bottom: 1px solid rgba(255,255,255,.16); }
    .media-lightbox-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #d8d4cd; }
    .media-lightbox-actions { display: flex; gap: 8px; flex: 0 0 auto; }
    .media-lightbox-actions button { border: 1px solid rgba(255,255,255,.28); border-radius: 7px; background: #242422; color: white; padding: 8px 10px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; font-size: 12px; }
    .media-lightbox-actions button[hidden], .media-lightbox:fullscreen #native-fullscreen-btn { display: none; }
    .media-lightbox-actions .icon { width: 17px; height: 17px; }
    .media-lightbox-stage { min-height: 0; display: grid; place-items: center; padding: 14px; overflow: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; -webkit-overflow-scrolling: touch; }
    .media-lightbox-stage img, .media-lightbox-stage video { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; touch-action: pan-y pinch-zoom; }

    .toast { position: fixed; right: 24px; bottom: 24px; z-index: 200; width: min(390px, calc(100vw - 48px)); background: var(--ink); color: var(--paper-2); padding: 13px 15px; box-shadow: var(--shadow); display: none; align-items: center; justify-content: space-between; gap: 12px; border-radius: 8px; }
    .toast.show { display: flex; }
    .toast button { border: 0; background: transparent; color: var(--yellow); font-weight: 800; cursor: pointer; }

    @media (max-width: 1120px) {
      .dashboard-grid { grid-template-columns: 1fr; }
      .right-rail { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
      .hero h1 { font-size: clamp(34px, 5vw, 48px); }
    }
    @media (max-width: 820px) {
      .app-shell { display: block; }
      .sidebar { display: none; }
      .workspace { width: 100%; }
      .topbar { padding: 0 16px; height: 66px; }
      .today { display: none; }
      .content { padding: 18px 14px 90px; }
      .top-actions .btn:not(.primary) { display: none; }
      .hero { grid-template-columns: 1fr; padding: 28px 24px; min-height: 300px; }
      .hero-badge { width: 104px; height: 104px; position: absolute; right: 18px; bottom: 18px; opacity: .42; }
      .hero-badge strong { font-size: 28px; }
      .hero h1 { font-size: clamp(34px, 11vw, 47px); max-width: 94%; }
      .hero p { max-width: 76%; }
      .podium { grid-template-columns: 1fr; }
      .candidate-card { min-height: 0; display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; }
      .candidate-card .avatar { margin: 0; }
      .candidate-card .score-row { margin: 0; display: grid; text-align: right; }
      .rank-no { display: none; }
      .story { grid-template-columns: 6px minmax(0,1fr); padding: 16px; }
      .story-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
      .right-rail { grid-template-columns: 1fr; }
      .candidate-list { display: grid; gap: 10px; border: 0; background: transparent; }
      .candidate-row { grid-template-columns: 48px 1fr auto; padding: 16px; border: 1px solid var(--line); background: var(--paper-2); }
      .candidate-row > div:nth-child(3) { grid-column: 2 / -1; }
      .candidate-row > div:nth-child(4) { grid-column: 2; }
      .score-breakdown { flex-wrap: wrap; gap: 10px 18px; }
      .candidate-row .row-actions { grid-column: 3; grid-row: 1 / 3; }
      .all-stories { grid-template-columns: 1fr; }
      .story-media-grid { grid-template-columns: 1fr; }
      .story-media-grid img, .story-media-grid video { max-height: min(70dvh, 560px); height: auto; }
      .modal-backdrop.open { display: flex; align-items: flex-start; justify-content: center; }
      .modal { max-height: none; overflow: visible; flex: 0 0 auto; }
      .page-head { align-items: flex-start; }
      .page-head h1 { font-size: 31px; }
      .mobile-nav { position: fixed; left: 10px; right: 10px; bottom: 9px; z-index: 50; background: var(--sidebar); color: #bebbb4; padding: 7px; display: grid; grid-template-columns: repeat(4,1fr); border-radius: 13px; box-shadow: 0 13px 34px rgba(0,0,0,.28); }
      .mobile-nav button { border: 0; background: transparent; color: inherit; display: grid; place-items: center; gap: 2px; padding: 5px 2px; font-size: 10px; cursor: pointer; }
      .mobile-nav button.active { color: white; }
      .mobile-nav button.active .icon { color: var(--yellow); }
    }
    @media (max-width: 500px) {
      .top-actions .primary span { display: none; }
      .hero p { max-width: 100%; padding-right: 36px; }
      .section-head { align-items: start; }
      .story-actions .btn { flex: 1 1 150px; }
      .upload-preview { grid-template-columns: repeat(2, minmax(0,1fr)); }
      .rules-list .rule { grid-template-columns: 38px 1fr; padding: 17px 15px; }
      .modal-backdrop { padding: 10px; }
      .form, .modal-head, .story-detail { padding-left: 18px; padding-right: 18px; }
      .media-lightbox-bar { padding-top: max(10px, env(safe-area-inset-top)); }
      .media-lightbox-name { display: none; }
      .media-lightbox-actions { width: 100%; justify-content: space-between; }
      .media-lightbox-stage { padding: 8px; }
      #native-fullscreen-btn span { display: none; }
    }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---- Producción: añadidos sobre el prototipo ---- */
.empty-state { padding: 30px 18px; color: var(--muted); text-align: center; background: var(--paper-2); border: 1px dashed var(--line); border-radius: 10px; font-size: 14px; }
.empty-state strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 5px; }
.vote-btn:disabled, .btn:disabled { opacity: .45; cursor: not-allowed; }
.loading-line { padding: 26px; color: var(--muted); text-align: center; font-size: 14px; }
