* {
      box-sizing: border-box;
      margin: 0;
      padding: 0
    }

    

    html,
    body {
      font-family: 'Inter', sans-serif;
      background: var(--cream);
      color: var(--ink);
      min-height: 100vh;
      font-size: 14px
    }

    /* NAV */
    .nav {
      height: 56px;
      background: #fff;
      border-bottom: 1px solid var(--bdr);
      display: flex;
      align-items: center;
      padding: 0 1.5rem;
      gap: .5rem;
      position: sticky;
      top: 0;
      z-index: 300
    }

    .nav-logo {
      font-family: 'Playfair Display', serif;
      font-size: 21px;
      font-weight: 700;
      margin-right: auto;
      color: var(--ink);
      text-decoration: none
    }

    .nav-logo span {
      color: var(--gold)
    }

    .nav-links {
      display: flex;
      gap: .25rem;
      align-items: center
    }

    .nav-links a {
      font-size: 13px;
      color: var(--muted);
      text-decoration: none;
      padding: 6px 11px;
      border-radius: var(--r);
      transition: all .18s;
      font-weight: 500
    }

    .nav-links a:hover {
      color: var(--ink);
      background: var(--cream)
    }

    .nav-links a.active {
      color: var(--ink);
      background: var(--gold-bg);
      font-weight: 600
    }

    .nav-links a.danger:hover {
      background: var(--red-bg);
      color: var(--red)
    }

    .nav-badge {
      background: var(--red);
      color: #fff;
      border-radius: 20px;
      padding: 1px 6px;
      font-size: 10px;
      margin-left: 3px;
      font-weight: 700;
      vertical-align: middle
    }

    /* HAMBURGER */
    .ham-btn {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 6px 8px;
      border: none;
      background: none;
      border-radius: 6px;
      flex-shrink: 0
    }

    .ham-btn span {
      display: block;
      width: 20px;
      height: 2px;
      background: var(--ink);
      border-radius: 2px;
      transition: transform .25s, opacity .25s
    }

    .ham-btn.open span:nth-child(1) {
      transform: translateY(7px) rotate(45deg)
    }

    .ham-btn.open span:nth-child(2) {
      opacity: 0;
      transform: scaleX(0)
    }

    .ham-btn.open span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg)
    }

    .mobile-menu {
      display: none;
      position: fixed;
      top: 56px;
      left: 0;
      right: 0;
      background: #fff;
      border-bottom: 1px solid var(--bdr);
      padding: .75rem 1rem;
      z-index: 299;
      flex-direction: column;
      gap: 2px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, .12)
    }

    .mobile-menu.open {
      display: flex
    }

    .mobile-menu a {
      font-size: 14px;
      color: var(--ink);
      text-decoration: none;
      padding: 10px 14px;
      border-radius: var(--r);
      font-weight: 500;
      display: block
    }

    .mobile-menu a:hover {
      background: var(--cream)
    }

    .mobile-menu a.active {
      background: var(--gold-bg);
      color: var(--gold-d);
      font-weight: 600
    }

    @media(max-width:768px) {
      .nav-links {
        display: none
      }

      .ham-btn {
        display: flex
      }
    }

    /* PAGE */
    .page {
      max-width: 1180px;
      margin: 0 auto;
      padding: 2.5rem 3rem
    }

    @media(max-width:900px) {
      .page {
        padding: 2rem 2rem
      }
    }

    @media(max-width:600px) {
      .page {
        padding: 1.25rem 1rem
      }
    }

    .page-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1.5rem;
      gap: .75rem;
      flex-wrap: wrap
    }

    .page-title {
      font-family: 'Playfair Display', serif;
      font-size: 28px;
      font-weight: 700;
      letter-spacing: -0.01em;
      color: var(--ink);
    }

    /* CARDS */
    .card {
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.6);
      border-radius: var(--r-lg);
      overflow: hidden;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(0, 0, 0, 0.02);
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .card:hover {
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.03);
      transform: translateY(-2px);
    }

    .card-head {
      padding: .85rem 1.25rem;
      border-bottom: 1px solid var(--bdr);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: .75rem
    }

    .card-title {
      font-size: 13px;
      font-weight: 600
    }

    .card-body {
      padding: 1.25rem
    }

    /* FORM */
    .field {
      margin-bottom: 14px
    }

    .field label {
      display: block;
      font-size: 11px;
      color: var(--muted);
      margin-bottom: 5px;
      letter-spacing: .04em;
      font-weight: 600;
      text-transform: uppercase
    }

    .field input,
    .field select,
    .field textarea {
      width: 100%;
      padding: 10px 14px;
      border: 1px solid rgba(0,0,0,0.08);
      border-radius: var(--r);
      font-size: 13px;
      font-family: 'Inter', sans-serif;
      color: var(--ink);
      background: rgba(255,255,255,0.8);
      outline: none;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
    }

    .field input:focus,
    .field select:focus,
    .field textarea:focus {
      border-color: var(--gold);
      box-shadow: 0 0 0 4px var(--gold-bg), inset 0 1px 2px rgba(0,0,0,0.02);
      background: #fff;
    }

    .field textarea {
      resize: vertical;
      min-height: 70px;
      line-height: 1.6
    }

    .field input[type=color] {
      padding: 3px 5px;
      height: 38px;
      cursor: pointer
    }

    .row2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px
    }

    .row3 {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 12px
    }

    @media(max-width:600px) {

      .row2,
      .row3 {
        grid-template-columns: 1fr
      }
    }

    /* BUTTONS */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 18px;
      border-radius: var(--r);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      border: 1px solid var(--bdr2);
      background: #fff;
      color: var(--ink);
      font-family: 'Inter', sans-serif;
      text-decoration: none;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      white-space: nowrap;
      line-height: 1;
      box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    }

    .btn:hover {
      border-color: var(--gold);
      color: var(--gold-d);
      box-shadow: 0 4px 12px rgba(201,168,76,0.1);
      transform: translateY(-1px);
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--gold), #B5933C);
      border-color: transparent;
      color: #fff;
      box-shadow: 0 4px 15px rgba(201,168,76,0.25);
    }

    .btn-primary:hover {
      background: linear-gradient(135deg, #B5933C, #A08030);
      border-color: transparent;
      color: #fff;
      box-shadow: 0 6px 20px rgba(201,168,76,0.35);
      transform: translateY(-2px);
    }

    .btn-danger {
      border-color: var(--red-bdr);
      color: var(--red)
    }

    .btn-danger:hover {
      background: var(--red-bg);
      border-color: var(--red)
    }

    .btn-sm {
      padding: 5px 11px;
      font-size: 12px
    }

    .btn-lg {
      padding: 11px 22px;
      font-size: 15px;
      font-weight: 600;
      font-family: 'Playfair Display', serif
    }

    .btn-icon {
      padding: 7px;
      border-radius: var(--r);
      border: 1.5px solid var(--bdr2);
      background: #fff;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: all .18s;
      color: var(--muted);
      line-height: 1
    }

    .btn-icon.danger:hover {
      border-color: var(--red);
      background: var(--red-bg);
      color: var(--red)
    }

    /* BADGES */
    .badge {
      display: inline-flex;
      align-items: center;
      padding: 3px 9px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 600
    }

    .badge-new {
      background: var(--red-bg);
      color: var(--red)
    }

    .badge-quoted {
      background: #fffbeb;
      color: #92400e
    }

    .badge-accepted,
    .badge-active {
      background: var(--green-bg);
      color: var(--green)
    }

    .badge-paid {
      background: #ecfdf5;
      color: #065f46
    }

    .badge-production {
      background: #ede9fe;
      color: #5b21b6
    }

    .badge-done,
    .badge-inactive {
      background: var(--cream);
      color: var(--muted)
    }

    /* STATS */
    .stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 14px;
      margin-bottom: 1.75rem
    }

    .stat {
      background: rgba(255,255,255,0.7);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(255,255,255,0.6);
      border-radius: var(--r-lg);
      padding: 1.4rem 1.25rem;
      box-shadow: 0 8px 30px rgba(0,0,0,0.02);
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
    }
    
    .stat:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 40px rgba(0,0,0,0.04);
    }

    .stat-val {
      font-family: 'Playfair Display', serif;
      font-size: 32px;
      font-weight: 700;
      line-height: 1
    }

    .stat-lbl {
      font-size: 11px;
      color: var(--muted);
      margin-top: 5px;
      text-transform: uppercase;
      letter-spacing: .06em;
      font-weight: 600
    }

    /* ALERTS */
    .alert {
      padding: 10px 14px;
      border-radius: var(--r);
      font-size: 13px;
      margin-bottom: 1rem;
      border: 1px solid
    }

    .alert-success {
      background: var(--green-bg);
      border-color: var(--green-bdr);
      color: var(--green)
    }

    .alert-error {
      background: var(--red-bg);
      border-color: var(--red-bdr);
      color: var(--red)
    }

    .alert-info {
      background: var(--blue-bg);
      border-color: var(--blue-bdr);
      color: var(--blue)
    }

    /* TABS */
    .tabs {
      display: flex;
      border-bottom: 1px solid var(--bdr);
      gap: 0;
      overflow-x: auto;
      scrollbar-width: none
    }

    .tabs::-webkit-scrollbar {
      display: none
    }

    .tab {
      padding: 11px 18px;
      font-size: 13px;
      color: var(--muted);
      cursor: pointer;
      border-bottom: 2px solid transparent;
      margin-bottom: -1px;
      transition: all .18s;
      background: none;
      border-top: none;
      border-left: none;
      border-right: none;
      font-family: 'Inter', sans-serif;
      font-weight: 500;
      white-space: nowrap
    }

    .tab:hover {
      color: var(--ink)
    }

    .tab.active {
      color: var(--gold-d);
      border-bottom-color: var(--gold);
      font-weight: 600
    }

    .tab-panel {
      display: none
    }

    .tab-panel.active {
      display: block
    }

    /* CFG CARDS */
    .cfg-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 16px
    }

    @media(max-width:700px) {
      .cfg-grid {
        grid-template-columns: 1fr
      }
    }

    .cfg-card {
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.6);
      border-radius: var(--r-lg);
      overflow: hidden;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(0, 0, 0, 0.02);
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .cfg-card:hover {
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.03);
      transform: translateY(-2px);
    }

    .cfg-card-top {
      padding: 1rem 1.25rem;
      border-bottom: 1px solid var(--bdr)
    }

    .cfg-card-name {
      font-family: 'Playfair Display', serif;
      font-size: 17px;
      font-weight: 700;
      margin-bottom: 4px
    }

    .cfg-card-desc {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.5
    }

    .cfg-card-meta {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 12px;
      color: var(--muted);
      padding: .75rem 1.25rem;
      background: var(--cream);
      flex-wrap: wrap
    }

    .cfg-card-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: .75rem 1.25rem;
      flex-wrap: nowrap
    }

    /* MISC */
    .mono {
      font-family: 'Courier New', monospace;
      font-size: 11px;
      background: var(--cream);
      padding: 2px 6px;
      border-radius: 4px;
      color: var(--muted);
      border: 1px solid var(--bdr)
    }

    .embed-code {
      background: var(--cream);
      border: 1px solid var(--bdr);
      border-radius: var(--r);
      padding: 14px;
      font-family: 'Courier New', monospace;
      font-size: 11px;
      line-height: 1.7;
      word-break: break-all;
      color: var(--muted)
    }

    .divider {
      height: 1px;
      background: var(--bdr);
      margin: 1.25rem 0
    }

    .text-muted {
      color: var(--muted) !important
    }

    .text-sm {
      font-size: 12px
    }

    .text-xs {
      font-size: 11px
    }

    .flex {
      display: flex;
      align-items: center;
      gap: 8px
    }

    .ml-auto {
      margin-left: auto
    }

    .drag-handle {
      color: var(--muted);
      cursor: grab;
      padding: 2px 6px;
      font-size: 15px;
      user-select: none
    }

    .drag-handle:hover {
      color: var(--gold)
    }

    .dragging {
      opacity: .35;
      background: var(--gold-bg) !important
    }

    #toast {
      position: fixed;
      bottom: 1.5rem;
      right: 1.5rem;
      padding: 11px 18px;
      border-radius: var(--r);
      font-size: 13px;
      font-family: 'Inter', sans-serif;
      font-weight: 500;
      opacity: 0;
      transition: opacity .3s;
      z-index: 9999;
      pointer-events: none;
      box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
      color: #fff
    }

    /* EMPTY */
    .empty {
      padding: 3.5rem 2rem;
      text-align: center;
      color: var(--muted)
    }

    .empty-icon {
      font-size: 36px;
      margin-bottom: .75rem;
      opacity: .3;
      display: block
    }

    .empty-text {
      font-size: 13px;
      line-height: 1.6
    }

    /* BUILDER */
    .builder-layout {
      display: grid;
      grid-template-columns: 270px 1fr;
      min-height: calc(100vh - 106px)
    }

    @media(max-width:768px) {
      .builder-layout {
        grid-template-columns: 1fr
      }
    }

    .steps-sidebar {
      background: #fff;
      border-right: 1px solid var(--bdr);
      display: flex;
      flex-direction: column
    }

    .steps-sidebar-head {
      padding: .85rem 1rem;
      border-bottom: 1px solid var(--bdr);
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .07em;
      display: flex;
      align-items: center;
      justify-content: space-between
    }

    .step-list {
      overflow-y: auto;
      padding: .4rem 0
    }

    .step-row {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 9px 12px;
      cursor: pointer;
      border-left: 3px solid transparent;
      transition: all .15s;
      user-select: none
    }

    .step-row:hover {
      background: var(--cream)
    }

    .step-row.active {
      background: var(--gold-bg);
      border-left-color: var(--gold)
    }

    .step-row-num {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      border: 1.5px solid var(--bdr2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      font-weight: 700;
      flex-shrink: 0;
      color: var(--muted)
    }

    .step-row.active .step-row-num {
      background: var(--gold);
      border-color: var(--gold);
      color: #fff
    }

    .step-row-name {
      font-size: 12px;
      font-weight: 500;
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap
    }

    .step-row-type {
      font-size: 9px;
      color: var(--muted);
      background: var(--cream);
      padding: 2px 7px;
      border-radius: 10px;
      flex-shrink: 0;
      font-weight: 600;
      text-transform: uppercase;
      border: 1px solid var(--bdr)
    }

    .step-row-del {
      opacity: 0;
      border: none;
      background: none;
      cursor: pointer;
      color: var(--muted);
      font-size: 14px;
      padding: 3px 5px;
      border-radius: 4px;
      transition: all .15s;
      flex-shrink: 0;
      line-height: 1
    }

    .step-row:hover .step-row-del {
      opacity: 1
    }

    .step-row-del:hover {
      color: var(--red);
      background: var(--red-bg)
    }

    .add-step-area {
      padding: .75rem;
      border-top: 1px solid var(--bdr)
    }

    .step-editor {
      flex: 1;
      padding: 1.5rem;
      overflow-y: auto;
      background: var(--cream)
    }

    .se-empty {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 300px;
      color: var(--muted);
      gap: .5rem;
      text-align: center
    }

    .opt-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 10px
    }

    .opt-row {
      display: flex;
      align-items: center;
      gap: 8px;
      background: #fff;
      border: 1.5px solid var(--bdr);
      border-radius: var(--r);
      padding: 9px 12px
    }

    .opt-row:hover {
      border-color: var(--bdr2)
    }

    .opt-inp-label {
      flex: 1;
      min-width: 0;
      border: 1.5px solid var(--bdr2);
      border-radius: 6px;
      padding: 6px 9px;
      font-size: 12px;
      font-family: 'Inter', sans-serif;
      outline: none;
      color: var(--ink)
    }

    .opt-inp-label:focus {
      border-color: var(--gold)
    }

    .opt-inp-value {
      width: 90px;
      border: 1.5px solid var(--bdr2);
      border-radius: 6px;
      padding: 6px 9px;
      font-size: 11px;
      font-family: 'Courier New', monospace;
      outline: none;
      color: var(--muted)
    }

    .opt-inp-delta {
      width: 75px;
      border: 1.5px solid var(--bdr2);
      border-radius: 6px;
      padding: 6px 9px;
      font-size: 12px;
      font-family: 'Inter', sans-serif;
      outline: none;
      color: var(--ink)
    }

    .opt-default {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      color: var(--muted);
      flex-shrink: 0;
      white-space: nowrap;
      font-weight: 500
    }

    .opt-default input[type=checkbox] {
      accent-color: var(--gold)
    }

    .opt-del {
      border: none;
      background: none;
      cursor: pointer;
      color: var(--muted);
      font-size: 16px;
      padding: 3px 5px;
      border-radius: 4px;
      transition: all .15s;
      flex-shrink: 0;
      line-height: 1
    }

    .opt-del:hover {
      color: var(--red);
      background: var(--red-bg)
    }

    .type-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
      gap: 8px
    }

    .type-card {
      padding: 10px 8px;
      border: 1.5px solid var(--bdr);
      border-radius: var(--r);
      cursor: pointer;
      transition: all .18s;
      text-align: center;
      background: #fff
    }

    .type-card:hover {
      border-color: var(--gold);
      background: var(--gold-bg)
    }

    .type-card.selected {
      border-color: var(--gold);
      background: var(--gold-bg);
      box-shadow: 0 0 0 3px var(--gold-bg)
    }

    .type-card-icon {
      font-size: 20px;
      margin-bottom: 5px
    }

    .type-card-name {
      font-size: 11px;
      font-weight: 700;
      color: var(--ink)
    }

    .type-card-desc {
      font-size: 10px;
      color: var(--muted);
      margin-top: 2px
    }

    .toolbar {
      height: 50px;
      background: #fff;
      border-bottom: 1px solid var(--bdr);
      display: flex;
      align-items: center;
      padding: 0 1.5rem;
      gap: .75rem
    }

    .toolbar-title {
      font-size: 14px;
      font-weight: 600;
      margin-right: auto
    }

    /* PIPELINE */
    .pipeline-wrap {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      padding-bottom: .5rem
    }

    .pipeline {
      display: grid;
      grid-template-columns: repeat(6, minmax(160px, 1fr));
      gap: 12px;
      min-width: 700px
    }

    .pipeline-head {
      padding: 9px 12px;
      border-radius: var(--r) var(--r) 0 0;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: space-between
    }

    .pipeline-body {
      background: var(--cream);
      border: 1px solid var(--bdr);
      border-top: none;
      border-radius: 0 0 var(--r) var(--r);
      padding: 8px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-height: 80px
    }

    .quote-card {
      background: #fff;
      border: 1px solid var(--bdr);
      border-radius: var(--r);
      padding: 10px;
      cursor: pointer;
      transition: all .15s;
      text-decoration: none;
      color: var(--ink);
      display: block
    }

    .quote-card:hover {
      border-color: var(--gold);
      box-shadow: 0 2px 8px rgba(201, 168, 76, .15)
    }

    /* FIELD ROWS (checkout) */
    .field-row {
      display: flex;
      align-items: center;
      gap: 8px;
      background: #fff;
      border: 1.5px solid var(--bdr);
      border-radius: var(--r);
      padding: 9px 12px
    }

    .fi-type {
      width: 110px;
      flex-shrink: 0;
      border: 1.5px solid var(--bdr2);
      border-radius: 6px;
      padding: 6px 9px;
      font-size: 12px;
      font-family: 'Inter', sans-serif;
      outline: none;
      color: var(--ink)
    }

    .fi-label {
      flex: 1;
      min-width: 0;
      border: 1.5px solid var(--bdr2);
      border-radius: 6px;
      padding: 6px 9px;
      font-size: 12px;
      font-family: 'Inter', sans-serif;
      outline: none;
      color: var(--ink)
    }

    .fi-placeholder {
      flex: 1;
      min-width: 0;
      border: 1.5px solid var(--bdr2);
      border-radius: 6px;
      padding: 6px 9px;
      font-size: 12px;
      font-family: 'Inter', sans-serif;
      outline: none;
      color: var(--muted)
    }

    .fi-req {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      color: var(--muted);
      flex-shrink: 0;
      white-space: nowrap;
      font-weight: 600
    }

    .fi-req input {
      accent-color: var(--gold)
    }

    .fi-del {
      border: none;
      background: none;
      cursor: pointer;
      color: var(--muted);
      font-size: 16px;
      padding: 3px 5px;
      border-radius: 4px;
      transition: all .15s;
      flex-shrink: 0;
      line-height: 1
    }

    .fi-del:hover {
      color: var(--red);
      background: var(--red-bg)
    }

    /* OPT EXTRAS */
    .opt-extra {
      display: none;
      flex-direction: column;
      gap: 8px;
      margin-top: 8px;
      padding-top: 8px;
      border-top: 1px solid var(--bdr)
    }

    .opt-row.expanded .opt-extra {
      display: flex
    }

    .opt-expand-btn {
      font-size: 11px;
      color: var(--muted);
      cursor: pointer;
      background: none;
      border: none;
      padding: 0;
      font-family: 'Inter', sans-serif;
      text-decoration: underline
    }

    .opt-expand-btn:hover {
      color: var(--gold-d)
    }

    .texture-preview {
      width: 100%;
      max-width: 120px;
      height: 70px;
      object-fit: cover;
      border-radius: 6px;
      border: 1px solid var(--bdr2)
    }

    .upload-zone {
      border: 2px dashed var(--bdr2);
      border-radius: var(--r);
      padding: 12px;
      text-align: center;
      cursor: pointer;
      transition: all .2s;
      background: var(--cream)
    }

    .upload-zone:hover {
      border-color: var(--gold);
      background: var(--gold-bg)
    }

    .upload-zone input[type=file] {
      display: none
    }

    /* FILTER */
    .filter-select {
      padding: 7px 10px;
      border: 1.5px solid var(--bdr2);
      border-radius: var(--r);
      font-size: 12px;
      font-family: 'Inter', sans-serif;
      background: #fff;
      color: var(--ink);
      outline: none;
      cursor: pointer
    }

    .filter-select:focus {
      border-color: var(--gold)
    }
  /* ── SIDEBAR LAYOUT (Phase 6) ── */
  /* Sidebar is fixed on desktop; admin-layout offsets by sidebar width */
  .admin-layout {
    margin-left: 230px;
    min-height: 100vh;
  }

  /* ── Sidebar ── */
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    background: rgba(26, 24, 21, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
    z-index: 200;
    flex-shrink: 0;
    box-shadow: 4px 0 24px rgba(0,0,0,0.2);
  }

  .sidebar::-webkit-scrollbar { width: 4px; }
  .sidebar::-webkit-scrollbar-track { background: transparent; }
  .sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

  /* Logo */
  .sb-logo {
    padding: 1.4rem 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    text-decoration: none;
  }

  .sb-logo-mark {
    font-size: 1.5rem;
    font-weight: 700;
    color: #C9A84C;
    font-family: 'Playfair Display', serif;
    letter-spacing: -.02em;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(201,168,76,0.3);
  }

  .sb-logo-sub {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(255,255,255,.35);
    display: block;
    font-weight: 600;
    margin-top: 1px;
  }

  /* Nav sections */
  .sb-section {
    padding: .9rem 0 .5rem;
  }

  .sb-section + .sb-section {
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .sb-section-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: rgba(255,255,255,.28);
    font-weight: 700;
    padding: 0 1.1rem .5rem;
    display: block;
  }

  /* Nav links */
  .sb-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem 1.1rem;
    margin: 2px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.58);
    text-decoration: none;
    transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
  }

  .sb-link:hover {
    color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.05);
    transform: translateX(4px);
  }

  .sb-link.active {
    color: #C9A84C;
    background: linear-gradient(90deg, rgba(201,168,76,0.15), rgba(201,168,76,0.02));
    font-weight: 600;
    box-shadow: inset 3px 0 0 #C9A84C;
  }

  .sb-icon {
    font-size: 15px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    opacity: .8;
  }

  .sb-badge {
    background: #c0392b;
    color: #fff;
    border-radius: 20px;
    padding: 1px 6px;
    font-size: 9px;
    font-weight: 700;
    margin-left: auto;
  }

  /* Footer links */
  .sb-footer {
    margin-top: auto;
    padding: .75rem 0;
    border-top: 1px solid rgba(255,255,255,0.07);
  }

  .sb-footer .sb-link {
    font-size: 12px;
  }

  .sb-link.live-link {
    color: rgba(201,168,76,.75);
  }
  .sb-link.live-link:hover {
    color: #C9A84C;
    background: rgba(201,168,76,.08);
  }

  .sb-link.danger-link:hover {
    color: #e74c3c;
    background: rgba(231,76,60,.08);
  }

  /* Main content area */
  .admin-main {
    min-width: 0;
    overflow-x: hidden;
  }

  /* Hide old top nav when sidebar is present */
  .admin-layout ~ .nav,
  body:has(.admin-layout) .nav,
  body:has(.admin-layout) .mobile-menu {
    display: none !important;
  }

  /* Mobile sidebar toggle */
  .sb-toggle {
    display: none;
    position: fixed;
    top: .8rem;
    left: .8rem;
    z-index: 400;
    background: #1A1815;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 9px 8px;
  }

  .sb-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: rgba(255,255,255,.8);
    border-radius: 2px;
    transition: all .22s;
  }

  .sb-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .sb-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .sb-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .sb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 199;
    backdrop-filter: blur(8px);
    transition: opacity 0.3s;
  }

  @media (max-width: 900px) {
    .admin-layout {
      margin-left: 0;
    }

    .sidebar {
      left: -260px;
      transition: left .3s cubic-bezier(.16,1,.3,1);
      z-index: 300;
    }

    .sidebar.open {
      left: 0;
    }

    .sb-overlay.open {
      display: block;
    }

    .sb-toggle {
      display: flex;
    }

    .admin-main {
      padding-top: 3.5rem;
    }
  }