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

    /* Porsche Next — Latin subset (FR/EN admin), official Porsche Design System CDN */
    @font-face {
      font-family: "Porsche Next";
      font-style: normal;
      font-weight: 400;
      src: url("https://cdn.ui.porsche.com/porsche-design-system/fonts/porsche-next-latin-regular.b8f1c20.woff2") format("woff2");
      unicode-range:
        U+0020-007F, U+0080-00FF, U+0100-017F, U+0180-024F, U+0250-02AF,
        U+02B0-02FF, U+0300-036F, U+1E00-1EFF, U+2000-206F, U+2070-209F,
        U+20A0-20CF, U+2100-214F, U+2150-218F, U+2190-21FF, U+2200-22FF,
        U+25A0-25FF, U+2600-26FF, U+FB00-FB4F, U+FE70-FEFF;
      font-display: swap;
    }

    @font-face {
      font-family: "Porsche Next";
      font-style: normal;
      font-weight: 600;
      src: url("https://cdn.ui.porsche.com/porsche-design-system/fonts/porsche-next-latin-semi-bold.b5f6fca.woff2") format("woff2");
      unicode-range:
        U+0020-007F, U+0080-00FF, U+0100-017F, U+0180-024F, U+0250-02AF,
        U+02B0-02FF, U+0300-036F, U+1E00-1EFF, U+2000-206F, U+2070-209F,
        U+20A0-20CF, U+2100-214F, U+2150-218F, U+2190-21FF, U+2200-22FF,
        U+25A0-25FF, U+2600-26FF, U+FB00-FB4F, U+FE70-FEFF;
      font-display: swap;
    }

    @font-face {
      font-family: "Porsche Next";
      font-style: normal;
      font-weight: 700;
      src: url("https://cdn.ui.porsche.com/porsche-design-system/fonts/porsche-next-latin-bold.0fbdc6d.woff2") format("woff2");
      unicode-range:
        U+0020-007F, U+0080-00FF, U+0100-017F, U+0180-024F, U+0250-02AF,
        U+02B0-02FF, U+0300-036F, U+1E00-1EFF, U+2000-206F, U+2070-209F,
        U+20A0-20CF, U+2100-214F, U+2150-218F, U+2190-21FF, U+2200-22FF,
        U+25A0-25FF, U+2600-26FF, U+FB00-FB4F, U+FE70-FEFF;
      font-display: swap;
    }

    :root {
      /* Alu-Rex design tokens */
      /* Alu-Rex Brand Identity Guidelines 2026 */
      --arx-bg: #000000;
      --arx-surface: #141414;
      --arx-surface-2: #323232;
      --arx-border: rgba(255, 255, 255, 0.1);
      --arx-border-strong: rgba(255, 255, 255, 0.18);
      --arx-text: #ffffff;
      --arx-text-muted: #9ca3af;
      --arx-accent: #ffcd00;
      --arx-accent-top: #ffe066;
      --arx-accent-bottom: #ffcd00;
      --arx-accent-gradient: linear-gradient(180deg, var(--arx-accent-top) 0%, var(--arx-accent-bottom) 100%);
      --arx-accent-gradient-hover: linear-gradient(180deg, #ffeb99 0%, #ffd633 100%);
      --arx-accent-dim: rgba(255, 205, 0, 0.14);
      --arx-on-accent: #0a0a0a;
      --arx-success: #4ade80;
      --arx-error: #f87171;
      --arx-radius: 10px;
      --arx-radius-sm: 6px;
      --arx-space-xs: 8px;
      --arx-space-sm: 12px;
      --arx-space-md: 16px;
      --arx-space-lg: 24px;
      --arx-motion: 180ms ease;
      --arx-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
      --arx-topbar-h: 56px;
      --arx-sidebar-w: 280px;
      --arx-ambient-glow: radial-gradient(ellipse 70% 55% at 100% 0%, rgba(255, 205, 0, 0.045), transparent 58%);
      --arx-surface-highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, transparent 100%);

      /* Legacy aliases (existing styles) */
      --admin-bg: var(--arx-bg);
      --admin-panel: var(--arx-surface);
      --admin-panel-2: var(--arx-surface-2);
      --admin-border: var(--arx-border);
      --admin-border-strong: var(--arx-border-strong);
      --admin-text: var(--arx-text);
      --admin-muted: var(--arx-text-muted);
      --admin-accent: #ffffff;
      --admin-highlight: var(--arx-accent);
      --admin-highlight-dim: var(--arx-accent-dim);
      --admin-success: var(--arx-success);
      --admin-radius: var(--arx-radius);
      --admin-topbar-h: var(--arx-topbar-h);
      --admin-sidebar-w: var(--arx-sidebar-w);
      --admin-sidebar-current-w: var(--admin-sidebar-w);
      --admin-shadow: var(--arx-shadow);
      --admin-font-heading: "Porsche Next", "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    body {
      font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: var(--admin-bg);
      color: var(--admin-text);
      line-height: 1.5;
      min-height: 100vh;
    }

    h1, h2, h3, .admin-brand__tagline, .admin-sidebar__title,
    .admin-topbar__breadcrumb, .field-group-title, .editor-section__summary,
    .admin-preview__title, .editor-form__head h2 {
      font-family: var(--admin-font-heading);
      font-weight: 600;
      letter-spacing: -0.01em;
      text-transform: none;
    }

    .login-screen {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      background:
        radial-gradient(circle at top right, rgba(255, 205, 0, 0.07), transparent 42%),
        radial-gradient(circle at bottom left, rgba(255, 205, 0, 0.03), transparent 38%),
        var(--admin-bg);
    }

    .login-screen[hidden] { display: none !important; }

    .login-card {
      width: 100%;
      max-width: 420px;
      background:
        var(--arx-surface-highlight),
        var(--admin-panel);
      border: 1px solid var(--admin-border);
      border-radius: 18px;
      padding: 32px 28px 28px;
      box-shadow: var(--admin-shadow);
    }

    .login-card__logo {
      display: block;
      width: min(200px, 75%);
      height: auto;
      margin-bottom: 20px;
    }

    .login-card__eyebrow {
      font-family: var(--admin-font-heading);
      font-size: 0.6875rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--admin-muted);
      margin-bottom: 10px;
    }

    .login-card h1 {
      font-size: 1.375rem;
      line-height: 1.25;
      margin-bottom: 8px;
      font-weight: 700;
    }

    #editor-title {
      font-family: var(--admin-font-heading);
      text-transform: none;
      letter-spacing: normal;
      font-weight: 600;
    }

    .login-card__desc {
      color: var(--admin-muted);
      font-size: 0.9375rem;
      margin-bottom: 24px;
    }

    .login-form__field label {
      display: block;
      font-size: 0.8125rem;
      font-weight: 600;
      margin-bottom: 8px;
    }

    .login-form__field input {
      width: 100%;
      height: 46px;
      border: 1px solid var(--admin-border-strong);
      border-radius: var(--admin-radius);
      padding: 0 14px;
      font: inherit;
      color: var(--admin-text);
      background: var(--admin-panel-2);
      transition: border-color var(--arx-motion), box-shadow var(--arx-motion);
    }

    .login-form__field input:focus {
      outline: none;
      border-color: var(--admin-highlight);
      box-shadow: 0 0 0 3px var(--admin-highlight-dim);
    }

    .login-form__field input.is-valid {
      border-color: var(--admin-success);
      box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12);
    }

    .login-form__field input.is-invalid {
      border-color: #f87171;
      box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
    }

    .login-form__hint {
      font-size: 0.8125rem;
      color: var(--admin-muted);
      margin-top: 10px;
      min-height: 1.25em;
    }

    .login-form__hint.is-ok { color: var(--admin-success); }

    .login-form__submit {
      width: 100%;
      margin-top: 18px;
      height: 46px;
    }

    #admin-shell[hidden] { display: none !important; }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    body.admin-sidebar-open {
      overflow: hidden;
    }

    .admin-sidebar-backdrop {
      position: fixed;
      inset: 0;
      z-index: 90;
      border: 0;
      padding: 0;
      background: rgba(0, 0, 0, 0.58);
      backdrop-filter: blur(2px);
      cursor: pointer;
      opacity: 0;
      transition: opacity var(--arx-motion);
    }

    .admin-sidebar-backdrop:not([hidden]) {
      opacity: 1;
    }

    .admin-shell-grid {
      display: grid;
      grid-template-columns: var(--admin-sidebar-current-w) minmax(300px, 400px) minmax(0, 1fr);
      grid-template-rows: var(--admin-topbar-h) minmax(0, 1fr);
      grid-template-areas:
        "sidebar topbar topbar"
        "sidebar editor preview";
      min-height: 100vh;
      background: var(--arx-ambient-glow), var(--admin-bg);
      transition: grid-template-columns 0.28s ease;
    }

    .admin-shell-grid.is-sidebar-collapsed {
      --admin-sidebar-current-w: 0px;
    }

    .admin-shell-grid.is-sidebar-collapsed .admin-sidebar {
      visibility: hidden;
      pointer-events: none;
    }

    .admin-shell-grid.is-content-mode {
      grid-template-columns: var(--admin-sidebar-current-w) minmax(0, 1fr) minmax(320px, 42vw);
      grid-template-areas:
        "sidebar topbar topbar"
        "sidebar content preview";
    }

    .admin-shell-grid.is-content-mode .admin-editor { display: none !important; }
    .admin-shell-grid.is-content-mode .content-panel { display: flex !important; }

    .admin-topbar {
      grid-area: topbar;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 0 24px;
      background: var(--arx-surface-highlight), var(--admin-bg);
      border-bottom: 1px solid var(--admin-border);
      min-height: var(--admin-topbar-h);
      backdrop-filter: blur(8px);
    }

    .admin-topbar__lead {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      flex: 1;
    }

    .admin-sidebar-toggle {
      flex-shrink: 0;
      width: 40px;
      height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--admin-border-strong);
      border-radius: var(--arx-radius-sm);
      background: var(--admin-panel-2);
      color: var(--admin-text);
      cursor: pointer;
      transition:
        border-color var(--arx-motion),
        background var(--arx-motion),
        color var(--arx-motion),
        box-shadow var(--arx-motion);
    }

    .admin-sidebar-toggle:hover {
      border-color: var(--admin-highlight);
      color: var(--admin-highlight);
      background: rgba(255, 205, 0, 0.06);
    }

    .admin-sidebar-toggle:focus-visible {
      outline: none;
      border-color: var(--admin-highlight);
      box-shadow: 0 0 0 3px var(--admin-highlight-dim);
    }

    .admin-sidebar-toggle[aria-expanded="false"] .admin-sidebar-toggle__icon {
      transform: scaleX(-1);
    }

    .admin-sidebar-toggle__icon {
      display: block;
      transition: transform var(--arx-motion);
    }

    .admin-topbar__breadcrumb {
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--admin-text);
      letter-spacing: -0.01em;
    }

    .admin-topbar__actions {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      padding-left: 16px;
      margin-left: 8px;
      border-left: 1px solid var(--admin-border-strong);
    }

    .admin-ui-lang {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .admin-ui-lang__label {
      font-size: 0.6875rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--arx-text-muted);
      white-space: nowrap;
    }

    .admin-ui-lang .segmented button {
      min-width: 36px;
      padding: 6px 10px;
    }

    .product-lang-label {
      display: block;
      font-size: 0.6875rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--arx-text-muted);
      margin-bottom: 8px;
    }

    .preview-lang-wrap {
      display: flex;
      align-items: center;
    }

    .admin-preview__controls .segmented button {
      padding: 6px 10px;
      font-size: 0.6875rem;
    }

    .preview-lang-toggle button {
      min-width: 2.25rem;
      padding-inline: 10px;
    }

    .admin-status {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 0.8125rem;
      font-weight: 500;
      color: var(--admin-success);
      background: rgba(74, 222, 128, 0.08);
      border: 1px solid rgba(74, 222, 128, 0.22);
      border-radius: 999px;
      padding: 6px 12px;
    }

    .admin-status::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--admin-success);
    }

    @media (max-width: 1200px) {
      .admin-shell-grid:not(.is-sidebar-collapsed) {
        grid-template-columns: 260px minmax(260px, 340px) minmax(0, 1fr);
      }

      .admin-shell-grid.is-content-mode:not(.is-sidebar-collapsed) {
        grid-template-columns: 260px minmax(0, 1fr) minmax(320px, 42vw);
      }
    }

    @media (max-width: 960px) {
      .admin-shell-grid,
      .admin-shell-grid.is-content-mode {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        grid-template-areas:
          "topbar"
          "editor"
          "content"
          "preview";
        transition: none;
      }

      .admin-shell-grid.is-sidebar-collapsed .admin-sidebar,
      .admin-shell-grid:not(.is-sidebar-open) .admin-sidebar {
        visibility: visible;
        pointer-events: auto;
      }

      .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 100;
        width: min(320px, calc(100vw - 3rem));
        max-width: 100%;
        max-height: none;
        border-right: 1px solid var(--admin-border);
        box-shadow: var(--admin-shadow);
        transform: translateX(-105%);
        transition: transform 0.28s ease;
      }

      .admin-shell-grid.is-sidebar-open .admin-sidebar {
        transform: translateX(0);
      }

      .admin-sidebar-backdrop {
        display: block;
      }

      .admin-editor,
      .content-panel {
        border-right: 0;
        border-bottom: 1px solid var(--admin-border);
        max-height: none;
      }

      .admin-preview {
        max-height: none;
        min-height: 60vh;
      }
    }

    @media (max-width: 960px) {
      .admin-shell-grid.is-sidebar-collapsed .admin-sidebar {
        transform: translateX(-105%);
      }

      .admin-topbar,
      .admin-preview__header {
        padding-left: 16px;
        padding-right: 16px;
      }

      .admin-editor,
      .content-panel {
        padding-left: 16px;
        padding-right: 16px;
      }

      .preview-page-toggle button,
      .preview-lang-toggle button,
      .segmented button {
        font-size: 0.6875rem;
        padding: 6px 8px;
      }
    }

    @media (min-width: 961px) {
      .admin-sidebar-backdrop {
        display: none !important;
      }
    }

    .admin-sidebar {
      grid-area: sidebar;
      background: var(--admin-panel);
      border-right: 1px solid var(--admin-border);
      padding: 0;
      display: flex;
      flex-direction: column;
      max-height: 100vh;
      overflow: hidden;
      min-width: 0;
      transition: visibility 0.28s ease;
    }

    .admin-brand {
      padding: 20px 20px 12px;
      border-bottom: 1px solid var(--admin-border);
      background: var(--arx-surface-highlight), var(--admin-panel);
    }

    .admin-brand__logo {
      display: block;
      width: 168px;
      max-width: 100%;
      height: auto;
    }

    .admin-brand__tagline {
      margin-top: 8px;
      font-size: 0.5625rem;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--admin-muted);
    }

    .admin-mode-nav {
      display: flex;
      gap: 0;
      padding: 0 12px;
      border-bottom: 1px solid var(--admin-border);
    }

    .admin-mode-nav button {
      flex: 1;
      border: 0;
      border-bottom: 2px solid transparent;
      background: transparent;
      color: var(--admin-muted);
      border-radius: 0;
      padding: 12px 10px;
      font-family: inherit;
      font-size: 0.8125rem;
      font-weight: 600;
      letter-spacing: -0.01em;
      text-transform: none;
      cursor: pointer;
      transition: color 0.15s, border-color 0.15s;
    }

    .admin-mode-nav button:hover {
      color: var(--admin-text);
      background: rgba(255, 255, 255, 0.04);
    }

    .admin-mode-nav button.is-active {
      color: var(--admin-text);
      background: rgba(255, 255, 255, 0.06);
      border-bottom-color: var(--admin-highlight);
    }

    .admin-sidebar__installers {
      display: flex;
      flex-direction: column;
      flex: 1;
      min-height: 0;
      overflow: hidden;
    }

    .admin-sidebar__installers[hidden] { display: none !important; }

    .admin-sidebar__scroll {
      flex: 1;
      overflow-y: auto;
      min-height: 0;
      position: relative;
    }

    .admin-sidebar__head {
      padding: 16px 16px 12px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .admin-sidebar__title {
      font-size: 0.8125rem;
      font-weight: 600;
      letter-spacing: -0.01em;
      text-transform: none;
      color: var(--admin-muted);
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .client-count {
      font-size: 0.6875rem;
      font-weight: 600;
      letter-spacing: 0;
      text-transform: none;
      color: var(--admin-muted);
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--admin-border);
      border-radius: 999px;
      padding: 2px 8px;
      flex-shrink: 0;
    }

    .add-client-toggle {
      width: 100%;
      justify-content: center;
      min-height: 44px;
    }

    .client-search-wrap {
      padding: 0 16px 10px;
      flex-shrink: 0;
    }

    .client-search {
      width: 100%;
      height: 40px;
      border: 1px solid var(--admin-border-strong);
      border-radius: var(--admin-radius);
      padding: 0 12px 0 34px;
      font: inherit;
      font-size: 0.875rem;
      color: var(--admin-text);
      background: var(--admin-panel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px center;
      transition: border-color var(--arx-motion), box-shadow var(--arx-motion);
    }

    .client-search::placeholder { color: #6b7280; }

    .client-search:focus {
      outline: none;
      border-color: var(--admin-highlight);
      box-shadow: 0 0 0 3px var(--admin-highlight-dim);
    }

    .client-search::-webkit-search-cancel-button {
      cursor: pointer;
    }

    .client-list {
      list-style: none;
    }

    .client-list__section,
    .client-list__letter {
      position: sticky;
      top: 0;
      z-index: 2;
      padding: 8px 16px 6px;
      font-size: 0.6875rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--admin-muted);
      background: rgba(20, 20, 20, 0.96);
      backdrop-filter: blur(6px);
      border-bottom: 1px solid var(--admin-border);
    }

    .client-list__letter {
      top: 0;
      color: var(--admin-highlight);
      background: rgba(26, 26, 26, 0.98);
    }

    .client-list__row {
      display: flex;
      align-items: stretch;
      border-left: 3px solid transparent;
      transition: background var(--arx-motion), border-color var(--arx-motion);
    }

    .client-list__row:hover {
      background: rgba(255, 255, 255, 0.03);
    }

    .client-list__row:has(.client-list__btn.is-active) {
      background: var(--admin-highlight-dim);
      border-left-color: var(--admin-highlight);
    }

    .client-list__btn {
      flex: 1;
      min-width: 0;
      display: block;
      text-align: left;
      border: 0;
      background: transparent;
      padding: 10px 8px 10px 13px;
      font: inherit;
      cursor: pointer;
      color: var(--admin-text);
    }

    .client-list__btn.is-active .client-list__name {
      font-weight: 700;
      color: #fff;
    }

    .client-list__main {
      display: block;
      min-width: 0;
    }

    .client-list__name {
      display: block;
      font-size: 0.875rem;
      line-height: 1.3;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .client-list__meta {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 3px;
      min-width: 0;
    }

    .client-list .client-id {
      font-size: 0.6875rem;
      color: var(--admin-muted);
      font-weight: 400;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 1;
      min-width: 0;
    }

    .client-list__swatches {
      display: inline-flex;
      gap: 3px;
      flex-shrink: 0;
    }

    .client-list__swatch {
      width: 10px;
      height: 10px;
      border-radius: 3px;
      border: 1px solid rgba(0, 0, 0, 0.12);
    }

    .client-list__theme {
      flex-shrink: 0;
      font-size: 0.625rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--admin-highlight);
      background: transparent;
      border-radius: 4px;
      padding: 1px 0;
    }

    .client-list__fav {
      flex-shrink: 0;
      width: 34px;
      border: 0;
      background: transparent;
      color: #4b5563;
      font-size: 1rem;
      line-height: 1;
      cursor: pointer;
      padding: 0;
      align-self: center;
    }

    .client-list__fav:hover {
      color: var(--admin-highlight);
    }

    .client-list__fav.is-fav {
      color: var(--admin-highlight);
    }

    .client-list-empty {
      padding: 20px 16px;
      font-size: 0.875rem;
      color: var(--admin-muted);
      text-align: center;
    }

    .client-list-empty[hidden] { display: none !important; }

    .admin-sidebar__footer {
      margin-top: auto;
      padding: 16px;
      border-top: 1px solid var(--admin-border);
      font-size: 0.625rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: #6b7280;
      text-align: center;
    }

    .add-client-form {
      padding: 14px 16px 16px;
      margin: 0 16px 12px;
      border: 1px solid var(--admin-border-strong);
      border-radius: var(--admin-radius);
      background: var(--admin-panel-2);
    }

    .add-client-form[hidden] { display: none; }

    .add-client-form input {
      width: 100%;
      height: 38px;
      border: 1px solid var(--admin-border-strong);
      border-radius: 10px;
      padding: 0 10px;
      font: inherit;
      color: var(--admin-text);
      background: var(--admin-bg);
      margin-bottom: 8px;
    }

    .admin-editor {
      grid-area: editor;
      background: var(--admin-bg);
      border-right: 1px solid var(--admin-border);
      padding: 24px 22px;
      overflow-y: auto;
      max-height: calc(100vh - var(--admin-topbar-h));
    }

    .admin-editor__empty {
      color: var(--admin-muted);
      font-size: 0.9375rem;
      padding-top: 8px;
    }

    .admin-editor h2 {
      font-size: 1.0625rem;
      margin-bottom: 20px;
      color: #fff;
    }

    .editor-section {
      border: 1px solid var(--arx-border);
      border-radius: var(--arx-radius);
      margin-bottom: var(--arx-space-sm);
      overflow: hidden;
      background: var(--arx-surface);
      transition: border-color var(--arx-motion);
    }

    .editor-section[open] {
      border-color: var(--arx-border-strong);
    }

    .editor-section__summary {
      cursor: pointer;
      list-style: none;
      padding: var(--arx-space-sm) var(--arx-space-md);
      font-size: 0.875rem;
      font-weight: 600;
      letter-spacing: -0.01em;
      text-transform: none;
      color: var(--arx-text);
      background: var(--arx-surface-2);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: var(--arx-space-sm);
      transition: color var(--arx-motion), background var(--arx-motion);
    }

    .editor-section__summary:hover {
      color: #fff;
    }

    .editor-section__summary::-webkit-details-marker { display: none; }

    .editor-section__summary::after {
      content: "";
      width: 7px;
      height: 7px;
      border-right: 2px solid var(--arx-text-muted);
      border-bottom: 2px solid var(--arx-text-muted);
      transform: rotate(45deg);
      transition: transform var(--arx-motion);
      flex-shrink: 0;
    }

    .editor-section[open] > .editor-section__summary::after {
      transform: rotate(-135deg);
    }

    .editor-section__body {
      padding: var(--arx-space-md);
    }

    /* Segmented control — refined tab style (underline accent) */
    .segmented {
      display: inline-flex;
      align-items: stretch;
      padding: 0;
      gap: 0;
      background: var(--arx-surface);
      border: 1px solid var(--arx-border-strong);
      border-radius: var(--arx-radius-sm);
      overflow: hidden;
    }

    .segmented button {
      border: 0;
      border-right: 1px solid var(--arx-border);
      border-radius: 0;
      background: transparent;
      color: var(--arx-text-muted);
      font: inherit;
      font-size: 0.75rem;
      font-weight: 600;
      padding: 8px 12px;
      cursor: pointer;
      white-space: nowrap;
      box-shadow: inset 0 -2px 0 transparent;
      transition: color var(--arx-motion), background var(--arx-motion), box-shadow var(--arx-motion);
    }

    .segmented button:last-child {
      border-right: 0;
    }

    .segmented button:hover:not(.is-active):not(:disabled) {
      color: var(--arx-text);
      background: rgba(255, 255, 255, 0.04);
    }

    .segmented button.is-active {
      color: var(--arx-text);
      background: rgba(255, 255, 255, 0.06);
      box-shadow: inset 0 -2px 0 var(--arx-accent);
    }

    .segmented--block {
      display: flex;
      width: 100%;
    }

    .segmented--block button {
      flex: 1;
    }

    /* Inline notifications */
    .inline-notice {
      margin-top: var(--arx-space-sm);
      padding: 10px 14px;
      border-radius: var(--arx-radius-sm);
      font-size: 0.8125rem;
      font-weight: 500;
      line-height: 1.45;
      border: 1px solid transparent;
      animation: inline-notice-in var(--arx-motion) ease;
    }

    .inline-notice[hidden] { display: none !important; }

    .inline-notice--success {
      color: var(--arx-success);
      background: rgba(74, 222, 128, 0.08);
      border-color: rgba(74, 222, 128, 0.22);
    }

    .inline-notice--error {
      color: #fca5a5;
      background: rgba(248, 113, 113, 0.08);
      border-color: rgba(248, 113, 113, 0.28);
    }

    .content-panel__notice {
      margin: 0 0 var(--arx-space-md);
    }

    @keyframes inline-notice-in {
      from { opacity: 0; transform: translateY(-4px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes arx-live-pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.45; }
    }

    @keyframes arx-spin {
      to { transform: rotate(360deg); }
    }

    .admin-loading {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 28px 16px;
      color: var(--arx-text-muted);
      font-size: 0.875rem;
    }

    .admin-loading[hidden] { display: none !important; }

    .admin-loading__spinner {
      width: 22px;
      height: 22px;
      border: 2px solid var(--arx-border-strong);
      border-top-color: var(--arx-accent);
      border-radius: 50%;
      animation: arx-spin 0.7s linear infinite;
      flex-shrink: 0;
    }

    .admin-loading--overlay {
      position: absolute;
      inset: 0;
      z-index: 5;
      background: rgba(10, 10, 10, 0.82);
      backdrop-filter: blur(2px);
    }

    .content-fields-wrap {
      position: relative;
      min-height: 120px;
    }

    .editor-form__head {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 20px;
    }

    .editor-form__head h2 {
      margin-bottom: 0;
    }

    .dirty-badge {
      display: inline-flex;
      align-items: center;
      font-size: 0.6875rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--arx-accent);
      background: var(--arx-accent-dim);
      border: 1px solid rgba(255, 205, 0, 0.35);
      border-radius: 999px;
      padding: 4px 10px;
    }

    .dirty-badge[hidden] { display: none !important; }

    .content-panel__toolbar .dirty-badge {
      margin-right: auto;
    }

    .field { margin-bottom: 18px; }

    .field-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px 16px;
      margin-bottom: 6px;
    }

    @media (max-width: 480px) {
      .field-grid { grid-template-columns: 1fr; }
    }

    .field label {
      display: block;
      font-size: 0.8125rem;
      font-weight: 600;
      margin-bottom: 6px;
    }

    .field input[type="text"],
    .field input[type="color"],
    .field select {
      width: 100%;
      border: 1px solid var(--admin-border-strong);
      border-radius: var(--admin-radius);
      font: inherit;
      color: var(--admin-text);
      background: var(--admin-panel-2);
      transition: border-color var(--arx-motion), box-shadow var(--arx-motion);
    }

    .field input[type="text"]:focus,
    .field select:focus {
      outline: none;
      border-color: var(--admin-highlight);
      box-shadow: 0 0 0 3px var(--admin-highlight-dim);
    }

    .field input[type="text"] {
      height: 40px;
      padding: 0 10px;
    }

    .field input[type="color"] {
      height: 40px;
      padding: 4px;
      cursor: pointer;
    }

    .field select {
      height: 40px;
      padding: 0 10px;
    }

    .field input:read-only {
      background: var(--admin-bg);
      color: var(--admin-muted);
    }

    .field-range {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .field-range input[type="range"] {
      flex: 1;
      accent-color: var(--admin-highlight);
    }

    .field-range output {
      min-width: 36px;
      text-align: right;
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--admin-muted);
    }

    .snippet-lang-toggle {
      margin-bottom: var(--arx-space-md);
    }

    .field-group-title {
      font-size: 0.8125rem;
      font-weight: 600;
      letter-spacing: -0.01em;
      text-transform: none;
      color: var(--admin-muted);
      margin: 0 0 12px;
    }

    .admin-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 24px;
    }

    .btn--small {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 24px;
    }

    .snippet-field {
      width: 100%;
      min-height: 88px;
      padding: 10px 12px;
      border: 1px solid var(--admin-border-strong);
      border-radius: var(--admin-radius);
      font: 0.75rem/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      color: #d1d5db;
      background: var(--admin-bg);
      resize: vertical;
    }

    .field-hint {
      margin-top: 8px;
      font-size: 0.8125rem;
      color: var(--admin-muted);
      line-height: 1.45;
    }

    .snippet-block {
      margin-bottom: 18px;
    }

    .snippet-block__head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 8px;
    }

    .snippet-block__head label {
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--admin-text);
    }

    .btn--small {
      padding: 6px 10px;
      font-size: 0.8125rem;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--admin-border-strong);
      background: var(--admin-panel);
      color: var(--admin-text);
      font: inherit;
      font-size: 0.875rem;
      font-weight: 600;
      padding: 9px 14px;
      border-radius: var(--arx-radius-sm);
      cursor: pointer;
      transition: background var(--arx-motion), border-color var(--arx-motion), color var(--arx-motion), box-shadow var(--arx-motion);
    }

    .btn:hover {
      border-color: rgba(255, 255, 255, 0.22);
      background: rgba(255, 255, 255, 0.06);
    }

    .btn--ghost {
      background: transparent;
      color: var(--admin-text);
      border-color: var(--admin-border-strong);
    }

    .btn--ghost:hover {
      color: #fff;
      border-color: rgba(255, 255, 255, 0.35);
      background: rgba(255, 255, 255, 0.04);
    }

    .btn--primary {
      background: var(--arx-surface);
      border-color: var(--arx-border-strong);
      color: var(--arx-text);
      font-weight: 600;
      box-shadow: inset 0 -2px 0 var(--arx-accent);
    }

    .btn--primary:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.22);
      box-shadow: inset 0 -2px 0 var(--arx-accent);
    }

    .btn--danger {
      color: #fca5a5;
      border-color: rgba(248, 113, 113, 0.35);
      background: rgba(248, 113, 113, 0.08);
    }

    .btn--danger:hover {
      background: rgba(248, 113, 113, 0.14);
    }

    .btn:disabled {
      opacity: 0.55;
      cursor: not-allowed;
    }

    .admin-preview {
      grid-area: preview;
      display: flex;
      flex-direction: column;
      background: var(--admin-bg);
      min-height: 0;
      max-height: calc(100vh - var(--admin-topbar-h));
      overflow-y: auto;
    }

    .admin-preview__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: nowrap;
      padding: 8px 16px;
      min-height: 48px;
      background: var(--admin-bg);
      border-bottom: 1px solid var(--admin-border);
      position: sticky;
      top: 0;
      z-index: 1;
    }

    .admin-preview__title {
      margin: 0;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--admin-muted);
      display: inline-flex;
      align-items: center;
      gap: var(--arx-space-xs);
    }

    .admin-preview__title::before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--arx-success);
      animation: arx-live-pulse 2s ease infinite;
      flex-shrink: 0;
    }

    .admin-preview__controls {
      display: flex;
      flex-wrap: nowrap;
      gap: 6px;
      align-items: center;
      min-width: 0;
    }

    .admin-preview__controls .preview-page-toggle {
      flex-shrink: 1;
      min-width: 0;
    }

    .admin-preview__controls .preview-page-toggle button {
      padding-inline: 8px;
    }

    .preview-refresh-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      padding: 0;
      border: 1px solid var(--admin-border-strong);
      border-radius: var(--arx-radius-sm);
      background: var(--admin-panel);
      color: var(--admin-muted);
      cursor: pointer;
      flex-shrink: 0;
      transition: color var(--arx-motion), border-color var(--arx-motion), background var(--arx-motion);
    }

    .preview-refresh-btn:hover {
      color: var(--admin-text);
      border-color: rgba(255, 255, 255, 0.22);
      background: rgba(255, 255, 255, 0.06);
    }

    .admin-preview__frame-wrap {
      flex: 1;
      padding: 16px 20px 20px;
      min-height: 0;
    }

    .admin-preview iframe {
      width: 100%;
      min-height: 600px;
      height: 600px;
      border: 0;
      background: #fff;
      display: block;
      border-radius: var(--admin-radius);
      box-shadow: var(--admin-shadow);
    }

    .toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(12px);
      background: var(--admin-panel-2);
      color: #fff;
      border: 1px solid var(--admin-border-strong);
      font-size: 0.875rem;
      padding: 10px 18px;
      border-radius: var(--admin-radius);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s, transform 0.2s;
      z-index: 100;
      max-width: min(90vw, 420px);
      text-align: center;
    }

    .toast.is-visible {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .toast--error { background: rgba(127, 29, 29, 0.95); border-color: rgba(248, 113, 113, 0.4); }

    .load-error {
      padding: 24px;
      color: #fca5a5;
    }

    .content-panel {
      grid-area: content;
      display: none;
      flex-direction: column;
      background: var(--admin-bg);
      border-right: 1px solid var(--admin-border);
      padding: 20px 22px;
      min-height: 0;
      max-height: calc(100vh - var(--admin-topbar-h));
      overflow: auto;
    }

    .content-panel[hidden] { display: none !important; }

    .content-panel__toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    .content-panel__notice {
      margin: 0 0 var(--arx-space-md);
    }

    .content-panel__actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .content-panel__hint {
      color: var(--admin-muted);
      font-size: 0.875rem;
      margin-bottom: 18px;
    }

    .content-field {
      border-top: 1px solid var(--admin-border);
      padding: 14px 0;
    }

    .content-field__label {
      display: block;
      font-size: 0.8125rem;
      font-weight: 700;
      color: var(--admin-text);
      margin-bottom: 10px;
    }

    .content-field__lang {
      display: grid;
      grid-template-columns: 42px 1fr;
      gap: 10px;
      align-items: start;
      margin-bottom: 8px;
    }

    .content-field__lang-tag {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--admin-muted);
      padding-top: 10px;
    }

    .content-field input,
    .content-field textarea {
      width: 100%;
      border: 1px solid var(--admin-border-strong);
      border-radius: var(--admin-radius);
      padding: 10px 12px;
      font: inherit;
      font-size: 0.875rem;
      color: var(--admin-text);
      background: var(--admin-panel-2);
      resize: vertical;
    }

    .content-field input:focus,
    .content-field textarea:focus {
      outline: none;
      border-color: var(--admin-highlight);
      box-shadow: 0 0 0 3px var(--admin-highlight-dim);
    }

    .content-section {
      border: 1px solid var(--admin-border);
      border-radius: var(--admin-radius);
      margin-bottom: 14px;
      overflow: hidden;
      background: var(--admin-panel);
    }

    .content-section__summary {
      cursor: pointer;
      list-style: none;
      padding: 12px 16px;
      font-size: 0.875rem;
      font-weight: 700;
      color: var(--admin-text);
      background: var(--admin-panel-2);
    }

    .content-section__summary::-webkit-details-marker { display: none; }

    .content-section__body {
      padding: 4px 16px 12px;
    }

    .content-lang-grid {
      display: grid;
      grid-template-columns: 52px 1fr 1fr;
      gap: 8px 12px;
      align-items: start;
      margin-bottom: 8px;
    }

    .content-lang-grid__head {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--admin-muted);
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .content-lang-grid__tag {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--admin-muted);
      padding-top: 10px;
    }

    .content-subfield-label {
      grid-column: 1 / -1;
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--admin-muted);
      margin-top: 4px;
    }
