:root,
[data-theme="dark"],
.dark {
  /* ==========================================================================
     Antigravity Canonical Desktop Design Tokens (Extracted Standard — RD-031 / US-075)
     ========================================================================== */
  --bg-primary: #000000;
  --bg-secondary: #1A1A1A;
  --bg-tertiary: #242424;
  --bg-hover: #2A2A2A;
  --text-primary: #F5F5F5;
  --text-secondary: #A0A0A0;
  --text-muted: #666666;
  --accent: #2F80ED;
  --accent-hover: #2D74D7;
  --border: #2A2A2A;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 200ms ease;

  /* ==========================================================================
     Antigravity Unified Design Tokens (Calm Luxury Pitch-Black Theme)
     ========================================================================== */
  --background: var(--bg-primary);
  --foreground: var(--text-primary);
  --card: var(--bg-secondary);
  --card-foreground: var(--text-primary);
  --popover: var(--bg-tertiary);
  --popover-foreground: var(--text-primary);
  --primary: var(--accent);
  --primary-foreground: #ffffff;
  --secondary: var(--bg-secondary);
  --secondary-foreground: var(--text-primary);
  --muted: var(--bg-tertiary);
  --muted-foreground: var(--text-secondary);
  --destructive: oklch(0.704 0.191 22.216);
  --destructive-foreground: oklch(0.985 0 0);
  --input: #333333;
  --ring: var(--accent);
  --chart-1: oklch(0.87 0 0);
  --chart-2: oklch(0.556 0 0);
  --chart-3: oklch(0.439 0 0);
  --chart-4: oklch(0.371 0 0);
  --chart-5: oklch(0.269 0 0);
  --sidebar: var(--bg-secondary);
  --sidebar-foreground: var(--text-primary);
  --sidebar-primary: var(--accent);
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: var(--bg-hover);
  --sidebar-accent-foreground: var(--text-primary);
  --sidebar-border: var(--border);
  --sidebar-ring: var(--accent);

  /* Cockpit Elevation & Compatibility Mappings (Calm Luxury Dark Mode) */
  --bg: var(--background);
  --surface: var(--card);
  --surface-col: var(--bg-primary);
  --surface-hover: var(--bg-hover);
  --surface-elevated: var(--bg-tertiary);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --text: var(--foreground);
  --text-muted: var(--muted-foreground);
  --text-dim: var(--text-muted);
  
  --accent-subtle: rgba(47, 128, 237, 0.16);
  
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.65);
  
  --status-now: oklch(0.65 0.24 350.0);
  --status-now-bg: oklch(0.65 0.24 350.0 / 12%);
  --status-next: oklch(0.62 0.19 250.0);
  --status-next-bg: oklch(0.62 0.19 250.0 / 12%);
  --status-later: oklch(0.60 0.21 290.0);
  --status-later-bg: oklch(0.60 0.21 290.0 / 12%);
  --status-done: oklch(0.65 0.17 160.0);
  --status-done-bg: oklch(0.65 0.17 160.0 / 12%);

  --color-green: oklch(0.65 0.17 160.0);
  --color-green-bg: oklch(0.65 0.17 160.0 / 12%);
  --color-yellow: oklch(0.75 0.17 75.0);
  --color-yellow-bg: oklch(0.75 0.17 75.0 / 12%);
  --color-red: oklch(0.63 0.23 20.0);
  --color-red-bg: oklch(0.63 0.23 20.0 / 12%);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

[data-theme="light"],
.light {
  /* ==========================================================================
     Antigravity Unified Design Tokens (OKLCH Color Space) — Light Mode
     ========================================================================== */
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: oklch(0.508 0.118 165.612);
  --primary-foreground: oklch(0.979 0.021 166.113);
  --secondary: oklch(0.967 0.001 286.375);
  --secondary-foreground: oklch(0.21 0.006 285.885);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.508 0.118 165.612);
  --accent-foreground: oklch(0.979 0.021 166.113);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --chart-1: oklch(0.87 0 0);
  --chart-2: oklch(0.556 0 0);
  --chart-3: oklch(0.439 0 0);
  --chart-4: oklch(0.371 0 0);
  --chart-5: oklch(0.269 0 0);
  --radius: 0.625rem;
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: oklch(0.596 0.145 163.225);
  --sidebar-primary-foreground: oklch(0.979 0.021 166.113);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);

  /* Cockpit Elevation & Compatibility Mappings (Calm Luxury Light Mode) */
  --bg-primary: oklch(0.98 0 0);
  --bg-secondary: oklch(1 0 0);
  --bg-tertiary: oklch(0.96 0 0);
  --bg-hover: oklch(0.93 0 0);
  --text-primary: oklch(0.145 0 0);
  --text-secondary: oklch(0.45 0 0);

  --bg: oklch(0.98 0 0);
  --surface: var(--card);
  --surface-col: oklch(0.955 0 0);
  --surface-hover: var(--secondary);
  --surface-elevated: var(--card);
  --border-subtle: oklch(0 0 0 / 4%);
  --text: var(--foreground);
  --text-muted: var(--muted-foreground);
  --text-dim: oklch(0.65 0 0);

  --accent-hover: var(--sidebar-primary);
  --accent-subtle: oklch(0.508 0.118 165.612 / 10%);

  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.02);
  --card-shadow-hover: 0 4px 14px rgba(0, 0, 0, 0.08), 0 12px 28px rgba(0, 0, 0, 0.04);

  --status-now: oklch(0.55 0.22 350.0);
  --status-now-bg: oklch(0.55 0.22 350.0 / 8%);
  --status-next: oklch(0.50 0.20 250.0);
  --status-next-bg: oklch(0.50 0.20 250.0 / 8%);
  --status-later: oklch(0.48 0.22 290.0);
  --status-later-bg: oklch(0.48 0.22 290.0 / 8%);
  --status-done: oklch(0.52 0.16 160.0);
  --status-done-bg: oklch(0.52 0.16 160.0 / 8%);

  --color-green: oklch(0.52 0.16 160.0);
  --color-green-bg: oklch(0.52 0.16 160.0 / 10%);
  --color-yellow: oklch(0.62 0.17 75.0);
  --color-yellow-bg: oklch(0.62 0.17 75.0 / 10%);
  --color-red: oklch(0.55 0.22 20.0);
  --color-red-bg: oklch(0.55 0.22 20.0 / 10%);
}

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

    body {
      font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
      background-color: var(--bg);
      color: var(--text);
      min-height: 100vh;
      min-height: 100dvh;
      overflow-x: hidden;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      -webkit-text-size-adjust: 100%;
    }

    /* TOP HEADER */
    header {
      background: var(--bg);
      border-bottom: 1px solid var(--border-subtle);
      position: sticky;
      top: 0;
      z-index: 40;
      padding: max(10px, env(safe-area-inset-top, 0px)) max(28px, env(safe-area-inset-right, 0px)) 10px max(28px, env(safe-area-inset-left, 0px));
    }

    .header-inner {
      max-width: 1600px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }

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

    .brand-icon {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: var(--accent);
      color: var(--primary-foreground);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: 700;
    }

    .brand-titles h1 {
      font-size: 15.5px;
      font-weight: 700;
      letter-spacing: -0.01em;
      color: var(--text);
    }
    .brand-titles p {
      font-size: 11.5px;
      color: var(--text-muted);
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .sync-beacon-btn {
      position: relative;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 6px 10px;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-size: 11.5px;
      font-weight: 600;
      color: var(--text-muted);
      cursor: default;
      transition: border-color 0.15s, background 0.15s;
    }
    .sync-beacon-btn:hover {
      border-color: var(--text-dim);
      background: var(--surface-hover);
      color: var(--text);
    }
    .sync-beacon-btn:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }
    .sync-beacon-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--color-green);
      box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
      transition: background 0.2s, box-shadow 0.2s;
      animation: beaconPulse 2.5s infinite ease-in-out;
    }
    .sync-beacon-dot.sandbox {
      background: var(--accent);
      box-shadow: 0 0 8px rgba(79, 70, 229, 0.6);
      animation: none;
    }
    @keyframes beaconPulse {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.15); opacity: 0.8; box-shadow: 0 0 12px rgba(16, 185, 129, 0.9); }
    }

    .metric-chip {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 5px 10px;
      font-size: 12px;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .metric-chip strong {
      color: var(--text);
    }

    .btn-secondary {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 9999px;
      padding: 7px 16px;
      color: var(--text);
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      box-shadow: var(--card-shadow);
      transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .btn-secondary:hover {
      background: var(--surface-hover);
      border-color: var(--accent);
      transform: translateY(-1px);
    }
    .btn-secondary:active {
      transform: scale(0.96);
    }

    .search-input-wrap {
      position: relative;
      width: 280px;
      transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .search-input-wrap:focus-within {
      width: 340px;
    }
    .search-input-wrap input {
      width: 100%;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 9999px;
      padding: 6px 14px 6px 34px;
      font-size: 12px;
      color: var(--text);
      outline: none;
      box-shadow: var(--card-shadow);
      transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    }
    .search-input-wrap input:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-subtle);
      background: var(--surface-hover);
    }
    .search-input-wrap .search-icon {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 12px;
      color: var(--text-dim);
      pointer-events: none;
    }

    /* SECONDARY CONTEXT TOOLBAR */
    .context-toolbar {
      max-width: 1600px;
      margin: 12px auto 0;
      padding: 0 28px;
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }

    .context-action-group {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .btn-primary-action {
      background: var(--accent);
      color: var(--primary-foreground);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 9999px;
      padding: 7px 18px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
      transition: background 0.15s, box-shadow 0.15s, transform 0.1s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .btn-primary-action:hover {
      background: var(--accent-hover);
      box-shadow: 0 4px 14px rgba(79, 70, 229, 0.45);
      transform: translateY(-1px);
    }
    .btn-primary-action:active {
      transform: scale(0.96);
    }

    .btn-secondary-action {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 9999px;
      padding: 7px 16px;
      color: var(--text);
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      box-shadow: var(--card-shadow);
      transition: background 0.15s, border-color 0.15s, transform 0.1s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .btn-secondary-action:hover {
      background: var(--surface-hover);
      border-color: var(--accent);
      transform: translateY(-1px);
    }
    .btn-secondary-action:active {
      transform: scale(0.96);
    }

    .filter-pills-row {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .filter-pill {
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text-muted);
      border-radius: 9999px;
      padding: 5px 12px;
      font-size: 11.5px;
      font-weight: 500;
      cursor: pointer;
      box-shadow: var(--card-shadow);
      transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .filter-pill:hover {
      color: var(--text);
      border-color: var(--accent);
      transform: translateY(-1px);
    }
    .filter-pill.active {
      background: var(--accent-subtle);
      border-color: var(--accent);
      color: var(--accent);
      font-weight: 700;
    }
    .filter-pill:active {
      transform: scale(0.96);
    }

    /* DOMAIN CHECKLIST DROPDOWN (US-017) */
    .domain-dropdown-anchor {
      position: relative;
      display: inline-block;
    }
    .domain-filter-btn {
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text);
      border-radius: 9999px;
      padding: 6px 16px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      box-shadow: var(--card-shadow);
      transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .domain-filter-btn:hover {
      background: var(--surface-hover);
      border-color: var(--accent);
      transform: translateY(-1px);
    }
    .domain-filter-btn.active {
      background: var(--accent-subtle);
      border-color: var(--accent);
      color: var(--accent);
    }
    .domain-filter-btn:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }
    .domain-filter-btn:active {
      transform: scale(0.96);
    }
    .domain-dropdown-menu {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      min-width: 240px;
      max-width: 320px;
      background: var(--surface-elevated);
      border: 1px solid var(--border);
      border-radius: 8px;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
      z-index: 50;
      padding: 6px;
      display: flex;
      flex-direction: column;
      gap: 2px;
      animation: dropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .domain-dropdown-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 6px 8px 6px;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-dim);
      border-bottom: 1px solid var(--border-subtle);
      margin-bottom: 4px;
    }
    .domain-dropdown-reset-btn {
      background: transparent;
      border: none;
      color: var(--accent);
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      padding: 2px 4px;
      border-radius: 4px;
    }
    .domain-dropdown-reset-btn:hover {
      text-decoration: underline;
    }
    .domain-checkbox-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 6px 8px;
      border-radius: 5px;
      font-size: 12px;
      font-weight: 500;
      color: var(--text);
      cursor: pointer;
      user-select: none;
      transition: background 0.12s;
    }
    .domain-checkbox-item:hover {
      background: var(--surface-hover);
    }
    .domain-checkbox-item input[type="checkbox"] {
      cursor: pointer;
      accent-color: var(--accent);
      width: 14px;
      height: 14px;
    }
    .domain-badge-count {
      font-size: 10.5px;
      font-family: 'JetBrains Mono', monospace;
      color: var(--text-dim);
      background: var(--bg);
      border: 1px solid var(--border-subtle);
      border-radius: 4px;
      padding: 1px 5px;
    }

    /* MAIN CONTENT */
    main {
      max-width: 1600px;
      margin: 16px auto 60px;
      padding: 0 28px;
    }

    /* VIEW 1: STRATEGY */
    .strategy-layout {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .north-star-strip {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 20px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
      cursor: pointer;
      box-shadow: var(--card-shadow);
      transition: border-color 0.15s ease, box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .north-star-strip:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
      box-shadow: var(--card-shadow-hover);
    }

    .north-star-content h2 {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--accent);
      font-weight: 700;
      margin-bottom: 2px;
    }
    .north-star-content .title {
      font-size: 18px;
      font-weight: 800;
      color: var(--text);
    }

    .annual-bets-inline {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .bet-item {
      background: var(--surface-hover);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 8px 14px;
      font-size: 11.5px;
      line-height: 1.4;
      max-width: 260px;
    }
    .bet-item strong {
      color: var(--text);
      display: block;
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--text-dim);
      margin-bottom: 2px;
    }

    .okr-box {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 22px 24px;
      box-shadow: var(--card-shadow);
    }

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

    .okr-title-left {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .okr-id {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11.5px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 4px;
      background: var(--bg);
      border: 1px solid var(--border);
      color: var(--accent);
    }

    .okr-type-tag {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      padding: 2px 8px;
      border-radius: 10px;
    }
    .okr-type-tag.committed {
      background: var(--color-green-bg);
      color: var(--color-green);
    }
    .okr-type-tag.aspirational {
      background: var(--status-later-bg);
      color: var(--status-later);
    }

    .okr-bet-tag {
      font-size: 10.5px;
      font-weight: 600;
      padding: 2px 8px;
      border-radius: 6px;
      background: rgba(56, 189, 248, 0.1);
      color: var(--accent);
      border: 1px solid rgba(56, 189, 248, 0.25);
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .okr-title-text {
      font-size: 14.5px;
      font-weight: 700;
      color: var(--text);
    }

    .okr-score-chip {
      font-family: 'JetBrains Mono', monospace;
      font-size: 14px;
      font-weight: 800;
      padding: 3px 10px;
      border-radius: 6px;
    }
    .score-green { background: var(--color-green-bg); color: var(--color-green); }
    .score-yellow { background: var(--color-yellow-bg); color: var(--color-yellow); }
    .score-red { background: var(--color-red-bg); color: var(--color-red); }

    .clean-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12px;
    }
    .clean-table th {
      text-align: left;
      padding: 8px 10px;
      border-bottom: 1px solid var(--border);
      color: var(--text-dim);
      font-size: 10.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .clean-table td {
      padding: 10px;
      border-bottom: 1px solid var(--border-subtle);
      vertical-align: middle;
    }

    .kr-id-tag {
      font-family: 'JetBrains Mono', monospace;
      font-weight: 700;
      color: var(--text);
    }

    .progress-bar-wrap {
      width: 100px;
      height: 5px;
      background: var(--bg);
      border-radius: 3px;
      overflow: hidden;
      margin-top: 3px;
    }
    .progress-bar-fill {
      height: 100%;
      border-radius: 3px;
    }

    .status-badge {
      font-size: 10px;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: 4px;
      text-transform: uppercase;
    }
    .status-continue { background: var(--color-green-bg); color: var(--color-green); }
    .status-update { background: var(--color-yellow-bg); color: var(--color-yellow); }
    .status-stop { background: var(--color-red-bg); color: var(--color-red); }

    .link-btn {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10.5px;
      font-weight: 600;
      padding: 2px 7px;
      border-radius: 4px;
      background: var(--bg);
      border: 1px solid var(--border);
      color: var(--accent);
      cursor: pointer;
      transition: all 0.15s;
    }
    .link-btn:hover {
      background: var(--accent);
      color: var(--primary-foreground);
    }

    /* VIEW 2: ROADMAP KANBAN */
    .kanban-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }
    @media (max-width: 1200px) {
      .kanban-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 680px) {
      .kanban-grid { grid-template-columns: 1fr; }
    }

    .kanban-col {
      background: var(--surface-col);
      border: 1px solid var(--border-subtle);
      border-radius: 20px;
      display: flex;
      flex-direction: column;
      max-height: calc(100vh - 220px);
      min-height: 480px;
      box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
    }

    .col-header {
      padding: 14px 18px;
      border-bottom: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .col-badge {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      padding: 3px 10px;
      border-radius: 9999px;
    }
    .col-now .col-badge { background: var(--status-now-bg); color: var(--status-now); }
    .col-next .col-badge { background: var(--status-next-bg); color: var(--status-next); }
    .col-later .col-badge { background: var(--status-later-bg); color: var(--status-later); }
    .col-done .col-badge { background: var(--status-done-bg); color: var(--status-done); }

    .col-cards {
      padding: 12px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 12px;
      flex: 1;
    }

    /* KANBAN CARD (EPIC / INITIATIVE) */
    .kanban-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 16px;
      cursor: pointer;
      box-shadow: var(--card-shadow);
      transition: border-color 0.15s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .kanban-card:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
      box-shadow: var(--card-shadow-hover);
    }
    .kanban-card:active {
      transform: scale(0.98);
    }

    .card-meta-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
      font-size: 10.5px;
      gap: 6px;
    }
    .card-key {
      font-family: 'JetBrains Mono', monospace;
      font-weight: 700;
      color: var(--text-dim);
    }

    /* DOMAIN TAG JUST BELOW PRIORITY */
    .card-domain-badge {
      font-size: 10.5px;
      font-weight: 600;
      padding: 2px 7px;
      border-radius: 4px;
      background: var(--surface);
      color: var(--text-muted);
      border: 1px solid var(--border);
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    /* ROADMAP CARD RELEASE BADGES (US-050 / BL-070) */
    .card-release-badge {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 4px;
      background: rgba(34, 197, 94, 0.12);
      color: var(--color-green);
      border: 1px solid rgba(34, 197, 94, 0.3);
      display: inline-flex;
      align-items: center;
      gap: 3px;
      cursor: pointer;
      transition: all 0.15s ease;
      line-height: 1.2;
    }
    .card-release-badge:hover {
      background: rgba(34, 197, 94, 0.22);
      border-color: var(--color-green);
      transform: translateY(-1px);
    }
    .card-release-badge:active {
      transform: scale(0.95);
    }
    .card-unreleased-badge {
      font-size: 9.5px;
      font-weight: 600;
      padding: 1.5px 6px;
      border-radius: 4px;
      background: var(--surface);
      color: var(--text-dim);
      border: 1px dashed var(--border);
      display: inline-flex;
      align-items: center;
      line-height: 1.2;
    }

    @keyframes pulseHighlightAnimation {
      0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); border-color: var(--accent); }
      50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.2); border-color: var(--accent); }
      100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
    }
    .release-card.pulse-highlight {
      animation: pulseHighlightAnimation 2s ease-out;
      border-color: var(--accent) !important;
    }

    .card-prio {
      font-weight: 700;
      text-transform: uppercase;
      font-size: 9.5px;
      padding: 1.5px 6px;
      border-radius: 4px;
    }
    .prio-critical { background: var(--color-red-bg); color: var(--color-red); }
    .prio-high { background: var(--color-yellow-bg); color: var(--color-yellow); }
    .prio-medium { background: var(--status-next-bg); color: var(--status-next); }
    .prio-low { background: var(--surface); color: var(--text-dim); border: 1px solid var(--border); }

    .card-epic-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.35;
      margin-bottom: 8px;
    }

    /* COMPACT TARGET OKR BADGE: JUST TARGET EMOJI + NUMBER */
    .card-kr-link {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      font-weight: 700;
      color: var(--accent);
      background: var(--accent-subtle);
      padding: 2.5px 7px;
      border-radius: 4px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-bottom: 8px;
    }

    .card-callout-problem {
      font-size: 11px;
      color: var(--text-muted);
      border-left: 2px solid var(--color-red);
      padding-left: 7px;
      margin-bottom: 6px;
      line-height: 1.35;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .card-callout-outcome {
      font-size: 11px;
      color: var(--text-muted);
      border-left: 2px solid var(--color-green);
      padding-left: 7px;
      margin-bottom: 10px;
      line-height: 1.35;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .card-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-top: 1px solid var(--border-subtle);
      padding-top: 8px;
      font-size: 10.5px;
      color: var(--text-dim);
    }
    .badge-count {
      font-family: 'JetBrains Mono', monospace;
      font-weight: 600;
    }

    /* VIEW 3: BACKLOG */
    .backlog-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }
    @media (max-width: 960px) {
      .backlog-layout { grid-template-columns: 1fr; }
    }

    .backlog-panel {
      background: var(--surface-col);
      border: 1px solid var(--border-subtle);
      border-radius: 20px;
      padding: 20px 22px;
      box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
    }

    .panel-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--border-subtle);
      margin-bottom: 16px;
    }
    .panel-header h3 {
      font-size: 13.5px;
      font-weight: 700;
      color: var(--text);
    }

    .clickable-row {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 14px 18px;
      margin-bottom: 12px;
      cursor: pointer;
      box-shadow: var(--card-shadow);
      transition: border-color 0.15s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .clickable-row:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
      box-shadow: var(--card-shadow-hover);
    }
    .clickable-row:active {
      transform: scale(0.98);
    }

    .clickable-row-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 6px;
    }
    .row-id {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      font-weight: 700;
      color: var(--accent);
    }

    .item-status-pill {
      font-size: 10px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 4px;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    .status-pill-todo {
      background: var(--surface);
      color: var(--text-dim);
      border: 1px solid var(--border);
    }
    .status-pill-progress {
      background: var(--color-yellow-bg);
      color: var(--color-yellow);
      border: 1px solid rgba(245, 158, 11, 0.3);
    }
    .status-pill-done {
      background: var(--color-green-bg);
      color: var(--color-green);
      border: 1px solid rgba(16, 185, 129, 0.3);
    }

    .row-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 4px;
      line-height: 1.35;
    }
    .row-desc {
      font-size: 11.5px;
      color: var(--text-muted);
      line-height: 1.4;
      margin-bottom: 6px;
    }
    .row-foot {
      font-size: 10.5px;
      color: var(--text-dim);
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-top: 1px solid var(--border-subtle);
      padding-top: 6px;
    }

    /* ========================================================
       COLLAPSIBLE 3RD-COLUMN RIGHT INSPECTOR PANE (US-082)
       ======================================================== */
    .right-inspector-pane {
      width: 360px;
      min-width: 360px;
      max-width: 700px;
      flex-shrink: 0;
      background: var(--surface-col);
      border-left: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      height: 100vh;
      position: sticky;
      top: 0;
      z-index: 50;
      overflow: hidden;
      transition: width 200ms ease, opacity 200ms ease, border-left-color 200ms ease;
    }

    .right-inspector-pane.collapsed {
      width: 0 !important;
      min-width: 0 !important;
      max-width: 0 !important;
      border-left-color: transparent !important;
      opacity: 0;
      pointer-events: none;
      visibility: hidden;
      display: none !important;
    }

    .inspector-top-toolbar {
      padding: 10px 14px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--surface-col);
      flex-shrink: 0;
    }

    .inspector-search-wrap {
      flex: 1;
      display: flex;
      align-items: center;
      gap: 6px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm, 8px);
      padding: 4px 8px;
      transition: border-color var(--transition);
    }

    .inspector-search-wrap:focus-within {
      border-color: var(--accent);
    }

    .inspector-search-box {
      width: 100%;
      font-size: 12px;
      background: transparent;
      border: none;
      color: var(--foreground);
      outline: none;
      padding: 0;
    }

    .inspector-close-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 6px;
      border-radius: var(--radius-sm, 8px);
      color: var(--text-dim);
      background: transparent;
      border: none;
      cursor: pointer;
      transition: background-color var(--transition), color var(--transition);
    }

    .inspector-close-btn:hover {
      background: var(--surface-hover);
      color: var(--foreground);
    }

    .panel-toggle-btn.active,
    .panel-toggle-btn[aria-expanded="true"] {
      background: var(--surface-hover);
      color: var(--accent);
      border-color: var(--accent);
    }

    /* 3rd-Column Inspector Container & Panel Adaptation */
    #drawer-container {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      position: relative;
      background: transparent;
      padding: 0;
      width: 100%;
      height: 100%;
    }

    .drawer-panel {
      position: relative;
      width: 100%;
      max-width: 100%;
      height: 100%;
      max-height: 100%;
      background: var(--surface-col);
      border: none;
      border-radius: 0;
      box-shadow: none;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .drawer-in-place-content {
      display: flex;
      flex-direction: column;
      height: 100%;
      width: 100%;
      min-height: 0;
      overflow: hidden;
    }

    @media (max-width: 768px) {
      .right-inspector-pane {
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 99;
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.45);
      }
    }

    .drawer-breadcrumbs {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 9px 16px;
      background: var(--bg);
      border-bottom: 1px solid var(--border);
      font-size: 11px;
      overflow-x: auto;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .drawer-back-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 8px;
      font-size: 11px;
      font-weight: 600;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 4px;
      color: var(--accent);
      cursor: pointer;
      flex-shrink: 0;
      transition: all 0.15s ease;
    }
    .drawer-back-btn:hover {
      background: var(--surface-hover);
      border-color: var(--accent);
      transform: translateX(-2px);
    }
    .drawer-back-btn:active {
      transform: scale(0.95);
    }

    .drawer-crumbs-list {
      display: flex;
      align-items: center;
      gap: 5px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      color: var(--text-dim);
      overflow-x: auto;
      scrollbar-width: none;
    }
    .drawer-crumbs-list::-webkit-scrollbar { display: none; }

    .drawer-crumbs-list .crumb {
      cursor: pointer;
      color: var(--text-dim);
      padding: 2px 6px;
      border-radius: 4px;
      transition: all 0.15s ease;
    }
    .drawer-crumbs-list .crumb:hover {
      color: var(--accent);
      background: rgba(56, 189, 248, 0.08);
    }
    .drawer-crumbs-list .crumb.active {
      color: var(--accent);
      font-weight: 700;
      background: rgba(56, 189, 248, 0.12);
      border: 1px solid rgba(56, 189, 248, 0.25);
      cursor: default;
    }
    .drawer-crumbs-list .crumb-sep {
      color: var(--text-dim);
      font-size: 11px;
      opacity: 0.5;
      user-select: none;
    }

    /* ========================================================
       CANONICAL DRAWER SPINE STYLES
       ======================================================== */
    .drawer-spine-layer {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      margin-bottom: 12px;
      overflow: hidden;
      transition: all 0.2s ease;
    }
    .drawer-spine-layer:last-child {
      margin-bottom: 0;
    }
    .drawer-spine-layer.active {
      border: 2px solid var(--accent);
      background: var(--surface);
      box-shadow: 0 0 16px rgba(56, 189, 248, 0.12);
    }
    .spine-layer-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 9px 12px;
      background: rgba(255, 255, 255, 0.02);
      border-bottom: 1px solid var(--border-subtle);
    }
    .drawer-spine-layer.active .spine-layer-header {
      background: rgba(56, 189, 248, 0.09);
      border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    }
    .spine-layer-title {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-dim);
    }
    .drawer-spine-layer.active .spine-layer-title {
      color: var(--accent);
    }
    .spine-active-badge {
      font-size: 9px;
      font-weight: 800;
      padding: 2px 6px;
      border-radius: 10px;
      background: var(--accent);
      color: var(--primary-foreground);
      letter-spacing: 0.04em;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    .spine-layer-body {
      padding: 12px;
    }
    .spine-ancestor-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      background: var(--bg-surface-2, rgba(255, 255, 255, 0.02));
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 8px 12px;
    }
    .spine-ancestor-card .info {
      flex: 1;
      min-width: 0;
      overflow: hidden;
    }
    .spine-ancestor-card .title {
      font-size: 12.5px;
      font-weight: 600;
      color: var(--text);
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
    }
    .spine-ancestor-card .sub {
      font-size: 11px;
      color: var(--text-dim);
      margin-top: 2px;
    }
    .spine-item-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      background: var(--bg-surface-2, rgba(255, 255, 255, 0.02));
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 7px 10px;
      margin-bottom: 6px;
      font-size: 12px;
      transition: background 0.15s ease, border-color 0.15s ease;
    }
    .spine-item-row:last-child {
      margin-bottom: 0;
    }
    .spine-item-row:hover {
      background: var(--surface-hover);
      border-color: var(--accent);
    }
    .spine-item-meta {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      flex: 1;
      overflow: hidden;
    }
    .spine-item-label {
      color: var(--text);
      font-weight: 500;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
    }
    .spine-empty-hint {
      font-size: 11.5px;
      color: var(--text-dim);
      font-style: italic;
      padding: 2px 0;
    }

    .drawer {
      position: fixed;
      top: 0;
      right: -600px;
      width: 580px;
      max-width: 92vw;
      height: 100vh;
      background: var(--surface);
      border-left: 1px solid var(--border);
      box-shadow: -10px 0 30px rgba(0,0,0,0.4);
      z-index: 100;
      display: flex;
      flex-direction: column;
      transition: right 0.25s ease-out;
    }
    .drawer.open { right: 0; }

    .drawer-top {
      padding: 14px 18px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-shrink: 0;
    }
    .drawer-top-titles h2 {
      font-size: 15px;
      font-weight: 700;
      color: var(--text);
    }
    .drawer-top-titles p {
      font-size: 11.5px;
      color: var(--text-muted);
    }
    .drawer-close {
      background: var(--bg);
      border: 1px solid var(--border);
      color: var(--text-muted);
      width: 28px;
      height: 28px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 15px;
    }
    .drawer-close:hover { color: var(--text); }

    .drawer-scroll {
      padding: 20px;
      overflow-y: auto;
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .drawer-card {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 14px;
    }
    .drawer-card h4 {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-dim);
      font-weight: 700;
      margin-bottom: 8px;
    }

    /* INLINE USER STORY IN DRAWER */
    .story-inline-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-left: 3px solid var(--status-now);
      border-radius: 6px;
      padding: 12px;
      margin-bottom: 10px;
    }
    .story-inline-card:last-child {
      margin-bottom: 0;
    }
    .story-inline-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 6px;
    }
    .story-inline-id {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      font-weight: 700;
      color: var(--status-now);
      background: var(--status-now-bg);
      padding: 1px 6px;
      border-radius: 4px;
    }
    .story-inline-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
    }
    .story-inline-narrative {
      font-size: 12px;
      color: var(--text-muted);
      line-height: 1.5;
      margin-bottom: 8px;
    }

    .gherkin-box {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 8px 10px;
      font-size: 11.5px;
      font-family: 'JetBrains Mono', monospace;
      line-height: 1.5;
    }

    /* RAW FILES MODAL */
    .modal {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 820px;
      max-width: 92vw;
      max-height: 80vh;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 20px;
      box-shadow: 0 25px 65px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
      z-index: 1200;
      display: none;
      flex-direction: column;
    }
    .modal.open { display: flex; }
    .modal-head {
      padding: 14px 18px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .modal-body {
      padding: 16px;
      overflow-y: auto;
      flex: 1;
    }
    .code-view {
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      line-height: 1.5;
      color: var(--text);
      white-space: pre-wrap;
    }
  
    /* DRAG AND DROP KANBAN STYLES */
    .kanban-card {
      cursor: grab;
      user-select: none;
      -webkit-user-select: none;
      -webkit-user-drag: element;
      transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s, border-color 0.15s;
    }
    .kanban-card:active {
      cursor: grabbing;
    }
    .kanban-card.dragging {
      opacity: 0.45;
      transform: scale(0.98) rotate(1deg);
      border: 1.5px dashed var(--accent) !important;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }
    .col-cards {
      min-height: 140px;
      transition: background-color 0.2s, outline 0.2s;
      border-radius: 8px;
      padding: 4px;
    }
    .col-cards.drag-over {
      outline: 2px dashed var(--accent);
      outline-offset: -2px;
      background-color: var(--accent-subtle) !important;
    }

    /* VISUAL FRICTION EVIDENCE DROPZONE (US-009 / RD-012) */
    .evidence-dropzone {
      border: 1.5px dashed var(--border);
      border-radius: 8px;
      background: var(--surface);
      padding: 14px 16px;
      text-align: center;
      cursor: pointer;
      transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s, transform 0.15s;
      outline: none;
      user-select: none;
      position: relative;
    }
    .evidence-dropzone:hover, .evidence-dropzone:focus-visible {
      border-color: var(--accent);
      background: var(--accent-subtle);
    }
    .evidence-dropzone.drag-over {
      border-color: var(--accent) !important;
      background: var(--accent-subtle) !important;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
      transform: scale(1.01);
    }
    .dropzone-empty {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
    }
    .dropzone-icon {
      font-size: 26px;
      margin-bottom: 2px;
      line-height: 1;
    }
    .dropzone-text {
      font-size: 12px;
      color: var(--text);
    }
    .dropzone-text strong {
      color: var(--accent);
    }
    .dropzone-hint {
      font-size: 10.5px;
      color: var(--text-dim);
    }
    .dropzone-preview {
      display: flex;
      align-items: center;
      gap: 14px;
      text-align: left;
      background: var(--surface-hover);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 8px 12px;
    }
    .preview-thumbnail-wrap {
      position: relative;
      width: 72px;
      height: 52px;
      flex-shrink: 0;
      border-radius: 4px;
      overflow: hidden;
      border: 1px solid var(--border);
      background: var(--background);
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }
    .evidence-preview-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .preview-remove-btn {
      position: absolute;
      top: 2px;
      right: 2px;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.75);
      color: var(--foreground);
      border: none;
      font-size: 10px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.15s, transform 0.1s;
    }
    .preview-remove-btn:hover {
      background: var(--color-red);
      transform: scale(1.1);
    }
    .preview-remove-btn:active {
      transform: scale(0.95);
    }
    .preview-meta {
      flex: 1;
      min-width: 0;
    }
    .preview-filename {
      font-size: 12px;
      font-weight: 600;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .preview-filesize {
      font-size: 10.5px;
      color: var(--text-dim);
      font-family: 'JetBrains Mono', monospace;
      margin-top: 2px;
    }
    .preview-badge {
      font-size: 9.5px;
      font-weight: 600;
      color: var(--color-green);
      margin-top: 3px;
    }
    .bl-evidence-chip {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      font-size: 9.5px;
      font-weight: 600;
      padding: 1px 6px;
      border-radius: 4px;
      background: rgba(59, 130, 246, 0.12);
      color: var(--accent);
      border: 1px solid rgba(59, 130, 246, 0.25);
    }

    /* HIGH-RESOLUTION EVIDENCE THUMBNAILS & LIGHTBOX (US-012) */
    .evidence-thumb-container {
      position: relative;
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid var(--border);
      background: var(--background);
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: zoom-in;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      outline: none;
    }
    .evidence-thumb-container:hover, .evidence-thumb-container:focus-visible {
      border-color: var(--accent);
      box-shadow: 0 0 16px rgba(79, 70, 229, 0.25);
    }
    .evidence-thumb-img {
      max-height: 280px;
      max-width: 100%;
      object-fit: contain;
      display: block;
      transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .evidence-thumb-container:hover .evidence-thumb-img {
      transform: scale(1.02);
    }
    .evidence-zoom-hint {
      position: absolute;
      bottom: 8px;
      right: 8px;
      background: rgba(11, 15, 23, 0.88);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 3px 8px;
      font-size: 10.5px;
      font-weight: 600;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 4px;
      opacity: 0.85;
      transition: opacity 0.2s ease, border-color 0.2s ease;
      pointer-events: none;
    }
    .evidence-thumb-container:hover .evidence-zoom-hint {
      opacity: 1;
      border-color: var(--accent);
      color: var(--foreground);
    }

    /* LIGHTBOX OVERLAY (US-012) */
    .image-lightbox-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(4, 7, 13, 0.92);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      z-index: 1000;
      display: none;
      flex-direction: column;
      opacity: 0;
      transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .image-lightbox-overlay.open {
      display: flex;
      opacity: 1;
    }
    .lightbox-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 24px;
      background: rgba(18, 24, 36, 0.85);
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
      z-index: 10;
    }
    .lightbox-title-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }
    .lightbox-icon {
      font-size: 16px;
    }
    .lightbox-title {
      font-size: 13.5px;
      font-weight: 700;
      color: var(--text);
      font-family: 'JetBrains Mono', monospace;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 50vw;
    }
    .lightbox-zoom-badge {
      font-size: 10.5px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 4px;
      background: var(--surface-elevated);
      border: 1px solid var(--border);
      color: var(--accent);
      font-family: 'JetBrains Mono', monospace;
    }
    .lightbox-controls {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .lightbox-btn {
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text);
      font-size: 12px;
      font-weight: 600;
      padding: 5px 10px;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .lightbox-btn:hover {
      background: var(--surface-hover);
      border-color: var(--accent);
      color: var(--foreground);
    }
    .lightbox-btn:active {
      transform: scale(0.95);
    }
    .lightbox-close-btn {
      background: rgba(239, 68, 68, 0.15);
      border: 1px solid rgba(239, 68, 68, 0.3);
      color: var(--color-red);
      font-size: 14px;
      font-weight: 700;
      padding: 5px 12px;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .lightbox-close-btn:hover {
      background: var(--color-red);
      color: var(--destructive-foreground);
    }
    .lightbox-close-btn:active {
      transform: scale(0.95);
    }
    .lightbox-content-wrap {
      flex: 1;
      overflow: hidden;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      cursor: grab;
      user-select: none;
    }
    .lightbox-content-wrap.panning {
      cursor: grabbing;
    }
    .lightbox-pan-container {
      display: inline-flex;
      transform-origin: center center;
      transition: transform 0.08s ease-out;
      will-change: transform;
    }
    .lightbox-img {
      max-width: 90vw;
      max-height: 80vh;
      object-fit: contain;
      border-radius: 6px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
      border: 1px solid var(--border);
      pointer-events: none;
    }
    .lightbox-hint {
      padding: 8px 16px;
      text-align: center;
      font-size: 11px;
      color: var(--text-dim);
      background: rgba(11, 15, 23, 0.85);
      border-top: 1px solid var(--border-subtle);
      flex-shrink: 0;
    }
    .lightbox-hint kbd {
      background: var(--surface);
      border: 1px solid var(--border);
      padding: 1px 5px;
      border-radius: 3px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      color: var(--text);
    }

    /* CARD ACTION ICONS */
    .card-actions-hover {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      opacity: 0;
      transition: opacity 0.15s;
    }
    .kanban-card:hover .card-actions-hover {
      opacity: 1;
    }
    .card-action-btn {
      background: var(--surface-hover);
      border: 1px solid var(--border);
      color: var(--text-muted);
      border-radius: 4px;
      padding: 2px 6px;
      font-size: 10px;
      cursor: pointer;
    }
    .card-action-btn:hover {
      color: var(--text);
      border-color: var(--accent);
    }

    /* TOAST NOTIFICATION */
    .toast {
      position: fixed;
      bottom: 76px;
      right: 24px;
      background: var(--surface-elevated);
      border: 1px solid var(--border);
      color: var(--text);
      padding: 12px 18px;
      border-radius: 8px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.4);
      font-size: 13px;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 10px;
      z-index: 1300;
      transform: translateY(80px);
      opacity: 0;
      transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
      pointer-events: none;
      max-width: 460px;
      line-height: 1.4;
    }
    .toast.show {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }
    .toast-success { border-left: 4px solid var(--color-green); }
    .toast-warning { border-left: 4px solid var(--color-yellow); }
    .toast-info { border-left: 4px solid var(--accent); }
    .toast-error { border-left: 4px solid var(--color-red); }

    .feedback-toast-fallback {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .toast-fallback-text {
      font-size: 12px;
      line-height: 1.4;
      color: var(--text);
    }
    .toast-fallback-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background: var(--surface);
      border: 1px solid var(--border-medium, rgba(255, 255, 255, 0.15));
      color: var(--text);
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s ease;
      width: fit-content;
    }
    .toast-fallback-btn:hover {
      background: var(--surface-hover);
      border-color: var(--accent);
      color: var(--text-bright);
    }
    .toast-fallback-btn:active {
      transform: scale(0.95);
    }

    /* EDIT & FORM CONTROLS */
    .form-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-bottom: 14px;
    }
    .form-label {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-dim);
    }
    .form-input, .form-select, .form-textarea {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 9px 12px;
      font-family: inherit;
      font-size: 13px;
      color: var(--text);
      outline: none;
      transition: border-color 0.15s, box-shadow 0.15s;
      width: 100%;
      box-sizing: border-box;
    }
    .form-input:focus, .form-select:focus, .form-textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 2px var(--accent-subtle);
    }
    .form-textarea {
      resize: vertical;
      min-height: 75px;
      line-height: 1.5;
    }
    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .btn-primary {
      background: var(--accent);
      color: white;
      border: none;
      border-radius: 6px;
      padding: 7px 14px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: background 0.15s;
    }
    .btn-primary:hover {
      background: var(--accent-hover);
    }
    .btn-danger {
      background: transparent;
      color: var(--color-red);
      border: 1px solid rgba(244, 63, 94, 0.4);
      border-radius: 6px;
      padding: 6px 12px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.15s;
    }
    .btn-danger:hover {
      background: var(--color-red-bg);
    }
    .modal-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      padding-top: 14px;
      border-top: 1px solid var(--border);
      margin-top: 10px;
    }
    .status-switch-row {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 6px;
    }
    .status-switch-btn {
      padding: 4px 10px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 600;
      border: 1px solid var(--border);
      background: var(--bg);
      color: var(--text-muted);
      cursor: pointer;
      transition: all 0.15s;
    }
    .status-switch-btn:hover {
      border-color: var(--text-dim);
      color: var(--text);
    }
    .status-switch-btn.active-todo {
      background: var(--surface-elevated);
      color: var(--text);
      border-color: var(--text-dim);
    }
    .status-switch-btn.active-progress {
      background: var(--color-yellow-bg);
      color: var(--color-yellow);
      border-color: rgba(245, 158, 11, 0.4);
    }
    .status-switch-btn.active-done {
      background: var(--color-green-bg);
      color: var(--color-green);
      border-color: rgba(16, 185, 129, 0.4);
    }

  
    /* MULTI-PROJECT DROPDOWN STYLES */
    .project-select-btn {
      background: var(--bg);
      border: 1px solid var(--border);
      color: var(--text);
      padding: 3px 8px;
      border-radius: 6px;
      font-size: 11.5px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-top: 3px;
      transition: background 0.15s, border-color 0.15s;
    }
    .project-select-btn:hover {
      background: var(--surface-hover);
      border-color: var(--accent);
    }
    .project-select-btn:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }
    .project-dropdown-menu {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      width: 320px;
      background: var(--surface-elevated);
      border: 1px solid var(--border);
      border-radius: 8px;
      box-shadow: 0 12px 30px rgba(0,0,0,0.4);
      z-index: 100;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    .dropdown-header {
      padding: 8px 12px;
      font-size: 10.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-dim);
      border-bottom: 1px solid var(--border);
    }
    .dropdown-list {
      max-height: 220px;
      overflow-y: auto;
    }
    .dropdown-project-item {
      padding: 9px 12px;
      border-bottom: 1px solid var(--border-subtle);
      cursor: pointer;
      transition: background 0.15s;
    }
    .dropdown-project-item:hover {
      background: var(--surface-hover);
    }
    .dropdown-project-item.active {
      background: var(--accent-subtle);
      border-left: 3px solid var(--accent);
    }
    .dropdown-footer {
      padding: 6px;
      background: var(--bg);
      border-top: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .dropdown-action-btn {
      width: 100%;
      text-align: left;
      background: transparent;
      border: none;
      color: var(--text-muted);
      padding: 6px 8px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .dropdown-action-btn:hover {
      background: var(--surface-hover);
      color: var(--text);
    }

    /* HEADER ACTIONS OVERFLOW MENU (US-013) */
    .header-actions-dropdown {
      position: absolute;
      top: calc(100% + 6px);
      right: 0;
      width: 270px;
      background: var(--surface-elevated);
      border: 1px solid var(--border);
      border-radius: 8px;
      box-shadow: 0 12px 30px rgba(0,0,0,0.45);
      z-index: 100;
      display: none;
      flex-direction: column;
      overflow: hidden;
      animation: dropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .header-actions-dropdown .dropdown-action-btn {
      padding: 9px 12px;
      display: flex;
      align-items: flex-start;
      gap: 10px;
      color: var(--text);
      transition: background 0.15s ease;
    }
    .header-actions-dropdown .dropdown-action-btn:hover {
      background: var(--surface-hover);
      color: var(--accent);
    }
    .header-actions-dropdown .dropdown-action-btn:active {
      transform: scale(0.98);
    }
    .menu-btn-text {
      display: flex;
      flex-direction: column;
      gap: 1.5px;
    }
    .menu-btn-title {
      font-size: 12px;
      font-weight: 600;
      color: var(--text);
    }
    .menu-btn-desc {
      font-size: 10.5px;
      color: var(--text-dim);
      font-weight: 400;
      line-height: 1.3;
    }
    .header-actions-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 5px 12px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .header-actions-btn:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }
    .header-actions-btn:active {
      transform: scale(0.95);
    }
    @keyframes dropdownFadeIn {
      from { opacity: 0; transform: translateY(-4px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    .project-loading-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(10, 14, 23, 0.78);
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
      z-index: 99999;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 14px;
    }
    .project-loading-spinner {
      width: 42px;
      height: 42px;
      border: 3.5px solid rgba(255, 255, 255, 0.15);
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    /* ========================================================
       macOS PERSISTENT LEFT NAVIGATION RAIL (US-021 / RD-019)
       ======================================================== */
    .app-layout {
      display: flex;
      flex-direction: row;
      min-height: 100vh;
      width: 100%;
      background: var(--bg);
    }

    .macos-nav-rail {
      width: 250px;
      min-width: 180px;
      max-width: 500px;
      flex-shrink: 0;
      background: var(--surface-col);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      height: 100vh;
      position: sticky;
      top: 0;
      z-index: 50;
      overflow: hidden;
      user-select: none;
      transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .macos-nav-rail.collapsed {
      width: 0 !important;
      min-width: 0 !important;
      max-width: 0 !important;
      padding: 0 !important;
      opacity: 0;
      pointer-events: none;
      visibility: hidden;
      border-right-color: transparent !important;
      overflow: hidden;
    }

    /* Draggable Split-Pane Resizers */
    .pane-resizer {
      width: 6px;
      margin: 0 -3px;
      background: transparent;
      position: relative;
      cursor: col-resize;
      z-index: 60;
      flex-shrink: 0;
      transition: background-color 150ms ease;
      user-select: none;
    }

    .pane-resizer::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: -4px;
      right: -4px;
      cursor: col-resize;
    }

    .pane-resizer:hover,
    .pane-resizer.is-dragging {
      background: var(--accent);
    }

    body.is-resizing-pane,
    body.is-resizing-pane * {
      cursor: col-resize !important;
      user-select: none !important;
    }

    body.is-resizing-pane .macos-nav-rail,
    body.is-resizing-pane .right-inspector-pane,
    body.is-resizing-pane .app-main-viewport {
      transition: none !important;
    }

    .app-main-viewport {
      flex: 1 1 0%;
      min-width: 0;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      background: var(--bg);
      overflow-x: hidden;
    }

    /* Window Chrome & Header */
    .macos-rail-header {
      padding: 16px 16px;
      border-bottom: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--surface-col);
    }

    .macos-rail-close-btn {
      display: none;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text-dim);
      font-size: 16px;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
      margin-left: auto;
    }
    .macos-rail-close-btn:hover {
      background: var(--surface-hover);
      color: var(--text);
    }
    .macos-rail-close-btn:active {
      transform: scale(0.94);
    }

    .canvas-toolbar {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
      margin-bottom: 16px;
      padding: 4px 0;
    }

    .macos-rail-brand {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .macos-rail-brand-icon {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      background: linear-gradient(135deg, var(--accent) 0%, oklch(0.65 0.18 275.0) 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
      flex-shrink: 0;
    }

    .macos-rail-brand-titles {
      display: flex;
      flex-direction: column;
      min-width: 0;
    }

    .macos-rail-app-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.2;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .macos-rail-app-sub {
      font-size: 11px;
      color: var(--text-dim);
      line-height: 1.2;
      margin-top: 1px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Nav Groups Body */
    .macos-rail-nav {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 12px 10px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .macos-rail-nav::-webkit-scrollbar {
      width: 4px;
    }
    .macos-rail-nav::-webkit-scrollbar-thumb {
      background: var(--border);
      border-radius: 4px;
    }

    .rail-nav-group {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .rail-group-title {
      font-size: 10.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-dim);
      padding: 4px 10px 6px;
    }

    .rail-item {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 7px 10px;
      border-radius: 8px;
      background: transparent;
      border: 1px solid transparent;
      color: var(--text-muted);
      font-size: 12.5px;
      font-weight: 500;
      text-align: left;
      cursor: pointer;
      width: 100%;
      transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
      outline: none;
      position: relative;
    }

    .rail-item:hover {
      background: var(--surface-hover);
      color: var(--text);
    }

    .rail-item:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: -1px;
    }

    .rail-item:active {
      transform: scale(0.95);
    }

    .rail-item.active {
      background: var(--accent-subtle);
      color: var(--text);
      font-weight: 600;
      border-color: rgba(79, 70, 229, 0.18);
    }

    [data-theme="dark"] .rail-item.active {
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    }

    .rail-item-icon {
      font-size: 14px;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      flex-shrink: 0;
    }

    .rail-item-label {
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .rail-item-badge {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      font-weight: 600;
      padding: 1px 6px;
      border-radius: 9999px;
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text-dim);
      margin-left: auto;
      line-height: 1.4;
    }

    .rail-item.active .rail-item-badge {
      background: var(--accent);
      color: var(--primary-foreground);
      border-color: transparent;
    }

    /* Studio Projects List in Rail (US-079 / RD-016) */
    .rail-projects-list {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .rail-project-item {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 7px 10px;
      border-radius: 8px;
      background: transparent;
      border: 1px solid transparent;
      color: var(--text-secondary);
      font-size: 12.5px;
      font-weight: 500;
      text-align: left;
      cursor: pointer;
      width: 100%;
      transition: all var(--transition, 200ms ease);
      outline: none;
      position: relative;
    }

    .rail-project-item:hover {
      background: var(--surface-hover);
      color: var(--text-primary);
    }

    .rail-project-item.active {
      background: var(--accent-subtle);
      color: var(--text-primary);
      font-weight: 600;
      border-color: rgba(47, 128, 237, 0.25);
    }

    .rail-project-active-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent);
      margin-left: auto;
      flex-shrink: 0;
      box-shadow: 0 0 8px var(--accent);
    }

    .rail-project-action-btn {
      background: transparent;
      border: none;
      color: var(--text-dim);
      cursor: pointer;
      padding: 2px 4px;
      border-radius: 4px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: all var(--transition, 200ms ease);
    }

    .rail-project-action-btn:hover {
      color: var(--text-primary);
      background: var(--surface-hover);
    }

    /* Strategic Bets List in Rail */
    .rail-bets-list {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .rail-bet-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 10px;
      border-radius: 8px;
      background: transparent;
      border: 1px solid transparent;
      color: var(--text-muted);
      font-size: 11.5px;
      font-weight: 500;
      text-align: left;
      cursor: pointer;
      width: 100%;
      transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
      outline: none;
    }
    .rail-bet-item:hover {
      background: var(--surface-hover);
      color: var(--text);
    }
    .rail-bet-item:focus-visible {
      outline: 2px solid var(--accent);
    }
    .rail-bet-item:active {
      transform: scale(0.95);
    }
    .rail-bet-item.active {
      background: var(--accent-subtle);
      color: var(--text);
      font-weight: 600;
      border-color: rgba(79, 70, 229, 0.18);
    }
    .rail-bet-badge {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9.5px;
      font-weight: 700;
      color: var(--accent);
      background: var(--surface);
      padding: 1px 5px;
      border-radius: 4px;
      border: 1px solid var(--border);
      flex-shrink: 0;
    }
    .rail-bet-title {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 1;
    }

    /* Docked Utilities Footer */
    .macos-rail-footer {
      padding: 10px 10px 14px;
      border-top: 1px solid var(--border-subtle);
      background: var(--surface-col);
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .rail-sync-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 10px;
      border-radius: 8px;
      background: var(--surface);
      border: 1px solid var(--border);
      font-size: 11px;
      cursor: default;
    }

    .rail-sync-info {
      display: flex;
      flex-direction: column;
      line-height: 1.25;
      min-width: 0;
    }

    .rail-sync-status-title {
      font-weight: 600;
      color: var(--text);
      font-size: 11.5px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .rail-sync-status-sub {
      font-size: 10px;
      color: var(--text-dim);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .rail-docked-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 7px 10px;
      border-radius: 8px;
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text);
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
      outline: none;
      width: 100%;
      text-align: left;
    }
    .rail-docked-btn:hover {
      background: var(--surface-hover);
      border-color: var(--accent);
    }
    .rail-docked-btn:focus-visible {
      outline: 2px solid var(--accent);
    }
    .rail-docked-btn:active {
      transform: scale(0.95);
    }

    .rail-project-name {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 1;
      font-size: 11.5px;
    }

    .rail-project-docked {
      position: relative;
    }

    #rail-project-dropdown-menu {
      top: auto !important;
      bottom: calc(100% + 8px) !important;
      left: 0 !important;
      width: 230px !important;
      max-height: 420px;
      overflow-y: auto;
      z-index: 1000 !important;
      box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border);
      border-radius: 10px;
      animation: popoverFadeIn 0.15s ease-out;
    }

    /* Contextual View Filters in Left Rail (US-031 / BL-031) */
    .rail-filter-subblock {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .rail-filter-subtitle {
      font-size: 10px;
      font-weight: 600;
      color: var(--text-dim);
      text-transform: uppercase;
      letter-spacing: 0.04em;
      padding: 0 4px;
    }
    .rail-pills-wrap {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      padding: 2px 0;
    }
    .rail-filter-pill {
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text-dim);
      font-size: 11px;
      font-weight: 500;
      padding: 3px 8px;
      border-radius: 9999px;
      cursor: pointer;
      transition: all 0.15s ease;
      user-select: none;
    }
    .rail-filter-pill:hover {
      background: var(--surface-hover);
      color: var(--text);
      border-color: var(--accent);
    }
    .rail-filter-pill:active {
      transform: scale(0.95);
    }
    .rail-filter-pill.active {
      background: var(--accent-subtle);
      border-color: var(--accent);
      color: var(--accent);
      font-weight: 700;
    }
    .rail-filter-domain-btn {
      width: 100%;
      text-align: left;
    }

    /* ========================================================
       ACTIVE RAIL FILTER BANNER (US-023 / RD-019)
       ======================================================== */
    .active-rail-filter-banner {
      background: var(--surface);
      border: 1px solid var(--accent);
      border-radius: 12px;
      padding: 10px 16px;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
      animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .active-filter-content {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 12.5px;
      color: var(--text);
      min-width: 0;
    }

    .active-filter-badge {
      font-size: 11px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 9999px;
      background: var(--accent-subtle);
      color: var(--accent);
      white-space: nowrap;
    }

    .active-filter-title {
      font-weight: 600;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .active-filter-desc {
      font-size: 11.5px;
      color: var(--text-dim);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .active-filter-reset-btn {
      background: var(--surface-hover);
      border: 1px solid var(--border);
      color: var(--text);
      border-radius: 8px;
      padding: 5px 12px;
      font-size: 11.5px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
      flex-shrink: 0;
    }

    .active-filter-reset-btn:hover {
      background: var(--accent);
      color: var(--primary-foreground);
      border-color: var(--accent);
      transform: translateY(-1px);
    }

    .active-filter-reset-btn:active {
      transform: scale(0.95);
    }

    /* ========================================================
       TACTILE 4x2 QUICK ACTION LAUNCHPAD GRID (US-022 / RD-019)
       ======================================================== */
    .action-launchpad-section {
      margin-bottom: 24px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .action-launchpad-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 2px;
    }

    .action-launchpad-title-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .action-launchpad-title {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-dim);
    }

    .action-launchpad-badge {
      font-size: 10px;
      font-weight: 600;
      padding: 1px 6px;
      border-radius: 9999px;
      background: var(--accent-subtle);
      color: var(--accent);
      border: 1px solid rgba(99, 102, 241, 0.2);
    }

    .action-launchpad-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      width: 100%;
    }

    .launchpad-card.launchpad-card-solid {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 18px;
      min-height: 52px;
      border-radius: 12px;
    }

    .launchpad-card.launchpad-card-solid .launchpad-card-title {
      font-size: 13.5px;
      font-weight: 700;
      color: var(--text);
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .launchpad-card.launchpad-card-solid .launchpad-card-action-cue {
      position: static;
      opacity: 0.6;
      transform: none;
      font-size: 12px;
      margin-left: auto;
    }

    .launchpad-card.launchpad-card-solid:hover .launchpad-card-action-cue {
      opacity: 1;
      color: var(--accent);
      transform: translateX(2px);
    }

    .launchpad-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 14px 16px;
      display: flex;
      align-items: flex-start;
      gap: 12px;
      cursor: pointer;
      text-align: left;
      transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1),
                  border-color 0.15s ease,
                  box-shadow 0.15s ease,
                  background 0.15s ease;
      box-shadow: var(--card-shadow);
      position: relative;
      overflow: hidden;
      outline: none;
      user-select: none;
    }

    .launchpad-card:hover {
      transform: translateY(-2px);
      border-color: var(--accent);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--accent);
      background: var(--surface-hover);
    }

    .launchpad-card:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    .launchpad-card:active {
      transform: scale(0.95) translateY(0);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .launchpad-card-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      flex-shrink: 0;
      transition: transform 0.15s ease;
    }

    .launchpad-card:hover .launchpad-card-icon {
      transform: scale(1.08);
    }

    .launchpad-card-icon.accent-indigo {
      background: oklch(0.65 0.18 275.0 / 12%);
      border: 1px solid oklch(0.65 0.18 275.0 / 25%);
      color: oklch(0.65 0.18 275.0);
    }
    .launchpad-card-icon.accent-amber {
      background: var(--color-yellow-bg);
      border: 1px solid oklch(0.75 0.17 75.0 / 25%);
      color: var(--color-yellow);
    }
    .launchpad-card-icon.accent-blue {
      background: var(--status-next-bg);
      border: 1px solid oklch(0.62 0.19 250.0 / 25%);
      color: var(--status-next);
    }
    .launchpad-card-icon.accent-emerald {
      background: var(--color-green-bg);
      border: 1px solid oklch(0.65 0.17 160.0 / 25%);
      color: var(--color-green);
    }
    .launchpad-card-icon.accent-purple {
      background: var(--status-later-bg);
      border: 1px solid oklch(0.60 0.21 290.0 / 25%);
      color: var(--status-later);
    }
    .launchpad-card-icon.accent-teal {
      background: oklch(0.68 0.14 185.0 / 12%);
      border: 1px solid oklch(0.68 0.14 185.0 / 25%);
      color: oklch(0.68 0.14 185.0);
    }
    .launchpad-card-icon.accent-rose {
      background: var(--color-red-bg);
      border: 1px solid oklch(0.63 0.23 20.0 / 25%);
      color: var(--color-red);
    }
    .launchpad-card-icon.accent-sky {
      background: oklch(0.70 0.14 230.0 / 12%);
      border: 1px solid oklch(0.70 0.14 230.0 / 25%);
      color: oklch(0.70 0.14 230.0);
    }

    .launchpad-card-body {
      display: flex;
      flex-direction: column;
      gap: 3px;
      min-width: 0;
      flex: 1;
    }

    .launchpad-card-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.25;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .launchpad-card-hint {
      font-size: 11px;
      color: var(--text-dim);
      line-height: 1.35;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .launchpad-card-action-cue {
      position: absolute;
      top: 10px;
      right: 12px;
      font-size: 11px;
      color: var(--text-dim);
      opacity: 0;
      transform: translateX(-4px);
      transition: all 0.15s ease;
    }

    .launchpad-card:hover .launchpad-card-action-cue {
      opacity: 0.8;
      transform: translateX(0);
      color: var(--accent);
    }

    @media (max-width: 900px) {
      .action-launchpad-grid {
        grid-template-columns: 1fr;
      }
    }

    /* Mobile Native Bottom Navigation Bar (US-039 / RD-023) */
    .mobile-bottom-bar {
      display: none;
    }

    /* Mobile Horizon Segmented Bar (US-040 / RD-023) */
    .mobile-horizon-segments {
      display: none;
    }

    /* Mobile Backlog Segmented Control & Mobile-Only Indicators (US-042 / RD-023) */
    .mobile-backlog-segments {
      display: none;
      grid-column: 1 / -1;
    }
    .mobile-only {
      display: none;
    }
    .kr-mobile-metrics-strip {
      display: none;
    }

    @media (max-width: 768px) {
      header {
        padding: max(10px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 10px max(14px, env(safe-area-inset-left, 0px));
      }
      main {
        padding: 0 max(14px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px));
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
      }
      .form-input, .form-select, .form-textarea, #search-box {
        font-size: 16px !important;
      }
      .search-input-wrap {
        width: 180px;
      }
      .search-input-wrap:focus-within {
        width: 220px;
      }
      .mobile-horizon-segments {
        display: flex;
        align-items: center;
        gap: 6px;
        overflow-x: auto;
        margin-bottom: 14px;
        padding: 4px 0;
        scrollbar-width: none;
      }
      .mobile-horizon-segments::-webkit-scrollbar {
        display: none;
      }
      .mobile-horizon-seg {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 8px 12px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 9999px;
        color: var(--text-dim);
        font-family: inherit;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        min-height: 40px;
        transition: all 0.15s ease;
        -webkit-tap-highlight-color: transparent;
      }
      .mobile-horizon-seg:active {
        transform: scale(0.95);
      }
      .mobile-horizon-seg.active {
        background: var(--accent);
        color: var(--primary-foreground);
        border-color: var(--accent);
        box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
      }
      .mobile-horizon-seg .seg-count {
        font-size: 10px;
        background: rgba(0, 0, 0, 0.2);
        padding: 2px 6px;
        border-radius: 10px;
      }
      .mobile-horizon-seg.active .seg-count {
        background: rgba(255, 255, 255, 0.25);
        color: var(--primary-foreground);
      }
      .kanban-col {
        max-height: none !important;
        min-height: auto !important;
      }
      .card-actions-hover {
        opacity: 1 !important;
      }
      .card-action-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 14px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
      }
      .mobile-bottom-bar {
        display: flex;
        align-items: center;
        justify-content: space-around;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(56px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: var(--surface-col);
        border-top: 1px solid var(--border);
        z-index: 100;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
      }
      .mobile-bottom-tab {
        flex: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        background: none;
        border: none;
        color: var(--text-dim);
        cursor: pointer;
        font-family: inherit;
        min-width: 44px;
        min-height: 44px;
        transition: color 0.15s ease, transform 0.1s ease;
        -webkit-tap-highlight-color: transparent;
      }
      .mobile-bottom-tab:active {
        transform: scale(0.93);
      }
      .mobile-bottom-tab.active {
        color: var(--accent);
        font-weight: 700;
      }
      .mobile-tab-icon {
        font-size: 17px;
        line-height: 1;
      }
      .mobile-tab-label {
        font-size: 10.5px;
        letter-spacing: -0.01em;
        line-height: 1;
      }
      .mobile-bottom-tab-action .mobile-tab-icon {
        background: var(--accent);
        color: var(--primary-foreground);
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 700;
        box-shadow: 0 2px 6px rgba(79, 70, 229, 0.4);
      }
      .floating-feedback-trigger {
        bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
      }
      .toast {
        bottom: calc(120px + env(safe-area-inset-bottom, 0px)) !important;
      }

      /* Full-Screen Mobile Lineage Inspector (US-041 / RD-023) */
      #drawer-container {
        padding: 0 !important;
      }
      .drawer-panel {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        border: none !important;
      }
      .drawer-header {
        padding: max(14px, env(safe-area-inset-top, 0px)) 16px 14px 16px !important;
        position: sticky;
        top: 0;
        z-index: 10;
      }
      .drawer-close-btn {
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 22px !important;
      }
      .drawer-scroll {
        padding: 14px 16px !important;
        padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)) !important;
      }

      /* Responsive Single-Column Modal Form Sheets (US-041 / RD-023) */
      .modal {
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: calc(100dvh - 20px) !important;
        border-radius: 20px 20px 0 0 !important;
        border-bottom: none !important;
      }
      .modal-head {
        padding: 16px 18px !important;
        position: sticky;
        top: 0;
        background: var(--surface);
        z-index: 5;
      }
      .drawer-close {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
      }
      .modal-body {
        padding: 16px 18px !important;
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
      }
      .form-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
      }
      .modal-actions {
        position: sticky;
        bottom: 0;
        background: var(--surface);
        padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)) 0 !important;
        border-top: 1px solid var(--border);
        z-index: 5;
      }
      .modal-actions .btn-primary,
      .modal-actions .btn-secondary,
      .modal-actions .btn-danger {
        min-height: 42px;
        padding: 10px 18px;
        font-size: 13.5px;
      }

      /* Compact Quick Actions Strip on Mobile (< 80px height) (US-042 / RD-023) */
      .action-launchpad-section {
        margin-bottom: 12px !important;
        gap: 4px !important;
      }
      .action-launchpad-header {
        display: none !important;
      }
      .action-launchpad-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px !important;
        padding: 2px 0 4px 0 !important;
        margin: 0 !important;
        max-height: 50px;
      }
      .action-launchpad-grid::-webkit-scrollbar {
        display: none;
      }
      .launchpad-card {
        flex: 1 0 auto !important;
        min-width: 125px !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 6px 12px !important;
        gap: 8px !important;
      }
      .launchpad-card-title {
        font-size: 11px !important;
        white-space: nowrap;
      }
      .launchpad-card-icon {
        font-size: 13px !important;
        width: 22px !important;
        height: 22px !important;
      }
      .launchpad-card-action-cue {
        display: none !important;
      }

      /* Mobile Backlog Segmented Control (US-042 / RD-023) */
      .mobile-backlog-segments {
        display: flex !important;
        align-items: center;
        gap: 8px;
        grid-column: 1 / -1;
        margin-bottom: 12px;
        padding: 2px 0;
      }
      .mobile-backlog-seg {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 8px 12px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 9999px;
        color: var(--text-dim);
        font-family: inherit;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        min-height: 40px;
        transition: all 0.15s ease;
        -webkit-tap-highlight-color: transparent;
      }
      .mobile-backlog-seg:active {
        transform: scale(0.96);
      }
      .mobile-backlog-seg.active {
        background: var(--surface-card, var(--bg-surface-elevated));
        color: var(--text);
        border-color: var(--accent);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
      }
      .mobile-backlog-seg .seg-count {
        font-size: 10px;
        font-weight: 700;
        padding: 1px 6px;
        border-radius: 9999px;
        background: rgba(255, 255, 255, 0.08);
        color: var(--text-dim);
      }
      .mobile-backlog-seg.active .seg-count {
        background: var(--accent-subtle);
        color: var(--accent);
      }

      /* Mobile Responsive OKR Key Result Cards (US-042 / RD-023) */
      .desktop-only-cell {
        display: none !important;
      }
      .mobile-only {
        display: inline-flex !important;
      }
      .clean-table {
        display: block !important;
        width: 100% !important;
        border-collapse: separate;
      }
      .clean-table thead {
        display: none !important;
      }
      .clean-table tbody {
        display: block !important;
        width: 100% !important;
      }
      .clean-table tr.kr-card-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 14px;
        margin-bottom: 12px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
        transition: transform 0.1s ease, border-color 0.15s ease;
      }
      .clean-table tr.kr-card-row:active {
        transform: scale(0.985);
      }
      .clean-table tr.kr-card-row td {
        display: block !important;
        padding: 0 !important;
        border: none !important;
      }
      .clean-table td.kr-id-cell {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
      }
      .kr-mobile-metrics-strip {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border-subtle);
        border-radius: 8px;
        padding: 8px 10px;
        margin-top: 8px;
        text-align: center;
      }
      .kr-mobile-metric-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
      }
      .kr-metric-label {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--text-dim);
        font-weight: 600;
      }
      .kr-metric-val {
        font-family: 'JetBrains Mono', monospace;
        font-size: 12px;
        color: var(--text-dim);
        font-weight: 600;
      }
      .kr-metric-val.accent {
        color: var(--accent);
        font-weight: 700;
      }
      .kr-metric-val.bold {
        color: var(--text);
        font-weight: 700;
      }
      .clean-table td.kr-score-cell {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        margin-top: 4px;
      }
      .clean-table td.kr-init-cell {
        margin-top: 2px;
      }
    }

    @media (max-width: 480px) {
      .search-input-wrap {
        width: 140px;
      }
      .search-input-wrap:focus-within {
        width: 160px;
      }
    }

    /* Responsive Sidebar & Drawer Handling (US-024 / RD-019) */
    .sidebar-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(3px);
      -webkit-backdrop-filter: blur(3px);
      z-index: 92;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .sidebar-backdrop.open {
      opacity: 1;
      pointer-events: auto;
    }

    @media (max-width: 1279px) {
      .macos-nav-rail {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        height: 100vh;
        z-index: 95;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.45);
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      }
      .macos-nav-rail.open {
        transform: translateX(0);
      }
      .macos-rail-close-btn {
        display: flex;
      }
      .app-main-viewport {
        width: 100%;
        min-width: 0;
      }
    }

    /* AMBIENT FLOATING FEEDBACK TRIGGER & MODAL (US-025 / US-026 / RD-017) */
    .floating-feedback-trigger {
      position: fixed;
      bottom: calc(22px + env(safe-area-inset-bottom, 0px));
      right: calc(24px + env(safe-area-inset-right, 0px));
      z-index: 850;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 14px;
      border-radius: 9999px;
      background: var(--surface-elevated);
      color: var(--text);
      border: 1px solid var(--border);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28), 0 1px 3px rgba(0, 0, 0, 0.12);
      font-family: inherit;
      font-size: 12.5px;
      font-weight: 600;
      cursor: pointer;
      user-select: none;
      transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1),
                  background 0.15s ease,
                  border-color 0.15s ease,
                  box-shadow 0.15s ease;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }

    .floating-feedback-trigger:hover {
      background: var(--surface-hover);
      border-color: var(--border-hover, rgba(255, 255, 255, 0.25));
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-hover, rgba(255, 255, 255, 0.2));
      transform: translateY(-1px);
    }

    .floating-feedback-trigger:active {
      transform: scale(0.95);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .floating-feedback-trigger:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    .feedback-trigger-icon {
      font-size: 15px;
      line-height: 1;
    }

    .feedback-trigger-label {
      letter-spacing: -0.01em;
    }

    .feedback-trigger-badge {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      font-weight: 500;
      padding: 1.5px 5px;
      border-radius: 4px;
      background: rgba(255, 255, 255, 0.08);
      color: var(--text-dim);
      border: 1px solid var(--border-subtle);
      line-height: 1.1;
    }

    .feedback-category-pills,
    .feedback-severity-chips {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .feedback-pill,
    .feedback-chip {
      background: var(--surface-hover);
      border: 1px solid var(--border);
      color: var(--text-dim);
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
      user-select: none;
    }

    .feedback-pill:hover,
    .feedback-chip:hover {
      border-color: var(--border-hover);
      color: var(--text);
      transform: translateY(-1px);
    }

    .feedback-pill:active,
    .feedback-chip:active {
      transform: scale(0.95);
    }

    .feedback-pill:focus-visible,
    .feedback-chip:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    .feedback-pill.active {
      background: var(--accent-subtle);
      border-color: var(--accent);
      color: var(--primary-foreground);
      box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
    }

    .feedback-chip.active {
      background: var(--status-next-bg);
      border-color: var(--status-next);
      color: var(--foreground);
    }

    .feedback-chip[data-severity="Low"].active {
      background: var(--color-green-bg);
      border-color: var(--color-green);
      color: var(--color-green);
    }

    .feedback-chip[data-severity="Medium"].active {
      background: var(--status-next-bg);
      border-color: var(--status-next);
      color: var(--status-next);
    }

    .feedback-chip[data-severity="High"].active {
      background: var(--color-yellow-bg);
      border-color: var(--color-yellow);
      color: var(--color-yellow);
    }

    .feedback-chip[data-severity="Critical"].active,
    .feedback-chip.chip-critical.active {
      background: var(--color-red-bg);
      border-color: var(--color-red);
      color: var(--color-red);
    }

    /* Structured Feedback Modal Container & Backdrop Elevation (US-026) */
    .feedback-modal-container {
      width: 620px;
      max-width: 92vw;
      border-radius: 18px;
      box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border);
    }

    body:has(.modal.open) #overlay,
    body:has(#feedback-modal.open) #overlay {
      z-index: 1150;
      display: block;
    }

    /* Feedback Submit Button Tactile Physics & States (US-026) */
    #feedback-submit-btn {
      transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    }

    #feedback-submit-btn:disabled {
      opacity: 0.45;
      cursor: not-allowed;
      filter: grayscale(0.5);
      transform: none !important;
      box-shadow: none !important;
    }

    #feedback-submit-btn:not(:disabled) {
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    }

    #feedback-submit-btn:not(:disabled):hover {
      background: var(--accent-hover);
      transform: translateY(-1px);
      box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    }

    #feedback-submit-btn:not(:disabled):active {
      transform: scale(0.95);
      box-shadow: 0 1px 4px rgba(99, 102, 241, 0.2);
    }

    /* Feedback Environment Telemetry Strip (US-027) */
    .feedback-telemetry-strip {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 9px 12px;
      margin-top: 14px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border);
      border-radius: 10px;
      font-size: 11px;
      color: var(--text-dim);
    }

    [data-theme="light"] .feedback-telemetry-strip {
      background: rgba(0, 0, 0, 0.02);
      border-color: rgba(0, 0, 0, 0.08);
    }

    .telemetry-pill {
      display: flex;
      align-items: center;
      gap: 6px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .telemetry-icon {
      font-size: 12px;
      color: var(--accent);
      flex-shrink: 0;
    }

    .telemetry-label {
      font-weight: 500;
      color: var(--text-main);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .telemetry-privacy-note {
      font-size: 10px;
      color: var(--text-dim);
      white-space: nowrap;
      cursor: help;
      flex-shrink: 0;
      user-select: none;
    }

    /* Feedback Loading Spinner & In-Flight Double-Submit Protection (US-029) */
    .feedback-submit-spinner {
      display: inline-block;
      width: 13px;
      height: 13px;
      border: 2px solid rgba(255, 255, 255, 0.35);
      border-top-color: var(--primary-foreground);
      border-radius: 50%;
      animation: spin 0.75s linear infinite;
      flex-shrink: 0;
    }

    [data-theme="light"] .feedback-submit-spinner {
      border-color: rgba(255, 255, 255, 0.45);
      border-top-color: var(--primary-foreground);
    }

    /* Calm Luxury Feedback Confirmation & Dismissal State (US-029) */
    .feedback-success-state {
      padding: 12px 6px 6px 6px;
      animation: feedbackFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes feedbackFadeIn {
      from {
        opacity: 0;
        transform: scale(0.97);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    .feedback-success-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 26px 18px 22px 18px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.02);
      border: 1px dashed var(--border);
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      user-select: none;
    }

    .feedback-success-card:hover {
      background: rgba(255, 255, 255, 0.04);
      border-color: rgba(16, 185, 129, 0.35);
    }

    .feedback-success-card:active {
      transform: scale(0.99);
    }

    .feedback-success-card:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    [data-theme="light"] .feedback-success-card {
      background: rgba(0, 0, 0, 0.015);
    }

    [data-theme="light"] .feedback-success-card:hover {
      background: rgba(0, 0, 0, 0.03);
      border-color: rgba(16, 185, 129, 0.45);
    }

    .feedback-success-icon-wrap {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      background: var(--color-green-bg);
      border: 1.5px solid oklch(0.65 0.17 160.0 / 35%);
      color: var(--color-green);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 14px;
      box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
      animation: checkmarkPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    @keyframes checkmarkPop {
      0% {
        transform: scale(0.5);
        opacity: 0;
      }
      100% {
        transform: scale(1);
        opacity: 1;
      }
    }

    .feedback-success-icon {
      width: 26px;
      height: 26px;
    }

    .feedback-success-title {
      margin: 0 0 6px 0;
      font-size: 16px;
      font-weight: 600;
      color: var(--text-main);
      letter-spacing: -0.01em;
    }

    .feedback-success-message {
      margin: 0 0 14px 0;
      font-size: 13px;
      color: var(--text-dim);
      line-height: 1.5;
      max-width: 440px;
    }

    .feedback-success-issue-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 12px;
      margin-bottom: 14px;
      background: rgba(99, 102, 241, 0.12);
      border: 1px solid rgba(99, 102, 241, 0.28);
      border-radius: 20px;
      font-size: 12px;
      font-weight: 500;
      color: var(--accent);
    }

    .feedback-dismiss-hint {
      display: flex;
      flex-direction: column;
      gap: 2px;
      font-size: 11px;
      color: var(--text-dim);
      opacity: 0.75;
    }

    .feedback-dismiss-hint kbd {
      font-family: inherit;
      font-size: 10px;
      padding: 1px 4px;
      border-radius: 4px;
      border: 1px solid var(--border);
      background: rgba(255, 255, 255, 0.08);
    }

    .feedback-done-btn {
      transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .feedback-done-btn:active {
      transform: scale(0.95);
    }

    @media (max-width: 640px) {
      .floating-feedback-trigger {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        right: calc(16px + env(safe-area-inset-right, 0px));
        padding: 9px;
        border-radius: 50%;
      }
      .floating-feedback-trigger .feedback-trigger-label,
      .floating-feedback-trigger .feedback-trigger-badge {
        display: none;
      }
      .toast {
        bottom: calc(68px + env(safe-area-inset-bottom, 0px));
        right: calc(16px + env(safe-area-inset-right, 0px));
        left: calc(16px + env(safe-area-inset-left, 0px));
        max-width: calc(100vw - 32px);
      }
    }

    /* ========================================================
       DESKTOP SHELL & NATIVE MACOS WINDOW ANATOMY (US-043)
       ======================================================== */
    body.is-desktop {
      -webkit-user-select: none;
      user-select: none;
    }

    body.is-desktop .macos-rail-header {
      padding-top: 38px;
      -webkit-app-region: drag;
    }

    body.is-desktop .top-header {
      -webkit-app-region: drag;
    }

    body.is-desktop button,
    body.is-desktop a,
    body.is-desktop input,
    body.is-desktop select,
    body.is-desktop textarea,
    body.is-desktop .modal-card,
    body.is-desktop .drawer-panel,
    body.is-desktop .macos-rail-nav {
      -webkit-app-region: no-drag;
    }

    body.is-desktop .kanban-card {
      -webkit-app-region: no-drag;
      -webkit-user-drag: element;
      cursor: grab;
    }

    /* ========================================================
       RELEASES TIMELINE & SEMVER CHANGELOG (US-047 / US-048 / US-049)
       ======================================================== */
    .macos-rail-version-badge {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9.5px;
      font-weight: 700;
      color: var(--accent);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 1px 5px;
      line-height: 1.2;
      transition: all 0.15s ease;
    }
    .macos-rail-version-badge:hover {
      background: var(--accent-subtle);
      border-color: var(--accent);
    }

    .rail-item-badge.semver-tag {
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px;
      letter-spacing: -0.2px;
      padding: 1px 5px;
    }

    .releases-layout {
      padding: 8px 16px 60px;
      max-width: 1040px;
      margin: 0 auto;
    }

    .releases-summary-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 12px 18px;
      margin-bottom: 24px;
    }

    .releases-headline-group {
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }

    .releases-version-hero {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .releases-hero-icon {
      font-size: 24px;
      line-height: 1;
    }

    .releases-hero-titles {
      display: flex;
      flex-direction: column;
    }

    .releases-hero-label {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      color: var(--text-dim);
    }

    .releases-hero-version {
      font-family: 'JetBrains Mono', monospace;
      font-size: 18px;
      font-weight: 800;
      color: var(--text);
      line-height: 1.2;
    }

    .releases-meta-strip {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: var(--text-muted);
      border-left: 1px solid var(--border);
      padding-left: 16px;
    }

    .releases-meta-sep {
      color: var(--text-dim);
    }

    .releases-actions-group {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    /* Vertical Timeline Spine */
    .release-timeline-container {
      position: relative;
      padding-left: 32px;
    }

    .release-timeline-spine {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .release-timeline-spine::before {
      content: '';
      position: absolute;
      top: 16px;
      bottom: 24px;
      left: -20px;
      width: 2px;
      background: var(--border);
      border-radius: 1px;
    }

    .release-timeline-item {
      position: relative;
      display: flex;
      flex-direction: column;
    }

    .timeline-spine-node {
      position: absolute;
      left: -28px;
      top: 16px;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: var(--bg);
      border: 2px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2;
    }

    .timeline-node-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--text-dim);
    }

    .release-timeline-item.type-major .timeline-spine-node {
      border-color: var(--status-later);
    }
    .release-timeline-item.type-major .timeline-node-dot {
      background: var(--status-later);
      box-shadow: 0 0 6px oklch(0.60 0.21 290.0 / 50%);
    }

    .release-timeline-item.type-minor .timeline-spine-node {
      border-color: var(--color-green);
    }
    .release-timeline-item.type-minor .timeline-node-dot {
      background: var(--color-green);
      box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
    }

    .release-timeline-item.type-patch .timeline-spine-node {
      border-color: var(--color-yellow);
    }
    .release-timeline-item.type-patch .timeline-node-dot {
      background: var(--color-yellow);
    }

    /* Release Card */
    .release-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px 18px;
      transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .release-card:hover {
      border-color: var(--border-hover);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .release-card-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 8px;
    }

    .release-card-badges {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .semver-badge {
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .semver-badge.badge-major {
      color: var(--status-later);
      background: var(--status-later-bg);
      border: 1px solid oklch(0.60 0.21 290.0 / 30%);
    }

    .semver-badge.badge-minor {
      color: var(--color-green);
      background: rgba(34, 197, 94, 0.12);
      border: 1px solid rgba(34, 197, 94, 0.3);
    }

    .semver-badge.badge-patch {
      color: var(--color-yellow);
      background: rgba(234, 179, 8, 0.12);
      border: 1px solid rgba(234, 179, 8, 0.25);
    }

    .release-type-pill {
      font-size: 9.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding: 2px 6px;
      border-radius: 4px;
      background: var(--surface-hover);
      color: var(--text-dim);
    }

    .release-date-tag {
      font-size: 11.5px;
      color: var(--text-dim);
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .release-card-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .commit-link-pill,
    .diff-link-pill {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10.5px;
      font-weight: 600;
      color: var(--accent);
      background: var(--surface-hover);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 2px 7px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      text-decoration: none;
      transition: all 0.12s ease;
      cursor: pointer;
    }

    .commit-link-pill:hover,
    .diff-link-pill:hover {
      background: var(--accent-subtle);
      border-color: var(--accent);
      color: var(--text);
    }

    .commit-link-pill:active,
    .diff-link-pill:active {
      transform: scale(0.95);
    }

    /* Headings & Text wrapping compliance (modern-web-guidance) */
    .release-card-title {
      font-size: 15px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.35;
      margin-bottom: 6px;
      text-wrap: balance;
    }

    .release-card-lineage {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }

    .lineage-chip {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      font-weight: 700;
      padding: 1.5px 6px;
      border-radius: 4px;
      background: var(--surface-hover);
      border: 1px solid var(--border);
      color: var(--accent);
      cursor: pointer;
      transition: all 0.12s ease;
      display: inline-flex;
      align-items: center;
      gap: 3px;
    }

    .lineage-chip:hover {
      background: var(--accent-subtle);
      border-color: var(--accent);
      color: var(--text);
    }

    .lineage-chip:active {
      transform: scale(0.95);
    }

    .lineage-chip.chip-kr {
      color: var(--text-muted);
    }

    .lineage-chip.chip-us {
      color: var(--status-now);
    }

    .lineage-chip.chip-bl {
      color: var(--color-yellow);
    }

    .release-card-notes {
      font-size: 12.5px;
      line-height: 1.5;
      color: var(--text-muted);
    }

    .release-card-notes p {
      margin: 0 0 6px;
      text-wrap: pretty;
    }

    .release-notes-section-title {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--text-dim);
      margin: 8px 0 4px;
    }

    .release-notes-list {
      margin: 0;
      padding-left: 18px;
    }

    .release-notes-list li {
      margin-bottom: 3px;
      text-wrap: pretty;
      color: var(--text);
    }

    /* Ship Release Modal SemVer Bump Selector */
    .bump-pill-group {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      margin-top: 4px;
    }

    .bump-pill-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 10px 8px;
      border-radius: 8px;
      background: var(--surface);
      border: 1px solid var(--border);
      cursor: pointer;
      transition: all 0.15s ease;
      text-align: center;
    }

    .bump-pill-btn:hover {
      background: var(--surface-hover);
      border-color: var(--border-hover);
    }

    .bump-pill-btn.active {
      border-color: var(--accent);
      background: var(--accent-subtle);
    }

    .bump-pill-name {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--text-dim);
    }

    .bump-pill-btn.active .bump-pill-name {
      color: var(--accent);
    }

    .bump-pill-version {
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      font-weight: 800;
      color: var(--text);
      margin-top: 2px;
    }

    /* Auto-growing Release Notes Textarea (modern-web-guidance: form-fields-automatically-fit-contents) */
    .release-notes-auto-textarea {
      field-sizing: content;
      width: 100%;
      height: auto;
      min-block-size: 4lh;
      max-block-size: 14lh;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      font-size: 12.5px;
      line-height: 1.5;
      padding: 10px 12px;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text);
      resize: vertical;
    }

    @media (max-width: 768px) {
      .releases-layout {
        padding: 4px 10px 72px;
      }
      .releases-summary-toolbar {
        padding: 10px 14px;
      }
      .release-timeline-container {
        padding-left: 24px;
      }
      .release-timeline-spine::before {
        left: -14px;
      }
      .timeline-spine-node {
        left: -22px;
        width: 16px;
        height: 16px;
      }
      .bump-pill-group {
        grid-template-columns: 1fr;
      }
    }

    /* ========================================================
       STANDARDIZED COCKPIT UI COMPONENT PRIMITIVES (US-056 / RD-027)
       Studio Governance Rule 4: Tokens, Radii, Icons, Tactile Micro-Interactions
       ======================================================== */
    
    /* 1. Button Primitive */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      font-family: inherit;
      font-size: 12px;
      font-weight: 600;
      line-height: 1.25;
      padding: 7px 14px;
      border-radius: var(--radius);
      border: 1px solid transparent;
      cursor: pointer;
      white-space: nowrap;
      user-select: none;
      -webkit-user-select: none;
      transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1),
                  background-color 0.12s cubic-bezier(0.4, 0, 0.2, 1),
                  border-color 0.12s cubic-bezier(0.4, 0, 0.2, 1),
                  box-shadow 0.12s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .btn:active:not(:disabled) {
      transform: scale(0.95);
    }
    .btn:focus-visible {
      outline: none;
      box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
    }
    .btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none !important;
    }
    
    .btn-primary {
      background: var(--primary);
      color: var(--primary-foreground);
      border-color: transparent;
      box-shadow: 0 1px 2px oklch(0 0 0 / 15%);
    }
    .btn-primary:hover:not(:disabled) {
      background: var(--accent-hover);
    }
    
    .btn-secondary {
      background: var(--secondary);
      color: var(--secondary-foreground);
      border-color: var(--border);
    }
    .btn-secondary:hover:not(:disabled) {
      background: var(--surface-hover);
      border-color: var(--border-subtle);
    }
    
    .btn-destructive {
      background: var(--destructive);
      color: var(--destructive-foreground);
      border-color: transparent;
    }
    .btn-destructive:hover:not(:disabled) {
      background: oklch(0.55 0.22 25.0);
    }
    
    .btn-ghost {
      background: transparent;
      color: var(--foreground);
      border-color: transparent;
    }
    .btn-ghost:hover:not(:disabled) {
      background: var(--muted);
      color: var(--foreground);
    }
    
    .btn-sm {
      padding: 4px 10px;
      font-size: 11px;
      border-radius: calc(var(--radius) - 2px);
    }
    .btn-lg {
      padding: 10px 20px;
      font-size: 13.5px;
      border-radius: calc(var(--radius) + 2px);
    }
    .btn-icon {
      padding: 7px;
      border-radius: var(--radius);
    }

    /* 2. Badge Chip Primitive */
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      font-weight: 600;
      line-height: 1;
      padding: 3px 8px;
      border-radius: 9999px;
      border: 1px solid var(--border);
      white-space: nowrap;
      user-select: none;
      transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1),
                  background-color 0.12s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .badge-interactive {
      cursor: pointer;
    }
    .badge-interactive:active {
      transform: scale(0.95);
    }
    .badge-primary {
      background: var(--primary);
      color: var(--primary-foreground);
      border-color: transparent;
    }
    .badge-secondary {
      background: var(--secondary);
      color: var(--secondary-foreground);
    }
    .badge-destructive {
      background: oklch(0.62 0.22 25.0 / 12%);
      color: var(--destructive);
      border-color: oklch(0.62 0.22 25.0 / 30%);
    }
    .badge-outline {
      background: transparent;
      color: var(--foreground);
      border-color: var(--border);
    }
    .badge-now {
      background: var(--status-now-bg);
      color: var(--status-now);
      border-color: oklch(0.65 0.24 350.0 / 30%);
    }
    .badge-next {
      background: var(--status-next-bg);
      color: var(--status-next);
      border-color: oklch(0.62 0.19 250.0 / 30%);
    }
    .badge-later {
      background: var(--status-later-bg);
      color: var(--status-later);
      border-color: oklch(0.60 0.16 295.0 / 30%);
    }
    .badge-done {
      background: var(--status-done-bg);
      color: var(--status-done);
      border-color: oklch(0.65 0.17 160.0 / 30%);
    }
    .badge-tag {
      border-radius: 4px;
      font-family: var(--font-mono);
      font-size: 10px;
      padding: 2px 6px;
    }

    /* 3. Card Primitive */
    .cockpit-card {
      background: var(--card);
      color: var(--card-foreground);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 16px;
      box-shadow: var(--card-shadow);
      display: flex;
      flex-direction: column;
      gap: 10px;
      transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .cockpit-card-interactive {
      cursor: pointer;
    }
    .cockpit-card-interactive:hover {
      border-color: var(--border-subtle);
      box-shadow: 0 4px 12px oklch(0 0 0 / 10%);
      transform: translateY(-1px);
    }
    .cockpit-card-interactive:active {
      transform: scale(0.99);
    }
    .cockpit-card-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 8px;
    }
    .cockpit-card-title {
      font-size: 13.5px;
      font-weight: 700;
      color: var(--foreground);
      line-height: 1.35;
    }
    .cockpit-card-desc {
      font-size: 12px;
      color: var(--muted-foreground);
      line-height: 1.45;
    }
    .cockpit-card-content {
      flex: 1;
    }
    .cockpit-card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding-top: 10px;
      border-top: 1px solid var(--border-subtle);
      font-size: 11px;
      color: var(--muted-foreground);
    }

    /* 4. Modal Shell Primitive */
    .modal-shell-backdrop {
      position: fixed;
      inset: 0;
      background: oklch(0 0 0 / 60%);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .modal-shell-backdrop.show {
      opacity: 1;
      pointer-events: auto;
    }
    .modal-shell-dialog {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: calc(var(--radius) + 2px);
      box-shadow: var(--shadow-modal);
      max-width: 100%;
      max-height: calc(100vh - 32px);
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      transform: scale(0.96) translateY(4px);
      transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .modal-shell-backdrop.show .modal-shell-dialog {
      transform: scale(1) translateY(0);
    }
    .modal-shell-header {
      padding: 14px 18px;
      border-bottom: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .modal-shell-title-group {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      font-weight: 700;
      color: var(--foreground);
    }
    .modal-shell-body {
      padding: 18px;
      overflow-y: auto;
      flex: 1;
    }
    .modal-shell-actions {
      padding: 12px 18px;
      border-top: 1px solid var(--border-subtle);
      background: var(--surface);
      border-radius: 0 0 calc(var(--radius) + 2px) calc(var(--radius) + 2px);
      display: flex;
      justify-content: flex-end;
      gap: 8px;
    }

    /* 5. Empty State Primitive */
    .empty-state-wrap {
      text-align: center;
      padding: 48px 24px;
      color: var(--muted-foreground);
      max-width: 520px;
      margin: 24px auto;
      background: var(--surface);
      border: 1px dashed var(--border);
      border-radius: var(--radius);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    .empty-state-icon {
      color: var(--muted-foreground);
      margin-bottom: 6px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .empty-state-title {
      font-size: 15px;
      font-weight: 700;
      color: var(--foreground);
      margin: 0;
    }
    .empty-state-desc {
      font-size: 13px;
      line-height: 1.5;
      color: var(--muted-foreground);
      max-width: 400px;
      margin: 0;
    }
    .empty-state-action {
      margin-top: 10px;
    }

    /* ==========================================================================
       6. Inbound Feedback & Triage Queue Cockpit UI (RD-028 / US-057)
       ========================================================================== */
    .feedback-layout {
      padding: 8px 16px 60px;
      max-width: 1100px;
      margin: 0 auto;
    }

    .feedback-header-wrap {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }

    .feedback-subnav-segments {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 4px;
      box-shadow: var(--card-shadow);
    }

    .feedback-subnav-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 14px;
      border-radius: calc(var(--radius) - 2px);
      border: none;
      background: transparent;
      color: var(--text-muted);
      font-size: 12.5px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .feedback-subnav-btn:hover {
      color: var(--foreground);
      background: var(--surface-hover);
    }

    .feedback-subnav-btn.active {
      background: var(--primary);
      color: var(--primary-foreground);
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }

    .feedback-subnav-btn.active .seg-count {
      background: var(--primary-foreground);
      color: var(--primary);
    }

    .feedback-toolbar {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .triage-cards-grid {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .rail-item-badge.accent-badge {
      background: var(--status-now-bg);
      border-color: var(--status-now);
      color: var(--status-now);
      font-weight: 700;
      box-shadow: 0 0 6px var(--status-now-bg);
    }

    .transcripts-layout {
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 16px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      min-height: 480px;
      overflow: hidden;
    }

    .transcripts-sidebar {
      border-right: 1px solid var(--border);
      background: var(--surface-col);
      display: flex;
      flex-direction: column;
    }

    .transcripts-sidebar-header {
      padding: 12px 16px;
      border-bottom: 1px solid var(--border);
    }

    .transcripts-files-list {
      padding: 8px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      overflow-y: auto;
    }

    .transcripts-file-item {
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding: 8px 12px;
      border-radius: calc(var(--radius) - 2px);
      cursor: pointer;
      background: transparent;
      border: 1px solid transparent;
      transition: all 0.15s ease;
      text-align: left;
    }

    .transcripts-file-item:hover {
      background: var(--surface-hover);
      border-color: var(--border);
    }

    .transcripts-file-item.active {
      background: var(--accent-subtle);
      border-color: var(--accent);
    }

    .transcripts-reading-pane {
      padding: 20px 24px;
      overflow-y: auto;
      max-height: 700px;
      position: relative;
    }

    .transcript-line {
      display: flex;
      align-items: baseline;
      gap: 14px;
      padding: 3px 0;
      line-height: 1.6;
      border-radius: 2px;
      transition: background 0.1s ease;
    }

    .transcript-line:hover {
      background: var(--surface-hover);
    }

    .transcript-line-num {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      color: var(--text-dim);
      min-width: 32px;
      user-select: none;
      text-align: right;
    }

    .transcript-line-text {
      flex: 1;
      font-size: 13px;
      color: var(--foreground);
    }

    .transcript-speaker-interviewer {
      color: var(--text-muted);
      font-weight: 700;
    }

    .transcript-speaker-lifter {
      color: oklch(0.75 0.18 55);
      font-weight: 700;
    }

    .transcript-inline-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 1px 6px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10.5px;
      font-weight: 700;
      background: var(--accent-subtle);
      color: var(--accent);
      border: 1px solid var(--accent);
      border-radius: 4px;
      cursor: pointer;
      text-decoration: none;
      margin-left: 6px;
      vertical-align: middle;
      transition: all 0.15s ease;
    }

    .transcript-inline-badge:hover {
      background: var(--accent);
      color: var(--surface);
      transform: scale(1.05);
    }

    .transcripts-selection-pill {
      position: absolute;
      z-index: 1000;
      animation: pillFadeIn 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes pillFadeIn {
      from {
        opacity: 0;
        transform: translate(-50%, -90%) scale(0.96);
      }
      to {
        opacity: 1;
        transform: translate(-50%, -100%) scale(1);
      }
    }

    @media (max-width: 768px) {
      .feedback-layout {
        padding: 4px 10px 72px;
      }
      .transcripts-layout {
        grid-template-columns: 1fr;
      }
    }

    /* ==========================================================================
       Antigravity Desktop Alignment & Styling Standard (RD-031 / US-076..US-078)
       ========================================================================== */

    /* Typography Tracking Standard (US-076) */
    h1, h2, h3, h4, h5, h6,
    .brand-title, .section-title, .card-title, .modal-shell-title,
    .column-title, .kanban-col-title, .release-version-title {
      letter-spacing: -0.02em;
    }

    .badge, .status-pill, .chip, .horizon-badge, .meta-chip, .tag-pill {
      letter-spacing: 0.03em;
    }

    /* Calm Luxury Surface Hierarchy & Container Radii (US-076) */
    .modal-dialog, .modal-shell-card, .cockpit-card, .card, .inspector-drawer {
      border-radius: var(--radius, 12px);
      border: 1px solid var(--border, #2A2A2A);
    }

    .modal-dialog-standard {
      max-width: 480px;
    }

    /* Antigravity Micro-Lift Primary Action Button (US-077) */
    .btn-primary, .btn-primary-action {
      border-radius: var(--radius-sm, 8px) !important;
      transition: all var(--transition, 200ms ease) !important;
    }
    .btn-primary:hover:not(:disabled), .btn-primary-action:hover:not(:disabled) {
      background: var(--accent-hover) !important;
      transform: translateY(-1px) !important;
    }
    .btn-primary:active:not(:disabled), .btn-primary-action:active:not(:disabled) {
      transform: translateY(0) !important;
    }

    /* Antigravity Custom 18px Checkbox Standard (US-077) */
    .checkbox-label, .custom-checkbox-wrapper {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      font-size: 14px;
      color: var(--text-secondary);
      transition: color var(--transition);
      user-select: none;
    }
    .checkbox-label:hover, .custom-checkbox-wrapper:hover {
      color: var(--text-primary);
    }
    .custom-checkbox {
      width: 18px;
      height: 18px;
      border: 2px solid #333333;
      border-radius: 4px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: all var(--transition);
      background: var(--bg-secondary);
      flex-shrink: 0;
    }
    .checkbox-label:hover .custom-checkbox,
    .custom-checkbox-wrapper:hover .custom-checkbox {
      border-color: var(--accent);
    }
    input[type="checkbox"].antigravity-checkbox,
    .checkbox-label input[type="checkbox"] {
      display: none;
    }
    .checkbox-label input:checked + .custom-checkbox,
    input[type="checkbox"].antigravity-checkbox:checked + .custom-checkbox {
      background: var(--accent);
      border-color: var(--accent);
    }
    .custom-checkbox::after {
      content: '';
      width: 4px;
      height: 8px;
      border: solid white;
      border-width: 0 2px 2px 0;
      transform: rotate(45deg) translate(-1px, -1px);
      display: none;
    }
    .checkbox-label input:checked + .custom-checkbox::after,
    input[type="checkbox"].antigravity-checkbox:checked + .custom-checkbox::after {
      display: block;
    }

    /* General Form Checkbox Standard Fallback (US-077) */
    input[type="checkbox"]:not(.antigravity-checkbox) {
      width: 18px;
      height: 18px;
      accent-color: var(--accent);
      border-radius: 4px;
      transition: all var(--transition);
      cursor: pointer;
    }

    /* Traffic-light spacer for macOS Native Desktop (US-078) */
    .titlebar-spacer {
      display: none;
      height: 38px;
      width: 100%;
      flex-shrink: 0;
      -webkit-app-region: drag;
      user-select: none;
    }

    body.is-tauri .titlebar-spacer,
    body.is-desktop .titlebar-spacer,
    .is-tauri .titlebar-spacer,
    .is-desktop .titlebar-spacer {
      display: block;
    }

    /* Ensure interactive controls enforce no-drag (US-078) */
    .container,
    .app-layout,
    .app-main-viewport,
    .macos-nav-rail,
    header,
    main,
    button,
    a,
    input,
    select,
    textarea,
    .modal-overlay,
    .drawer-content {
      -webkit-app-region: no-drag;
    }

    /* Antigravity Staggered 3-Dot Pulse Activity Indicator (US-078) */
    .loader, .dot-pulse-loader {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-bottom: 16px;
    }
    .loader div, .dot-pulse-loader span, .dot-pulse-loader div {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: var(--accent);
      opacity: 0.3;
      animation: dot-pulse 1.5s infinite ease-in-out;
    }
    .loader div:nth-child(1), .dot-pulse-loader span:nth-child(1), .dot-pulse-loader div:nth-child(1) { animation-delay: 0s; }
    .loader div:nth-child(2), .dot-pulse-loader span:nth-child(2), .dot-pulse-loader div:nth-child(2) { animation-delay: 0.3s; }
    .loader div:nth-child(3), .dot-pulse-loader span:nth-child(3), .dot-pulse-loader div:nth-child(3) { animation-delay: 0.6s; }

    @keyframes dot-pulse {
      0%, 100% { opacity: 0.2; transform: scale(0.9); }
      50% { opacity: 0.7; transform: scale(1.1); }
    }

    /* Antigravity Header Breadcrumbs & In-Canvas Horizon Segmented Control (US-080) */
    .header-breadcrumbs {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 500;
      letter-spacing: -0.01em;
      margin-left: 8px;
      user-select: none;
    }
    .header-breadcrumbs .breadcrumb-project,
    .header-breadcrumbs .breadcrumb-view {
      color: var(--text-secondary);
      font-weight: 500;
      cursor: pointer;
      transition: color var(--transition);
    }
    .header-breadcrumbs .breadcrumb-project:hover,
    .header-breadcrumbs .breadcrumb-view:hover {
      color: var(--text-primary);
    }
    .header-breadcrumbs .breadcrumb-separator {
      color: var(--text-muted);
      font-size: 12px;
      opacity: 0.8;
    }
    .header-breadcrumbs .breadcrumb-current {
      color: var(--text-primary);
      font-weight: 600;
      letter-spacing: -0.01em;
      cursor: pointer;
    }
    .header-breadcrumbs .breadcrumb-current:hover {
      color: var(--accent);
    }

    .horizon-pills-row {
      display: inline-flex;
      align-items: center;
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: 9999px;
      padding: 2px;
      gap: 2px;
    }
    .horizon-pills-row .filter-pill.horizon-pill {
      background: transparent;
      border: 1px solid transparent;
      color: var(--text-secondary);
      border-radius: 9999px;
      padding: 4px 10px;
      font-size: 12px;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all var(--transition);
      cursor: pointer;
    }
    .horizon-pills-row .filter-pill.horizon-pill:hover {
      background: var(--bg-hover);
      color: var(--text-primary);
    }
    .horizon-pills-row .filter-pill.horizon-pill.active {
      background: var(--bg-tertiary);
      color: var(--text-primary);
      border-color: var(--border);
      box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    }
    .horizon-pills-row .filter-pill.horizon-pill .pill-count {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 16px;
      height: 16px;
      padding: 0 4px;
      border-radius: 9999px;
      background: var(--bg-hover);
      color: var(--text-muted);
      font-size: 10px;
      font-weight: 600;
      line-height: 1;
    }
    .horizon-pills-row .filter-pill.horizon-pill.active .pill-count {
      background: var(--accent);
      color: #FFFFFF;
    }

    /* ========================================================
       UNIFIED FLOATING '+' ACTION & FEEDBACK LAUNCHPAD (US-081)
       ======================================================== */
    .floating-launchpad-container {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 95;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      user-select: none;
    }

    .floating-launchpad-tray {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 12px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(12px) scale(0.96);
      transform-origin: bottom right;
      transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
      pointer-events: none;
    }

    .floating-launchpad-container.open .floating-launchpad-tray,
    .floating-launchpad-container:hover .floating-launchpad-tray {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1);
      pointer-events: auto;
    }

    .floating-action-btn {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: var(--accent);
      color: #FFFFFF;
      border: 1px solid rgba(255, 255, 255, 0.15);
      outline: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 14px rgba(47, 128, 237, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
      transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition);
    }

    .floating-action-btn:hover {
      background: var(--accent-hover);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(47, 128, 237, 0.5), 0 3px 8px rgba(0, 0, 0, 0.4);
    }

    .floating-action-btn:active {
      transform: translateY(0);
    }

    .floating-action-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: transform var(--transition);
    }

    .floating-launchpad-container.open .floating-action-icon {
      transform: rotate(45deg);
    }

    .floating-action-item {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm, 8px);
      padding: 9px 14px;
      min-width: 210px;
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      text-align: left;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
      transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
    }

    .floating-action-item:hover {
      background: var(--surface-hover);
      border-color: var(--accent);
      transform: translateX(-4px);
    }

    .floating-action-item .launchpad-card-icon {
      width: 32px;
      height: 32px;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .floating-action-item .launchpad-card-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      flex: 1;
      white-space: nowrap;
    }

    .floating-action-item .launchpad-card-action-cue {
      color: var(--text-dim);
      display: inline-flex;
      align-items: center;
      transition: color var(--transition), transform var(--transition);
    }

    .floating-action-item:hover .launchpad-card-action-cue {
      color: var(--accent);
      transform: translateX(2px);
    }

    @media (max-width: 768px) {
      .floating-launchpad-container {
        bottom: 74px;
        right: 16px;
      }
    }

    /* ========================================================
       SETTINGS HUB & PURIFIED CONTROLS (US-083 / RD-016)
       ======================================================== */
    .settings-section {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .settings-section-header {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .settings-section-title {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-dim);
    }
    .settings-section-desc {
      font-size: 11.5px;
      color: var(--text-muted);
    }
    .settings-group {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .settings-row, .settings-action-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 14px;
      background: var(--bg-surface, var(--surface));
      border: 1px solid var(--border-subtle, var(--border));
      border-radius: var(--radius-base, 8px);
      transition: background 0.15s ease, border-color 0.15s ease;
    }
    .settings-row-left {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .settings-row-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--accent);
      flex-shrink: 0;
    }
    .settings-item-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
    }
    .settings-item-subtitle {
      font-size: 11px;
      color: var(--text-dim);
      margin-top: 1px;
    }




