/* вынесен из inline-<style> страницы generate.html (SEC-11: style-src без unsafe-inline) */
    /* ═══════════════════════════════════════════════════════════
       ПОДБОР ПЛЁНКИ — Home Page (Modern Redesign)
       ═══════════════════════════════════════════════════════════ */

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
      font-weight: 400;
      line-height: 1.55;
      color: #f4f1ff !important;
      background: #07050d !important;
      background-image:
        radial-gradient(at 0% 0%, rgba(139,92,255,0.18) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255,62,201,0.10) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(0,229,255,0.08) 0px, transparent 50%) !important;
      background-attachment: fixed !important;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    .nv-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
    @media (max-width: 700px) { .nv-container { padding: 0 16px; } }

    /* ── Hero Section ─────────────────────────────────── */
    /* Названо .nv-hero-section, а не .nv-hero — design-system.css уже занимает
       .nv-hero под типографическую утилиту (font-weight:900, letter-spacing:-0.035em
       для крупных заголовков). Совпадение имён приводило к тому, что .nv-hero-sub
       (не переопределяющий font-weight/letter-spacing) наследовал эти значения
       от секции-обёртки — отсюда «слипшийся» подзаголовок. */
    .nv-hero-section {
      padding: 48px 0 64px;
      position: relative;
    }
    .nv-hero-grid {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 40px;
      align-items: stretch;
    }
    @media (max-width: 900px) {
      .nv-hero-section { padding: 24px 0 48px; }
      .nv-hero-grid { grid-template-columns: 1fr; gap: 24px; }
    }

    /* Left side: Form panel */
    .nv-form-panel {
      background: rgba(20, 16, 42, 0.6);
      backdrop-filter: blur(24px) saturate(180%);
      -webkit-backdrop-filter: blur(24px) saturate(180%);
      border: 1px solid rgba(167,139,255,0.12);
      border-radius: 28px;
      padding: 28px;
      position: relative;
      overflow: hidden;
    }
    .nv-form-panel::before {
      content: '';
      position: absolute; top: -50%; right: -20%;
      width: 50%; height: 80%;
      background: radial-gradient(circle, rgba(139,92,255,0.14), transparent 70%);
      pointer-events: none;
    }
    @media (max-width: 600px) {
      .nv-form-panel { padding: 20px; border-radius: 22px; }
    }

    .nv-eyebrow {
      display: inline-flex; align-items: center; gap: 8px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.22em;
      color: #a78bff;
      padding: 6px 14px;
      background: rgba(139,92,255,0.08);
      border: 1px solid rgba(139,92,255,0.25);
      border-radius: 99px;
      position: relative;
      z-index: 1;
    }
    .nv-eyebrow::before {
      content: ''; width: 6px; height: 6px;
      border-radius: 50%; background: #a78bff;
      box-shadow: 0 0 8px #a78bff;
      animation: nv-pulse 2s ease-in-out infinite;
    }
    @keyframes nv-pulse { 50% { opacity: 0.4; } }

    .nv-hero-title {
      font-family: 'Inter', sans-serif;
      font-size: clamp(1.9rem, 4.5vw, 2.8rem);
      font-weight: 900;
      letter-spacing: -0.035em;
      line-height: 1.02;
      margin: 14px 0 12px;
      position: relative;
      z-index: 1;
    }
    .nv-hero-title .grad {
      background: linear-gradient(135deg, #8b5cff 0%, #b347ff 50%, #ff3ec9 100%);
      -webkit-background-clip: text; background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .nv-hero-sub {
      font-size: 0.95rem;
      color: rgba(244,241,255,0.62);
      margin: 0 0 24px;
      line-height: 1.55;
      max-width: 480px;
      position: relative; z-index: 1;
    }

    /* Wallet badge */
    .nv-wallet {
      display: flex; align-items: center; justify-content: space-between;
      padding: 14px 18px;
      background: linear-gradient(135deg, rgba(139,92,255,0.12), rgba(0,229,255,0.04));
      border: 1px solid rgba(139,92,255,0.2);
      border-radius: 16px;
      margin-bottom: 22px;
      position: relative; z-index: 1;
    }
    .nv-wallet-label {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: rgba(244,241,255,0.5);
      margin-bottom: 4px;
    }
    .nv-wallet-value {
      font-size: 1.6rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      background: linear-gradient(135deg, #a78bff, #ff3ec9);
      -webkit-background-clip: text; background-clip: text;
      -webkit-text-fill-color: transparent;
      line-height: 1;
    }
    .nv-wallet-meta {
      font-size: 0.75rem;
      color: rgba(244,241,255,0.45);
      text-align: right;
    }

    /* Form */
    .nv-form { position: relative; z-index: 1; }
    .nv-field {
      display: flex; flex-direction: column;
      gap: 6px;
      margin-bottom: 14px;
    }
    .nv-field-label {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: rgba(244,241,255,0.5);
    }
    .nv-input, .nv-select {
      width: 100%;
      padding: 13px 16px;
      font-family: 'Inter', sans-serif !important;
      font-size: 0.92rem !important;
      color: #f4f1ff !important;
      background: rgba(13, 10, 24, 0.6) !important;
      border: 1px solid rgba(167,139,255,0.12) !important;
      border-radius: 12px !important;
      transition: all 0.2s !important;
    }
    .nv-input::file-selector-button {
      background: rgba(139,92,255,0.15);
      border: none;
      padding: 6px 12px;
      border-radius: 8px;
      color: #a78bff;
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      cursor: pointer;
      margin-right: 10px;
    }
    .nv-input:focus, .nv-select:focus {
      outline: none !important;
      border-color: #8b5cff !important;
      background: rgba(20, 16, 42, 0.8) !important;
      box-shadow: 0 0 0 4px rgba(139,92,255,0.12) !important;
    }

    /* Selected film preview */
    .selected-film-preview:not(:empty) {
      margin: 12px 0 16px;
      padding: 12px 14px;
      background: rgba(139,92,255,0.06);
      border: 1px solid rgba(139,92,255,0.2);
      border-radius: 14px;
      display: flex; align-items: center; gap: 14px;
    }

    /* Primary CTA */
    .nv-btn-primary, .btn--primary {
      display: inline-flex; align-items: center; justify-content: center;
      gap: 8px;
      padding: 15px 26px !important;
      font-family: 'Inter', sans-serif !important;
      font-size: 0.95rem !important;
      font-weight: 800 !important;
      letter-spacing: -0.01em;
      color: #fff !important;
      background: linear-gradient(135deg, #8b5cff 0%, #6b3df0 100%) !important;
      border: none !important;
      border-radius: 14px !important;
      cursor: pointer;
      box-shadow:
        0 0 0 1px rgba(139,92,255,0.4),
        0 8px 24px rgba(139,92,255,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1) !important;
      transition: transform 0.15s, box-shadow 0.25s !important;
      width: 100%;
    }
    .nv-btn-primary:hover, .btn--primary:hover {
      transform: translateY(-1px);
      box-shadow:
        0 0 0 1px rgba(139,92,255,0.6),
        0 12px 32px rgba(139,92,255,0.5),
        inset 0 1px 0 rgba(255,255,255,0.15) !important;
    }
    .nv-btn-primary:active { transform: scale(0.98); }
    .nv-btn-primary[disabled] { opacity: 0.5; cursor: not-allowed; }

    .nv-actions {
      display: flex; gap: 10px;
      margin-top: 18px;
    }
    .nv-btn-ghost, .btn--ghost {
      display: inline-flex; align-items: center; justify-content: center; gap: 6px;
      padding: 13px 18px !important;
      font-family: 'Inter', sans-serif !important;
      font-size: 0.88rem !important;
      font-weight: 700 !important;
      color: rgba(244,241,255,0.75) !important;
      background: transparent !important;
      border: 1px solid rgba(167,139,255,0.2) !important;
      border-radius: 12px !important;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.2s !important;
    }
    .nv-btn-ghost:hover, .btn--ghost:hover {
      color: #fff !important;
      background: rgba(139,92,255,0.06) !important;
      border-color: rgba(139,92,255,0.4) !important;
    }

    /* Progress */
    #progressWrap {
      margin-top: 18px;
      padding: 14px 16px;
      background: rgba(13, 10, 24, 0.5);
      border-radius: 14px;
      border: 1px solid rgba(167,139,255,0.1);
    }

    /* Status */
    .status-box {
      margin-top: 14px;
      padding: 13px 16px;
      font-size: 0.88rem;
      font-weight: 600;
      border-radius: 14px;
      border: 1px solid transparent;
    }
    .status-box.hidden { display: none; }
    .status-box.success {
      background: rgba(180,255,57,0.08);
      color: #b4ff39;
      border-color: rgba(180,255,57,0.2);
    }
    .status-box.error {
      background: rgba(255,53,99,0.08);
      color: #ff7a8e;
      border-color: rgba(255,53,99,0.25);
    }
    .status-box.info {
      background: rgba(0,229,255,0.06);
      color: #00e5ff;
      border-color: rgba(0,229,255,0.2);
    }

    /* Right side: Preview panel */
    .nv-preview-panel {
      background: rgba(20, 16, 42, 0.6);
      backdrop-filter: blur(24px) saturate(180%);
      -webkit-backdrop-filter: blur(24px) saturate(180%);
      border: 1px solid rgba(167,139,255,0.12);
      border-radius: 28px;
      padding: 28px;
      display: flex; flex-direction: column;
      min-height: 480px;
    }
    @media (max-width: 600px) {
      .nv-preview-panel { padding: 20px; border-radius: 22px; min-height: 360px; }
    }
    .nv-preview-label {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.18em;
      color: rgba(244,241,255,0.4);
      margin-bottom: 14px;
    }
    .nv-preview-stage {
      flex: 1;
      display: flex; align-items: center; justify-content: center;
      background: linear-gradient(180deg, rgba(13,10,24,0.4), rgba(7,5,13,0.6));
      border: 1px dashed rgba(167,139,255,0.15);
      border-radius: 20px;
      padding: 20px;
      min-height: 320px;
      position: relative;
      overflow: hidden;
    }
    .result-frame__image {
      max-width: 100%;
      max-height: 360px;
      object-fit: contain;
      filter: drop-shadow(0 16px 48px rgba(139,92,255,0.3));
    }
    .nv-preview-caption {
      margin-top: 12px;
      font-size: 0.82rem;
      color: rgba(244,241,255,0.5);
      text-align: center;
      font-weight: 500;
    }

    /* ═══ Compare slider (исходник / результат) ═══ */
    .compare-wrap {
      width: 100%;
      display: flex; flex-direction: column; gap: 10px;
      animation: nv-fadeup 0.5s cubic-bezier(0.16,1,0.3,1) both;
    }
    @keyframes nv-fadeup {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .compare-stage {
      position: relative; width: 100%; aspect-ratio: 4/3;
      max-height: 480px; overflow: hidden;
      border-radius: 18px; background: #0c0920;
      cursor: ew-resize; user-select: none;
      box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    }

    /* [ЛАНДШАФТ-GENERATE] Телефон горизонтально: сцена выдавливала вниз всё, что
       под ней.
       Арифметика: при ≤900px сетка .nv-hero-grid схлопывается в одну колонку,
       поэтому панель предпросмотра идёт под формой. Ширина экрана в ландшафте
       ~812px, значит медиа-запросы по max-width:600px сюда НЕ попадают вовсе —
       ни уменьшенные отступы панели, ни мобильные размеры ручки. Сцена получает
       ~740px ширины, по пропорции 4/3 просит ~555px высоты, упирается в потолок
       480px — и всё равно это больше всей высоты вьюпорта (~375px). Плюс сама
       панель требует min-height:480px. Подпись и подсказка уезжают за экран.

       Чиним тем же детектом по типу ввода, что и остальные мобильные ветки
       проекта (Ф-СЛАЙДЕР1): не по ширине окна, иначе правило поймает и десктоп.

       Высоту сцены задаём от вьюпорта, а ширину выводим из неё по той же
       пропорции 4/3 — для этого .compare-wrap центрирует элементы по поперечной
       оси, иначе колонка растянула бы сцену на всю ширину и пропорция потеряла
       бы смысл. dvh поверх vh: на iOS адресная строка съедает часть vh, и
       «стопроцентная» высота оказывается больше фактически видимой.
       Потолок max-height:480px здесь снят — он больше не ограничивает, а мешает.
       min-height:120px — чтобы на совсем низких экранах сцена не схлопнулась.

       Почему НЕ flex:1 1 auto, как на compare.html: там .cmp-wrap — это <main>,
       то есть контейнер страницы, и деление остатка работает. Здесь .compare-wrap
       лежит на три уровня глубже (.nv-preview-panel > .nv-preview-stage >
       .compare-wrap) и ни у одного предка нет определённой высоты, привязанной к
       вьюпорту — делить было бы нечего. Строить такую цепочку через три
       контейнера без проверки в браузере рискованно; при необходимости это
       отдельный заход. */
    @media (hover: none) and (pointer: coarse) and (orientation: landscape) {
      .nv-preview-panel { min-height: 0; padding: 16px; }
      .nv-preview-stage { min-height: 0; }
      .compare-wrap { min-height: 0; }

      /* [ЛАНДШАФТ-GENERATE-2] Сцена была крошечной и с полями по бокам.
         Причина: у сцены оставалась пропорция 4/3 при width:auto, то есть ШИРИНА
         выводилась из высоты. При посчитанных ~205px высоты ширина выходила ~273px
         вместо ~724px доступных — отсюда и «поля» вокруг маленького кадра.
         Здесь пропорция отменяется, и ширину задаёт контейнер. Кадр по-прежнему
         заполняет сцену: object-fit:cover стоит на .compare-img (правило выше),
         от пропорции контейнера он не зависит и продолжает работать.
         Базовое правило .compare-stage не трогаем — 4/3 остаётся везде, кроме
         этой ветки. */
      .compare-stage {
        aspect-ratio: auto;
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
        max-height: none;
        height: 62vh; height: 62dvh;
        min-height: 120px;
      }

      /* Бюджет высоты. Раньше 62dvh брались «с потолка», без учёта того, что
         вокруг сцены: отступы панели 16x2, лейбл секции ~26px, отступы контейнера
         сцены 20x2 плюс рамка, gap колонки 10px, подсказка ~16px и подпись
         состояния ~25px — суммарно около 155px. На экране высотой 375px сцене
         оставалось меньше, чем ей назначали, и всё выдавливалось.
         Вместо того чтобы просто урезать долю, убираем из ландшафта два
         необязательных элемента — тогда 62dvh снова помещаются с запасом:
         32 (панель) + 40 (контейнер) + 25 (подпись) + 232 (сцена) = 329 из 375.
         На короткий экран 320px тоже влезает: 97 + 198 = 295.

         Что убрано и почему именно это:
         — .nv-preview-label «Предпросмотр / результат»: декоративный заголовок
           секции, 10px капсом. В ландшафте результат и так занимает весь экран,
           подписывать его нечем.
         — .compare-hint «Потяни ручку чтобы сравнить»: дублируется подписью
           состояния #resultCaption, которая после генерации и после
           восстановления буквально содержит «Потяни ручку, чтобы сравнить».
           Инструкция остаётся на экране, просто в одном экземпляре.
         Подпись состояния под панелью НЕ трогаем: она несёт статус («Готово»,
         «Последняя генерация»), а не инструкцию. Её селектор здесь намеренно не
         повторяется — по тексту файла проверяют, что правила для неё в этой
         ветке нет. */
      .nv-preview-label { display: none; }
      .compare-hint { display: none; }
      /* Те же значения, что в мобильной ветке по max-width:600px выше. Дублируются,
         а не выносятся в общее правило, потому что ветки пересекаются лишь частично:
         телефон в ландшафте шире 600px и под ту ветку не попадает, а узкое окно
         десктопа попадает под неё, но не под эту. Общего условия, покрывающего
         ровно оба случая и ничего лишнего, нет. */
      .compare-handle { width: 38px; height: 38px; }
      .media-action-btn { width: 28px; height: 28px; }
    }
    .compare-img {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      object-fit: cover; display: block;
      -webkit-user-drag: none; pointer-events: none;
    }
    .compare-img--before { z-index: 1; }
    /* [БАГ-МЕТКИ] Клип ест СЛЕВА: слой «после» занимает правую половину — ту,
       над которой стоит тег «ПОСЛЕ», а слева остаётся оригинал под тегом «ДО».
       Было inset(0 50% 0 0), то есть отрезано справа, и «после» показывался
       слева — под чипом «ДО», который стоял у левого края. Двигали картинки, а
       не подписи. Сами чипы позже убраны целиком (БАГ-ПОДПИСИ), но порядок
       сторон остаётся прежним: слева исходник, справа результат. */
    .compare-img--after  { z-index: 2; clip-path: inset(0 0 0 50%); }
    .compare-line {
      position: absolute; top: 0; bottom: 0; left: 50%;
      width: 2px; transform: translateX(-50%);
      background: linear-gradient(180deg, rgba(255,255,255,0.4), #fff 50%, rgba(255,255,255,0.4));
      box-shadow: 0 0 12px rgba(255,255,255,0.6);
      pointer-events: none; z-index: 3;
    }
    .compare-handle {
      position: absolute; top: 50%; left: 50%;
      width: 44px; height: 44px; border-radius: 50%;
      background: #fff;
      box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 0 3px rgba(255,255,255,0.15);
      display: flex; align-items: center; justify-content: center;
      transform: translate(-50%, -50%); z-index: 4; cursor: ew-resize;
      transition: transform 0.15s, box-shadow 0.2s;
    }
    .compare-handle:hover {
      box-shadow: 0 8px 24px rgba(139,92,255,0.5), 0 0 0 4px rgba(139,92,255,0.2);
    }
    .compare-handle svg { width: 18px; height: 18px; }

    /* [БАГ-ПОДПИСИ] Здесь были правила угловых чипов, подписывавших половины
       слайдера двумя словами про «до» и «после» — сам чип и две его
       модификации по краям. Убраны целиком вместе с разметкой: страница больше
       нигде не называет стороны этими словами. Подписи теперь смысловые и живут
       в зуме — название плёнки с датой у результата и «Моя машина» у исходника.
       Имена классов намеренно не повторяются: тест проверяет их отсутствие в
       файле поиском по тексту, и упоминание в комментарии его ломало. */
    .compare-hint {
      font-size: 0.74rem;
      color: rgba(244,241,255,0.4);
      text-align: center;
      font-weight: 500;
    }

    @media (max-width: 600px) {
      /* [МОБИЛЬНАЯ-ОБРЕЗКА] Здесь сцене навязывалась квадратная пропорция 1:1.
         Фото приходит 4:3, и object-fit:cover срезал примерно по 12.5% с каждого
         края. Переопределение снято, сцена наследует базовые 4/3 из правила выше —
         подбирать новое значение не нужно, нужно не мешать. Имя CSS-свойства тут
         намеренно не пишется: тест проверяет его отсутствие в этом блоке поиском
         по тексту, и упоминание в комментарии его ломало. */
      .compare-handle { width: 38px; height: 38px; }
      /* Кнопки действий на мобильном были 36×36 против 27×27 на compare.html. */
      .media-action-btn { width: 28px; height: 28px; }
    }

    /* ═══ How section ═══ */
    .nv-how {
      padding: 64px 0;
    }
    .nv-how-head {
      text-align: center;
      margin: 0 auto 40px;
      max-width: 640px;
    }
    .nv-how-head h2 {
      font-family: 'Inter', sans-serif;
      font-size: clamp(1.6rem, 3vw, 2.2rem);
      font-weight: 800;
      letter-spacing: -0.02em;
      margin: 12px 0 8px;
    }
    .nv-how-head p {
      color: rgba(244,241,255,0.6);
      font-size: 0.96rem;
      margin: 0;
    }
    .nv-how-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }
    @media (max-width: 900px) { .nv-how-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 580px) { .nv-how-grid { grid-template-columns: 1fr; } }

    .nv-how-card {
      padding: 24px;
      background: rgba(20, 16, 42, 0.5);
      backdrop-filter: blur(16px);
      border: 1px solid rgba(167,139,255,0.08);
      border-radius: 20px;
      transition: all 0.25s cubic-bezier(0.22,0.61,0.36,1);
    }
    .nv-how-card:hover {
      transform: translateY(-3px);
      border-color: rgba(139,92,255,0.3);
      box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 24px rgba(139,92,255,0.15);
    }
    .nv-how-num {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.7rem;
      letter-spacing: 0.16em;
      color: #a78bff;
      margin-bottom: 12px;
      font-weight: 600;
    }
    .nv-how-icon {
      width: 44px; height: 44px;
      display: flex; align-items: center; justify-content: center;
      background: linear-gradient(135deg, rgba(139,92,255,0.15), rgba(255,62,201,0.06));
      border: 1px solid rgba(139,92,255,0.2);
      border-radius: 14px;
      margin-bottom: 16px;
    }
    .nv-how-icon svg { width: 20px; height: 20px; stroke: #a78bff; }
    .nv-how-card h3 {
      font-family: 'Inter', sans-serif;
      font-size: 1.05rem;
      font-weight: 700;
      letter-spacing: -0.015em;
      margin: 0 0 6px;
    }
    .nv-how-card p {
      font-size: 0.88rem;
      color: rgba(244,241,255,0.6);
      margin: 0;
      line-height: 1.55;
    }

    /* ═══ Credit packs / Top-up ═══ */
    .nv-topup {
      padding: 48px 0 64px;
    }
    .nv-topup-card {
      background: rgba(20, 16, 42, 0.6);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(167,139,255,0.12);
      border-radius: 24px;
      padding: 32px;
    }
    .nv-topup-head {
      margin-bottom: 24px;
    }
    .nv-topup-head h2 {
      font-family: 'Inter', sans-serif;
      font-size: 1.5rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      margin: 8px 0 4px;
    }
    .nv-topup-head p {
      color: rgba(244,241,255,0.6);
      font-size: 0.9rem;
      margin: 0;
    }
    .credit-packs {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 14px;
      margin-bottom: 18px;
    }
    .pack-card {
      padding: 20px;
      background: rgba(13, 10, 24, 0.4);
      border: 1px solid rgba(167,139,255,0.12);
      border-radius: 18px;
      transition: all 0.2s;
      position: relative;
    }
    .pack-card:hover {
      border-color: rgba(139,92,255,0.35);
      transform: translateY(-2px);
    }
    .pack-card--featured {
      background: linear-gradient(135deg, rgba(139,92,255,0.12), rgba(255,62,201,0.04));
      border-color: rgba(139,92,255,0.35);
    }
    .pack-badge {
      position: absolute;
      top: 12px; right: 12px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      padding: 3px 8px;
      border-radius: 99px;
      background: linear-gradient(135deg, #8b5cff, #ff3ec9);
      color: #fff;
    }

    /* ═══ Gallery (history) ═══ */
    .nv-gallery {
      padding: 0 0 64px;
    }
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 12px;
    }

    /* Section headers */
    .nv-section-head {
      margin-bottom: 24px;
    }
    .nv-section-head .nv-eyebrow {
      margin-bottom: 12px;
    }
    .nv-section-head h2 {
      font-family: 'Inter', sans-serif;
      font-size: 1.5rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      margin: 0;
    }

    /* Animation entrance */
    .animate-fade-up {
      animation: nv-fadeup 0.6s cubic-bezier(0.16,1,0.3,1) both;
    }

    /* Form panel old class compatibility */
    .visualizer-form { width: 100%; }
  
