/*
 * Gitanium — Main Stylesheet
 * Copyright (c) 2024-2026 Penning Labs. All rights reserved.
 * SPDX-License-Identifier: Apache-2.0
 */
/* ═══════════════════════════════════════════════════════════════
   Gitanium — Design System (Dark Theme)
   Single consolidated stylesheet. No per-page files.
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. CSS Custom Properties (Design Tokens) ─────────────────── */

:root {
  /* Background hierarchy */
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #1c2128;
  --bg-hover: #1f2937;
  --bg-active: #263040;
  --bg-overlay: rgba(0, 0, 0, 0.5);

  /* Text hierarchy */
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-tertiary: #6e7681;
  --text-link: #58a6ff;
  --text-link-hover: #79c0ff;
  --text-inverse: #0d1117;

  /* Borders */
  --border-default: #30363d;
  --border-muted: #21262d;
  --border-focus: #58a6ff;

  /* Accent colors */
  --accent-blue: #58a6ff;
  --accent-green: #3fb950;
  --accent-red: #f85149;
  --accent-orange: #d29922;
  --accent-purple: #bc8cff;
  --accent-cyan: #39d2c0;
  --accent-pink: #f778ba;

  /* Status colors */
  --status-open: #3fb950;
  --status-closed: #f85149;
  --status-merged: #bc8cff;
  --status-approved: #58a6ff;
  --status-draft: #8b949e;

  /* Sidebar */
  --sidebar-width: 240px;
  --sidebar-bg: #010409;
  --sidebar-text: #e6edf3;
  --sidebar-text-muted: #8b949e;
  --sidebar-hover: #161b22;
  --sidebar-active: #0d1117;
  --sidebar-active-text: #58a6ff;
  --sidebar-border: #30363d;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-focus: 0 0 0 3px rgba(88, 166, 255, 0.3);

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 16px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --line-height: 1.5;

  /* Transitions */
  --transition-fast: 0.1s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;

  /* Button hover */
  --btn-primary-hover: #4c9aed;
  --btn-success-hover: #36a348;
  --btn-danger-hover: #e04440;
}

/* ── Light Theme ─────────────────────────────────────────────── */
[data-theme="light"] {
  /* Background hierarchy */
  --bg-primary: #ffffff;
  --bg-secondary: #f6f8fa;
  --bg-tertiary: #eef1f5;
  --bg-hover: #e8ebef;
  --bg-active: #dce1e8;
  --bg-overlay: rgba(0, 0, 0, 0.15);

  /* Text hierarchy */
  --text-primary: #1f2328;
  --text-secondary: #656d76;
  --text-tertiary: #8b949e;
  --text-link: #0969da;
  --text-link-hover: #0550ae;
  --text-inverse: #ffffff;

  /* Borders */
  --border-default: #d0d7de;
  --border-muted: #e1e4e8;
  --border-focus: #0969da;

  /* Accent colors (slightly adjusted for light bg contrast) */
  --accent-blue: #0969da;
  --accent-green: #1a7f37;
  --accent-red: #cf222e;
  --accent-orange: #9a6700;
  --accent-purple: #8250df;
  --accent-cyan: #0e8a7e;
  --accent-pink: #bf3989;

  /* Status colors */
  --status-open: #1a7f37;
  --status-closed: #cf222e;
  --status-merged: #8250df;
  --status-approved: #0969da;
  --status-draft: #656d76;

  /* Sidebar */
  --sidebar-bg: #f6f8fa;
  --sidebar-text: #1f2328;
  --sidebar-text-muted: #656d76;
  --sidebar-hover: #eef1f5;
  --sidebar-active: #ffffff;
  --sidebar-active-text: #0969da;
  --sidebar-border: #d0d7de;

  /* Shadows (lighter for light theme) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-focus: 0 0 0 3px rgba(9, 105, 218, 0.3);

  /* Button hover overrides */
  --btn-primary-hover: #0550ae;
  --btn-success-hover: #15692c;
  --btn-danger-hover: #a40e26;
}


/* ── 2. Reset & Base ──────────────────────────────────────────── */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--text-link-hover); }

img { max-width: 100%; height: auto; }

code, pre, kbd, samp {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
}

hr {
  border: none;
  border-top: 1px solid var(--border-default);
  margin: var(--sp-6) 0;
}

::selection {
  background: rgba(88, 166, 255, 0.3);
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}


/* ── 3. Layout ────────────────────────────────────────────────── */

/* App shell: sidebar + main content */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* Left sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 2px;
}

/* Sidebar brand */
.sidebar-brand {
  padding: var(--sp-4) var(--sp-4) var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.sidebar-brand-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-blue);
  flex-shrink: 0;
}
.sidebar-brand-logo {
  height: 28px;
  width: auto;
  max-width: 120px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.sidebar-brand-text {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--text-primary);
}

/* Workspace context switcher */
.workspace-switcher {
  padding: var(--sp-2) var(--sp-3);
  position: relative;
}

.workspace-current {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  font-size: var(--font-size-sm);
  text-align: left;
}
.workspace-current:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-focus);
}

.workspace-avatar {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  overflow: hidden;
  flex-shrink: 0;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.workspace-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.workspace-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.workspace-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.workspace-current.open .workspace-chevron {
  transform: rotate(180deg);
}

/* Workspace dropdown */
.workspace-dropdown {
  display: none;
  position: absolute;
  left: var(--sp-3);
  right: var(--sp-3);
  top: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-height: 320px;
  overflow-y: auto;
  margin-top: var(--sp-1);
}
.workspace-dropdown.show { display: block; }

.dropdown-section {
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border-muted);
}
.dropdown-section:last-child { border-bottom: none; }

.dropdown-label {
  display: block;
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.workspace-option {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  transition: background var(--transition-fast);
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  text-decoration: none;
}
.workspace-form {
  margin: 0;
}
.workspace-option:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.workspace-option.active {
  background: var(--bg-active);
  color: var(--accent-blue);
}

.workspace-option-new {
  color: var(--text-secondary);
}
.workspace-option-new:hover {
  color: var(--accent-blue);
}

/* Sidebar navigation */
.sidebar-nav {
  flex: 1;
  padding: var(--sp-2) var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.nav-divider {
  height: 1px;
  background: var(--border-default);
  margin: var(--sp-2) var(--sp-3);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-md);
  color: var(--sidebar-text-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}
.nav-item:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text);
}
.nav-item.active {
  background: var(--sidebar-active);
  color: var(--sidebar-active-text);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent-red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  margin-left: 4px;
}

.nav-divider {
  border-top: 1px solid var(--sidebar-border);
  margin: var(--sp-2) var(--sp-3);
}

/* Sidebar bottom section */
.sidebar-bottom {
  padding: var(--sp-2) var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.nav-item-form {
  display: contents;
}
.nav-item-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-md);
  color: var(--sidebar-text-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-item-btn:hover {
  background: var(--sidebar-hover);
  color: var(--accent-red);
}
.nav-item-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Main content area */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  padding: var(--sp-8);
  max-width: 100%;
}

/* Auth pages: centered, no sidebar */
/* ── Public Header (non-logged-in pages) ── */

.public-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--border-default);
  padding: 0 var(--sp-6);
}
.public-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.public-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-primary);
  text-decoration: none;
}
.public-brand:hover { color: var(--accent-blue); }
.public-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-6);
  min-height: calc(100vh - 56px);
}

/* ── Auth Pages ── */

.auth-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--sp-8);
  gap: 0;
}

.auth-brand {
  text-align: center;
  margin-bottom: var(--sp-8);
}
.auth-brand-icon {
  width: 48px;
  height: 48px;
  color: var(--accent-blue);
  margin: 0 auto var(--sp-4);
}
.auth-brand-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
}
.auth-brand-subtitle {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  margin-top: var(--sp-1);
}

/* Body: holds banner + form */
.auth-body {
  display: flex;
  width: 100%;
  max-width: 400px;
}

/* Left position: side by side, matching heights */
.auth-body-left {
  max-width: 840px;
  gap: var(--sp-6);
  align-items: stretch;
}
.auth-body-left .auth-banner {
  flex: 1;
  min-width: 0;
}
.auth-body-left .auth-banner-inner {
  height: 100%;
  display: flex;
  align-items: center;
}
.auth-body-left .auth-form-wrap {
  flex: 1;
  min-width: 0;
}

/* Top position: stacked column */
.auth-body-top {
  flex-direction: column;
  max-width: 400px;
  gap: var(--sp-4);
}
.auth-body-top .auth-banner-inner {
  text-align: center;
}

/* Banner styling */
.auth-banner-inner {
  padding: var(--sp-6);
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* Form wrapper */
.auth-form-wrap {
  width: 100%;
}

/* Footer */
.auth-footer-wrap {
  width: 100%;
  max-width: 840px;
}
.auth-footer {
  text-align: center;
  margin-top: var(--sp-6);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}
.auth-footer a {
  font-weight: 500;
}

.auth-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}

/* SSO buttons section */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border-default);
}


/* ── 4. Typography ────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.25;
}
h1 { font-size: var(--font-size-2xl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }
h4 { font-size: var(--font-size-md); }

.text-muted { color: var(--text-secondary); }
.text-subtle { color: var(--text-tertiary); }
.text-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }
.text-mono { font-family: var(--font-mono); }


/* ── 5. Utility Classes ───────────────────────────────────────── */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast),
              color var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}
.btn:focus-visible { box-shadow: var(--shadow-focus); }
.btn:disabled, .btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}
.btn-primary:hover {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  color: #fff;
}

.btn-success {
  background: var(--accent-green);
  color: #fff;
  border-color: var(--accent-green);
}
.btn-success:hover { background: var(--btn-success-hover); }

.btn-danger {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}
.btn-danger:hover { background: var(--btn-danger-hover); }

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-default);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--text-tertiary);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-default);
}
.btn-outline:hover {
  background: var(--bg-hover);
  border-color: var(--text-tertiary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: var(--sp-1) var(--sp-2);
}
.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-sm {
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--font-size-base);
}

.btn-block {
  width: 100%;
}

.btn-sso {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--font-size-base);
}
.btn-sso:hover {
  background: var(--bg-hover);
  border-color: var(--text-tertiary);
  color: var(--text-primary);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 2px var(--sp-2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  line-height: 1.5;
}
.badge-open { background: rgba(63, 185, 80, 0.15); color: var(--status-open); }
.badge-closed { background: rgba(248, 81, 73, 0.15); color: var(--status-closed); }
.badge-merged { background: rgba(188, 140, 255, 0.15); color: var(--status-merged); }
.badge-approved { background: rgba(88, 166, 255, 0.15); color: var(--status-approved); }
.badge-draft { background: rgba(139, 148, 158, 0.15); color: var(--status-draft); }
.badge-label {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
}

/* Avatars */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--accent-blue);
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-sm { width: 24px; height: 24px; font-size: var(--font-size-xs); }
.avatar-lg { width: 48px; height: 48px; font-size: var(--font-size-lg); }
.avatar-xl { width: 80px; height: 80px; font-size: var(--font-size-2xl); }

/* Cards */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.card-title {
  font-size: var(--font-size-md);
  font-weight: 600;
}
.card-body { }
.card-footer {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-muted);
}

/* Alerts */
.alert {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}
.alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.alert-info {
  background: rgba(88, 166, 255, 0.1);
  border-color: rgba(88, 166, 255, 0.3);
  color: var(--accent-blue);
}
.alert-success {
  background: rgba(63, 185, 80, 0.1);
  border-color: rgba(63, 185, 80, 0.3);
  color: var(--accent-green);
}
.alert-warning {
  background: rgba(210, 153, 34, 0.1);
  border-color: rgba(210, 153, 34, 0.3);
  color: var(--accent-orange);
}
.alert-danger {
  background: rgba(248, 81, 73, 0.1);
  border-color: rgba(248, 81, 73, 0.3);
  color: var(--accent-red);
}

/* Enterprise license warning banner */
.license-banner {
  background: rgba(210, 153, 34, 0.15);
  border-bottom: 1px solid rgba(210, 153, 34, 0.3);
  color: var(--accent-orange);
  text-align: center;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--font-size-sm);
}

/* Empty states */
.empty-state {
  text-align: center;
  padding: var(--sp-12) var(--sp-8);
  color: var(--text-secondary);
}
.empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-4);
}
.empty-state-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}
.empty-state-text {
  max-width: 400px;
  margin: 0 auto var(--sp-6);
  line-height: 1.6;
}

/* Page header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.page-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
}
.page-description {
  color: var(--text-secondary);
  margin-top: var(--sp-1);
}
.page-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}


/* ── 6. Form Elements ─────────────────────────────────────────── */

.form-group {
  margin-bottom: var(--sp-5);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}
.form-label .required {
  color: var(--accent-red);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--font-size-base);
  line-height: 1.5;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--text-tertiary);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
}
.form-input::placeholder {
  color: var(--text-tertiary);
}
.form-input.error {
  border-color: var(--accent-red);
}
.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(248, 81, 73, 0.3);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b949e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-hint {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  margin-top: var(--sp-1);
}

.form-error {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--accent-red);
  margin-top: var(--sp-1);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  font-size: var(--font-size-sm);
}
.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-blue);
}


/* ── 7. Components ────────────────────────────────────────────── */

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: var(--sp-6);
  overflow-x: auto;
}
.tab {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.tab:hover {
  color: var(--text-primary);
  border-bottom-color: var(--border-default);
}
.tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-blue);
}
.tab-count {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  margin-left: var(--sp-1);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  margin-top: var(--sp-6);
}
.pagination a,
.pagination span {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  transition: background var(--transition-fast);
  text-decoration: none;
}
.pagination a:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.pagination .active {
  background: var(--accent-blue);
  color: #fff;
}
.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-default);
}
td {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--border-muted);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-hover); }

/* Dropdown menus */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 180px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-1) 0;
  z-index: 150;
  margin-top: var(--sp-1);
}
.dropdown-menu.show { display: block; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  transition: background var(--transition-fast);
}
.dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.dropdown-item-danger { color: var(--accent-red); }
.dropdown-item-danger:hover { background: rgba(248, 81, 73, 0.1); }
.dropdown-divider {
  border-top: 1px solid var(--border-muted);
  margin: var(--sp-1) 0;
}

/* Code blocks */
pre {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  overflow-x: auto;
  font-size: var(--font-size-sm);
  line-height: 1.6;
}
code {
  background: var(--bg-tertiary);
  padding: 1px 4px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
}
pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

/* Diff view */
.diff-block {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: var(--sp-4);
}
.diff-header {
  background: var(--bg-secondary);
  padding: var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--border-default);
  font-weight: 600;
  color: var(--text-secondary);
}
.diff-line {
  display: flex;
  white-space: pre;
  line-height: 1.6;
}
.diff-line-num {
  width: 50px;
  padding: 0 var(--sp-2);
  text-align: right;
  color: var(--text-tertiary);
  user-select: none;
  flex-shrink: 0;
  border-right: 1px solid var(--border-muted);
}
.diff-line-content {
  flex: 1;
  padding: 0 var(--sp-3);
}
.diff-add { background: rgba(63, 185, 80, 0.1); }
.diff-add .diff-line-content { color: var(--accent-green); }
.diff-del { background: rgba(248, 81, 73, 0.1); }
.diff-del .diff-line-content { color: var(--accent-red); }
.diff-hunk {
  background: rgba(88, 166, 255, 0.08);
  color: var(--text-secondary);
  padding: var(--sp-1) var(--sp-4);
}

/* Markdown rendering */
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
}
.markdown-body h1,
.markdown-body h2 {
  border-bottom: 1px solid var(--border-muted);
}
.markdown-body p {
  margin-bottom: var(--sp-4);
}
.markdown-body ul,
.markdown-body ol {
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-4);
}
.markdown-body li { margin-bottom: var(--sp-1); }
.markdown-body blockquote {
  border-left: 3px solid var(--border-default);
  padding-left: var(--sp-4);
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
}
.markdown-body img {
  max-width: 100%;
  border-radius: var(--radius-md);
}
.markdown-body table {
  border: 1px solid var(--border-default);
  margin-bottom: var(--sp-4);
}


/* ── 8. Responsive ────────────────────────────────────────────── */

/* Mobile sidebar toggle */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 110;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--sp-2);
  color: var(--text-primary);
  cursor: pointer;
}
.sidebar-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 99;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition-base);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: block; }
  .sidebar-overlay.show { display: block; }

  .main-content {
    margin-left: 0;
    padding: var(--sp-4);
    padding-top: 56px; /* space for toggle button */
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .auth-shell { padding: var(--sp-4); }
  .auth-card { padding: var(--sp-4); }
}

@media (max-width: 860px) {
  .auth-body-left {
    flex-direction: column;
    max-width: 400px;
    gap: var(--sp-4);
  }
  .auth-body-left .auth-banner-inner {
    text-align: center;
    height: auto;
  }
  .auth-footer-wrap {
    max-width: 400px;
  }
}


/* ── Utility helpers ──────────────────────────────────────────── */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.hidden { display: none !important; }

/* ── Profile ──────────────────────────────────────────────── */
.profile-header { border-bottom: 1px solid var(--border-default); padding-bottom: var(--sp-4); }
.avatar-xl { width: 80px; height: 80px; font-size: 32px; }
.avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-tertiary); color: var(--text-secondary);
  border-radius: 50%; font-weight: 600;
}
.font-semibold { font-weight: 600; }

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs { display: flex; gap: var(--sp-1); border-bottom: 1px solid var(--border-default); overflow-x: auto; }
.tab {
  display: flex; align-items: center; gap: 6px;
  padding: var(--sp-2) var(--sp-3);
  color: var(--text-secondary); text-decoration: none;
  border-bottom: 2px solid transparent; font-size: var(--font-size-sm);
  white-space: nowrap; transition: color 0.15s, border-color 0.15s;
}
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--text-primary); border-bottom-color: var(--accent-blue); }
.tab-count {
  background: var(--bg-tertiary); color: var(--text-secondary);
  padding: 0 6px; border-radius: 10px; font-size: 12px;
}

/* ── List Items ───────────────────────────────────────────── */
.list-item {
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-muted);
}
.list-item:last-child { border-bottom: none; }

/* ── Form Textarea ────────────────────────────────────────── */
.form-textarea {
  width: 100%; padding: var(--sp-2) var(--sp-3);
  background: var(--bg-primary); color: var(--text-primary);
  border: 1px solid var(--border-default); border-radius: var(--radius-md);
  font-family: var(--font-family); font-size: var(--font-size-base);
  resize: vertical; min-height: 80px;
}
.form-textarea:focus { border-color: var(--accent-blue); outline: none; box-shadow: 0 0 0 2px rgba(88,166,255,0.15); }

/* ── Profile Tab Content ──────────────────────────────────── */
.profile-tab-content { min-height: 200px; }

/* ── Responsive Polish ────────────────────────────────────── */
@media (max-width: 768px) {
  .profile-header .flex { flex-direction: column; align-items: flex-start; }
  .tabs { gap: 0; }
  .tab { padding: var(--sp-2); font-size: 13px; }
}

/* ── Page With Right Sidebar ─────────────────────────────── */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: var(--sp-6);
  align-items: start;
}
.page-main { min-width: 0; }

.page-sidebar-right {
  position: sticky;
  top: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.sidebar-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
}

.sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--sp-3) 0;
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border-muted);
}
.sidebar-section-title svg { color: var(--text-secondary); flex-shrink: 0; }

.sidebar-label { margin-bottom: var(--sp-1); }

/* ── Right Sidebar Search ────────────────────────────────── */
.sidebar-search-wrap {
  position: relative;
}
.sidebar-search-wrap .form-input {
  padding-right: 32px;
}
.sidebar-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.sidebar-search-clear:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.form-input-sm {
  padding: 6px 10px;
  font-size: var(--font-size-sm);
}

/* ── Display Options ─────────────────────────────────────── */
.display-options-group {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.display-option {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-default);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.display-option:last-child { border-right: none; }
.display-option:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.display-option.active {
  background: var(--accent-blue);
  color: #fff;
  font-weight: 600;
}

/* ── Team & Repo Cards ─────────────────────────────────────── */
/* Repository Links Nav */

/* Branding Header & Footer */
.branding-header {
  padding: var(--sp-2) var(--sp-4);
  margin: -24px -32px var(--sp-4);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-align: center;
}
.branding-footer {
  margin: var(--sp-8) -32px -24px;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--font-size-xs);
  text-align: center;
  border-top: 1px solid var(--border-default);
}

/* Repository Links Nav */
/* ── Repository Tab Navigation ───────────────────────────────── */

.repo-tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: var(--sp-6);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.repo-tab-nav::-webkit-scrollbar {
  display: none;
}
.repo-tab {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.repo-tab:hover {
  color: var(--text-primary);
}
.repo-tab.active {
  color: var(--text-primary);
  font-weight: 600;
  border-bottom-color: var(--accent-blue);
}
.repo-tab svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
}

/* ── Repository Sidebar Links ───────────────────────────────── */

.repo-links-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 calc(var(--sp-4) * -1);
}
.repo-link-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  border-radius: 0;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.repo-link-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.repo-link-item svg:first-child {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}
.repo-link-item:hover svg:first-child {
  opacity: 1;
}
.repo-link-item span {
  flex: 1;
}
.repo-link-chevron {
  flex-shrink: 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: var(--text-tertiary);
}
.repo-link-item:hover .repo-link-chevron {
  opacity: 1;
}

.team-card,
.repo-card,
.issue-card,
.mr-card,
.member-card,
.stat-card,
.webhook-card,
.secret-card,
.mention-card,
.release-card,
.tag-card {
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.team-card:hover,
.repo-card:hover,
.issue-card:hover,
.mr-card:hover,
.member-card:hover,
.stat-card:hover,
.webhook-card:hover,
.secret-card:hover,
.mention-card:hover,
.release-card:hover,
.tag-card:hover {
  border-color: var(--border-default);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ── Clone URL Box ────────────────────────────────────────── */
.clone-url-box {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.clone-url-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 8px;
  min-width: 0;
  outline: none;
}
.clone-url-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border-default);
  color: var(--text-secondary);
  padding: 6px 8px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.clone-url-copy:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* ── File Editor ──────────────────────────────────────────── */
.file-editor-wrap {
  position: relative;
}
.file-editor {
  display: block;
  width: 100%;
  min-height: 400px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-primary);
  color: var(--text-primary);
  border: none;
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  resize: vertical;
  outline: none;
  tab-size: 4;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}

/* ── Search Active Bar ───────────────────────────────────── */
.search-active-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}
.btn-xs {
  padding: 2px 10px;
  font-size: 12px;
}
.btn-ghost {
  background: transparent;
  border: none;
  padding: 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  transition: background var(--transition-fast), opacity var(--transition-fast);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.btn-ghost:hover {
  background: var(--bg-tertiary);
  opacity: 0.8;
}

/* ── Pagination Buttons ──────────────────────────────────── */
.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.pagination-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.pagination-active {
  background: var(--accent-blue);
  color: #fff !important;
}
.pagination-ellipsis {
  padding: 6px 4px;
  color: var(--text-tertiary);
}
.pagination-info {
  padding: 6px 0;
}

/* ── Responsive: Right Sidebar ───────────────────────────── */
@media (max-width: 960px) {
  .page-with-sidebar {
    grid-template-columns: 1fr;
  }
  .page-sidebar-right {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-section {
    flex: 1;
    min-width: 200px;
  }
}


/* ── Theme Toggle ────────────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  color: var(--sidebar-text-muted);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  font: inherit;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  border-radius: var(--radius-md);
}
.theme-toggle:hover {
  color: var(--sidebar-text);
  background: var(--sidebar-hover);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.theme-toggle .icon-sun,
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }

/* Auth page theme toggle */
.auth-theme-toggle {
  position: fixed;
  top: var(--sp-4);
  right: var(--sp-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: var(--sp-2);
  cursor: pointer;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
  z-index: 100;
  line-height: 0;
}
.auth-theme-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}
.auth-theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-theme-toggle .icon-sun,
[data-theme="light"] .auth-theme-toggle .icon-moon { display: none; }
[data-theme="light"] .auth-theme-toggle .icon-sun { display: block; }
