/* ==========================================================================
   PACK 01 · SLEEK 2026 APPLE LIQUID GLASS
   Weightless crystal translucency, razor-thin 45° specular corner catchlights,
   monochrome high-craft typography, zero 2010 gloss or heavy shadows.
   ========================================================================== */

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

html,
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Inter',
    system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ==========================================================================
   50/50 Split Studio
   ========================================================================== */

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

.pane {
  position: relative;
  overflow: clip;
  padding: 0;
}

.pane-bg-canvas {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  margin-bottom: -100vh;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.pane-inner {
  position: relative;
  z-index: 1;
  padding: 28px 40px 80px;
}

/* LIGHT STUDIO (Crystal Porcelain) */
.pane--light {
  background: #fbfbfd;
  color: #0e1015;
  border-right: 1px solid rgba(14, 16, 21, 0.07);

  --fg: #0e1015;
  --fg-secondary: rgba(14, 16, 21, 0.58);
  --fg-muted: rgba(14, 16, 21, 0.38);
  --divider: rgba(14, 16, 21, 0.08);

  /* True iOS 26 Crystal-Clear Liquid Glass (Light) */
  --glass-bg: rgba(255, 255, 255, 0.16);
  --glass-bg-hover: rgba(255, 255, 255, 0.28);
  --glass-border: rgba(255, 255, 255, 0.78);
  --danger-border: rgba(239, 68, 68, 0.28);
  --glass-well: rgba(14, 16, 21, 0.045);
  --glass-lens: rgba(255, 255, 255, 0.44);
  --glass-rim: linear-gradient(
    135deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.28) 30%,
    rgba(14, 16, 21, 0.08) 65%,
    rgba(255, 255, 255, 0.96) 100%
  );
  --glass-shadow: 0 18px 40px -18px rgba(14, 16, 21, 0.16),
    0 2px 6px -1px rgba(14, 16, 21, 0.05),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.9),
    inset 0 -1px 1px rgba(255, 255, 255, 0.35);
  --glass-shadow-sm: 0 8px 20px -10px rgba(14, 16, 21, 0.14),
    0 1px 2px rgba(14, 16, 21, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  --lens-shadow: 0 4px 14px -4px rgba(14, 16, 21, 0.12),
    0 0 0 0.5px rgba(14, 16, 21, 0.05);

  --primary-bg: rgba(14, 16, 21, 0.90);
  --primary-fg: #ffffff;
  --primary-bg-hover: rgba(14, 16, 21, 1);

  --danger-fg: #d92d20;
  --danger-bg: rgba(239, 68, 68, 0.08);
  --danger-bg-hover: rgba(239, 68, 68, 0.14);
  --danger-rim: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(239, 68, 68, 0.22) 50%,
    rgba(255, 255, 255, 0.7) 100%
  );

  --accent: #2563eb;
  --positive-fg: #0f766e;
  --positive-bg: rgba(15, 118, 110, 0.09);
  --switch-off: rgba(14, 16, 21, 0.14);
  --switch-on: #0e1015;
  --spec-sheen: rgba(14, 16, 21, 0.032);
  --icon-tint: rgba(14, 16, 21, 0.10);
}

/* DARK STUDIO (Obsidian Crystal) */
.pane--dark {
  background: #060608;
  color: #f4f6fa;

  --fg: #ffffff;
  --fg-secondary: rgba(255, 255, 255, 0.86);
  --fg-muted: rgba(255, 255, 255, 0.68);
  --divider: rgba(255, 255, 255, 0.14);

  /* True iOS 26 Crystal-Clear Liquid Glass (Dark) */
  --glass-bg: rgba(8, 10, 16, 0.24);
  --glass-bg-hover: rgba(16, 20, 30, 0.34);
  --glass-border: rgba(255, 255, 255, 0.22);
  --danger-border: rgba(255, 130, 130, 0.36);
  --glass-well: rgba(255, 255, 255, 0.045);
  --glass-lens: rgba(255, 255, 255, 0.14);
  --glass-rim: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.56) 0%,
    rgba(255, 255, 255, 0.1) 30%,
    rgba(255, 255, 255, 0.05) 68%,
    rgba(255, 255, 255, 0.34) 100%
  );
  --glass-shadow: 0 22px 52px -18px rgba(0, 0, 0, 0.85),
    0 2px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  --glass-shadow-sm: 0 10px 24px -10px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  --lens-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.55),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.35);

  --primary-bg: rgba(255, 255, 255, 0.94);
  --primary-fg: #07080a;
  --primary-bg-hover: #ffffff;

  --danger-fg: #ff8e8e;
  --danger-bg: rgba(96, 10, 22, 0.42);
  --danger-bg-hover: rgba(128, 14, 28, 0.54);
  --danger-rim: linear-gradient(
    135deg,
    rgba(255, 160, 160, 0.48) 0%,
    rgba(255, 69, 58, 0.14) 50%,
    rgba(255, 160, 160, 0.26) 100%
  );

  --accent: #60a5fa;
  --positive-fg: #5eead4;
  --positive-bg: rgba(94, 234, 212, 0.12);
  --switch-off: rgba(255, 255, 255, 0.16);
  --switch-on: rgba(255, 255, 255, 0.92);
  --spec-sheen: rgba(255, 255, 255, 0.14);
  --icon-tint: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   Header & Spacing
   ========================================================================== */

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--divider);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--fg-secondary);
}

.pane-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pane-index {
  font-variant-numeric: tabular-nums;
  color: var(--fg-muted);
}

.pane-hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}

.kit-stack {
  display: grid;
  gap: 34px;
  max-width: 560px;
  margin: 0 auto;
}

.kit-section {
  display: grid;
  gap: 14px;
}

.section-label {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ==========================================================================
   Core 2026 Liquid Glass Surface (Weightless + 45° Opposing Specular Rim)
   ========================================================================== */

.lg-glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(7px) saturate(210%) brightness(1.05);
  -webkit-backdrop-filter: blur(7px) saturate(210%) brightness(1.05);
  isolation: isolate;
}

.pane--dark .lg-glass {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.lg-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  opacity: var(--spec-op, 0);
  background: radial-gradient(
    160px circle at var(--mx, 50%) var(--my, 50%),
    var(--spec-sheen),
    transparent 70%
  );
  transition: opacity 260ms ease;
}

/* ==========================================================================
   Sleek 2026 Liquid Glass Icons (Ultra-Crisp Translucent Glass Silhouettes)
   ========================================================================== */

.lg-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: var(--icon-tint);
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lg-btn--primary .lg-ico {
  fill: transparent;
}

.lg-btn--danger .lg-ico,
.lg-squircle--danger .lg-ico,
.lg-menu-item--danger .lg-ico {
  fill: rgba(255, 69, 58, 0.16);
}

/* ==========================================================================
   01 · Floating Navigation Pill + Detached Orb
   ========================================================================== */

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

.lg-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  gap: 2px;
}

.lg-lens {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--glass-lens);
  box-shadow: var(--lens-shadow);
  pointer-events: none;
  z-index: 0;
  transition: transform 360ms cubic-bezier(0.22, 1.12, 0.36, 1),
    width 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lg-nav-btn {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  padding: 8px 15px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fg-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: color 180ms ease;
}

.lg-nav-btn:hover,
.lg-nav-btn[aria-current='page'] {
  color: var(--fg);
}

.lg-orb-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), background 180ms ease;
}

.lg-orb-btn:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-1px);
}

.lg-orb-btn:active {
  transform: scale(0.94);
}

/* ==========================================================================
   02 · Sleek 2026 Action Buttons & Crystal Liquid Glass Icon Capsules
   ========================================================================== */

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

.lg-btn {
  position: relative;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  cursor: pointer;
  backdrop-filter: blur(6px) saturate(200%) brightness(1.04);
  -webkit-backdrop-filter: blur(6px) saturate(200%) brightness(1.04);
  transition: transform 280ms cubic-bezier(0.22, 1.28, 0.36, 1),
    background 180ms ease,
    box-shadow 220ms ease,
    opacity 180ms ease;
}

.lg-btn:hover:not(:disabled) {
  transform: translateY(-0.5px);
}

.lg-btn:active:not(:disabled) {
  transform: scale(0.955);
  transition-duration: 90ms;
}

.lg-btn--primary {
  background: var(--primary-bg);
  color: var(--primary-fg);
  box-shadow: var(--glass-shadow-sm);
}

.lg-btn--primary:hover {
  background: var(--primary-bg-hover);
}

.lg-btn--glass {
  background: var(--glass-bg);
  color: var(--fg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-sm);
}

.lg-btn--glass:hover {
  background: var(--glass-bg-hover);
}

.lg-btn--danger {
  background: var(--danger-bg);
  color: var(--danger-fg);
  border: 1px solid var(--danger-border);
}

.lg-btn--danger:hover {
  background: var(--danger-bg-hover);
}

.lg-btn--ghost {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--fg-secondary);
}

.lg-btn--ghost:hover {
  background: var(--glass-well);
  color: var(--fg);
}

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

.lg-btn--sm {
  padding: 6px 13px;
  font-size: 0.77rem;
}

/* Sleek Crystal Liquid Glass Icon Capsules */
.squircle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lg-squircle {
  position: relative;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.22, 1.15, 0.36, 1), background 180ms ease;
}

.lg-squircle .lg-ico {
  width: 19px;
  height: 19px;
  position: relative;
  z-index: 3;
}

.lg-squircle:hover {
  transform: translateY(-2px);
  background: var(--glass-bg-hover);
}

.lg-squircle:active {
  transform: scale(0.94);
}

.lg-squircle--danger {
  background: var(--danger-bg);
  color: var(--danger-fg);
}

.lg-squircle--danger::before {
  background: var(--danger-rim);
}

/* ==========================================================================
   03 · Inputs, Segments & Minimal Tactile Controls
   ========================================================================== */

.controls-grid {
  display: grid;
  gap: 14px;
}

.lg-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(7px) saturate(200%) brightness(1.04);
  -webkit-backdrop-filter: blur(7px) saturate(200%) brightness(1.04);
  box-shadow: var(--glass-shadow-sm);
  position: relative;
}

.lg-search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 0.83rem;
  color: var(--fg);
}

.lg-search input::placeholder {
  color: var(--fg-muted);
}

.kbd-cap {
  font-size: 0.66rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--glass-well);
  color: var(--fg-muted);
  white-space: nowrap;
}

.controls-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lg-segment {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--glass-well);
  backdrop-filter: blur(5px) saturate(190%);
  -webkit-backdrop-filter: blur(5px) saturate(190%);
  box-shadow: inset 0 0 0 0.5px var(--divider);
}

.lg-seg-thumb {
  position: absolute;
  top: 3px;
  left: 0;
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--glass-lens);
  box-shadow: var(--lens-shadow);
  pointer-events: none;
  transition: transform 280ms cubic-bezier(0.22, 1.12, 0.36, 1),
    width 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lg-seg-btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 500;
  color: var(--fg-secondary);
  cursor: pointer;
}

.lg-seg-btn[aria-pressed='true'] {
  color: var(--fg);
}

.switch-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lg-switch {
  appearance: none;
  border: 0;
  width: 44px;
  height: 26px;
  padding: 3px;
  border-radius: 999px;
  background: var(--switch-off);
  position: relative;
  cursor: pointer;
  transition: background 220ms ease;
}

.lg-switch[aria-checked='true'] {
  background: var(--switch-on);
}

.lg-switch-knob {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
  transition: transform 280ms cubic-bezier(0.22, 1.18, 0.36, 1),
    width 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lg-switch:active .lg-switch-knob {
  width: 24px;
}

.lg-switch[aria-checked='true']:active .lg-switch-knob {
  transform: translateX(14px);
}

.pane--dark .lg-switch[aria-checked='true'] .lg-switch-knob {
  background: #07080a;
}

.lg-switch[aria-checked='true'] .lg-switch-knob {
  transform: translateX(18px);
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.slider-meta {
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  color: var(--fg-secondary);
  min-width: 36px;
  text-align: right;
}

.lg-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--divider);
  outline: none;
  cursor: pointer;
}

.lg-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
  cursor: grab;
  transition: transform 140ms ease;
}

.lg-slider::-webkit-slider-thumb:active {
  transform: scale(1.12);
}

/* ==========================================================================
   04 · Sleek 2026 Cards
   ========================================================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lg-card {
  border-radius: 22px;
  padding: 20px 22px;
  display: grid;
  gap: 12px;
}

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

.card-kicker {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--fg-secondary);
}

.card-metric {
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.card-sub {
  font-size: 0.77rem;
  color: var(--fg-muted);
  line-height: 1.48;
}

.lg-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
}

.lg-badge--positive {
  background: var(--positive-bg);
  color: var(--positive-fg);
}

.lg-badge--neutral {
  background: var(--glass-well);
  color: var(--fg-secondary);
}

.progress-track {
  height: 3px;
  border-radius: 999px;
  background: var(--divider);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 78%;
  border-radius: 999px;
  background: var(--fg);
  opacity: 0.78;
}

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

.item-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.item-card-left {
  display: flex;
  align-items: center;
  gap: 13px;
}

.app-tile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-tile .lg-ico {
  width: 18px;
  height: 18px;
}

.item-title {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.item-meta {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 2px;
}

/* ==========================================================================
   05 · Confirmation Sheet & Context Menu
   ========================================================================== */

.bottom-cards {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 14px;
  align-items: start;
}

.confirm-title {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.lg-menu {
  border-radius: 18px;
  padding: 6px;
  display: grid;
  gap: 2px;
}

.lg-menu-item {
  border: 0;
  background: transparent;
  border-radius: 11px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  text-align: left;
  position: relative;
  z-index: 2;
  transition: background 140ms ease;
}

.lg-menu-item:hover {
  background: var(--glass-well);
}

.lg-menu-item--danger {
  color: var(--danger-fg);
}

.lg-menu-item--danger:hover {
  background: var(--danger-bg);
}

.lg-menu-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.lg-menu-div {
  height: 1px;
  background: var(--divider);
  margin: 4px 8px;
}

/* ==========================================================================
   06 · Top Header & Breadcrumbs
   ========================================================================== */

.lg-header-bar {
  border-radius: 18px;
  padding: 10px 14px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.brand-dot {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--primary-bg);
  color: var(--primary-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 600;
  flex-shrink: 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

.breadcrumbs .crumb-active {
  color: var(--fg);
  font-weight: 500;
}

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

.avatar-stack {
  display: inline-flex;
  align-items: center;
}

.avatar-chip {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--glass-lens);
  border: 1px solid var(--divider);
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--fg-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -6px;
}

.avatar-chip:first-child {
  margin-left: 0;
}

/* ==========================================================================
   07 · Sidebar Navigation Rail & Accordion
   ========================================================================== */

.split-two {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: start;
}

.lg-sidebar {
  border-radius: 20px;
  padding: 10px;
  display: grid;
  gap: 3px;
}

.sidebar-group-label {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 6px 10px 4px;
}

.sidebar-item {
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-secondary);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: background 150ms ease, color 150ms ease;
}

.sidebar-item:hover {
  background: var(--glass-well);
  color: var(--fg);
}

.sidebar-item[aria-current='page'] {
  background: var(--glass-lens);
  color: var(--fg);
  box-shadow: var(--lens-shadow);
}

.sidebar-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.sidebar-count {
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--glass-well);
  color: var(--fg-secondary);
}

/* Accordion */
.lg-accordion {
  border-radius: 20px;
  padding: 6px;
  display: grid;
}

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

.acc-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  text-align: left;
  position: relative;
  z-index: 2;
}

.acc-chev {
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--fg-muted);
}

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

.acc-body {
  padding: 0 12px 12px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--fg-secondary);
}

.acc-item[data-open='false'] .acc-body {
  display: none;
}

/* ==========================================================================
   08 · Data Table
   ========================================================================== */

.lg-table-wrap {
  border-radius: 22px;
  overflow: hidden;
}

.lg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  position: relative;
  z-index: 2;
}

.lg-table th,
.lg-table td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--divider);
}

.lg-table tr:last-child td {
  border-bottom: 0;
}

.lg-table th {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.lg-table tbody tr {
  transition: background 140ms ease;
}

.lg-table tbody tr:hover {
  background: var(--glass-well);
}

.status-dot-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--fg-secondary);
}

.s-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--positive-fg);
}

.s-dot--muted {
  background: var(--fg-muted);
}

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

/* ==========================================================================
   09 · Form Fields (Input, Select, Checkboxes, Validation)
   ========================================================================== */

.lg-form-card {
  border-radius: 22px;
  padding: 20px;
  display: grid;
  gap: 14px;
  overflow: visible;
  z-index: 15;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  position: relative;
  z-index: 2;
}

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

.field-label {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--fg-secondary);
}

.lg-input {
  width: 100%;
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 9px 12px;
  background: var(--glass-well);
  color: var(--fg);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.lg-input:focus {
  border-color: var(--fg-secondary);
}

/* Custom Apple Liquid Glass Dropdown (replaces native OS <select>) */
.lg-dropdown {
  position: relative;
  width: 100%;
}

.lg-dropdown-trigger {
  width: 100%;
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 9px 12px;
  background: var(--glass-well);
  color: var(--fg);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 120ms ease;
}

.lg-dropdown-trigger:hover {
  border-color: var(--fg-muted);
}

.lg-dropdown-trigger:active {
  transform: scale(0.985);
}

.lg-dropdown[data-open='true'] .lg-dropdown-trigger {
  border-color: var(--fg-secondary);
}

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

.lg-dropdown-chev {
  width: 15px;
  height: 15px;
  color: var(--fg-muted);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
}

.lg-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  border-radius: 16px;
  padding: 5px;
  display: grid;
  gap: 2px;
  background: var(--glass-lens);
  backdrop-filter: blur(10px) saturate(210%);
  -webkit-backdrop-filter: blur(10px) saturate(210%);
  box-shadow: var(--glass-shadow);
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.22, 1.18, 0.36, 1);
}

.pane--dark .lg-dropdown-menu {
  background: rgba(18, 20, 28, 0.86);
}

.lg-dropdown[data-open='true'] .lg-dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lg-dropdown-opt {
  position: relative;
  z-index: 3;
  border: 0;
  background: transparent;
  border-radius: 11px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--fg-secondary);
  cursor: pointer;
  text-align: left;
  transition: background 130ms ease, color 130ms ease;
}

.lg-dropdown-opt:hover {
  background: var(--glass-well);
  color: var(--fg);
}

.lg-dropdown-opt[aria-selected='true'] {
  color: var(--fg);
  background: var(--glass-well);
}

.lg-dropdown-check {
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity 150ms ease;
}

.lg-dropdown-opt[aria-selected='true'] .lg-dropdown-check {
  opacity: 1;
}

.lg-input--error {
  border-color: var(--danger-fg);
}

.field-error {
  font-size: 0.72rem;
  color: var(--danger-fg);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.lg-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--fg-secondary);
  cursor: pointer;
}

.lg-check input {
  accent-color: var(--fg);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* ==========================================================================
   10 · Toast & Alert Banner
   ========================================================================== */

.toast-stack {
  display: grid;
  gap: 10px;
}

.lg-toast {
  border-radius: 999px;
  padding: 8px 10px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
}

.toast-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  position: relative;
  z-index: 2;
}

.lg-banner {
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.79rem;
  color: var(--fg-secondary);
}

/* ==========================================================================
   11 · Pricing / Plan Cards
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.plan-card {
  border-radius: 22px;
  padding: 20px;
  display: grid;
  gap: 14px;
  align-content: space-between;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-price {
  font-size: 1.95rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.plan-unit {
  font-size: 0.76rem;
  color: var(--fg-muted);
}

.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--fg-secondary);
}

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

.plan-list .lg-ico {
  width: 14px;
  height: 14px;
  color: var(--fg);
}

/* ==========================================================================
   12 · Liquid Glass Skeleton Loader
   ========================================================================== */

.skel-card {
  border-radius: 22px;
  padding: 20px 22px;
  display: grid;
  gap: 14px;
}

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

.skel-lines {
  flex: 1;
  display: grid;
  gap: 8px;
}

.skel-bar {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: var(--glass-well);
}

.skel-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--spec-sheen) 50%,
    transparent 100%
  );
  animation: lgShimmer 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.skel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
}

.skel-title {
  height: 12px;
  width: 52%;
}

.skel-sub {
  height: 10px;
  width: 34%;
}

.skel-pill {
  height: 28px;
  width: 72px;
}

.skel-block {
  height: 10px;
  width: 100%;
}

.skel-block--short {
  width: 68%;
}

@keyframes lgShimmer {
  100% {
    transform: translateX(100%);
  }
}

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

@media (max-width: 1100px) {
  .split-layout {
    grid-template-columns: 1fr;
  }

  .pane--light {
    border-right: 0;
    border-bottom: 1px solid rgba(14, 16, 21, 0.08);
  }
}

@media (max-width: 600px) {
  .pane {
    padding: 22px 18px 48px;
  }

  .cards-grid,
  .bottom-cards,
  .split-two,
  .form-row-2,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
