  :root {
    /* Align all portal pages with dashboard column + vehicle search panel */
    --portal-content-max: 1260px;
    --portal-gutter-x: 24px;
    --header-height: 70px;
    --sidebar-width: 276px;
    /* Accent RGB drives rgba(...) tints sitewide; hex tokens overridden in js/portalAccentTheme.js */
    --accent-r: 0;
    --accent-g: 168;
    --accent-b: 232;
    --accent: #00a8e8;
    --accent-hover: #33c4f5;
    --accent-muted: #5ed4ff;
    --accent-soft: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.14);
    --blue: var(--accent);
    --red: var(--accent);
    --red-dim: #007aa6;
    --bg: #0f0f12;
    --surface: #16161a;
    --surface2: #1c1c21;
    --surface3: #26262c;
    --border: rgba(255, 255, 255, 0.065);
    --border-bright: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.22);
    --text: #f4f4f5;
    --text-muted: #b4b4bd;
    --text-dim: #8b8b96;
    --green: #22d3a0;
    --amber: #f0a500;
    /* In-progress (distinct from brand red + success green) */
    --status-processing: #fb923c;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    /* Headings — single scale sitewide */
    --heading-font: 'Inter', Helvetica, sans-serif;
    --heading-color: var(--text);
    --heading-h1-size: 32px;
    --heading-h2-size: 22px;
    --heading-h3-size: 17px;
    --heading-weight-strong: 700;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: 'Inter', Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
  }

  h1,
  .h1 {
    font-family: var(--heading-font);
    font-weight: var(--heading-weight-strong);
    font-size: var(--heading-h1-size);
    letter-spacing: 0.02em;
    color: var(--heading-color);
    font-style: normal;
    margin: 0;
  }

  h2,
  .h2 {
    font-family: var(--heading-font);
    font-weight: var(--heading-weight-strong);
    font-size: var(--heading-h2-size);
    letter-spacing: 0.02em;
    color: var(--heading-color);
    margin: 0;
  }

  h3,
  .h3 {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: var(--heading-h3-size);
    letter-spacing: 0.02em;
    color: var(--heading-color);
    margin: 0;
  }

  /* ── NOISE OVERLAY ── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
  }

  /* ── TOP NAV (slim bar: logo | status pills | icon actions) ── */
  .topnav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    display: grid;
    align-items: center;
    padding: 0 22px 0 20px;
    background: linear-gradient(180deg, #18181c 0%, #121214 100%);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    grid-template-columns: var(--sidebar-width) 1fr auto;
    column-gap: 16px;
  }

  .topnav-left-cluster {
    grid-column: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
  }

  .topnav-burger {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: #1a2029;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
  }
  .topnav-burger:hover {
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.4);
    background: #1e2632;
  }
  .topnav-burger svg {
    display: block;
  }

  .topnav .logo-img {
    justify-self: center;
    align-self: center;
    height: 44px;
    width: auto;
    max-width: 188px;
    object-fit: contain;
  }

  .topnav-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    padding: 0 8px;
    height: 100%;
    box-sizing: border-box;
    min-width: 0;
  }

  .topnav-logo-link:focus-visible {
    outline: 2px solid var(--border-bright);
    outline-offset: 4px;
    border-radius: 6px;
  }

  #nav-logged-out {
    grid-column: 2 / -1;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  #nav-logged-in {
    grid-column: 2 / -1;
    justify-self: stretch;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    position: relative;
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .topnav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
  }

  /* Backdrop is a direct child of #portal-app / #admin-app (not body) so it stacks under the
     fixed sidebar (z-index 230) but above .main — a body-level backdrop sat above the whole app (z-index 10) and blocked all touches. */
  #portal-app > .mobile-sidebar-backdrop,
  #admin-app > .mobile-sidebar-backdrop {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 210;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  #portal-app > .mobile-sidebar-backdrop:not([hidden]),
  #admin-app > .mobile-sidebar-backdrop:not([hidden]) {
    display: block;
  }

  @media (max-width: 900px) {
    .topnav {
      grid-template-columns: minmax(0, 1fr) auto;
      padding: 0 12px 0 10px;
      column-gap: 8px;
    }
    .topnav-left-cluster {
      grid-column: 1;
      justify-content: flex-start;
    }
    body.portal-user-logged-in .topnav-burger {
      display: inline-flex;
    }
    .topnav .logo-img {
      max-width: 140px;
      height: 36px;
    }
    .topnav-center--desktop {
      display: none !important;
    }
    #nav-logged-in {
      grid-column: 2;
      position: static;
      flex: 0 0 auto;
      min-width: 0;
    }
    .top-actions {
      flex-shrink: 0;
    }
    .icon-btn {
      width: 44px;
      height: 44px;
    }
  }

  .nav-pill {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid var(--border-bright);
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    transition: all 0.15s;
    text-decoration: none;
  }
  .nav-pill:hover { color: var(--text); border-color: var(--red); }
  .nav-pill.active { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }

  /* ── LAYOUT (document scrolls; sidebar column stretches with main, no inner scrollbar) ── */
  .app {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    padding-top: var(--header-height);
    padding-left: 0;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
  }

  /* Library installer screens: content-height row so the page ends with the sidebar (no stretch below Tools Shop) */
  .app:has(#screen-library-downloads.active),
  .app:has(#screen-library-faultcodes.active),
  .app:has(#screen-library-bosch.active),
  .app:has(#screen-library-terms.active) {
    min-height: auto;
    align-items: flex-start;
  }

  /* Library installer: drop forced 100vh body so short pages end with the sidebar column */
  body:has(#screen-library-downloads.active),
  body:has(#screen-library-faultcodes.active),
  body:has(#screen-library-bosch.active),
  body:has(#screen-library-terms.active) {
    min-height: auto;
  }

  /* ── SIDEBAR ── */
  .sidebar {
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
    background: #16161a;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 18px 0 0;
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    z-index: 90;
    overflow-x: hidden;
    overflow-y: visible;
    align-self: flex-start;
  }

  /* Height follows content so the shell ends at Tools Shop (sidebar-bottom), not full viewport */
  .sidebar-body {
    flex: 0 1 auto;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 8px;
  }

  .sidebar .user-card {
    flex-shrink: 0;
  }

  .user-card {
    padding: 14px 16px;
    margin: 0 14px 22px;
    border-radius: var(--radius-md);
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
  }

  .user-card-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .user-avatar {
    position: relative;
    overflow: hidden;
    width: 50px; height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--surface3);
    border: 1px solid var(--border-bright);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Inter', Helvetica, sans-serif;
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 0;
  }

  .user-avatar #user-avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 1;
  }

  .user-avatar #user-initial {
    position: relative;
    z-index: 0;
  }

  .account-avatar-preview {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-bright);
    background: var(--surface2);
    display: block;
  }

  .account-avatar-preview-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
  }

  .user-name {
    font-family: 'Inter', Helvetica, sans-serif;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.01em;
    line-height: 1.25;
    color: var(--text);
  }

  .user-type {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.3;
  }

  .credits-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: 6px;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 999px;
  }
  .credits-badge.zero {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border);
  }

  .nav-section {
    padding: 0 14px;
    margin-bottom: 20px;
  }

  .nav-section + .nav-section {
    margin-top: 2px;
  }

  .nav-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 0 10px;
    margin-bottom: 8px;
  }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    position: relative;
    text-decoration: none;
    border-left: 2px solid transparent;
  }
  .nav-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
  .nav-item.active {
    color: #fff;
    background: var(--red);
    border-left-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.22);
  }

  .nav-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    opacity: 0.75;
    stroke-width: 1.85;
  }
  .nav-item.active svg { opacity: 1; color: #fff; }

  .nav-sub {
    padding-left: 16px;
  }

  .sidebar-bottom {
    flex-shrink: 0;
    margin-top: 14px;
    padding: 12px 14px max(14px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
  }

  .tools-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.12s, color 0.12s, background 0.12s;
  }
  .tools-btn:hover {
    color: var(--text);
    border-color: var(--border-bright);
    background: rgba(255, 255, 255, 0.04);
  }
  .tools-btn svg {
    width: 18px;
    height: 18px;
    opacity: 0.85;
  }

  /* ── MAIN (full page scroll with sidebar column) ── */
  .main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    max-height: none;
    padding: 28px var(--portal-gutter-x) calc(36px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Shared content width across portal pages (matches dashboard / .dash-vs-panel column) */
  .main > .screen {
    width: 100%;
    max-width: var(--portal-content-max);
    box-sizing: border-box;
  }

  .feed-account {
    display:flex;
    align-items:flex-start;
    gap:8px;
    font-size:12px;
  }
  .feed-account-main {
    display:flex;
    flex-direction:column;
    gap:2px;
  }
  .feed-account-type {
    font-weight:600;
  }
  .feed-account-country {
    font-size:11px;
    color:var(--text-muted);
  }
  .flag-icon {
    width:18px;
    height:13px;
    border-radius:2px;
    object-fit:cover;
    margin-top:2px;
  }

  /* ── SCREENS ── */
  .screen { display: none; }
  .screen.active { display: block; }

  /* ── LOGIN SCREEN ── */
  #screen-login {
    min-height: calc(100vh - var(--header-height));
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 200;
    pointer-events: auto;
  }
  #screen-login.active { display: flex; }

  .login-wrap {
    width: 100%;
    max-width: 420px;
  }

  .login-logo {
    font-family: 'Inter', Helvetica, sans-serif;
    font-weight: 900;
    font-size: 36px;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
  }
  .logo-img { height: 46px; width: auto; object-fit: contain; }
  .login-logo { display: block; height: 56px; margin: 0 auto 10px; object-fit: contain; }

  .login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 32px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
  }

  .login-card {
    background: var(--surface);
    border: 1px solid var(--border-bright);
    border-radius: 10px;
    padding: 32px;
  }

  .login-tabs {
    display: flex;
    gap: 4px;
    background: var(--surface2);
    border-radius: 6px;
    padding: 4px;
    margin-bottom: 28px;
  }

  .login-tab {
    flex: 1;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.15s;
    letter-spacing: 0.04em;
  }
  .login-tab.active { background: var(--red); color: #fff; }

  .field {
    margin-bottom: 14px;
  }

  .field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
  }

  .field input {
    width: 100%;
    padding: 11px 14px;
    background: var(--surface2);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-family: 'Inter', Helvetica, sans-serif;
    outline: none;
    transition: border-color 0.15s;
  }
  .field input:focus { border-color: var(--red); }
  .field input::placeholder { color: var(--text-dim); }

  .field select,
  .reg-country-select {
    width: 100%;
    padding: 11px 14px;
    background: var(--surface2);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-family: 'Inter', Helvetica, sans-serif;
    outline: none;
    transition: border-color 0.15s;
    cursor: pointer;
  }
  .field select:focus,
  .reg-country-select:focus { border-color: var(--red); }
  .reg-country-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .reg-country-row .reg-country-select {
    flex: 1;
    min-width: 0;
  }
  .reg-country-flag {
    display: none;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 0 0 1px var(--border-bright);
  }

  .btn-primary {
    width: 100%;
    padding: 13px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Inter', Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 4px;
  }
  .btn-primary:hover { background: var(--accent-hover); }

  .login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
  }
  .login-footer a { color: var(--red); text-decoration: none; }

  .access-denied {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(59,130,246,0.06);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 5px;
    font-size: 13px;
    color: #ffb088;
    display: none;
  }

  /* ── DASHBOARD WELCOME BANNER (96px strip; image fills media box, cover + center crop) ── */
  .dash-welcome-banner {
    position: relative;
    margin-bottom: 22px;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    height: 96px;
    max-height: 96px;
    min-height: 96px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-bright);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    background-color: #1a1516;
  }
  .dash-welcome-banner.dash-banner-fallback {
    background: linear-gradient(118deg, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.24) 0%, #1c2433 48%, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12) 100%);
  }
  .dash-welcome-banner-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }
  .dash-welcome-banner-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    image-rendering: auto;
  }
  .dash-welcome-banner-media.dash-welcome-banner-fallback {
    background: linear-gradient(118deg, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.24) 0%, #1c2433 48%, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12) 100%);
  }
  .dash-welcome-banner-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(10, 14, 20, 0.82) 0%,
      rgba(10, 14, 20, 0.45) 42%,
      rgba(10, 14, 20, 0.15) 100%
    );
    pointer-events: none;
  }
  .dash-welcome-banner::before {
    content: '';
    position: absolute;
    inset: -20% -40%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      105deg,
      transparent 0%,
      transparent 40%,
      rgba(255, 255, 255, 0.06) 46%,
      rgba(255, 255, 255, 0.28) 50%,
      rgba(255, 255, 255, 0.07) 54%,
      transparent 60%
    );
    transform: translateX(-55%) skewX(-14deg);
    animation: dashWelcomeBannerShine 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
  }
  @keyframes dashWelcomeBannerShine {
    to {
      transform: translateX(55%) skewX(-14deg);
    }
  }
  .dash-welcome-banner-inner {
    position: relative;
    z-index: 2;
    padding: 8px 18px;
    max-width: min(100%, 720px);
  }
  .dash-welcome-banner-title {
    margin: 0;
    font-family: var(--heading-font);
    font-size: clamp(17px, 2.35vw, var(--heading-h1-size));
    font-weight: var(--heading-weight-strong);
    letter-spacing: 0.02em;
    line-height: 1.35;
    color: var(--heading-color);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
  }
  .dash-welcome-banner-sub {
    margin: 6px 0 0;
    font-family: 'Inter', Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1.3;
    color: var(--text-muted);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
  }

  /* ── DASHBOARD SCREEN ── */
  .welcome-head {
    margin-bottom: 28px;
  }

  /* Page titles: full heading in primary text (no blue accent on span) */
  .welcome-head h1,
  .welcome-head h1 span {
    color: #ffffff;
  }

  .screen h1,
  .screen h1 span {
    color: #ffffff !important;
    font-size: var(--heading-h1-size) !important;
  }

  /* Main portal page titles: all caps except dashboard (homepage) */
  #portal-app .screen:not(#screen-dashboard) h1,
  #portal-app .screen:not(#screen-dashboard) h1 span {
    text-transform: uppercase;
  }

  .welcome-head p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.55;
    max-width: 58ch;
    margin-top: 6px;
  }

  /* ── DASHBOARD VEHICLE SEARCH PANEL ── */
  .dash-vs-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px 18px;
    margin-bottom: 24px;
    overflow: visible;  /* allow dropdowns to extend outside the panel */
    position: relative;
  }
  .dash-vs-panel::after {
    content: '';
    position: absolute;
    right: -20px; top: -40px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(41,121,255,0.07) 0%, transparent 70%);
    pointer-events: none;
  }
  /* ── LIBRARY SCREEN ── */
  .library-section-card {
    margin-bottom: 20px;
  }
  .library-section-title {
    margin: 0 0 8px;
  }
  .library-section-intro {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 16px;
    line-height: 1.45;
  }
  .library-download-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .library-download-list li {
    border-bottom: 1px solid var(--border);
  }
  .library-download-list li:last-child {
    border-bottom: none;
  }
  .library-dl-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 4px;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.15s, background 0.15s;
    border-radius: 6px;
  }
  .library-dl-link:hover {
    color: var(--red);
    background: rgba(255, 255, 255, 0.03);
  }
  .library-dl-meta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    flex-shrink: 0;
  }
  .policy-accordion {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface2);
    margin-bottom: 12px;
    overflow: hidden;
  }
  .policy-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    background: transparent;
  }
  .policy-accordion summary::-webkit-details-marker {
    display: none;
  }
  .policy-accordion summary::after {
    content: '▸';
    font-size: 12px;
    color: var(--text-dim);
    transition: transform 0.2s ease;
  }
  .policy-accordion[open] summary::after {
    transform: rotate(90deg);
  }
  .policy-accordion-panel {
    padding: 14px 16px 18px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
  }
  .policy-accordion-panel p {
    margin: 0 0 1em;
  }
  .policy-accordion-panel p:last-child {
    margin-bottom: 0;
  }
  .library-fc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
  }
  .library-fc-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: var(--surface2);
    border: 1px solid var(--border-bright);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.15s, background 0.15s;
  }
  .library-fc-card:hover {
    border-color: rgba(41, 121, 255, 0.45);
    background: rgba(41, 121, 255, 0.06);
  }
  .library-fc-label {
    font-size: 14px;
    font-weight: 700;
  }
  .library-fc-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
  }

  /* Library → OBD-II fault code lookup (table + search + pagination) */
  .fc-lookup-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 4px 0 0;
  }
  .fc-lookup-search-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
  }
  .fc-lookup-search-wrap {
    position: relative;
    flex: 1 1 260px;
    min-width: 0;
    max-width: 420px;
    display: block;
  }
  .fc-lookup-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
    display: flex;
    align-items: center;
  }
  .fc-lookup-search {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px 11px 40px;
    font-size: 14px;
    font-family: 'Barlow', 'Inter', sans-serif;
    color: var(--text);
    background: var(--surface2);
    border: 1px solid var(--border-bright);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .fc-lookup-search:focus {
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.55);
    box-shadow: 0 0 0 2px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
  }
  .fc-lookup-search::placeholder {
    color: var(--text-dim);
  }
  .fc-lookup-meta {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    margin-left: auto;
  }
  .fc-lookup-table-wrap {
    border: 1px solid var(--border-bright);
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: visible;
    max-height: none;
    background: rgba(5, 9, 16, 0.35);
  }

  .fc-lookup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }
  .fc-lookup-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--surface2);
    box-shadow: 0 1px 0 var(--border);
  }
  .fc-lookup-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid var(--border);
  }
  .fc-lookup-th-p {
    width: 6.5rem;
    white-space: nowrap;
  }
  .fc-lookup-th-df {
    width: 8.5rem;
    white-space: nowrap;
  }
  .fc-lookup-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: top;
    line-height: 1.4;
  }
  .fc-lookup-table tbody tr:last-child td {
    border-bottom: none;
  }
  .fc-lookup-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
  }
  .fc-lookup-pcode {
    font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
    font-weight: 700;
    font-size: 13px;
    color: #e2e8f0;
    white-space: nowrap;
  }
  .fc-lookup-dfcode {
    font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
  }
  .fc-lookup-desc {
    color: var(--text-muted);
  }
  .fc-lookup-empty,
  .fc-lookup-cap {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    padding: 20px 14px !important;
  }
  .fc-lookup-cap {
    font-size: 12px;
    font-style: italic;
    border-bottom: none !important;
  }
  .fc-lookup-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 4px;
    padding-top: 4px;
  }
  .fc-pag-btn,
  .fc-pag-num {
    min-width: 2rem;
    height: 2rem;
    padding: 0 8px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text-muted);
    background: var(--surface2);
    border: 1px solid var(--border-bright);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .fc-pag-btn:hover:not(:disabled),
  .fc-pag-num:hover:not(.is-active) {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
  }
  .fc-pag-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
  }
  .fc-pag-nums {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 4px;
  }
  .fc-pag-num.is-active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    font-weight: 700;
    cursor: default;
  }

  /* ── Library installer pages: same flow outer + panel head + body as How to / Open ticket ── */
  #screen-library-downloads.support-ticket-screen .library-page-body,
  #screen-library-faultcodes.support-ticket-screen .library-page-body,
  #screen-library-bosch.support-ticket-screen .library-page-body,
  #screen-library-terms.support-ticket-screen .library-page-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
  }

  #screen-library-downloads.support-ticket-screen .library-page-lead,
  #screen-library-faultcodes.support-ticket-screen .library-page-lead,
  #screen-library-bosch.support-ticket-screen .library-page-lead,
  #screen-library-terms.support-ticket-screen .library-page-lead {
    margin: 0 0 18px;
    max-width: 62ch;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-muted);
  }

  #screen-library-downloads.support-ticket-screen .library-section-intro,
  #screen-library-faultcodes.support-ticket-screen .library-section-intro,
  #screen-library-bosch.support-ticket-screen .library-section-intro {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 18px;
  }

  #screen-library-downloads.support-ticket-screen .library-body-strip--list,
  #screen-library-terms.support-ticket-screen .library-body-strip--list {
    border: 1px solid var(--border-bright);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(5, 9, 16, 0.35);
    margin: 0 0 14px;
  }

  #screen-library-downloads.support-ticket-screen .library-body-strip--list .library-download-list,
  #screen-library-terms.support-ticket-screen .library-body-strip--list .library-download-list {
    margin: 0;
  }

  #screen-library-downloads.support-ticket-screen .library-body-strip--list .library-dl-link,
  #screen-library-terms.support-ticket-screen .library-body-strip--list .library-dl-link {
    padding: 18px 16px;
    font-size: 16px;
  }

  #screen-library-downloads.support-ticket-screen .library-body-strip--list .library-dl-meta,
  #screen-library-terms.support-ticket-screen .library-body-strip--list .library-dl-meta {
    font-size: 12px;
  }

  #screen-library-downloads.support-ticket-screen .library-page-body .fc-lookup-pagination,
  #screen-library-terms.support-ticket-screen .library-page-body .fc-lookup-pagination {
    margin-top: 4px;
  }

  /* Fault codes + Bosch: spacer nav only (matches Terms); table footer has its own pagination row */
  #screen-library-faultcodes.support-ticket-screen .library-page-body > .fc-lookup-pagination,
  #screen-library-bosch.support-ticket-screen .library-page-body > .fc-lookup-pagination {
    margin-top: 4px;
  }

  #screen-library-faultcodes.support-ticket-screen .fc-lookup-table th,
  #screen-library-bosch.support-ticket-screen .fc-lookup-table th {
    padding: 14px 16px;
    font-size: 11px;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: var(--text-dim);
  }

  #screen-library-faultcodes.support-ticket-screen .fc-lookup-table td,
  #screen-library-bosch.support-ticket-screen .fc-lookup-table td {
    padding: 16px 16px;
    font-size: 15px;
  }

  #screen-library-faultcodes.support-ticket-screen .fc-lookup-pcode,
  #screen-library-bosch.support-ticket-screen .fc-lookup-pcode {
    font-size: 15px;
  }

  #screen-library-faultcodes.support-ticket-screen .fc-lookup-desc,
  #screen-library-bosch.support-ticket-screen .fc-lookup-desc {
    font-size: 15px;
    color: var(--text-muted);
  }

  .dash-vs-header { margin-bottom: 14px; }
  .dash-vs-label {
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    opacity: 1;
  }

  .dash-vs-search-limit-banner {
    margin: -4px 0 14px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
    color: #fecaca;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.35);
    border-radius: 8px;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }

  /* ── DASHBOARD FEED PANEL (match other boxes) ── */
  .dash-feed-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px 12px;
    margin-bottom: 24px;
  }
  .dash-feed-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }

  /* Dashboard 2×2 widgets (discount, DTC, Bosch, pricing) */
  .dash-widgets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }
  @media (max-width: 900px) {
    .dash-widgets-grid {
      grid-template-columns: 1fr;
    }
  }
  .dash-widget {
    border-radius: 12px;
    padding: 20px 22px;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  }
  a.dash-widget:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  }
  .dash-widget--discount {
    background: var(--surface);
    border-color: var(--border-bright);
    grid-column: span 1;
  }
  .dash-widget-discount-deco {
    position: absolute;
    right: -20px;
    top: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12), transparent 70%);
    pointer-events: none;
  }
  .dash-widget-discount-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
  }
  .dash-widget-discount-stats {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
  }
  .dash-widget-discount-num {
    font-size: 32px;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
  }
  .dash-widget-discount-sep {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dim);
  }
  .dash-widget-discount-files {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 4px;
  }
  .dash-widget-discount-bar-wrap {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
  }
  .dash-widget-discount-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--red), var(--red-dim));
    transition: width 0.4s ease;
  }
  .dash-widget-discount-copy {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
    position: relative;
    z-index: 1;
  }
  .dash-widget-discount-copy .dash-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    margin: 0 2px;
  }
  .dash-badge--blk {
    background: #111;
    color: #fff;
  }
  .dash-badge--accent {
    background: var(--red);
    color: #fff;
  }
  .dash-widget--dtc {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-bright);
    box-shadow: none;
  }
  .dash-widget--dtc .dash-widget-kicker {
    color: var(--red);
    opacity: 0.9;
  }
  .dash-widget--dtc .dash-widget-icon {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
  }
  .dash-widget--dtc .dash-widget-title {
    color: var(--text);
  }
  .dash-widget--dtc .dash-widget-desc {
    color: var(--text-muted);
  }
  .dash-widget--bosch {
    background: var(--surface);
    border-color: var(--border-bright);
  }
  .dash-widget-bosch-brand {
    margin-bottom: 8px;
  }
  .dash-widget-bosch-codes-img {
    display: block;
    max-height: 24px;
    width: auto;
    max-width: min(150px, 100%);
    object-fit: contain;
  }
  .dash-widget--pricing {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-bright);
    box-shadow: none;
  }
  .dash-widget--pricing .dash-widget-title {
    color: var(--text);
  }
  .dash-widget--pricing .dash-widget-desc {
    color: var(--text-muted);
  }
  .dash-widget--pricing .dash-widget-icon--light {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
  }
  .dash-widget-title--dark {
    color: var(--text);
  }
  .dash-widget-desc--muted {
    color: var(--text-muted);
  }
  .dash-widget-kicker {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.75;
    margin-bottom: 4px;
  }
  .dash-widget-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    margin-bottom: 10px;
    color: #fff;
  }
  .dash-widget-icon--light {
    background: rgba(255, 255, 255, 0.18);
  }
  .dash-widget-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.2;
  }
  .dash-widget-desc {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: auto;
    padding-bottom: 14px;
    color: rgba(255, 255, 255, 0.88);
  }
  .dash-widget--bosch .dash-widget-desc {
    color: var(--text-muted);
  }
  .dash-widget-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 4px;
  }
  .dash-widget-cta--dark {
    background: rgba(15, 23, 42, 0.55);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .dash-widget-cta--light {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
    border: 1px solid var(--border-bright);
  }
  .dash-widget-cta--on-accent {
    background: rgba(255, 255, 255, 0.96);
    color: #0e1117;
    font-weight: 800;
    border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35);
  }
  .dash-widget--dtc .dash-widget-cta.dash-widget-cta--dark {
    background: linear-gradient(145deg, var(--red) 0%, var(--red-dim) 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
  }
  .dash-widget--pricing .dash-widget-cta.dash-widget-cta--dark,
  .dash-widget--bosch .dash-widget-cta.dash-widget-cta--dark {
    background: linear-gradient(145deg, var(--red) 0%, var(--red-dim) 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
  }
  .dash-widget--pricing .dash-widget-cta.dash-widget-cta--dark svg,
  .dash-widget--bosch .dash-widget-cta.dash-widget-cta--dark svg {
    opacity: 0.95;
  }
  .dash-widget--dtc .dash-widget-cta.dash-widget-cta--dark svg {
    stroke: #ffffff;
  }
  .feed-live-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.14);
    color: var(--red);
    margin-right: 6px;
    vertical-align: middle;
    border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.28);
  }

  .stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
  }
  .stat-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
  }
  .stat-card.files::before { background: var(--green); }
  .stat-card.spend::before { background: var(--red); }

  .stat-num {
    font-family: 'Inter', Helvetica, sans-serif;
    font-weight: 900;
    font-size: 42px;
    line-height: 1;
    margin-bottom: 4px;
  }
  .stat-card.spend .stat-num { font-size: 32px; }

  .stat-label { font-size: 12px; color: var(--text-muted); }

  .section-title {
    font-family: var(--heading-font);
    font-weight: var(--heading-weight-strong);
    font-size: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--heading-color);
  }
  .files-header .section-title {
    font-size: var(--heading-h1-size);
    letter-spacing: 0.02em;
    text-transform: none;
  }
  .section-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }

  .feed-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
  }
  .feed-table thead { display: none; } /* match reference: no header row */
  .feed-table th {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
  }
  .feed-table td {
    padding: 16px 14px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    vertical-align: middle;
  }

  /* Keep vehicle line compact like reference */
  .feed-vehicle-sub {
    margin-top: 4px;
    font-size: 11px;
  }

  /* Column sizing for Files Processed */
  .feed-table th:nth-child(1),
  .feed-table td:nth-child(1) { width: 26%; }
  .feed-table th:nth-child(2),
  .feed-table td:nth-child(2) { width: 44%; } /* wider: Vehicle */
  .feed-table th:nth-child(3),
  .feed-table td:nth-child(3) { width: 20%; }
  .feed-table th:nth-child(4),
  .feed-table td:nth-child(4) { width: 10%; text-align: center; vertical-align: middle; }

  /* Processed/options column: tidy stacked block like reference */
  .feed-table td:nth-child(3) { vertical-align: top; }
  .feed-table td:nth-child(3) .badge { display: block; margin-bottom: 8px; }
  .feed-stage-line {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 6px;
  }
  .feed-stage-line .badge {
    margin-bottom: 0 !important;
    min-width: 72px;
    text-align: left;
  }
  .feed-opts-line {
    display: flex;
    align-items: flex-start;
    gap: 0;
    min-width: 0;
  }
  .feed-stage-col {
    text-align: center;
    padding-left: 8px;
    padding-right: 8px;
  }
  .feed-stage-icon-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .feed-stage-thumb {
    display: block;
    width: 100%;
    max-width: 30px;
    height: auto;
    margin: 0;
    object-fit: contain;
    flex-shrink: 0;
  }
  @media (max-width: 640px) {
    .feed-stage-thumb {
      width: 18px;
      max-width: 18px;
      height: 13px;
      object-fit: contain;
    }
  }
  .feed-stage-live {
    margin-top: 6px;
    line-height: 1;
  }
  .feed-stage-live .feed-live-pill {
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-muted);
    background: #1e2633;
    border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.32);
  }

  .feed-vehicle-make {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
  }
  .feed-make-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .feed-vehicle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
  }
  .feed-vehicle-main { min-width: 0; }
  .feed-vehicle-mainline {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .feed-vehicle-text {
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .feed-vehicle-sub { font-size: 11px; color: var(--text-muted); }
  .make-icon {
    width: 24px;
    height: 18px;
    object-fit: contain;
    border-radius: 3px;
    background: rgba(255,255,255,0.03);
    flex: 0 0 auto;
    margin-top: 1px;
  }
  .feed-opts {
    margin-top: 0;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    line-height: 1.35;
    white-space: normal;
    min-width: 0;
  }
  .feed-table tr:last-child td { border-bottom: none; }
  .feed-table tr:hover td { background: rgba(255,255,255,0.03); }

  .badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  /* Files processed / feed: stage colours */
  .badge.badge-eco {
    background: rgba(34, 211, 160, 0.18);
    color: #4ade80;
  }
  .badge.badge-stock {
    background: rgba(245, 158, 11, 0.22);
    color: #fbbf24;
  }
  .badge.badge-stage1,
  .badge.badge-stage2 {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
  }
  .badge.green { background: rgba(34, 211, 160, 0.14); color: #4ade80; }
  .badge.amber { background: rgba(245,158,11,0.15); color: var(--amber); }
  .badge.red { background: rgba(232,0,15,0.15); color: var(--red); }

  /* ── UPLOAD SCREEN (panel shell + title row aligned with My Transactions) ── */

  .upload-vehicle-entry-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    margin-bottom: 4px;
  }

  .upload-vehicle-mode-toggle {
    display: inline-flex;
    padding: 3px;
    border-radius: 10px;
    background: var(--surface3);
    border: 1px solid var(--border);
    gap: 2px;
  }

  .upload-mode-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--heading-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 8px 14px;
    border-radius: 7px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
  }

  .upload-mode-btn:hover {
    color: var(--text);
  }

  .upload-mode-btn.is-active {
    background: var(--surface2);
    color: var(--text);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-bright);
  }

  #screen-upload .upload-vs-panel--custom .upload-custom-field-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    padding: 11px 14px;
    background: var(--surface2);
    border: 1px solid var(--border-bright);
    border-radius: 5px;
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.15s;
  }

  #screen-upload .upload-vs-panel--custom .upload-custom-field-input::placeholder {
    color: var(--text-dim);
  }

  #screen-upload .upload-vs-panel--custom .upload-custom-field-input:focus {
    outline: none;
    border-color: var(--red);
  }

  #screen-upload .upload-vs-panel--custom .field.upload-catalog-field label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    min-height: 0;
  }

  .upload-steps-wrap {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  }

  .upload-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
  }

  .step {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Inter', Helvetica, sans-serif;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid var(--border-bright);
    color: var(--text-dim);
    transition: all 0.2s;
  }

  .step.active .step-num { border-color: var(--red); background: var(--red); color: #0e1117; }
  .step.done .step-num { border-color: var(--green); background: var(--green); color: #fff; }

  .step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
  }
  .step.active .step-label { color: var(--text); }

  .step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 10px;
    max-width: 56px;
    border-radius: 1px;
    align-self: center;
  }

  #screen-upload .step.done + .step-line {
    background: linear-gradient(90deg, var(--green), var(--border));
  }

  .form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;
  }

  .form-card h2 {
    margin-bottom: 4px;
  }

  .form-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
  }

  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .form-grid .field.full { grid-column: 1 / -1; }

  .field select {
    width: 100%;
    padding: 11px 14px;
    background: var(--surface2);
    border: 1px solid var(--border-bright);
    border-radius: 5px;
    color: var(--text);
    font-size: 14px;
    font-family: 'Inter', Helvetica, sans-serif;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777784' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
  }
  .field select:focus { border-color: var(--red); }

  .radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .radio-pill {
    padding: 7px 16px;
    border-radius: 4px;
    border: 1px solid var(--border-bright);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.12s;
    user-select: none;
  }
  .radio-pill.sel { border-color: var(--red); color: var(--text); background: rgba(232,0,15,0.1); }

  .upload-zone {
    border: 2px dashed var(--border-bright);
    border-radius: 8px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
  }
  .upload-zone:hover,
  .upload-zone.drag {
    border-color: var(--red);
    background: rgba(232,0,15,0.04);
  }

  /* Success state when a file is selected */
  .upload-zone.success {
    border-color: #16a34a;
    background: rgba(22,163,74,0.08);
  }

  .upload-zone input[type=file] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2;
  }

  .upload-icon {
    width: 48px; height: 48px;
    margin: 0 auto 12px;
    background: var(--surface3);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
  }

  .upload-zone h3 {
    margin-bottom: 4px;
  }

  .upload-zone p { font-size: 12px; color: var(--text-muted); margin: 0; }

  .file-preview {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface2);
    border-radius: 6px;
    margin-top: 12px;
  }
  .file-preview.show { display: flex; }

  .file-preview-list {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
  }

  .file-preview-list.show {
    display: flex;
  }

  .file-preview-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface2);
    border-radius: 6px;
    border: 1px solid var(--border);
  }

  .file-preview-check {
    flex-shrink: 0;
    color: var(--green);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
  }

  #screen-upload #upload-files-section-title {
    text-transform: none;
    letter-spacing: 0.03em;
    font-size: 14px;
    color: var(--text-dim);
  }

  .file-icon {
    width: 36px; height: 36px;
    background: rgba(59,130,246,0.1);
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--red);
    font-family: 'Inter', Helvetica, sans-serif;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.05em;
  }

  .file-info { flex: 1; }
  .file-info .fname { font-size: 13px; font-weight: 600; }
  .file-info .fsize { font-size: 11px; color: var(--text-muted); }

  .form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
  }

  .btn-ghost {
    padding: 11px 24px;
    background: none;
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: 'Inter', Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s;
  }
  .btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }

  .btn-red {
    padding: 11px 28px;
    background: var(--red);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-family: 'Inter', Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: background 0.15s;
  }
  .btn-red:hover { background: var(--accent-hover); }

  /* ── MY FILES SCREEN ── */
  .files-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }

  .search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    padding: 9px 14px;
    width: 260px;
  }
  .search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 13px;
    font-family: 'Inter', Helvetica, sans-serif;
    flex: 1;
  }
  .search-box input::placeholder { color: var(--text-dim); }

  .files-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
  }

  .files-table th {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface2);
  }

  .files-table td {
    padding: 14px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
  }
  .files-table tr:last-child td { border-bottom: none; }
  .files-table tr:hover td { background: var(--surface2); }

  .vehicle-name { font-weight: 600; font-size: 14px; }
  .vehicle-spec { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

  .reg-tag {
    display: inline-block;
    background: #f59e0b;
    color: #000;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 3px;
    font-family: 'Inter', Helvetica, sans-serif;
  }

  /* ── BUY CREDITS — panel + grid aligned with portal shells; cards use flex for even vertical rhythm ── */
  #screen-buycredits .buycredits-support-outer {
    max-width: var(--portal-content-max);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 0 48px;
  }

  #screen-buycredits .support-ticket-panel.buycredits-panel {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: clamp(24px, 2.8vw, 32px) clamp(22px, 2.5vw, 32px) clamp(28px, 3vw, 36px);
    border-radius: var(--radius-lg);
  }

  #screen-buycredits .buycredits-panel-heading {
    margin-bottom: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-bright);
  }

  /* Open ticket + How to + My tickets + Price list — H1 inside main panel (Buy Credits pattern) */
  .support-flow-outer {
    max-width: var(--portal-content-max);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 0 48px;
  }

  :is(#screen-howto, #screen-pricelist).support-ticket-screen .howto-page-panel .howto-shell--support-theme {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  #screen-mytickets .mytickets-panels-stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 20px;
  }

  #screen-mytickets.support-ticket-screen .mytickets-page-panel .mytickets-conversation-panel {
    margin-top: 0;
  }

  #screen-support .support-form-page-panel .support-form-card {
    max-width: none;
    margin: 20px 0 0 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  /* Open ticket choose + How to + Price list + My tickets: title row + upload-style step box (top right) */
  #screen-support-choose .support-choose-panel-head,
  :is(#screen-howto, #screen-pricelist) .support-choose-panel-head,
  #screen-mytickets .support-choose-panel-head,
  #screen-library-downloads .support-choose-panel-head,
  #screen-library-faultcodes .support-choose-panel-head,
  #screen-library-bosch .support-choose-panel-head,
  #screen-library-terms .support-choose-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    column-gap: 20px;
    row-gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-bright);
  }

  #screen-support-choose .support-choose-panel-head .support-choose-heading,
  :is(#screen-howto, #screen-pricelist) .support-choose-panel-head .howto-page-heading,
  #screen-mytickets .support-choose-panel-head .mytickets-page-heading,
  #screen-library-downloads .support-choose-panel-head .library-page-heading,
  #screen-library-faultcodes .support-choose-panel-head .library-page-heading,
  #screen-library-bosch .support-choose-panel-head .library-page-heading,
  #screen-library-terms .support-choose-panel-head .library-page-heading {
    margin: 0;
    padding: 0;
    border: none;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
    letter-spacing: 0.02em;
  }

  /* Fault codes + Bosch ECU: intro line on the right of the title row */
  #screen-library-faultcodes .support-choose-panel-head,
  #screen-library-bosch .support-choose-panel-head {
    align-items: center;
  }

  #screen-library-faultcodes .support-choose-panel-head .library-fc-panel-lead,
  #screen-library-bosch .support-choose-panel-head .library-bosch-panel-lead {
    margin: 0;
    flex: 1 1 auto;
    min-width: min(200px, 42%);
    max-width: min(62ch, 100%);
    text-align: right;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-muted);
  }

  #screen-support-choose .support-choose-panel-head .upload-steps-wrap,
  :is(#screen-howto, #screen-pricelist) .support-choose-panel-head .upload-steps-wrap,
  #screen-pricelist .support-choose-panel-head .upload-steps-wrap,
  #screen-mytickets .support-choose-panel-head .upload-steps-wrap {
    flex: 0 1 auto;
    min-width: min(200px, 100%);
    max-width: min(100%, 380px);
    margin: 0;
  }

  :is(#screen-howto, #screen-pricelist) .support-choose-panel-head .step.done + .step-line,
  #screen-mytickets .support-choose-panel-head .step.done + .step-line {
    background: linear-gradient(90deg, var(--green), var(--border));
  }

  :is(#screen-howto, #screen-pricelist).support-ticket-screen.howto-phase-category .howto-main {
    display: none;
  }

  :is(#screen-howto, #screen-pricelist).support-ticket-screen.howto-phase-category .howto-layout {
    grid-template-columns: 1fr;
  }

  /* How to category: Open ticket–style flat list (no sidebar panel box behind the rows) */
  :is(#screen-howto, #screen-pricelist).howto-phase-category .howto-sidebar.howto-sidebar--cards {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    gap: 0;
  }

  :is(#screen-howto, #screen-pricelist).howto-phase-category .howto-sidebar-tools {
    margin: 0 0 16px;
  }

  :is(#screen-howto, #screen-pricelist).howto-phase-category .howto-side-section {
    gap: 14px;
  }

  :is(#screen-howto, #screen-pricelist).howto-phase-category .howto-side-section + .howto-side-section {
    margin-top: 18px;
  }

  :is(#screen-howto, #screen-pricelist).howto-phase-category .howto-side-label {
    padding: 6px 0 4px;
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
  }

  :is(#screen-howto, #screen-pricelist).howto-phase-category .howto-ticket-type-list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  #screen-pricelist .howto-ticket-type-list .ticket-type-title {
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  #screen-pricelist .support-choose-panel-head button.step {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
    width: auto;
  }

  #screen-pricelist .support-choose-panel-head button.step:focus-visible {
    outline: 2px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.55);
    outline-offset: 3px;
    border-radius: 8px;
  }

  @media (max-width: 560px) {
    #screen-support-choose .support-choose-panel-head,
    :is(#screen-howto, #screen-pricelist) .support-choose-panel-head,
    #screen-pricelist .support-choose-panel-head,
    #screen-mytickets .support-choose-panel-head,
    #screen-library-downloads .support-choose-panel-head,
    #screen-library-faultcodes .support-choose-panel-head,
    #screen-library-bosch .support-choose-panel-head,
    #screen-library-terms .support-choose-panel-head {
      flex-direction: column;
      align-items: stretch;
    }

    #screen-library-faultcodes .support-choose-panel-head .library-fc-panel-lead,
    #screen-library-bosch .support-choose-panel-head .library-bosch-panel-lead {
      text-align: left;
      max-width: none;
      min-width: 0;
    }

    #screen-support-choose .support-choose-panel-head .upload-steps-wrap,
    :is(#screen-howto, #screen-pricelist) .support-choose-panel-head .upload-steps-wrap,
    #screen-pricelist .support-choose-panel-head .upload-steps-wrap,
    #screen-mytickets .support-choose-panel-head .upload-steps-wrap {
      max-width: none;
      width: 100%;
    }

    #screen-support .support-form-panel-head {
      flex-direction: column;
      align-items: stretch;
    }

    #screen-support .support-form-panel-head .upload-steps-wrap {
      max-width: none;
      width: 100%;
    }

    :is(#screen-howto, #screen-pricelist).howto-phase-details .howto-form-panel-head {
      flex-direction: column;
      align-items: stretch;
    }

    :is(#screen-howto, #screen-pricelist).howto-phase-details .howto-form-panel-head .upload-steps-wrap {
      max-width: none;
      width: 100%;
    }
  }

  /* Open ticket form: title row + upload-style steps (top right); step 1 = back to category */
  #screen-support .support-form-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    column-gap: 20px;
    row-gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-bright);
  }

  #screen-support .support-form-panel-head .support-form-page-heading {
    margin: 0;
    padding: 0;
    border: none;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
    letter-spacing: 0.02em;
  }

  #screen-support .support-form-panel-head .upload-steps-wrap {
    flex: 0 1 auto;
    min-width: min(200px, 100%);
    max-width: min(100%, 380px);
    margin: 0;
  }

  #screen-support .support-form-panel-head button.step {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
    width: auto;
  }

  #screen-support .support-form-panel-head button.step:focus-visible {
    outline: 2px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.55);
    outline-offset: 3px;
    border-radius: 8px;
  }

  #screen-support .support-form-panel-head .step.done + .step-line {
    background: linear-gradient(90deg, var(--green), var(--border));
  }

  #screen-support-choose .support-ticket-panel.support-choose-panel,
  :is(#screen-howto, #screen-pricelist) .support-ticket-panel.support-choose-panel.howto-page-panel,
  :is(#screen-howto, #screen-pricelist) .support-ticket-panel.support-form-page-panel.howto-page-panel,
  #screen-mytickets .support-ticket-panel.support-choose-panel.mytickets-page-panel,
  #screen-library-downloads .support-ticket-panel.support-choose-panel.library-page-panel,
  #screen-library-faultcodes .support-ticket-panel.support-choose-panel.library-page-panel,
  #screen-library-bosch .support-ticket-panel.support-choose-panel.library-page-panel,
  #screen-library-terms .support-ticket-panel.support-choose-panel.library-page-panel,
  #screen-support .support-ticket-panel.support-form-page-panel {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: clamp(24px, 2.8vw, 32px) clamp(22px, 2.5vw, 32px) clamp(28px, 3vw, 36px);
    border-radius: var(--radius-lg);
  }

  /* Fault codes + Bosch ECU: stretch main card toward viewport bottom; full table height (no inner table scroll) */
  #screen-library-faultcodes .support-flow-outer,
  #screen-library-bosch .support-flow-outer {
    min-height: calc(100vh - var(--header-height) - 28px - calc(36px + env(safe-area-inset-bottom, 0px)));
    min-height: calc(100dvh - var(--header-height) - 28px - calc(36px + env(safe-area-inset-bottom, 0px)));
    display: flex;
    flex-direction: column;
  }

  #screen-library-faultcodes .support-flow-outer > .support-ticket-panel.support-choose-panel.library-page-panel,
  #screen-library-bosch .support-flow-outer > .support-ticket-panel.support-choose-panel.library-page-panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  #screen-library-faultcodes.support-ticket-screen .library-page-body,
  #screen-library-bosch.support-ticket-screen .library-page-body {
    flex: 1 1 auto;
    min-height: 0;
  }

  #screen-library-faultcodes.support-ticket-screen .library-page-body > .fc-lookup-inner,
  #screen-library-bosch.support-ticket-screen .library-page-body > .fc-lookup-inner {
    flex: 1 1 auto;
    min-height: 0;
  }

  #screen-library-faultcodes .fc-lookup-table-wrap,
  #screen-library-bosch .fc-lookup-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: visible;
  }

  #screen-library-faultcodes .fc-lookup-table-wrap .fc-lookup-table,
  #screen-library-bosch .fc-lookup-table-wrap .fc-lookup-table {
    flex: 0 0 auto;
  }

  #screen-library-faultcodes .fc-lookup-table-wrap::after,
  #screen-library-bosch .fc-lookup-table-wrap::after {
    content: '';
    flex: 1 1 auto;
    min-height: 0;
  }

  #screen-library-faultcodes .support-choose-panel-head,
  #screen-library-bosch .support-choose-panel-head {
    flex-shrink: 0;
  }

  /* How to — details phase matches Open ticket form (header, flat card, topic pill, single column) */
  :is(#screen-howto, #screen-pricelist).howto-phase-details .support-choose-panel-head {
    display: none !important;
  }

  :is(#screen-howto, #screen-pricelist) .howto-form-panel-head {
    display: none;
  }

  :is(#screen-howto, #screen-pricelist).howto-phase-details .howto-form-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    column-gap: 20px;
    row-gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-bright);
  }

  :is(#screen-howto, #screen-pricelist).howto-phase-details .howto-form-panel-head .support-form-page-heading {
    margin: 0;
    padding: 0;
    border: none;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
    letter-spacing: 0.02em;
  }

  :is(#screen-howto, #screen-pricelist).howto-phase-details .howto-form-panel-head .upload-steps-wrap {
    flex: 0 1 auto;
    min-width: min(200px, 100%);
    max-width: min(100%, 380px);
    margin: 0;
  }

  :is(#screen-howto, #screen-pricelist).howto-phase-details .howto-form-panel-head button.step {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
    width: auto;
  }

  :is(#screen-howto, #screen-pricelist).howto-phase-details .howto-form-panel-head button.step:focus-visible {
    outline: 2px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.55);
    outline-offset: 3px;
    border-radius: 8px;
  }

  :is(#screen-howto, #screen-pricelist).howto-phase-details .howto-form-panel-head .step.done + .step-line {
    background: linear-gradient(90deg, var(--green), var(--border));
  }

  :is(#screen-howto, #screen-pricelist) .support-form-page-panel.howto-page-panel .howto-details-card {
    max-width: none;
    margin: 20px 0 0 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  :is(#screen-howto, #screen-pricelist).support-ticket-screen.howto-phase-details .howto-sidebar {
    display: none !important;
  }

  :is(#screen-howto, #screen-pricelist).support-ticket-screen.howto-phase-details .howto-layout {
    grid-template-columns: 1fr;
  }

  /* Details body: padded container + room so step numbers / last line are not clipped */
  :is(#screen-howto, #screen-pricelist).howto-phase-details .howto-details-card {
    padding: 0 clamp(16px, 3vw, 36px) clamp(20px, 2.8vw, 36px);
    box-sizing: border-box;
    overflow: visible;
  }

  :is(#screen-howto, #screen-pricelist).howto-phase-details .howto-details-card .price-section-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14);
    border-top: 2px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.3);
    padding: clamp(24px, 3vw, 40px) clamp(22px, 3.2vw, 44px) clamp(32px, 4vw, 52px);
    margin: 0;
    overflow: visible;
  }

  :is(#screen-howto, #screen-pricelist).howto-phase-details .howto-tab-panel .pricelist-lead {
    font-size: 17px;
    line-height: 1.78;
    margin-bottom: clamp(22px, 2.5vw, 30px);
  }

  :is(#screen-howto, #screen-pricelist).howto-phase-details .howto-tab-panel .price-section-card h2 {
    margin: 0 0 clamp(22px, 2.5vw, 30px) 0;
    padding-bottom: clamp(16px, 2vw, 20px);
  }

  :is(#screen-howto, #screen-pricelist).howto-phase-details .howto-steps-list li {
    padding: 6px 12px 32px 72px;
    line-height: 1.78;
  }

  :is(#screen-howto, #screen-pricelist).howto-phase-details .howto-steps-list li:last-child {
    padding-bottom: clamp(32px, 4vw, 48px);
  }

  :is(#screen-howto, #screen-pricelist).howto-phase-details .howto-steps-list li::before {
    top: 4px;
    left: 2px;
    width: 46px;
    height: 46px;
  }

  :is(#screen-howto, #screen-pricelist).howto-phase-details .howto-video-slot {
    margin-top: clamp(24px, 3vw, 32px);
  }

  #screen-buycredits .buycredits-vip-note {
    margin: 18px 0 18px 0;
    font-size: 14px;
    color: var(--green);
    font-weight: 600;
  }

  #screen-buycredits .credits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 20px;
    margin: 22px 0 0 0;
    align-items: stretch;
  }

  /* When VIP line is shown, spacing below it replaces the grid’s top margin */
  #screen-buycredits .buycredits-vip-note[style*='block'] + .credits-grid {
    margin-top: 0;
  }

  /* Pack tiles — top row height follows content (no flex gap); volume row fixed */
  #screen-buycredits .credit-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, var(--surface2) 42%, var(--surface2) 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 16px 14px;
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s, transform 0.18s;
    position: relative;
    font-family: var(--heading-font);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  #screen-buycredits .credit-card:focus-within {
    outline: none;
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.55);
    box-shadow:
      0 0 0 2px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.25),
      0 8px 28px rgba(0, 0, 0, 0.22);
  }

  #screen-buycredits .credit-card:hover {
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35);
    background: linear-gradient(165deg, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.08) 0%, var(--surface2) 50%, var(--surface2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  #screen-buycredits .credit-card.selected {
    border-color: var(--accent);
    box-shadow:
      0 0 0 2px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35),
      0 8px 28px rgba(0, 0, 0, 0.22);
    background: linear-gradient(165deg, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.1) 0%, var(--surface2) 55%, var(--surface2) 100%);
  }

  #screen-buycredits .credit-card-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  #screen-buycredits .credit-card:not(.featured) {
    height: auto;
    min-height: 0;
  }

  #screen-buycredits .credit-card:not(.featured) .credit-card-body {
    flex: 0 0 auto;
    gap: 10px;
  }

  #screen-buycredits .credit-card-benefits:empty {
    display: none;
  }

  #screen-buycredits .credit-card-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    width: 100%;
  }

  /* Volume packs — accent frame (height follows content like top row) */
  #screen-buycredits .credit-card.featured {
    height: auto;
    min-height: 0;
    padding: 18px 16px 14px;
    border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.45);
    box-shadow:
      0 0 0 1px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.2),
      0 6px 26px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.08),
      0 4px 20px rgba(0, 0, 0, 0.2);
  }

  #screen-buycredits .credit-card.featured:hover {
    border-color: var(--accent-hover);
    box-shadow:
      0 0 0 1px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35),
      0 12px 36px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.14),
      0 8px 28px rgba(0, 0, 0, 0.22);
    background: linear-gradient(165deg, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12) 0%, var(--surface2) 48%, var(--surface2) 100%);
  }

  #screen-buycredits .credit-card.featured.selected {
    border-color: var(--accent);
    box-shadow:
      0 0 0 2px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.45),
      0 0 24px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.15),
      0 8px 28px rgba(0, 0, 0, 0.22);
    background: linear-gradient(165deg, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.14) 0%, var(--surface2) 52%, var(--surface2) 100%);
  }

  #screen-buycredits .credit-card.featured .credit-discount {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--accent-hover) 0%, var(--accent) 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
  }

  #screen-buycredits .credit-qty {
    font-family: 'Inter', Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
    padding: 7px 14px;
    text-align: center;
    align-self: center;
    width: fit-content;
    max-width: 100%;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 999px;
    line-height: 1.25;
  }

  #screen-buycredits .credit-card.featured .credit-qty {
    padding-right: 44px;
    color: var(--text);
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.28);
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.08);
  }

  #screen-buycredits .credit-price {
    font-family: 'Inter', Helvetica, sans-serif;
    font-weight: 900;
    font-size: clamp(28px, 3.4vw, 38px);
    line-height: 1;
    margin: 0;
    text-align: center;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
  }

  #screen-buycredits .credit-price .currency {
    font-size: 0.52em;
    vertical-align: top;
    margin-top: 0.28em;
    margin-right: 0.06em;
    display: inline-block;
    font-weight: 800;
    opacity: 0.88;
    letter-spacing: 0;
  }

  #screen-buycredits .credit-was {
    font-size: 12px;
    font-weight: 600;
    text-decoration: line-through;
    margin: 0;
    color: var(--text-dim);
    text-align: center;
    min-height: 1.35em;
    line-height: 1.35;
  }

  #screen-buycredits .credit-was:empty {
    display: none;
    min-height: 0;
  }

  #screen-buycredits .credit-vat {
    font-size: 11px;
    font-weight: 600;
    margin: 0;
    padding: 0 8px;
    color: var(--text-dim);
    text-align: center;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.35;
  }

  #screen-buycredits .credit-perunit {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
  }

  #screen-buycredits .credit-card-benefits {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding-top: 2px;
  }

  #screen-buycredits .credit-card.featured .credit-card-body {
    flex: 0 0 auto;
    gap: 8px;
  }

  #screen-buycredits .credit-card.featured .credit-card-pricing {
    gap: 4px;
  }

  #screen-buycredits .credit-card.featured .credit-card-benefits {
    flex: 0 0 auto;
    justify-content: flex-start;
    padding-top: 0;
    gap: 0;
  }

  #screen-buycredits .credit-benefit {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
    display: none;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 10px 12px 10px 11px;
    text-align: left;
    width: 100%;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-sizing: border-box;
  }

  #screen-buycredits .credit-benefit:not(:empty) {
    display: flex;
  }

  #screen-buycredits .credit-card.featured .credit-benefit:not(:empty) {
    justify-content: center;
    text-align: center;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--green);
  }

  #screen-buycredits .credit-card.featured .credit-benefit:not(:empty)::before {
    margin-top: 0;
    align-self: center;
  }

  #screen-buycredits .credit-benefit::before {
    content: '';
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 2px rgba(34, 211, 160, 0.25);
  }

  #screen-buycredits .btn-select {
    width: 100%;
    flex-shrink: 0;
    margin-top: 12px;
    padding: 12px 16px;
    font-family: 'Inter', Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border-bright);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  #screen-buycredits .btn-select:focus-visible {
    outline: 2px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.85);
    outline-offset: 2px;
  }

  #screen-buycredits .credit-card:hover .btn-select {
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.5);
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
    color: #fff;
  }

  #screen-buycredits .btn-select:hover,
  #screen-buycredits .credit-card:hover .btn-select:hover {
    background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 20px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35);
    transform: translateY(-1px);
  }

  #screen-buycredits .credit-card.featured:hover .btn-select {
    border-color: rgba(255, 255, 255, 0.12);
  }

  #screen-buycredits .credit-card.featured .btn-select {
    margin-top: 8px;
  }

  #screen-buycredits .credit-card:not(.featured) .btn-select {
    margin-top: 8px;
  }

  #screen-buycredits .btn-select:disabled {
    opacity: 0.72;
    cursor: wait;
    transform: none;
    pointer-events: none;
  }

  @media (max-width: 900px) {
    #screen-buycredits .credit-card.featured {
      height: auto;
      min-height: 0;
    }
  }

  @media (max-width: 640px) {
    #screen-buycredits .credit-card:not(.featured),
    #screen-buycredits .credit-card.featured {
      min-height: 0;
    }
  }

  /* ── TRANSACTIONS SCREEN ── */
  .trans-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
  }

  .trans-table th {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface2);
  }

  .trans-table td {
    padding: 14px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
  }
  .trans-table tr:last-child td { border-bottom: none; }
  .trans-table .serial { font-family: 'Inter', Helvetica, sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.06em; }
  .trans-table .total { color: var(--red); font-weight: 700; }

  .btn-dl {
    padding: 6px 14px;
    background: var(--surface3);
    border: 1px solid var(--border-bright);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.12s;
  }
  .btn-dl:hover { border-color: var(--red); color: var(--text); }

  /* ── PRICE LIST / HOW-TO / TRANSACTIONS: sidebar + panels ── */
  :is(#screen-howto, #screen-pricelist) .howto-shell,
  #screen-transactions .transactions-shell {
    max-width: var(--portal-content-max);
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  :is(#screen-howto, #screen-pricelist) .howto-layout,
  #screen-transactions .transactions-layout {
    display: grid;
    grid-template-columns: minmax(200px, 248px) minmax(0, 1fr);
    gap: 24px 28px;
    align-items: start;
  }

  :is(#screen-howto, #screen-pricelist) .howto-sidebar-tools,
  #screen-transactions .transactions-sidebar-tools {
    margin: -2px 0 4px;
  }

  :is(#screen-howto, #screen-pricelist) .howto-nav-filter,
  #screen-transactions .transactions-nav-filter,
  #screen-invoices .transactions-nav-filter,
  #screen-library-faultcodes .transactions-nav-filter,
  #screen-library-bosch .transactions-nav-filter,
  #screen-myfiles #myfiles-search {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 11px 9px 34px;
    font-family: inherit;
    font-size: 12px;
    color: var(--text);
    background: var(--surface3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a8b4cc' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3-3'/%3E%3C/svg%3E") 10px center no-repeat;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
  }

  :is(#screen-howto, #screen-pricelist) .howto-nav-filter::placeholder,
  #screen-transactions .transactions-nav-filter::placeholder,
  #screen-invoices .transactions-nav-filter::placeholder,
  #screen-library-faultcodes .transactions-nav-filter::placeholder,
  #screen-library-bosch .transactions-nav-filter::placeholder,
  #screen-myfiles #myfiles-search::placeholder {
    color: var(--text-dim);
  }

  :is(#screen-howto, #screen-pricelist) .howto-nav-filter:hover,
  #screen-transactions .transactions-nav-filter:hover,
  #screen-invoices .transactions-nav-filter:hover,
  #screen-library-faultcodes .transactions-nav-filter:hover,
  #screen-library-bosch .transactions-nav-filter:hover,
  #screen-myfiles #myfiles-search:hover {
    border-color: var(--border-bright);
  }

  :is(#screen-howto, #screen-pricelist) .howto-nav-filter:focus,
  #screen-transactions .transactions-nav-filter:focus,
  #screen-invoices .transactions-nav-filter:focus,
  #screen-library-faultcodes .transactions-nav-filter:focus,
  #screen-library-bosch .transactions-nav-filter:focus,
  #screen-myfiles #myfiles-search:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.2);
  }

  :is(#screen-howto, #screen-pricelist) .howto-sidebar,
  #screen-transactions .transactions-sidebar {
    position: sticky;
    top: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 12px;
    border-radius: 10px;
    background: var(--surface2);
    border: 1px solid var(--border-bright);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-bright) transparent;
  }

  :is(#screen-howto, #screen-pricelist) .howto-sidebar::-webkit-scrollbar,
  #screen-transactions .transactions-sidebar::-webkit-scrollbar {
    width: 6px;
  }
  :is(#screen-howto, #screen-pricelist) .howto-sidebar::-webkit-scrollbar-thumb,
  #screen-transactions .transactions-sidebar::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.25);
    border-radius: 6px;
  }

  :is(#screen-howto, #screen-pricelist) .howto-side-section,
  #screen-transactions .transactions-side-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  :is(#screen-howto, #screen-pricelist) .howto-side-label,
  #screen-transactions .transactions-side-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 4px 2px 2px;
  }

  :is(#screen-howto, #screen-pricelist) .howto-main,
  #screen-transactions .transactions-main {
    min-width: 0;
  }

  #screen-pricelist .price-section-card,
  :is(#screen-howto, #screen-pricelist) .price-section-card,
  #screen-transactions .price-section-card {
    border-color: var(--border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    border-top: 2px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35);
  }

  #screen-pricelist .price-section-card--terms,
  :is(#screen-howto, #screen-pricelist) .price-section-card--muted {
    border-top: 1px solid var(--border-bright);
  }

  :is(#screen-howto, #screen-pricelist) .howto-tab:not(.ticket-type-card),
  #screen-transactions .transactions-tab {
    width: 100%;
    text-align: left;
    padding: 9px 12px 9px 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  }

  :is(#screen-howto, #screen-pricelist) .howto-tab:not(.ticket-type-card):hover,
  #screen-transactions .transactions-tab:hover {
    color: var(--text);
    background: var(--surface3);
    border-color: var(--border-bright);
  }

  :is(#screen-howto, #screen-pricelist) .howto-tab:not(.ticket-type-card).is-active,
  #screen-transactions .transactions-tab.is-active {
    color: var(--text);
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.1);
    border-color: var(--border-bright);
    border-left-color: var(--blue);
    box-shadow: inset 0 0 0 1px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
  }

  :is(#screen-howto, #screen-pricelist) .howto-tab:not(.ticket-type-card):focus-visible,
  #screen-transactions .transactions-tab:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
  }

  #screen-pricelist .pricelist-lead,
  :is(#screen-howto, #screen-pricelist) .howto-tab-panel .pricelist-lead,
  #screen-transactions .transactions-tab-panel .pricelist-lead {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0 0 14px;
  }

  #screen-pricelist .pricelist-lead strong,
  :is(#screen-howto, #screen-pricelist) .howto-tab-panel .pricelist-lead strong,
  #screen-transactions .transactions-tab-panel .pricelist-lead strong {
    color: var(--text);
    font-weight: 600;
  }

  #screen-pricelist .pricelist-note,
  :is(#screen-howto, #screen-pricelist) .howto-tab-panel .pricelist-note {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.05);
    border: 1px solid var(--border-bright);
  }

  /* Numbered steps for How-to live under :is(#screen-howto, #screen-pricelist).support-ticket-screen rules (larger type). */

  :is(#screen-howto, #screen-pricelist) .howto-video-slot {
    margin-top: 16px;
  }

  :is(#screen-howto, #screen-pricelist) .howto-video-frame {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-bright);
    background: rgba(0, 0, 0, 0.35);
    max-width: 720px;
  }

  :is(#screen-howto, #screen-pricelist) .howto-video-iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    vertical-align: top;
  }

  :is(#screen-howto, #screen-pricelist) .howto-video-element {
    display: block;
    width: 100%;
    max-height: min(70vh, 480px);
    vertical-align: top;
  }

  .admin-howto-videos-rows {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 720px;
  }

  .admin-howto-videos-row {
    padding: 18px;
    border-radius: 10px;
    border: 1px solid var(--border-bright);
    background: rgba(0, 0, 0, 0.2);
  }

  .admin-howto-videos-row-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
  }

  .admin-howto-videos-row-head strong {
    font-size: 14px;
    color: var(--text);
  }

  .admin-howto-videos-curr {
    font-size: 12px;
  }

  .admin-howto-videos-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
  }

  .admin-howto-videos-url {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border-bright);
    border-radius: 6px;
    padding: 9px 10px;
    color: var(--text);
    font-size: 13px;
    outline: none;
  }

  .admin-howto-videos-file {
    font-size: 13px;
    color: var(--text);
  }

  .admin-howto-videos-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }

  #screen-pricelist .pricelist-bullets {
    margin: 0 0 0 1.1em;
    padding: 0;
  font-size: 16px;
    line-height: 1.55;
    color: var(--text-muted);
  }

  #screen-pricelist .pricelist-bullets li {
    margin-bottom: 6px;
  }

  #screen-pricelist .pricelist-table-wrap {
    margin: 0 -6px;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-bright);
    background: rgba(0, 0, 0, 0.2);
  }

  #screen-pricelist .pricelist-ecu-table {
    width: 100%;
    border-collapse: collapse;
  font-size: 15px;
  }

  #screen-pricelist .pricelist-ecu-table th,
  #screen-pricelist .pricelist-ecu-table td {
  padding: 16px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
  }

  #screen-pricelist .pricelist-ecu-table th {
  font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06);
    font-weight: 700;
    border-bottom-color: var(--border-bright);
  }

  #screen-pricelist .pricelist-ecu-table td:last-child {
    white-space: nowrap;
    font-weight: 700;
    color: var(--red);
    text-align: right;
    font-family: 'Inter', Helvetica, sans-serif;
  }

  #screen-pricelist .pricelist-ecu-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
  }

  #screen-pricelist .pricelist-ecu-table__highlight td {
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.08);
    border-bottom-color: var(--border-bright);
  }

  #screen-pricelist .pricelist-catalog-toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
  }

  #screen-pricelist .pricelist-ecu-field-label {
  font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
  }

  #screen-pricelist .pricelist-ecu-select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  padding: 12px 14px;
    font-family: inherit;
  font-size: 16px;
    color: var(--text);
    background: var(--surface3);
    border: 1px solid var(--border-bright);
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a8b4cc' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
  }

  #screen-pricelist .pricelist-ecu-select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.2);
  }

  #screen-pricelist .pricelist-catalog-meta {
  font-size: 15px;
    color: var(--text-muted);
    margin: 0 0 12px;
    line-height: 1.45;
  }

  #screen-pricelist .pricelist-catalog-meta strong {
    color: var(--text);
    font-weight: 600;
  }

  #screen-pricelist .pricelist-catalog-root .fc-lookup-pagination.pricelist-catalog-pagination {
    margin-top: 12px;
  }

  #screen-pricelist .pricelist-catalog-trunc {
  font-size: 13px;
    color: var(--text-dim);
    margin: 10px 0 0;
  }

  #screen-pricelist .pricelist-ecu-table--detail th {
    white-space: nowrap;
  }

  @media (max-width: 900px) {
    #screen-pricelist .pricelist-layout,
    :is(#screen-howto, #screen-pricelist) .howto-layout,
    #screen-transactions .transactions-layout {
      grid-template-columns: 1fr;
    }
    #screen-pricelist .pricelist-sidebar,
    :is(#screen-howto, #screen-pricelist) .howto-sidebar,
    #screen-transactions .transactions-sidebar {
      position: relative;
      top: 0;
      max-height: none;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 10px;
      padding: 12px;
    }
    #screen-pricelist .pricelist-side-section,
    :is(#screen-howto, #screen-pricelist) .howto-side-section,
    #screen-transactions .transactions-side-section {
      flex: 1 1 auto;
      min-width: 140px;
    }
    #screen-pricelist .pricelist-side-label,
    :is(#screen-howto, #screen-pricelist) .howto-side-label,
    #screen-transactions .transactions-side-label {
      width: 100%;
      flex-basis: 100%;
    }
  }

  @media (max-width: 560px) {
    #screen-pricelist .pricelist-sidebar,
    :is(#screen-howto, #screen-pricelist) .howto-sidebar,
    #screen-transactions .transactions-sidebar {
      flex-direction: column;
    }
  }

  #screen-pricelist .pricelist-tab-panel,
  :is(#screen-howto, #screen-pricelist) .howto-tab-panel,
  #screen-transactions .transactions-tab-panel {
    display: none;
  }

  #screen-pricelist .pricelist-tab-panel.is-active,
  :is(#screen-howto, #screen-pricelist) .howto-tab-panel.is-active,
  #screen-transactions .transactions-tab-panel.is-active {
    display: block;
    animation: fadeUp 0.22s ease;
  }

  #screen-transactions .transactions-table-wrap {
    margin: 0 -6px;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-bright);
    background: rgba(0, 0, 0, 0.2);
  }

  :is(#screen-howto, #screen-pricelist) .price-section-card p,
  :is(#screen-howto, #screen-pricelist) .price-section-card li {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
  }

  :is(#screen-howto, #screen-pricelist) .price-section-card ul {
    padding-left: 1.25rem;
    margin: 8px 0 0 0;
  }

  :is(#screen-howto, #screen-pricelist) .price-section-card li {
    margin-bottom: 6px;
  }

  :is(#screen-howto, #screen-pricelist) .price-section-card h2 {
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    font-size: var(--heading-h2-size);
    font-weight: var(--heading-weight-strong);
    color: var(--text);
  }

  :is(#screen-howto, #screen-pricelist) .howto-tab-panel {
    scroll-margin-top: 24px;
  }

  #screen-pricelist .pricelist-tab-panel--terms .pricelist-terms-body {
    max-height: min(68vh, 680px);
    overflow-y: auto;
    padding-right: 10px;
    margin-right: -6px;
    scrollbar-gutter: stable;
  }

  #screen-pricelist .pricelist-terms-body .section-sub {
    line-height: 1.58;
    margin: 0 0 1em;
    color: var(--text-muted);
  }

  #screen-pricelist .price-section-card--terms {
    overflow: hidden;
  }

  #screen-pricelist .pricelist-terms-sticky-head {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: -4px -10px 14px -4px;
    padding: 12px 14px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-bright);
    color: var(--text);
  }

  #screen-pricelist .price-section-card--terms .pricelist-terms-body {
    padding-top: 0;
  }

  .price-section-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 20px 22px;
  }

  .price-section-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-family: 'Inter', Helvetica, sans-serif;
    font-weight: 700;
  font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  padding: 16px 20px;
    border-bottom: 1px solid var(--border);
  font-size: 16px;
  }
  .price-row:last-child { border-bottom: none; }
  .price-row:hover { background: var(--surface2); }

  .price-credits {
    font-family: 'Inter', Helvetica, sans-serif;
    font-weight: 700;
  font-size: 17px;
    color: var(--red);
    letter-spacing: 0.04em;
  }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .screen.active { animation: fadeUp 0.25s ease forwards; }

  /* Upload page: grouped sections & card polish */
  #screen-upload .upload-form-card {
    border-radius: 12px;
    padding: 26px var(--portal-gutter-x);
    margin-bottom: 0;
    border: 1px solid var(--border-bright);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }

  #screen-upload .upload-card-main-title {
    font-family: var(--heading-font);
    font-size: var(--heading-h2-size);
    font-weight: var(--heading-weight-strong);
    color: var(--heading-color);
    margin-bottom: 8px;
  }

  #screen-upload .upload-card-intro {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0 0 22px 0;
    max-width: 68ch;
  }

  #screen-upload .upload-subsection {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
  }

  #screen-upload .upload-subsection:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  #screen-upload h3.upload-subsection-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: 0 0 6px 0;
  }

  #screen-upload .upload-subsection-desc {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted);
    margin: 0 0 14px 0;
    max-width: 62ch;
  }

  #screen-upload .upload-subsection--file .upload-subsection-desc {
    margin-bottom: 14px;
  }

  #screen-upload .upload-file-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
  }

  #screen-upload .upload-zone--prominent {
    border-width: 2px;
    border-style: dashed;
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.4);
    border-radius: 12px;
    padding: 44px var(--portal-gutter-x);
    background: linear-gradient(165deg, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.08) 0%, transparent 52%);
  }

  #screen-upload .upload-zone--prominent:hover,
  #screen-upload .upload-zone--prominent.upload-zone.drag {
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.65);
    box-shadow: 0 0 0 1px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
    background: linear-gradient(165deg, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12) 0%, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.02) 100%);
  }

  #screen-upload .upload-zone-title {
    font-family: var(--heading-font);
    font-size: var(--heading-h3-size);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px 0;
  }

  #screen-upload .upload-zone-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
  }

  #screen-upload .upload-zone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
  }

  #screen-upload .upload-notes-textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--surface2);
    border: 1px solid var(--border-bright);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-family: var(--heading-font);
    outline: none;
    resize: vertical;
    min-height: 88px;
    line-height: 1.45;
    transition: border-color 0.15s;
  }

  #screen-upload .upload-notes-textarea:focus {
    border-color: var(--red);
  }

  #screen-upload .form-footer {
    margin-top: 20px;
    padding: 20px var(--portal-gutter-x) 0;
    border-top: 1px solid var(--border);
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    box-sizing: border-box;
  }

  #screen-upload .form-footer:has(.btn-ghost) {
    justify-content: space-between;
  }

  #screen-upload #upload-step2 .upload-form-card,
  #screen-upload #upload-step3 .upload-form-card {
    border-radius: 12px;
    padding: 26px var(--portal-gutter-x);
    border: 1px solid var(--border-bright);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }

  #screen-upload .modification-section {
    padding: 0;
  }

  #screen-upload .modification-section .field + .field {
    margin-top: 22px;
  }

  /* Step 3 — review layout (matches card padding rhythm) */
  #screen-upload .upload-review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 28px;
    align-items: start;
  }

  @media (max-width: 720px) {
    #screen-upload .upload-review-grid {
      grid-template-columns: 1fr;
    }
  }

  #screen-upload .upload-review-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 12px;
  }

  #screen-upload .upload-review-vehicle-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
  }

  #screen-upload .upload-review-line {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted);
  }

  #screen-upload .upload-review-line--spaced {
    margin-top: 8px;
  }

  #screen-upload .upload-review-line--tight {
    margin-top: 6px;
  }

  #screen-upload .upload-review-mods {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  #screen-upload .upload-review-cost-row {
    margin-top: 22px;
    padding: 16px 20px;
    background: var(--surface2);
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  #screen-upload .upload-review-cost-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
  }

  #screen-upload .upload-review-cost-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 28px;
    line-height: 1.1;
    color: var(--text);
  }

  #screen-upload .upload-review-cost-unit {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 700;
  }

  #screen-upload .upload-review-cost-right {
    text-align: right;
  }

  #screen-upload #ovr-warning {
    margin-top: 16px;
    margin-bottom: 0;
  }

  #screen-upload .mod-chip {
    border-radius: 6px;
    padding: 9px 16px;
  }

  /* ── VEHICLE PARAMETERS GRID ── */
  .vp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px 20px;
    margin-bottom: 8px;
  }

  /* ── VEHICLE SEARCH COMPONENT ── */
  .vs-dropdown-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 0;
  }

  .dash-vs-panel .vs-dropdown-row + .vs-dropdown-row {
    margin-top: 16px;
  }

  /* Upload: row1 Type / Make / Model — row2 Year / Fuel / Engine (same flow as dashboard search) */
  #screen-upload .upload-vs-panel .vs-dropdown-row.upload-catalog-row-top,
  #screen-upload .upload-vs-panel .vs-dropdown-row.upload-catalog-row-bottom {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    /* Match #upload-step1 .vp-grid (18px row / 20px column) */
    gap: 18px 20px;
    align-items: stretch;
    margin-bottom: 0;
  }

  #screen-upload .upload-vs-panel .upload-catalog-row-top .vs-select-wrap,
  #screen-upload .upload-vs-panel .upload-catalog-row-bottom .vs-select-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  #screen-upload .upload-vs-panel .vs-dropdown-row.upload-catalog-row-bottom {
    margin-top: 18px; /* match .vp-grid row gap between control rows */
  }

  #screen-upload .upload-catalog-wrap .vs-type-custom {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  @media (max-width: 700px) {
    #screen-upload .upload-vs-panel .vs-dropdown-row.upload-catalog-row-top,
    #screen-upload .upload-vs-panel .vs-dropdown-row.upload-catalog-row-bottom {
      grid-template-columns: 1fr;
    }
  }

  .upload-vs-panel .vs-dropdown-row {
    gap: 18px 20px;
  }

  /* Upload page: match custom vehicle dropdowns to .field input / .field select */
  #screen-upload .upload-catalog-wrap {
    margin-bottom: 0;
  }

  /* Same box model as .vp-grid .field select: 42px × full width, Barlow */
  #screen-upload .upload-catalog-wrap .vs-select-wrap .vs-type-toggle {
    box-sizing: border-box;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    padding: 0 38px 0 14px;
    background: var(--surface2) !important;
    background-color: var(--surface2) !important;
    border: 1px solid var(--border-bright) !important;
    border-left-width: 1px !important;
    border-left-color: var(--border-bright) !important;
    border-radius: 5px;
    color: var(--text) !important;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.15s;
    box-shadow: none !important;
  }

  #screen-upload .upload-catalog-wrap .vs-type-current {
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  #screen-upload .upload-catalog-wrap .vs-type-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  #screen-upload .upload-catalog-wrap .vs-type-label {
    font-family: 'Barlow', sans-serif;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #screen-upload .upload-catalog-wrap .vs-select-wrap .vs-type-toggle:hover {
    border-color: var(--border-bright);
  }

  #screen-upload .upload-catalog-wrap .vs-select-wrap .vs-type-toggle:focus,
  #screen-upload .upload-catalog-wrap .vs-select-wrap .vs-type-toggle:focus-visible {
    border: 1px solid var(--red) !important;
    border-left: 1px solid var(--red) !important;
    box-shadow: none !important;
    outline: none;
  }

  #screen-upload .upload-catalog-wrap .vs-type-arrow {
    color: var(--text-dim);
    text-shadow: none;
  }

  #screen-upload .upload-catalog-wrap .vs-type-menu {
    background: var(--surface2);
    border: 1px solid var(--border-bright);
    border-radius: 5px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    font-family: 'Barlow', sans-serif;
  }

  #screen-upload .upload-catalog-wrap .vs-type-menu::-webkit-scrollbar-track {
    background: var(--surface2);
  }

  #screen-upload .upload-catalog-wrap .vs-type-option {
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
  }

  #screen-upload .upload-catalog-wrap .vs-type-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
  }

  #screen-upload .upload-catalog-wrap .vs-type-option.selected {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
  }

  #screen-upload .field input.vp-kw-readonly {
    opacity: 1;
    cursor: default;
    color: var(--text-muted);
  }

  #screen-upload #upload-step1 > .form-card .vp-grid {
    gap: 18px 20px;
  }

  #screen-upload .vp-grid .field input:not([type="file"]):not([type="checkbox"]),
  #screen-upload .vp-grid .field select {
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    padding: 11px 14px;
    background: var(--surface2);
    border: 1px solid var(--border-bright);
    border-radius: 5px;
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.15s;
  }

  #screen-upload .vp-grid .field input:focus,
  #screen-upload .vp-grid .field select:focus {
    outline: none;
    border-color: var(--red);
  }

  #screen-upload .vp-grid .field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
  }

  /* Upload catalog row: same label band as other .field rows (blank &nbsp; label) */
  #screen-upload .upload-catalog-wrap .field.upload-catalog-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    min-height: 14px;
  }

  .vs-select-wrap {
    position: relative;
  }

  .vs-select {
    width: 100%;
    padding: 12px 38px 12px 16px;
    background-color: #141A22 !important;
    color: #ffffff !important;
    border: 1px solid rgba(41,121,255,0.15);
    border-left: 3px solid transparent;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Inter', Helvetica, sans-serif;
    font-weight: 500;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .vs-select option {
    background-color: #141A22;
    color: #ffffff;
    padding: 10px;
  }

  .vs-select::-webkit-scrollbar { width: 10px; }
  .vs-select::-webkit-scrollbar-track { background: #050910; }
  .vs-select::-webkit-scrollbar-thumb {
    background: #22c1ff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(34,193,255,0.9);
  }

  .vs-select:focus {
    border-left: 3px solid var(--blue) !important;
    box-shadow: inset 10px 0 20px rgba(41,121,255,0.08);
    outline: none;
  }

  .vs-select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  /* Hide the native select when using custom dropdown */
  .vs-select-hidden {
    display: none;
  }

  .vs-arrow {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blue);
    font-size: 10px;
    pointer-events: none;
    text-shadow: 0 0 8px rgba(41,121,255,0.6);
  }

  /* Custom vehicle type dropdown with icons */
  .vs-type-custom {
    position: relative;
    width: 100%;
  }

  .vs-type-toggle {
    width: 100%;
    height: 42px;
    padding: 9px 38px 9px 16px;
    border-radius: 5px;
    border: 1px solid rgba(41,121,255,0.15);
    background-color: #141A22;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', Helvetica, sans-serif; /* match other dropdowns */
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* align content to the left like other selects */
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .vs-type-toggle:hover {
    border-color: rgba(41,121,255,0.4);
  }

  .vs-type-toggle:focus-visible {
    border-left: 3px solid var(--blue);
    box-shadow: inset 10px 0 20px rgba(41,121,255,0.08);
    outline: none;
  }

  .vs-type-current {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .vs-type-icon {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .vs-type-label {
    font-size: 14px;      /* match other selects */
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    font-family: 'Inter', Helvetica, sans-serif; /* ensure same font face */
  }

  .vs-type-arrow {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blue);
    font-size: 10px;
    text-shadow: 0 0 8px rgba(41,121,255,0.6);
    pointer-events: none;
  }

  .vs-type-menu {
    position: absolute;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #050a12;
    border-radius: 8px;
    border: 1px solid rgba(41,121,255,0.25);
    box-shadow: 0 14px 32px rgba(0,0,0,0.85);
    max-height: 320px;      /* shared dropdown height for all custom dropdowns */
    overflow-y: auto;
    padding: 6px 0;
    z-index: 40;
    display: none;
  }

  .vs-type-menu.open {
    display: block;
  }

  /* Scrollbar for ALL custom dropdowns (Type, Make, Model, Year, Fuel, Engine) */
  .vs-type-menu::-webkit-scrollbar {
    width: 10px;             /* slightly wider so it’s clearly visible */
  }
  .vs-type-menu::-webkit-scrollbar-track {
    background: #050910;
  }
  .vs-type-menu::-webkit-scrollbar-thumb {
    background: #22c1ff;     /* brighter blue for contrast */
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(34,193,255,0.9);
  }

  /* When "Select Make" is shown, collapse icon space so label aligns left like other dropdowns */
  #dash-make-custom.vs-make-placeholder .vs-type-current,
  #upload-make-custom.vs-make-placeholder .vs-type-current {
    gap: 0;
  }
  #dash-make-custom.vs-make-placeholder .vs-type-icon,
  #upload-make-custom.vs-make-placeholder .vs-type-icon {
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
  }

  .vs-type-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    font-size: 14px;      /* match other dropdown items */
    font-family: 'Inter', Helvetica, sans-serif; /* match option font */
    color: #d7dde6;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .vs-type-option-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .vs-type-option-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .vs-type-option:hover {
    background: rgba(59,130,246,0.12);
    color: #ffffff;
  }

  .vs-type-option.selected {
    background: rgba(59,130,246,0.2);
    color: #ffffff;
  }

  /* Make vehicle TYPE icons slightly larger than make icons */
  #dash-type-custom .vs-type-icon {
    width: 32px;
    height: 32px;
  }

  #dash-type-custom .vs-type-option-icon {
    width: 30px;
    height: 30px;
  }

  /* Vehicle type dropdown only (not make/model/year): ALL CAPS */
  #dash-type-custom .vs-type-label,
  #dash-type-custom .vs-type-option-label,
  #upload-type-custom .vs-type-label,
  #upload-type-custom .vs-type-option-label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  /* Year dropdown: band left, generation in a fixed column (centered) so open ranges align with YYYY>YYYY */
  #dash-year-custom .vs-type-current,
  #upload-year-custom .vs-type-current {
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(100% - 8px);
  }
  .vs-year-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    width: 100%;
    min-width: 0;
  }
  .vs-year-toggle-band {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vs-year-toggle-gen:empty {
    display: none;
  }
  .vs-year-toggle-gen {
    flex: 0 0 5.25em;
    text-align: center;
    white-space: nowrap;
  }
  .vs-type-option.vs-type-option--year {
    justify-content: space-between;
  }
  .vs-year-option-row {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    width: 100%;
  }
  .vs-year-option-band {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vs-year-option-gen {
    flex: 0 0 5.25em;
    text-align: center;
    white-space: nowrap;
  }
  .vs-year-option-gen:empty {
    display: none;
  }

  /* Results panel */
  .vs-results {
    margin-top: 16px;
    padding: 20px;
    background: #0d1219;
    border: 1px solid rgba(41,121,255,0.15);
    border-radius: 6px;
    animation: fadeUp 0.3s ease forwards;
  }

  .vs-stage-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }
  .vs-stage-row-right {
    margin-bottom: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
  }

  /* One surface: vehicle row + performance table, then dyno sits below this block */
  .vs-results-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 16px;
    width: 100%;
    padding: 18px 20px;
    border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.16);
    border-radius: 14px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #070b12;
    background-image:
      repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.018) 0 1px,
        transparent 1px 28px
      ),
      repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.014) 0 1px,
        transparent 1px 28px
      ),
      radial-gradient(ellipse 90% 55% at 10% 0%, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.07), transparent 52%),
      radial-gradient(ellipse 60% 45% at 100% 100%, rgba(41, 121, 255, 0.05), transparent 50%),
      linear-gradient(168deg, rgba(10, 16, 26, 0.99), rgba(5, 9, 16, 1));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.045),
      0 14px 36px rgba(0, 0, 0, 0.28);
  }
  .vs-results-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
    opacity: 0.045;
    pointer-events: none;
    mix-blend-mode: overlay;
  }
  .vs-results-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.4), transparent);
    pointer-events: none;
    opacity: 0.85;
  }
  .vs-result-vehicle-card {
    display: flex;
    align-items: stretch;
    gap: 18px;
    min-width: 0;
    max-width: none;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
    z-index: 1;
  }
  .vs-result-controls {
    margin-left: auto;
    flex: 0 0 auto;
    min-width: 360px;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
  }
  .vs-result-vehicle-image-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    background: radial-gradient(ellipse 70% 70% at 50% 80%, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06), transparent 65%);
    border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.14);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
  .vs-result-vehicle-image {
    width: 156px;
    height: 156px;
    border-radius: 8px;
    object-fit: contain;
    object-position: center;
    background: transparent;
    border: 0;
    display: block;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
  }
  .vs-result-vehicle-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    gap: 10px;
  }
  .vs-result-vehicle-meta {
    color: var(--text);
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vs-result-vehicle-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #eef4fc;
    margin-bottom: 4px;
    line-height: 1.3;
  }
  .vs-result-vehicle-sub {
    font-size: 11px;
    color: #95a8c4;
    letter-spacing: 0.03em;
    line-height: 1.4;
  }

  /* Dashboard vehicle image: shine sweep */
  #dash-vs-results .vs-result-vehicle-image-wrap {
    position: relative;
    overflow: hidden;
  }
  @keyframes vsVehicleImageShine {
    0% {
      transform: translateX(-130%) skewX(-14deg);
      opacity: 0;
    }
    12% {
      opacity: 0.65;
    }
    100% {
      transform: translateX(130%) skewX(-14deg);
      opacity: 0;
    }
  }
  #dash-vs-results .vs-result-vehicle-image-wrap.vs-result-vehicle-shine::after {
    content: '';
    position: absolute;
    inset: -20% -40%;
    background: linear-gradient(
      105deg,
      transparent 0%,
      rgba(255, 255, 255, 0.04) 38%,
      rgba(255, 255, 255, 0.28) 50%,
      rgba(0, 214, 255, 0.12) 52%,
      rgba(255, 255, 255, 0.04) 62%,
      transparent 100%
    );
    pointer-events: none;
    mix-blend-mode: screen;
    animation: vsVehicleImageShine 1.05s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
  }

  .dash-tw-caret {
    position: relative;
  }
  .dash-tw-caret::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 0.92em;
    margin-left: 2px;
    vertical-align: -0.1em;
    background: rgba(0, 214, 255, 0.88);
    box-shadow: 0 0 10px rgba(0, 214, 255, 0.45);
    animation: dashTwCaretBlink 0.85s step-end infinite;
  }
  @keyframes dashTwCaretBlink {
    50% {
      opacity: 0;
    }
  }

  /* Align ECU/Gearbox block with POWER/TORQUE left column */
  .vs-results-ecu {
    display: flex;
    gap: 22px;
    align-items: center;
    padding-left: 4px; /* matches table cell horizontal padding */
  }
  .vs-results-ecu-item {
    min-width: 0;
  }
  .vs-results-ecu--in-card {
    gap: 0;
    padding-left: 0;
    flex-wrap: wrap;
    row-gap: 10px;
    align-items: flex-start;
  }
  .vs-results-ecu--in-card .vs-results-ecu-item {
    min-width: 0;
  }
  .vs-results-ecu--in-card .vs-results-ecu-item + .vs-results-ecu-item {
    padding-left: 18px;
    margin-left: 18px;
    border-left: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
  }
  .vs-results-ecu--in-card .dash-extra-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.65);
    display: inline-block;
    min-height: 1.1em;
  }
  .vs-results-ecu--in-card .dash-extra-value {
    font-size: 11px;
    font-weight: 500;
    color: #dce6f5;
    letter-spacing: 0.02em;
    margin-top: 3px;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
    /* Override global .dash-extra-value nowrap/ellipsis — wrap full ECU/gearbox text */
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    display: block;
    max-width: 100%;
  }
  /* Long ECU strings must wrap so stage buttons stay aligned (dashboard card) */
  #dash-vs-results #dash-ecu-top-wrap {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(100%, 17rem);
  }
  #dash-vs-results #dash-ecu-top {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .vs-results-ecu .dash-extra-label {
    font-size: 10px;
  }
  .vs-results-ecu .dash-extra-value {
    font-size: 12px;
  }

  /* ECU variant chips in the top bar (middle/yellow area) */
  .vs-results-variants {
    grid-area: chips;
    flex: 1 1 100%;
    display: flex;
    justify-content: flex-start;
    min-width: 0;
    padding-top: 0;
  }
  .vs-results-variants--in-card {
    /* Do not grow inside column flex (.vs-result-controls); flex:1 was stretching chips full height */
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    align-self: flex-end;
    justify-content: flex-end;
    padding-top: 0;
  }
  .vs-stage-row-right {
    grid-area: actions;
    margin-left: auto;
    align-self: center;
    margin-bottom: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 10px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
  }
  .vs-stage-row-in-card {
    margin-left: 0;
    justify-content: flex-end;
    align-items: center;
    width: auto;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    border-radius: 0;
    background: transparent;
    border: 1px solid rgba(0, 181, 218, 0.38);
    box-shadow: none;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 14px 100%);
  }
  .vs-stage-row-in-card.vs-stage-row--enter > .vs-stage-btn {
    animation: vsStageBtnSlideFromRight 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .vs-stage-row-in-card.vs-stage-row--enter > .vs-stage-btn:nth-child(1) {
    animation-delay: 0s;
  }
  .vs-stage-row-in-card.vs-stage-row--enter > .vs-stage-btn:nth-child(2) {
    animation-delay: 0s;
  }
  .vs-stage-row-in-card.vs-stage-row--enter > .vs-stage-btn:nth-child(3) {
    animation-delay: 0s;
  }
  .vs-stage-row-in-card.vs-stage-row--enter > .vs-stage-btn:nth-child(4) {
    animation-delay: 0s;
  }

  /* Dashboard: stage + upload fade (no stagger delay) */
  @keyframes vsStageBtnFadeInDash {
    from {
      opacity: 0;
      transform: translateY(12px);
      filter: blur(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }
  }
  #dash-vs-results .vs-stage-row-in-card.vs-stage-row--enter > .vs-stage-btn {
    animation: vsStageBtnFadeInDash 0.82s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  #dash-vs-results .vs-stage-row-in-card.vs-stage-row--enter > .vs-stage-btn:nth-child(1) {
    animation-delay: 0.5s;
  }
  #dash-vs-results .vs-stage-row-in-card.vs-stage-row--enter > .vs-stage-btn:nth-child(2) {
    animation-delay: 0.54s;
  }
  #dash-vs-results .vs-stage-row-in-card.vs-stage-row--enter > .vs-stage-btn:nth-child(3) {
    animation-delay: 0.58s;
  }
  #dash-vs-results .vs-stage-row-in-card.vs-stage-row--enter > .vs-stage-btn:nth-child(4) {
    animation-delay: 0.62s;
  }

  .vs-stage-row-in-card > .vs-stage-btn:not(.vs-stage-btn--upload-inline) {
    position: relative;
    border: 1px solid rgba(0, 181, 218, 0.28);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    min-height: 32px;
    padding: 7px 16px 7px 18px;
    color: #9ec8d8;
    letter-spacing: 0.1em;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 100%, 9px 100%);
    transition:
      border-color 0.18s ease,
      color 0.18s ease,
      background 0.18s ease,
      box-shadow 0.18s ease,
      transform 0.18s ease;
  }
  .vs-stage-row-in-card > .vs-stage-btn:not(.vs-stage-btn--upload-inline):hover {
    transform: translateY(-1px);
    background: rgba(0, 181, 218, 0.12);
    border-color: rgba(0, 181, 218, 0.5);
    color: #dff6ff;
    box-shadow:
      0 0 14px rgba(0, 181, 218, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .vs-stage-row-in-card > .vs-stage-btn:not(.vs-stage-btn--upload-inline).active {
    background: #00b5da;
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    box-shadow:
      0 0 18px rgba(0, 181, 218, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  .vs-stage-row-in-card > .vs-stage-btn--upload-inline {
    margin-left: 4px;
    border: 1px solid rgba(0, 181, 218, 0.3);
    border-left: 1px solid rgba(0, 181, 218, 0.22);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.22);
    color: #b8eef8;
    min-height: 32px;
    padding: 7px 18px 7px 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    letter-spacing: 0.08em;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 100%, 9px 100%);
    transition:
      border-color 0.18s ease,
      color 0.18s ease,
      background 0.18s ease,
      box-shadow 0.18s ease,
      transform 0.18s ease;
  }
  .vs-stage-row-in-card > .vs-stage-btn--upload-inline:hover {
    transform: translateY(-1px);
    background: rgba(0, 181, 218, 0.14);
    color: #f0fdff;
    border-color: rgba(0, 181, 218, 0.5);
    box-shadow:
      0 0 16px rgba(0, 181, 218, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  button.vs-stage-btn--upload-inline {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
  }
  /* Compact ECU variant pills in results card (same style as global chips, smaller) */
  .vs-results-variants--in-card .ecu-variant-chips {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 2px;
    min-height: 0;
  }
  .vs-results-variants--in-card .ecu-variant-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 11px;
    min-height: 0;
    height: auto;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
    color: #9eb0cc;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  }
  .vs-results-variants--in-card .ecu-variant-chip.ecu-variant-active {
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.45);
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
    color: #fff;
  }
  .vs-results-variants .ecu-variant-chips {
    margin-top: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding: 2px 0;
  }
  .vs-results-variants .ecu-variant-chips::-webkit-scrollbar {
    height: 8px;
  }
  .vs-results-variants .ecu-variant-chips::-webkit-scrollbar-track {
    background: #050910;
  }
  .vs-results-variants .ecu-variant-chips::-webkit-scrollbar-thumb {
    background: #22c1ff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(34,193,255,0.9);
  }
  @media (max-width: 1180px) {
    .vs-result-vehicle-card {
      flex-direction: column;
      min-width: 280px;
      max-width: 100%;
    }
    .vs-result-controls {
      min-width: 0;
      max-width: 100%;
      width: 100%;
      align-items: flex-start;
    }
    .vs-stage-row-right {
      margin-left: 0;
      justify-content: flex-start;
      flex-wrap: wrap;
    }
    .vs-result-vehicle-image-wrap {
      align-self: center;
    }
    .vs-result-vehicle-image {
      width: 128px;
      height: 128px;
    }
    .vs-stage-row-in-card {
      justify-content: center;
    }
  }

  /* ECU options list (dashboard results, below dyno chart) */
  .dash-ecu-options-shell {
    margin-top: 22px;
    width: 100%;
  }
  .dash-ecu-options-inner {
    padding: 14px 16px 16px;
    border-radius: 10px;
    border: 1px solid rgba(41, 121, 255, 0.14);
    background: linear-gradient(165deg, rgba(10, 16, 28, 0.55), rgba(8, 13, 22, 0.42));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }
  .dash-ecu-options-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 6px;
  }
  .dash-ecu-options-title {
    margin: 0;
    font-family: 'Inter', Helvetica, sans-serif;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c8d7ee;
  }
  .dash-ecu-options-head-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35), transparent);
    border-radius: 1px;
  }
  .dash-ecu-options-sub {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: #8a9bb4;
    letter-spacing: 0.02em;
  }
  .dash-ecu-options-sub-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 12px;
  }
  .dash-ecu-options-sub-row .dash-ecu-options-sub {
    flex: 1 1 220px;
    min-width: 0;
  }
  .dash-ecu-options-variant-chips {
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin: -4px 0 0;
    padding: 0;
  }
  .dash-ecu-options-variant-chips .ecu-variant-chip {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.03em;
    border-radius: 999px;
    min-height: 36px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .dash-ecu-options-variant-chips button.ecu-variant-chip {
    font-size: 13px;
    font-weight: 600;
  }
  .dash-ecu-options-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    column-gap: clamp(14px, 3vw, 28px);
  }
  @media (max-width: 720px) {
    .dash-ecu-options-list {
      grid-template-columns: 1fr;
    }
  }
  .dash-ecu-options-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    min-height: 38px;
    border-radius: 8px;
    background: rgba(4, 8, 16, 0.45);
    border: 1px solid rgba(41, 121, 255, 0.09);
    transition: border-color 0.15s ease, background 0.15s ease;
  }
  .dash-ecu-options-item:hover {
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.2);
    background: rgba(6, 12, 22, 0.55);
  }
  .dash-ecu-options-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #aebccf;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
  }
  .dash-ecu-options-tick {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: transparent;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(41, 121, 255, 0.12);
  }
  .dash-ecu-options-tick.dash-ecu-options-tick--on {
    color: #22d3a0;
    background: rgba(34, 211, 160, 0.12);
    border-color: rgba(34, 211, 160, 0.45);
    box-shadow: 0 0 12px rgba(34, 211, 160, 0.15);
  }

  .vs-stage-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(41,121,255,0.22);
    background: linear-gradient(180deg, rgba(18,27,42,0.7), rgba(12,19,31,0.72));
    color: #9fb2cd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    font-family: 'Inter', Helvetica, sans-serif;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
  .vs-stage-btn:hover {
    border-color: rgba(59,130,246,0.45);
    color: #d8e9ff;
    background: linear-gradient(180deg, rgba(20,31,49,0.85), rgba(14,23,36,0.85));
    box-shadow: 0 0 0 1px rgba(59,130,246,0.1) inset;
    transform: translateY(-1px);
  }
  .vs-stage-btn.active {
    background: linear-gradient(180deg, rgba(59,130,246,0.24), rgba(0,142,176,0.2));
    border-color: rgba(59,130,246,0.72);
    color: #fff;
    box-shadow: 0 0 14px rgba(59,130,246,0.26), inset 0 1px 0 rgba(255,255,255,0.1);
  }

  .vs-stats-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-top: 4px;
    border-top: 1px solid rgba(41,121,255,0.12);
  }
  /* Performance table only: same parent texture shows through; tiled logo watermark */
  .vs-stats-table-bg {
    position: relative;
    z-index: 1;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.14);
  }
  .vs-stats-table-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url('https://cdn.shopify.com/s/files/1/0947/8868/2073/files/24tuning_logo_svg_blue_whiteArtboard_1.svg?v=1769458675');
    background-repeat: no-repeat;
    background-position: center;
    background-size: min(92%, 520px) auto;
    opacity: 0.05;
  }
  .vs-stats-table--in-results-top {
    position: relative;
    z-index: 1;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    border-top: none;
  }
  .vs-stats-table-bg .vs-stats-table {
    margin-top: 0;
  }

  .vs-stats-table th, .vs-stats-table td {
    padding: 18px 4px; /* more vertical space in POWER/TORQUE rows */
    text-align: center;
    border-bottom: 1px solid rgba(41,121,255,0.1);
    vertical-align: middle;
    font-size: 12px;
  }

  .vsc-label {
    width: 18%;
    text-align: left !important;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .vsc-stock { width: 22%; }
  .vsc-arrow { width: 8%; color: #00d4ff; text-shadow: 0 0 10px #00d4ff; font-size: 16px; }
  .vsc-tuned { width: 26%; }
  .vsc-gain  { width: 26%; }

  .vs-stats-table th {
    color: var(--text-muted); /* same tone as POWER/TORQUE labels */
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .vsc-tuned {
    color: var(--text-muted) !important;
    text-shadow: none;
    font-weight: 700 !important;
  }

  .vsc-val-white {
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
    font-family: 'Inter', Helvetica, sans-serif;
  }
  /* Tuned figures now white instead of blue */
  .vsc-val-blue  {
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
    font-family: 'Inter', Helvetica, sans-serif;
    text-shadow: none;
  }
  /* Gain figures stay green */
  .vsc-val-gain  {
    color: #00ff88;
    font-weight: 700;
    font-size: 17px;
    font-family: 'Inter', Helvetica, sans-serif;
    text-shadow: 0 0 8px rgba(0,255,136,0.35);
  }

  /* Force stat figure sizes in both dashboard and upload sections */
  #dash-stockHP, #dash-tunedHP, #vs-stockHP, #vs-tunedHP {
    font-size: 20px !important;
    font-weight: 700;
  }
  #dash-stockNM, #dash-tunedNM, #vs-stockNM, #vs-tunedNM {
    font-size: 20px !important;
    font-weight: 700;
  }
  #dash-gainHP, #dash-gainNM, #vs-gainHP, #vs-gainNM {
    font-size: 17px !important;
    font-weight: 700;
  }

  .vs-results.animate .vsc-val-white,
  .vs-results.animate .vsc-val-blue,
  .vs-results.animate .vsc-val-gain {
    animation: digitalReveal 0.5s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
  }
  /* POWER row only: rise from below + HUD-style readout */
  .vs-results.animate .vs-stats-table--in-results-top tbody tr:nth-child(1) td.vsc-val-white {
    animation: techStatRiseHpStock 0.88s cubic-bezier(0.16, 0.82, 0.2, 1) forwards;
    animation-delay: 0s;
  }
  .vs-results.animate .vs-stats-table--in-results-top tbody tr:nth-child(1) td.vsc-val-blue {
    animation: techStatRiseHpTuned 0.88s cubic-bezier(0.16, 0.82, 0.2, 1) forwards;
    animation-delay: 0s;
  }
  .vs-results.animate .vs-stats-table--in-results-top tbody tr:nth-child(1) td.vsc-val-gain {
    animation: techStatRiseHpGain 0.88s cubic-bezier(0.16, 0.82, 0.2, 1) forwards;
    animation-delay: 0s;
  }

  /* Dashboard POWER/TORQUE: stock + tuned columns — fade in immediately */
  @keyframes dashTableStatFade {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  #dash-vs-results.animate .vs-stats-table--in-results-top tbody tr:nth-child(1) td.vsc-val-white,
  #dash-vs-results.animate .vs-stats-table--in-results-top tbody tr:nth-child(1) td.vsc-val-blue,
  #dash-vs-results.animate .vs-stats-table--in-results-top tbody tr:nth-child(1) td.vsc-val-gain,
  #dash-vs-results.animate .vs-stats-table--in-results-top tbody tr:nth-child(2) td.vsc-val-white,
  #dash-vs-results.animate .vs-stats-table--in-results-top tbody tr:nth-child(2) td.vsc-val-blue,
  #dash-vs-results.animate .vs-stats-table--in-results-top tbody tr:nth-child(2) td.vsc-val-gain {
    animation: dashTableStatFade 0.5s ease 0s 1 normal both;
  }

  .dash-extra-head {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(41,121,255,0.25);
    display: grid;
    grid-template-columns: 1fr 1fr; /* ECU in left half (yellow), Gearbox in right half (blue) */
    column-gap: 40px;
    align-items: flex-start;
  }
  .dash-extra-head-item {
    min-width: 0;
  }
  .dash-extra-head-ecu,
  .dash-extra-head-gearbox {
    text-align: left;
  }
  .dash-extra-head .dash-extra-value {
    font-size: 12px;
  }

  .ecu-variant-chips {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .ecu-variant-chips.dash-ecu-options-variant-chips {
    margin-top: 0;
  }
  .ecu-variant-chip {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(59,130,246,0.5);
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    background: rgba(59,130,246,0.05);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }
  .ecu-variant-chip.ecu-variant-active {
    color: #ffffff;
    border-color: rgba(59,130,246,0.9);
    background: rgba(59,130,246,0.18);
  }
  button.ecu-variant-chip {
    font: inherit;
    font-size: 11px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
  }

  /* Legacy ECU grid removed from dashboard; list uses .dash-ecu-options-shell */
  .dash-extra-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px 18px;
    font-size: 12px;
  }
  .dash-extra-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  .dash-extra-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 10px;
  }
  .dash-extra-value {
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .dash-extra-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    opacity: 0.9;
  }

  .dash-extra-option {
    align-items: flex-start;
    text-align: left;
  }

  .dash-extra-option .dash-extra-label {
    width: 100%;
    text-align: left;
  }

  /* ── Illustrative dyno chart (dashboard results) ── */
  .dash-dyno-wrap {
    margin-top: 28px;
    padding: 22px 22px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: linear-gradient(168deg, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06) 0%, var(--surface2) 48%, #121722 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 12px 40px rgba(0, 0, 0, 0.25);
  }
  .dash-dyno-wrap--diesel {
    border-color: rgba(240, 165, 0, 0.22);
    background: linear-gradient(165deg, rgba(240, 165, 0, 0.06) 0%, var(--surface2) 50%, var(--surface) 100%);
  }
  .dash-dyno-wrap--diesel .dash-dyno-chart {
    border-color: rgba(240, 165, 0, 0.18);
    background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(240, 165, 0, 0.08), rgba(0, 0, 0, 0.35));
  }
  .dash-dyno-wrap--diesel .dash-dyno-stage-row .dash-dyno-stage-btn {
    border-color: rgba(240, 165, 0, 0.28);
  }
  .dash-dyno-wrap--diesel .dash-dyno-stage-row .dash-dyno-stage-btn:hover {
    border-color: rgba(240, 165, 0, 0.55);
    background: rgba(240, 165, 0, 0.08);
  }
  .dash-dyno-wrap--diesel .dash-dyno-stage-row .dash-dyno-stage-btn.active {
    background: linear-gradient(135deg, rgba(240, 165, 0, 0.4), rgba(240, 165, 0, 0.12));
    border-color: rgba(240, 165, 0, 0.7);
    box-shadow: 0 0 20px rgba(240, 165, 0, 0.18);
  }
  .dash-dyno-wrap--petrol {
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.2);
  }
  .dash-dyno-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 6px;
    padding-top: 10px;
    flex-wrap: nowrap;
  }
  .dash-dyno-title {
    flex: 1;
    min-width: 0;
    font-family: 'Inter', Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.35;
  }
  .dash-dyno-head-logo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    margin-right: 28px;
    pointer-events: none;
  }
  .dash-dyno-head-logo {
    display: block;
    width: auto;
    height: 36px;
    max-width: min(200px, 48vw);
    object-fit: contain;
    object-position: center right;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
    opacity: 0.88;
  }
  .dash-dyno-sub-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin: 0 0 12px;
  }
  .dash-dyno-sub {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
    letter-spacing: 0.02em;
  }
  .dash-dyno-inline-logo {
    flex-shrink: 0;
    height: 22px;
    width: auto;
    max-width: min(38%, 150px);
    object-fit: contain;
    object-position: right center;
    margin-right: 12px;
    pointer-events: none;
    opacity: 0.8;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.32));
  }
  .dash-dyno-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 14px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.35;
  }
  .dash-dyno-leg-item {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
  }
  .dash-dyno-leg-swatch {
    display: inline-block;
    width: 34px;
    min-height: 2px;
    border-top-width: 2px;
    border-top-style: solid;
    flex-shrink: 0;
    align-self: center;
  }
  .dash-dyno-leg-swatch--dotted {
    border-top-style: dashed;
    border-top-width: 2px;
    border-image: none;
  }
  .dash-dyno-leg-swatch--stock {
    border-top-color: #4d9fff;
  }
  .dash-dyno-leg-swatch--tuned {
    border-top-color: #22d3a0;
  }
  .dash-dyno-stage-row {
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .dash-dyno-stage-row .dash-dyno-stage-btn {
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.22);
    background: rgba(0, 0, 0, 0.2);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  }
  .dash-dyno-stage-row .dash-dyno-stage-btn:hover {
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.55);
    color: var(--text);
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06);
  }
  .dash-dyno-stage-row .dash-dyno-stage-btn.active {
    background: linear-gradient(135deg, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35), rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12));
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.65);
    color: #fff;
    box-shadow: 0 0 20px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.2);
  }
  .dash-dyno-chart {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 10px;
    background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.07), rgba(0, 0, 0, 0.35));
    border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
    padding: 10px 8px 8px;
  }
  .dash-dyno-svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 300px;
  }
  .dash-dyno-note {
    margin: 10px 0 0;
    font-size: 10px;
    color: var(--text-dim);
    line-height: 1.35;
    text-align: center;
  }

  /* ── My Files list (table) ── */
  .myfiles-page-size {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--text-muted);
  }
  .myfiles-page-size select {
    background: var(--surface2);
    border: 1px solid var(--border-bright);
    border-radius: 6px;
    color: var(--text);
    padding: 10px 14px;
    font-family: inherit;
    font-size: 15px;
  }
  .myfiles-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
  }
  .myfiles-table thead th {
    text-align: left;
    padding: 15px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
  }
  .myfiles-th-num { width: 56px; }
  .myfiles-th-action { width: 100px; text-align: right; }
  .myfiles-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.12s ease;
    cursor: pointer;
  }
  .myfiles-table tbody tr:hover {
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06);
  }
  .myfiles-table td {
    padding: 18px 16px;
    vertical-align: middle;
  }
  .myfiles-empty {
    text-align: center;
    padding: 28px !important;
    color: var(--text-muted);
  }
  .myfiles-vehicle-cell {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .myfiles-make-ico {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--surface2);
    object-fit: contain;
  }
  .myfiles-vehicle-text strong {
    display: block;
    font-weight: 700;
  }
  .myfiles-vehicle-text span {
    font-size: 14px;
    color: var(--text-muted);
  }
  .myfiles-time-pill {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 6px;
    background: var(--surface2);
    font-size: 13px;
    color: var(--text-muted);
  }
  .myfiles-time-pill.is-recent {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-weight: 600;
  }
  .myfiles-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }
  .myfiles-status--pending { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }
  .myfiles-status--processing { background: rgba(139, 92, 246, 0.2); color: #c4b5fd; }
  .myfiles-status--done { background: rgba(45, 212, 191, 0.15); color: #5eead4; }
  .myfiles-status--rejected { background: rgba(232, 0, 15, 0.15); color: #f87171; }
  .myfiles-view-btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.45);
    background: transparent;
    color: #22d3ee;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
  }
  .myfiles-view-btn:hover {
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
  }
  .myfiles-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
  }
  .myfiles-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .myfiles-pag-btn {
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-muted);
    background: var(--surface2);
    border: 1px solid var(--border-bright);
    border-radius: 6px;
    cursor: pointer;
  }
  .myfiles-pag-btn.is-active {
    background: var(--red);
    border-color: var(--red);
    color: #0e1117;
    font-weight: 800;
  }
  .myfiles-pag-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
  }

  /* ── My Files: detail view layout ── */
  .fd-queue-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06);
    border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.15);
    font-size: 12px;
    color: var(--text-muted);
  }
  .fd-queue-strip svg {
    flex-shrink: 0;
    opacity: 0.8;
  }
  .fd-tabs-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .fd-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
  }
  .fd-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .fd-tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
  }
  .fd-tab.is-active {
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
    color: #67e8f9;
    box-shadow: inset 0 0 0 1px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.25);
  }
  .fd-tab-ic {
    display: flex;
    opacity: 0.9;
  }
  .fd-tab-panel {
    display: none;
    flex-direction: column;
    gap: 12px;
  }
  .fd-tab-panel.is-active {
    display: flex;
  }

  /* ── My Files: file detail — hero + two-column layout ── */
  .fd-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 18px;
    margin-bottom: 14px;
  }
  .fd-back-btn {
    background: var(--surface2);
    border: 1px solid var(--border-bright);
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.04em;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
  }
  .fd-back-btn:hover {
    border-color: var(--border-bright);
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.08);
    color: var(--text);
  }
  .fd-hero-titles {
    flex: 1;
    min-width: 0;
  }
  .fd-file-ref {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 4px;
  }
  .fd-status-pill-wrap {
    margin-left: auto;
    flex-shrink: 0;
  }

  .fd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 24px 28px;
    align-items: start;
  }
  .fd-main {
    min-width: 0;
  }
  @media (max-width: 1100px) {
    .fd-layout {
      grid-template-columns: 1fr;
    }
    .fd-aside {
      order: -1;
      position: static;
      max-height: none;
    }
  }

  .fd-aside {
    position: sticky;
    top: 10px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .fd-overview-card {
    padding-bottom: 18px;
  }
  .fd-ov-lead {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0 0 16px;
  }
  .fd-ov-block {
    margin-bottom: 14px;
  }
  .fd-ov-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 5px;
  }
  .fd-ov-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
  }
  .fd-ov-value.fd-ov-small {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
  }
  .fd-ov-mono {
    font-size: 11px;
    color: var(--text-muted);
    word-break: break-all;
    line-height: 1.4;
  }
  .fd-ov-note {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
  }
  .fd-ov-note strong {
    color: var(--text);
    font-weight: 600;
  }
  .fd-ov-sep {
    height: 1px;
    background: var(--border);
    margin: 16px 0 14px;
  }
  .fd-ov-subh {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: 0 0 12px;
  }
  .fd-ov-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
  }
  .fd-ov-grid2 .fd-ov-span2 {
    grid-column: 1 / -1;
  }
  .fd-mods-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .fd-tabs-wrap--file {
    gap: 16px;
  }
  .fd-tablist--file {
    position: sticky;
    top: 0;
    z-index: 5;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 8px 10px;
    scrollbar-width: thin;
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    border: 1px solid var(--border-bright);
  }
  .fd-tablist--file .fd-tab {
    flex: 0 0 auto;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    min-height: 44px;
    border-radius: 10px;
  }
  .fd-tablist--file::-webkit-scrollbar {
    height: 5px;
  }
  .fd-tablist--file::-webkit-scrollbar-thumb {
    background: var(--border-bright);
    border-radius: 4px;
  }

  .fd-ws-card {
    margin-bottom: 0;
  }
  .fd-ws-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }
  .fd-ws-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .fd-ws-dot--green {
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
  }
  .fd-ws-dot--amber {
    background: var(--amber);
    box-shadow: 0 0 8px var(--amber);
  }
  .fd-ws-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: 0.02em;
  }
  .fd-ws-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
  }
  #fd-download-panel .fd-ws-title {
    color: var(--green);
  }
  #fd-pending-panel .fd-ws-title {
    color: var(--amber);
  }
  #fd-done-awaiting-panel .fd-ws-title {
    color: var(--green);
  }
  .fd-download-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--surface2);
    border: 1px solid rgba(0, 192, 107, 0.35);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    margin-top: 4px;
    transition: border-color 0.15s, background 0.15s;
  }
  .fd-download-link:hover {
    border-color: var(--green);
    background: rgba(0, 192, 107, 0.06);
  }
  .fd-download-link-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
  }

  .fd-chat-card {
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;
  }
  .fd-chat-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }
  .fd-chat-head .fd-ws-dot {
    margin-top: 4px;
  }
  .fd-chat-head-title {
    font-size: 15px;
    font-weight: 700;
  }
  .fd-chat-head-sub {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 3px;
    line-height: 1.35;
  }
  .fd-chat-thread {
    min-height: 280px;
    max-height: min(420px, 52vh);
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .fd-chat-empty {
    text-align: center;
    color: var(--text-dim);
    font-size: 12px;
    padding: 28px 12px;
    line-height: 1.5;
  }
  .fd-chat-compose {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .fd-chat-compose input[type='text'] {
    flex: 1;
    background: var(--surface2);
    border: 1px solid var(--border-bright);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text);
    font-size: 13px;
    font-family: 'Barlow', sans-serif;
    outline: none;
  }
  .fd-chat-compose input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.15);
  }
  .fd-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--red);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .fd-chat-send:hover {
    filter: brightness(1.08);
  }

  .fd-upload-panel .fd-upload-textarea {
    width: 100%;
    box-sizing: border-box;
    background: var(--surface2);
    border: 1px solid var(--border-bright);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
    min-height: 72px;
  }
  .fd-dropzone {
    display: block;
    position: relative;
    cursor: pointer;
    border: 1px dashed rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    min-height: 140px;
  }
  .fd-dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
  }
  .fd-dropzone-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
  }
  .fd-dropzone-fname {
    font-size: 12px;
    color: #67e8f9;
  }
  .fd-upload-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
  }
  .btn-primary-soft {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  }
  .btn-primary-soft:hover {
    filter: brightness(1.08);
  }
  .fd-results-emojis {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
  }
  .fd-emoji-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-bright);
    background: var(--surface2);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: border-color 0.15s ease, transform 0.1s ease;
  }
  .fd-emoji-btn:hover { transform: scale(1.06); }
  .fd-emoji-btn.is-picked {
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
  }
  .fd-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
  }
  .fd-request-flow .field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
  }
  .fd-request-flow textarea,
  .fd-req-select {
    width: 100%;
    box-sizing: border-box;
    background: var(--surface2);
    border: 1px solid var(--border-bright);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
  }
  .fd-req-heading {
    font-family: var(--heading-font);
    font-size: var(--heading-h3-size);
    font-weight: var(--heading-weight-strong);
    color: var(--heading-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .fd-file-title {
    font-family: var(--heading-font);
    font-size: var(--heading-h2-size);
    font-weight: var(--heading-weight-strong);
    line-height: 1.2;
    color: var(--heading-color);
  }

  .fd-detail-heading {
    margin-bottom: 16px;
  }
  .fd-req-q {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.2);
    color: #22d3ee;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .fd-req-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
  }
  .fd-req-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-bright);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.15);
  }
  .fd-req-card input { margin-top: 4px; }
  .fd-req-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
  }
  .fd-req-card-body strong { color: var(--text); font-size: 13px; }
  .fd-req-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 14px;
    font-size: 13px;
    color: var(--text-muted);
  }
  .fd-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }
  .fd-switch input { accent-color: #22d3ee; }
  .fd-req-filetype {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }
  .fd-ft-card {
    border: 1px solid var(--border-bright);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.12);
  }
  .fd-ft-card input { display: none; }
  .fd-ft-card:has(input:checked) {
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.55);
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.08);
  }

  .fd-page .fd-head {
    padding: 8px 10px 0;
  }
  .fd-page .fd-back-btn {
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  }
  .fd-page .fd-back-btn:hover {
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.5);
    color: var(--text);
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.08);
  }
  .fd-page .fd-grid {
    grid-template-columns: minmax(280px, 1fr) minmax(340px, 1.2fr) minmax(260px, 0.8fr);
  }
  .fd-page .fd-card {
    border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }
  .fd-page .fd-request-card {
    position: sticky;
    top: 16px;
  }
  @media (max-width: 1220px) {
    .fd-page .fd-grid {
      grid-template-columns: 1fr;
    }
    .fd-page .fd-request-card {
      position: static;
    }
  }

  /* Styled toggle used for available ECU options */
  .ecu-toggle {
    position: relative;
    width: 26px;
    height: 14px;
    border-radius: 999px;
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.1);
    border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1px;
    box-shadow: 0 0 10px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.5);
  }

  .ecu-toggle::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c1ff;
    box-shadow: 0 0 8px rgba(34, 193, 255, 0.9);
    transform: translateX(0);
    transition: transform 0.2s ease;
  }

  .ecu-toggle-on {
    justify-content: flex-end;
  }

  .ecu-toggle-on::before {
    transform: translateX(0);
  }

  @keyframes digitalReveal {
    0%   { opacity: 0; filter: blur(4px); transform: translateY(4px); }
    100% { opacity: 1; filter: blur(0);   transform: translateY(0); }
  }

  @keyframes techStatRiseHpStock {
    0% {
      opacity: 0;
      transform: translateY(26px);
      filter: blur(10px) brightness(1.4);
      text-shadow: 0 0 24px rgba(0, 181, 218, 0.9);
    }
    42% {
      opacity: 1;
      transform: translateY(-3px);
      filter: blur(0) brightness(1.08);
      text-shadow: 0 0 16px rgba(0, 181, 218, 0.55), 0 0 2px rgba(255, 255, 255, 0.4);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0) brightness(1);
      text-shadow: none;
    }
  }

  @keyframes techStatRiseHpTuned {
    0% {
      opacity: 0;
      transform: translateY(26px);
      filter: blur(10px) brightness(1.45);
      text-shadow: 0 0 26px rgba(0, 214, 255, 0.85);
    }
    42% {
      opacity: 1;
      transform: translateY(-3px);
      filter: blur(0) brightness(1.08);
      text-shadow: 0 0 18px rgba(0, 181, 218, 0.5), 0 0 3px rgba(255, 255, 255, 0.45);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0) brightness(1);
      text-shadow: none;
    }
  }

  @keyframes techStatRiseHpGain {
    0% {
      opacity: 0;
      transform: translateY(26px);
      filter: blur(10px) brightness(1.35);
      text-shadow: 0 0 22px rgba(0, 255, 180, 0.75);
    }
    42% {
      opacity: 1;
      transform: translateY(-3px);
      filter: blur(0) brightness(1.06);
      text-shadow: 0 0 14px rgba(0, 255, 136, 0.55), 0 0 2px rgba(0, 255, 200, 0.4);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0) brightness(1);
      text-shadow: 0 0 8px rgba(0, 255, 136, 0.32);
    }
  }

  @keyframes vsStageBtnSlideFromRight {
    from {
      opacity: 0;
      transform: translateX(36px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .vs-stage-row-in-card.vs-stage-row--enter > .vs-stage-btn {
      animation: none !important;
      opacity: 1;
      transform: none;
    }
    #dash-vs-results .vs-stage-row-in-card.vs-stage-row--enter > .vs-stage-btn {
      filter: none !important;
    }
    #dash-vs-results .vs-result-vehicle-image-wrap.vs-result-vehicle-shine::after {
      animation: none !important;
      opacity: 0 !important;
    }
    .vs-results.animate .vs-stats-table--in-results-top tbody tr:nth-child(1) td.vsc-val-white,
    .vs-results.animate .vs-stats-table--in-results-top tbody tr:nth-child(1) td.vsc-val-blue,
    .vs-results.animate .vs-stats-table--in-results-top tbody tr:nth-child(1) td.vsc-val-gain {
      animation: none !important;
      opacity: 1;
      transform: none;
      filter: none;
      text-shadow: none;
    }
    #dash-vs-results.animate .vs-stats-table--in-results-top tbody tr:nth-child(1) td.vsc-val-white,
    #dash-vs-results.animate .vs-stats-table--in-results-top tbody tr:nth-child(1) td.vsc-val-blue,
    #dash-vs-results.animate .vs-stats-table--in-results-top tbody tr:nth-child(1) td.vsc-val-gain,
    #dash-vs-results.animate .vs-stats-table--in-results-top tbody tr:nth-child(2) td.vsc-val-white,
    #dash-vs-results.animate .vs-stats-table--in-results-top tbody tr:nth-child(2) td.vsc-val-blue,
    #dash-vs-results.animate .vs-stats-table--in-results-top tbody tr:nth-child(2) td.vsc-val-gain {
      animation: none !important;
      opacity: 1;
      transform: none;
      filter: none;
      text-shadow: none;
    }
    .dash-tw-caret::after {
      animation: none !important;
      opacity: 1;
    }
  }

  @media (max-width: 640px) {
    .vs-dropdown-row { grid-template-columns: 1fr; }
    .dash-vs-label {
      font-size: 20px;
      letter-spacing: 0.12em;
    }
    .dash-ecu-options-title {
      font-size: 18px;
      letter-spacing: 0.1em;
    }
    .vsc-val-white, .vsc-val-blue { font-size: 17px !important; }
    .vsc-val-gain { font-size: 15px !important; }
    .vsc-label, .vs-stats-table th { font-size: 9px !important; }
    #dash-stockHP, #dash-tunedHP, #vs-stockHP, #vs-tunedHP,
    #dash-stockNM, #dash-tunedNM, #vs-stockNM, #vs-tunedNM { font-size: 17px !important; }
    #dash-gainHP, #dash-gainNM, #vs-gainHP, #vs-gainNM { font-size: 15px !important; }
  }
  .notif-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--red);
    margin-left: auto;
  }

  /* topbar status — label + compact pill (24tuning cyan / green / amber) */
  .header-kv-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
  }

  .topbar-status {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .header-value-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px 5px 9px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: 1px solid transparent;
  }
  .header-value-pill--open {
    background: rgba(34, 211, 160, 0.12);
    border-color: rgba(34, 211, 160, 0.35);
    color: var(--green);
  }
  .header-value-pill--open .status-dot {
    background: var(--green);
    box-shadow: 0 0 8px rgba(34, 211, 160, 0.55);
  }
  .header-value-pill--closed {
    background: rgba(240, 165, 0, 0.12);
    border-color: rgba(240, 165, 0, 0.35);
    color: var(--amber);
  }
  .header-value-pill--closed .status-dot {
    background: var(--amber);
    box-shadow: none;
  }

  .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
  }
  .status-dot.open {
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
  }

  .topbar-queue {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .queue-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.1);
    border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.28);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
  }
  .queue-pill .queue-num {
    color: var(--red);
    font-weight: 800;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
  }

  .top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #1a2029;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.12s, color 0.12s, background 0.12s;
    color: var(--text);
  }
  .icon-btn:hover {
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.45);
    color: var(--text);
    background: #1e2632;
  }
  .icon-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.85;
  }

  /* ── SCHEDULE POPOVER ── */
  .schedule-popover {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    right: 24px;
    width: 260px;
    background: var(--surface);
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    padding: 14px 16px 12px;
    z-index: 200;
    display: none;
  }
  .schedule-popover.open { display:block; }
  .schedule-title {
    font-family:'Inter',Helvetica,sans-serif;
    font-weight:700;
    font-size:14px;
    margin-bottom:2px;
  }
  .schedule-sub {
    font-size:11px;
    color:var(--text-muted);
    margin-bottom:10px;
  }
  .schedule-days {
    display:flex;
    flex-direction:column;
    gap:4px;
    margin-bottom:10px;
  }
  .schedule-row {
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-size:12px;
    padding:6px 8px;
    border-radius:6px;
  }
  .schedule-row.current {
    background:rgba(255,255,255,0.04);
  }
  .schedule-left {
    display:flex;
    flex-direction:column;
    gap:2px;
  }
  .schedule-day-label {
    display:flex;
    align-items:center;
    gap:6px;
    font-weight:600;
  }
  .schedule-dot {
    width:7px;
    height:7px;
    border-radius:50%;
  }
  .schedule-dot.open { background:var(--green); }
  .schedule-dot.closed { background:#e11d48; }
  .schedule-date {
    font-size:11px;
    color:var(--text-muted);
  }
  .schedule-hours {
    font-size:12px;
    font-weight:600;
  }
  .schedule-footer {
    border-top:1px solid var(--border);
    padding-top:6px;
    font-size:11px;
    color:var(--text-muted);
    text-align:right;
  }

  /* ── USER MENU POPOVER (match support / ticket list density) ── */
  .user-menu-popover {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    right: 24px;
    width: min(300px, calc(100vw - 32px));
    background: linear-gradient(165deg, var(--surface2) 0%, var(--surface) 100%);
    border-radius: 16px;
    border: 1px solid var(--border-bright);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.58);
    padding: 16px 16px 14px;
    z-index: 210;
    display: none;
  }
  .user-menu-popover.open { display:block; }

  /* ── NOTIFICATIONS POPOVER (installer shortcuts) ── */
  .notifications-popover {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    right: 100px;
    width: 300px;
    max-height: min(420px, 80vh);
    overflow-y: auto;
    background: var(--surface);
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    padding: 14px 16px 12px;
    z-index: 205;
    display: none;
  }
  .notifications-popover.open { display: block; }
  .notifications-popover-title {
    font-family: 'Inter', Helvetica, sans-serif;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
  }
  .notifications-popover-desc {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted);
    margin: 0 0 12px 0;
  }
  .notifications-popover-primary {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(90deg, var(--red), var(--red-dim));
    color: #0e1117;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    margin-bottom: 10px;
  }
  .notifications-popover-primary:hover {
    filter: brightness(1.06);
  }
  .notifications-popover-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
  }
  .notifications-popover-link {
    background: none;
    border: none;
    text-align: left;
    color: #67e8f9;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .notifications-popover-link:hover {
    color: var(--text);
  }
  @media (max-width: 520px) {
    .notifications-popover {
      right: 12px;
      left: 12px;
      width: auto;
      max-width: none;
    }
  }

  .user-menu-header {
    margin-bottom: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
  }
  .user-menu-name {
    font-family: 'Inter', Helvetica, sans-serif;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.01em;
    color: var(--text);
    line-height: 1.25;
  }
  .user-menu-email {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
    word-break: break-word;
  }
  .user-menu-section {
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .user-menu-section:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }
  .user-menu-item {
    background: none;
    border: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.12s, color 0.12s;
  }
  .user-menu-item:hover {
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
    color: var(--text);
  }
  .user-menu-item.disabled {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: default;
  }
  .user-menu-item.disabled:hover {
    background: none;
  }
  .user-menu-item.danger {
    color: var(--blue);
    font-weight: 700;
  }
  .user-menu-item.danger:hover {
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.14);
    color: #fff;
  }

  /* ── ACCOUNT TABS ── */
  #account-tabs {
    border-bottom:1px solid var(--border);
  }
  #account-tabs .tab-link {
    background:transparent;
    border:none;
    padding:6px 10px;
    font-size:12px;
    color:var(--text-muted);
    cursor:pointer;
    border-radius:4px 4px 0 0;
    position:relative;
  }
  #account-tabs .tab-link::after {
    content:'';
    position:absolute;
    left:0; right:0; bottom:-7px;
    height:2px;
    background:transparent;
    border-radius:999px;
    transition:background 0.15s;
  }
  #account-tabs .tab-link:hover {
    color:var(--text);
  }
  #account-tabs .tab-link.active {
    color:var(--text);
    font-weight:600;
  }
  #account-tabs .tab-link.active::after {
    background:var(--red);
  }

  /* ── OPEN TICKET (support) — steps, large rows, icons ── */
  .support-ticket-screen .support-ticket-welcome {
    margin-bottom: 22px;
  }

  .support-ticket-lead {
    font-size: 16px;
    line-height: 1.55;
    max-width: 58ch;
    color: var(--text-muted);
  }

  .support-step-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
    padding: 6px;
    background: var(--surface2);
    border: 1px solid var(--border-bright);
    border-radius: 12px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .support-step-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--heading-font);
    font-size: 15px;
    font-weight: 600;
    cursor: default;
    min-height: 52px;
  }

  .support-step-tab.support-step-tab--link {
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.15s, background 0.15s;
  }

  .support-step-tab.support-step-tab--link:hover {
    color: var(--text);
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.08);
  }

  .support-step-tab.is-active {
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.25);
  }

  .support-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    background: var(--surface3);
    color: var(--text-muted);
  }

  .support-step-tab.is-active .support-step-num {
    background: var(--red);
    color: #fff;
  }

  .support-step-label {
    letter-spacing: 0.02em;
  }

  .support-step-connector {
    width: 36px;
    height: 2px;
    background: var(--border);
    flex-shrink: 0;
  }

  .support-step-connector.is-done {
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.45);
  }

  .support-ticket-panel {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: var(--surface);
    border: 1px solid var(--border-bright);
    border-radius: 14px;
    padding: 28px 28px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  }

  .support-ticket-section-title {
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 22px 0;
    letter-spacing: 0.02em;
  }

  .ticket-type-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .ticket-type-card {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    text-align: left;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 22px;
    min-height: 88px;
    cursor: pointer;
    color: var(--text);
    font-family: var(--heading-font);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  }

  .ticket-type-card:hover {
    border-color: var(--border-bright);
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.04);
  }

  .ticket-type-card:focus-visible {
    outline: 2px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.55);
    outline-offset: 3px;
  }

  .ticket-type-card.active,
  :is(#screen-howto, #screen-pricelist) .howto-tab.ticket-type-card.is-active {
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.2);
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.07);
  }

  .ticket-type-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.1);
    border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.2);
    color: var(--red);
  }

  .ticket-type-card.active .ticket-type-card-icon,
  :is(#screen-howto, #screen-pricelist) .howto-tab.ticket-type-card.is-active .ticket-type-card-icon {
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.18);
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35);
  }

  #screen-pricelist .ticket-type-card-icon .pricelist-vehicle-type-icon {
    width: auto;
    height: auto;
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
    display: block;
  }

  .ticket-type-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }

  .ticket-type-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.25;
  }

  .ticket-type-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
  }

  .support-form-card {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding: 28px 32px 32px;
    border-radius: 14px;
    border: 1px solid var(--border-bright);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  }

  .support-back-link {
    display: inline-block;
    margin-bottom: 20px;
    padding: 0;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--heading-font);
    transition: color 0.15s;
  }

  .support-back-link:hover {
    color: var(--red);
  }

  .support-selected-pill {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 26px;
    padding: 14px 18px;
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.08);
    border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.22);
    border-radius: 12px;
  }

  .support-selected-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
  }

  .support-selected-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
  }

  .support-field {
    margin-bottom: 22px;
  }

  .support-field-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
  }

  .support-optional {
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-dim);
  }

  .support-input,
  .support-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 18px;
    font-size: 16px;
    line-height: 1.45;
    background: var(--surface2);
    border: 1px solid var(--border-bright);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--heading-font);
    outline: none;
    transition: border-color 0.15s;
  }

  .support-input:focus,
  .support-textarea:focus {
    border-color: var(--red);
  }

  .support-textarea {
    min-height: 200px;
    resize: vertical;
  }

  .support-field--attach .support-field-label {
    margin-bottom: 12px;
  }

  .support-attach-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
  }

  .support-file-input {
    display: none;
  }

  .support-attach-btn {
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 8px;
  }

  .support-attach-name {
    font-size: 14px;
    color: var(--text-muted);
  }

  .support-submit-btn {
    margin-top: 8px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 10px;
  }

  .support-form-message {
    display: none;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.45;
  }

  /* ── HOW TO: inner shell (outer + panel use same flow as Open ticket) ── */
  :is(#screen-howto, #screen-pricelist).support-ticket-screen .howto-shell--support-theme {
    background: var(--surface);
    border: 1px solid var(--border-bright);
    border-radius: 14px;
    padding: 22px 22px 26px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  }

  :is(#screen-howto, #screen-pricelist) .howto-layout {
    grid-template-columns: minmax(300px, 392px) minmax(0, 1fr);
    gap: 28px 36px;
  }

  :is(#screen-howto, #screen-pricelist) .howto-nav-filter--large {
    padding: 13px 14px 13px 44px;
    font-size: 15px;
    border-radius: 10px;
    background-position: 14px center;
  }

  :is(#screen-howto, #screen-pricelist) .howto-side-label {
    font-size: 11px;
    letter-spacing: 0.14em;
    padding: 8px 4px 6px;
  }

  :is(#screen-howto, #screen-pricelist).support-ticket-screen .howto-tab-panel .pricelist-lead {
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 20px;
  }

  :is(#screen-howto, #screen-pricelist).support-ticket-screen .howto-tab-panel .price-section-card h2 {
    font-family: var(--heading-font);
    font-size: clamp(1.5rem, 2.4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0 0 22px 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-bright);
  }

  :is(#screen-howto, #screen-pricelist).support-ticket-screen .howto-steps-list {
    list-style: none;
    counter-reset: howto-step-n;
    margin: 0;
    padding: 0;
  }

  :is(#screen-howto, #screen-pricelist).support-ticket-screen .howto-steps-list li {
    counter-increment: howto-step-n;
    position: relative;
    padding: 4px 10px 28px 64px;
    margin: 0;
    font-size: 17px;
    line-height: 1.72;
    color: var(--text-muted);
  }

  :is(#screen-howto, #screen-pricelist).support-ticket-screen .howto-steps-list li::before {
    content: counter(howto-step-n);
    position: absolute;
    left: 0;
    top: 2px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.14);
    border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--heading-font);
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    box-sizing: border-box;
  }

  :is(#screen-howto, #screen-pricelist).support-ticket-screen .howto-steps-list li:last-child {
    padding-bottom: 28px;
  }

  :is(#screen-howto, #screen-pricelist).support-ticket-screen .howto-steps-list strong {
    color: var(--text);
    font-weight: 600;
  }

  :is(#screen-howto, #screen-pricelist).support-ticket-screen .howto-tab-panel .pricelist-note {
    font-size: 15px;
    line-height: 1.55;
    padding: 18px 20px;
    margin-top: 22px;
  }

  :is(#screen-howto, #screen-pricelist).support-ticket-screen .howto-video-slot {
    margin-top: 22px;
  }

  @media (max-width: 900px) {
    :is(#screen-howto, #screen-pricelist) .howto-layout {
      grid-template-columns: 1fr;
    }
  }

  :is(#screen-howto, #screen-pricelist).support-ticket-screen .howto-tab-panel .price-section-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: none;
    border-top: 1px solid var(--border-bright);
  }

  :is(#screen-howto, #screen-pricelist).support-ticket-screen .price-section-card--muted {
    border-top: 1px solid var(--border-bright);
  }

  /* ── MY TICKETS: match How to / Open ticket (large type, cards, steps) ── */
  .mytickets-support-outer {
    max-width: var(--portal-content-max);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }

  /* Full content width like How to shell (override global .support-ticket-panel 800px cap) */
  #screen-mytickets .mytickets-support-outer .support-ticket-panel,
  #screen-transactions .mytickets-support-outer .support-ticket-panel,
  #screen-myfiles .mytickets-support-outer .support-ticket-panel {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* List: no inner surface2 card — table uses same framed strip as Transactions / My files */
  #screen-mytickets.support-ticket-screen .mytickets-panel--list {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }

  #screen-mytickets.support-ticket-screen .mytickets-panel--thread {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: none;
    border-top: 1px solid var(--border-bright);
  }

  #screen-mytickets.support-ticket-screen .mytickets-conversation-panel {
    margin-top: 22px;
  }

  #screen-mytickets .mytickets-section-title {
    font-size: clamp(1.45rem, 2.2vw, 1.75rem);
    margin-bottom: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-bright);
  }

  #screen-mytickets .mytickets-panel-hint {
    margin: 0 0 18px 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 62ch;
  }

  #screen-mytickets .mytickets-panel-hint strong {
    color: var(--text);
    font-weight: 600;
  }

  .mytickets-status-msg {
    font-size: 17px;
    line-height: 1.55;
    padding: 12px 4px 8px;
  }

  .mytickets-status-msg--muted {
    color: var(--text-muted);
  }

  .mytickets-status-msg--error {
    color: var(--red);
    font-weight: 600;
  }

  #screen-mytickets .mytickets-col-id {
    font-family: var(--heading-font);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
  }

  #screen-mytickets .mytickets-col-subject {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
  }

  #screen-mytickets .mytickets-col-date {
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
  }

  #screen-mytickets .mytickets-pill.pill {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
  }

  .mytickets-detail-header {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin: -2px 0 18px;
    line-height: 1.45;
  }

  .mytickets-thread {
    min-height: 120px;
    max-height: min(52vh, 400px);
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border-bright);
    border-radius: 12px;
    padding: 18px 20px;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 18px;
  }

  .mytickets-thread-placeholder {
    font-size: 16px;
    color: var(--text-muted);
    text-align: center;
    padding: 28px 16px;
    line-height: 1.5;
  }

  .mytickets-msg {
    margin-bottom: 16px;
  }

  .mytickets-msg:last-child {
    margin-bottom: 0;
  }

  .mytickets-msg-meta {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
  }

  .mytickets-bubble {
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.55;
    border: 1px solid var(--border);
    word-break: break-word;
  }

  .mytickets-bubble--admin {
    background: var(--surface3);
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.28);
  }

  .mytickets-bubble--you {
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.09);
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.22);
  }

  .mytickets-reply-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
  }

  .mytickets-reply-input.support-input {
    flex: 1;
    min-width: 220px;
    padding: 15px 18px;
    font-size: 16px;
    border-radius: 12px;
  }

  .mytickets-send-btn.support-submit-btn {
    margin-top: 0;
    padding: 15px 28px;
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0.06em;
    font-weight: 800;
    border-radius: 12px;
  }

  /* ── TRANSACTIONS: stacked panels (no hero / step strip — content starts high) ── */
  .transactions-support-outer {
    max-width: var(--portal-content-max);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding-top: 4px;
    padding-bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  /* Transactions: stacked panels (same card feel as My tickets) */
  #screen-transactions.support-ticket-screen .support-ticket-panel.transactions-stack-panel,
  #screen-invoices.support-ticket-screen .support-ticket-panel.transactions-stack-panel,
  #screen-myfiles.support-ticket-screen .support-ticket-panel.transactions-stack-panel {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 14px;
    border-top: 1px solid var(--border-bright);
    padding: 22px 24px 24px;
    max-width: none;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    box-shadow: none;
  }

  #screen-transactions.support-ticket-screen .transactions-stack-panel h1.transactions-page-heading,
  #screen-invoices.support-ticket-screen .transactions-stack-panel h1.transactions-page-heading,
  #screen-myfiles.support-ticket-screen .transactions-stack-panel h1.transactions-page-heading {
    letter-spacing: 0.02em;
  }

  #screen-transactions #transactions-panel-usage .transactions-usage-head,
  #screen-invoices #invoices-panel-purchases .transactions-usage-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 20px;
    row-gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-bright);
  }

  #screen-transactions #transactions-panel-usage .transactions-usage-head .transactions-page-heading,
  #screen-invoices #invoices-panel-purchases .transactions-usage-head .transactions-page-heading {
    margin: 0;
    padding: 0;
    border: none;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
  }

  #screen-transactions #transactions-panel-usage .transactions-in-panel-search,
  #screen-invoices #invoices-panel-purchases .transactions-in-panel-search {
    flex: 0 1 300px;
    width: 100%;
    min-width: min(200px, 100%);
    max-width: 340px;
    margin: 0;
  }

  @media (max-width: 560px) {
    #screen-transactions #transactions-panel-usage .transactions-usage-head,
    #screen-invoices #invoices-panel-purchases .transactions-usage-head {
      flex-direction: column;
      align-items: stretch;
    }

    #screen-transactions #transactions-panel-usage .transactions-in-panel-search,
    #screen-invoices #invoices-panel-purchases .transactions-in-panel-search {
      flex: 1 1 auto;
      max-width: none;
    }
  }

  /* Library → Fault codes + Bosch ECU: full-width search above table; meta + pagination row */
  #screen-library-faultcodes.support-ticket-screen .fc-lookup-inner > .library-fc-table-search,
  #screen-library-bosch.support-ticket-screen .fc-lookup-inner > .library-fc-table-search {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    flex: 0 0 auto;
    box-sizing: border-box;
  }

  #screen-library-faultcodes .library-fc-table-footer,
  #screen-library-bosch .library-fc-table-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-top: 12px;
    padding-top: 4px;
    flex-shrink: 0;
  }

  #screen-library-faultcodes .library-fc-table-footer .library-fc-results-meta,
  #screen-library-bosch .library-fc-table-footer .library-fc-results-meta {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
  }

  #screen-library-faultcodes .library-fc-table-footer .library-fc-pagination-bottom,
  #screen-library-bosch .library-fc-table-footer .library-fc-pagination-bottom {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  @media (max-width: 560px) {
    #screen-library-faultcodes .library-fc-table-footer,
    #screen-library-bosch .library-fc-table-footer {
      flex-direction: column;
      align-items: stretch;
    }

    #screen-library-faultcodes .library-fc-table-footer .library-fc-pagination-bottom,
    #screen-library-bosch .library-fc-table-footer .library-fc-pagination-bottom {
      justify-content: flex-start;
      width: 100%;
    }
  }

  /* My Files list — same panel head + table frame as My Transactions */
  #screen-myfiles #myfiles-panel-list .transactions-usage-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 20px;
    row-gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-bright);
  }

  #screen-myfiles #myfiles-panel-list .transactions-usage-head .transactions-page-heading {
    margin: 0;
    padding: 0;
    border: none;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
  }

  #screen-myfiles #myfiles-panel-list .myfiles-usage-head-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 1 auto;
    min-width: min(220px, 100%);
    max-width: min(100%, 520px);
  }

  #screen-myfiles #myfiles-panel-list .myfiles-usage-head-controls .transactions-in-panel-search {
    flex: 1 1 200px;
    min-width: min(180px, 100%);
    max-width: 340px;
    margin: 0;
  }

  @media (max-width: 560px) {
    #screen-myfiles #myfiles-panel-list .transactions-usage-head {
      flex-direction: column;
      align-items: stretch;
    }

    #screen-myfiles #myfiles-panel-list .myfiles-usage-head-controls {
      max-width: none;
      width: 100%;
    }

    #screen-myfiles #myfiles-panel-list .myfiles-usage-head-controls .transactions-in-panel-search {
      max-width: none;
    }
  }

  #screen-myfiles #myfiles-panel-list > .myfiles-footer {
    margin-top: 16px;
    margin-bottom: 0;
  }

  #screen-myfiles.support-ticket-screen .transactions-data-table thead th.myfiles-th-action,
  #screen-myfiles.support-ticket-screen .transactions-data-table tbody td:last-child {
    text-align: right;
  }

  /* Upload: same outer + panel + head row as My Transactions */
  #screen-upload.support-ticket-screen .support-ticket-panel.upload-stack-panel {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 14px;
    border-top: 1px solid var(--border-bright);
    padding: 22px 24px 24px;
    max-width: none;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    box-shadow: none;
  }

  #screen-upload.support-ticket-screen .upload-stack-panel h1.upload-page-heading {
    letter-spacing: 0.02em;
  }

  #screen-upload #upload-panel-main .upload-page-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 20px;
    row-gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-bright);
  }

  #screen-upload #upload-panel-main .upload-page-panel-head .upload-page-heading {
    margin: 0;
    padding: 0;
    border: none;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
  }

  #screen-upload #upload-panel-main .upload-page-panel-head .upload-steps-wrap {
    flex: 0 1 auto;
    min-width: min(200px, 100%);
    max-width: min(100%, 380px);
    margin: 0;
  }

  @media (max-width: 560px) {
    #screen-upload #upload-panel-main .upload-page-panel-head {
      flex-direction: column;
      align-items: stretch;
    }

    #screen-upload #upload-panel-main .upload-page-panel-head .upload-steps-wrap {
      max-width: none;
      width: 100%;
    }
  }

  #screen-transactions.support-ticket-screen .transactions-in-panel-search,
  #screen-invoices.support-ticket-screen .transactions-in-panel-search,
  #screen-myfiles.support-ticket-screen .transactions-in-panel-search {
    width: 100%;
    max-width: 420px;
  }

  #screen-transactions .transactions-step-tabs--large button.support-step-tab.transactions-tab {
    cursor: pointer;
    font-family: inherit;
  }

  #screen-transactions .transactions-step-tabs--large > button.transactions-tab {
    width: auto;
    min-height: 0;
    text-align: center;
    padding: 15px 20px;
    font-size: 16px;
  }

  #screen-transactions.support-ticket-screen .transactions-shell--support-theme {
    background: var(--surface);
    border: 1px solid var(--border-bright);
    border-radius: 14px;
    padding: 22px 22px 26px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  }

  #screen-transactions .transactions-hero h1 {
    font-size: clamp(2rem, 4.2vw, 2.75rem);
    letter-spacing: 0.02em;
  }

  #screen-transactions .transactions-hero-lead {
    font-size: 17px;
    line-height: 1.65;
    max-width: 58ch;
  }

  #screen-transactions .transactions-hero-lead strong {
    color: var(--text);
    font-weight: 700;
  }

  #screen-transactions .transactions-step-tabs--large {
    max-width: 560px;
  }

  #screen-transactions .transactions-step-tabs--large .support-step-tab {
    padding: 15px 20px;
    min-height: 58px;
    font-size: 16px;
  }

  #screen-transactions .transactions-step-tabs--large .support-step-num {
    width: 34px;
    height: 34px;
    font-size: 16px;
    border-radius: 10px;
  }

  #screen-transactions.support-ticket-screen .transactions-layout {
    grid-template-columns: minmax(300px, 392px) minmax(0, 1fr);
    gap: 28px 36px;
  }

  #screen-transactions .transactions-nav-filter--large,
  #screen-invoices .transactions-nav-filter--large,
  #screen-library-faultcodes .transactions-nav-filter--large,
  #screen-library-bosch .transactions-nav-filter--large,
  #screen-myfiles .transactions-nav-filter--large {
    padding: 13px 14px 13px 44px;
    font-size: 15px;
    border-radius: 10px;
    background-position: 14px center;
  }

  #screen-transactions .transactions-sidebar--cards .transactions-side-label {
    font-size: 11px;
    letter-spacing: 0.14em;
    padding: 8px 4px 6px;
  }

  #screen-transactions .transactions-sidebar--cards .transactions-side-section {
    gap: 12px;
  }

  #screen-transactions .transactions-tab.transactions-view-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    text-align: left;
    padding: 18px 16px;
    min-height: 92px;
    border: 1px solid var(--border) !important;
    border-left: 1px solid var(--border) !important;
    border-radius: 14px !important;
    background: var(--surface2) !important;
    box-shadow: none !important;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
  }

  #screen-transactions .transactions-view-card:hover {
    border-color: var(--border-bright) !important;
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06) !important;
    color: var(--text);
  }

  #screen-transactions .transactions-view-card.is-active {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 2px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.22) !important;
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.09) !important;
    color: var(--text);
  }

  #screen-transactions .transactions-view-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
    border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.28);
    color: var(--red);
  }

  #screen-transactions .transactions-view-card.is-active .transactions-view-icon {
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.22);
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.42);
  }

  #screen-transactions .transactions-view-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
  }

  #screen-transactions .transactions-view-title {
    font-family: var(--heading-font);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.28;
    color: var(--text);
  }

  #screen-transactions .transactions-view-desc {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
    color: var(--text-muted);
  }

  #screen-transactions.support-ticket-screen .transactions-article-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: none;
    border-top: 1px solid var(--border-bright);
  }

  #screen-transactions .transactions-table-wrap--data,
  #screen-invoices .transactions-table-wrap--data,
  #screen-myfiles .transactions-table-wrap--data,
  #screen-mytickets .transactions-table-wrap--data {
    margin: 8px -4px 0;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.12);
    overflow: auto;
  }

  #screen-transactions #transactions-panel-usage .transactions-table-wrap--data,
  #screen-invoices #invoices-panel-purchases .transactions-table-wrap--data,
  #screen-myfiles #myfiles-panel-list .transactions-table-wrap--data,
  #screen-mytickets #mytickets-container .transactions-table-wrap--data {
    margin-top: 0;
  }

  #screen-transactions.support-ticket-screen .transactions-data-table,
  #screen-invoices.support-ticket-screen .transactions-data-table,
  #screen-myfiles.support-ticket-screen .transactions-data-table,
  #screen-mytickets.support-ticket-screen .transactions-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  #screen-transactions.support-ticket-screen .transactions-data-table thead th,
  #screen-invoices.support-ticket-screen .transactions-data-table thead th,
  #screen-myfiles.support-ticket-screen .transactions-data-table thead th,
  #screen-mytickets.support-ticket-screen .transactions-data-table thead th {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 800;
    padding: 14px 16px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border-bright);
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06);
    text-align: left;
  }

  #screen-transactions.support-ticket-screen .transactions-data-table tbody td,
  #screen-invoices.support-ticket-screen .transactions-data-table tbody td,
  #screen-myfiles.support-ticket-screen .transactions-data-table tbody td,
  #screen-mytickets.support-ticket-screen .transactions-data-table tbody td {
    padding: 16px 16px;
    font-size: 15px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }

  #screen-transactions.support-ticket-screen .transactions-data-table tbody tr:last-child td,
  #screen-invoices.support-ticket-screen .transactions-data-table tbody tr:last-child td,
  #screen-myfiles.support-ticket-screen .transactions-data-table tbody tr:last-child td,
  #screen-mytickets.support-ticket-screen .transactions-data-table tbody tr:last-child td {
    border-bottom: none;
  }

  #screen-transactions.support-ticket-screen .transactions-data-table tbody tr.trans-data-row:hover td,
  #screen-invoices.support-ticket-screen .transactions-data-table tbody tr.trans-data-row:hover td,
  #screen-myfiles.support-ticket-screen .transactions-data-table tbody tr.trans-data-row:hover td,
  #screen-mytickets.support-ticket-screen .transactions-data-table tbody tr.trans-data-row:hover td {
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06);
  }

  #screen-transactions .trans-td-date,
  #screen-invoices .trans-td-date {
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
  }

  #screen-transactions .trans-td-desc,
  #screen-invoices .trans-td-desc {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
  }

  #screen-transactions .trans-td-credits {
    font-size: 16px;
    font-weight: 700;
    color: var(--red);
  }

  #screen-invoices .trans-td-credits--invoice {
    font-size: 16px;
    font-weight: 700;
    color: var(--green);
  }

  #screen-transactions .trans-td-amount,
  #screen-invoices .trans-td-amount {
    font-size: 15px;
    color: var(--text-muted);
  }

  #screen-invoices .trans-td-invoice {
    white-space: nowrap;
  }

  #screen-invoices .trans-invoice-pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-bright);
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.1);
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
  }

  #screen-invoices .trans-invoice-pdf-btn:hover {
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.2);
  }

  #screen-transactions .trans-pill.pill,
  #screen-invoices .trans-pill.pill {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
  }

  #screen-transactions .trans-empty-cell,
  #screen-invoices .trans-empty-cell,
  #screen-myfiles .trans-empty-cell {
    text-align: center;
    padding: 28px 20px;
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.55;
  }

  #screen-transactions .trans-empty-cell strong,
  #screen-invoices .trans-empty-cell strong,
  #screen-myfiles .trans-empty-cell strong {
    color: var(--text);
    font-weight: 600;
  }

  /* ── PRICE LIST: inner shell (outer + panel use same flow as Open ticket) ── */
  #screen-pricelist.support-ticket-screen .pricelist-shell--support-theme {
    background: var(--surface);
    border: 1px solid var(--border-bright);
    border-radius: 14px;
    padding: 22px 22px 26px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  }

  #screen-pricelist.support-ticket-screen .pricelist-layout {
    grid-template-columns: minmax(300px, 392px) minmax(0, 1fr);
    gap: 28px 36px;
  }

  #screen-pricelist .pricelist-nav-filter--large {
    padding: 13px 14px 13px 44px;
    font-size: 15px;
    border-radius: 10px;
    background-position: 14px center;
  }

  #screen-pricelist .pricelist-sidebar--cards .pricelist-side-label {
    font-size: 11px;
    letter-spacing: 0.14em;
    padding: 8px 4px 6px;
  }

  #screen-pricelist .pricelist-sidebar--cards .pricelist-side-section {
    gap: 12px;
  }

  #screen-pricelist .pricelist-sidebar--cards .pricelist-tab {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 16px 18px;
    min-height: 52px;
    border: 1px solid var(--border) !important;
    border-left: 1px solid var(--border) !important;
    border-radius: 14px !important;
    background: var(--surface2) !important;
    box-shadow: none !important;
    font-family: var(--heading-font);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.25;
    color: var(--text-muted);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
  }

  #screen-pricelist .pricelist-sidebar--cards .pricelist-tab:hover {
    border-color: var(--border-bright) !important;
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.06) !important;
    color: var(--text);
  }

  #screen-pricelist .pricelist-sidebar--cards .pricelist-tab.is-active {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 2px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.22) !important;
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.09) !important;
    color: var(--text);
  }

  #screen-pricelist.support-ticket-screen .pricelist-tab-panel .pricelist-lead {
    font-size: 17px;
    line-height: 1.65;
    margin: 0 0 18px;
    color: var(--text-muted);
  }

  #screen-pricelist.support-ticket-screen .pricelist-tab-panel .pricelist-lead strong {
    color: var(--text);
    font-weight: 600;
  }

  #screen-pricelist.support-ticket-screen .pricelist-tab-panel .pricelist-note {
    font-size: 15px;
    line-height: 1.55;
    padding: 16px 18px;
    border-radius: 10px;
  }

  #screen-pricelist.support-ticket-screen .pricelist-tab-panel .price-section-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: none;
    border-top: 1px solid var(--border-bright);
    padding: 22px 24px 24px;
  }

  #screen-pricelist.support-ticket-screen .price-section-card--terms {
    padding: 20px 22px 22px;
  }

  #screen-pricelist.support-ticket-screen .pricelist-tab-panel .price-section-head {
    font-size: 13px;
    letter-spacing: 0.1em;
    padding: 0 0 14px;
    margin: 0 0 16px;
    border-bottom: 1px solid var(--border-bright);
  }

  #screen-pricelist.support-ticket-screen .pricelist-tab-panel .price-row {
    padding: 18px 6px;
    font-size: 17px;
    line-height: 1.45;
    align-items: flex-start;
    gap: 16px;
  }

  #screen-pricelist.support-ticket-screen .pricelist-tab-panel .price-row span:first-child {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
  }

  #screen-pricelist.support-ticket-screen .pricelist-tab-panel .price-credits {
    font-size: 18px;
    flex-shrink: 0;
    text-align: right;
  }

  #screen-pricelist.support-ticket-screen .pricelist-bullets {
    font-size: 17px;
    line-height: 1.6;
  }

  #screen-pricelist.support-ticket-screen .section-sub {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-muted);
  }

  #screen-pricelist.support-ticket-screen .pricelist-table-wrap {
    margin: 10px 0 0;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.12);
  }

  #screen-pricelist.support-ticket-screen .pricelist-ecu-table {
    font-size: 16px;
  }

  #screen-pricelist.support-ticket-screen .pricelist-ecu-table th {
    font-size: 11px;
    letter-spacing: 0.1em;
    font-weight: 800;
    padding: 14px 18px;
    color: var(--text-dim);
  }

  #screen-pricelist.support-ticket-screen .pricelist-ecu-table td {
    padding: 16px 18px;
    font-size: 16px;
    vertical-align: middle;
  }

  #screen-pricelist.support-ticket-screen .pricelist-catalog-meta {
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 14px;
  }

  #screen-pricelist.support-ticket-screen .pricelist-catalog-trunc {
    font-size: 14px;
    margin-top: 12px;
  }

  #screen-pricelist.support-ticket-screen .pricelist-ecu-field-label {
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  #screen-pricelist.support-ticket-screen .pricelist-ecu-select {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
  }

  @media (max-width: 560px) {
    .support-step-tabs {
      flex-direction: column;
      max-width: none;
    }
    .support-step-connector {
      width: 2px;
      height: 16px;
    }
    .ticket-type-card {
      flex-direction: column;
      align-items: flex-start;
    }
    .support-form-card {
      padding: 22px 18px 26px;
    }
    .transactions-step-tabs--large {
      max-width: none;
    }
    :is(#screen-howto, #screen-pricelist).support-ticket-screen .howto-page-panel .howto-shell--support-theme {
      padding: 0;
    }
    #screen-transactions.support-ticket-screen .transactions-shell--support-theme {
      padding: 16px 14px 18px;
    }
    #screen-pricelist.support-ticket-screen .pricelist-page-panel .pricelist-shell--support-theme {
      padding: 0;
    }
    #screen-buycredits .support-ticket-panel.buycredits-panel {
      padding: 18px 14px 22px;
    }
    :is(#screen-howto, #screen-pricelist) .support-ticket-panel.howto-page-panel,
    #screen-pricelist .support-ticket-panel.pricelist-page-panel,
    #screen-mytickets .support-ticket-panel.mytickets-page-panel,
    #screen-support-choose .support-ticket-panel.support-choose-panel,
    #screen-library-downloads .support-ticket-panel.library-page-panel,
    #screen-library-faultcodes .support-ticket-panel.library-page-panel,
    #screen-library-bosch .support-ticket-panel.library-page-panel,
    #screen-library-terms .support-ticket-panel.library-page-panel,
    #screen-support .support-ticket-panel.support-form-page-panel {
      padding: 18px 14px 22px;
    }
  }

  .btn-secondary {
    background:transparent;
    border:1px solid var(--border-bright);
    border-radius:4px;
    color:var(--text);
    cursor:pointer;
    font-family:'Inter',Helvetica,sans-serif;
  }
  .btn-secondary:hover {
    border-color:var(--red);
  }

  /* responsive */
  @media (max-width: 900px) {
    #screen-buycredits .credits-grid { grid-template-columns: 1fr 1fr; }
    .price-container { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
  }

  @media (max-width: 900px) {
    .app {
      padding-left: 0;
    }
    /* Installer sidebar: off-canvas drawer (opened via hamburger) */
    body.portal-user-logged-in.portal-mode #portal-app .sidebar {
      position: fixed;
      left: 0;
      top: var(--header-height);
      bottom: 0;
      width: min(300px, 86vw);
      z-index: 230;
      transform: translateX(-102%);
      transition: transform 0.22s ease;
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45);
      border-right: 1px solid var(--border);
    }
    body.portal-user-logged-in.portal-mode.portal-mobile-nav-open #portal-app .sidebar {
      transform: translateX(0);
    }
    /* Admin sidebar: same pattern */
    body.portal-user-logged-in.admin-mode .admin-sidebar {
      position: fixed;
      left: 0;
      top: var(--header-height);
      bottom: 0;
      width: min(300px, 86vw);
      z-index: 230;
      transform: translateX(-102%);
      transition: transform 0.22s ease;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45);
    }
    body.portal-user-logged-in.admin-mode.portal-mobile-nav-open .admin-sidebar {
      transform: translateX(0);
    }
    .admin-app {
      padding-left: 0 !important;
    }
    .admin-main {
      padding: 16px 12px calc(24px + env(safe-area-inset-bottom, 0px));
      width: 100%;
      max-width: 100%;
      min-width: 0;
      box-sizing: border-box;
    }
    .admin-screen.active {
      max-width: 100%;
    }
    .admin-stats {
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .admin-filter-bar {
      flex-wrap: wrap;
      width: 100%;
    }
    .ticket-meta {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 640px) {
    #screen-buycredits .credits-grid { grid-template-columns: 1fr; }
    .admin-stats {
      grid-template-columns: 1fr;
    }
  }

  .note-box {
    padding: 12px 16px;
    background: rgba(245,158,11,0.07);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 6px;
    font-size: 12px;
    color: var(--amber);
    margin-bottom: 20px;
  }

  .modification-section {
    margin-top: 8px;
  }

  .mod-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .mod-chip {
    padding: 7px 14px;
    border-radius: 4px;
    border: 1px solid var(--border-bright);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.12s;
    letter-spacing: 0.04em;
    user-select: none;
  }
  .mod-chip.sel { border-color: var(--red); color: var(--text); background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12); }

  /* ── ADMIN PORTAL ── */
  #admin-app { display:none; }
  .admin-app {
    display:flex;
    align-items:stretch;
    min-height:100vh;
    min-height:100dvh;
    padding-top:var(--header-height);
    padding-left:var(--sidebar-width);
  }

  .admin-demo-banner {
    flex-shrink: 0;
    margin: 4px 16px 12px;
    padding: 10px 16px;
    box-sizing: border-box;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 62, 0.38);
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .admin-demo-banner__badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.35);
    color: var(--text);
    border: 1px solid rgba(245, 158, 62, 0.5);
  }

  .admin-sidebar {
    width: var(--sidebar-width);
    background:#12161e;
    border-right:1px solid var(--border);
    display:flex;
    flex-direction:column;
    padding:20px 0 0;
    position:fixed;
    left:0;
    top:var(--header-height);
    bottom:0;
    z-index:90;
    overflow:hidden;
  }
  .admin-sidebar .admin-badge {
    flex-shrink: 0;
  }

  .admin-badge {
    margin:0 14px 18px;
    background:rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.1);
    border:1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35);
    border-radius:8px;
    padding:8px 12px;
    font-size:10px; font-weight:700;
    letter-spacing:0.14em; text-transform:uppercase;
    color:var(--red); text-align:center;
  }
  .admin-main {
    flex:1;
    padding:32px 36px calc(32px + env(safe-area-inset-bottom, 0px));
    min-width:0;
    background:var(--bg);
    display:flex;
    flex-direction:column;
    align-items:center;
  }
  .admin-screen { display:none; }
.admin-screen.active { display:block; width:100%; max-width:1260px; }

  .admin-vehicle-search-slot {
    width: 100%;
    max-width: 1200px;
    margin-top: 12px;
  }
  .admin-vehicle-search-slot .dash-vs-panel {
    max-width: 100%;
  }

  .admin-page-title {
    font-family: var(--heading-font);
    font-weight: var(--heading-weight-strong);
    font-size: var(--heading-h1-size);
    letter-spacing: 0.02em;
    margin-bottom: 4px;
    color: var(--heading-color);
  }

  .admin-vehicle-catalog-textarea {
    display: block;
    width: 100%;
    min-height: min(60vh, 720px);
    box-sizing: border-box;
    margin: 0;
    padding: 14px 16px;
    font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
    font-size: 11px;
    line-height: 1.45;
    color: var(--text);
    background: var(--surface2);
    border: none;
    resize: vertical;
    outline: none;
  }

  .admin-vehicle-catalog-textarea:focus {
    box-shadow: inset 0 0 0 1px var(--border-bright);
  }
  .admin-page-sub { font-size:13px; color:var(--text-muted); margin-bottom:28px; }

  /* stats row */
  .admin-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:32px; }
  .admin-stat {
    background:var(--surface); border:1px solid var(--border);
    border-radius:8px; padding:18px 20px;
  }
  .admin-stat-num { font-size:28px; font-weight:800; font-family:'Inter',Helvetica,sans-serif; }
  .admin-stat-label { font-size:11px; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.07em; margin-top:2px; }
  .admin-stat-delta { font-size:11px; margin-top:6px; }
  .admin-stat-delta.up { color:var(--green); }
  .admin-stat-delta.down { color:var(--red); }

  .admin-stats-page-header {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 20px;
  }
  .admin-stats-lead { margin: 0; font-size: 14px; color: var(--text-muted); max-width: 52ch; line-height: 1.5; }
  .admin-stats-header-actions { display: flex; align-items: center; gap: 10px; }
  .admin-stats-summary-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px;
    margin-bottom: 20px;
  }
  .admin-stats-summary-main { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
  .admin-stats-summary-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
  .admin-stats-summary-hint { margin: 6px 0 0; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
  .admin-stats-tabs {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; border-bottom: 1px solid var(--border); padding-bottom: 10px;
  }
  .admin-stats-tab {
    background: transparent; border: 1px solid var(--border); color: var(--text-muted);
    font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 8px 14px; border-radius: 6px; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .admin-stats-tab:hover { color: var(--text); border-color: var(--border-bright); }
  .admin-stats-tab.active { color: var(--text); background: var(--surface2); border-color: var(--red); }
  .admin-stats-panels { min-height: 120px; }
  .admin-stats-panel { display: none; }
  .admin-stats-panel.active { display: block; }
  .admin-stats-table-card { margin-bottom: 0; }
  .admin-stats-table-scroll { max-height: min(60vh, 520px); overflow: auto; }
  @media (min-width: 1200px) {
    .admin-stats-tabs { display: none; }
    .admin-stats-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
    .admin-stats-panel { display: block !important; }
    .admin-stats-table-scroll { max-height: 480px; }
  }

  /* admin table */
  .admin-table-wrap { background:var(--surface); border:1px solid var(--border); border-radius:8px; overflow-x:auto; overflow-y:visible; -webkit-overflow-scrolling:touch; margin-bottom:28px; }
  .admin-table-head { display:flex; align-items:center; justify-content:space-between; padding:14px 20px; border-bottom:1px solid var(--border); }
  .admin-table-title { font-size:13px; font-weight:700; letter-spacing:0.04em; }
  .admin-table { width:100%; min-width:720px; border-collapse:collapse; }
  .admin-table th { padding:10px 16px; font-size:10px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--text-muted); border-bottom:1px solid var(--border); text-align:left; }
  .admin-table td { padding:13px 16px; font-size:13px; border-bottom:1px solid var(--border); vertical-align:middle; }
  .admin-table tr:last-child td { border-bottom:none; }
  .admin-table tr:hover td { background:rgba(255,255,255,0.02); }

  /* status pills */
  .pill { display:inline-block; padding:3px 9px; border-radius:20px; font-size:10px; font-weight:700; letter-spacing:0.07em; text-transform:uppercase; }
  .pill-pending { background:rgba(245,158,11,0.15); color:var(--amber); border:1px solid rgba(245,158,11,0.3); }
  .pill-processing { background:rgba(59,130,246,0.12); color:var(--blue); border:1px solid rgba(59,130,246,0.3); }
  .pill-done { background:rgba(0,192,107,0.12); color:var(--green); border:1px solid rgba(0,192,107,0.3); }
  .pill-rejected { background:rgba(232,0,15,0.12); color:var(--red); border:1px solid rgba(232,0,15,0.3); }
  .pill-open { background:rgba(232,0,15,0.12); color:var(--red); border:1px solid rgba(232,0,15,0.3); }
  .pill-closed { background:rgba(120,120,140,0.15); color:var(--text-muted); border:1px solid var(--border); }
  .pill-active { background:rgba(0,192,107,0.12); color:var(--green); border:1px solid rgba(0,192,107,0.3); }
  .pill-suspended { background:rgba(232,0,15,0.12); color:var(--red); border:1px solid rgba(232,0,15,0.3); }

  /* action buttons inside table */
  .tbl-btn { background:var(--surface2); border:1px solid var(--border-bright); border-radius:4px; padding:4px 10px; font-size:11px; color:var(--text-muted); cursor:pointer; transition:all 0.12s; }
  .tbl-btn:hover { border-color:var(--red); color:var(--text); }
  .tbl-btn.primary { border-color:var(--blue); color:var(--blue); }
  .tbl-btn.primary:hover { background:rgba(59,130,246,0.1); }

  /* notification cards */
  .notif-list { display:flex; flex-direction:column; gap:10px; }
  .notif-card {
    background:var(--surface); border:1px solid var(--border);
    border-radius:8px; padding:14px 18px;
    display:flex; gap:14px; align-items:flex-start;
  }
  .notif-card.unread { border-left:3px solid var(--red); }
  .notif-icon { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .notif-icon.file { background:rgba(59,130,246,0.15); color:var(--blue); }
  .notif-icon.ticket { background:rgba(245,158,11,0.15); color:var(--amber); }
  .notif-icon.account { background:rgba(0,192,107,0.15); color:var(--green); }
  .notif-icon.alert { background:rgba(232,0,15,0.15); color:var(--red); }
  .notif-body { flex:1; }
  .notif-title { font-size:13px; font-weight:600; margin-bottom:2px; }
  .notif-desc { font-size:12px; color:var(--text-muted); }
  .notif-time { font-size:11px; color:var(--text-dim); margin-top:4px; }

  /* search/filter bar */
  .acc-name-with-flag {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .acc-name-with-flag .acc-name-txt { min-width: 0; }

  .admin-filter-bar { display:flex; gap:10px; margin-bottom:16px; align-items:center; }
  .admin-filter-bar input {
    flex:1; background:var(--surface2); border:1px solid var(--border-bright);
    border-radius:5px; padding:8px 12px; color:var(--text);
    font-size:13px; outline:none;
  }
  .admin-filter-bar input:focus { border-color:var(--blue); }
  .admin-filter-bar select {
    background:var(--surface2); border:1px solid var(--border-bright);
    border-radius:5px; padding:8px 12px; color:var(--text);
    font-size:13px; outline:none; cursor:pointer;
  }

  /* ticket detail panel */
  .ticket-meta { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; margin-bottom:20px; }
  .ticket-meta-item { background:var(--surface2); border:1px solid var(--border); border-radius:6px; padding:10px 14px; }
  .ticket-meta-key { font-size:10px; text-transform:uppercase; letter-spacing:0.07em; color:var(--text-muted); margin-bottom:3px; }
  .ticket-meta-val { font-size:13px; font-weight:600; }

  .ticket-thread { display:flex; flex-direction:column; gap:12px; }
  .ticket-msg { background:var(--surface2); border:1px solid var(--border); border-radius:8px; padding:14px 16px; }
  .ticket-msg.admin-msg { border-color:rgba(59,130,246,0.25); background:rgba(59,130,246,0.05); }
  .ticket-msg-header { display:flex; justify-content:space-between; margin-bottom:8px; }
  .ticket-msg-author { font-size:12px; font-weight:700; }
  .ticket-msg-time { font-size:11px; color:var(--text-muted); }
  .ticket-msg-body { font-size:13px; color:var(--text-muted); line-height:1.55; }

  .reply-box { background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:14px 16px; margin-top:16px; }
  .reply-box textarea { width:100%; background:var(--surface2); border:1px solid var(--border-bright); border-radius:5px; padding:10px 12px; color:var(--text); font-size:13px; font-family:'Inter',Helvetica,sans-serif; outline:none; resize:vertical; min-height:80px; }
  .reply-box textarea:focus { border-color:var(--blue); }

  /* file detail modal-ish panel */
  .file-detail-panel {
    background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:20px 22px; margin-bottom:20px;
  }
  .file-detail-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; margin:14px 0; }
  .file-detail-item { background:var(--surface2); border:1px solid var(--border); border-radius:6px; padding:10px 14px; }

  .admin-account-header { display:flex; align-items:center; gap:14px; padding:18px 20px; border-bottom:1px solid var(--border); }
  .admin-avatar { width:44px; height:44px; border-radius:50%; background:var(--surface3); border:1px solid var(--border-bright); display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:700; font-family:'Inter',Helvetica,sans-serif; }