

    
    @font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-var.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
    @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/jetbrains-mono-var.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
    @font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('fonts/source-serif-var.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
  
  :root {
    --bg:           #faf9f7;
    --bg-soft:      #f4f2ec;
    --bg-recess:    #fbfaf6;
    --panel:        #ffffff;
    --surface-2:    #f4f1ea;       
    --rule:         #e8e5dc;
    --rule-soft:    #efece5;
    --ink:          #1f1d1a;
    --ink-dim:      #4a4842;
    --ink-faint:    #7a766c;
    --ink-mute:     #a8a399;
    
    --accent:       #7B4F8C;       
    --accent-soft:  #f1eaf3;       
    --accent-strong: #6B4080;      
    --accent-soft-strong: #e7d9ec; 
    --on-accent:    #ffffff;       
    --warn:         #b6552c;       
    --warn-soft:    #f6eae0;
    --good:         #4a7a4f;
    --good-soft:    #e8efe6;
    --pass:         #2e7d32;       
    --warn-amber:   #a8650a;       
    --shadow-sm:    0 1px 2px rgba(20,18,14,0.04);
    --shadow-md:    0 1px 3px rgba(20,18,14,0.06), 0 0 0 1px rgba(20,18,14,0.02);
    --radius-sm:    4px;
    --radius:       6px;
    --radius-lg:    8px;
    --font-ui:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif:   'Source Serif 4', Charter, Georgia, serif;
    --font-mono:    'JetBrains Mono', Menlo, Consolas, monospace;
    
  }

  
  :root[data-theme="dark"] {
    --bg:           #16131b;
    --bg-soft:      #1e1a25;
    --bg-recess:    #100d15;
    --panel:        #211c29;
    --surface-2:    #2e2839;       
    --rule:         #322b3d;
    --rule-soft:    #262030;
    --ink:          #ece7f2;
    --ink-dim:      #b6aec4;
    --ink-faint:    #877f96;
    --ink-mute:     #6a6378;
    --accent:       #c495d8;
    --accent-soft:  rgba(196,149,216,0.14);
    --accent-strong: #d4abe3;
    --accent-soft-strong: rgba(196,149,216,0.24);
    --on-accent:    #1e1626;
    --warn:         #e09b6b;
    --warn-soft:    rgba(224,155,107,0.14);
    --good:         #84bd8a;
    --good-soft:    rgba(132,189,138,0.14);
    --pass:         #74c47a;       
    --warn-amber:   #e0a73f;       
    color-scheme: dark;
    --shadow-sm:    0 1px 2px rgba(0,0,0,0.40);
    --shadow-md:    0 1px 3px rgba(0,0,0,0.50), 0 0 0 1px rgba(0,0,0,0.30);
  }

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

  html, body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
  }

  .serif { font-family: var(--font-serif); }
  .mono  { font-family: var(--font-mono); }

  

  .app {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: 52px 1fr;
    min-height: 100vh;
  }

  
  .topbar {
    grid-column: 1 / -1;
    grid-row: 1;
    background: var(--panel);
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: center;
    padding: 0 18px;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 222px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
  }
  .brand-mark {
    width: 24px; height: 24px;
    display: block;
    flex-shrink: 0;
  }
  .brand-word {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--ink);
  }
  .brand-version {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-mute);
    margin-left: 2px;
  }
  .topbar-spacer { flex: 1; }
  .topbar-actions { display: flex; gap: 8px; align-items: center; }
  
  #topbarThemeToggle svg { width: 15px; height: 15px; display: block; }

  
  .sidebar {
    grid-column: 1;
    grid-row: 2;
    background: var(--bg-soft);
    border-right: 1px solid var(--rule);
    padding: 14px 10px;
    overflow-y: auto;
  }

  
  .app { transition: grid-template-columns 0.2s ease; }
  
  .app.is-sidebar-collapsed { grid-template-columns: 52px 1fr; }
  .app.is-sidebar-collapsed .sidebar { padding: 12px 6px; overflow-x: hidden; }
  .is-sidebar-collapsed .sidebar .nav-label,
  .is-sidebar-collapsed .sidebar .nav-label-toggle,
  .is-sidebar-collapsed .sidebar .nav-text,
  .is-sidebar-collapsed .sidebar .style-num,
  .is-sidebar-collapsed .sidebar .subnav-num,
  .is-sidebar-collapsed .sidebar .nav-divider,
  .is-sidebar-collapsed .sidebar .sidebar-foot,
  .is-sidebar-collapsed #presetGroup,
  .is-sidebar-collapsed #darkBgGroup,
  .is-sidebar-collapsed #shapePresetGroup,
  .is-sidebar-collapsed #motionPresetGroup { display: none; }
  
  .is-sidebar-collapsed .sidebar .nav-drawer-items { display: block; }
  .is-sidebar-collapsed .sidebar .nav-group { margin-bottom: 6px; }
  .is-sidebar-collapsed .sidebar svg.nav-icon { display: block; margin: 0 auto; }
  .is-sidebar-collapsed .sidebar .nav-item { justify-content: center; gap: 0; padding: 9px 0; }
  
  .is-sidebar-collapsed .sidebar #editSubnav {
    margin: 10px 8px 0;
    padding-top: 10px;
    border-top: 1px solid var(--rule);
  }

  
  svg.nav-icon { width: 16px; height: 16px; flex-shrink: 0; }
  .is-sidebar-collapsed .sidebar svg.nav-icon { width: 18px; height: 18px; }
  .nav-group { margin-bottom: 14px; }
  .nav-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 10px 6px;
  }
  .nav-divider {
    height: 1px;
    background: var(--rule);
    margin: 10px 0 14px;
  }
  
  .sidebar-foot {
    margin-top: 24px;
    padding: 12px 10px 4px;
    border-top: 1px solid var(--rule);
    font-size: 10px;
    color: var(--ink-faint);
    line-height: 1.6;
  }
  .sidebar-foot-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: 10.5px;
    color: var(--ink-mute);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    display: block;
    margin-bottom: 5px;
  }
  .sidebar-foot-link:hover { color: var(--accent); }
  .nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    color: var(--ink-dim);
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    line-height: 1.3;
  }
  .nav-item:hover { background: var(--rule-soft); color: var(--ink); }
  .nav-item.is-active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 500;
  }
  .nav-item .style-num,
  .nav-item .subnav-num {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-mute);
    width: 16px;
    flex-shrink: 0;
  }
  .nav-item.is-active .style-num,
  .nav-item.is-active .subnav-num { color: var(--accent); }

  
  .nav-group-advanced .nav-label {
    font-size: 10px;
    opacity: 0.7;
  }
  .nav-group-advanced .nav-item {
    font-size: 12.5px;
    color: var(--ink-faint);
  }
  .nav-group-advanced .nav-item:hover { color: var(--ink-dim); }
  .nav-group-advanced .nav-item.is-active { color: var(--accent); }
  .nav-group-advanced .nav-item .style-num { font-size: 9.5px; }

  .nav-label-toggle {
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 10px 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    text-align: left;
  }
  .nav-label-toggle:hover { color: var(--ink-dim); }
  .nav-label-toggle .drawer-chevron {
    display: inline-block;
    font-size: 9px;
    transition: transform 0.15s ease;
    width: 8px;
  }
  .nav-label-toggle[aria-expanded="true"] .drawer-chevron {
    transform: rotate(90deg);
  }
  .nav-drawer-items {
    display: none;
  }
  .nav-group-advanced[data-open="true"] .nav-drawer-items {
    display: block;
  }
  

  .nav-item .swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
  }
  .nav-count {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-mute);
  }
  .nav-item.is-active .nav-count { color: var(--accent); }

  
  .dark-bg-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dark-bg-contrast {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-faint);
    letter-spacing: 0;
    flex-shrink: 0;
  }
  .nav-item.dark-bg-preset.is-active .dark-bg-contrast { color: var(--accent); }

  
  .dark-accent-ctl { padding: 4px 6px 2px; display: flex; flex-direction: column; gap: 8px; }
  .dark-accent-hint { font-size: 10.5px; color: var(--ink-faint); line-height: 1.4; }
  .dark-accent-toggle { display: flex; gap: 4px; background: var(--bg-soft); border: 1px solid var(--rule); border-radius: 8px; padding: 3px; }
  .da-seg { flex: 1 1 0; font: inherit; font-size: 11px; padding: 5px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-dim); cursor: pointer; white-space: nowrap; }
  .da-seg:hover { color: var(--ink); }
  .da-seg.is-active { background: var(--accent); color: #fff; }
  .dark-accent-edit { display: flex; gap: 6px; align-items: center; }
  .dark-accent-edit.is-hidden, .dark-accent-readout.is-hidden { display: none; }
  .da-picker { width: 30px; height: 28px; padding: 0; border: 1px solid var(--rule); border-radius: 6px; background: none; cursor: pointer; flex-shrink: 0; }
  .da-hex { flex: 1 1 auto; min-width: 0; font-family: var(--font-mono); font-size: 11px; padding: 5px 7px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg-soft); color: var(--ink); text-transform: uppercase; }
  .dark-accent-readout { display: flex; flex-direction: column; gap: 3px; font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); }
  .da-row { display: flex; justify-content: space-between; gap: 8px; }
  .da-pass { color: var(--pass); }
  .da-warn { color: var(--warn-amber); }

  
  .shape-swatch {
    width: 14px;
    height: 14px;
    background: var(--ink-dim);
    border: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
  }
  .nav-item.shape-preset.is-active .shape-swatch {
    background: var(--accent);
    border-color: var(--accent);
  }

  
  .motion-swatch {
    position: relative;
    width: 22px;
    height: 14px;
    border-radius: 3px;
    background: rgba(0,0,0,0.06);
    overflow: hidden;
    flex-shrink: 0;
  }
  .motion-swatch::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 3px;
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background: var(--ink-dim);
    animation: motion-demo var(--demo-dur, 0.4s) var(--demo-ease, ease) infinite alternate;
    animation-play-state: paused;
  }
  .nav-item.motion-preset:hover .motion-swatch::after { animation-play-state: running; }
  .nav-item.motion-preset.is-active .motion-swatch::after { background: var(--accent); }
  @keyframes motion-demo { from { transform: translateX(0); } to { transform: translateX(11px); } }

  

  
  .main {
    grid-column: 2;
    grid-row: 2;
    overflow-y: auto;
    background: var(--bg);
  }
  .main-inner {
    padding: 28px 36px 60px;
  }
  .page-head { margin-bottom: 20px; max-width: 720px; }
  .page-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
  }
  .page-sub {
    font-size: 13px;
    color: var(--ink-faint);
  }

  
  .btn {
    background: var(--panel);
    border: 1px solid var(--rule);
    color: var(--ink-dim);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    line-height: 1.3;
    transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
  }
  .btn:hover { border-color: var(--ink-mute); color: var(--ink); background: var(--bg-soft); }
  .btn.is-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
  }
  .btn.is-primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: var(--on-accent);
  }
  
  .btn.is-primary.is-active {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 3px var(--accent-soft), inset 0 1px 2px rgba(0,0,0,0.18);
  }
  .btn.is-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--ink-dim);
  }
  .btn.is-ghost:hover { background: var(--bg-soft); color: var(--ink); }
  .btn.is-sm { font-size: 12px; padding: 4px 9px; }
  
  .btn.is-icon {
    padding: 4px 6px;
    min-width: 28px;
    font-size: 14px;
    line-height: 1;
    color: var(--ink-dim);
    background: transparent;
    border-color: transparent;
  }
  .btn.is-icon:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--rule); }
  .btn.is-icon:disabled,
  .btn.is-icon.is-disabled {
    color: var(--ink-faint);
    background: transparent;
    border-color: transparent;
    cursor: default;
    pointer-events: none;
    opacity: 0.55;
  }
  .icon-btn {
    background: transparent;
    border: none;
    color: var(--ink-faint);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    line-height: 0;
  }
  .icon-btn:hover { background: var(--bg-soft); color: var(--ink); }

  
  .autosave-pill {
    position: fixed;
    top: 62px;
    right: 20px;
    z-index: 95;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: 12.5px;
    color: var(--ink);
    max-width: 340px;
    animation: pillSlideIn 0.22s ease;
  }
  .autosave-pill.is-visible { display: inline-flex; }
  .autosave-pill .pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
  }
  .autosave-pill .pill-msg { color: var(--ink-dim); }
  .autosave-pill .pill-msg strong { color: var(--ink); font-weight: 600; }
  .autosave-pill .pill-action {
    background: transparent;
    border: none;
    color: var(--accent);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
  }
  .autosave-pill .pill-action:hover { background: var(--bg-soft); }
  .autosave-pill .pill-close {
    background: transparent;
    border: none;
    color: var(--ink-faint);
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    font-size: 16px;
  }
  .autosave-pill .pill-close:hover { color: var(--ink); }
  @keyframes pillSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  
  .undo-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 95;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: 12.5px;
    color: var(--ink);
    max-width: 380px;
    animation: toastSlideIn 0.22s ease;
  }
  .undo-toast.is-visible { display: inline-flex; }
  .undo-toast .toast-icon {
    color: var(--accent);
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
  }
  .undo-toast .toast-msg { color: var(--ink-dim); }
  .undo-toast .toast-msg strong { color: var(--ink); font-weight: 600; }
  .undo-toast .toast-action {
    background: transparent;
    border: none;
    color: var(--accent);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
  }
  .undo-toast .toast-action:hover { background: var(--bg-soft); }
  .undo-toast .toast-close {
    background: transparent;
    border: none;
    color: var(--ink-faint);
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    font-size: 16px;
  }
  .undo-toast .toast-close:hover { color: var(--ink); }
  @keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  
  .palette-modal { width: 640px; max-height: 70vh; }
  .palette-input-wrap {
    padding: 12px 16px;
    border-bottom: 1px solid var(--rule);
  }
  .palette-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-ui);
    font-size: 15px;
    color: var(--ink);
    padding: 4px 0;
  }
  .palette-input::placeholder { color: var(--ink-faint); }
  .palette-results {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
    min-height: 0;
  }
  .palette-empty {
    padding: 20px 18px;
    color: var(--ink-faint);
    font-size: 13px;
    text-align: center;
  }
  .palette-group-label {
    padding: 8px 16px 4px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .palette-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    cursor: pointer;
    border-left: 2px solid transparent;
    font-size: 13px;
    color: var(--ink-dim);
  }
  .palette-item:hover { background: var(--bg-soft); }
  .palette-item.is-selected {
    background: var(--bg-soft);
    border-left-color: var(--accent);
    color: var(--ink);
  }
  .palette-item .palette-label {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .palette-item .palette-label-text {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--ink);
  }
  .palette-item .palette-kind {
    font-size: 10.5px;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
  }
  .palette-item .palette-hint {
    font-size: 11.5px;
    color: var(--ink-faint);
    flex-shrink: 0;
  }
  .palette-footer {
    padding: 8px 16px;
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--ink-faint);
  }
  .palette-footer .kbd {
    font-family: var(--font-mono);
    font-size: 10.5px;
    padding: 2px 5px;
    background: var(--bg-soft);
    border: 1px solid var(--rule);
    border-radius: 3px;
    color: var(--ink-dim);
  }

  
  .modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20,18,14,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(2px);
  }
  
  #confirmModal { z-index: 110; }
  .modal {
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), 0 20px 40px rgba(20,18,14,0.10);
    width: 600px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--rule);
  }
  .modal-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
  }
  .modal-body {
    padding: 16px 18px 18px;
    overflow-y: auto;
  }

  
  .loader {
    padding: 60px 0;
    text-align: center;
    color: var(--ink-faint);
    font-size: 13px;
  }
  .loader-msg::before { content: '· '; }

  

  

  .section-label {
    font-size: 8px;
    letter-spacing: 0.24em;
    color: var(--ink-dim);
    text-transform: uppercase;
    margin: 28px 0 14px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .section-label .meta { color: var(--ink-faint); }
  .section-label .right { display: flex; align-items: center; gap: 8px; }

  

  .color-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
  .color-tile {
    padding: 12px 12px 10px;
    border: 1px solid var(--rule);
    background: var(--bg-soft);
  }
  .color-tile-header {
    margin-bottom: 10px;
    font-size: 7.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex; justify-content: space-between; align-items: baseline;
  }
  .color-tile-num   { color: var(--ink-dim); }
  .color-tile-num .label { color: var(--ink); margin-left: 5px; }
  .color-tile-stops { color: var(--ink-faint); font-size: 7px; }

  .color-tile-row {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
  }
  .color-picker {
    width: 32px; height: 32px;
    border: 1px solid var(--rule);
    background: var(--bg);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  .color-picker::-webkit-color-swatch-wrapper { padding: 2px; }
  .color-picker::-webkit-color-swatch { border: none; }
  .color-picker::-moz-color-swatch     { border: none; }

  .hex-input {
    flex: 1;
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--rule);
    color: var(--ink);
    font-family: inherit;
    font-size: 10.5px;
    padding: 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  .hex-input:focus { outline: none; border-color: var(--ink); }

  .scale-strip { display: flex; height: 10px; border: 1px solid var(--rule); }
  .scale-strip-cell { flex: 1; min-width: 1px; }

  
  .tile-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    gap: 6px;
  }
  .tile-footer-labels {
    font-size: 7px;
    letter-spacing: 0.18em;
    color: var(--ink-faint);
    flex-shrink: 0;
  }
  .tile-footer-status {
    font-size: 7px;
    letter-spacing: 0.18em;
    color: var(--ink-faint);
    text-transform: uppercase;
    flex: 1;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tile-footer-status.is-detached { color: var(--accent); }
  .tile-footer-status.is-partial  { color: var(--ink-dim); }
  .tile-detach-btn {
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--ink-dim);
    font-family: inherit;
    font-size: 7px;
    letter-spacing: 0.2em;
    padding: 2px 6px;
    cursor: pointer;
    text-transform: uppercase;
    flex-shrink: 0;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
  }
  .tile-detach-btn:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--bg);
  }
  .tile-detach-btn.is-detached {
    border-color: var(--accent);
    color: var(--accent);
  }
  .tile-detach-btn.is-detached:hover {
    border-color: var(--ink);
    color: var(--ink);
  }
  
  .color-tile.is-detached .color-picker,
  .color-tile.is-detached .hex-input {
    opacity: 0.5;
  }
  .color-tile.is-detached .color-picker:hover,
  .color-tile.is-detached .hex-input:hover {
    opacity: 0.85;
  }

  

  

  .preview-tabs {
    display: flex;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--rule);
  }
  .preview-tab {
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 9.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-faint);
    padding: 8px 18px 9px;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    margin-bottom: -1px;
    display: flex;
    gap: 9px;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
  }
  .preview-tab .t-num  { color: var(--ink-faint); }
  .preview-tab .t-name { color: var(--ink-dim); }
  .preview-tab:hover { background: var(--bg-soft); }
  .preview-tab:hover .t-name { color: var(--ink); }
  .preview-tab.is-active { border-bottom-color: var(--ink); }
  .preview-tab.is-active .t-num,
  .preview-tab.is-active .t-name { color: var(--ink); }

  

  
  .preview {
    border: 1px solid var(--rule);
    overflow: hidden;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: rgb(var(--now-color_text--primary, 23, 43, 49));
    background: rgb(var(--now-color_background--primary, 255, 255, 255));
  }

  

  

  .json-output {
    background: var(--bg-recess);
    border: 1px solid var(--rule);
    color: var(--ink);
    padding: 14px 16px;
    font-family: inherit;
    font-size: 10.5px;
    line-height: 1.55;
    max-height: 400px;
    overflow: auto;
    white-space: pre;
  }
  .footnote {
    font-size: 9px;
    color: var(--ink-faint);
    margin-top: 10px;
    line-height: 1.7;
  }
  .footnote .mono { color: var(--ink-dim); }

  

  .status-row {
    display: flex;
    justify-content: space-between;
    font-size: 7.5px;
    letter-spacing: 0.2em;
    color: var(--ink-dim);
    text-transform: uppercase;
    padding-top: 12px;
    margin-top: 24px;
    border-top: 1px solid var(--rule);
  }
  .status-row .dot {
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--ink);
    margin-right: 8px;
    vertical-align: middle;
  }

  

  
  #axesView { display: block; }

  

  .spacing-panel {
    margin-top: 8px;
  }
  .spacing-list {
    border: 1px solid var(--rule);
    background: var(--bg-recess);
    overflow: hidden;
  }
  .spacing-row {
    display: grid;
    grid-template-columns: 96px 92px 58px 1fr 28px;
    align-items: center;
    gap: 12px;
    padding: 5px 12px;
    border-bottom: 1px solid var(--bg-soft);
    font-size: 10px;
    transition: background 0.1s;
  }
  .spacing-row:last-child { border-bottom: none; }
  .spacing-row:hover { background: var(--bg-soft); }
  .spacing-row.is-modified { background: rgba(217, 122, 94, 0.05); }
  .spacing-row.is-modified:hover { background: rgba(217, 122, 94, 0.08); }

  .spacing-name {
    color: var(--ink);
    letter-spacing: 0.06em;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .spacing-name .marker {
    display: inline-block;
    width: 12px;
    text-align: center;
    margin-right: 5px;
    color: var(--ink-faint);
  }
  .spacing-row.is-modified .spacing-name .marker { color: var(--accent); }
  .spacing-row.is-modified .spacing-name { color: var(--accent); }
  .spacing-name.is-fullkey { font-size: 8.5px; color: var(--ink-dim); }

  .spacing-input {
    background: var(--bg);
    border: 1px solid var(--rule);
    color: var(--ink);
    font-family: inherit;
    font-size: 10px;
    padding: 3px 7px;
    text-align: right;
    letter-spacing: 0.02em;
    width: 100%;
  }
  .spacing-input:focus { outline: none; border-color: var(--ink); }

  .spacing-px {
    color: var(--ink-faint);
    font-size: 9px;
    text-align: right;
    letter-spacing: 0.06em;
  }

  .spacing-bar-track {
    height: 14px;
    background: transparent;
    position: relative;
    border-left: 1px solid var(--rule);
  }
  .spacing-bar {
    position: absolute;
    top: 3px; left: 0; bottom: 3px;
    background: var(--ink-dim);
    transition: width 0.15s ease;
  }
  .spacing-row.is-modified .spacing-bar { background: var(--accent); }

  .spacing-reset {
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--ink-dim);
    font-family: inherit;
    font-size: 8px;
    padding: 2px 4px;
    cursor: pointer;
    letter-spacing: 0.1em;
    text-align: center;
    visibility: hidden;
  }
  .spacing-row.is-modified .spacing-reset { visibility: visible; }
  .spacing-reset:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  

  .motion-panel { margin-top: 8px; }
  .motion-panel .section-label + .section-label { margin-top: 14px; }
  .motion-list {
    border: 1px solid var(--rule);
    background: var(--bg-recess);
    overflow: hidden;
  }
  .motion-row {
    display: grid;
    align-items: center;
    gap: 12px;
    padding: 5px 12px;
    border-bottom: 1px solid var(--bg-soft);
    font-size: 10px;
    transition: background 0.1s;
  }
  .motion-row:last-child { border-bottom: none; }
  .motion-row:hover { background: var(--bg-soft); }
  .motion-row.is-modified { background: rgba(217, 122, 94, 0.05); }
  .motion-row.is-modified:hover { background: rgba(217, 122, 94, 0.08); }
  .motion-row--time { grid-template-columns: 120px 92px 1fr 28px; }
  .motion-row--ease { grid-template-columns: 140px 1fr 28px; }

  .motion-name {
    color: var(--ink);
    letter-spacing: 0.06em;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .motion-name .marker {
    display: inline-block;
    width: 12px;
    text-align: center;
    margin-right: 5px;
    color: var(--ink-faint);
  }
  .motion-row.is-modified .motion-name .marker { color: var(--accent); }
  .motion-row.is-modified .motion-name { color: var(--accent); }
  .motion-name.is-fullkey { font-size: 8.5px; color: var(--ink-dim); }

  .motion-input {
    background: var(--bg);
    border: 1px solid var(--rule);
    color: var(--ink);
    font-family: inherit;
    font-size: 10px;
    padding: 3px 7px;
    letter-spacing: 0.02em;
    width: 100%;
  }
  .motion-input--time { text-align: right; }
  .motion-input--ease { text-align: left; }
  .motion-input:focus { outline: none; border-color: var(--ink); }
  .motion-input.is-invalid { border-color: var(--accent); color: var(--accent); }

  .motion-bar-track {
    height: 14px;
    background: transparent;
    position: relative;
    border-left: 1px solid var(--rule);
  }
  .motion-bar {
    position: absolute;
    top: 3px; left: 0; bottom: 3px;
    background: var(--ink-dim);
    transition: width 0.15s ease;
  }
  .motion-row.is-modified .motion-bar { background: var(--accent); }

  .motion-reset {
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--ink-dim);
    font-family: inherit;
    font-size: 8px;
    padding: 2px 4px;
    cursor: pointer;
    letter-spacing: 0.1em;
    text-align: center;
    visibility: hidden;
  }
  .motion-row.is-modified .motion-reset { visibility: visible; }
  .motion-reset:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  

  .imagery-panel { margin-top: 8px; }
  .imagery-list {
    border: 1px solid var(--rule);
    background: var(--bg-recess);
    overflow: hidden;
  }
  .imagery-row {
    display: grid;
    grid-template-columns: 260px 1fr 28px;
    align-items: center;
    gap: 12px;
    padding: 5px 12px;
    border-bottom: 1px solid var(--bg-soft);
    font-size: 10px;
    transition: background 0.1s;
  }
  .imagery-row:last-child { border-bottom: none; }
  .imagery-row:hover { background: var(--bg-soft); }
  .imagery-row.is-modified { background: rgba(217, 122, 94, 0.05); }
  .imagery-row.is-modified:hover { background: rgba(217, 122, 94, 0.08); }

  .imagery-name {
    color: var(--ink);
    letter-spacing: 0.06em;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .imagery-name .marker {
    display: inline-block;
    width: 12px;
    text-align: center;
    margin-right: 5px;
    color: var(--ink-faint);
  }
  .imagery-row.is-modified .imagery-name .marker { color: var(--accent); }
  .imagery-row.is-modified .imagery-name { color: var(--accent); }
  .imagery-name.is-fullkey { font-size: 8.5px; color: var(--ink-dim); }

  .imagery-input {
    background: var(--bg);
    border: 1px solid var(--rule);
    color: var(--ink);
    font-family: inherit;
    font-size: 10px;
    padding: 3px 7px;
    letter-spacing: 0.02em;
    width: 100%;
    text-align: left;
  }
  .imagery-input:focus { outline: none; border-color: var(--ink); }

  .imagery-reset {
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--ink-dim);
    font-family: inherit;
    font-size: 8px;
    padding: 2px 4px;
    cursor: pointer;
    letter-spacing: 0.1em;
    text-align: center;
    visibility: hidden;
  }
  .imagery-row.is-modified .imagery-reset { visibility: visible; }
  .imagery-reset:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  

  

  .import-wrap {
    margin-top: 14px;
    border: 1px solid var(--rule);
    background: var(--bg-soft);
  }
  .import-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 8px;
    letter-spacing: 0.22em;
    color: var(--ink-dim);
    text-transform: uppercase;
    user-select: none;
  }
  .import-head:hover { color: var(--ink); }
  .import-head .chev { color: var(--ink-faint); transition: transform 0.15s; }
  .import-wrap.is-open .import-head .chev { transform: rotate(90deg); }
  .import-body {
    display: none;
    padding: 12px;
    border-top: 1px solid var(--rule);
    background: var(--bg-recess);
  }
  .import-wrap.is-open .import-body { display: block; }

  .import-textarea {
    width: 100%;
    min-height: 140px;
    max-height: 280px;
    background: var(--bg);
    border: 1px solid var(--rule);
    color: var(--ink);
    font-family: inherit;
    font-size: 10px;
    line-height: 1.5;
    padding: 8px 10px;
    resize: vertical;
    box-sizing: border-box;
  }
  .import-textarea:focus { outline: none; border-color: var(--ink); }
  .import-textarea::placeholder { color: var(--ink-faint); letter-spacing: 0.06em; }

  .import-feedback {
    margin: 8px 0 0;
    font-size: 9.5px;
    line-height: 1.7;
    color: var(--ink-dim);
    min-height: 24px;
  }
  .import-feedback .label {
    color: var(--ink-faint);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 8px;
    margin-right: 6px;
  }
  .import-feedback .ok   { color: var(--ink); }
  .import-feedback .warn { color: var(--ink-dim); }
  .import-feedback .err  { color: var(--accent); }
  .import-feedback .summary {
    background: var(--bg);
    border: 1px solid var(--rule);
    padding: 8px 10px;
    margin-top: 6px;
    font-size: 10px;
  }
  .import-feedback .summary-line {
    display: flex;
    gap: 10px;
    margin-bottom: 3px;
  }
  .import-feedback .summary-line:last-child { margin-bottom: 0; }
  .import-feedback .summary-line .k {
    color: var(--ink-faint);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 8px;
    width: 110px;
    flex-shrink: 0;
  }
  .import-feedback .summary-line .v { color: var(--ink); font-size: 10px; }
  .import-feedback .unknown-list {
    margin-top: 4px;
    max-height: 100px;
    overflow-y: auto;
    border: 1px solid var(--rule);
    background: var(--bg);
    padding: 6px 10px;
    font-size: 9.5px;
    color: var(--ink-faint);
    line-height: 1.6;
  }
  .import-feedback .unknown-list-item {
    word-break: break-all;
  }

  .import-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
  }
  .import-btn {
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--ink-dim);
    font-family: inherit;
    font-size: 8px;
    letter-spacing: 0.22em;
    padding: 5px 12px;
    cursor: pointer;
    text-transform: uppercase;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
  }
  .import-btn:hover:not(:disabled) {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--bg-soft);
  }
  .import-btn.is-primary:not(:disabled) {
    border-color: var(--ink);
    color: var(--ink);
  }
  .import-btn.is-primary:hover:not(:disabled) {
    background: var(--bg-soft);
  }
  .import-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  

  .loader {
    border: 1px solid var(--rule);
    background: var(--bg-recess);
    padding: 28px 22px;
    margin: 18px 0;
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--ink-dim);
    text-transform: uppercase;
    text-align: center;
  }
  .loader-msg::before {
    content: '◌  ';
    animation: spin 1.6s linear infinite;
    display: inline-block;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  .loader-error {
    text-align: left;
    text-transform: none;
    letter-spacing: 0.04em;
    font-size: 11px;
  }
  .loader-error-head {
    font-size: 9px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    text-align: center;
  }
  .loader-error-msg {
    color: var(--ink);
    font-size: 13px;
    margin-bottom: 8px;
    text-align: center;
  }
  .loader-error-detail {
    color: var(--ink-faint);
    font-size: 10px;
    margin-bottom: 18px;
    text-align: center;
  }
  .loader-error-hint {
    background: var(--bg);
    border: 1px solid var(--rule);
    padding: 14px 18px;
    color: var(--ink-dim);
    font-size: 10px;
    line-height: 1.8;
  }
  .loader-error-hint .mono { color: var(--ink); }

  

  
  .ov-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }
  .ov-search {
    flex: 1;
    min-width: 200px;
    background: var(--bg);
    border: 1px solid var(--rule);
    color: var(--ink);
    font-family: inherit;
    font-size: 11px;
    padding: 6px 10px;
    letter-spacing: 0.03em;
  }
  .ov-search:focus { outline: none; border-color: var(--ink); }
  .ov-search::placeholder { color: var(--ink-faint); letter-spacing: 0.12em; text-transform: uppercase; font-size: 9px; }
  .ov-filter {
    background: var(--bg);
    border: 1px solid var(--rule);
    color: var(--ink);
    font-family: inherit;
    font-size: 10.5px;
    padding: 6px 8px;
    letter-spacing: 0.03em;
    cursor: pointer;
    min-width: 180px;
  }
  .ov-filter:focus { outline: none; border-color: var(--ink); }
  .ov-reset-all {
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--ink-dim);
    font-family: inherit;
    font-size: 8px;
    letter-spacing: 0.22em;
    padding: 5px 10px;
    cursor: pointer;
    text-transform: uppercase;
  }
  .ov-reset-all:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
  .ov-reset-all.is-active {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--bg-soft);
  }
  .ov-reset-all.is-active:hover {
    border-color: var(--ink);
    color: var(--ink);
  }

  .ov-panel {
    border: 1px solid var(--rule);
    background: var(--bg-recess);
    height: 540px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    font-size: 10.5px;
  }
  .ov-sizer { position: relative; width: 100%; }
  .ov-list  { position: absolute; top: 0; left: 0; right: 0; }

  
  .ov-list-empty {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-mute);
    padding: 22px 10px;
  }
  .ov-list-empty .ov-scopelink { font-size: 11px; }

  .ov-row {
    position: absolute;
    left: 0; right: 0;
    height: 28px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 10px;
    border-bottom: 1px solid var(--bg-soft);
    background: var(--bg-recess);
  }
  .ov-row:hover { background: var(--bg-soft); }
  .ov-row.is-modified { background: rgba(217, 122, 94, 0.06); }
  .ov-row.is-modified:hover { background: rgba(217, 122, 94, 0.10); }

  
  .ov-cluster-head {
    position: absolute;
    left: 0; right: 0;
    height: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--rule);
    border-top: 1px solid var(--rule);
    cursor: pointer;
    user-select: none;
  }
  .ov-cluster-head:hover { background: var(--bg); }
  .ov-cluster-chevron {
    width: 12px;
    flex-shrink: 0;
    color: var(--ink-faint);
    font-size: 9px;
    text-align: center;
  }
  .ov-cluster-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ink);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
  }
  .ov-cluster-meta {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .ov-cluster-count {
    color: var(--ink-faint);
    font-size: 9px;
    font-family: var(--font-mono);
  }
  .ov-cluster-mod {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 14px;
    padding: 0 4px;
    border-radius: 7px;
    background: var(--accent);
    color: #fff;
    font-size: 8.5px;
    font-family: var(--font-mono);
    line-height: 1;
  }

  .ov-marker {
    width: 14px;
    text-align: center;
    flex-shrink: 0;
  }
  .ov-marker-mod  { color: var(--accent); }
  .ov-marker-gen  { color: var(--ink); }
  .ov-marker-base { color: var(--ink-faint); }

  
  .ov-swatch {
    width: 13px; height: 13px;
    border-radius: 3px;
    border: 1px solid var(--rule);
    flex-shrink: 0;
    margin: 0 8px 0 2px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
  }
  .ov-swatch-empty { border-color: transparent; box-shadow: none; }

  
  .ov-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
  .ov-statcard {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--accent-soft); border: 1px solid var(--accent);
    border-radius: var(--radius); padding: 7px 16px 7px 14px;
    cursor: pointer; font: inherit; color: var(--ink); flex-shrink: 0;
    transition: box-shadow 0.12s ease;
  }
  .ov-statcard:hover { box-shadow: 0 0 0 3px var(--accent-soft); }
  .ov-statcard.is-active { box-shadow: inset 0 0 0 1px var(--accent); }
  .ov-statcard-num { font-size: 27px; font-weight: 700; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
  .ov-statcard-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
  .ov-statcard-text b { font-size: 12.5px; font-weight: 600; }
  .ov-statcard-sub { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); }
  .ov-scopefoot { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); padding: 12px 4px 4px; }
  .ov-scopelink {
    background: none; border: 0; padding: 0; font: inherit;
    color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
  }
  .ov-scopelink:hover { color: var(--accent-strong); }

  .ov-key {
    flex: 1;
    min-width: 0;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
  }
  .ov-row.is-modified .ov-key { color: var(--accent); }
  .ov-anchor-badge {
    display: inline-block;
    color: var(--ink);
    font-size: 8.5px;
    margin-right: 6px;
    vertical-align: 1px;
    opacity: 0.85;
  }
  .ov-row.is-modified .ov-anchor-badge { color: var(--accent); }

  .ov-value {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 220px;
    justify-content: flex-end;
  }
  .ov-picker {
    width: 22px; height: 18px;
    border: 1px solid var(--rule);
    background: var(--bg);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  .ov-picker::-webkit-color-swatch-wrapper { padding: 1px; }
  .ov-picker::-webkit-color-swatch { border: none; }
  .ov-picker::-moz-color-swatch    { border: none; }
  .ov-hex {
    width: 80px;
    background: var(--bg);
    border: 1px solid var(--rule);
    color: var(--ink);
    font-family: inherit;
    font-size: 10px;
    padding: 2px 6px;
    text-transform: uppercase;
  }
  .ov-hex:focus { outline: none; border-color: var(--ink); }
  .ov-reset {
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--ink-dim);
    font-family: inherit;
    font-size: 8px;
    padding: 2px 6px;
    cursor: pointer;
    letter-spacing: 0.1em;
  }
  .ov-reset:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
  .ov-reset-spacer { width: 22px; }
  .ov-hardcode {
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--ink-dim);
    font-family: inherit;
    font-size: 7.5px;
    padding: 2px 7px;
    cursor: pointer;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-left: 6px;
    transition: border-color 0.15s, color 0.15s;
  }
  .ov-hardcode:hover {
    border-color: var(--ink);
    color: var(--ink);
  }
  .ov-alias {
    color: var(--ink-faint);
    font-size: 9.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 320px;
  }
  .ov-other {
    color: var(--ink-dim);
    font-size: 10px;
  }

  
  .ov-unit {
    background: var(--bg);
    border: 1px solid var(--rule);
    color: var(--ink);
    font-family: inherit;
    font-size: 10px;
    padding: 2px 6px;
    letter-spacing: 0.02em;
    width: 110px;
    text-align: left;
  }
  .ov-unit:focus { outline: none; border-color: var(--ink); }
  .ov-unit.is-invalid { border-color: var(--accent); color: var(--accent); }

  .ov-stats {
    margin-top: 8px;
    font-size: 8.5px;
    letter-spacing: 0.18em;
    color: var(--ink-faint);
    text-transform: uppercase;
    text-align: right;
  }

  

  .ov-layout {
    display: flex;
    gap: 12px;
  }
  .ov-layout.has-trace .ov-list-wrap {
    flex: 0 0 55%;
    min-width: 0;
  }
  .ov-layout:not(.has-trace) .ov-list-wrap {
    flex: 1 1 100%;
  }
  .ov-list-wrap { min-width: 0; }
  .ov-trace {
    flex: 1 1 45%;
    min-width: 0;
    border: 1px solid var(--rule);
    background: var(--bg-recess);
    display: flex;
    flex-direction: column;
    font-size: 10px;
    overflow: hidden;
  }
  .ov-layout:not(.has-trace) .ov-trace {
    display: none;
  }

  .ov-trace-head {
    padding: 10px 14px 9px;
    border-bottom: 1px solid var(--rule);
    background: var(--bg-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
  }
  .ov-trace-head-title {
    font-size: 8px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-dim);
  }
  .ov-trace-close {
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--ink-dim);
    font-family: inherit;
    font-size: 8px;
    letter-spacing: 0.2em;
    padding: 3px 8px;
    cursor: pointer;
    text-transform: uppercase;
  }
  .ov-trace-close:hover { border-color: var(--ink); color: var(--ink); }

  .ov-trace-body {
    padding: 14px;
    overflow-y: auto;
    flex: 1 1 auto;
  }

  .ov-trace-placeholder {
    color: var(--ink-faint);
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    padding: 38px 12px;
    line-height: 2;
  }

  .ov-trace-section {
    margin-bottom: 20px;
  }
  .ov-trace-section:last-child { margin-bottom: 0; }
  .ov-trace-section-label {
    font-size: 7.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 7px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--rule);
  }

  .ov-trace-target {
    font-size: 11px;
    color: var(--ink);
    word-break: break-all;
    line-height: 1.4;
    margin-bottom: 3px;
  }
  .ov-trace-target-resolved {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
  }
  .ov-trace-swatch {
    width: 36px;
    height: 22px;
    border: 1px solid var(--rule);
    flex-shrink: 0;
  }
  .ov-trace-swatch-text {
    font-size: 11px;
    color: var(--ink);
    font-family: inherit;
  }
  .ov-trace-swatch-text .mono { color: var(--ink-dim); font-size: 9.5px; }

  
  .ov-chain-link {
    position: relative;
    padding: 6px 0 6px 24px;
    border-left: 1px dashed var(--rule);
    margin-left: 6px;
  }
  .ov-chain-link::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 12px;
    width: 8px;
    height: 8px;
    background: var(--bg-recess);
    border: 1px solid var(--ink-faint);
    border-radius: 50%;
  }
  .ov-chain-link.is-terminal::before {
    background: var(--ink);
    border-color: var(--ink);
  }
  .ov-chain-link.is-override::before {
    background: var(--accent);
    border-color: var(--accent);
  }
  .ov-chain-link.is-generated::before {
    background: var(--ink);
    border-color: var(--ink);
  }
  .ov-chain-link:last-child {
    border-left-color: transparent;
  }
  .ov-chain-key {
    font-size: 10px;
    color: var(--ink);
    word-break: break-all;
    line-height: 1.4;
  }
  .ov-chain-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 3px;
    font-size: 9px;
    color: var(--ink-faint);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .ov-chain-source {
    padding: 1px 5px;
    border: 1px solid var(--rule);
    font-size: 8px;
    letter-spacing: 0.18em;
  }
  .ov-chain-source.is-override   { border-color: var(--accent); color: var(--accent); }
  .ov-chain-source.is-generated  { border-color: var(--ink); color: var(--ink); }
  .ov-chain-source.is-baseline   { color: var(--ink-faint); }
  .ov-chain-source.is-inherited  { border-color: var(--ink-faint); color: var(--ink-dim); }
  .ov-chain-source.is-cycle,
  .ov-chain-source.is-missing    { border-color: var(--accent); color: var(--accent); }
  .ov-chain-value {
    color: var(--ink-dim);
    font-size: 9.5px;
    letter-spacing: 0;
    text-transform: none;
  }
  .ov-chain-value .swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 1px solid var(--rule);
    vertical-align: middle;
    margin-right: 5px;
  }

  
  .ov-deps-list {
    font-size: 9.5px;
    color: var(--ink-dim);
    line-height: 1.7;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--rule);
    background: var(--bg);
    padding: 8px 10px;
  }
  .ov-deps-item {
    word-break: break-all;
    padding: 2px 0;
    border-bottom: 1px solid transparent;
  }
  .ov-deps-item + .ov-deps-item {
    border-top: 1px dotted var(--bg-soft);
  }
  .ov-deps-empty {
    color: var(--ink-faint);
    font-style: italic;
    font-size: 9.5px;
    padding: 4px 0;
  }

  
  .ov-trace-note {
    background: var(--bg);
    border: 1px solid var(--accent);
    padding: 10px 12px;
  }
  .ov-trace-note-label { color: var(--accent) !important; border-bottom-color: var(--accent) !important; }
  .ov-trace-note-title {
    font-size: 10.5px;
    color: var(--accent);
    margin-bottom: 6px;
    line-height: 1.4;
  }
  .ov-trace-note-body {
    font-size: 10px;
    color: var(--ink-dim);
    line-height: 1.6;
  }

  
  .ov-row.is-selected {
    background: var(--bg-soft);
    box-shadow: inset 2px 0 0 var(--ink);
  }
  .ov-row.is-selected:hover { background: var(--bg-soft); }

  

  .json-output { transition: border-color 0.4s ease; }
  .json-output.flash { border-color: var(--ink); }
  .section-label .meta { transition: color 0.6s ease; }
  .section-label .meta.flash { color: var(--ink); transition: color 0s; }

  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-thumb { background: var(--rule); }
  ::-webkit-scrollbar-track { background: transparent; }

  

  @media (max-width: 980px) {
    .color-grid { grid-template-columns: repeat(2, 1fr); }
    .preview-tab { padding: 8px 12px 9px; }
    .scene-list { height: auto; flex-direction: column; }
    
    .ov-value { min-width: 140px; }
    .ov-hex { width: 60px; }
    
    .save-state .ss-text { display: none; }
  }

  
  .mobile-gate { display: none; }
  @media (max-width: 767px) {
    html, body { overflow: hidden; }
    .mobile-gate {
      display: flex;
      position: fixed;
      inset: 0;
      z-index: 100000;
      align-items: center;
      justify-content: center;
      padding: 28px;
      background: var(--bg);
      color: var(--ink);
      font-family: var(--font-ui);
      -webkit-text-size-adjust: 100%;
    }
    .mobile-gate-card { max-width: 360px; text-align: center; }
    .mobile-gate-mark {
      font-family: var(--font-mono);
      font-size: 13px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 22px;
    }
    .mobile-gate-title {
      font-size: 22px; font-weight: 650; line-height: 1.2;
      margin: 0 0 12px; color: var(--ink);
    }
    .mobile-gate-text {
      font-size: 14px; line-height: 1.55; color: var(--ink-mute); margin: 0 0 26px;
    }
    .mobile-gate-foot {
      font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); margin: 0;
    }
  }

  
  
  
  
  
  

  
  .section-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0;
    text-transform: none;
    padding-bottom: 8px;
    margin-top: 20px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--rule);
    line-height: 1.4;
  }
  .section-label > span:first-child { font-weight: 600; color: var(--ink); }
  .section-label .meta {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 400;
    color: var(--ink-faint);
    letter-spacing: 0;
    text-transform: none;
  }
  .section-label .right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  
  
  .footnote {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--ink-faint);
    line-height: 1.55;
    margin: 8px 0 14px;
    padding: 10px 12px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--rule-soft);
  }
  .footnote .mono {
    font-family: var(--font-mono);
    color: var(--ink-dim);
    font-size: 11px;
  }

  
  .loader { padding: 80px 0 40px; text-align: center; color: var(--ink-faint); font-size: 13px; }
  .loader-msg { font-family: var(--font-ui); }
  .loader-msg::before { content: ''; }
  .loader-error {
    background: var(--warn-soft);
    border: 1px solid var(--warn);
    border-radius: var(--radius);
    padding: 16px 20px;
    max-width: 540px;
    margin: 0 auto;
    text-align: left;
  }
  .loader-error-head { font-weight: 600; color: var(--warn); margin-bottom: 6px; font-size: 13px; }
  .loader-error-msg { font-size: 13.5px; color: var(--ink); margin-bottom: 10px; }
  .loader-error-detail { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-dim); margin-bottom: 12px; }
  .loader-error-hint { font-size: 12.5px; color: var(--ink-faint); line-height: 1.6; }
  .loader-error-hint .mono { font-family: var(--font-mono); background: var(--bg); padding: 1px 5px; border-radius: 3px; color: var(--ink-dim); }

  
  
  .hex-input,
  .ov-hex,
  .ov-unit,
  .spacing-input,
  .motion-input,
  .imagery-input,
  .ov-search,
  .ov-filter,
  .share-url,
  .import-textarea {
    background: var(--panel);
    border: 1px solid var(--rule);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    line-height: 1.3;
    transition: border-color 0.12s ease;
    box-shadow: var(--shadow-sm);
  }
  .hex-input:focus,
  .ov-hex:focus,
  .ov-unit:focus,
  .spacing-input:focus,
  .motion-input:focus,
  .imagery-input:focus,
  .ov-search:focus,
  .ov-filter:focus,
  .share-url:focus,
  .import-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  .ov-unit.is-invalid,
  .motion-input.is-invalid { border-color: var(--warn); color: var(--warn); }

  .ov-search { width: 280px; }
  .ov-filter {
    padding-right: 24px;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%),
                      linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%);
    background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    -webkit-appearance: none;
    appearance: none;
  }
  .import-textarea {
    width: 100%;
    min-height: 200px;
    resize: vertical;
    line-height: 1.5;
  }

  
  .share-summary {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--ink-dim);
    line-height: 1.55;
    margin: 0 0 14px;
  }
  
  .share-url-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
  }
  .share-url {
    flex: 1;
    min-width: 0;            
    color: var(--ink-dim);
    text-overflow: ellipsis;
  }
  .share-url-row .btn { flex-shrink: 0; }
  .share-meta {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-faint);
    margin: 8px 0 0;
  }
  #shareCopyBtn.is-success {
    background: var(--good);
    border-color: var(--good);
    color: var(--on-accent);
  }

  
  
  .ov-reset-all,
  .copy-btn,
  .preview-tab,
  .tile-detach-btn,
  .ov-hardcode,
  .ov-fork,
  .ov-trace-action,
  .ov-trace-close,
  .import-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--panel);
    border: 1px solid var(--rule);
    color: var(--ink-dim);
    font-family: var(--font-ui);
    font-size: 11.5px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.3;
    transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
    box-shadow: var(--shadow-sm);
  }
  .ov-reset-all:hover,
  .copy-btn:hover,
  .preview-tab:hover,
  .tile-detach-btn:hover,
  .ov-hardcode:hover,
  .ov-fork:hover,
  .ov-trace-action:hover,
  .ov-trace-close:hover,
  .import-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
  }
  
  .ov-reset-all.is-active,
  .preview-tab.is-active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
  }

  
  .ov-viewgroup { display: inline-flex; }
  .ov-viewgroup .ov-reset-all { border-radius: 0; margin-left: -1px; box-shadow: none; }
  .ov-viewgroup .ov-reset-all:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); margin-left: 0; }
  .ov-viewgroup .ov-reset-all:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
  .ov-viewgroup .ov-reset-all:hover,
  .ov-viewgroup .ov-reset-all.is-active { position: relative; z-index: 1; }
  .ov-discard-all { margin-left: auto; color: var(--ink-mute); }
  .ov-discard-all:hover { border-color: var(--warn); color: var(--warn); background: transparent; }

  
  .ov-row .ov-hardcode {
    display: none; font-size: 10px; color: var(--accent);
    background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 5px;
    padding: 2px 7px; box-shadow: none;
  }
  .ov-row:hover .ov-hardcode,
  .ov-row.is-selected .ov-hardcode { display: inline-flex; }

  
  .ov-value .ov-hex,
  .ov-value .ov-unit,
  .ov-value .ov-alias-input {
    background: transparent; border: 1px solid transparent; box-shadow: none;
    border-radius: var(--radius-sm); padding: 2px 4px; color: var(--ink);
  }
  .ov-value .ov-hex { width: 8ch; text-align: right; color: var(--ink-mute); }
  .ov-value .ov-alias-input { color: var(--ink-faint); min-width: 0; }
  .ov-value .ov-hex:hover,
  .ov-value .ov-unit:hover,
  .ov-value .ov-alias-input:hover { border-color: var(--rule); }
  .ov-value .ov-hex:focus,
  .ov-value .ov-unit:focus,
  .ov-value .ov-alias-input:focus {
    background: var(--bg); border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft);
    outline: none; color: var(--ink);
  }
  .ov-value .ov-reset:hover { color: var(--warn); }
  .ov-resolved-hex { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); }
  
  .ov-swatch { position: relative; }
  .ov-swatch .ov-picker {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; margin: 0; padding: 0; border: 0; cursor: pointer;
  }
  
  .ov-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px var(--ink-faint); }
  .ov-dot-accent { background: var(--accent); box-shadow: none; }
  
  .ov-row.is-modified { box-shadow: inset 2px 0 0 var(--accent); }

  
  .ov-watch { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
  .ov-watch-panel {
    flex: 1 1 440px; min-width: 0;
    border: 1px solid var(--rule); border-radius: var(--radius); background: var(--panel);
    padding: 12px 13px; display: flex; flex-direction: column; gap: 11px;
  }
  
  .ov-tools-panel {
    flex: 1 1 260px; min-width: 0; max-width: 340px;
    border: 1px solid var(--rule); border-radius: var(--radius); background: var(--panel);
    padding: 12px 13px; display: flex; flex-direction: column; gap: 10px;
  }
  .ov-tools-head { display: flex; align-items: center; }
  .ov-tools-lab { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-mute); }
  
  .ov-watch-head { display: flex; align-items: center; gap: 8px; }
  .ov-watch-lab { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-mute); }
  .ov-watch-cnt { font-family: var(--font-mono); font-size: 9.5px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 999px; padding: 1px 7px; }
  .ov-watch-min { width: 20px; height: 20px; border-radius: 5px; border: 1px solid var(--rule); background: transparent; color: var(--ink-mute); cursor: pointer; font-size: 13px; line-height: 1; padding: 0; flex: none; }
  .ov-watch-min:hover { color: var(--accent); border-color: var(--accent); }
  .ov-watch-lookup { position: relative; flex: 0 1 280px; margin-left: auto; }
  .ov-watch-pin-input { width: 100%; height: 28px; padding: 0 10px; background: var(--bg-soft); border: 1px dashed var(--rule); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 10.5px; color: var(--ink); }
  .ov-watch-pin-input::placeholder { color: var(--ink-mute); }
  .ov-watch-pin-input:focus { outline: none; border-style: solid; border-color: var(--accent); }
  .ov-watch-results { position: absolute; left: 0; right: 0; top: 32px; z-index: 30; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); max-height: 220px; overflow-y: auto; display: none; }
  .ov-watch-results.is-active { display: block; }
  .ov-watch-result { display: flex; align-items: center; gap: 8px; padding: 5px 9px; cursor: pointer; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-dim); }
  .ov-watch-result:hover { background: var(--bg-soft); }
  .ov-watch-result .sw { width: 12px; height: 12px; border-radius: 3px; flex: none; border: 1px solid var(--rule); }
  .ov-watch-result .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; }
  .ov-watch-result .val { font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); flex: none; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ov-watch-result-badge { font-size: 8.5px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.05em; padding: 0 4px; border: 1px solid var(--rule); border-radius: 3px; flex: none; }
  
  .ov-watch-chips { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .ov-watch-empty { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); padding: 2px 2px; line-height: 1.5; }
  .ov-wchip { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 9px; background: var(--bg-soft); overflow: hidden; flex: 0 1 232px; min-width: 0; max-width: 100%; }
  .ov-wchip.live { border-color: var(--accent); }
  .ov-wsw { width: 26px; height: 26px; border-radius: 6px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16); }
  .ov-wchip-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
  
  .ov-wchip-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
  .ov-wchip-name { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; }
  .ov-wchip-val { font-family: var(--font-mono); font-size: 10px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; }
  .ov-wchip-slug { color: var(--ink-mute); }
  .ov-wchip-copy { flex: none; width: 17px; height: 16px; border-radius: 4px; border: 1px solid transparent; background: transparent; color: var(--ink-mute); cursor: pointer; font-size: 10px; line-height: 1; padding: 0; opacity: 0; transition: opacity .12s; }
  .ov-wchip:hover .ov-wchip-copy { opacity: 1; }
  .ov-wchip-copy:hover { color: var(--accent); border-color: var(--accent); }
  .ov-wchip-copy.is-copied { color: var(--good); border-color: var(--good); opacity: 1; }
  .ov-wchip-x { margin-left: auto; width: 18px; height: 18px; border-radius: 5px; border: 1px solid transparent; background: transparent; color: var(--ink-mute); cursor: pointer; font-size: 12px; line-height: 1; padding: 0; flex: none; }
  .ov-wchip-x:hover { color: var(--warn); border-color: var(--warn); }
  .ov-wchip-live { position: absolute; top: 6px; left: 29px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg-soft); }
  
  .ov-watch-pick { display: flex; flex-direction: column; gap: 7px; }
  .ov-watch-pick-lab { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; color: var(--ink-mute); }
  .ov-watch-pick-row { display: flex; align-items: center; gap: 8px; }
  .ov-watch-pick-color { width: 34px; height: 30px; padding: 0; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: none; cursor: pointer; flex: none; }
  .ov-watch-pick-hex { flex: 1; min-width: 0; height: 30px; padding: 0 8px; background: var(--bg-soft); border: 1px solid var(--rule); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 11px; color: var(--ink); text-transform: uppercase; }
  .ov-watch-pick-hex:focus { outline: none; border-color: var(--accent); }
  .ov-watch-pick-copy { height: 30px; padding: 0 12px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius-sm); color: var(--accent); font: inherit; font-size: 11px; cursor: pointer; flex: none; white-space: nowrap; }
  .ov-watch-pick-copy:hover { background: var(--accent); color: var(--on-accent); }
  
  .ov-watchbar { width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; cursor: pointer; color: var(--ink-mute); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; }
  .ov-watchbar:hover { color: var(--accent); border-color: var(--accent); }
  .ov-watchbar-chev { font-size: 9px; }
  .ov-watchbar-cnt { font-size: 9px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 999px; padding: 1px 6px; letter-spacing: 0; }
  .ov-watchbar-sep { color: var(--ink-faint); }

  
  .ov-legend { position: relative; display: inline-block; margin-bottom: 10px; }
  .ov-legend-trigger {
    background: none; border: 0; padding: 0; font: inherit;
    font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-mute);
    cursor: help; text-decoration: underline dotted; text-underline-offset: 3px;
  }
  .ov-legend-trigger:hover { color: var(--ink-dim); }
  .ov-legend-pop {
    position: absolute; top: 100%; left: 0; z-index: 20; margin-top: 6px;
    min-width: 320px; max-width: 460px;
    background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius);
    box-shadow: var(--shadow-md); padding: 12px 14px;
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
  }
  .ov-legend:hover .ov-legend-pop,
  .ov-legend:focus-within .ov-legend-pop { opacity: 1; visibility: visible; transform: translateY(0); }
  .ov-legend-keys { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--ink-dim); }
  .ov-legend-tip {
    margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule-soft);
    font-size: 11px; color: var(--ink-faint); line-height: 1.5;
  }
  .copy-btn.copied {
    background: var(--good-soft);
    border-color: var(--good);
    color: var(--good);
  }
  .import-btn.is-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
  }
  .import-btn.is-primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: var(--on-accent);
  }
  .import-btn:disabled,
  .import-btn.is-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  
  .ov-reset,
  .spacing-reset,
  .motion-reset,
  .imagery-reset {
    background: transparent;
    border: 1px solid transparent;
    color: var(--ink-faint);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 400;
    padding: 0;
    width: 22px;
    height: 22px;
    line-height: 1;
    border-radius: var(--radius-sm);
    cursor: pointer;
    letter-spacing: 0;
    transition: background 0.12s ease, color 0.12s ease;
  }
  .ov-reset:hover,
  .spacing-reset:hover,
  .motion-reset:hover,
  .imagery-reset:hover {
    background: var(--bg-soft);
    color: var(--warn);
  }
  .ov-reset-spacer { width: 22px; flex-shrink: 0; }

  
  .tile-footer-status { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }
  .tile-footer-labels { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-mute); }

  

  .color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
  }

  .color-tile {
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
    
    display: flex;
    flex-direction: column;
  }
  .color-tile:hover { border-color: var(--ink-mute); }
  .color-tile.is-detached {
    background: var(--bg-recess);
    border-style: dashed;
  }

  .color-tile-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    font-family: var(--font-ui);
    letter-spacing: 0;
    text-transform: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
  }
  .color-tile-num {
    color: var(--ink-mute);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
  }
  .color-tile-num .label {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-left: 6px;
    letter-spacing: -0.005em;
  }
  .color-tile-stops {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-mute);
    text-transform: none;
    letter-spacing: 0;
  }

  
  .color-tile-help {
    margin: -6px 0 10px;
    font-family: var(--font-ui);
    font-size: 11px;
    line-height: 1.45;
    color: var(--ink-mute);
    flex: 1 0 auto;
  }

  .color-tile-row { display: flex; gap: 8px; margin-bottom: 12px; }

  .color-picker {
    width: 36px;
    height: 32px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--panel);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }

  .color-tile .hex-input {
    flex: 1;
    min-width: 0;
    text-transform: uppercase;
    text-align: left;
  }

  .scale-strip {
    display: flex;
    height: 14px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .scale-strip-cell { flex: 1; min-width: 1px; }

  .tile-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 8px;
  }
  .tile-footer-labels {
    flex-shrink: 0;
    text-transform: none;
    letter-spacing: 0;
  }
  .tile-footer-status {
    flex: 1;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tile-footer-status.is-detached { color: var(--accent); }
  .tile-footer-status.is-partial  { color: var(--warn); }

  .tile-detach-btn {
    flex-shrink: 0;
    text-transform: none;
    letter-spacing: 0;
  }
  .tile-detach-btn.is-detached {
    border-color: var(--warn);
    color: var(--warn);
    background: var(--warn-soft);
  }
  .tile-detach-btn.is-detached:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--bg);
  }

  

  .ov-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }
  .ov-search { flex: 1 1 240px; min-width: 0; }
  .ov-search::placeholder {
    color: var(--ink-mute);
    letter-spacing: 0;
    text-transform: none;
    font-size: 12px;
  }
  .ov-filter { min-width: 200px; }

  .ov-panel {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--panel);
    height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
  }
  .ov-sizer { position: relative; width: 100%; }
  .ov-list  { position: absolute; top: 0; left: 0; right: 0; }

  .ov-row {
    position: absolute;
    left: 0; right: 0;
    height: 28px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 12px;
    border-bottom: 1px solid var(--rule-soft);
    background: var(--panel);
    font-family: var(--font-mono);
    font-size: 11.5px;
    transition: background 0.08s ease;
  }
  .ov-row:hover { background: var(--bg-soft); }
  .ov-row.is-modified { background: var(--accent-soft); }
  .ov-row.is-modified:hover { background: var(--accent-soft-strong); }
  .ov-row.is-selected {
    background: var(--accent-soft);
    box-shadow: inset 2px 0 0 var(--accent);
  }
  .ov-row.is-selected:hover { background: var(--accent-soft-strong); }

  .ov-marker {
    width: 14px;
    text-align: center;
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 11px;
  }
  .ov-marker-mod  { color: var(--accent); }
  .ov-marker-gen  { color: var(--ink-dim); }
  .ov-marker-base { color: var(--ink-mute); }
  
  .ov-marker-inherited { color: var(--ink-faint); }
  
  .ov-marker-userprop { color: var(--accent); }

  
  .ov-userprop-delete {
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--ink-dim);
    cursor: pointer;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-sm);
    line-height: 1;
    font-size: 13px;
    padding: 0;
    margin-left: 4px;
  }
  .ov-userprop-delete:hover {
    color: var(--warn);
    border-color: var(--warn);
    background: var(--bg-soft);
  }

  
  .ov-add-property {
    background: var(--panel);
    border: 1px solid var(--rule);
    color: var(--ink-dim);
    font-family: inherit;
    font-size: 11px;
    padding: 6px 10px;
    cursor: pointer;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    line-height: 1.3;
  }
  .ov-add-property:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-soft);
  }

  
  .add-property-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .add-property-form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .add-property-form input {
    background: var(--bg);
    border: 1px solid var(--rule);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
  }
  .add-property-form input:focus {
    outline: none;
    border-color: var(--accent);
  }
  .add-property-form .field-hint {
    font-family: var(--font-ui);
    font-size: 11.5px;
    font-weight: 400;
    color: var(--ink-faint);
    text-transform: none;
    letter-spacing: 0;
  }
  .add-property-feedback {
    min-height: 16px;
    font-size: 11.5px;
    color: var(--warn);
  }
  .add-property-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }

  .ov-key {
    flex: 1;
    min-width: 0;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: -0.005em;
  }
  .ov-row.is-modified .ov-key { color: var(--accent); font-weight: 500; }
  .ov-anchor-badge {
    display: inline-block;
    color: var(--accent);
    font-size: 10px;
    margin-right: 6px;
    vertical-align: 1px;
  }

  .ov-value {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 220px;
    justify-content: flex-end;
  }
  .ov-picker {
    width: 24px;
    height: 22px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--panel);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    overflow: hidden;
  }
  .ov-picker::-webkit-color-swatch-wrapper { padding: 1px; }
  .ov-picker::-webkit-color-swatch { border: none; }
  .ov-picker::-moz-color-swatch    { border: none; }

  .ov-hex {
    width: 92px;
    text-align: left;
    text-transform: uppercase;
    font-family: var(--font-mono);
    padding: 3px 8px;
  }
  .ov-unit { width: 130px; }

  
  .ov-shape-preview {
    display: inline-block;
    width: 22px;
    height: 14px;
    flex-shrink: 0;
    vertical-align: middle;
    box-sizing: border-box;
  }
  .ov-shape-preview-radius {
    background: var(--ink-dim);
    
  }
  .ov-shape-preview-width {
    background: transparent;
    border-style: solid;
    border-color: var(--ink-dim);
    
  }
  .ov-shape-preview-opacity,
  .ov-shape-preview-alpha {
    background: var(--ink);
    
    border-radius: 2px;
  }

  .ov-alias {
    color: var(--ink-faint);
    font-family: var(--font-mono);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 360px;
  }
  
  .ov-alias-arrow {
    color: var(--ink-faint);
    font-family: var(--font-mono);
    font-size: 11px;
    flex-shrink: 0;
    margin-right: 2px;
  }
  .ov-alias-input {
    width: 260px;
    max-width: 360px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-faint);
  }
  .ov-alias-input:focus { color: var(--ink); }
  .ov-other {
    color: var(--ink-dim);
    font-family: var(--font-mono);
    font-size: 11.5px;
  }

  .ov-hardcode,
  .ov-fork {
    margin-left: 4px;
    flex-shrink: 0;
  }

  
  .ov-stats {
    margin-top: 10px;
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 0;
    color: var(--ink-faint);
    text-transform: none;
    text-align: right;
  }

  
  .ov-layout { display: flex; gap: 14px; }
  .ov-layout.has-trace .ov-list-wrap { flex: 0 0 55%; min-width: 0; }
  .ov-layout:not(.has-trace) .ov-list-wrap { flex: 1 1 100%; }
  .ov-list-wrap { min-width: 0; }

  

  .ov-trace {
    flex: 1 1 45%;
    min-width: 0;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 600px;
  }
  .ov-layout:not(.has-trace) .ov-trace { display: none; }

  

  .ov-trace-head {
    padding: 10px 14px;
    border-bottom: 1px solid var(--rule);
    background: var(--bg-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
  }
  .ov-trace-head-title {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0;
    text-transform: none;
  }
  

  .ov-trace-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1 1 auto;
  }

  .ov-trace-placeholder {
    color: var(--ink-faint);
    font-family: var(--font-ui);
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    padding: 60px 16px;
    line-height: 1.7;
  }

  .ov-trace-section { margin-bottom: 22px; }
  .ov-trace-section:last-child { margin-bottom: 0; }
  .ov-trace-section-label {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-mute);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--rule-soft);
  }

  .ov-trace-target {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink);
    word-break: break-all;
    line-height: 1.4;
  }
  .ov-trace-target-resolved {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 8px 10px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
  }
  
  .ov-trace-action-row {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
  }
  .ov-trace-swatch {
    width: 36px;
    height: 24px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
  }
  .ov-trace-swatch-text {
    font-family: var(--font-ui);
    font-size: 12.5px;
    color: var(--ink);
    line-height: 1.4;
  }
  .ov-trace-swatch-text .mono {
    font-family: var(--font-mono);
    color: var(--ink-dim);
    font-size: 11.5px;
    display: block;
    margin-top: 2px;
  }

  
  .ov-chain-link {
    position: relative;
    padding: 8px 0 8px 24px;
    border-left: 1px solid var(--rule);
    margin-left: 7px;
  }
  .ov-chain-link::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 14px;
    width: 9px;
    height: 9px;
    background: var(--panel);
    border: 1.5px solid var(--ink-mute);
    border-radius: 50%;
  }
  .ov-chain-link.is-terminal::before {
    background: var(--ink-dim);
    border-color: var(--ink-dim);
  }
  .ov-chain-link.is-override::before {
    background: var(--accent);
    border-color: var(--accent);
  }
  .ov-chain-link.is-generated::before {
    background: var(--ink);
    border-color: var(--ink);
  }
  .ov-chain-link:last-child { border-left-color: transparent; }

  .ov-chain-key {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--ink);
    word-break: break-all;
    line-height: 1.4;
  }
  .ov-chain-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--ink-faint);
    letter-spacing: 0;
    text-transform: none;
  }
  .ov-chain-source {
    padding: 1px 7px;
    border: 1px solid var(--rule);
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0;
    text-transform: lowercase;
    color: var(--ink-mute);
    background: var(--bg-soft);
  }
  .ov-chain-source.is-override  { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
  .ov-chain-source.is-generated { border-color: var(--ink-dim); color: var(--ink); background: var(--bg-soft); }
  .ov-chain-source.is-baseline  { color: var(--ink-faint); }
  .ov-chain-source.is-inherited { border-color: var(--ink-faint); color: var(--ink-dim); background: var(--bg-soft); }
  .ov-chain-source.is-cycle,
  .ov-chain-source.is-missing   { border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
  .ov-chain-value {
    color: var(--ink-dim);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }
  .ov-chain-value .swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1px solid var(--rule);
    border-radius: 3px;
    vertical-align: middle;
  }

  
  .ov-deps-list {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-dim);
    line-height: 1.55;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    padding: 8px 12px;
  }
  .ov-deps-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    border-bottom: 1px solid transparent;
  }
  .ov-deps-key {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-all;
  }
  .ov-deps-empty {
    color: var(--ink-faint);
    font-family: var(--font-ui);
    font-style: italic;
    font-size: 12px;
    padding: 4px 0;
  }

  
  .ov-jump {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--ink-faint);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  }
  .ov-jump:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
  }
  .ov-chain-link .ov-jump {
    position: absolute;
    top: 6px;
    right: 0;
  }
  .ov-chain-link .ov-chain-key { padding-right: 28px; }

  
  .ov-row.is-jump-flash,
  .color-tile.is-jump-flash,
  .spacing-row.is-jump-flash,
  .motion-row.is-jump-flash {
    animation: ov-jump-flash 0.85s ease-out;
  }
  @keyframes ov-jump-flash {
    0%   { background-color: var(--accent-soft); }
    100% { background-color: transparent; }
  }

  
  .ov-trace-note {
    background: var(--warn-soft);
    border: 1px solid var(--warn);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
  }
  .ov-trace-note-label {
    color: var(--warn) !important;
    border-bottom-color: var(--warn) !important;
  }
  .ov-trace-note-title {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--warn);
    margin-bottom: 6px;
    line-height: 1.4;
  }
  .ov-trace-note-body {
    font-family: var(--font-ui);
    font-size: 12.5px;
    color: var(--ink-dim);
    line-height: 1.55;
  }

  

  .spacing-panel,
  .motion-panel,
  .imagery-panel { margin-top: 4px; }
  .motion-panel .section-label + .section-label { margin-top: 18px; }

  .spacing-list,
  .motion-list,
  .imagery-list {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--panel);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }

  .spacing-row,
  .motion-row,
  .imagery-row {
    display: grid;
    align-items: center;
    gap: 14px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--rule-soft);
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--ink);
    transition: background 0.08s ease;
  }
  .spacing-row:last-child,
  .motion-row:last-child,
  .imagery-row:last-child { border-bottom: none; }
  .spacing-row:hover,
  .motion-row:hover,
  .imagery-row:hover { background: var(--bg-soft); }
  .spacing-row.is-modified,
  .motion-row.is-modified,
  .imagery-row.is-modified { background: var(--accent-soft); }
  .spacing-row.is-modified:hover,
  .motion-row.is-modified:hover,
  .imagery-row.is-modified:hover { background: var(--accent-soft-strong); }

  
  .spacing-row    { grid-template-columns: 110px 110px 70px 1fr 28px; }
  .motion-row--time { grid-template-columns: 140px 110px 1fr 28px; }
  .motion-row--ease { grid-template-columns: 180px 1fr 28px; }
  .imagery-row    { grid-template-columns: 280px 1fr 28px; }

  
  .spacing-name,
  .motion-name,
  .imagery-name {
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: -0.005em;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .spacing-name .marker,
  .motion-name .marker,
  .imagery-name .marker {
    display: inline-block;
    width: 12px;
    text-align: center;
    margin-right: 6px;
    color: var(--ink-mute);
  }
  .spacing-row.is-modified .spacing-name,
  .motion-row.is-modified .motion-name,
  .imagery-row.is-modified .imagery-name { color: var(--accent); font-weight: 500; }
  .spacing-row.is-modified .spacing-name .marker,
  .motion-row.is-modified .motion-name .marker,
  .imagery-row.is-modified .imagery-name .marker { color: var(--accent); }
  .spacing-name.is-fullkey,
  .motion-name.is-fullkey,
  .imagery-name.is-fullkey { font-size: 10px; color: var(--ink-dim); }

  
  .spacing-px {
    color: var(--ink-mute);
    font-family: var(--font-mono);
    font-size: 11px;
    text-align: right;
    letter-spacing: 0;
  }

  
  .spacing-bar-track,
  .motion-bar-track {
    height: 14px;
    background: transparent;
    position: relative;
    border-left: 1px solid var(--rule);
  }
  .spacing-bar,
  .motion-bar {
    position: absolute;
    top: 2px; left: 0; bottom: 2px;
    background: var(--ink-mute);
    border-radius: 2px;
    transition: width 0.15s ease, background 0.12s ease;
  }
  .spacing-row.is-modified .spacing-bar,
  .motion-row.is-modified .motion-bar { background: var(--accent); }

  
  .spacing-input,
  .motion-input,
  .imagery-input { padding: 4px 8px; }
  .motion-input--time { text-align: right; }
  .motion-input--ease { text-align: left; }

  
  .spacing-reset,
  .motion-reset,
  .imagery-reset { visibility: hidden; }
  .spacing-row.is-modified .spacing-reset,
  .motion-row.is-modified .motion-reset,
  .imagery-row.is-modified .imagery-reset { visibility: visible; }

  

  .json-output {
    background: var(--bg-soft);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    color: var(--ink);
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.55;
    max-height: 460px;
    overflow: auto;
    white-space: pre;
    box-shadow: var(--shadow-sm);
  }
  .json-output.flash {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  .section-label .meta.flash {
    color: var(--accent);
    transition: color 0s;
  }

  
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-thumb {
    background: var(--rule);
    border-radius: 9999px;
    border: 2px solid var(--bg);
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--ink-mute); }
  ::-webkit-scrollbar-track { background: transparent; }

  
  .ov-controls + .ov-layout + .footnote,
  .ov-controls ~ .footnote { margin-top: 14px; }

  
  .modal .import-textarea {
    width: 100%;
    min-height: 220px;
    resize: vertical;
    line-height: 1.55;
  }
  .modal .import-feedback {
    margin-top: 10px;
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--ink-dim);
    line-height: 1.55;
  }
  .modal .import-feedback .label {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    display: block;
  }
  .modal .import-feedback .ok   { color: var(--good); }
  .modal .import-feedback .warn { color: var(--warn); }
  .modal .import-feedback .err  { color: var(--warn); font-weight: 500; }
  .modal .import-feedback .summary {
    margin-top: 8px;
    padding: 8px 10px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
  }
  .modal .import-feedback .summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
  }
  .modal .import-feedback .summary-line:last-child { margin-bottom: 0; }
  .modal .import-feedback .summary-line .k {
    font-family: var(--font-ui);
    font-size: 11.5px;
    color: var(--ink-faint);
  }
  .modal .import-feedback .summary-line .v {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--ink);
  }
  .modal .import-feedback .unknown-list {
    margin-top: 8px;
    padding: 8px 10px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    max-height: 140px;
    overflow-y: auto;
  }
  .modal .import-feedback .unknown-list-item {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-dim);
    padding: 1px 0;
    word-break: break-all;
  }
  .modal .import-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
  }

  
  .page-head { padding-bottom: 8px; border-bottom: 1px solid var(--rule); }

  

  
  .preview {
    background: rgb(var(--now-color_background--secondary));
    color: rgb(var(--now-color_text--primary));
    font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: var(--now-space--lg2);
    border-radius: var(--now-container--border-radius);
    border: 1px solid rgb(var(--now-color_divider--primary));
    min-height: 620px;
    container-type: inline-size;
  }
  .preview .scene { display: none; }
  .preview .scene.is-active { display: block; }

  
  .scene-note {
    font-family: var(--font-ui);
    font-size: 11px;
    font-style: italic;
    color: var(--ink-mute);
    margin: 0 0 12px;
    padding: 0;
    line-height: 1.5;
  }

  
  .scene-approx {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--warn-amber, #a8650a);
    border: 1px solid var(--warn-amber, #a8650a);
    border-radius: 999px;
    padding: 1px 7px;
    margin-right: 8px;
    cursor: help;
    white-space: nowrap;
  }
  
  .edit-subnav-item.is-disabled { opacity: .42; cursor: not-allowed; }
  
  .save-state {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-ui); font-size: 11px; color: var(--ink-mute);
    padding: 3px 9px; border: 1px solid var(--line, rgba(127,127,127,.28));
    border-radius: 999px; white-space: nowrap; cursor: default; user-select: none;
  }
  .save-state[hidden] { display: none; }
  .save-state .ss-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pass, #2e9e6b); flex: none; }
  .save-state[data-mode="clean"] .ss-dot { background: var(--ink-mute, #999); }

  
  .preview .frame {
    display: flex; flex-direction: column;
    height: 600px; overflow: hidden;
    background: rgb(var(--now-color_background--primary));
    border-radius: var(--now-container--border-radius);
    border: 1px solid rgb(var(--now-color_divider--primary));
  }
  
  .preview .chrome {
    flex-shrink: 0; height: 36px;
    display: flex; align-items: center; gap: var(--now-space--md);
    padding: 0 var(--now-space--md);
    background: rgb(var(--now-unified-nav_header--background-color));
    color: rgb(var(--now-unified-nav_header--color));
  }
  .preview .chrome-logo {
    width: 22px; height: 12px;
    background: rgb(var(--now-color--primary-brand-10));
    border-radius: 2px;
  }
  .preview .chrome-nav { display: flex; gap: var(--now-space--md); font-size: 11px; opacity: 0.85; }
  
  .preview .chrome-nav .nav-item {
    display: inline-flex; align-items: center; gap: 4px; cursor: default;
    color: inherit; padding: 0; border-radius: 0; font-size: inherit; line-height: inherit;
  }
  .preview .chrome-nav .nav-item:hover { background: transparent; color: inherit; }
  .preview .chrome-nav .nav-item::after { content: "▾"; font-size: 8px; opacity: 0.7; }
  .preview .chrome-pill {
    margin-inline: auto;
    height: 20px; padding: 0 var(--now-space--md);
    border-radius: 10px; font-size: 11px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
    
    background: rgb(var(--now-unified-nav_header--color) / 0.1);
    color: rgb(var(--now-unified-nav_contextual-app-pill--color));
  }
  .preview .chrome-pill::after {
    content: "☆"; font-size: 11px; opacity: 0.7;
  }
  .preview .chrome-trail { display: flex; gap: var(--now-space--sm); align-items: center; }
  
  .preview .chrome-trail .ic {
    width: 18px; height: 18px; border-radius: 50%;
    border: 1px solid rgb(var(--now-unified-nav_button--color) / 0.35);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 9px; color: rgb(var(--now-unified-nav_button--color) / 0.8);
    position: relative;
  }
  .preview .chrome-trail .ic:hover {
    background: rgb(var(--now-unified-nav_button--background-color--hover));
    color: rgb(var(--now-unified-nav_button--color--hover));
  }
  .preview .chrome-trail .ic.has-badge::after {
    content: ""; position: absolute; top: -2px; right: -2px;
    width: 7px; height: 7px; border-radius: 50%;
    background: rgb(var(--now-color_alert--critical-3));
    border: 1.5px solid rgb(var(--now-unified-nav_header--background-color));
  }
  .preview .chrome-trail .avatar {
    width: 20px; height: 20px; border-radius: 50%;
    background: rgb(var(--now-color--supplementary1-brand-10));
    color: rgb(var(--now-unified-nav_header--background-color));
    font-size: 9px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
  }
  .preview .body { flex: 1; display: flex; min-height: 0; }

  
  
  .preview .rail {
    flex-shrink: 0; width: 180px;
    background: rgb(var(--now-unified-nav_menu--background-color, var(--now-color_background--secondary)));
    color: rgb(var(--now-unified-nav_menu-subitem--color, var(--now-color_text--secondary)));
    border-inline-end: 1px solid rgb(var(--now-unified-nav_menu-subitem--color, var(--now-color_divider--secondary)) / 0.08);
    padding: var(--now-space--sm2) var(--now-space--sm);
    display: flex; flex-direction: column; gap: 2px;
    overflow: auto;
  }
  border--*/form-control. */
  .preview .rail-head { display: flex; align-items: center; gap: var(--now-space--xs); margin-bottom: var(--now-space--sm); }
  
  .preview .rail .filter {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
    height: 24px; padding: 0 var(--now-space--sm);
    font-size: 11px; color: rgb(var(--now-unified-nav_menu-subitem--color, var(--now-color_text--tertiary)) / 0.6);
    background: rgb(var(--now-unified-nav_menu-subitem--color, var(--now-color_background--primary)) / 0.1);
    border: 1px solid rgb(var(--now-unified-nav_menu-subitem--color, var(--now-color_border--primary)) / 0.22);
    border-radius: var(--now-form-control--border-radius);
  }
  .preview .rail .filter .fic {
    width: 10px; height: 9px; flex-shrink: 0; background: currentColor; opacity: 0.8;
    clip-path: polygon(0 0, 100% 0, 58% 45%, 58% 100%, 42% 100%, 42% 45%);
  }
  .preview .rail-ic {
    width: 22px; height: 22px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--now-actionable--border-radius);
    color: rgb(var(--now-unified-nav_menu-subitem--color, var(--now-color_text--tertiary)) / 0.6); font-size: 12px;
    background: transparent; border: 0; cursor: pointer;
  }
  .preview .rail-ic:hover {
    background: rgb(var(--now-unified-nav_menu-subitem--color, var(--now-color_surface--neutral-3)) / 0.12);
    color: rgb(var(--now-unified-nav_menu-subitem--color, var(--now-color_text--secondary)));
  }
  
  .preview .rail-ic.is-pinned { color: rgb(var(--now-unified-nav_menu-subitem--color, var(--now-color--primary-brand-10))); }
  .preview .rail-ic .pin-glyph { position: relative; width: 11px; height: 11px; }
  .preview .rail-ic .pin-glyph::before {
    content: ""; position: absolute; left: 2px; top: 0; width: 5px; height: 7px;
    border-radius: 3px 3px 1px 1px; background: currentColor;
    transform: rotate(38deg); transform-origin: 50% 80%;
  }
  .preview .rail-ic .pin-glyph::after {
    content: ""; position: absolute; left: 6px; top: 6px; width: 1.5px; height: 5px;
    background: currentColor; transform: rotate(38deg); transform-origin: top;
  }
  
  .preview .rail .grp-div { height: 1px; margin: var(--now-space--xs) var(--now-space--sm); background: rgb(var(--now-unified-nav_menu-subitem--color, var(--now-color_divider--secondary)) / 0.14); }
  
  .preview .rail .sub:not(.is-sel):hover {
    background: rgb(var(--now-unified-nav_menu-subitem--color, var(--now-color_surface--neutral-3)) / 0.12);
    color: rgb(var(--now-unified-nav_menu-subitem--color--hover, var(--now-unified-nav_menu-subitem--color)));
  }
  .preview .rail .group { display: flex; flex-direction: column; gap: 2px; }
  .preview .rail .cat {
    display: flex; align-items: center; gap: var(--now-space--sm);
    padding: var(--now-space--xs) var(--now-space--sm);
    border-radius: var(--now-actionable--border-radius);
    font-size: 11px; font-weight: 700; color: rgb(var(--now-unified-nav_menu-subitem--color, var(--now-color_text--primary)));
    cursor: default;
  }
  .preview .rail .cat::before {
    content: "▾"; font-size: 8px; width: 9px; flex-shrink: 0;
    color: rgb(var(--now-unified-nav_menu-subitem--color, var(--now-color_text--tertiary)) / 0.55);
  }
  .preview .rail .cat.collapsed::before { content: "▸"; }
  
  .preview .rail .sub {
    display: flex; align-items: center; gap: var(--now-space--sm);
    padding: 3px var(--now-space--sm) 3px 22px;
    border-radius: var(--now-actionable--border-radius);
    font-size: 11px; color: rgb(var(--now-unified-nav_menu-subitem--color, var(--now-color_text--secondary)) / 0.82);
  }

  
  
  .preview .main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: transparent; }
  .preview .toolbar {
    display: flex; align-items: center; gap: var(--now-space--md);
    padding: var(--now-space--sm2) var(--now-space--lg);
    border-bottom: 1px solid rgb(var(--now-color_divider--secondary));
    flex-shrink: 0;
  }
  .preview .back {
    font-size: 11px; color: rgb(var(--now-color--primary-brand-10));
    font-weight: 600; display: inline-flex; align-items: center; gap: 4px;
  }
  .preview .back::before { content: "←"; }
  .preview .h-title { font-size: 14px; font-weight: 700; color: rgb(var(--now-color_text--primary)); }
  .preview .h-sub   { font-size: 11px; color: rgb(var(--now-color_text--tertiary)); }
  .preview .spacer { flex: 1; }

  
  .preview .btn {
    font: inherit; font-size: 11px; line-height: 1; font-weight: 500;
    padding: 7px 12px; border-radius: var(--now-actionable--border-radius);
    border: 1px solid transparent; cursor: pointer;
    transition: background var(--now-motion--duration--fast) ease;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .preview .btn.primary {
    background: rgb(var(--now-color--primary-brand-10));
    
    color: rgb(var(--now-unified-nav_header--color));
  }
  .preview .btn.secondary {
    background: rgb(var(--now-color_background--primary));
    color: rgb(var(--now-color--primary-brand-10));
    border-color: rgb(var(--now-color--primary-brand-10) / 0.6);
  }
  .preview .btn.tertiary {
    background: transparent;
    color: rgb(var(--now-color_text--secondary));
    border-color: rgb(var(--now-color_border--primary));
  }
  .preview .btn-split {
    display: inline-flex; border: 1px solid rgb(var(--now-color--primary-brand-10) / 0.6);
    border-radius: var(--now-actionable--border-radius); overflow: hidden;
  }
  .preview .btn-split .btn {
    border-radius: 0; border: 0;
    background: rgb(var(--now-color_background--primary));
    color: rgb(var(--now-color--primary-brand-10));
  }
  .preview .btn-split .btn + .btn {
    border-inline-start: 1px solid rgb(var(--now-color--primary-brand-10) / 0.6);
    padding: 7px 8px;
  }
  .preview .btn-iconic {
    width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--now-actionable--border-radius);
    border: 1px solid rgb(var(--now-color_border--primary));
    background: rgb(var(--now-color_background--primary));
    color: rgb(var(--now-color_text--secondary));
  }
  .preview .btn-iconic .glyph {
    width: 11px; height: 13px;
    border: 1.4px solid currentColor;
    border-radius: 1.5px;
    position: relative;
  }
  .preview .btn-iconic .glyph::before, .preview .btn-iconic .glyph::after {
    content: ""; position: absolute; left: 2px; right: 2px; height: 1.2px;
    background: currentColor;
  }
  .preview .btn-iconic .glyph::before { top: 3px; }
  .preview .btn-iconic .glyph::after { top: 6px; }

  
  .preview .pill {
    display: inline-flex; align-items: center; gap: 6px;
    height: 18px; padding: 0 8px; border-radius: 9px;
    font-size: 10px; font-weight: 600;
    background: rgb(var(--now-color_text--tertiary) / 0.18);
    color: rgb(var(--now-color_text--primary));
  }
  .preview .pill::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: rgb(var(--now-color_text--tertiary));
  }
  .preview .pill.crit { background: rgb(var(--now-color_alert--critical-1)); color: rgb(var(--now-color_alert--critical-5)); }
  .preview .pill.crit::before { background: rgb(var(--now-color_alert--critical-3)); }
  .preview .pill.high { background: rgb(var(--now-color_alert--high-1)); color: rgb(var(--now-color_alert--high-5)); }
  .preview .pill.high::before { background: rgb(var(--now-color_alert--high-3)); }
  
  .preview .pill.mod  { background: rgb(var(--now-color--supplementary1-brand-10) / 0.18); color: rgb(var(--now-color_text--primary)); }
  .preview .pill.mod::before  { background: rgb(var(--now-color--supplementary1-brand-10)); }
  
  .preview .pill.low  { background: rgb(var(--now-color_alert--low-1)); color: rgb(var(--now-color_alert--low-5)); }
  .preview .pill.low::before  { background: rgb(var(--now-color_alert--low-3)); }
  .preview .pill.plan { background: rgb(var(--now-color--primary-brand-10) / 0.15); color: rgb(var(--now-color_text--primary)); }
  .preview .pill.plan::before { background: rgb(var(--now-color--primary-brand-10)); }
  .preview .pill.ok   { background: rgb(var(--now-color_alert--positive-1)); color: rgb(var(--now-color_alert--positive-5)); }
  .preview .pill.ok::before   { background: rgb(var(--now-color_alert--positive-3)); }

  
  .preview .cb {
    width: 13px; height: 13px; border-radius: 3px;
    border: 1px solid rgb(var(--now-color_border--primary));
    background: rgb(var(--now-color_background--primary));
    flex-shrink: 0;
  }

  
  .nx-ins-hl { outline: 2px solid var(--accent); outline-offset: -1px; cursor: pointer; border-radius: 2px; }
  .nx-ins-pop {
    position: fixed; z-index: 200; min-width: 250px; max-width: 360px;
    background: var(--bg); color: var(--ink);
    border: 1px solid var(--rule); border-radius: 10px;
    box-shadow: 0 10px 34px rgba(0,0,0,0.22);
    font-size: 12px; overflow: hidden;
  }
  .nx-ins-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; font-weight: 700; border-bottom: 1px solid var(--rule); }
  .nx-ins-close { background: none; border: 0; color: var(--ink-mute); font-size: 17px; line-height: 1; cursor: pointer; padding: 0 2px; }
  .nx-ins-close:hover { color: var(--ink); }
  .nx-ins-rows { padding: 6px; display: flex; flex-direction: column; gap: 2px; }
  .nx-ins-row { display: flex; align-items: center; gap: 9px; padding: 6px; border-radius: 7px; }
  .nx-ins-row:hover { background: var(--bg-soft); }
  .nx-ins-sw { width: 20px; height: 20px; border-radius: 5px; border: 1px solid var(--rule); flex-shrink: 0; }
  .nx-ins-sw-none { background: repeating-conic-gradient(var(--rule) 0% 25%, transparent 0% 50%) 50% / 8px 8px; }
  .nx-ins-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
  .nx-ins-name { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--ink); font: inherit; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
  .nx-ins-name:hover, .nx-ins-name.copied { color: var(--accent); }
  .nx-ins-role { color: var(--ink-faint); margin-right: 6px; text-transform: uppercase; letter-spacing: 0.05em; font-size: 9px; }
  .nx-ins-name.copied .nx-ins-role { color: var(--accent); }
  .nx-ins-val { font-size: 10px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
  .nx-ins-edit { flex-shrink: 0; }
  .nx-ins-foot { padding: 7px 12px; font-size: 10px; color: var(--ink-faint); border-top: 1px solid var(--rule); }

  
  .preview .list-page { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .preview .list-header {
    display: flex; align-items: center; gap: var(--now-space--md);
    padding: var(--now-space--md) var(--now-space--lg) var(--now-space--sm);
    flex-shrink: 0;
  }
  .preview .list-actions {
    display: flex; align-items: center; gap: var(--now-space--sm);
    padding: 0 var(--now-space--lg) var(--now-space--sm2);
    flex-shrink: 0;
  }
  .preview .table { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
  .preview .row {
    display: grid; align-items: center; gap: var(--now-space--md);
    grid-template-columns: 14px 1fr 1fr 1.1fr 1fr;
    padding: var(--now-space--sm) var(--now-space--lg);
    font-size: 11px;
    color: rgb(var(--now-color_text--secondary));
  }
  .preview .row.head {
    font-weight: 700; font-size: 11px;
    color: rgb(var(--now-color_text--primary));
    
    background: rgb(var(--now-color_background--tertiary, var(--now-color_background--secondary)));
    border-bottom: 1px solid rgb(var(--now-color_divider--primary));
    padding-block: var(--now-space--sm2);
  }
  .preview .row .link {
    color: rgb(var(--now-color--primary-brand-10));
    font-weight: 600;
    font-feature-settings: "tnum";
  }
  
  .preview .row.zebra { background: rgb(var(--now-color_background--secondary)); }
  .preview .pagination {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    padding: var(--now-space--md);
    border-top: 1px solid rgb(var(--now-color_divider--secondary));
    flex-shrink: 0;
    font-size: 11px;
  }
  .preview .pagination .page {
    min-width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--now-actionable--border-radius);
    color: rgb(var(--now-color_text--secondary));
    padding: 0 6px;
  }
  .preview .pagination .page.is-sel {
    background: rgb(var(--now-color--primary-brand-1) / 0.6);
    color: rgb(var(--now-color--primary-brand-20));
    font-weight: 700;
  }
  .preview .pagination .arrow { color: rgb(var(--now-color_text--tertiary)); }

  
  .preview .ws-shell { flex: 1; display: flex; min-height: 0; }
  .preview .ws-stack { flex: 1; display: flex; flex-direction: column; min-width: 0; }
  .preview .toolbar-nav {
    flex-shrink: 0; width: 44px;
    background: linear-gradient(
      180deg,
      rgb(var(--now-toolbar-nav--background-color-start, var(--now-color--neutral-15))) var(--now-toolbar-nav--background-color-start-position, 35%),
      rgb(var(--now-toolbar-nav--background-color-middle, var(--now-color--neutral-15))) var(--now-toolbar-nav--background-color-middle-position, 85%),
      rgb(var(--now-toolbar-nav--background-color-end, var(--now-color--neutral-15))) 100%
    );
    display: flex; flex-direction: column; gap: var(--now-space--sm);
    padding: var(--now-space--md) 0;
    align-items: center;
    border-inline-end: 1px solid rgb(var(--now-unified-nav_header--background-color));
  }
  
  .preview .toolbar-nav .tn {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgb(var(--now-canvas-toolbar-button--color));
    font-size: 13px;
    border: 1px solid transparent;
    background: transparent;
  }
  .preview .toolbar-nav .tn:hover {
    color: rgb(var(--now-canvas-toolbar-button--color--hover));
    background: rgb(var(--now-canvas-toolbar-button--background-color--hover));
  }
  .preview .toolbar-nav .tn.is-sel {
    color: rgb(var(--now-canvas-toolbar-button--color--active));
    background: rgb(var(--now-canvas-toolbar-button--background-color--active));
    border-color: rgb(var(--now-canvas-toolbar-button--border-color--active));
  }
  
  .preview .ws-tabs {
    display: flex; gap: 2px; padding: 0 var(--now-space--md);
    background: rgb(var(--now-navigation-page_tabs_container--primary--background-color, var(--now-color_background--secondary)));
    border-bottom: 1px solid rgb(var(--now-color_divider--primary));
    flex-shrink: 0;
  }
  .preview .ws-tab {
    font-size: 11px; padding: var(--now-space--sm) var(--now-space--md);
    color: rgb(var(--now-color_text--secondary));
    background: rgb(var(--now-navigation-page_tabs--primary--background-color, var(--now-color_background--secondary)));
    border-radius: 6px 6px 0 0;
    display: inline-flex; align-items: center; gap: 6px;
    border-top: 1px solid transparent; border-inline: 1px solid transparent;
    margin-bottom: -1px;
  }
  .preview .ws-tab .tab-dot { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--now-color_alert--critical-3)); }
  .preview .ws-tab.is-sel {
    background: rgb(var(--now-color_background--primary));
    color: rgb(var(--now-color_text--primary));
    font-weight: 600;
    border-color: rgb(var(--now-color_divider--primary));
    border-bottom: 1px solid rgb(var(--now-color_background--primary));
  }
  
  .preview .ws-tab:not(.is-sel):hover {
    background: rgb(var(--now-navigation-page_tabs--primary--background-color--hover, var(--now-color_background--primary)));
  }
  .preview .ws-tab .x {
    width: 12px; height: 12px; opacity: 0.5; font-size: 10px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .preview .ws-body { flex: 1; display: grid; grid-template-columns: 1fr 260px; min-height: 0; }
  .preview .ws-main { padding: var(--now-space--lg); overflow: auto; display: flex; flex-direction: column; gap: var(--now-space--md); min-width: 0; }
  .preview .ws-side {
    border-inline-start: 1px solid rgb(var(--now-color_divider--secondary));
    background: rgb(var(--now-color_background--secondary));
    padding: var(--now-space--md); display: flex; flex-direction: column; gap: var(--now-space--md);
    overflow: auto;
  }
  .preview .ws-record-head { display: flex; align-items: flex-start; gap: var(--now-space--md); }
  .preview .ws-record-head .num {
    font-size: 11px; color: rgb(var(--now-color_text--tertiary)); font-feature-settings: "tnum";
  }
  .preview .ws-record-head h3 {
    margin: 2px 0 0; font-size: 15px; font-weight: 700; color: rgb(var(--now-color_text--primary));
  }
  .preview .ws-record-head .meta { display: flex; gap: var(--now-space--sm); margin-top: var(--now-space--sm); flex-wrap: wrap; }
  .preview .ws-subtabs {
    display: flex; gap: var(--now-space--lg);
    border-bottom: 1px solid rgb(var(--now-color_divider--primary));
    margin-top: var(--now-space--sm);
  }
  .preview .ws-subtab {
    font-size: 11px; padding: var(--now-space--sm) 0;
    color: rgb(var(--now-color_text--secondary));
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .preview .ws-subtab .badge {
    font-size: 9px; font-weight: 700;
    padding: 1px 6px; border-radius: 8px;
    background: rgb(var(--now-color_text--tertiary) / 0.18);
    color: rgb(var(--now-color_text--secondary));
    font-feature-settings: "tnum";
  }
  .preview .ws-subtab.is-sel {
    color: rgb(var(--now-color--primary-brand-10));
    border-bottom-color: rgb(var(--now-color--primary-brand-10));
    font-weight: 700;
  }
  .preview .ws-subtab.is-sel .badge {
    background: rgb(var(--now-color--primary-brand-1) / 0.7);
    color: rgb(var(--now-color--primary-brand-20));
  }
  .preview .ws-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--now-space--sm2) var(--now-space--lg); }
  .preview .ws-form .field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .preview .ws-form .lbl { font-size: 10px; color: rgb(var(--now-color_text--tertiary)); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
  .preview .ws-form .val { font-size: 12px; color: rgb(var(--now-color_text--primary)); padding-bottom: 4px; border-bottom: 1px dashed rgb(var(--now-color_divider--secondary)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .preview .ws-form .val.link { color: rgb(var(--now-color--primary-brand-10)); font-weight: 600; }
  .preview .ws-section-title {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: rgb(var(--now-color_text--secondary));
    padding-bottom: var(--now-space--xs);
    border-bottom: 1px solid rgb(var(--now-color_divider--primary));
  }
  .preview .ws-activity { display: flex; flex-direction: column; gap: var(--now-space--md); }
  .preview .ws-activity .entry { display: flex; gap: var(--now-space--sm); }
  .preview .ws-activity .avatar { width: 24px; height: 24px; border-radius: 50%; background: rgb(var(--now-color--secondary-brand-10)); flex-shrink: 0; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: rgb(var(--now-color_text--primary)); }
  .preview .ws-activity .who { font-size: 11px; font-weight: 600; color: rgb(var(--now-color_text--primary)); }
  .preview .ws-activity .when { font-size: 10px; color: rgb(var(--now-color_text--tertiary)); }
  .preview .ws-activity .msg { font-size: 11px; color: rgb(var(--now-color_text--secondary)); margin-top: 2px; }
  .preview .ws-side h6 { margin: 0; font-size: 11px; font-weight: 700; color: rgb(var(--now-color_text--primary)); }
  .preview .ws-side .row-kv { display: flex; justify-content: space-between; font-size: 11px; padding-block: 4px; border-bottom: 1px dashed rgb(var(--now-color_divider--secondary)); }
  .preview .ws-side .row-kv:last-child { border-bottom: 0; }
  .preview .ws-side .row-kv .k { color: rgb(var(--now-color_text--tertiary)); }
  .preview .ws-side .row-kv .v { color: rgb(var(--now-color_text--primary)); font-weight: 500; }
  .preview .ws-related .rel {
    display: flex; align-items: center; gap: var(--now-space--sm);
    padding: var(--now-space--xs) 0; font-size: 11px;
    border-bottom: 1px dashed rgb(var(--now-color_divider--secondary));
  }
  .preview .ws-related .rel:last-child { border-bottom: 0; }
  .preview .ws-related .rel .id { color: rgb(var(--now-color--primary-brand-10)); font-weight: 600; font-feature-settings: "tnum"; flex-shrink: 0; }
  .preview .ws-related .rel .txt { color: rgb(var(--now-color_text--secondary)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }

  
  .preview .dash { flex: 1; padding: var(--now-space--lg); display: flex; flex-direction: column; gap: var(--now-space--md); min-height: 0; overflow: auto; }
  .preview .kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--now-space--md); }
  .preview .kpi { padding: var(--now-space--sm2) var(--now-space--md); border: 1px solid rgb(var(--now-color_divider--secondary)); border-radius: var(--now-container-card--border-radius); background: rgb(var(--now-color_background--primary)); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; }
  .preview .kpi::before { content:""; position:absolute; inset: 0 auto 0 0; width: 3px; background: rgb(var(--now-color--primary-brand-10)); }
  .preview .kpi.alt::before { background: rgb(var(--now-color--secondary-brand-10)); }
  .preview .kpi.alt2::before { background: rgb(var(--now-color--supplementary1-brand-10)); }
  .preview .kpi.alt3::before { background: rgb(var(--now-color_alert--high-3)); }
  .preview .kpi .label { font-size: 10px; color: rgb(var(--now-color_text--tertiary)); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
  .preview .kpi .value { font-size: 24px; font-weight: 700; color: rgb(var(--now-color_text--primary)); font-feature-settings: "tnum"; line-height: 1.1; margin-top: 2px; }
  .preview .kpi .delta { font-size: 10px; font-weight: 600; }
  .preview .kpi .delta.up   { color: rgb(var(--now-color_alert--positive-3)); }
  .preview .kpi .delta.down { color: rgb(var(--now-color_alert--critical-3)); }
  .preview .chart-row { display: grid; grid-template-columns: 2fr 1fr; gap: var(--now-space--md); flex-shrink: 0; }
  .preview .panel {
    background: rgb(var(--now-color_background--primary)); border: 1px solid rgb(var(--now-color_divider--secondary));
    border-radius: var(--now-container-card--border-radius); padding: var(--now-space--md);
    display: flex; flex-direction: column; gap: var(--now-space--sm);
    min-height: 0;
  }
  .preview .panel-head { display: flex; align-items: center; justify-content: space-between; }
  .preview .panel-head h5 { margin: 0; font-size: 12px; font-weight: 700; color: rgb(var(--now-color_text--primary)); }
  .preview .panel-head .sub { font-size: 10px; color: rgb(var(--now-color_text--tertiary)); }
  .preview .bars { height: 140px; display: flex; align-items: flex-end; gap: 8px; padding-top: var(--now-space--sm); border-bottom: 1px solid rgb(var(--now-color_divider--tertiary)); position: relative; }
  .preview .bars span {
    flex: 1; background: rgb(var(--now-color--primary-brand-10));
    border-radius: 2px 2px 0 0; opacity: 0.9; position: relative;
  }
  .preview .bars span::after {
    content: ""; position: absolute; bottom: 0; left: 0; right: 0;
    background: rgb(var(--now-color--supplementary1-brand-10)); opacity: 0.7;
    height: var(--seg, 30%);
    border-radius: 2px 2px 0 0;
  }
  .preview .bars .x-axis { position: absolute; bottom: -16px; left: 0; right: 0; display: flex; justify-content: space-between; font-size: 9px; color: rgb(var(--now-color_text--tertiary)); }
  .preview .legend-card .leg {
    display: flex; align-items: center; gap: var(--now-space--sm); font-size: 11px;
    color: rgb(var(--now-color_text--secondary));
    justify-content: space-between;
    padding-block: 3px;
  }
  .preview .legend-card .leg .name { display: flex; align-items: center; gap: 8px; }
  .preview .legend-card .leg .name::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--leg, currentColor); }
  .preview .legend-card .leg .num { font-feature-settings: "tnum"; color: rgb(var(--now-color_text--primary)); font-weight: 600; }
  .preview .mini-table { display: grid; grid-template-columns: 1fr auto auto; gap: 0; font-size: 11px; }
  .preview .mini-table .h { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; color: rgb(var(--now-color_text--tertiary)); padding-bottom: 6px; border-bottom: 1px solid rgb(var(--now-color_divider--primary)); font-weight: 700; }
  .preview .mini-table .h:nth-child(n+2), .preview .mini-table .c:nth-child(3n+2), .preview .mini-table .c:nth-child(3n) { text-align: end; padding-inline-start: var(--now-space--md); }
  .preview .mini-table .c { padding: 6px 0; border-bottom: 1px solid rgb(var(--now-color_divider--tertiary)); color: rgb(var(--now-color_text--secondary)); }
  .preview .mini-table .c.bold { color: rgb(var(--now-color_text--primary)); font-weight: 600; }

  
  .preview .form-wrap { flex: 1; overflow: auto; padding: var(--now-space--lg); display: flex; flex-direction: column; gap: var(--now-space--lg); }
  .preview .form-section { display: flex; flex-direction: column; gap: var(--now-space--md); }
  .preview .form-section > h5 {
    margin: 0; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: rgb(var(--now-color_text--secondary));
    padding-bottom: var(--now-space--xs);
    border-bottom: 1px solid rgb(var(--now-color_divider--primary));
  }
  .preview .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--now-space--md) var(--now-space--lg); }
  .preview .field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .preview .field .lbl { font-size: 10px; color: rgb(var(--now-color_text--secondary)); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
  .preview .field .req { color: rgb(var(--now-color_alert--critical-3)); margin-right: 2px; }
  .preview .field .help { font-size: 10px; color: rgb(var(--now-color_text--tertiary)); margin-top: 2px; }
  .preview .input {
    min-height: 30px; padding: 0 var(--now-space--sm);
    background: rgb(var(--now-color_background--primary));
    border: 1px solid rgb(var(--now-color_border--primary));
    border-radius: var(--now-form-control--border-radius);
    display: flex; align-items: center;
    font-size: 11px; color: rgb(var(--now-color_text--primary));
  }
  .preview .input.placeholder { color: rgb(var(--now-color_text--tertiary)); }
  .preview .input.focus {
    border-color: rgb(var(--now-color--primary-brand-10));
    
    background: rgb(var(--now-color_surface--brand-1, var(--now-color_background--primary)));
    box-shadow: 0 0 0 3px rgb(var(--now-color--primary-brand-10) / 0.22);
  }
  .preview .input.invalid {
    border-color: rgb(var(--now-color_alert--critical-3));
    box-shadow: 0 0 0 3px rgb(var(--now-color_alert--critical-3) / 0.18);
  }
  .preview .input .caret { width: 1px; height: 14px; background: rgb(var(--now-color_text--primary)); margin-left: 2px; animation: pv-caret 1s steps(2) infinite; }
  @keyframes pv-caret { 50% { opacity: 0; } }
  .preview .input.select::after { content: ""; margin-left: auto; width: 0; height: 0;
    border: 4px solid transparent; border-top-color: rgb(var(--now-color_text--secondary)); transform: translateY(2px); }
  .preview .input.search::before { content: "⌕"; margin-right: 6px; color: rgb(var(--now-color_text--tertiary)); }
  .preview .check { display: flex; align-items: center; gap: var(--now-space--sm); font-size: 11px; color: rgb(var(--now-color_text--secondary)); }
  .preview .check .box {
    width: 14px; height: 14px; border-radius: 3px;
    border: 1px solid rgb(var(--now-color_border--primary));
    background: rgb(var(--now-color_background--primary));
  }
  .preview .check.on .box {
    background: rgb(var(--now-color--primary-brand-10));
    border-color: rgb(var(--now-color--primary-brand-10));
    position: relative;
  }
  
  .preview .check.on .box::after { content: ""; position: absolute; inset: 2px 3px 3px 2px; border: solid rgb(var(--now-unified-nav_header--color)); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
  .preview .radio-group { display: flex; gap: var(--now-space--md); flex-wrap: wrap; }
  .preview .radio { display: flex; align-items: center; gap: var(--now-space--sm); font-size: 11px; color: rgb(var(--now-color_text--secondary)); }
  .preview .radio .dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgb(var(--now-color_border--primary)); background: rgb(var(--now-color_background--primary)); position: relative; }
  .preview .radio.on .dot { border-color: rgb(var(--now-color--primary-brand-10)); }
  .preview .radio.on .dot::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: rgb(var(--now-color--primary-brand-10)); }
  .preview .field.span2 { grid-column: span 2; }
  .preview .textarea { min-height: 64px; align-items: flex-start; padding: var(--now-space--sm); font-size: 11px; line-height: 1.45; color: rgb(var(--now-color_text--primary)); }
  .preview .field .err {
    font-size: 10px; color: rgb(var(--now-color_alert--critical-5));
    background: rgb(var(--now-color_alert--critical-1)); padding: 2px 6px;
    border-radius: var(--now-form-control_message--border-radius);
    align-self: flex-start;
  }
  .preview .actions { display: flex; gap: var(--now-space--sm); padding: var(--now-space--md) var(--now-space--lg);
    border-top: 1px solid rgb(var(--now-color_divider--secondary)); justify-content: flex-end; background: rgb(var(--now-color_background--secondary)); }

  
  @container (max-width: 760px) {
    .preview .rail { display: none; }
    .preview .ws-body { grid-template-columns: 1fr; }
    .preview .ws-side { display: none; }
    .preview .row { grid-template-columns: 14px 1fr 1fr 1fr; gap: var(--now-space--sm); padding: var(--now-space--sm) var(--now-space--md); }
    .preview .row > :nth-child(n+5) { display: none; }
    .preview .kpis { grid-template-columns: repeat(2, 1fr); }
    .preview .chart-row { grid-template-columns: 1fr; }
    .preview .form-grid, .preview .ws-form { grid-template-columns: 1fr; }
    .preview .frame { height: auto; min-height: 580px; }
  }

  
  .custom-palette { margin-top: 20px; }
  .custom-palette-list { display: flex; flex-direction: column; gap: 4px; }
  .custom-palette-list:empty { display: none; }
  .custom-row {
    display: grid;
    grid-template-columns: 28px 28px 1fr auto 24px;
    gap: 8px;
    align-items: center;
    padding: 6px 8px;
    border: 1px solid var(--rule-soft);
    border-radius: var(--radius-sm);
    background: var(--panel);
  }
  .custom-row:hover { border-color: var(--rule); }
  .custom-row .custom-swatch {
    width: 28px; height: 28px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--rule);
    flex-shrink: 0;
  }
  .custom-row .custom-picker {
    -webkit-appearance: none;
    appearance: none;
    width: 28px; height: 28px;
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
  }
  .custom-row .custom-picker::-webkit-color-swatch-wrapper { padding: 0; }
  .custom-row .custom-picker::-webkit-color-swatch { border: none; border-radius: var(--radius-sm); }
  .custom-row .custom-label {
    border: 1px solid transparent;
    background: transparent;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 13px;
    color: var(--ink);
    width: 100%;
    outline: none;
  }
  .custom-row .custom-label:focus,
  .custom-row .custom-label:hover { border-color: var(--rule); background: var(--bg-soft); }
  .custom-row .custom-slug {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-faint);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .custom-row .custom-slug:hover { background: var(--bg-soft); color: var(--ink-dim); }
  .custom-row .custom-slug.is-editing {
    background: var(--bg);
    border-color: var(--rule);
    color: var(--ink);
    overflow: visible;
    outline: none;
  }
  .custom-row .custom-slug-prefix {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-faint);
    user-select: none;
  }
  .custom-row .custom-remove {
    width: 24px; height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink-faint);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
  }
  .custom-row .custom-remove:hover {
    color: var(--warn);
    border-color: var(--warn-soft);
    background: var(--warn-soft);
  }
  .custom-add-btn {
    margin-top: 8px;
    padding: 6px 10px;
    background: transparent;
    border: 1px dashed var(--rule);
    border-radius: var(--radius-sm);
    color: var(--ink-dim);
    cursor: pointer;
    font: inherit;
    font-size: 12.5px;
    width: 100%;
    text-align: left;
  }
  .custom-add-btn:hover { color: var(--ink); border-color: var(--ink-mute); background: var(--bg-soft); }

  
  .ov-link {
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
  }
  .ov-link:hover { background: var(--accent); color: #fff; }

  .ov-custom-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 1px 8px 1px 4px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 500;
    max-width: 180px;
    overflow: hidden;
  }
  .ov-custom-swatch {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
  }
  .ov-custom-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  
  .custom-link-popover {
    position: absolute;
    z-index: 1000;
    min-width: 240px;
    max-width: 320px;
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 8px;
  }
  .custom-link-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-mute);
    border-bottom: 1px solid var(--rule-soft);
    margin-bottom: 6px;
  }
  .custom-link-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 280px;
    overflow: auto;
  }
  .custom-link-list:empty::before {
    content: "no custom colors yet — add some in the Axes view";
    display: block;
    padding: 12px;
    color: var(--ink-faint);
    font-size: 12px;
    text-align: center;
    font-style: italic;
  }
  .custom-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 12.5px;
    color: var(--ink);
    text-align: left;
  }
  .custom-link-item:hover { background: var(--bg-soft); border-color: var(--rule); }
  .custom-link-swatch {
    width: 16px; height: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--rule);
    flex-shrink: 0;
  }
  .custom-link-label { flex: 1; }
  .custom-link-slug {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-faint);
  }

  
  .modal.modal-confirm { max-width: 420px; }
  .modal-confirm .confirm-message {
    margin: 0 0 16px 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink);
  }
  .modal-confirm .confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }

  
  #shortcutsModal .modal.modal-confirm { max-width: 500px; }
  .shortcuts-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 4px 0;
  }
  .shortcuts-table td {
    padding: 7px 0;
    vertical-align: middle;
    border-bottom: 1px solid var(--rule);
    font-size: 13px;
  }
  .shortcuts-table tr:last-child td { border-bottom: none; }
  .shortcuts-table .sc-keys {
    white-space: nowrap;
    padding-right: 18px;
    width: 1%;
  }
  .shortcuts-table .sc-desc {
    color: var(--ink-mute);
    line-height: 1.4;
  }
  .shortcuts-table .sc-or {
    color: var(--ink-faint);
    margin: 0 2px;
    font-size: 11px;
  }
  .shortcuts-table kbd {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1;
    padding: 3px 6px;
    margin: 0 1px;
    background: var(--surface-2, #f4f1ea);
    border: 1px solid var(--rule);
    border-bottom-width: 2px;
    border-radius: 3px;
    color: var(--ink);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  }

  
  #snapshotsModal .modal { max-width: 560px; }
  .snap-pin-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
  }
  .snap-pin-input {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: var(--bg);
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--ink);
  }
  .snap-pin-input:focus {
    outline: none;
    border-color: var(--accent);
  }
  .snap-list {
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid var(--rule);
    border-radius: 4px;
  }
  .snap-empty {
    padding: 28px 16px;
    text-align: center;
    color: var(--ink-mute);
    font-size: 12px;
    line-height: 1.55;
  }
  .snap-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--rule);
  }
  .snap-row:last-child { border-bottom: none; }
  .snap-row:hover { background: var(--bg-2, rgba(0,0,0,0.02)); }
  .snap-info { min-width: 0; }
  .snap-name {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .snap-meta {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-mute);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .snap-restore, .snap-delete {
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 3px;
    cursor: pointer;
    color: var(--ink);
  }
  .snap-restore:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
  .snap-delete { padding: 4px 8px; color: var(--ink-mute); }
  .snap-delete:hover { color: var(--warn, #b6552c); border-color: var(--warn, #b6552c); }

  
  .ov-contrast {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-right: 8px;
    padding: 2px 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1;
    border-radius: 3px;
    border: 1px solid transparent;
    cursor: help;
    user-select: none;
  }
  .ov-contrast.is-aaa  { background: rgba(46,125,50,0.10);  color: var(--pass); border-color: rgba(46,125,50,0.25); }
  .ov-contrast.is-aa   { background: rgba(46,125,50,0.06);  color: var(--pass); border-color: rgba(46,125,50,0.20); }
  .ov-contrast.is-aa-large { background: rgba(194,124,14,0.08); color: var(--warn-amber); border-color: rgba(194,124,14,0.25); }
  .ov-contrast.is-fail { background: rgba(182,85,44,0.10);  color: var(--warn, #b6552c); border-color: rgba(182,85,44,0.30); }
  .ov-contrast.is-unmeasured { background: rgba(120,120,120,0.08); color: var(--ink-mute, #6b6b6b); border-color: rgba(120,120,120,0.22); }

  
  .contrast-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-mute);
    margin: 4px 0 2px;
  }
  .contrast-stat {
    display: inline-block;
    min-width: 18px;
    padding: 1px 6px;
    margin-right: 3px;
    text-align: center;
    border-radius: 3px;
    font-weight: 600;
  }
  .contrast-stat.is-aaa       { background: rgba(46,125,50,0.12);  color: var(--pass); }
  .contrast-stat.is-aa-large  { background: rgba(194,124,14,0.12); color: var(--warn-amber); }
  .contrast-stat.is-fail      { background: rgba(182,85,44,0.12);  color: var(--warn, #b6552c); }
  .contrast-stat.is-unmeasured{ background: rgba(120,120,120,0.12);color: var(--ink-mute, #6b6b6b); }
  .contrast-empty { font-size: 13px; color: var(--ink-mute); padding: 24px 0; }
  .contrast-list { margin-top: 14px; }
  .contrast-group { margin-bottom: 18px; }
  .contrast-group-head {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-mute);
    padding: 4px 0;
    border-bottom: 1px solid var(--line, rgba(0,0,0,0.08));
    margin-bottom: 4px;
  }
  .contrast-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 8px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid transparent;
  }
  .contrast-row:hover { background: var(--surface-2, rgba(0,0,0,0.03)); }
  .contrast-row.is-gap { background: rgba(182,85,44,0.04); }
  .contrast-row.is-gap.is-aa-large { background: rgba(194,124,14,0.05); }
  .contrast-row.is-gap.is-unmeasured { background: rgba(120,120,120,0.05); }
  .contrast-row-label {
    flex: 0 0 200px;
    font-size: 13px;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .contrast-state {
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--surface-2, rgba(0,0,0,0.05));
    color: var(--ink-mute);
  }
  .contrast-row-keys {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-faint, #999);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .contrast-row-keys .contrast-on { color: var(--ink-mute); padding: 0 2px; }
  .contrast-row .ov-contrast { cursor: pointer; flex: 0 0 auto; margin-right: 0; }
