/* ==========================================================================
   Pack 12 — Optical Chroma & Dichroic Prism (Full 12-Section Kit)
   ZERO circular pills. ZERO stars. 100% solid gallery ground (#f6f6f8 | #060608).
   Chamfered prism blades, octagonal crystal tiles, folded-foil slabs & optical
   white-light-to-chroma dispersion physics.
   ========================================================================== */

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

:root {
  --font-display: 'Syne', 'Epilogue', sans-serif;
  --font-sans: 'Epilogue', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --dispersion-crease: linear-gradient(
    var(--ang, 118deg),
    transparent calc(var(--pos, 38%) - 26%),
    rgba(28, 102, 255, 0.55) calc(var(--pos, 38%) - 14%),
    rgba(42, 238, 255, 0.85) calc(var(--pos, 38%) - 6%),
    rgba(255, 255, 255, 0.92) var(--pos, 38%),
    rgba(255, 146, 48, 0.85) calc(var(--pos, 38%) + 6%),
    rgba(255, 48, 188, 0.55) calc(var(--pos, 38%) + 14%),
    transparent calc(var(--pos, 38%) + 26%)
  );

  --spectrum-beam: linear-gradient(
    90deg,
    #1c6bff 0%,
    #28ecff 28%,
    #ffffff 50%,
    #ff962e 72%,
    #ff2ebc 100%
  );
}

html,
body {
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: #060608;
}

[hidden] {
  display: none !important;
}

button,
input {
  font-family: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* ==========================================================================
   THEMES — SOLID STUDIO WHITE (LIGHT) | SOLID PITCH OBSIDIAN (DARK)
   ========================================================================== */

.theme-light {
  --ground: #f6f6f8;
  --fg: #0b0c12;
  --fg-muted: #4b4f60;
  --fg-faint: #676d82;
  --inv-bg: #0b0c12;
  --inv-fg: #ffffff;

  --foil-slab: linear-gradient(155deg, #ffffff 0%, #f1f2f6 52%, #e6e8f0 100%);
  --foil-btn: linear-gradient(180deg, #ffffff 0%, #edeff5 52%, #dfe2ec 100%);
  --foil-edge: rgba(14, 18, 32, 0.16);
  --foil-edge-hi: rgba(14, 18, 32, 0.34);
  --input-bg: #ffffff;
  --popover-bg: #ffffff;
  --popover-shadow: 0 14px 32px -8px rgba(10, 14, 28, 0.2);
  --rule: rgba(14, 18, 32, 0.11);
  --danger: #c61238;
  --danger-bg: #fff1f4;
  --danger-edge: rgba(198, 18, 56, 0.36);
  --beam-white: #0c0e16;
  --skel-a: #e3e6ee;
  --skel-b: #f7f8fc;
}

.theme-dark {
  --ground: #060608;
  --fg: #f4f5fa;
  --fg-muted: #9a9fb4;
  --fg-faint: #787e96;
  --inv-bg: #f4f5fa;
  --inv-fg: #060608;

  --foil-slab: linear-gradient(155deg, #161822 0%, #0d0e14 52%, #08090d 100%);
  --foil-btn: linear-gradient(180deg, #1d202c 0%, #11131b 52%, #0a0b10 100%);
  --foil-edge: rgba(255, 255, 255, 0.14);
  --foil-edge-hi: rgba(255, 255, 255, 0.36);
  --input-bg: #0b0c12;
  --popover-bg: #10121a;
  --popover-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.88);
  --rule: rgba(255, 255, 255, 0.11);
  --danger: #ff5c7c;
  --danger-bg: #1e0a10;
  --danger-edge: rgba(255, 92, 124, 0.44);
  --beam-white: #ffffff;
  --skel-a: #171a24;
  --skel-b: #262a3a;
}

/* ==========================================================================
   SPLIT LAYOUT
   ========================================================================== */

.split-root {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.pane {
  background: var(--ground);
  color: var(--fg);
  overflow: clip;
}

.pane.theme-light {
  border-right: 1px solid var(--rule);
}

.pane-inner {
  padding: 28px 34px 96px;
}

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

.pane-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pane-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  background: var(--inv-bg);
  color: var(--inv-fg);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.pane-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}

.pane-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 616px;
  margin: 0 auto;
}

.sec {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sec:has([data-open='true']) {
  position: relative;
  z-index: 60;
}

.sec-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.sec-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ==========================================================================
   FOLDED OPTICAL FOIL PRIMITIVES (Chamfered Blades, Octagons & Slabs)
   ========================================================================== */

.oc-blade-wrap {
  position: relative;
  display: inline-flex;
  padding: 1.5px;
  background: var(--foil-edge);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 200ms var(--ease);
}

.oc-blade-wrap.is-full {
  width: 100%;
}

.oc-blade-wrap:hover,
.oc-blade-wrap.is-primary {
  background: var(--spectrum-beam);
}

.oc-blade-wrap.is-danger {
  background: var(--danger-edge);
}

.oc-blade-wrap.is-danger:hover {
  background: linear-gradient(115deg, #ff2e63, #ff88a8, #ff2e63);
}

.oc-blade {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 20px;
  background: var(--foil-btn);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  overflow: hidden;
}

.oc-blade-wrap.is-full .oc-blade {
  width: 100%;
}

.oc-blade.is-sm {
  height: 30px;
  padding: 0 13px;
  font-size: 12px;
}

.oc-blade::before,
.oc-slab::before,
.oc-oct::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dispersion-crease);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: overlay;
  transition: opacity 220ms var(--ease);
}

.theme-dark .oc-blade::before,
.theme-dark .oc-slab::before,
.theme-dark .oc-oct::before {
  mix-blend-mode: screen;
}

.oc-blade-wrap:hover .oc-blade::before,
.oc-slab-wrap:hover .oc-slab::before,
.oc-oct-wrap:hover .oc-oct::before {
  opacity: 0.62;
}

.theme-dark .oc-blade-wrap:hover .oc-blade::before,
.theme-dark .oc-slab-wrap:hover .oc-slab::before,
.theme-dark .oc-oct-wrap:hover .oc-oct::before {
  opacity: 0.22;
}

.theme-dark .oc-slab-wrap:hover .oc-card-title,
.theme-dark .oc-slab-wrap:hover .oc-slider-head {
  color: #dde3f6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.theme-dark .oc-slab-wrap:hover .oc-metric,
.theme-dark .oc-slab-wrap:hover .oc-sub {
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
}

.oc-blade-wrap.is-primary .oc-blade {
  background: var(--inv-bg);
  color: var(--inv-fg);
}

.oc-blade-wrap.is-primary .oc-blade::before {
  opacity: 0.45;
  mix-blend-mode: screen;
}

.theme-dark .oc-blade-wrap.is-primary .oc-blade::before {
  mix-blend-mode: multiply;
  opacity: 0.35;
}

.oc-blade-wrap.is-primary:hover .oc-blade::before {
  opacity: 0.72;
}

.oc-blade-wrap.is-danger .oc-blade {
  background: var(--danger-bg);
  color: var(--danger);
}

.oc-blade > *,
.oc-slab > *,
.oc-oct > * {
  position: relative;
  z-index: 1;
}

/* Folded-Foil Slab Container */
.oc-slab-wrap {
  position: relative;
  padding: 1.5px;
  background: var(--foil-edge);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transition: background 220ms var(--ease);
}

.oc-slab-wrap:hover,
.oc-slab-wrap.is-pro {
  background: var(--spectrum-beam);
}

.oc-slab-wrap.is-danger {
  background: var(--danger-edge);
}

.oc-slab-wrap.is-danger:hover {
  background: linear-gradient(115deg, #ff2e63, #ff88a8, #ff2e63);
}

.oc-slab {
  position: relative;
  padding: 20px 22px 22px;
  background: var(--foil-slab);
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 17px 100%, 0 calc(100% - 17px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.oc-slab::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 3px;
  background: var(--spectrum-beam);
  transform: rotate(45deg) translate(18px, -12px);
  opacity: 0.85;
  pointer-events: none;
}

.oc-slab-wrap.is-danger .oc-slab::after {
  background: linear-gradient(90deg, #ff2e63, #ff88a8);
}

/* Plain chamfer-bordered form box that allows dropdown popovers to escape */
.oc-form-slab {
  position: relative;
  padding: 20px 22px 22px;
  background: var(--foil-slab);
  border: 1.5px solid var(--foil-edge);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   01 · NAVIGATION (Prism Rail)
   ========================================================================== */

.oc-nav-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--foil-edge);
  border-bottom: 1px solid var(--foil-edge);
  padding: 4px 0;
}

.oc-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.oc-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  transition: color 160ms var(--ease);
}

.oc-nav-item:hover {
  color: var(--fg);
}

.oc-nav-item.is-active {
  color: var(--fg);
  background: var(--foil-slab);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.oc-nav-item.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 8px;
  bottom: 0;
  height: 2.5px;
  background: var(--spectrum-beam);
}

/* Octagonal Cut Crystal Icon Tiles */
.oc-oct-wrap {
  position: relative;
  display: inline-flex;
  padding: 1.5px;
  background: var(--foil-edge);
  clip-path: polygon(28% 0%, 72% 0%, 100% 28%, 100% 72%, 72% 100%, 28% 100%, 0% 72%, 0% 28%);
  transition: background 180ms var(--ease);
}

.oc-oct-wrap:hover {
  background: var(--spectrum-beam);
}

.oc-oct-wrap.is-danger {
  background: var(--danger-edge);
}

.oc-oct {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--foil-btn);
  color: var(--fg);
  clip-path: polygon(28% 0%, 72% 0%, 100% 28%, 100% 72%, 72% 100%, 28% 100%, 0% 72%, 0% 28%);
  overflow: hidden;
}

.oc-oct-wrap.is-danger .oc-oct {
  background: var(--danger-bg);
  color: var(--danger);
}

/* ==========================================================================
   02 · ACTION BUTTONS & ICONS
   ========================================================================== */

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

.oc-btn-ghost {
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  transition: color 150ms var(--ease);
}

.oc-btn-ghost.is-sm {
  height: 30px;
  padding: 0 11px;
  font-size: 12px;
}

.oc-btn-ghost:hover {
  color: var(--fg);
}

.oc-btn-disabled {
  height: 38px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-faint);
  border: 1px dashed var(--foil-edge);
  opacity: 0.55;
  cursor: not-allowed;
}

/* ==========================================================================
   03 · INPUTS & CONTROLS
   ========================================================================== */

.oc-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.oc-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--foil-edge);
  transition: border-color 160ms var(--ease);
}

.oc-input-wrap:has(input:focus) {
  border-color: var(--fg);
}

.oc-input-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--spectrum-beam);
  opacity: 0;
  transition: opacity 180ms var(--ease);
  pointer-events: none;
}

.oc-input-wrap:has(input:focus)::after {
  opacity: 1;
}

.oc-input-ico {
  position: absolute;
  left: 11px;
  color: var(--fg-muted);
  display: flex;
  pointer-events: none;
}

.oc-input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: transparent;
  border: none;
  color: var(--fg);
  font-size: 13px;
}

.oc-input.has-ico {
  padding-left: 35px;
}

.oc-input::placeholder {
  color: var(--fg-faint);
}

.oc-input:focus {
  outline: none;
}

.oc-input-wrap.is-error {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.oc-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Parallelogram Segmented Switcher */
.oc-seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--foil-edge);
  padding: 3px;
  background: var(--foil-slab);
}

.oc-seg-btn {
  position: relative;
  height: 30px;
  padding: 0 15px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-muted);
  transition: color 150ms var(--ease);
}

.oc-seg-btn:hover {
  color: var(--fg);
}

.oc-seg-btn.is-active {
  background: var(--inv-bg);
  color: var(--inv-fg);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

/* Faceted Diamond Prism Toggle Switches (ZERO circles!) */
.oc-toggles {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.oc-toggle {
  position: relative;
  width: 48px;
  height: 24px;
  background: var(--foil-slab);
  border: 1px solid var(--foil-edge-hi);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: background 180ms var(--ease);
}

.oc-toggle::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 5px;
  width: 14px;
  height: 14px;
  background: var(--fg-muted);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.oc-toggle[aria-checked='true'] {
  background: var(--inv-bg);
}

.oc-toggle[aria-checked='true']::after {
  transform: translateX(22px);
  background: var(--spectrum-beam);
}

/* Optical Dispersion Slider (0% -> 100%) */
.oc-slider-slab {
  padding: 18px 22px 20px;
  gap: 14px;
}

.oc-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-muted);
}

.oc-slider-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

.oc-prism-slider-wrap {
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
}

.oc-beam-in {
  position: absolute;
  left: 0;
  height: 2px;
  background: var(--beam-white);
  pointer-events: none;
}

.oc-beam-out {
  position: absolute;
  right: 0;
  height: 12px;
  background: linear-gradient(180deg, #1c6bff 0%, #28ecff 24%, #52ffd4 48%, #ff962e 74%, #ff2ebc 100%);
  clip-path: polygon(0 44%, 100% 0%, 100% 100%, 0 56%);
  opacity: 0.88;
  pointer-events: none;
}

.oc-slider {
  position: relative;
  width: 100%;
  height: 32px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  outline: none;
  cursor: pointer;
  z-index: 2;
}

.oc-slider:focus {
  outline: none;
}

.oc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #28ecff 32%, #0c0e16 52%, #ff962e 78%, #ff2ebc 100%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  transition: transform 140ms var(--ease);
}

.oc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}

/* ==========================================================================
   04 · CARDS
   ========================================================================== */

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

.oc-card-wide {
  grid-column: 1 / -1;
}

.oc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.oc-card-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-muted);
}

.oc-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  background: var(--inv-bg);
  color: var(--inv-fg);
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.oc-tag.is-muted {
  background: var(--foil-btn);
  color: var(--fg-muted);
  border: 1px solid var(--foil-edge);
}

.oc-metric {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

.oc-metric small {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-faint);
  margin-left: 4px;
}

.oc-sub {
  font-size: 12px;
  color: var(--fg-faint);
}

.oc-beam-track {
  position: relative;
  height: 3px;
  background: var(--foil-edge);
  margin-top: 6px;
}

.oc-beam-fill {
  height: 100%;
  background: var(--spectrum-beam);
}

.oc-wide-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.oc-wide-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
}

.oc-wide-desc {
  font-size: 12.5px;
  color: var(--fg-muted);
  margin-top: 2px;
}

/* ==========================================================================
   05 · DIALOG SHEET & CONTEXT MENU
   ========================================================================== */

.oc-split-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  align-items: start;
}

.oc-dialog-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
}

.oc-dialog-body {
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.oc-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--rule);
}

.oc-menu {
  padding: 10px;
  gap: 2px;
}

.oc-menu-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  text-align: left;
  transition: background 140ms var(--ease);
}

.oc-menu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 2.5px;
  background: var(--spectrum-beam);
  opacity: 0;
  transition: opacity 140ms var(--ease);
}

.oc-menu-item:hover {
  background: rgba(128, 140, 170, 0.12);
}

.oc-menu-item:hover::before {
  opacity: 1;
}

.oc-menu-sep {
  height: 1px;
  background: var(--rule);
  margin: 4px 0;
}

.oc-menu-item.is-danger {
  color: var(--danger);
}

.oc-menu-item.is-danger::before {
  background: var(--danger);
}

/* ==========================================================================
   06 · HEADER & BREADCRUMBS
   ========================================================================== */

.oc-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  flex-direction: row;
}

.oc-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.oc-crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oc-crumbs strong {
  color: var(--fg);
  font-weight: 700;
}

.oc-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ==========================================================================
   07 · SIDEBAR RAIL & ACCORDION
   ========================================================================== */

.oc-rail-grid {
  display: grid;
  grid-template-columns: 196px 1fr;
  gap: 16px;
  align-items: start;
}

.oc-rail {
  padding: 14px 12px;
  gap: 4px;
}

.oc-rail-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  padding: 0 8px 6px;
}

.oc-rail-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  transition: color 140ms var(--ease), background 140ms var(--ease);
}

.oc-rail-item:hover {
  color: var(--fg);
  background: rgba(128, 140, 170, 0.1);
}

.oc-rail-item.is-active {
  background: var(--inv-bg);
  color: var(--inv-fg);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.oc-rail-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.oc-rail-count {
  font-family: var(--font-mono);
  font-size: 11px;
}

/* Accordion */
.oc-acc-slab {
  padding: 6px 18px;
  gap: 0;
}

.oc-acc-item + .oc-acc-item {
  border-top: 1px solid var(--rule);
}

.oc-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
  text-align: left;
}

.oc-acc-chev {
  font-size: 12px;
  color: var(--fg-muted);
  transition: transform 180ms var(--ease);
}

.oc-acc-item[data-open='true'] .oc-acc-chev {
  transform: rotate(180deg);
}

.oc-acc-panel {
  display: none;
  padding: 0 0 14px;
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.55;
}

.oc-acc-item[data-open='true'] .oc-acc-panel {
  display: block;
}

/* ==========================================================================
   08 · DATA TABLE
   ========================================================================== */

.oc-table-slab {
  padding: 6px 14px 10px;
  gap: 0;
}

.oc-table {
  width: 100%;
  border-collapse: collapse;
}

.oc-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--foil-edge-hi);
}

.oc-table th:last-child {
  text-align: right;
}

.oc-table td {
  padding: 11px 8px;
  font-size: 13px;
  color: var(--fg);
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}

.oc-table tr:last-child td {
  border-bottom: none;
}

.oc-table-muted {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}

.oc-table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

/* ==========================================================================
   09 · FORM FIELDS (Prism Dropdown + Octagonal Cut Checkboxes)
   ========================================================================== */

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

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
}

.field:has(.oc-drop[data-open='true']) {
  z-index: 50;
}

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

.field-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.field-error {
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
  min-height: 16px;
}

.oc-drop {
  position: relative;
}

.oc-drop-btn {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: var(--input-bg);
  border: 1px solid var(--foil-edge);
  color: var(--fg);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.oc-drop[data-open='true'] .oc-drop-btn {
  border-color: var(--fg);
}

.oc-drop-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  padding: 6px;
  background: var(--popover-bg);
  border: 1.5px solid var(--foil-edge-hi);
  box-shadow: var(--popover-shadow);
  z-index: 60;
  flex-direction: column;
  gap: 2px;
}

.oc-drop[data-open='true'] .oc-drop-list {
  display: flex;
}

.oc-drop-opt {
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.oc-drop-opt:hover {
  color: var(--fg);
  background: rgba(128, 140, 170, 0.12);
}

.oc-drop-opt.is-selected {
  background: var(--inv-bg);
  color: var(--inv-fg);
  font-weight: 600;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

/* Octagonal Cut Crystal Checkboxes */
.oc-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oc-check-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg);
  cursor: pointer;
  user-select: none;
}

.oc-check-oct {
  width: 18px;
  height: 18px;
  background: var(--input-bg);
  border: 1.5px solid var(--foil-edge-hi);
  clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--inv-fg);
  flex-shrink: 0;
}

.oc-check-label[data-checked='true'] .oc-check-oct {
  background: var(--inv-bg);
  border-color: var(--inv-bg);
}

/* ==========================================================================
   10 · TOAST & STATUS BANNER
   ========================================================================== */

.oc-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oc-bar-slab {
  padding: 13px 18px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.oc-toast-msg {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.oc-banner-msg {
  font-size: 13px;
  color: var(--fg-muted);
}

/* ==========================================================================
   11 · PRICING CARDS
   ========================================================================== */

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

.oc-price-slab {
  padding: 22px;
  gap: 15px;
}

.oc-price-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}

.oc-price-val {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.oc-price-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

.oc-price-period {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-faint);
}

.oc-price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: var(--fg-muted);
}

.oc-price-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.oc-price-list li::before {
  content: '◆';
  font-size: 8px;
  color: var(--fg);
}

/* ==========================================================================
   12 · SKELETON LOADER
   ========================================================================== */

@keyframes ocSweep {
  0% { background-position: -240px 0; }
  100% { background-position: 420px 0; }
}

.oc-skel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.oc-skel-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}

.oc-skel-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.oc-skel-bar {
  height: 10px;
  background: linear-gradient(90deg, var(--skel-a) 25%, var(--skel-b) 50%, var(--skel-a) 75%);
  background-size: 420px 100%;
  animation: ocSweep 2s linear infinite;
}

.oc-skel-oct {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  clip-path: polygon(28% 0%, 72% 0%, 100% 28%, 100% 72%, 72% 100%, 28% 100%, 0% 72%, 0% 28%);
}

.oc-skel-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oc-loaded-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.oc-loaded-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}

.oc-loaded-sub {
  font-size: 12px;
  color: var(--fg-muted);
}

.ico {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.85;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .oc-skel-bar {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .split-root {
    grid-template-columns: 1fr;
  }
  .pane.theme-light {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
}
