    :root {
      font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
      color: #0f172a;
      background: #f1f5f9;
      --lp-max-width: 960px;
    }
    /* whitespace and background remain calm to frame content without noise */
    body {
      margin: 0;
      padding: 28px 0 16px 0;
      min-height: 100vh;
      background: #f1f5f9;
      color: #0f172a;
    }
    p a:not(.lp-cta):not(.lp-cta--secondary),
    p a:not(.lp-cta):not(.lp-cta--secondary):visited,
    .faq-a a, .faq-a a:visited { color: #2563eb; text-decoration: underline; text-decoration-thickness: 1px;
      text-underline-offset: 2px; text-decoration-color: rgba(37, 99, 235, .45); }
    p a:not(.lp-cta):not(.lp-cta--secondary):hover,
    .faq-a a:hover { text-decoration-color: currentColor; }
    /* Links in text are underlined (accessibility audit 2026-11-12): blue on
       grey text alone (1.5:1 between them) can't be told apart without colour. */
    /* No dark-mode link colour (2026-11-03, Clint: "fix the links"): pages are
       always light and every <body> carries data-theme="dark", so #60a5fa
       landed on white everywhere -- hard to read. The one dark surface with
       prose links is the player's pop-up card (#111, white only in the light
       player outside cinema -- same switch as .lp-embed-card itself). */
    .lp-embed-card p a:not(.lp-cta):not(.lp-cta--secondary),
    .lp-embed-card p a:not(.lp-cta):not(.lp-cta--secondary):visited { color: #60a5fa; }
    body[data-theme="light"]:not(.lp-cinema) .lp-embed-card p a:not(.lp-cta):not(.lp-cta--secondary),
    body[data-theme="light"]:not(.lp-cinema) .lp-embed-card p a:not(.lp-cta):not(.lp-cta--secondary):visited { color: #2563eb; }
    /* Ensure the HTML `hidden` attribute always wins, even if other classes set `display`. */
    [hidden] {
      display: none !important;
    }
    .skip-to-content {
      position: absolute;
      top: -200%;
      left: 0;
      z-index: 9999;
      background: #0f172a;
      color: #fff;
      padding: 8px 16px;
      border-radius: 0 0 8px 0;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
    }
    .skip-to-content:focus {
      top: 0;
    }
    nav {
      background: #f1f5f9;
      border-bottom: 1px solid #e2e8f0;
      position: sticky;
      top: 0;
      z-index: 10;
      padding-top: 8px;
      padding-bottom: 8px;
      margin-top: 6px;
    }
    .nav-shell {
      width: min(var(--lp-max-width), calc(100% - 48px));
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }
    .nav-left {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }
    .nav-left a {
      font-size: 1.5rem;
      letter-spacing: 0.08em;
      font-weight: 600;
      text-transform: uppercase;
      color: #0f172a;
      text-decoration: none;
      white-space: nowrap;
    }
    /* Header comet a third bigger than the letters (Clint 2026-11-28: the icon read too small);
       other pages keep brand.py's text-height mark. !important beats the mark's inline style. */
    .nav-left a .lp-brand-mark {
      height: 1.4em !important;
      vertical-align: -0.34em !important;
    }
    .nav-search {
      display: flex;
      gap: 8px;
      align-items: center;
    }
    .nav-search input {
      border: 1px solid #e2e8f0;
      border-radius: 999px;
      padding: 6px 14px;
      font-size: 13px;
      background: #ffffff;
      width: 200px;
    }
    .nav-search button {
      background: #0f172a;
      color: #fff;
      border: none;
      border-radius: 999px;
      padding: 6px 14px;
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .nav-right {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 18px;
      min-width: fit-content;
    }
    .nav-actions {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: nowrap;
      white-space: nowrap;
    }
    .nav-actions a {
      text-decoration: none;
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #0f172a;
      padding: 8px 2px;
      display: inline-flex;
      align-items: center;
    }
    .site-maintenance-banner {
      background: #fef3c7;
      border-bottom: 1px solid #f59e0b;
      color: #92400e;
      padding: 10px 18px;
      text-align: center;
      font-size: 14px;
      line-height: 1.4;
    }
    .site-maintenance-banner p { margin: 0; }
    .theme-toggle {
      border: 1px solid #cbd5e1;
      border-radius: 999px;
      background: #ffffff;
      color: #334155;
      padding: 6px 10px;
      font-size: 11px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      cursor: pointer;
      line-height: 1;
      white-space: nowrap;
    }
    .theme-toggle:hover {
      border-color: #94a3b8;
      color: #0f172a;
    }
    body[data-theme="dark"] .theme-toggle {
      background: #0f172a;
      border-color: #334155;
      color: #f8fafc;
    }
    body[data-theme="dark"] .theme-toggle:hover {
      border-color: #64748b;
      color: #ffffff;
    }
    main {
      /* 100% minus padding (24+24) and border (1+1): with 48px alone the box
         came out 2px wider than the window between ~901 and ~1100px wide, and
         every page scrolled sideways by 2px (found 2026-11-07). */
      width: min(var(--lp-max-width), calc(100% - 50px));
      margin: 16px auto 22px;
      background: #fff;
      border-radius: 18px;
      padding: 24px 24px;
      border: 1px solid #e2e8f0;
      min-height: 600px;
    }
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible,
    [tabindex]:focus-visible {
      outline: 2px solid #1d4ed8;
      outline-offset: 2px;
    }
    h1 {
      font-size: 28px;
      font-weight: 700;
      margin-bottom: 20px;
      border-bottom: 1px solid #e2e8f0;
      padding-bottom: 10px;
    }
    h2 {
      font-size: 16px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-top: 32px;
    }
    p {
      line-height: 1.6;
    }
    .muted {
      color: #475569;
    }
    .status-error,
    .form-error {
      color: #991b1b;
    }
    .muted.small {
      font-size: 13px;
    }
    .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;
    }
    .grid {
      display: grid;
      gap: 20px;
    }
    .card {
      display: flex;
      align-items: center;
      gap: 20px;
      border: 1px solid #e2e8f0;
      border-radius: 16px;
      padding: 16px;
      background: #f8fafc;
    }
    .card-thumb {
      width: 240px;
      height: auto;
      border-radius: 12px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      aspect-ratio: 16 / 9;
      background: none;
      flex-shrink: 0;
      transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
      border: 1px solid transparent;
    }
    .card-thumb.is-portrait {
      width: 168px;
      aspect-ratio: 9 / 16;
    }
    .card-thumb.is-square {
      aspect-ratio: 1 / 1;
    }
    .card-thumb.is-classic {
      aspect-ratio: 4 / 3;
    }
    .card-thumb.is-wide {
      aspect-ratio: 37 / 20;
    }
    /* "Watched" / "In progress" on a signed-in viewer's own cards (2026-11-14). */
    .card-thumb:has(> .lp-watch-label) { position: relative; }
    .lp-watch-label {
      position: absolute;
      left: 8px;
      bottom: 8px;
      z-index: 2;
      font: 600 12px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
      letter-spacing: 0.01em;
      padding: 6px 9px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.82);
      color: #fff;
      pointer-events: none;
      white-space: nowrap;
    }
    .lp-watch-label.is-owner-only { background: rgba(146, 64, 14, 0.92); }
    .card-thumb.is-ultrawide {
      aspect-ratio: 239 / 100;
    }
    .card-thumb img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }
    .card-thumb-link {
      text-decoration: none;
      display: inline-block;
      position: relative;
    }
    /* Hover preview plays IN the thumbnail's own box (Clint 2026-11-19:
       "make the thumbnail turn into the preview on rollover rather than
       pop out"). The script sets left/top/width/height from the .card-thumb
       it sits over, so every shape (portrait, ultrawide, custom crop) is
       covered exactly; inset: 0 is the fallback. Film shape respected:
       contain, never cover. */
    .card-thumb-preview {
      position: absolute;
      inset: 0;
      --preview-aspect: 16 / 9;
      border-radius: 12px;
      overflow: hidden;
      background: none;
      border: 1px solid transparent;
      box-sizing: border-box;
      z-index: 2;
      opacity: 0;
      visibility: hidden;
      transition: opacity 180ms ease, transform 180ms ease;
      pointer-events: none;
    }
    .card-thumb-preview-image,
    .card-thumb-preview-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
      transition: opacity 180ms ease;
    }
    .card-thumb-preview-image {
      background: none;
    }
    .card-thumb-preview-video {
      background: transparent;
    }
    .card-thumb-preview-video {
      opacity: 0;
    }
    .card-thumb-preview-image {
      opacity: 1;
    }
    .card-thumb-preview.is-video-ready .card-thumb-preview-video {
      opacity: 1;
    }
    .card-thumb-preview.is-video-ready .card-thumb-preview-image {
      opacity: 0;
    }
    @media (min-width: 960px) and (hover: hover) and (pointer: fine) {
      .card-thumb-link:hover .card-thumb {
        transform: scale(1.02);
        border-color: rgba(14, 116, 144, 0.5);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
      }
      .card-thumb-link:hover .card-thumb-preview,
      .card-thumb-link:focus-within .card-thumb-preview {
        opacity: 1;
        visibility: visible;
        transform: scale(1.02);
        border-color: rgba(14, 116, 144, 0.5);
      }
      /* "In progress" / "Watched" stay readable while the preview plays
         (Clint 2026-11-19): the labelled thumbnail is lifted above the
         preview and its own picture hidden, so the preview shows through
         and only the label sits on top. Only on cards that HAVE a preview:
         the Following page's cards have labels but no preview, and hiding
         their picture blanked the thumbnail (found auditing, same day). */
      .card-thumb-link:has(> .card-thumb-preview):hover .card-thumb:has(> .lp-watch-label),
      .card-thumb-link:has(> .card-thumb-preview):focus-within .card-thumb:has(> .lp-watch-label) {
        z-index: 3;
      }
      .card-thumb-link:has(> .card-thumb-preview):hover .card-thumb:has(> .lp-watch-label) > picture,
      .card-thumb-link:has(> .card-thumb-preview):focus-within .card-thumb:has(> .lp-watch-label) > picture {
        opacity: 0;
      }
    }
    .card-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding-top: 4px;
    }
    .card.video-row {
      align-items: flex-start;
    }
    .card.video-row .card-thumb-link {
      flex: 0 0 240px;
      width: 240px;
      min-width: 240px;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
    }
    .card.video-row .media-column {
      flex: 0 0 240px;
      width: 240px;
      min-width: 240px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .card.video-row .card-thumb {
      width: 100%;
      height: auto;
      max-height: none;
      aspect-ratio: 16 / 9;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
      background: none;
    }
    .card.video-row .media-frame {
      width: 100%;
      height: auto;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
    }
    .card.video-row .card-thumb.is-portrait {
      width: 168px;
      aspect-ratio: 9 / 16;
    }
    .card.video-row .card-thumb.is-square {
      aspect-ratio: 1 / 1;
    }
    .card.video-row .card-thumb.is-classic {
      aspect-ratio: 4 / 3;
    }
    .card.video-row .card-thumb.is-wide {
      aspect-ratio: 37 / 20;
    }
    .card.video-row .card-thumb.is-ultrawide {
      aspect-ratio: 239 / 100;
    }
    .card-thumb-preview video,
    .card-thumb-preview-video {
      max-height: none;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
    .card.video-row .text-column {
      flex: 1;
      padding-top: 0;
    }
    .card-title {
      font-size: 20px;
      margin: 0;
    }
    .card-title a {
      text-decoration: none;
      color: #0f172a;
    }
    .card-description {
      font-size: 17px;
      line-height: 1.5;
    }
    /* A long link in a description or title (a full web address, a licence
       URL) can't wrap, so on a narrow phone it pushed the card or the video
       page wider than the screen (2026-11-19 audit, 320px: search, the
       tutorials channel, video pages). Break such words only when needed;
       nothing changes where they already fit. */
    .card-content,
    .lp-desc {
      overflow-wrap: anywhere;
    }
    .lp-desc-toggle {
      background: none;
      border: none;
      color: #2563eb;
      cursor: pointer;
      display: inline-block;
      font: inherit;
      font-weight: 600;
      margin-top: 6px;
      padding: 0;
      text-decoration: none;
      letter-spacing: 0.01em;
    }
    .lp-desc-toggle:hover {
      text-decoration: underline;
    }
    .featured-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      background: #0f172a;
      color: #fff;
      border-radius: 999px;
      padding: 4px 10px;
      width: fit-content;
      margin-bottom: 6px;
    }
    .card-meta {
      font-size: 13px;
      color: #475569;
      margin: 0;
    }
    .card-meta a {
      color: inherit;
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .card-watch-later {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      align-self: flex-start;
      padding: 7px 12px;
      border-radius: 999px;
      border: 1px solid rgba(15,23,42,0.18);
      background: rgba(15,23,42,0.05);
      color: rgba(15,23,42,0.68);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-top: 6px;
      cursor: pointer;
    }
    .card-watch-later:hover {
      border-color: rgba(15,23,42,0.30);
      background: rgba(15,23,42,0.09);
      color: rgba(15,23,42,0.88);
    }
    .card-watch-later[data-state="saved"] {
      border-color: rgba(15,23,42,0.22);
      background: rgba(15,23,42,0.08);
    }
    .lp-user-link {
      color: inherit;
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .lp-user-link:hover {
      opacity: 0.92;
    }
    .creator-statement {
      font-size: 15px;
      color: #0f172a;
      width: 100%;
      max-width: none;
      box-sizing: border-box;
      margin: 8px 0 0;
      padding: 12px 14px;
      border-radius: 12px;
      border: 1px solid #93c5fd;
      background: #e0f2fe;
      line-height: 1.5;
    }
    .creator-links {
      margin-top: 8px;
      font-size: 13px;
      color: #334155;
    }
    .creator-links a {
      color: #0f172a;
      text-decoration: none;
    }
    .creator-links a:hover {
      text-decoration: underline;
    }
    .rss-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: #ee7722;
      color: #fff !important;
      border-radius: 4px;
      padding: 2px 7px 2px 5px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      text-decoration: none !important;
      vertical-align: middle;
    }
    .rss-badge:hover {
      background: #c95f10 !important;
      text-decoration: none !important;
    }
    .creator-featured {
      margin: 14px 0 18px;
      border: 1px solid #fcd34d;
      background: #fffbeb;
      border-radius: 16px;
      padding: 14px;
    }
    .creator-featured-header {
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.10em;
      color: #7c2d12;
      margin: 0 0 10px;
    }
    .creator-featured .card {
      background: transparent;
      border: 0;
      border-radius: 0;
      padding: 0;
    }
    .creator-controls {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      margin: 16px 0 20px;
    }
    @media (prefers-reduced-motion: reduce) {
      .card-thumb,
      .card-thumb-preview,
      .card-thumb-preview-image,
      .card-thumb-preview-video {
        transition: none;
      }
    }
    .nav-messages-link{position:relative;display:inline-flex;align-items:center;gap:.25rem}
    .nav-inbox-badge{min-width:16px;height:16px;background:#ef4444;color:#fff;border-radius:999px;
    font-size:.65rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center;
    padding:0 4px;vertical-align:top;margin-top:1px}
    .creator-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }
    .creator-view-controls {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }
    .creator-action {
      border: none;
      border-radius: 999px;
      padding: 9px 16px;
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-weight: 600;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: transform 180ms ease, box-shadow 180ms ease;
    }
    .creator-action:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
    }
    .creator-follow {
      background: #0f172a;
      color: #fff;
    }
    .creator-follow[data-follow-state="following"] {
      background: #15803d;
    }
    .creator-reach {
      background: linear-gradient(135deg, #f97316, #fb7185);
      color: #fff;
    }
    .version-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .version-list li {
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 12px 14px;
      background: #f8fafc;
    }
    .library-page {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }
    .creator-header {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .creator-header h1 {
      margin-bottom: 6px;
    }
    .creator-back {
      margin: 0;
    }
    .library-controls {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      align-items: center;
      justify-content: space-between;
    }
    .library-filters {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }
    .library-filter-button {
      border: 1px solid #e2e8f0;
      padding: 6px 14px;
      border-radius: 999px;
      background: #fff;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
    .library-filters--collections {
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px dashed #e2e8f0;
      align-items: center;
    }
    .library-filters-label {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #1d4ed8;
      margin-right: 2px;
    }
    .library-filter-button--collection {
      border-color: #bfdbfe;
      background: #eff6ff;
      color: #1d4ed8;
    }
    .recently-header {
      margin-top: 18px;
      margin-bottom: 14px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      width: 100%;
      box-sizing: border-box;
      padding: 14px 16px;
      border-radius: 14px;
      border: 1px solid #fed7aa;
      background: linear-gradient(135deg, #fff7ed, #fff1f2);
    }
    .recently-kicker {
      font-size: 16px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #9a3412;
    }
    .recently-sub {
      font-size: 16px;
      color: #7c2d12;
    }
    .surprise-callout {
      text-align: center;
      margin-top: 24px;
      padding: 20px 16px;
      border-radius: 16px;
      border: 1px dashed #e2e8f0;
      background: #f8fafc;
    }
    .surprise-text {
      margin: 0 0 12px;
      font-weight: 600;
      color: #0f172a;
    }
    .library-filter-button.surprise-button {
      border: none;
      background: linear-gradient(135deg, #f97316, #ec4899);
      color: #fff;
      padding: 10px 18px;
      font-size: 12px;
      font-weight: 700;
      box-shadow: 0 10px 22px rgba(236, 72, 153, 0.25);
    }
    .lp-acknowledgement {
      display: block;
      margin-top: 22px;
      color: #7b4a2c;
    }
    .library-filter-button.active {
      background: #0f172a;
      color: #fff;
      border-color: #0f172a;
    }
    .creator-view-tabs {
      margin: 22px 0 14px;
    }
    .creator-view-tabs a.library-filter-button {
      display: inline-block;
      text-decoration: none;
      font-weight: 600;
    }
    .creator-view-tabs a.library-filter-button:not(.active) {
      color: #0f172a;
    }
    .library-filter-button--collection.active {
      background: #2563eb;
      border-color: #2563eb;
      color: #fff;
    }
    .lp-cta {
      display: inline-flex;
      align-items: center;
      border: 1px solid #f97316;
      padding: 8px 18px;
      border-radius: 999px;
      background: #f97316;
      color: #fff;
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      text-decoration: none;
      white-space: nowrap;
      cursor: pointer;
    }
    .lp-cta:hover {
      background: #ea580c;
      border-color: #ea580c;
    }
    .lp-cta.lp-cta--secondary {
      background: #0f172a;
      border-color: #0f172a;
    }
    .lp-cta.lp-cta--secondary:hover {
      background: #334155;
      border-color: #334155;
    }
    @media (pointer: coarse) {
      .lp-cta { padding: 8px 18px; }
      .card-thumb-preview { display: none; }
    }
    /* The hover preview only ever shows at 960px+ (core_layout_css_part1);
       below that it was an invisible 400px box that let narrow desktop
       windows scroll sideways (found 2026-10-28). */
    @media (max-width: 959px) {
      .card-thumb-preview { display: none; }
    }
    .library-sort {
      display: flex;
      gap: 8px;
      align-items: center;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
    .library-sort select {
      border-radius: 999px;
      border: 1px solid #e2e8f0;
      padding: 6px 14px;
      font-size: 12px;
    }
    .library-stack {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .library-card {
      display: flex;
      gap: 18px;
      border-radius: 16px;
      border: 1px solid #e2e8f0;
      padding: 16px;
      background: #f8fafc;
      align-items: flex-start;
    }
    .library-thumb {
      width: 240px;
      height: auto;
      border-radius: 12px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      aspect-ratio: 16 / 9;
      flex-shrink: 0;
      background: none;
    }
    .library-thumb.is-portrait {
      width: 168px;
      aspect-ratio: 9 / 16;
      /* Keep portrait thumbs centered while preserving a consistent text start column. */
      margin-left: 36px;
      margin-right: 36px;
    }
    .library-thumb.is-square {
      aspect-ratio: 1 / 1;
    }
    .library-thumb.is-classic {
      aspect-ratio: 4 / 3;
    }
    .library-thumb.is-wide {
      aspect-ratio: 37 / 20;
    }
    .library-thumb.is-ultrawide {
      aspect-ratio: 239 / 100;
    }
    .library-thumb img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
      border-radius: inherit;
    }
    /* The <picture> wrapper (webp srcset, library_thumb_picture_open) had no
       size of its own, so the img's 100% was 100% of nothing: thumbnails
       rendered smaller than their rounded box and showed square corners
       (2026-11-03). Make it fill the box like the img used to. The catalogue,
       home, genre, search and channel cards (.card-thumb) have the same
       wrapper and were missed until Clint saw it on iPhone (2026-11-19). */
    .library-thumb picture,
    .card-thumb picture {
      display: block;
      width: 100%;
      height: 100%;
      border-radius: inherit;
    }
    .library-thumb a {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .thumb-unavailable {
      width: 100%;
      height: 100%;
      display: grid;
      place-items: center;
      padding: 14px;
      box-sizing: border-box;
      border-radius: 12px;
      border: 1px dashed #cbd5e1;
      background: linear-gradient(135deg, #e2e8f0, #f8fafc);
      color: #334155;
      font-weight: 700;
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      text-align: center;
      line-height: 1.2;
    }
    .library-details {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .library-details .library-filter-button {
      align-self: flex-start;
    }
    .library-title {
      font-size: 20px;
    }
    .library-description {
      margin: 0;
      color: #475569;
      font-size: 17px;
      line-height: 1.5;
    }
    .library-meta {
      margin: 0;
      font-size: 12px;
      color: #475569;
    }
    .track-list {
      list-style: none;
      margin: 12px 0 0;
      padding: 0;
      display: grid;
      gap: 12px;
    }
    .track-row {
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      background: #ffffff;
      padding: 12px 14px;
    }
    .track-row-head {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .track-row-title {
      font-size: 14px;
      line-height: 1.3;
      color: #0f172a;
    }
    .track-row .library-meta {
      margin-top: 4px;
    }
    .track-row .library-actions {
      margin-top: 10px;
      justify-content: flex-start;
      flex-wrap: wrap;
    }
    .track-source-badge, .track-status-badge {
      display: inline-block;
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      padding: 2px 6px;
      border-radius: 3px;
      vertical-align: middle;
      margin-left: 4px;
    }
    .track-source-badge { background: #e2e8f0; color: #475569; }
    .track-source-auto { background: #ede9fe; color: #6d28d9; }
    .track-status-draft { background: #fef3c7; color: #92400e; }
    .track-status-live { background: #dcfce7; color: #166534; }
    .go-live-btn { color: #166534 !important; font-weight: 700 !important; }
    .library-actions {
      display: flex;
      gap: 12px;
      margin-top: 10px;
      flex-wrap: wrap;
      row-gap: 8px;
      max-width: 100%;
    }
    .library-actions a,
    .library-actions button {
      border: 1px solid #e2e8f0;
      border-radius: 999px;
      background: #f1f5f9;
      color: #0f172a;
      font-size: 11px;
      font-weight: 600;
      line-height: 1;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      padding: 6px 14px;
      white-space: nowrap;
    }
    .library-actions a:hover,
    .library-actions button:hover {
      background: #e2e8f0;
    }
    .library-actions button[data-delete-id],
    .library-actions button[data-purge-id] {
      border-color: transparent;
      background: #b91c1c;
      color: #fff;
    }
    .library-actions button[data-delete-id]:hover,
    .library-actions button[data-purge-id]:hover {
      background: #991b1b;
    }
    .lp-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      padding: 24px;
    }
    .lp-modal-hidden {
      display: none;
    }
    .lp-modal {
      background: #fff;
      border-radius: 16px;
      padding: 24px;
      width: min(420px, 100%);
      border: 1px solid #e2e8f0;
      box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
      text-align: center;
    }
    .lp-modal.lp-modal-reach {
      text-align: left;
      width: min(520px, calc(100vw - 40px));
    }
    .lp-modal.lp-modal-reach .lp-modal-actions {
      justify-content: flex-end;
    }
    .lp-modal h2 {
      margin: 0 0 8px;
      font-size: 18px;
    }
    .lp-modal-actions {
      display: flex;
      gap: 12px;
      justify-content: center;
      margin-top: 20px;
    }
    .lp-modal-actions button {
      padding: 10px 16px;
      border-radius: 999px;
      border: 1px solid #cbd5f5;
      background: #fff;
      color: #1f2937;
      font-size: 14px;
      cursor: pointer;
    }
    .lp-modal-actions .lp-modal-confirm {
      background: #fef3c7;
      border-color: #fcd34d;
      color: #7c2d12;
    }

    /* Reusable embed modal for creator pages (dashboard/library). */
    .lp-embed-modal {
      text-align: left;
      width: min(520px, 100%);
    }
    .lp-embed-modal label {
      display: block;
      margin: 12px 0 6px;
      font-size: 13px;
      color: #475569;
    }
    .lp-embed-modal select,
    .lp-embed-modal input[type="text"],
    .lp-embed-modal textarea {
      width: 100%;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 10px 12px;
      font-size: 13px;
      background: #fff;
      box-sizing: border-box;
    }
    .lp-embed-modal textarea {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      resize: vertical;
    }
    .library-meta-section {
      min-width: 120px;
      text-align: right;
      font-size: 12px;
      color: #475569;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 6px;
    }
    .library-ad-note {
      font-size: 11px;
      line-height: 1.4;
      color: #64748b;
      display: block;
    }
    .library-card--hidden {
      display: none;
    }
    .library-controls-right {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .library-select-all-label {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      cursor: pointer;
      user-select: none;
    }
    .library-card-check {
      align-self: flex-start;
      margin-top: 4px;
      flex-shrink: 0;
      cursor: pointer;
    }
    .library-card-checkbox {
      width: 18px;
      height: 18px;
      cursor: pointer;
    }
    .library-card.is-selected {
      outline: 2px solid #2563eb;
    }
    .library-bulk-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: #1e293b;
      color: #f8fafc;
      padding: 12px 24px;
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
      z-index: 1000;
      box-shadow: 0 -2px 12px rgba(0,0,0,.25);
    }
    .library-bulk-count {
      font-size: 13px;
      font-weight: 600;
      min-width: 80px;
    }
    .library-bulk-label {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
    }
    .library-bulk-visibility {
      padding: 4px 8px;
      border-radius: 6px;
      border: none;
    }
    .lp-action--danger {
      background: #dc2626;
      color: #fff;
    }
    .lp-action--danger:hover {
      background: #b91c1c;
    }
    .library-search-form {
      display: flex;
      gap: 8px;
      align-items: center;
      margin: 12px 0;
    }
    .library-search-input {
      flex: 1;
      max-width: 480px;
      padding: 8px 12px;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      font-size: 14px;
    }
    .transcript-results {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 12px;
    }
    .transcript-hit {
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 14px 16px;
      background: #f8fafc;
    }
    .transcript-hit-title {
      font-weight: 600;
      margin-bottom: 4px;
    }
    .transcript-hit-snippet {
      font-size: 14px;
      color: #475569;
      margin-bottom: 6px;
      line-height: 1.5;
    }
    .transcript-hit-snippet mark {
      background: #fef08a;
      color: inherit;
      border-radius: 2px;
      padding: 0 2px;
    }
    .transcript-hit-tc {
      font-size: 13px;
    }
    .dashboard-header {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
    }
    .dashboard-header > h1 {
      width: 100%;
      margin: 0;
    }
    .dashboard-actions {
      display: flex;
      flex-direction: column;
      gap: 8px;
      align-items: center;
      min-width: 0;
      width: 100%;
    }
    .dashboard-actions-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;
      width: 100%;
    }
    .dashboard-actions .dashboard-action-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 9px 16px 9px 12px;
      border-radius: 999px;
      line-height: 1;
      transition: background 120ms ease, border-color 120ms ease;
      font-size: 13px;
    }
    .dashboard-actions .dashboard-action-button .dashboard-action-icon {
      width: 24px;
      height: 24px;
      border-radius: 999px;
      border: 1px solid #d3dce8;
      background: #eef2f7;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 24px;
    }
    .dashboard-actions .dashboard-action-button .dashboard-action-icon svg {
      width: 14px;
      height: 14px;
      stroke: #334155;
      stroke-width: 2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .dashboard-actions .dashboard-action-button:hover {
      border-color: #cbd5e1;
      background: #f8fafc;
    }
    .dashboard-actions .upload-cta-button.dashboard-action-button {
      margin: 0;
      background: #e9c89a;
      border: 1px solid #dbb37e;
      color: #3f2a10;
    }
    .dashboard-actions .upload-cta-button.dashboard-action-button:hover {
      background: #e4c08f;
      border-color: #d4a96f;
    }
    .dashboard-actions .dashboard-action-button--upload .dashboard-action-icon {
      background: #f7dfbf;
      border-color: #dfbc8c;
    }
    .dashboard-actions .dashboard-action-button--upload .dashboard-action-icon svg {
      stroke: #7a4b14;
    }
    .dashboard-actions-row-secondary {
      width: 100%;
      justify-content: center;
    }
    .dashboard-hero {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      flex-wrap: wrap;
      margin: 12px 0 18px;
    }
    .dashboard-hero-left {
      flex: 1;
      min-width: 240px;
    }
    .dashboard-hero-right {
      width: 760px;
      max-width: 100%;
    }
    .dashboard-side-panels {
      display: grid;
      grid-template-columns: repeat(2, minmax(240px, 1fr));
      gap: 12px;
    }
    .dashboard-panel {
      border: 1px solid #e2e8f0;
      border-radius: 16px;
      padding: 16px;
      background: #f8fafc;
    }
    .dashboard-panel h2 {
      margin-top: 0;
      margin-bottom: 10px;
    }
    .watch-later-summary-list {
      margin: 0 0 10px;
      padding-left: 18px;
      display: grid;
      gap: 6px;
    }
    .watch-later-summary-list a {
      font-size: 14px;
    }
    .dashboard-welcome {
      margin: 0 0 6px;
      font-size: 16px;
    }
    .dashboard-user {
	      color: #0f172a;
	      text-decoration: underline;
	      text-underline-offset: 2px;
	      font-weight: 700;
	    }
    .dashboard-user:hover {
      color: #111827;
    }
    .upload-cta {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 16px;
      padding: 20px;
      margin-top: 20px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .upload-cta-spacer {
      height: 12px;
    }
    .upload-cta-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 10px 18px;
      border-radius: 999px;
      background: #c8a45c;
      color: #0f172a;
      font-size: 12px;
      text-decoration: none;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      width: fit-content;
    }
    /* The quieter choice beside it ("Enter video details later"), 2026-11-17:
       it used a filter-chip class that wrapped like plain text on phones. */
    .upload-cta-button--secondary {
      background: #fff;
      border: 1px solid #cbd5e1;
    }
    .upload-page {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }
    .upload-page--compact {
      gap: 14px;
    }
    .upload-page--compact h1 {
      margin-bottom: 12px;
    }
    .upload-form {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .upload-section {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding-bottom: 6px;
    }
    .upload-section--file {
      gap: 6px;
    }
    .upload-section--file .muted.small {
      margin: 2px 0;
    }
    .upload-section--file .upload-dropzone {
      padding: 18px;
      gap: 6px;
    }
    .upload-dropzone {
      border: 2px dashed #e2e8f0;
      border-radius: 16px;
      padding: 22px;
      text-align: center;
      background: #f8fafc;
      display: flex;
      flex-direction: column;
      gap: 8px;
      cursor: pointer;
    }
    .upload-dropzone-title {
      margin: 0;
      font-size: 15px;
      font-weight: 600;
      color: #0f172a;
    }
    .upload-dropzone.is-dragover {
      border-color: #c8a45c;
      background: #fff7e6;
    }
    .upload-browse-button {
      align-self: center;
      border: 1px solid #e2e8f0;
      border-radius: 999px;
      padding: 8px 16px;
      background: #fff;
      color: #0f172a;
      cursor: pointer;
      font-size: 13px;
    }
    .upload-browse-button:hover {
      border-color: #c8a45c;
      color: #7c2d12;
    }
    .upload-section h2 {
      margin-top: 0;
      font-size: 13px;
      letter-spacing: 0.12em;
    }
    .upload-section label {
      display: flex;
      flex-direction: column;
      gap: 6px;
      font-size: 13px;
      color: #0f172a;
    }
    .upload-section input,
    .upload-section textarea,
    .upload-section select {
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 10px 12px;
      font-size: 14px;
      font-family: inherit;
    }
    .upload-section textarea {
      resize: vertical;
    }
    .owner-search {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 10px;
      border: 1px dashed #e2e8f0;
      border-radius: 12px;
      background: #f8fafc;
    }
    .owner-search[hidden] {
      display: none;
    }
	    .owner-search-results {
	      display: flex;
	      flex-direction: column;
	      gap: 6px;
	      max-height: 240px;
	      overflow: auto;
	    }
    .owner-result {
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 8px 10px;
      background: #fff;
      text-align: left;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      gap: 4px;
      font-size: 13px;
    }
    .owner-result:hover {
      border-color: #94a3b8;
      background: #f1f5f9;
    }
    .owner-result strong {
      font-weight: 600;
      color: #0f172a;
    }
    .owner-result span {
      color: #475569;
      font-size: 12px;
    }
    .owner-result-id {
      font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-size: 11px;
      color: #64748b;
    }
    .owner-search-status {
      margin: 0;
      font-size: 12px;
      color: #475569;
    }
    .quota-line {
      font-size: 13px;
      color: #475569;
    }
    .todo-banner {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      padding: 10px 14px;
      border-radius: 12px;
      border: 1px solid #f4b87a;
      background: #fff4e5;
      color: #7c2d12;
      font-size: 13px;
    }
    .todo-banner a {
      color: #7c2d12;
      font-weight: 600;
      text-decoration: underline;
    }
    .todo-banner button {
      margin-left: auto;
      border: 1px solid #f4b87a;
      background: transparent;
      color: #7c2d12;
      border-radius: 999px;
      padding: 4px 10px;
      font-size: 12px;
      cursor: pointer;
    }
    .todo-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .todo-item {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid #e2e8f0;
      background: #fff;
      font-size: 13px;
    }
    .todo-item a {
      color: #0f172a;
      text-decoration: none;
      font-weight: 600;
    }
    .todo-item .todo-meta {
      color: #64748b;
      font-size: 12px;
    }
    .upload-intro p {
      margin: 6px 0 0;
    }
    .upload-intro p:first-child {
      margin-top: 0;
    }
    .publish-timing {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .publish-option {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .publish-custom {
      margin-top: 8px;
      padding: 10px;
      border: 1px dashed #e2e8f0;
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .publish-custom[hidden] {
      display: none;
    }
    .time-wheel {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      max-width: 320px;
    }
    .wheel-column {
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 6px;
      max-height: 140px;
      overflow-y: auto;
      scroll-snap-type: y mandatory;
      background: #fff;
    }
    .wheel-option {
      scroll-snap-align: center;
      padding: 6px 0;
      text-align: center;
      border-radius: 8px;
      font-size: 13px;
    }
    .wheel-option.active {
      background: #e2e8f0;
      font-weight: 600;
    }
    .thumbnail-card {
      display: flex;
      gap: 12px;
      align-items: center;
      padding: 12px;
      border-radius: 12px;
      border: 1px solid #e2e8f0;
      background: #f8fafc;
    }
    .thumbnail-preview {
      width: 180px;
      max-width: 100%;
      height: auto;
      aspect-ratio: 16 / 9;
      object-fit: contain;
      border-radius: 10px;
      background: #0f172a;
    }
    .thumbnail-preview.is-portrait {
      width: 132px;
      aspect-ratio: 9 / 16;
    }
    #share-links .share-settings-card {
      border: 1px solid #dbe5f2;
      background: #f8fbff;
      border-radius: 14px;
      padding: 18px;
      margin: 10px 0 14px;
    }
    #share-links .share-settings-card[hidden] {
      display: none;
    }
    #share-links .share-settings-heading {
      margin: 0 0 10px;
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #334155;
      font-weight: 700;
    }
    #share-links .share-settings-card .form-row {
      margin-bottom: 12px;
    }
    #share-links .share-settings-card .form-row:last-child {
      margin-bottom: 0;
    }
    #share-links .share-settings-card label {
      font-weight: 600;
      color: #334155;
    }
    #share-links .share-settings-card select {
      min-height: 46px;
      border-radius: 14px;
    }
    #share-links .share-settings-card textarea {
      min-height: 156px;
      border-radius: 16px;
      padding: 12px 14px;
    }
    #share-links .share-links-table {
      border: 1px solid #dbe5f2;
      border-radius: 14px;
      background: #ffffff;
      overflow: auto;
    }
    #share-links .share-links-table .admin-table th {
      background: #f8fafc;
      font-weight: 600;
    }
    #share-links .share-link-form-card {
      margin-top: 14px;
      border: 1px solid #dbe5f2;
      background: #f8fafc;
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    }
    #share-links .share-link-form-card .form-row {
      margin-bottom: 12px;
    }
    #share-links .share-link-form-card .form-row:last-child {
      margin-bottom: 0;
    }
    .upload-progress {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 12px;
    }
    .upload-progress-bar {
      width: 100%;
      height: 8px;
    }
    .upload-queue-note {
      margin-top: 12px;
      padding: 10px 14px;
      border-radius: 8px;
      background: #eff6ff;
      color: #1e3a8a;
      font-size: 13px;
    }
    .upload-queue {
      margin-top: 12px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .upload-queue-item {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      padding: 8px 12px;
      border-radius: 8px;
      background: #f8fafc;
      font-size: 13px;
    }
    .upload-queue-item-name {
      font-weight: 600;
      flex: 1 1 auto;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .upload-queue-item-status {
      text-transform: uppercase;
      font-size: 11px;
      letter-spacing: 0.06em;
      color: #475569;
    }
    .upload-queue-item--done .upload-queue-item-status {
      color: #15803d;
    }
    .upload-queue-item--failed .upload-queue-item-status {
      color: #b91c1c;
    }
    .upload-queue-item-error {
      color: #b91c1c;
      font-size: 12px;
    }
    .upload-queue-item-retry,
    .upload-queue-item-edit {
      font-size: 12px;
    }
    .support-form {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .support-form button {
      align-self: flex-start;
      border-radius: 999px;
      border: none;
      background: #0f172a;
      color: #fff;
      padding: 10px 18px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-size: 12px;
    }
    .support-form.support-form--centered button {
      align-self: center;
    }
    .support-form.support-form--spaced {
      gap: 16px;
    }
    .support-form.support-form--spaced input,
    .support-form.support-form--spaced textarea,
    .support-form.support-form--spaced select {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      border: 1px solid #cbd5e1;
      border-radius: 12px;
      padding: 10px 12px;
      font-size: 14px;
      line-height: 1.45;
      background: #ffffff;
      color: #0f172a;
    }
    .support-form.support-form--spaced textarea {
      min-height: 100px;
      resize: vertical;
    }
    .support-form.support-form--spaced input:focus,
    .support-form.support-form--spaced textarea:focus,
    .support-form.support-form--spaced select:focus {
      outline: 2px solid #93c5fd;
      outline-offset: 1px;
      border-color: #60a5fa;
    }
	    .plan-region-form {
	      margin-top: 8px;
	      padding: 12px;
	      border-radius: 12px;
	      background: #f8fafc;
	      border: 1px solid #e2e8f0;
	      flex-direction: row;
	      align-items: center;
	      justify-content: center;
	      flex-wrap: wrap;
	    }
	    .plan-region-form select {
	      width: min(360px, 100%);
	      flex: 0 1 360px;
	      padding: 10px 12px;
	      border-radius: 10px;
	      border: 1px solid var(--lp-border, #e2e8f0);
	      font-size: 0.95rem;
	      background: #fff;
	    }
	    .plan-region-form button {
	      align-self: auto;
	      border-radius: 999px;
	      border: none;
	      background: #1d4ed8;
	      color: #fff;
	      padding: 10px 18px;
	      letter-spacing: 0.08em;
	      text-transform: uppercase;
	      font-size: 12px;
	      box-shadow: 0 10px 20px -12px rgba(30, 64, 175, 0.45);
	    }
	    @media (max-width: 520px) {
	      .plan-region-form {
	        justify-content: stretch;
	      }
	      .plan-region-form select {
	        flex: 1 1 100%;
	      }
	    }
    .plan-region-form button:hover {
      background: #1e40af;
    }
    .admin-settings-form input[type="checkbox"] {
      margin-right: 8px;
      width: auto;
    }
    .admin-settings-form .settings-toggle {
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;
      gap: 8px;
      text-align: left;
      width: 100%;
      flex-wrap: wrap;
    }
    .admin-settings-form .settings-toggle input[type="checkbox"] {
      flex: 0 0 auto;
      margin-top: 2px;
    }
    .support-page {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .support-lead {
      font-weight: 500;
    }
    .support-panel {
      border: 1px solid #e2e8f0;
      border-radius: 16px;
      padding: 18px;
      background: #f8fafc;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .updates-page {
      width: 100%;
      max-width: none;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .updates-page h1 {
      margin-bottom: 10px;
      padding-bottom: 6px;
    }
    .updates-page > p {
      margin: 0 0 6px 0;
    }
    .updates-search-form {
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
    }
    .updates-search-form input[type="search"] {
      flex: 1 1 220px;
      min-width: 180px;
      border: 1px solid #cbd5e1;
      border-radius: 999px;
      padding: 8px 12px;
      font-size: 14px;
      background: #ffffff;
    }
    .updates-search-form button {
      border-radius: 999px;
      border: 1px solid #e2e8f0;
      padding: 8px 14px;
      font-size: 13px;
      background: #ffffff;
      color: #0f172a;
      cursor: pointer;
    }
    .updates-search-clear {
      font-size: 13px;
      color: #334155;
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .updates-stack {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .updates-entry,
    .admin-update-card {
      border: 1px solid #e2e8f0;
      border-radius: 14px;
      padding: 16px;
      background: #f8fafc;
    }
    .updates-entry p {
      margin: 0 0 8px 0;
    }
    .updates-entry p:last-child {
      margin-bottom: 0;
    }
    .updates-entry ul {
      margin: 6px 0 0 18px;
    }
    .updates-timestamp {
      font-size: 13px;
      color: #475569;
      margin: 0 0 8px 0;
    }
    .updates-nav {
      display: flex;
      gap: 10px;
      align-items: center;
      font-size: 13px;
    }
    .admin-update-card {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .admin-update-card p {
      margin: 0 0 8px 0;
    }
    .admin-update-card p:last-child {
      margin-bottom: 0;
    }
    .admin-update-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }
    .admin-update-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .update-editor summary {
      list-style: none;
    }
    .update-editor summary::-webkit-details-marker {
      display: none;
    }
    .update-editor-body {
      margin-top: 12px;
    }
    .admin-update-editor-card {
      background: #ffffff;
      border: 1px solid #dbe5f2;
      border-radius: 14px;
      padding: 14px;
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    }
    .admin-update-form .form-row {
      margin-bottom: 0;
    }
    .admin-update-form input[type="text"],
    .admin-update-form textarea {
      border: 1px solid #cbd5e1;
      border-radius: 12px;
      padding: 10px 12px;
      font-size: 14px;
      line-height: 1.45;
      background: #ffffff;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }
    .admin-update-form textarea {
      min-height: 128px;
      resize: vertical;
    }
    .admin-update-actions .admin-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 30px;
      padding: 4px 12px;
      border: 1px solid #d6deeb;
      border-radius: 999px;
      background: #ffffff;
      color: #0f172a;
      font-size: 11px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      text-decoration: none;
      line-height: 1;
    }
    .admin-update-actions .admin-link:hover {
      background: #f8fafc;
      border-color: #c6d3e6;
    }
    .update-editor[open] > summary.admin-link {
      background: #eef2ff;
      border-color: #c7d2fe;
    }
    .update-toolbar {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }
    .update-tool {
      border: 1px solid #cbd5f5;
      background: #f8fafc;
      border-radius: 999px;
      padding: 4px 10px;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }
    .update-tool:hover {
      background: #eef2ff;
    }
    .form-panel {
      border: 1px solid #e2e8f0;
      border-radius: 16px;
      padding: 18px;
      background: #f8fafc;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .form-card {
      background: var(--lp-bg, #fff);
      border-radius: var(--lp-radius, 16px);
      padding: 22px 22px;
      border: 1px solid var(--lp-border, #e2e8f0);
    }
    .form-card label {
      display: block;
      font-size: 0.9rem;
      font-weight: 500;
      margin-bottom: 6px;
      color: var(--lp-text-muted, #475569);
    }
    .form-card input,
    .form-card textarea,
    .form-card select {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      box-sizing: border-box;
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid #cbd5e1;
      font-size: 14px;
      line-height: 1.45;
      background: #fff;
      color: #0f172a;
    }
    .form-card textarea {
      min-height: 120px;
      resize: vertical;
    }
    .form-card input:focus,
    .form-card textarea:focus,
    .form-card select:focus {
      outline: 2px solid #93c5fd;
      outline-offset: 1px;
      border-color: #60a5fa;
    }
    .form-row {
      margin-bottom: 14px;
    }
    .form-actions {
      margin-top: 18px;
      margin-bottom: 12px;
    }
    /* NOTE: Form/button standards - see INVARIANTS.md §"UI: Forms and Buttons" for all new forms. */
    .form-actions button,
    .form-actions input[type="submit"] {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      border: none;
      background: #0f172a;
      color: #fff;
      padding: 10px 20px;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      white-space: nowrap;
    }
    .form-actions button:hover,
    .form-actions input[type="submit"]:hover {
      background: #1e293b;
    }
    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      border: none;
      padding: 10px 20px;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      white-space: nowrap;
      line-height: 1;
      text-decoration: none;
    }
    .button-primary {
      background: #0f172a;
      color: #fff;
    }
    .button-primary:hover {
      background: #1e293b;
    }
    .button-secondary {
      background: #f1f5f9;
      color: #0f172a;
      border: 1px solid #e2e8f0;
    }
    .button-secondary:hover {
      background: #e2e8f0;
    }
    .button-small {
      padding: 6px 14px;
      font-size: 11px;
    }
    .button-danger {
      background: #b91c1c;
      color: #fff;
    }
    .button-danger:hover {
      background: #991b1b;
    }
    .google-signin-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      max-width: 320px;
      margin: 0 auto;
      box-sizing: border-box;
      padding: 10px 16px;
      border-radius: 999px;
      border: 1px solid #dadce0;
      background: #fff;
      color: #3c4043;
      font-size: 14px;
      font-weight: 500;
      text-decoration: none;
      cursor: pointer;
      transition: box-shadow .15s ease, background .15s ease;
    }
    .google-signin-btn:hover {
      background: #f8f9fa;
      box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
    }
    .google-signin-btn-icon {
      display: inline-flex;
      flex-shrink: 0;
      width: 18px;
      height: 18px;
    }
    .btn-accept {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      border: none;
      background: #0f172a;
      color: #fff;
      padding: 10px 20px;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      white-space: nowrap;
    }
    .btn-accept:hover {
      background: #1e293b;
    }
    .btn-decline {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      border: 1px solid #e2e8f0;
      background: #f8fafc;
      color: #475569;
      padding: 10px 20px;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      white-space: nowrap;
    }
    .btn-decline:hover {
      background: #e2e8f0;
    }
    .collab-pending-card {
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 12px;
    }
    .collab-pending-actions {
      display: flex;
      gap: 10px;
      margin-top: 12px;
    }
    .admin-form {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .admin-form .form-row label {
      display: block;
      font-size: 13px;
      font-weight: 500;
      margin-bottom: 6px;
      color: #475569;
    }
    .admin-form input,
    .admin-form select,
    .admin-form textarea {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      border: 1px solid #cbd5e1;
      border-radius: 12px;
      padding: 10px 12px;
      font-size: 14px;
      line-height: 1.45;
      background: #ffffff;
      color: #0f172a;
    }
    .admin-form input:focus,
    .admin-form select:focus,
    .admin-form textarea:focus {
      outline: 2px solid #93c5fd;
      outline-offset: 1px;
      border-color: #60a5fa;
    }
    .support-page p {
      margin: 0;
    }
    .policy-page {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .policy-page h2 {
      margin-top: 12px;
      margin-bottom: 4px;
    }
    .policy-page h3 {
      margin-top: 8px;
      margin-bottom: 2px;
    }
    .policy-page p {
      margin: 0;
      line-height: 1.45;
    }
    .policy-page p + p {
      margin-top: 2px;
    }
    .policy-page section,
    .faq-item,
    .legal-section {
      margin-bottom: 10px;
    }
    .transcript-page {
      margin-top: 16px;
    }
    .transcript-cue {
      margin: 0;
      padding: 6px 0;
      border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
      line-height: 1.5;
    }
    .transcript-tc {
      display: inline-block;
      min-width: 3.5em;
      font-variant-numeric: tabular-nums;
      font-size: 0.8em;
      opacity: 0.55;
      margin-right: 0.5em;
      text-decoration: none;
    }
    .transcript-tc:hover {
      opacity: 1;
    }
    .policy-page hr,
    .faq-divider,
    .legal-divider {
      margin: 6px 0;
      opacity: 0.35;
    }
    .policy-page ul {
      margin: 4px 0;
      padding-left: 18px;
    }
    .faq {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .faq-item {
      margin: 16px 0;
      padding-bottom: 12px;
      border-bottom: 1px solid #e2e8f0;
    }
    .faq-item:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }
    .policy-tight .faq-item {
      margin: 8px 0;
      padding-bottom: 6px;
    }
    .faq-q {
      font-weight: 600;
      margin: 0;
    }
    .faq-a {
      margin-top: 10px;
      line-height: 1.55;
    }
    .faq-a p {
      margin: 0;
    }
    .faq-a p + p {
      margin-top: 10px;
    }
    .benefits-list {
      list-style: none;
      padding-left: 20px;
      margin: 0;
    }
    .benefits-list li {
      position: relative;
      margin-bottom: 8px;
    }
    .benefits-list li::before {
      content: "✓";
      position: absolute;
      left: -18px;
      color: #2f6f55;
    }
    .audit-list {
      list-style: none;
      padding-left: 0;
    }
    .audit-list li {
      margin-bottom: 8px;
    }
    .audit-list code {
      display: block;
      max-width: 100%;
      white-space: pre-wrap;
      word-break: break-word;
      overflow-wrap: anywhere;
      padding: 10px 12px;
      border-radius: 12px;
      background: #0f172a;
      color: #e2e8f0;
      font-size: 12px;
      line-height: 1.5;
    }
    .admin-list {
      margin: 8px 0 0;
      padding-left: 18px;
      color: #334155;
      font-size: 13px;
    }
    .admin-list li {
      margin-bottom: 6px;
      word-break: break-word;
    }
	    .admin-section {
	      margin-bottom: 24px;
	    }
	    .admin-header-row {
	      display: flex;
	      align-items: flex-start;
	      justify-content: space-between;
	      gap: 12px;
	      flex-wrap: wrap;
	    }
	    .admin-header-text {
	      margin: 0;
	      flex: 1;
	      min-width: 240px;
	    }
	    .admin-header-btn {
	      border: none;
	      border-radius: 999px;
	      background: #0f172a;
	      color: #fff;
	      padding: 6px 12px;
	      font-size: 11px;
	      letter-spacing: 0.08em;
	      text-transform: uppercase;
	      text-decoration: none;
	      display: inline-flex;
	      align-items: center;
	    }
	    .admin-header-btn:hover {
	      opacity: 0.9;
	    }
	    .admin-stats-grid {
	      display: grid;
	      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	      gap: 12px;
	      margin-top: 8px;
    }
    .admin-stats-card {
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 12px;
      background: #f8fafc;
    }
    .admin-stats-label {
      margin: 0;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #64748b;
    }
    .admin-stats-value {
      margin: 6px 0 0;
      font-size: 16px;
      font-weight: 600;
      color: #0f172a;
    }
    .admin-filter {
      display: flex;
      gap: 12px;
      align-items: center;
      margin-bottom: 12px;
      flex-wrap: wrap;
    }
    .admin-filter label {
      display: flex;
      flex-direction: column;
      gap: 6px;
      font-size: 12px;
      color: #475569;
    }
    .admin-filter input[type="text"],
    .admin-filter input[type="search"],
    .admin-filter input[type="email"],
    .admin-filter input[type="url"],
    .admin-filter input[type="number"],
    .admin-filter select,
    .admin-filter textarea,
    .inline-form input[type="text"],
    .inline-form input[type="search"],
    .inline-form input[type="email"],
    .inline-form input[type="url"],
    .inline-form input[type="number"],
    .inline-form select,
    .inline-form textarea {
      max-width: 100%;
      min-width: 0;
      box-sizing: border-box;
      border: 1px solid #cbd5e1;
      border-radius: 12px;
      padding: 9px 11px;
      font-size: 13px;
      font-family: inherit;
      background: #fff;
      color: #0f172a;
    }
    .admin-filter input[type="text"]:focus,
    .admin-filter input[type="search"]:focus,
    .admin-filter input[type="email"]:focus,
    .admin-filter input[type="url"]:focus,
    .admin-filter input[type="number"]:focus,
    .admin-filter select:focus,
    .admin-filter textarea:focus,
    .inline-form input[type="text"]:focus,
    .inline-form input[type="search"]:focus,
    .inline-form input[type="email"]:focus,
    .inline-form input[type="url"]:focus,
    .inline-form input[type="number"]:focus,
    .inline-form select:focus,
    .inline-form textarea:focus {
      outline: 2px solid #bfdbfe;
      outline-offset: 1px;
      border-color: #60a5fa;
    }
    .qo-box {
      border-radius: 12px;
      padding: 1.5rem 2rem;
      margin: 1.25rem 0;
      background: #fff5f5;
      border: 1px solid #fca5a5;
    }
    .qo-box h2, .qo-box h3 {
      margin-top: 0;
      font-size: 1.1rem;
      font-weight: 700;
      letter-spacing: normal;
      color: #1e2340;
    }
    .qo-box p {
      margin: .5rem 0 0;
      font-size: .95em;
    }
    .qo-box label {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      cursor: pointer;
      margin-top: .75rem;
      font-size: .95em;
    }
    .qo-box input[type="checkbox"] {
      margin-top: 3px;
      flex-shrink: 0;
    }
    @media (max-width: 600px) {
      .qo-box { padding: 1.2rem 1.25rem; }
    }
    .inline-form {
      display: inline-flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
    }
    .inline-form button {
      border: none;
      border-radius: 999px;
      background: #0f172a;
      color: #fff;
      padding: 6px 12px;
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .admin-search {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap;
    }
    .admin-search + .admin-search {
      margin-top: 12px;
    }
    .admin-search input {
      border: 1px solid #cbd5e1;
      border-radius: 999px;
      padding: 9px 16px;
      font-size: 13px;
      background: #ffffff;
      min-width: 240px;
      flex: 1;
      color: #0f172a;
    }
    .admin-search input:focus {
      outline: 2px solid #bfdbfe;
      outline-offset: 1px;
      border-color: #60a5fa;
    }
    .admin-search button {
      background: #0f172a;
      color: #fff;
      border: none;
      border-radius: 999px;
      padding: 8px 16px;
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .admin-table-wrapper,
    .admin-table-wrap {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      max-width: 100%;
    }
    .admin-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
    }
    /* On a phone a wide table scrolls inside itself instead of pushing the
       whole page sideways (2026-11-19 audit: /admin/workers/burst was 515px
       wide on a 390px phone because its table had no wrapper). Covers every
       admin-table, wrapped or not. */
    @media (max-width: 700px) {
      .admin-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
      }
    }
    .admin-table th,
    .admin-table td {
      border-bottom: 1px solid #e2e8f0;
      padding: 8px;
      text-align: left;
    }
    .admin-table tr.report-group td {
      background: #fff7ed;
    }
    .admin-table tr.report-group td:first-child {
      border-left: 3px solid #fb923c;
    }
    .admin-pagination {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 12px;
    }
    .status-pill {
      display: inline-flex;
      align-items: center;
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
    .status-open {
      background: #dcfce7;
      color: #166534;
    }
    .status-waiting {
      background: #ffedd5;
      color: #9a3412;
    }
    .status-closed {
      background: #fee2e2;
      color: #991b1b;
    }
    .admin-badge {
      display: inline-flex;
      align-items: center;
      padding: 2px 7px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 600;
      background: #e2e8f0;
      color: #475569;
    }
    .admin-badge--info {
      background: #dbeafe;
      color: #1d4ed8;
    }
    .support-detail {
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 14px;
      background: #ffffff;
      margin-bottom: 12px;
    }
    .support-body {
      white-space: pre-wrap;
      margin-top: 10px;
      color: #0f172a;
    }
    .admin-link {
      background: none;
      border: none;
      padding: 0;
      color: #0f172a;
      font-size: 12px;
      text-decoration: underline;
      cursor: pointer;
    }
    .admin-action-link {
      display: inline-flex;
      align-items: center;
      padding: 2px 8px;
      font-size: 12px;
      border: 1px solid #cbd5e1;
      border-radius: 4px;
      background: #fff;
      color: #334155;
      text-decoration: none;
      cursor: pointer;
      line-height: 1.5;
      transition: background .15s;
    }
    .admin-action-link:hover {
      background: #f8fafc;
      color: #1e293b;
    }
    .admin-preview-tools {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: 8px;
    }
    .admin-ffprobe-pre {
      font-size: 12px;
      line-height: 1.5;
      white-space: pre-wrap;
      background: #0f172a;
      color: #e2e8f0;
      padding: 12px;
      border-radius: 12px;
      margin: 8px 0;
    }
    .admin-ffprobe-table {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 12px;
    }
    .admin-ffprobe-table th,
    .admin-ffprobe-table td {
      border-bottom: 1px solid #e2e8f0;
      padding: 8px 10px;
      text-align: left;
      vertical-align: top;
      font-size: 13px;
    }
    .admin-ffprobe-table th {
      width: 240px;
      color: #0f172a;
      font-weight: 600;
    }
    .admin-ffprobe-stream {
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 10px 12px;
      margin-bottom: 12px;
      background: #f8fafc;
    }
    .admin-ffprobe-stream summary {
      cursor: pointer;
      font-weight: 600;
      color: #0f172a;
      margin-bottom: 8px;
    }
    .report-card {
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 14px;
      margin-bottom: 12px;
      background: #f8fafc;
    }
    .users-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
    }
    .users-card {
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 14px;
      background: #f8fafc;
    }
    .admin-tabs {
      margin-top: 16px;
    }
    .admin-global-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin: 0 0 14px;
    }
    .admin-global-title {
      margin: 0;
      flex: 1;
      min-width: 0;
    }
    .admin-global-header + .admin-section > h1 {
      display: none;
    }
    .admin-header-search {
      position: relative;
      width: min(640px, 100%);
      margin-left: auto;
      min-width: 280px;
    }
    .admin-header-search-form {
      display: flex;
      align-items: center;
      gap: 8px;
      width: 100%;
      border: 1px solid #dbe3ed;
      border-radius: 14px;
      background: #ffffff;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
      padding: 8px;
    }
    .admin-header-search-form select,
    .admin-header-search-form input[type="search"] {
      border: 1px solid #cbd5e1;
      border-radius: 12px;
      padding: 10px 12px;
      font-size: 14px;
      line-height: 1.45;
      background: #ffffff;
      color: #0f172a;
      font-family: inherit;
    }
    .admin-header-search-form select {
      flex: 0 0 120px;
    }
    .admin-header-search-form input[type="search"] {
      flex: 1 1 auto;
      min-width: 200px;
    }
    .admin-header-search-form select:focus,
    .admin-header-search-form input[type="search"]:focus {
      outline: 2px solid #93c5fd;
      outline-offset: 1px;
      border-color: #60a5fa;
    }
    #admin-search-button {
      flex: none;
      border-radius: 999px;
      border: none;
      background: #0f172a;
      color: #ffffff;
      width: 42px;
      height: 42px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }
    #admin-search-button:hover {
      background: #1e293b;
    }
    .icon-search::before {
      content: "\1F50D";
      font-size: 15px;
      line-height: 1;
    }
    .admin-search-dropdown {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      right: 0;
      z-index: 40;
      border: 1px solid #dbe3ed;
      border-radius: 14px;
      background: #ffffff;
      box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
      padding: 10px;
      max-height: 420px;
      overflow: auto;
    }
    .admin-search-group + .admin-search-group {
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid #e2e8f0;
    }
    .admin-search-group-title {
      margin: 0 0 6px;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #64748b;
      font-weight: 700;
    }
    .admin-search-group-list {
      margin: 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 6px;
    }
    .admin-search-result-link {
      display: block;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      background: #f8fafc;
      color: #0f172a;
      text-decoration: none;
      padding: 8px 10px;
      font-size: 13px;
      line-height: 1.35;
      word-break: break-word;
    }
    .admin-search-result-link:hover {
      border-color: #94a3b8;
      background: #f1f5f9;
    }
    .admin-search-recent-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .admin-search-recent-item {
      border: 1px solid #cbd5e1;
      background: #ffffff;
      border-radius: 999px;
      padding: 6px 10px;
      font-size: 12px;
      color: #334155;
      cursor: pointer;
    }
    .admin-search-recent-item:hover {
      background: #f8fafc;
      border-color: #94a3b8;
    }
    .admin-search-empty {
      margin: 0;
      color: #64748b;
      font-size: 13px;
    }
    .admin-search-footer {
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid #e2e8f0;
      text-align: right;
    }
    .admin-search-view-all {
      border: 1px solid #cbd5e1;
      border-radius: 999px;
      background: #ffffff;
      color: #0f172a;
      padding: 6px 12px;
      font-size: 12px;
      cursor: pointer;
    }
    .admin-search-view-all:hover {
      background: #f8fafc;
      border-color: #94a3b8;
    }
    .admin-nav-shell {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: start;
      position: relative;
      z-index: 3;
    }
    .admin-nav-group {
      position: relative;
      min-width: 0;
    }
    .admin-nav-heading {
      margin: 0;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.09em;
      font-weight: 700;
      color: #64748b;
    }
    .admin-nav-summary {
      cursor: pointer;
      list-style: none;
      border: 1px solid #cbd5e1;
      border-radius: 999px;
      background: #ffffff;
      color: #475569;
      padding: 8px 12px;
      line-height: 1.2;
      white-space: nowrap;
    }
    .admin-nav-summary-active {
      background: #0f172a;
      border-color: #0f172a;
      color: #ffffff;
    }
    .admin-nav-collapsible > summary::-webkit-details-marker {
      display: none;
    }
    .admin-nav-flyout {
      position: absolute;
      top: calc(100% + 2px);
      left: 0;
      min-width: 220px;
      max-width: min(420px, calc(100vw - 32px));
      display: flex;
      flex-direction: column;
      gap: 6px;
      border: 1px solid #e2e8f0;
      border-radius: 14px;
      background: #ffffff;
      padding: 10px;
      box-shadow: 0 20px 38px rgba(15, 23, 42, 0.16);
      z-index: 30;
      display: none;
    }
    .admin-nav-collapsible:hover > .admin-nav-flyout,
    .admin-nav-collapsible:focus-within > .admin-nav-flyout,
    .admin-nav-collapsible[open] > .admin-nav-flyout {
      display: flex;
    }
    .admin-nav-tools .admin-nav-flyout {
      min-width: 240px;
    }
    .admin-tools-subtabs {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: 0;
    }
    .admin-alert-panel {
      flex: 1 1 100%;
      border: 1px solid #f1c27d;
      background: #fff7ed;
      border-radius: 14px;
      padding: 10px;
    }
    .admin-alert-pills,
    .admin-alert-panel-inline {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .admin-alert-chip {
      display: inline-flex;
      align-items: center;
      text-decoration: none;
      border-radius: 999px;
      border: 1px solid transparent;
      padding: 6px 10px;
      font-size: 12px;
      line-height: 1.2;
    }
    .admin-alert-chip-warning {
      background: #fef3c7;
      border-color: #fcd34d;
      color: #92400e;
    }
    .admin-alert-chip-error {
      background: #fee2e2;
      border-color: #fca5a5;
      color: #991b1b;
    }
    .admin-alert-chip-critical {
      background: #ef4444;
      border-color: #dc2626;
      color: #fff;
    }
    .admin-filter-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 12px 14px;
      width: 100%;
      align-items: end;
    }
    .admin-filter-grid label {
      margin: 0;
    }
    .admin-events-filter {
      margin-bottom: 0;
      align-items: stretch;
      gap: 14px;
    }
    .admin-events-filter-grid .admin-filter-field--search,
    .admin-events-filter-grid .admin-filter-field--wide {
      grid-column: span 2;
    }
    .admin-events-filter-actions {
      margin: 0;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
    }
    @media (max-width: 900px) {
      .admin-events-filter-grid .admin-filter-field--search,
      .admin-events-filter-grid .admin-filter-field--wide {
        grid-column: span 1;
      }
    }
    @media (max-width: 700px) {
      /* Nav: stack groups vertically, flyouts become inline */
      .admin-nav-shell {
        flex-direction: column;
        gap: 4px;
        align-items: stretch;
      }
      .admin-nav-group {
        width: 100%;
      }
      .admin-nav-summary {
        display: block;
        width: 100%;
        box-sizing: border-box;
        border-radius: 10px;
      }
      .admin-nav-flyout {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: none;
        padding: 4px 0 4px 8px;
        min-width: 0;
        max-width: none;
        gap: 4px;
      }
      .admin-nav-collapsible[open] > .admin-nav-flyout {
        display: flex;
      }
      .admin-nav-collapsible:hover > .admin-nav-flyout,
      .admin-nav-collapsible:focus-within > .admin-nav-flyout {
        display: none;
      }
      .admin-nav-collapsible[open]:hover > .admin-nav-flyout,
      .admin-nav-collapsible[open]:focus-within > .admin-nav-flyout {
        display: flex;
      }
      .admin-tab {
        white-space: normal;
      }
      /* Tables: horizontal scroll */
      .admin-table-wrapper,
      .admin-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }
      /* Filter grids: single column */
      .admin-filter-grid {
        grid-template-columns: 1fr;
      }
      /* Search inputs: full width */
      .admin-search input {
        min-width: 0;
      }
      /* Section headings: smaller */
      .admin-section h1 {
        font-size: 20px;
      }
    }
    .event-severity {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      border: 1px solid #e2e8f0;
      padding: 2px 8px;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }
    .event-severity-info {
      background: #f1f5f9;
      color: #334155;
    }
    .event-severity-notice {
      background: #e0f2fe;
      color: #0c4a6e;
    }
    .event-severity-warning {
      background: #fef3c7;
      color: #92400e;
      border-color: #fcd34d;
    }
    .event-severity-error {
      background: #fee2e2;
      color: #991b1b;
      border-color: #fca5a5;
    }
    .event-severity-critical {
      background: #b91c1c;
      color: #fff;
      border-color: #991b1b;
    }
    .event-details-action {
      margin-top: 6px;
    }
    .event-details-modal {
      width: min(760px, calc(100vw - 40px));
      max-height: min(82vh, 760px);
      overflow: auto;
    }
    .admin-tools-subtabs .admin-subtab {
      display: block;
      padding: 8px 10px;
      border-radius: 10px;
      font-size: 12px;
      letter-spacing: 0;
      text-transform: none;
      color: #0f172a;
      background: #f8fafc;
    }
    .admin-tools-subtabs .admin-subtab:hover {
      border-color: #94a3b8;
      background: #f1f5f9;
    }
    .admin-tools-subtabs .admin-subtab.admin-subtab-active {
      background: #0f172a;
      color: #fff;
      border-color: #0f172a;
      font-weight: 600;
    }
    .admin-tab {
      font-size: 12px;
      color: #0f172a;
      text-decoration: none;
      padding: 8px 10px;
      border-radius: 10px;
      border: 1px solid #e2e8f0;
      background: #f8fafc;
      line-height: 1.3;
      white-space: nowrap;
    }
    .admin-tab-active {
      background: #0f172a;
      color: #fff;
      border-color: #0f172a;
    }
    .admin-nav-item:hover {
      border-color: #94a3b8;
      background: #f1f5f9;
    }
    .admin-nav-item.admin-tab-active:hover {
      background: #0f172a;
      border-color: #0f172a;
    }
    .admin-subtabs {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 10px;
    }
    .admin-subtab {
      padding: 6px 12px;
      border-radius: 999px;
      border: 1px solid #e2e8f0;
      color: #475569;
      text-decoration: none;
      font-size: 11px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      background: #f8fafc;
    }
    .admin-subtab-active {
      border-color: #0f172a;
      color: #0f172a;
      font-weight: 600;
      background: #ffffff;
    }
	    .admin-message {
	      background: #fff7ed;
	      border: 1px solid #fed7aa;
	      border-radius: 12px;
	      padding: 12px;
	      color: #9a3412;
	    }
	    .admin-alert {
	      display: flex;
	      align-items: flex-start;
	      justify-content: space-between;
	      gap: 14px;
	    }
	    .admin-alert-text {
	      flex: 1;
	      min-width: 0;
	    }
	    .admin-dismiss {
	      flex: none;
	      background: #ffffff;
	      border: 1px solid #fdba74;
	      color: #9a3412;
	      padding: 6px 10px;
	      border-radius: 10px;
	      font-size: 12px;
	      cursor: pointer;
	      line-height: 1.2;
	      white-space: nowrap;
	    }
	    .admin-dismiss:hover {
	      background: #ffedd5;
	    }
	    .admin-dismiss:focus {
	      outline: 2px solid #fb923c;
	      outline-offset: 2px;
	    }
    .mission-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 12px;
    }
    .mission-status-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 10px;
      margin-bottom: 12px;
    }
    .mission-status-tile {
      border-radius: 12px;
      border: 1px solid #e2e8f0;
      padding: 10px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .mission-status-tile strong {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
    .mission-state-ok {
      background: #ecfdf3;
      border-color: #86efac;
      color: #166534;
    }
    .mission-state-warn {
      background: #fffbeb;
      border-color: #fcd34d;
      color: #92400e;
    }
    .mission-state-critical {
      background: #fef2f2;
      border-color: #fca5a5;
      color: #991b1b;
    }
    .mission-card {
      border: 1px solid #e2e8f0;
      border-radius: 14px;
      padding: 14px;
      background: #ffffff;
    }
    .mission-card h2 {
      margin: 0 0 8px;
      font-size: 13px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #0f172a;
    }
    .mission-health {
      display: grid;
      gap: 8px;
    }
    .mission-health-item {
      display: grid;
      grid-template-columns: 10px auto 1fr;
      align-items: center;
      gap: 8px;
      font-size: 13px;
    }
    .mission-dot {
      width: 10px;
      height: 10px;
      border-radius: 999px;
      display: inline-block;
    }
    .mission-dot-ok {
      background: #16a34a;
    }
    .mission-dot-warn {
      background: #f59e0b;
    }
    .mission-dot-critical {
      background: #dc2626;
    }
    .mission-count {
      font-size: 16px;
    }
    .mission-count-critical {
      color: #dc2626;
    }
    .mission-count-warn {
      color: #b45309;
    }
    .mission-wide-card {
      border: 1px solid #e2e8f0;
      border-radius: 14px;
      padding: 14px;
      background: #ffffff;
      margin-top: 12px;
    }
    .mission-wide-card h2 {
      margin: 0 0 8px;
      font-size: 13px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #0f172a;
    }
    .mission-audience-pulse {
      border-color: #93c5fd;
      background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 100%);
    }
    .mission-audience-pulse h2 {
      color: #1e3a8a;
    }
    .mission-audience-online {
      margin: 0 0 8px;
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #1e3a8a;
    }
    .mission-audience-popular {
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid rgba(30, 58, 138, 0.22);
    }
    .mission-events-list {
      max-height: 430px;
      overflow: auto;
    }
    .mission-server-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
      gap: 10px;
    }
    .mission-server-item {
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      background: #f8fafc;
      padding: 10px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-width: 0;
    }
    .mission-server-item-wide {
      grid-column: 1 / -1;
    }
    .mission-server-item code {
      white-space: normal;
      overflow-wrap: anywhere;
      word-break: break-word;
      line-height: 1.35;
    }
	    .backup-progress {
	      margin: 12px 0 0;
	      height: 6px;
	      background: #e2e8f0;
	      border-radius: 999px;
      overflow: hidden;
    }
	    .backup-progress-bar {
      display: block;
      height: 100%;
      width: 35%;
      background: #f59e0b;
      animation: backup-progress 1.2s ease-in-out infinite;
    }
	    @keyframes backup-progress {
      0% { transform: translateX(-80%); }
      100% { transform: translateX(220%); }
    }
    .support-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .support-card {
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 14px;
      background: #f8fafc;
    }
    .meta-row {
      font-size: 12px;
      color: #64748b;
      margin: 4px 0;
    }
    .label {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      background: #e2e8f0;
      padding: 4px 8px;
      border-radius: 999px;
    }
    .quota-info {
      font-size: 13px;
      color: #64748b;
    }
    .settings-page {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }
    .settings-card {
      display: flex;
      flex-direction: column;
      gap: 18px;
      border: 1px solid #e2e8f0;
      border-radius: 16px;
      padding: 18px;
      background: #f8fafc;
    }
    .settings-accordion-controls {
      display: flex;
      gap: 10px;
    }
    .settings-section {
      border: 1px solid #e2e8f0;
      border-radius: 16px;
      background: #f8fafc;
    }
    .settings-section > summary {
      list-style: none;
      cursor: pointer;
      font-weight: 600;
      font-size: 15px;
      padding: 14px 18px;
    }
    .settings-section > summary::-webkit-details-marker {
      display: none;
    }
    .settings-section[open] > summary {
      border-bottom: 1px solid #e2e8f0;
    }
    .settings-section > .settings-card {
      border: none;
      border-radius: 0;
      background: transparent;
      margin: 0;
    }
    .settings-card h2,
    .settings-page > h2,
    .form-card h2,
    .dashboard-panel h2,
    .form-panel h2,
    .support-panel h2,
    .support-page h2 {
      margin-top: 0;
    }
    /* Direct-child <p> in flex layout containers: zero margin so flex gap is
       the only spacing. Prose sections (.policy-page etc) are unaffected. */
    .settings-page > p,
    .settings-card > p,
    .settings-row > p,
    .form-card > p,
    .dashboard-panel > p,
    .form-panel > p,
    .support-panel > p {
      margin: 0;
    }
    /* Live-status paragraphs are always empty until JS populates them;
       they must never add space of their own. */
    p[aria-live] {
      margin: 0;
    }
    /* form-actions inside flex containers: global margin-top/bottom would
       stack on the flex gap; null it here so gap alone handles spacing. */
    .settings-card .form-actions,
    .settings-row .form-actions,
    .form-card .form-actions {
      margin-top: 0;
      margin-bottom: 0;
    }
    .settings-row {
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-width: 0;
    }
    /* The invite and new-channel forms sit inside a row; space their own
       rows and button apart (2026-11-10: labels were touching the box above). */
    #collab-invite-row,
    #own-channel-create-row {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    #collab-invite-row > button,
    #own-channel-create-row > button {
      align-self: flex-start;
    }
    .settings-row input,
    .settings-row textarea,
    .settings-row select {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      box-sizing: border-box;
      border: 1px solid #cbd5e1;
      border-radius: 12px;
      padding: 10px 12px;
      font-size: 14px;
      line-height: 1.45;
      background: #ffffff;
      color: #0f172a;
    }
    .settings-row textarea {
      min-height: 90px;
      resize: vertical;
    }
    .settings-row select {
      min-height: 42px;
      appearance: none;
      -webkit-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%230f172a' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      padding-right: 36px;
    }
    .settings-note {
      font-size: 12px;
      color: #64748b;
      margin: 0;
    }
    .settings-static {
      margin: 0;
      padding: 10px 0;
      color: #0f172a;
      font-size: 14px;
    }
    .settings-actions {
      display: flex;
      gap: 12px;
    }
    .settings-actions button {
      border-radius: 999px;
      border: 1px solid #e2e8f0;
      padding: 8px 14px;
      background: #fff;
    }
    .settings-action {
      display: inline-flex;
      align-items: center;
      align-self: flex-start;
      border-radius: 999px;
      border: none;
      background: #0f172a;
      color: #fff;
      padding: 10px 20px;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      white-space: nowrap;
      text-decoration: none;
      font-family: inherit;
    }
    .settings-action:hover {
      background: #1e293b;
    }
    .settings-danger-zone {
      border-color: #fecaca;
      background: #fff5f5;
    }
    .danger-note {
      color: #991b1b;
    }
    button.danger-button,
    .danger-button {
      background: #b91c1c;
      color: #fff;
      border: 1px solid #991b1b;
    }
    .danger-button:disabled {
      opacity: 0.65;
      cursor: not-allowed;
    }
    .danger-list {
      margin: 0;
      padding-left: 20px;
      color: #334155;
      display: grid;
      gap: 6px;
      font-size: 13px;
    }
    /* Two quiet lines (2026-10-22, Clint: three columns of 12 links felt
       bloated): main links on one row, a smaller grey legal/trust row with
       the copyright under it. FAQ is reached from Help, Updates from Blog. */
    .site-footer {
      width: min(var(--lp-max-width), calc(100% - 32px));
      margin: 6px auto 0;
      padding: 22px 16px 30px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      color: #475569;
      text-align: center;
    }
    .footer-main, .footer-legal {
      border: 0;
      box-shadow: none;
      background: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 4px 22px;
    }
    .footer-main a {
      font-size: 14px;
    }
    /* Three lines (Clint 2026-11-04): main links, legal links, then the
       copyright on its own line - on every screen size. */
    .footer-small {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 6px 28px;
      font-size: 12px;
      color: #5f6f85; /* was #94a3b8, 2.3:1 - accessibility audit 2026-11-12 */
    }
    .footer-legal {
      gap: 4px 16px;
    }
    .footer-legal a {
      font-size: 12px;
      color: #5f6f85;
    }
    .site-footer a {
      color: inherit;
      text-decoration: none;
    }
    .site-footer a:hover {
      text-decoration: underline;
    }
    .footer-admin-link {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #94a3b8;
      text-decoration: none;
    }
    .footer-admin-link:hover {
      color: #475569;
    }
    .plans-page {
      max-width: 960px;
      margin: 0 auto;
      padding: 24px 0 32px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .plans-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 16px;
    }
    .plan-card {
      border: 1px solid #e2e8f0;
      border-radius: 18px;
      padding: 18px;
      background: #ffffff;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .plan-title {
      font-size: 14px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #0f172a;
      margin: 0;
    }
    .plan-price {
      font-size: 20px;
      font-weight: 600;
      color: #0f172a;
    }
    .plan-pill {
      display: inline-flex;
      align-items: center;
      padding: 2px 10px;
      border-radius: 999px;
      background: #f1f5f9;
      color: #475569;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      width: fit-content;
    }
    .plan-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 6px;
      color: #334155;
      font-size: 14px;
    }
    .plans-rules .plan-list {
      list-style: disc;
      padding-left: 18px;
    }
	    .plan-note {
	      font-size: 13px;
	      color: #475569;
	    }
	    .admin-maintenance-banner {
	      background: #fef2f2;
	      border: 1px solid #fecaca;
	      border-radius: 12px;
	      padding: 12px;
	      color: #991b1b;
	      margin: 16px 0 0;
	    }
	    .admin-maintenance-banner a {
	      color: #991b1b;
	      font-weight: 600;
	      text-decoration: underline;
	    }
	    .site-alert {
	      border: 1px solid #fecaca;
	      background: #fef2f2;
	      border-radius: 14px;
	      padding: 12px 14px;
	      color: #7f1d1d;
	      margin: 0;
	      font-size: 14px;
	      line-height: 1.5;
	    }
	    .site-alert strong {
	      font-weight: 700;
	    }
	    .plan-note strong {
	      font-weight: 700;
	      color: #b45309;
	    }
	    .plan-subscribe-form {
	      margin: 2px 0 0;
	    }
	    .plan-subscribe-form button,
	    .plan-subscribe-link {
	      display: inline-flex;
	      align-items: center;
	      justify-content: center;
	      border-radius: 999px;
	      border: none;
	      background: #1d4ed8;
	      color: #fff;
	      padding: 10px 18px;
	      letter-spacing: 0.08em;
	      text-transform: uppercase;
	      font-size: 12px;
	      box-shadow: 0 10px 20px -12px rgba(30, 64, 175, 0.45);
	      text-decoration: none;
	      cursor: pointer;
	      font-family: inherit;
	    }
	    .plan-subscribe-form button:hover,
	    .plan-subscribe-link:hover {
	      background: #1e40af;
	      text-decoration: none;
	    }
	    .plan-signup-link {
	      margin-top: 6px;
	    }
	    .plan-signup-link a {
	      color: #0f172a;
	      text-decoration: underline;
	      text-underline-offset: 2px;
	    }
	    .plans-bigger-library {
	      margin: 0;
	      text-align: center;
	      font-size: 15px;
	    }
	    .plans-rules {
	      border: 1px solid #e2e8f0;
	      border-radius: 16px;
      padding: 16px 18px;
      background: #f8fafc;
      display: flex;
      flex-direction: column;
      gap: 10px;
      color: #334155;
      font-size: 14px;
    }
    .plans-rules h2 {
      margin: 0;
      font-size: 13px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #0f172a;
    }
    .upload-actions button {
      border-radius: 999px;
      border: none;
      background: #0f172a;
      color: #fff;
      padding: 10px 18px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-size: 12px;
    }
    .upload-retry {
      border-radius: 999px;
      border: 1px solid #cbd5f5;
      background: #fff;
      color: #0f172a;
      padding: 8px 14px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-size: 12px;
      align-self: flex-start;
    }
    .search-hint {
      color: #64748b;
      font-size: 13px;
    }
    .policy-page ul {
      padding-left: 20px;
      margin: 0;
    }
    .policy-page li {
      margin-bottom: 2px;
    }
    .policy-page li:last-child {
      margin-bottom: 0;
    }
    .policy-page section:last-child {
      margin-bottom: 0;
    }
    .choosing-platform-page {
      gap: 12px;
    }
    .platform-table-wrap {
      width: 100%;
      margin-top: 4px;
      border-radius: 16px;
      border: 1px solid #dbe7f4;
      background: linear-gradient(180deg, #f8fbff 0%, #ffffff 55%);
      box-shadow: 0 16px 34px -28px rgba(15, 23, 42, 0.35);
      padding: 8px;
    }
    .platform-compare-table {
      width: 100%;
      border-collapse: collapse;
      border-radius: 14px;
      overflow: hidden;
      background: #ffffff;
    }
    .platform-compare-table th,
    .platform-compare-table td {
      text-align: left;
      vertical-align: top;
      padding: 10px 12px;
      border-bottom: 1px solid #e2e8f0;
      font-size: 13px;
      color: #334155;
    }
    .platform-compare-table thead th {
      background: linear-gradient(180deg, #eef4fb 0%, #e7eef8 100%);
      color: #0f172a;
      font-weight: 600;
      letter-spacing: 0.02em;
    }
    .platform-compare-table tbody th[scope="row"] {
      width: 24%;
      color: #0f172a;
      font-weight: 600;
      background: #fbfdff;
    }
    .platform-compare-table tbody tr:nth-child(even) td {
      background: #fcfdff;
    }
    .platform-compare-table tbody tr:hover td,
    .platform-compare-table tbody tr:hover th[scope="row"] {
      background: #f7fbff;
    }
    .platform-compare-table thead th:nth-child(4),
    .platform-compare-table tbody td:nth-child(4),
    .platform-compare-table thead th.lp-col,
    .platform-compare-table tbody td.lp-col {
      background: #eef6ff;
      color: #0b2447;
    }
    .platform-compare-table thead th:nth-child(4),
    .platform-compare-table thead th.lp-col {
      background: linear-gradient(180deg, #dcecff 0%, #d6e8ff 100%);
      font-weight: 700;
    }
    .platform-compare-table tbody td:nth-child(4),
    .platform-compare-table tbody td.lp-col {
      font-weight: 600;
    }
    .platform-compare-table tbody tr:last-child th,
    .platform-compare-table tbody tr:last-child td {
      border-bottom: none;
    }
    .platform-trust-callout {
      border: 1px solid #dbeafe;
      border-radius: 14px;
      background: #eff6ff;
      padding: 14px 16px;
    }
    .platform-trust-callout p {
      margin: 0;
    }
    .platform-bottom-cta {
      text-align: center;
      margin-top: 6px;
    }
    .platform-bottom-cta a {
      text-decoration: none;
    }
    .platform-bottom-cta a:hover {
      text-decoration: underline;
    }
    .library-actions button {
      font-size: 11px;
    }
    .upload-actions {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .upload-actions button {
      align-self: flex-start;
    }
    .upload-progress-bar {
      appearance: none;
    }
    .upload-progress-bar::-webkit-progress-bar {
      background: #e2e8f0;
      border-radius: 999px;
    }
    .upload-progress-bar::-webkit-progress-value {
      background: #0f172a;
      border-radius: 999px;
    }
    .upload-progress-bar::-moz-progress-bar {
      background: #0f172a;
      border-radius: 999px;
    }
    .card-thumb {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .library-thumb {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .card-thumb img,
    .card-thumb video,
    .library-thumb img {
      max-height: none;
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }
    .card-thumb.is-portrait img,
    .card-thumb.is-square img,
    .card-thumb.is-classic img,
    .card-thumb.is-wide img,
    .card-thumb.is-ultrawide img,
    .library-thumb.is-portrait img,
    .library-thumb.is-square img,
    .library-thumb.is-classic img,
    .library-thumb.is-wide img,
    .library-thumb.is-ultrawide img {
      width: 100%;
      height: 100%;
    }
    /* Thumbnails always have rounded corners (Clint, 2026-10-26). A box
       given the video's exact shape is filled edge to edge, so a picture a
       few percent off that shape (a custom thumbnail within the 5% upload
       tolerance, one made before a crop) is trimmed slightly instead of
       sitting inside the box with square corners. */
    :is(.card-thumb, .library-thumb)[style*="aspect-ratio"] img {
      object-fit: cover;
    }
    .library-meta-section {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .upload-page label input[type="checkbox"] {
      margin-right: 8px;
    }
    .upload-page label input[type="checkbox"] + span {
      margin-left: 0;
    }
    .upload-section--responsibility label {
      flex-direction: row;
      align-items: flex-start;
      gap: 10px;
      color: #475569;
    }
    .upload-section--responsibility input[type="checkbox"] {
      width: 16px;
      height: 16px;
      margin-top: 2px;
    }
    .checkbox-row {
      display: flex;
      align-items: center;
      gap: 10px;
      color: #475569;
    }
    .checkbox-row input[type="checkbox"] {
      width: 16px;
      height: 16px;
      margin: 0;
    }
    .checkbox-row span {
      margin-left: 2px;
    }
    #video-edit-form .checkbox-row {
      gap: 14px;
    }
    #video-edit-form .checkbox-row span {
      margin-left: 4px;
    }
    .faq-page .faq {
      gap: 28px;
    }
    .faq-group {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .faq-group-title {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #64748b;
      padding: 0 4px;
      margin: 0 0 6px;
    }
    .faq-page .faq-item {
      background: #fff;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      margin: 0;
      padding: 0;
      overflow: hidden;
      transition: border-color 150ms ease, box-shadow 150ms ease;
    }
    .faq-page .faq-item:hover {
      border-color: #cbd5e1;
      box-shadow: 0 1px 6px rgba(15,23,42,0.06);
    }
    .faq-page .faq-item[open] {
      border-color: #cbd5e1;
      box-shadow: 0 2px 8px rgba(15,23,42,0.08);
    }
    .faq-page details.faq-item > summary {
      list-style: none;
      cursor: pointer;
      padding: 15px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      user-select: none;
    }
    .faq-page details.faq-item > summary::-webkit-details-marker {
      display: none;
    }
    .faq-page details.faq-item > summary::after {
      content: "";
      display: block;
      width: 8px;
      height: 8px;
      border-right: 2px solid #94a3b8;
      border-bottom: 2px solid #94a3b8;
      transform: rotate(45deg) translateY(-2px);
      flex-shrink: 0;
      transition: transform 200ms ease;
    }
    .faq-page details.faq-item[open] > summary::after {
      transform: rotate(225deg) translateY(2px);
    }
    .faq-page .faq-q {
      font-size: 15px;
      font-weight: 600;
      color: #0f172a;
      margin: 0;
    }
    .faq-page .faq-a {
      padding: 12px 18px 16px;
      margin-top: 0;
      border-top: 1px solid #f1f5f9;
      line-height: 1.55;
      color: #334155;
    }
    .benefits-list {
      list-style: none;
      padding-left: 20px;
    }
    .benefits-list li {
      position: relative;
    }
    .benefits-list li::before {
      content: "✓";
      position: absolute;
      left: -18px;
      color: #2f6f55;
    }
    .library-card {
      gap: 24px;
    }
    .library-details {
      padding-top: 2px;
    }
    .card-content {
      padding-top: 2px;
    }
    .site-footer a {
      padding: 4px 0;
    }
    .library-meta-section {
      align-items: flex-end;
    }
    .upload-page {
      gap: 22px;
    }
    .btn-primary {
      display: inline-flex;
      align-self: start;
      border-radius: 999px;
      background: #0f172a;
      color: #fff;
      padding: 10px 20px;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      white-space: nowrap;
      font-family: inherit;
      text-decoration: none;
    }
    .btn-primary:hover { background: #1e293b; }
    .btn-primary:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }
    .btn-danger-sm {
      display: inline-flex;
      align-self: start;
      border-radius: 999px;
      background: #fff5f5;
      color: #b91c1c;
      border: 1px solid #fecaca;
      padding: 5px 12px;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      white-space: nowrap;
      font-family: inherit;
      text-decoration: none;
    }
    .btn-danger-sm:hover { background: #fef2f2; border-color: #fca5a5; }
    .btn-sm {
      display: inline-flex;
      align-self: start;
      border-radius: 999px;
      border: 1px solid #e2e8f0;
      background: #fff;
      color: #475569;
      padding: 5px 12px;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      white-space: nowrap;
      font-family: inherit;
      text-decoration: none;
    }
    .btn-sm:hover {
      background: #f8fafc;
      border-color: #cbd5e1;
    }
    .ad-manager-tabs {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      padding: 4px 0;
    }
    .tab-btn {
      display: inline-flex;
      border: 1px solid #e2e8f0;
      border-radius: 999px;
      background: #fff;
      color: #475569;
      padding: 6px 16px;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      white-space: nowrap;
      font-family: inherit;
      text-decoration: none;
    }
    .tab-btn:hover {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #0f172a;
    }
    .tab-btn.active {
      background: #0f172a;
      color: #fff;
      border-color: #0f172a;
    }
    .tab-panel.hidden { display: none; }
    .ad-asset-card {
      display: flex;
      flex-direction: column;
      gap: 8px;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 14px;
      background: #fff;
    }
    .ad-asset-info {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .ad-asset-name {
      font-size: 14px;
      font-weight: 600;
      color: #0f172a;
    }
    .ad-asset-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: #64748b;
    }
    .ad-asset-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .badge {
      display: inline-flex;
      align-items: center;
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .badge-pending {
      background: #fef3c7;
      color: #92400e;
    }
    .badge-ready {
      background: #dcfce7;
      color: #166534;
    }
    .badge-failed {
      background: #fee2e2;
      color: #991b1b;
    }
    .badge-muted {
      background: #f1f5f9;
      color: #64748b;
    }
    @media (max-width: 900px) {
      .nav-shell {
        width: min(var(--lp-max-width), calc(100% - 28px));
        gap: 12px;
      }
      .nav-shell {
        flex-direction: column;
        align-items: stretch;
      }
      .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
      }
      .admin-global-header {
        flex-direction: row;
        align-items: center;
        gap: 10px;
      }
      .admin-header-search {
        width: auto;
        min-width: 240px;
        flex: 0 1 60%;
      }
      .admin-header-search-form {
        flex-wrap: nowrap;
      }
      .admin-header-search-form select {
        flex: 0 0 100px;
      }
      .admin-header-search-form input[type="search"] {
        min-width: 0;
      }
      .dashboard-actions {
        width: 100%;
        align-items: center;
      }
      .dashboard-actions-row {
        width: 100%;
        justify-content: center;
      }
      .dashboard-hero-right {
        width: 100%;
      }
      .dashboard-side-panels {
        grid-template-columns: 1fr;
      }
      .platform-compare-table,
      .platform-compare-table tbody,
      .platform-compare-table tr,
      .platform-compare-table th,
      .platform-compare-table td {
        display: block;
        width: 100%;
        /* Padding and border inside the 100%: the row cards were 26px wider
           than the page and their right edge was cut off (2026-11-07). */
        box-sizing: border-box;
      }
      .platform-compare-table thead {
        display: none;
      }
      .platform-compare-table {
        border: none;
        background: transparent;
      }
      .platform-compare-table tr {
        margin-bottom: 12px;
        border: 1px solid #dbe7f4;
        border-radius: 12px;
        padding: 10px 12px;
        background: linear-gradient(180deg, #f9fbfe 0%, #ffffff 100%);
        box-shadow: 0 8px 18px -16px rgba(15, 23, 42, 0.35);
      }
      .platform-compare-table tbody th[scope="row"] {
        width: auto;
        background: transparent;
        border-bottom: 1px solid #e2e8f0;
        padding: 0 0 8px;
        margin-bottom: 6px;
      }
      .platform-compare-table td {
        border-bottom: none;
        padding: 4px 0;
        display: grid;
        grid-template-columns: minmax(130px, 44%) 1fr;
        gap: 8px;
      }
      .platform-compare-table td::before {
        content: attr(data-label);
        color: #64748b;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        width: fit-content;
        border-radius: 999px;
        padding: 2px 8px;
        background: #f1f5f9;
      }
      .platform-compare-table td[data-label="FilmComet"] {
        color: #0b2447;
        font-weight: 600;
      }
      .platform-compare-table td[data-label="FilmComet"]::before {
        background: #dbeafe;
        color: #1e3a8a;
      }
      .nav-left {
        justify-content: center;
      }
      .nav-right {
        width: 100%;
        min-width: 0;
        justify-content: center;
        flex-wrap: wrap;
      }
      .nav-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 8px;
        white-space: normal;
      }
      .nav-search {
        justify-content: center;
        width: 100%;
      }
      .nav-search input {
        width: 100%;
      }
      .admin-header-search-form select {
        display: none;
      }
      main {
        padding: 20px;
      }
      .card {
        flex-direction: column;
      }
      .card.video-row {
        align-items: stretch;
      }
      .card.video-row .card-thumb-link {
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
      }
      .card.video-row .card-thumb {
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: auto;
      }
      .card.video-row .card-thumb.is-portrait {
        max-height: none;
      }
      /* Fill the box (which has the film's own shape), as on desktop. This
         was width/height auto + contain: on phones the picture showed at its
         natural size (240-300px) inside a wider rounded box, so it sat small
         with square corners (Clint 2026-11-19, also raised 2026-11-07). No
         object-fit here, so the desktop rule applies (cover in a box with the
         film's shape - "thumbnails always have rounded corners"). */
      .card.video-row .media-frame img,
      .card.video-row .media-frame video {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
      }
      .card-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: auto;
      }
      .library-card {
        flex-direction: column;
      }
      .library-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: auto;
      }
      /* Safari works out an aspect-ratio box's height from the card's outer
         width when the box is width:100% in a column card, so the box came out
         ~10% taller than the picture and its rounded corners sat below it:
         square-cornered thumbnails on iPhone/iPad (Clint 2026-11-07). A
         stretched auto width gives the right height in every browser. */
      .library-thumb:not(.is-portrait) {
        width: auto;
        align-self: stretch;
      }
      .library-thumb.is-portrait {
        /* Centred on phones too (2026-11-03: it sat on the left edge). */
        margin-left: auto;
        margin-right: auto;
        align-self: center;
        /* 240px + max-width, not min(100%, 240px): Safari sized the box
           from the card's outer width with a percentage, ~60px too tall. */
        width: 240px;
        max-width: 100%;
      }
      .library-meta-section {
        text-align: left;
        align-items: flex-start;
      }
      .upload-cta {
        padding: 16px;
      }
      .upload-actions {
        width: 100%;
      }
      .upload-actions button {
        width: 100%;
        justify-content: center;
      }
      .upload-form {
        gap: 20px;
      }
      .thumbnail-preview {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
      }
      .thumbnail-preview.is-portrait {
        width: min(220px, 100%);
        aspect-ratio: 9 / 16;
      }
      .thumbnail-card {
        flex-direction: column;
        align-items: flex-start;
      }
      .library-controls {
        flex-direction: column;
        align-items: flex-start;
      }
      .admin-nav-shell {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
      }
      .admin-nav-group {
        width: 100%;
      }
      .admin-nav-summary {
        display: block;
        width: 100%;
      }
      .admin-nav-flyout {
        position: static;
        min-width: 0;
        max-width: none;
        box-shadow: none;
        margin-top: 8px;
      }
      .support-form button {
        width: 100%;
      }
    }
    @media (max-width: 768px) {
      .nav-actions a {
        font-size: 11px;
        letter-spacing: 0.06em;
      }
      .theme-toggle {
        font-size: 10px;
        padding: 6px 9px;
      }
      .card,
      .library-card {
        flex-direction: column;
        max-width: 100%;
      }
      .card-thumb,
      .library-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: auto;
      }
      .library-thumb:not(.is-portrait) {
        width: auto;
        align-self: stretch;
      }
      .card-content,
      .library-details {
        width: 100%;
      }
      .library-actions {
        gap: 8px 10px;
      }
    }
    @media (max-width: 480px) {
      .nav-left a {
        font-size: 1.25rem;
      }
      .nav-actions {
        gap: 8px 10px;
      }
      .theme-toggle {
        margin-top: 2px;
      }
    }
    @media (min-width: 1200px) {
      :root {
        --lp-max-width: 1120px;
      }
    }
    @media (min-width: 1440px) {
      :root {
        --lp-max-width: 1200px;
      }
    }
    /* Wider frame on big screens (Clint 2026-11-07): header, page and footer
       grow together; running text keeps its reading width (see "Reading
       width" in core_layout_css.py), grids gain columns. */
    @media (min-width: 1560px) {
      :root {
        --lp-max-width: 1440px;
      }
    }
    @media (min-width: 1760px) {
      :root {
        --lp-max-width: 1600px;
      }
    }
    .lp-acknowledgement {
      margin-top: 28px;
      text-align: center;
      font-size: 0.92rem;
      line-height: 1.5;
      font-style: italic;
      font-weight: 700;
      color: var(--lp-muted-text, #666);
      /* Full width of the text column, centred (2026-11-10). A 72ch cap
         (2026-11-07) left it narrow and pushed left on wide Chrome, because
         the page's own paragraph margins override margin-inline: auto. The
         column itself is capped, so it never runs as one very long line. */
      width: 100%;
      box-sizing: border-box;
    }

    /* ── Breadcrumb nav (shared) ──────────────────────── */
    .settings-breadcrumb {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      color: #64748b;
      padding: 6px 2px;
      flex-wrap: wrap;
    }
    .settings-breadcrumb a {
      color: #475569;
      text-decoration: none;
    }
    .settings-breadcrumb a:hover {
      color: #0f172a;
      text-decoration: underline;
    }
    .settings-breadcrumb .breadcrumb-sep {
      color: #cbd5e1;
      font-size: 11px;
      user-select: none;
    }
    .settings-breadcrumb span:last-child {
      color: #0f172a;
      font-weight: 500;
    }

    /* ── Video stats page ─────────────────────────────── */
    .stats-totals {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin: 0 0 16px;
    }
    .stats-total-item {
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 14px 12px;
      background: #f8fafc;
      text-align: center;
    }
    .stats-total-count {
      display: block;
      font-size: 28px;
      font-weight: 700;
      color: #0f172a;
      font-variant-numeric: tabular-nums;
      line-height: 1.1;
    }
    .stats-total-label {
      display: block;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #64748b;
      margin-top: 4px;
    }
    .stats-section {
      margin: 0;
    }
    /* How far people watch (2026-10-22) */
    .stats-totals.stats-totals-four { grid-template-columns: repeat(4, 1fr); }
    @media (max-width: 640px) { .stats-totals.stats-totals-four { grid-template-columns: repeat(2, 1fr); } }
    .stats-watch-chart { display: block; width: 100%; height: auto; margin: 4px 0 8px; }
    .stats-watch-line { fill: none; stroke: #3b82f6; stroke-width: 2.5; stroke-linejoin: round; }
    .stats-watch-grid { stroke: #e2e8f0; stroke-width: 1; }
    .stats-watch-axis { fill: #64748b; font-size: 11px; font-variant-numeric: tabular-nums; }
    .stats-section-title {
      font-size: 13px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      color: #64748b;
      margin: 0 0 12px;
    }
    .stats-chart {
      display: flex;
      gap: 3px;
      height: 180px;
      overflow-x: auto;
      margin: 0 0 4px;
    }
    .stats-bar-col {
      flex: 1;
      min-width: 14px;
      max-width: 32px;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .stats-bar-stack {
      width: 100%;
      height: calc(100% - 18px);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
    }
    .stats-bar-watch {
      width: 100%;
      background: #3b82f6;
      border-radius: 2px 2px 0 0;
    }
    .stats-bar-embed {
      width: 100%;
      background: #a78bfa;
    }
    .stats-bar-label {
      font-size: 9px;
      color: #64748b;
      margin-top: 3px;
      white-space: nowrap;
      overflow: hidden;
      text-align: center;
      line-height: 1;
    }
    .stats-legend {
      display: flex;
      gap: 14px;
      margin: 6px 0 0;
      font-size: 12px;
      color: #475569;
    }
    .stats-legend-watch::before,
    .stats-legend-embed::before {
      content: "";
      display: inline-block;
      width: 10px;
      height: 10px;
      border-radius: 2px;
      margin-right: 5px;
      vertical-align: middle;
    }
    .stats-legend-watch::before { background: #3b82f6; }
    .stats-legend-embed::before { background: #a78bfa; }
    .stats-referrer-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 14px;
    }
    .stats-referrer-table thead th {
      text-align: left;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      color: #64748b;
      font-weight: 600;
      padding: 0 0 8px;
      border-bottom: 1px solid #e2e8f0;
    }
    .stats-referrer-table tbody tr:hover {
      background: #f1f5f9;
    }
    .stats-referrer-domain {
      padding: 8px 0;
      color: #334155;
      border-bottom: 1px solid #f1f5f9;
    }
    .stats-referrer-count {
      padding: 8px 0 8px 16px;
      font-variant-numeric: tabular-nums;
      font-weight: 600;
      color: #0f172a;
      text-align: right;
      border-bottom: 1px solid #f1f5f9;
      white-space: nowrap;
    }
    .stats-period-nav {
      display: flex;
      gap: 6px;
      margin-bottom: 12px;
    }
    .stats-period-nav a {
      font-size: 13px;
      font-weight: 500;
      color: #475569;
      text-decoration: none;
      padding: 4px 12px;
      border-radius: 20px;
      border: 1px solid #e2e8f0;
      background: #f8fafc;
    }
    .stats-period-nav a:hover {
      border-color: #94a3b8;
      color: #0f172a;
    }
    .stats-period-nav a.stats-period-active {
      background: #0f172a;
      color: #fff;
      border-color: #0f172a;
    }
    .stats-empty {
      color: #94a3b8;
      margin: 20px 0;
    }

    /* ── Catalogue (discover) page ────────────────────── */
    .discover-header {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 16px;
    }
    .discover-header h1 {
      margin: 0;
      flex: 1;
      min-width: 0;
    }
    .discover-controls {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .discover-sort-btn {
      font-size: 13px;
      font-weight: 500;
      color: #475569;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 20px;
      padding: 11px 14px;
      cursor: pointer;
      line-height: 1.4;
      min-height: 44px;
    }
    .discover-sort-btn:hover {
      border-color: #94a3b8;
      color: #0f172a;
    }
    .discover-sort-btn.is-active {
      background: #0f172a;
      color: #fff;
      border-color: #0f172a;
    }
    .discover-shuffle-btn {
      font-size: 13px;
      font-weight: 500;
      color: #475569;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 20px;
      padding: 11px 14px;
      cursor: pointer;
      line-height: 1.4;
      min-height: 44px;
    }
    .discover-shuffle-btn:hover {
      border-color: #94a3b8;
      color: #0f172a;
    }
    @media (max-width: 520px) {
      .discover-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
      }
      .discover-header h1 {
        flex: none;
      }
    }
    @media (max-width: 600px) {
      .library-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 1fr;
        gap: 6px;
        margin-top: 12px;
      }
      .library-actions a,
      .library-actions button {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 5px 4px;
        min-height: 30px;
        height: 100%;
        box-sizing: border-box;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        font-size: 10px;
        white-space: nowrap;
        text-align: center;
      }
      .library-actions button[data-delete-id],
      .library-actions button[data-purge-id] {
        grid-column: span 2;
        border-color: transparent;
        background: #b91c1c;
        color: #fff;
      }
    }
    .discover-filter-panel {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 16px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .discover-filter-panel .form-actions {
      margin-top: 4px;
    }
.admin-nav-dropdown{position:relative;display:inline-flex;align-items:center;margin-left:8px}.admin-nav-toggle{background:none;border:1px solid rgba(255,255,255,.2);border-radius:6px;color:inherit;cursor:pointer;font-size:.82rem;padding:5px 12px;white-space:nowrap;line-height:1}.admin-nav-toggle:hover,.admin-nav-toggle[aria-expanded=true]{background:rgba(255,255,255,.12)}.admin-nav-badge{background:#ef4444;border-radius:10px;color:#fff;font-size:.68rem;font-weight:700;min-width:16px;padding:1px 4px;vertical-align:top;margin-left:3px}.admin-nav-menu{background:#1e293b;border:1px solid #334155;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.4);max-height:80vh;min-width:200px;overflow-y:auto;padding:6px 0;position:absolute;right:0;top:calc(100% + 6px);z-index:500}.admin-nav-menu-group{padding:2px 0}.admin-nav-menu-heading{color:#475569;font-size:.68rem;font-weight:700;letter-spacing:.06em;margin:0;padding:6px 14px 2px;text-transform:uppercase}.admin-nav-menu a{color:#cbd5e1;display:block;font-size:.83rem;padding:5px 14px;text-decoration:none}.admin-nav-menu a:hover{background:#334155;color:#f1f5f9}.admin-nav-menu a.admin-nav-active{color:#fff;font-weight:600}.admin-nav-menu-divider{border:none;border-top:1px solid #334155;margin:4px 0}.admin-nav-alert-critical{color:#ef4444!important;font-weight:600}.admin-nav-alert-error{color:#f87171!important}.admin-nav-alert-warning{color:#f59e0b!important}@media(max-width:640px){.admin-nav-menu{max-width:calc(100vw - 24px);right:-8px}}.plan-notice{background:#5b3a06;border-bottom:1px solid rgba(255,255,255,.12);color:#fde9c0;padding:10px 16px;font-size:14px;line-height:1.45}.plan-notice a{color:#ffd58a;text-decoration:underline}.plan-notice strong{color:#fff}.channel-banner{background:#0c3a6e;border-bottom:1px solid rgba(255,255,255,.1);color:#e2e8f0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 20px;font-size:.85rem}.channel-banner-text strong{color:#93c5fd}.channel-banner-actions{display:flex;gap:8px;flex-shrink:0}.channel-banner-btn{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);border-radius:5px;color:#e2e8f0;cursor:pointer;font-size:.8rem;padding:4px 10px;white-space:nowrap}.channel-banner-btn:hover{background:rgba(255,255,255,.22)}.channel-banner-btn-back{background:rgba(59,130,246,.25);border-color:rgba(59,130,246,.5)}.channel-banner-btn-back:hover{background:rgba(59,130,246,.4)}.channel-switcher-overlay{align-items:center;background:rgba(0,0,0,.7);bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:600}.channel-switcher-overlay[hidden]{display:none}.channel-switcher-modal{background:#1e293b;border:1px solid #334155;border-radius:12px;box-shadow:0 16px 48px rgba(0,0,0,.5);max-height:80vh;overflow-y:auto;padding:24px;width:min(480px,calc(100vw - 40px))}.channel-switcher-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.channel-switcher-header h2{color:#f1f5f9;font-size:1rem;font-weight:600;margin:0}.channel-switcher-close{background:none;border:none;color:#94a3b8;cursor:pointer;font-size:1.1rem;padding:4px 8px}.channel-switcher-close:hover{color:#f1f5f9}.channel-switcher-list{display:flex;flex-direction:column;gap:8px}.channel-switcher-card{align-items:center;background:#0f172a;border:2px solid transparent;border-radius:8px;cursor:pointer;display:flex;gap:12px;justify-content:space-between;padding:12px 16px;text-align:left;transition:border-color .15s,background .15s;width:100%}.channel-switcher-card:hover{background:#1e3a5f;border-color:#3b82f6}.channel-switcher-card[aria-current=true]{border-color:#60a5fa;background:#1a3a5c}.channel-switcher-card-info{flex:1;min-width:0}.channel-switcher-card-name{color:#f1f5f9;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-switcher-card-meta{color:#94a3b8;font-size:.8rem;margin-top:2px}.channel-switcher-card-check{color:#60a5fa;font-size:1.1rem;flex-shrink:0}.channel-switcher-loading{color:#94a3b8;font-size:.9rem;text-align:center;padding:16px 0}@media(max-width:640px){.channel-banner{flex-wrap:wrap;gap:8px}}@media(min-width:1100px){main#lp-main-content :is(form.support-form,.form-card,details.settings-section,.settings-card,.upload-page){max-width:60rem;box-sizing:border-box}main#lp-main-content:has(>.support-page :is(form.support-form,.form-card))>:not(script,style,.lp-modal-overlay,[role=dialog],[class*=overlay]),main#lp-main-content:has(>section.form-card)>:not(script,style,.lp-modal-overlay,[role=dialog],[class*=overlay]),main#lp-main-content>.support-page:has(form.support-form,.form-card),main#lp-main-content>section.settings-page,main#lp-main-content:has(>section.upload-page)>:not(script,style,.lp-modal-overlay,[role=dialog],[class*=overlay]),main#lp-main-content:has(>form.support-form)>:not(script,style,.lp-modal-overlay,[role=dialog],[class*=overlay]){max-width:60rem;margin-inline:auto}}@media(min-width:1100px){main#lp-main-content :is(.card-thumb,.library-thumb):not(.is-portrait){width:300px}main#lp-main-content :is(.card-thumb,.library-thumb).is-portrait{width:210px}main#lp-main-content .library-thumb.is-portrait{margin-inline:45px}main#lp-main-content .card.video-row :is(.card-thumb-link,.media-column){flex-basis:300px;width:300px;min-width:300px}main#lp-main-content .card.video-row .card-thumb:not(.is-portrait){width:100%}}@media(min-width:1560px){main#lp-main-content :is(.card-thumb,.library-thumb):not(.is-portrait){width:360px}main#lp-main-content :is(.card-thumb,.library-thumb).is-portrait{width:252px}main#lp-main-content .library-thumb.is-portrait{margin-inline:54px}main#lp-main-content .card.video-row :is(.card-thumb-link,.media-column){flex-basis:360px;width:360px;min-width:360px}}@media(max-width:339px){.library-thumb.is-portrait{aspect-ratio:auto!important}}.lp-toc{display:none}@media(min-width:1100px){main#lp-main-content>:is(.policy-page,.updates-page){max-width:60rem;margin-inline:auto}main#lp-main-content:has(>section.plans-page)>:not(script,style,.lp-modal-overlay,[role=dialog],[class*=overlay]){max-width:60rem;margin-inline:auto}main#lp-main-content :is(.blog-hero,.blog-tag-bar,.blog-list,.blog-post-wrap,.help-section){max-width:calc(60rem - 48px)}main#lp-main-content .blog-wrap>.blog-subscribe--list{max-width:60rem;box-sizing:border-box}main#lp-main-content .help-cat-grid{max-width:60rem}main#lp-main-content>.analytics-page{margin-inline:auto}main#lp-main-content>.lp-empty{max-width:60rem;margin-inline:auto}main#lp-main-content .help-body{max-width:none}}main nav{position:static}main#lp-main-content :is(.plans-rules,.platform-table-wrap){box-sizing:border-box}main#lp-main-content .platform-table-wrap{overflow-x:auto}main#lp-main-content .analytics-section{overflow-x:auto}main#lp-main-content :is(.help-body,.policy-page) code{overflow-wrap:anywhere;word-break:break-all}@media(max-width:1099px){body[data-area=dashboard] main#lp-main-content>:is(.vim-page,.access-page,.analytics-page){max-width:none}}body[data-area=dashboard] main#lp-main-content>:is(.vim-page,.access-page){padding-inline:0}@media(max-width:1099px){main#lp-main-content .help-section{max-width:none}}@media(min-width:1100px){body[data-area=dashboard] main#lp-main-content>:not(script,style,.lp-modal-overlay,[role=dialog],[class*=overlay]){max-width:60rem;width:auto;margin-inline:auto;box-sizing:border-box}body[data-area=dashboard] main#lp-main-content>:is(.vim-page,.access-page){padding-inline:0}body[data-area=dashboard-wide] main#lp-main-content>:not(script,style,.lp-modal-overlay,[role=dialog],[class*=overlay]):not(:has(img[src*="/thumbnails/"],.library-thumb,.card-thumb,video)),body[data-area=dashboard-wide] main#lp-main-content>:has(img[src*="/thumbnails/"],.library-thumb,.card-thumb,video)>:not(script,style,.lp-modal-overlay,[role=dialog],[class*=overlay]):not(:has(img[src*="/thumbnails/"],.library-thumb,.card-thumb,video)),body[data-area=dashboard-wide] main#lp-main-content>:has(img[src*="/thumbnails/"],.library-thumb,.card-thumb,video)>:has(img[src*="/thumbnails/"],.library-thumb,.card-thumb,video)>:not(script,style,.lp-modal-overlay,[role=dialog],[class*=overlay]):not(:has(img[src*="/thumbnails/"],.library-thumb,.card-thumb,video)){max-width:60rem;width:100%;margin-inline:auto;box-sizing:border-box}}@media(min-width:1560px){main#lp-main-content>.policy-page.has-toc{max-width:none;display:grid;grid-template-columns:240px minmax(0,60rem);column-gap:56px;justify-content:center;align-items:start}main#lp-main-content .policy-page.has-toc>.lp-toc-body{grid-column:2;min-width:0}main#lp-main-content .policy-page.has-toc>.lp-toc{display:block;grid-column:1;grid-row:1;position:sticky;top:128px;align-self:start;padding:14px 16px;border:1px solid #e2e8f0;border-radius:12px;font-size:14px}.lp-toc-title{margin:0 0 8px;font-weight:700;font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:#64748b}.lp-toc ul{list-style:none;margin:0;padding:0}.lp-toc li{margin:0 0 6px;max-width:none}.lp-toc a{color:#334155;text-decoration:none}.lp-toc a:hover{text-decoration:underline}}textarea:not([readonly]):not(.ash-main *){font-family:inherit}#lpCredits td{overflow-wrap:anywhere}main#lp-main-content>.support-page+.support-page{margin-top:24px}main#lp-main-content select{max-width:100%;min-width:0}main#lp-main-content label:has(>select){flex-wrap:wrap}main form:not(.support-form--spaced):not(.admin-form):not(.form-card) button:not([class]):not(.form-actions button),main form:not(.support-form--spaced):not(.admin-form):not(.form-card) input[type=submit]:not([class]),main form button.admin-link:not(.event-details-link),.blog-subscribe-btn,.help-search-btn,.library-search-form button,.library-controls .library-filter-button{border-radius:999px;min-height:34px;padding:10px 20px;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;background:#0f172a;color:#fff;border:0;cursor:pointer;line-height:1.1;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}main form button.admin-link.danger{background:#b91c1c}main form .lp-cta{min-height:34px;padding:10px 20px;font-size:12px}main form:not(.support-form--spaced):not(.admin-form):not(.form-card) input:not([class]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=hidden]):not([type=submit]):not(.form-row *),main form:not(.support-form--spaced):not(.admin-form):not(.form-card) select:not([class]):not(.form-row *),main form:not(.support-form--spaced):not(.admin-form):not(.form-card) textarea:not([class]):not(.form-row *){border:1px solid #cbd5e1;border-radius:12px;padding:10px 12px;font-size:14px;min-height:42px;box-sizing:border-box;background:#fff;color:#0f172a}@media(max-width:640px){.nav-shell{gap:8px}.nav-left a{font-size:1.2rem}.site-footer{padding:18px 12px 26px}.footer-main{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 26px}.footer-small{flex-direction:column;align-items:center}input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea{font-size:16px!important}main{padding:16px 14px}.card{padding:12px}.library-actions a,.library-actions button{font-size:13px;min-height:40px;padding:8px 6px}.library-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.library-actions a,.library-actions button{white-space:normal;text-align:center;min-width:0;overflow-wrap:anywhere}.library-search-input,.help-search-input{min-width:0}.library-title,.library-title a,.library-stack h3,.library-stack h3 a{overflow-wrap:anywhere}main#lp-main-content :is(h1,h2,h3){overflow-wrap:break-word}main .form-actions .button{white-space:normal;max-width:100%;text-align:center}.nav-actions a{font-size:13px;min-height:40px;display:inline-flex;align-items:center;padding:0 8px}.nav-search button,.nav-search input{min-height:40px}.footer-main{row-gap:0}.footer-main a{display:inline-block;padding:10px 4px}.footer-legal a{display:inline-block;padding:9px 2px}.upload-intro p{margin:0 0 8px}.upload-page .quota-line{margin:14px 0 6px}.upload-page .quota-line+.muted.small{margin-top:0}}