/* ==========================================================================
   GitCore Design System - Modern GitHub Dark Inspired Theme
   ========================================================================== */

:root {
  /* use.live Core Obsidian Palette */
  --bg-canvas: #0c0c0e;
  --bg-inset: #070709;
  --bg-surface: #16161a;
  --bg-elevated: #1f1f26;
  --bg-hover: #262630;
  --border-default: rgba(255, 255, 255, 0.08);
  --border-muted: rgba(255, 255, 255, 0.05);
  
  --text-primary: #f5f5f7;
  --text-secondary: rgba(245, 245, 247, 0.72);
  --text-muted: rgba(245, 245, 247, 0.45);
  --text-link: #2480f5;

  --accent-blue: #2480f5;
  --accent-purple: #a855f7;
  --btn-primary-bg: #2480f5;
  --btn-primary-hover: #1d72dd;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: #1f1f26;
  --btn-secondary-hover: #282832;
  --btn-secondary-text: #f5f5f7;

  --diff-add-bg: rgba(16, 185, 129, 0.15);
  --diff-add-text: #10b981;
  --diff-del-bg: rgba(239, 68, 68, 0.15);
  --diff-del-text: #ef4444;
  --diff-hunk-bg: rgba(36, 128, 245, 0.12);
  --diff-hunk-text: #60a5fa;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px -6px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px -12px rgba(0, 0, 0, 0.65);

  --font-sans: 'Nunito', 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-product: 'Nunito', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

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

html {
  overflow-x: clip;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.form-control {
  width: 100%;
  background-color: var(--bg-inset);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: #388bfd;
  box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.3);
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* ==========================================================================
   Header
   ========================================================================== */

.app-header {
  height: 54px;
  background-color: rgba(18, 18, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px;
  position: sticky;
  top: 12px;
  max-width: 1400px;
  width: calc(100% - 24px);
  margin: 12px auto;
  z-index: 1000;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.6);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none !important;
}

.git-logo,
.gitcore-logo {
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.logo-link:hover .gitcore-logo,
.landing-footer-logo:hover .gitcore-logo {
  transform: scale(1.08) rotate(-3deg);
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.65));
}

.brand-name {
  font-family: var(--font-product);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-status {
  font-size: 11px;
  font-weight: 750;
  background-color: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 9px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
}

.header-nav-link {
  color: rgba(var(--g-fg), 0.7) !important;
  font-family: var(--font-product);
  font-weight: 750 !important;
  font-size: 13px !important;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
}

.header-nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box svg {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  padding: 6px 12px 6px 34px;
  font-family: var(--font-product);
  font-size: 13px;
  width: 260px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.search-box input:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(36, 128, 245, 0.25);
  width: 320px;
}

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

/* Proportional Navigation "New Repository" Button */
.nav-new-repo-btn,
#open-new-repo-btn {
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  line-height: 28px !important;
  border-radius: var(--radius-full) !important;
  box-shadow: 0 2px 6px rgba(36, 128, 245, 0.25) !important;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-new-repo-btn svg,
#open-new-repo-btn svg {
  width: 12px !important;
  height: 12px !important;
  flex-shrink: 0 !important;
}

.header-nav-items {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 16px;
}

.header-mobile-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.header-mobile-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #38bdf8;
}

.mobile-nav-drawer {
  position: fixed;
  top: 66px;
  left: 12px;
  right: 12px;
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl, 16px);
  padding: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  z-index: 1001;
  max-height: calc(100vh - 84px);
  overflow-y: auto;
  animation: mobileNavFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mobileNavFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-drawer.hidden {
  display: none !important;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav-search-wrap {
  width: 100%;
}

.mobile-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full, 9999px);
  padding: 8px 14px;
  color: var(--text-muted);
}

.mobile-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  width: 100%;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md, 8px);
  color: var(--text-secondary);
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(255, 255, 255, 0.06);
  color: #38bdf8;
}

.mobile-nav-actions {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-new-repo-btn:hover,
#open-new-repo-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(36, 128, 245, 0.4) !important;
}

@media (max-width: 900px) {
  .header-nav-items {
    display: none !important;
  }
  .header-mobile-toggle-btn {
    display: inline-flex !important;
  }
  .nav-new-repo-btn span,
  #open-new-repo-btn span {
    display: none !important;
  }
  .nav-new-repo-btn,
  #open-new-repo-btn {
    width: 28px !important;
    min-width: 28px !important;
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 50% !important;
  }
}

@media (max-width: 768px) {
  .app-header {
    padding: 0 12px !important;
    gap: 8px !important;
    height: 52px !important;
    max-width: 100% !important;
    width: calc(100% - 16px) !important;
    margin: 8px auto !important;
  }
  .header-left {
    gap: 8px !important;
    min-width: 0 !important;
    flex: 1 !important;
  }
  .badge-status {
    display: none !important;
  }
  .search-box {
    display: none !important;
  }
  .header-right {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .btn-auth-trigger {
    padding: 5px 9px;
    font-size: 12px;
  }
  .nav-new-repo-btn,
  #open-new-repo-btn {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 16px !important;
  }
  .logo-link svg {
    width: 24px;
    height: 24px;
  }
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #30363d, #58a6ff);
  color: white;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
}

/* ==========================================================================
   Buttons & Controls
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 750;
  font-family: var(--font-product);
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 20px;
  text-decoration: none !important;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(36, 128, 245, 0.35);
}

.btn-primary:hover {
  background-color: var(--btn-primary-hover);
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(36, 128, 245, 0.5);
}

.btn-secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--text-primary);
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--btn-secondary-hover);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
}

/* ==========================================================================
   Main Layout Container
   ========================================================================== */

.main-content {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.main-content:has(.landing-container),
.main-content:has(.landing-footer),
.main-content:has(.docs-hub-wrapper),
.main-content:has(.docs-reader-layout),
.main-content:has(.site-policy-hub),
.main-content:has(.docs-subdomain-navbar),
.main-content.landing-mode,
.main-content.docs-mode,
body.docs-mode-active .main-content {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide standard global app header on docs pages so docs has its authentic Primer Subdomain Navbar */
body.docs-mode-active .app-header,
body:has(.docs-hub-wrapper) .app-header,
body:has(.docs-reader-layout) .app-header,
body:has(.site-policy-hub) .app-header,
body:has(.docs-subdomain-navbar) .app-header {
  display: none !important;
}

.loading-spinner-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  gap: 16px;
  color: var(--text-muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-default);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Dashboard View (Repo Explorer)
   ========================================================================== */

.dashboard-hero {
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(22, 27, 34, 0.4) 100%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.dashboard-hero::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(88, 166, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 650px;
  margin-bottom: 20px;
}

.hero-quick-clone {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-inset);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  font-family: var(--font-mono);
  font-size: 13px;
  width: fit-content;
}

.hero-quick-clone code {
  color: var(--accent-blue);
}

.copy-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.copy-icon-btn:hover {
  color: var(--text-primary);
}

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

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.counter-badge {
  background-color: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Repositories Grid */
.repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.repo-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.repo-card:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.repo-card-top {
  margin-bottom: 12px;
}

.repo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.repo-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-blue);
  word-break: break-all;
}

.repo-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
}

.repo-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

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

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-lg);
}

.empty-state svg {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.empty-state h3 {
  color: var(--text-primary);
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ==========================================================================
   Repository View (Repo Page)
   ========================================================================== */

.repo-header {
  margin-bottom: 24px;
}

.repo-header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

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

.repo-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.25;
}

.repo-breadcrumbs svg {
  color: var(--text-muted);
  margin-right: 4px;
}

.repo-breadcrumbs a {
  color: var(--accent-blue);
}

.repo-breadcrumbs span.sep {
  color: var(--text-muted);
}

.repo-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.repo-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn:hover {
  color: var(--text-primary);
  border-bottom-color: var(--border-default);
}

.tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: #f78166;
  font-weight: 600;
}

/* Repo Action Bar */
.repo-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
  gap: 12px;
  flex-wrap: wrap;
}

.action-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.branch-select-wrapper {
  position: relative;
}

.branch-select {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 5px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

.branch-select:focus {
  border-color: var(--accent-blue);
}

.action-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Clone Dropdown */
.clone-dropdown-wrapper {
  position: relative;
}

.clone-popover {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 360px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 50;
}

.clone-popover.hidden {
  display: none;
}

.clone-popover-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.clone-input-group {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.clone-input-group input {
  flex: 1;
  background-color: var(--bg-inset);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 8px;
}

.clone-help-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Latest Commit Card */
.latest-commit-banner {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.commit-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.commit-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #388bfd;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.commit-subject {
  color: var(--text-primary);
  font-weight: 500;
}

.commit-right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.commit-sha-pill {
  font-family: var(--font-mono);
  background-color: var(--bg-inset);
  border: 1px solid var(--border-default);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--accent-blue);
}

/* File Tree Table */
.file-tree-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.file-tree-row {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-top: 1px solid var(--border-muted);
  font-size: 13px;
  transition: background-color 0.1s ease;
}

.file-tree-row:first-child {
  border-top: none;
}

.file-tree-row:hover {
  background-color: var(--bg-elevated);
}

.row-icon-name {
  flex: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.row-icon-name svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.row-icon-name.directory-row svg {
  color: #79c0ff;
}

.row-message {
  flex: 5;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 12px;
}

.row-meta {
  flex: 2;
  text-align: right;
  color: var(--text-muted);
  font-size: 12px;
}

/* README Box */
.readme-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.readme-header {
  padding: 10px 16px;
  background-color: var(--bg-elevated);
  border-bottom: 1px solid var(--border-default);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.markdown-body {
  padding: 32px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.markdown-body h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 8px;
}

.markdown-body h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 16px;
  border-bottom: none;
  padding-bottom: 0;
}

.markdown-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 20px;
  margin-bottom: 12px;
}

.markdown-body table {
  border-spacing: 0;
  border-collapse: collapse;
  display: block;
  width: max-content;
  max-width: 100%;
  overflow: auto;
  margin-top: 16px;
  margin-bottom: 24px;
}

.markdown-body table tr {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-default);
}

.markdown-body table tr:nth-child(2n) {
  background-color: rgba(255, 255, 255, 0.02);
}

.markdown-body table th,
.markdown-body table td {
  padding: 8px 16px;
  border: 1px solid var(--border-default);
  font-size: 14px;
  line-height: 1.5;
}

.markdown-body table th {
  font-weight: 600;
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  text-align: left;
}

.markdown-body table td {
  color: var(--text-secondary);
}

.markdown-body p {
  margin-bottom: 16px;
}

.markdown-body code {
  font-family: var(--font-mono);
  background-color: rgba(110, 118, 129, 0.2);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 85%;
}

.markdown-body pre {
  background-color: var(--bg-inset);
  padding: 16px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 16px;
  border: 1px solid var(--border-default);
}

.markdown-body pre code {
  background: transparent;
  padding: 0;
}

/* Repository Content Two-Column Layout (GitHub-style) */
.repo-content-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
  margin-top: 16px;
}

.repo-content-layout.no-sidebar {
  display: block;
}

.repo-main-column {
  flex: 1;
  min-width: 0;
}

.repo-main-column.full-width {
  width: 100%;
}

.action-bar-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: var(--radius-sm, 6px);
  transition: color 0.15s, background-color 0.15s;
}

.action-bar-pill-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-elevated);
}

.action-bar-pill-link svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.action-bar-pill-link strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Repository Sidebar */
.repo-sidebar {
  width: 296px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--text-primary);
  font-size: 13px;
}

.repo-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-default);
}

.repo-sidebar-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.repo-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.repo-sidebar-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.repo-sidebar-heading a {
  color: inherit;
  text-decoration: none;
}

.repo-sidebar-heading a:hover {
  color: var(--accent-blue, #58a6ff);
}

.repo-sidebar-edit-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm, 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background-color 0.15s;
}

.repo-sidebar-edit-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-elevated);
}

.repo-sidebar-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
  word-break: break-word;
}

.repo-sidebar-desc.text-muted {
  color: var(--text-muted);
  font-size: 13px;
}

.repo-sidebar-website {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  word-break: break-all;
}

.repo-sidebar-website a {
  color: var(--accent-blue, #58a6ff);
  text-decoration: none;
  font-weight: 500;
}

.repo-sidebar-website a:hover {
  text-decoration: underline;
}

.repo-sidebar-website svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.repo-sidebar-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.topic-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background-color: rgba(56, 139, 253, 0.12);
  border: 1px solid rgba(56, 139, 253, 0.25);
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent-blue, #58a6ff);
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}

.topic-tag:hover {
  background-color: rgba(56, 139, 253, 0.2);
  border-color: rgba(56, 139, 253, 0.4);
  text-decoration: none;
}

.repo-sidebar-meta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.sidebar-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}

.sidebar-meta-item svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.sidebar-meta-item:hover,
a.sidebar-meta-item:hover {
  color: var(--accent-blue, #58a6ff);
}

.sidebar-meta-item:hover svg {
  color: var(--accent-blue, #58a6ff);
}

.sidebar-meta-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.repo-sidebar-empty {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

.sidebar-action-link {
  font-size: 12.5px;
  color: var(--accent-blue, #58a6ff);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sidebar-action-link:hover {
  text-decoration: underline;
}

.counter-badge {
  display: inline-block;
  padding: 1px 7px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 16px;
  border-radius: 10px;
  background-color: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-default);
}

.badge-latest {
  display: inline-block;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  color: #3fb950;
  background-color: rgba(46, 160, 67, 0.15);
  border: 1px solid rgba(63, 185, 80, 0.4);
  border-radius: 10px;
  margin-left: 6px;
}

.sidebar-release-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-release-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-release-title {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--accent-blue, #58a6ff);
  text-decoration: none;
}

.sidebar-release-title:hover {
  text-decoration: underline;
}

.sidebar-sublink {
  font-size: 12px;
  color: var(--accent-blue, #58a6ff);
  text-decoration: none;
  margin-top: 4px;
  display: inline-block;
}

.sidebar-sublink:hover {
  text-decoration: underline;
}

.sidebar-tags-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.sidebar-tags-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}

.sidebar-tags-link:hover {
  color: var(--accent-blue, #58a6ff);
}

.sidebar-tags-link svg {
  color: var(--text-muted);
}

.sidebar-tags-link:hover svg {
  color: var(--accent-blue, #58a6ff);
}

/* Contributors avatars */
.contributors-avatar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.contributor-avatar-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.15s;
}

.contributor-avatar-link:hover {
  transform: scale(1.1);
}

.contributor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.contributors-overflow {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 4px;
}

/* Language breakdown */
.language-bar {
  display: flex;
  height: 8px;
  overflow: hidden;
  background-color: var(--bg-elevated);
  border-radius: 6px;
  width: 100%;
}

.language-bar-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.language-bar-segment:first-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.language-bar-segment:last-child {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.language-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12px;
}

.language-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.language-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.language-name {
  font-weight: 600;
  color: var(--text-primary);
}

.language-pct {
  color: var(--text-muted);
}

/* Responsive adjustment for repository layout */
@media (max-width: 900px) {
  .repo-content-layout {
    flex-direction: column;
    gap: 24px;
  }

  .repo-sidebar {
    width: 100%;
    border-top: 1px solid var(--border-default);
    padding-top: 24px;
  }
}

/* ==========================================================================
   Blob / File Viewer
   ========================================================================== */

.blob-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.blob-header {
  padding: 10px 16px;
  background-color: var(--bg-elevated);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.blob-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.blob-header-actions {
  display: flex;
  gap: 8px;
}

.code-view {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 20px;
  background-color: var(--bg-inset);
  overflow-x: auto;
  display: flex;
}

.line-numbers {
  padding: 12px 10px 12px 16px;
  text-align: right;
  color: var(--text-muted);
  user-select: none;
  border-right: 1px solid var(--border-muted);
}

.line-content {
  padding: 12px 16px;
  flex: 1;
  white-space: pre;
  color: var(--text-primary);
}

/* ==========================================================================
   Commits History View
   ========================================================================== */

.commits-container {
  width: 100%;
  margin-top: 20px;
}

.commits-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.commits-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.commits-count-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
}

.commits-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  background-color: var(--bg-inset);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}

.commits-date-group {
  margin-bottom: 24px;
}

.commits-date-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 4px;
}

.commits-date-header svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.commits-list {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.commit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-muted);
  transition: background-color 0.15s ease;
  min-height: 54px;
}

.commit-item:last-child {
  border-bottom: none;
}

.commit-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

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

.commit-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  color: #ffffff;
  background: #388bfd;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  user-select: none;
}

.commit-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.commit-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
  display: block;
  transition: color 0.15s ease;
}

.commit-item-title:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

.commit-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.commit-author-name {
  font-weight: 500;
  color: var(--text-secondary);
}

.commit-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 16px;
}

.commit-actions-group {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-inset);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.btn-commit-sha {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-blue);
  padding: 4px 8px;
  text-decoration: none;
  border-right: 1px solid var(--border-default);
  transition: background-color 0.15s ease;
  line-height: 16px;
}

.btn-commit-sha:hover {
  background-color: var(--bg-elevated);
  text-decoration: none;
}

.btn-commit-action {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-right: 1px solid var(--border-default);
  transition: color 0.15s ease, background-color 0.15s ease;
  text-decoration: none;
  line-height: 16px;
}

.btn-commit-action:last-child {
  border-right: none;
}

.btn-commit-action:hover {
  color: var(--text-primary);
  background-color: var(--bg-elevated);
}


/* ==========================================================================
   Commit Diff View
   ========================================================================== */

.diff-header-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.diff-commit-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.diff-stat-summary {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background-color: var(--bg-inset);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  white-space: pre-wrap;
}

.diff-container {
  background-color: var(--bg-inset);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-x: auto;
}

.diff-line {
  padding: 2px 16px;
  white-space: pre-wrap;
  line-height: 20px;
}

.diff-line.hunk {
  background-color: var(--diff-hunk-bg);
  color: var(--diff-hunk-text);
  font-weight: 600;
}

.diff-line.addition {
  background-color: var(--diff-add-bg);
  color: var(--diff-add-text);
}

.diff-line.deletion {
  background-color: var(--diff-del-bg);
  color: var(--diff-del-text);
}

/* ==========================================================================
   Modals
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(1, 4, 9, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.modal-large {
  max-width: 800px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.optional-label {
  font-weight: 400;
  color: var(--text-muted);
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group textarea,
.form-group select,
.form-select {
  width: 100%;
  background-color: var(--bg-inset);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group select,
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b949e' viewBox='0 0 16 16'%3E%3Cpath d='M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}

.form-group textarea.code-textarea {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}

.form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.form-group textarea:focus,
.form-group select:focus,
.form-select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}

/* Global Checkbox & Radio Reset & Sizing */
.form-group input[type="checkbox"],
.form-group input[type="radio"],
input[type="checkbox"],
input[type="radio"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  accent-color: var(--accent-blue) !important;
  cursor: pointer;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  vertical-align: middle;
}

.radio-option-label,
.checkbox-option-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-weight: 400 !important;
  color: var(--text-primary) !important;
  cursor: pointer !important;
  margin: 0 !important;
}

.radio-option-label span,
.checkbox-option-label span {
  color: var(--text-primary);
  font-size: 13px;
}

.form-row.owner-name-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.slash-separator {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0;
  background-color: var(--bg-inset);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
}

.form-checkbox input[type="checkbox"] {
  margin-top: 3px !important;
  cursor: pointer;
}

.checkbox-details label {
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
}

.checkbox-details p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-left: 4px solid var(--accent-blue);
  color: var(--text-primary);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  animation: slideIn 0.2s ease forwards;
}

.toast.success {
  border-left-color: #3fb950;
}

.toast.error {
  border-left-color: #f85149;
}

@keyframes slideIn {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Tab Counter Badge */
.tab-counter {
  background-color: var(--bg-hover);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  line-height: 16px;
  display: inline-block;
}

.btn-danger {
  background-color: #21262d;
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.4);
}

.btn-danger:hover {
  background-color: #b62324;
  color: #ffffff;
  border-color: #b62324;
}

/* ==========================================================================
   Git Blame Viewer
   ========================================================================== */
.blame-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 16px;
}

.blame-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12px;
}

.blame-row {
  display: table-row;
  transition: background-color 0.1s ease;
}

.blame-row:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.blame-commit-cell {
  display: table-cell;
  width: 320px;
  max-width: 340px;
  padding: 4px 12px;
  vertical-align: top;
  border-right: 1px solid var(--border-muted);
  border-bottom: 1px solid var(--border-muted);
  background-color: rgba(22, 27, 34, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
}

.blame-commit-cell .blame-sha {
  color: var(--accent-blue);
  font-weight: 600;
  margin-right: 8px;
}

.blame-commit-cell .blame-author {
  color: var(--text-secondary);
  margin-right: 8px;
}

.blame-commit-cell .blame-time {
  color: var(--text-muted);
  font-size: 11px;
}

.blame-commit-cell .blame-summary {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blame-num-cell {
  display: table-cell;
  width: 45px;
  padding: 4px 8px;
  text-align: right;
  color: var(--text-muted);
  user-select: none;
  border-right: 1px solid var(--border-muted);
  border-bottom: 1px solid var(--border-muted);
}

.blame-code-cell {
  display: table-cell;
  padding: 4px 12px;
  white-space: pre;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-muted);
}

/* ==========================================================================
   Issues List & Tracker
   ========================================================================== */
.issues-container {
  margin-top: 16px;
}

.issues-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.issues-filter-group {
  display: flex;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.issue-filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.issue-filter-btn:hover {
  color: var(--text-primary);
}

.issue-filter-btn.active {
  background-color: var(--bg-hover);
  color: var(--text-primary);
  font-weight: 600;
}

.issues-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.issues-box-header {
  padding: 12px 16px;
  background-color: var(--bg-elevated);
  border-bottom: 1px solid var(--border-default);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.issue-list-item {
  display: flex;
  align-items: flex-start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-muted);
  gap: 12px;
  transition: background-color 0.15s ease;
}

.issue-list-item:last-child {
  border-bottom: none;
}

.issue-list-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.issue-state-icon {
  margin-top: 2px;
  flex-shrink: 0;
}

.issue-state-icon.open {
  color: #3fb950;
}

.issue-state-icon.closed {
  color: #a371f7;
}

.issue-main-content {
  flex: 1;
}

.issue-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.issue-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.issue-title:hover {
  color: var(--text-link);
}

.issue-label-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 1px 8px;
  border-radius: var(--radius-full);
  background-color: rgba(56, 139, 253, 0.15);
  color: #58a6ff;
  border: 1px solid rgba(56, 139, 253, 0.3);
}

.issue-label-tag.bug {
  background-color: rgba(248, 81, 73, 0.15);
  color: #f85149;
  border-color: rgba(248, 81, 73, 0.3);
}

.issue-label-tag.enhancement {
  background-color: rgba(163, 113, 247, 0.15);
  color: #d2a8ff;
  border-color: rgba(163, 113, 247, 0.3);
}

.issue-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.issue-comments-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.issue-empty-state {
  padding: 48px 16px;
  text-align: center;
  color: var(--text-muted);
}

.issue-empty-state svg {
  margin-bottom: 12px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ==========================================================================
   Single Issue Conversation Thread
   ========================================================================== */
.issue-detail-view {
  margin-top: 16px;
}

.issue-detail-title-row {
  margin-bottom: 12px;
}

.issue-detail-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.issue-detail-title .issue-number-faded {
  color: var(--text-muted);
  font-weight: 400;
}

.issue-detail-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-default);
  font-size: 14px;
  color: var(--text-muted);
}

.issue-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.issue-badge.open {
  background-color: #238636;
}

.issue-badge.closed {
  background-color: #8957e5;
}

.timeline {
  position: relative;
  margin: 24px 0;
  padding-left: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 20px;
  width: 2px;
  background-color: var(--border-default);
}

.timeline-entry {
  position: relative;
  margin-bottom: 24px;
}

.timeline-avatar {
  position: absolute;
  left: -48px;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1f6feb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--bg-canvas);
  z-index: 1;
}

.comment-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.comment-card-header {
  padding: 10px 16px;
  background-color: var(--bg-elevated);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.comment-card-header strong {
  color: var(--text-primary);
}

.comment-card-body {
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.comment-card-body p {
  margin-bottom: 12px;
}

.comment-card-body p:last-child {
  margin-bottom: 0;
}

.comment-card-body pre {
  background-color: var(--bg-inset);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 12px 0;
}

.new-comment-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin-top: 24px;
  overflow: hidden;
}

.comment-tab-header {
  background-color: var(--bg-inset);
  border-bottom: 1px solid var(--border-default);
  padding: 8px 12px 0 12px;
  display: flex;
  gap: 4px;
}

.comment-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 6px 6px 0 0;
  transition: color var(--transition-fast);
}

.comment-tab-btn:hover {
  color: var(--text-primary);
}

.comment-tab-btn.active {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  border-color: var(--border-default);
  border-bottom-color: var(--bg-surface);
  margin-bottom: -1px;
}

#comment-write-container,
#pr-comment-write-container {
  padding: 12px;
}

#comment-write-container textarea,
#pr-comment-write-container textarea,
.new-comment-box textarea {
  width: 100% !important;
  min-height: 120px;
  padding: 12px;
  background-color: var(--bg-inset) !important;
  border: 1px solid var(--border-default) !important;
  border-radius: var(--radius-sm);
  color: var(--text-primary) !important;
  font-family: var(--font-sans) !important;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

#comment-write-container textarea:focus,
#pr-comment-write-container textarea:focus,
.new-comment-box textarea:focus {
  border-color: #388bfd !important;
  box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.3) !important;
}

#comment-preview-container,
#pr-comment-preview-container {
  margin: 12px;
  padding: 12px 14px;
  background-color: var(--bg-inset);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  min-height: 120px;
  color: var(--text-primary);
}

.comment-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 14px 12px;
  gap: 12px;
}

/* ==========================================================================
   Pull Requests & Compare View Styles
   ========================================================================== */

.issue-badge.merged, .pr-badge.merged {
  background-color: #8957e5;
  color: #ffffff;
}

.issue-badge.draft, .pr-badge.draft {
  background-color: #6e7681;
  color: #ffffff;
}

.pr-draft-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  border-radius: 12px;
  background-color: rgba(110, 118, 129, 0.15);
  color: var(--text-muted, #8b949e);
  border: 1px solid rgba(110, 118, 129, 0.4);
}

.draft-pr-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-left: 4px solid #6e7681;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
}

.draft-pr-callout-icon {
  color: #8b949e;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.draft-pr-callout-content {
  flex: 1;
}

.draft-pr-callout-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
  margin-bottom: 2px;
}

.draft-pr-callout-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.draft-pr-callout-actions {
  flex-shrink: 0;
}

.pr-draft-option-box {
  margin-top: 14px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: rgba(110, 118, 129, 0.08);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
}

.pr-draft-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-primary);
}

.branch-pill {
  display: inline-flex;
  align-items: center;
  background-color: rgba(56, 139, 253, 0.15);
  color: var(--text-link);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

/* Compare Header Bar */
.compare-header-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}

.compare-branch-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.compare-selector-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.compare-selector-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.compare-status-alert {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-status-alert.mergeable {
  background-color: rgba(46, 160, 67, 0.12);
  border: 1px solid rgba(46, 160, 67, 0.3);
  color: #3fb950;
}

.compare-status-alert.conflict {
  background-color: rgba(248, 81, 73, 0.12);
  border: 1px solid rgba(248, 81, 73, 0.3);
  color: #f85149;
}

/* PR Subtabs (Conversation, Commits, Files Changed) */
.pr-subtabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 20px;
  padding-bottom: 0;
}

.pr-subtab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.pr-subtab-btn:hover {
  color: var(--text-primary);
  border-bottom-color: var(--border-default);
}

.pr-subtab-btn.active {
  color: var(--text-primary);
  border-bottom-color: #f78166;
  font-weight: 600;
}

/* Merge Action Box in Conversation */
.pr-merge-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.pr-merge-box.mergeable {
  border-left: 4px solid #238636;
}

.pr-merge-box.merged {
  border-left: 4px solid #8957e5;
  background-color: rgba(137, 87, 229, 0.03);
}

.pr-merge-box.conflicts,
.pr-merge-box.conflict {
  border-left: 4px solid #f85149;
}

.pr-merge-header {
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pr-merge-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pr-merge-icon-circle.mergeable {
  background-color: rgba(46, 160, 67, 0.15);
  color: #3fb950;
}

.pr-merge-icon-circle.merged {
  background-color: rgba(137, 87, 229, 0.15);
  color: #a371f7;
}

.pr-merge-icon-circle.conflicts {
  background-color: rgba(248, 81, 73, 0.15);
  color: #f85149;
}

.pr-merge-details {
  flex: 1;
}

.pr-merge-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.pr-merge-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Checks status box inside merge card */
.pr-merge-box .pr-checks-box {
  background-color: transparent;
  border: none;
  border-top: 1px solid var(--border-muted);
  border-radius: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.pr-checks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.015);
}

/* Reviews status box inside merge card */
.pr-reviews-status-box {
  padding: 12px 16px;
  border-top: 1px solid var(--border-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  background-color: rgba(255, 255, 255, 0.015);
}

.pr-review-status-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pr-review-status-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Merge actions section */
.pr-merge-actions {
  border-top: 1px solid var(--border-default);
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.2);
}

.pr-merge-message-box {
  margin-bottom: 12px;
}

.pr-merge-message-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.pr-merge-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.pr-merge-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pr-merge-strategy-select {
  min-width: 190px;
  height: 34px;
  font-size: 13px;
}

.btn-merge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  padding: 6px 16px;
  height: 34px;
  white-space: nowrap;
}

.pr-merge-help-text {
  font-size: 12px;
  color: var(--text-muted);
}


/* Multi-File Diff Cards */
.diff-files-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.diff-file-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.diff-file-header {
  padding: 10px 16px;
  background-color: var(--bg-elevated);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
}

.diff-file-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.diff-file-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.diff-file-stats .add {
  color: #3fb950;
}

.diff-file-stats .del {
  color: #f85149;
}

.pr-state-icon.merged {
  color: #8957e5;
}

/* ==========================================
   Releases & Tags View Styles
   ========================================== */
.releases-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.releases-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.releases-toggle-group {
  display: inline-flex;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 2px;
}

.release-toggle-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.release-toggle-btn:hover {
  color: var(--text-primary);
}

.release-toggle-btn.active {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Release Card & Timeline */
.releases-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.release-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.release-card:hover {
  border-color: var(--border-muted);
}

.release-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-muted);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.release-header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.release-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.release-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.release-badge.latest {
  color: #3fb950;
  border: 1px solid rgba(63, 185, 80, 0.4);
  background-color: rgba(63, 185, 80, 0.1);
}

.release-badge.prerelease {
  color: #d29922;
  border: 1px solid rgba(210, 153, 34, 0.4);
  background-color: rgba(210, 153, 34, 0.1);
}

.release-badge.draft {
  color: #8b949e;
  border: 1px solid rgba(139, 148, 158, 0.4);
  background-color: rgba(139, 148, 158, 0.1);
}

.release-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.release-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-link);
}

.release-body {
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.6;
}

/* Assets Box */
.release-assets-box {
  background-color: var(--bg-inset);
  border-top: 1px solid var(--border-muted);
  padding: 16px 24px;
}

.release-assets-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.release-assets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asset-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  transition: all var(--transition-fast);
}

.asset-item-link:hover {
  background-color: var(--bg-elevated);
  border-color: var(--text-link);
  color: var(--text-link);
}

.asset-link-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
}

/* Tags Table */
.tags-table-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tags-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tags-table th {
  background-color: var(--bg-elevated);
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-default);
}

.tags-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-muted);
  color: var(--text-primary);
}

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

.tags-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

.tag-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.tag-download-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

/* ==========================================================================
   Search & Quick File Finder Styles
   ========================================================================== */

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-shortcut-badge {
  position: absolute;
  right: 8px;
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border-default);
  background-color: var(--bg-surface);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: var(--font-mono);
  pointer-events: none;
}

.search-view-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

.search-top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input-wrapper input {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 10px 14px 10px 38px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-input-wrapper input:focus {
  border-color: var(--text-link);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}

.search-input-wrapper svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

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

.search-sidebar {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.search-sidebar-title {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-default);
}

.search-nav-list {
  display: flex;
  flex-direction: column;
}

.search-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  color: var(--text-primary);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-nav-btn:hover {
  background-color: var(--bg-elevated);
}

.search-nav-btn.active {
  background-color: rgba(56, 139, 253, 0.1);
  border-left-color: var(--text-link);
  color: var(--text-link);
  font-weight: 600;
}

.search-nav-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-count-pill {
  font-size: 11px;
  background-color: var(--bg-elevated);
  padding: 2px 7px;
  border-radius: 10px;
  color: var(--text-muted);
}

.search-nav-btn.active .search-count-pill {
  background-color: var(--text-link);
  color: #ffffff;
}

.search-results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.search-results-meta strong {
  color: var(--text-primary);
}

/* Code Search Cards */
.search-code-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
}

.search-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-elevated);
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-default);
  font-size: 13px;
}

.search-code-filepath {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-link);
  text-decoration: none;
}

.search-code-filepath:hover {
  text-decoration: underline;
}

.search-code-snippet {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  background-color: var(--bg-base);
  overflow-x: auto;
}

.search-match-row {
  display: flex;
  padding: 2px 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.search-match-row:hover {
  background-color: rgba(56, 139, 253, 0.08);
}

.search-match-linenum {
  width: 50px;
  padding: 0 10px;
  text-align: right;
  color: var(--text-muted);
  user-select: none;
  flex-shrink: 0;
  border-right: 1px solid var(--border-muted);
}

.search-match-content {
  padding: 0 12px;
  white-space: pre;
  color: var(--text-primary);
  flex: 1;
}

.search-highlight {
  background-color: rgba(210, 153, 34, 0.35);
  color: #f0883e;
  border-radius: 2px;
  padding: 1px 2px;
  font-weight: 600;
}

/* Commit search results */
.search-commit-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.search-commit-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-commit-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.search-commit-title:hover {
  color: var(--text-link);
}

.search-commit-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================
   Header Search Dropdown & Scope Banner
   ========================================== */
.header-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 440px;
  max-width: 90vw;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  z-index: 1000;
  overflow: hidden;
}

.header-search-dropdown.hidden {
  display: none !important;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-muted);
  transition: background-color var(--transition-fast);
}

.search-dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown-item:hover,
.search-dropdown-item.active {
  background-color: var(--bg-elevated);
  color: var(--text-link);
}

.search-dropdown-item svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-dropdown-header {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  background-color: var(--bg-elevated);
  letter-spacing: 0.5px;
}

.search-dropdown-snippet {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* Search Scope Banner */
.search-scope-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.08) 0%, rgba(138, 92, 246, 0.08) 100%);
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 20px;
}

.search-scope-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-scope-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.search-scope-badge.global {
  background-color: rgba(138, 92, 246, 0.2);
  color: #d2a8ff;
  border: 1px solid rgba(138, 92, 246, 0.4);
}

.search-scope-badge.org {
  background-color: rgba(56, 139, 253, 0.2);
  color: #58a6ff;
  border: 1px solid rgba(56, 139, 253, 0.4);
}

.search-scope-badge.user {
  background-color: rgba(46, 160, 67, 0.2);
  color: #3fb950;
  border: 1px solid rgba(46, 160, 67, 0.4);
}

.search-qualifier-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 12px;
}

.search-qualifier-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-qualifier-chip:hover {
  background-color: var(--bg-elevated);
  border-color: var(--text-link);
  color: var(--text-link);
}

.search-context-row {
  opacity: 0.65;
  font-size: 11px;
  background-color: transparent !important;
}

/* File Finder Modal */
.file-finder-modal-content {
  width: 600px;
  max-width: 90vw;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.file-finder-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-default);
  background-color: var(--bg-elevated);
}

.file-finder-header svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.file-finder-header input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
}

.esc-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  padding: 2px 6px;
}

.file-finder-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 6px 0;
}

.file-finder-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.file-finder-item:hover, .file-finder-item.selected {
  background-color: rgba(56, 139, 253, 0.15);
  color: var(--text-link);
}

.file-finder-item svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.file-finder-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 8px 16px;
  background-color: var(--bg-elevated);
  border-top: 1px solid var(--border-default);
  font-size: 11px;
  color: var(--text-muted);
}

.file-finder-footer kbd {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 3px;
  padding: 1px 4px;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Settings & Webhooks Styles
   ========================================================================== */

.settings-container {
  width: 100%;
  margin-top: 24px;
  padding: 0;
}

.settings-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

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

.settings-sidebar {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 13px;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all var(--transition-fast);
}

.settings-nav-item:hover {
  background-color: var(--bg-elevated);
}

.settings-nav-item.active {
  background-color: rgba(56, 139, 253, 0.1);
  border-left-color: var(--text-link);
  color: var(--text-link);
  font-weight: 600;
}

/* Webhooks List */
.webhooks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.webhook-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.webhook-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.webhook-status-dot.active {
  background-color: var(--badge-open-bg);
  box-shadow: 0 0 8px rgba(46, 160, 67, 0.5);
}

.webhook-status-dot.inactive {
  background-color: var(--text-muted);
}

.webhook-url-text {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-link);
  text-decoration: none;
  word-break: break-all;
}

.webhook-url-text:hover {
  text-decoration: underline;
}

.webhook-events-list {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.webhook-event-badge {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-muted);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.webhook-delivery-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.webhook-delivery-status-badge.success {
  background-color: rgba(46, 160, 67, 0.15);
  color: var(--badge-open-bg);
}

.webhook-delivery-status-badge.failed {
  background-color: rgba(248, 81, 73, 0.15);
  color: var(--diff-del-text);
}

/* Deliveries Table */
.deliveries-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin-top: 24px;
  overflow: hidden;
}

.deliveries-header {
  padding: 12px 16px;
  background-color: var(--bg-elevated);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.delivery-item-row {
  border-bottom: 1px solid var(--border-muted);
}

.delivery-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color var(--transition-fast);
}

.delivery-summary:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.delivery-summary-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
}

.delivery-code-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.delivery-code-pill.success {
  background-color: rgba(46, 160, 67, 0.2);
  color: var(--badge-open-bg);
}

.delivery-code-pill.failed {
  background-color: rgba(248, 81, 73, 0.2);
  color: var(--diff-del-text);
}

.delivery-drawer {
  padding: 16px;
  background-color: var(--bg-base);
  border-top: 1px solid var(--border-muted);
  font-size: 12px;
}

.delivery-drawer-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.delivery-drawer-tab-btn {
  padding: 4px 10px;
  background: none;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
}

.delivery-drawer-tab-btn.active {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--text-link);
}

.delivery-code-block {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-x: auto;
  max-height: 250px;
}

/* ==========================================================================
   Commit Status Checks & PR Merge Gatekeeper
   ========================================================================== */
.pr-checks-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
}

.pr-checks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-muted);
}

.pr-checks-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pr-checks-header-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pr-checks-header-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.pr-checks-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pr-checks-list {
  background-color: var(--bg-base);
}

.pr-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-muted);
  font-size: 13px;
  transition: background-color var(--transition-fast);
}

.pr-check-row:last-child {
  border-bottom: none;
}

.pr-check-row:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.pr-check-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pr-check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.status-icon.success {
  color: var(--badge-open-bg);
}

.status-icon.failure,
.status-icon.error {
  color: var(--diff-del-text);
}

.status-icon.pending {
  color: #d29922;
}

.status-icon.none {
  color: var(--text-muted);
}

.pr-check-context {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
}

.pr-check-desc {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 8px;
}

.pr-check-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.pr-check-details-link {
  color: var(--text-link);
  text-decoration: none;
}

.pr-check-details-link:hover {
  text-decoration: underline;
}

.status-indicator-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  vertical-align: middle;
  transition: transform var(--transition-fast);
}

.status-indicator-badge:hover {
  transform: scale(1.15);
}

.status-indicator-badge.success {
  color: var(--badge-open-bg);
}

.status-indicator-badge.failure,
.status-indicator-badge.error {
  color: var(--diff-del-text);
}

.status-indicator-badge.pending {
  color: #d29922;
}

.status-indicator-badge.none {
  color: var(--text-muted);
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Branch Protection Rules View */
.branch-rules-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.branch-rule-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px;
}

.branch-rule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.branch-rule-pattern {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  background-color: var(--bg-base);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-muted);
}

.branch-rule-badges,
.branch-rule-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.branch-rule-badge,
.branch-rule-flag-pill {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background-color: rgba(56, 139, 253, 0.15);
  color: #58a6ff;
  border: 1px solid rgba(56, 139, 253, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

/* ==========================================================================
   Repository Forking & Upstream Syncing
   ========================================================================== */
.repo-fork-attribution {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.repo-fork-attribution a {
  color: var(--text-link);
  text-decoration: none;
}

.repo-fork-attribution a:hover {
  text-decoration: underline;
}

.btn-fork-group {
  display: inline-flex;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.btn-fork {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.btn-fork:hover {
  background-color: var(--bg-elevated);
}

.fork-count-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background-color: var(--bg-base);
  border: 1px solid var(--border-default);
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.fork-count-link:hover {
  color: var(--text-link);
}

.fork-sync-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 13px;
}

.fork-sync-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.fork-sync-icon {
  color: var(--text-link);
}

.fork-sync-status-text strong {
  color: var(--text-primary);
}

.btn-sync-fork {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background-color: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-sync-fork:hover {
  background-color: var(--bg-elevated);
  border-color: var(--text-link);
}

/* Forks View Grid */
.forks-container {
  max-width: 1000px;
  margin: 24px auto;
  padding: 0 16px;
}

.forks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-muted);
}

.forks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fork-item-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fork-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fork-item-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(56, 139, 253, 0.2);
  color: #58a6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.fork-item-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-link);
  text-decoration: none;
}

.fork-item-name:hover {
  text-decoration: underline;
}

.fork-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   PR Code Reviews & Inline Diff Comments
   ========================================================================== */

.diff-line-row {
  display: flex;
  align-items: stretch;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 20px;
  position: relative;
  min-height: 20px;
}

.diff-line-row:hover {
  filter: brightness(1.05);
}

.diff-gutter-col {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90px;
  min-width: 90px;
  padding: 0 4px;
  user-select: none;
  background-color: var(--bg-inset);
  color: var(--text-muted);
  border-right: 1px solid var(--border-default);
  flex-shrink: 0;
}

.diff-line-nums {
  display: flex;
  gap: 6px;
  font-size: 11px;
}

.diff-line-num {
  width: 32px;
  text-align: right;
  opacity: 0.65;
}

.diff-add-comment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: none;
  background: #1f6feb;
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.1s ease;
  line-height: 1;
  padding: 0;
}

.diff-add-comment-btn:hover {
  transform: scale(1.15);
  background: #388bfd;
}

.diff-line-row:hover .diff-add-comment-btn,
.diff-add-comment-btn.active {
  opacity: 1;
}

.diff-line-content {
  flex-grow: 1;
  padding: 0 12px;
  white-space: pre-wrap;
  word-break: break-all;
}

.diff-line-row.hunk {
  background-color: var(--diff-hunk-bg);
  color: var(--diff-hunk-text);
  font-weight: 600;
}

.diff-line-row.addition {
  background-color: var(--diff-add-bg);
  color: var(--diff-add-text);
}

.diff-line-row.deletion {
  background-color: var(--diff-del-bg);
  color: var(--diff-del-text);
}

.diff-line-row.addition .diff-gutter-col {
  background-color: rgba(46, 160, 67, 0.15);
}

.diff-line-row.deletion .diff-gutter-col {
  background-color: rgba(248, 81, 73, 0.15);
}

.inline-comment-row {
  background-color: var(--bg-default);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  padding: 10px 16px 12px 90px;
}

.inline-comment-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}

.inline-comment-card {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.inline-comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background-color: var(--bg-inset);
  font-size: 12px;
  border-bottom: 1px solid var(--border-default);
  color: var(--text-muted);
}

.inline-comment-header strong {
  color: var(--text-default);
  margin-right: 4px;
}

.inline-comment-body {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-default);
}

.inline-comment-composer {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  padding: 10px 12px;
  max-width: 820px;
}

.inline-comment-composer textarea {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--bg-inset);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-default);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 70px;
  margin-bottom: 8px;
}

.inline-comment-composer textarea:focus {
  outline: none;
  border-color: #388bfd;
  box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.3);
}

.inline-composer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.review-changes-container {
  position: relative;
  display: inline-block;
}

.review-changes-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 360px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  z-index: 100;
  padding: 16px;
}

.review-changes-popover.hidden {
  display: none;
}

.review-changes-popover h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-default);
}

.review-options-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0;
}

.review-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.review-option:hover {
  background: var(--bg-inset);
}

.review-option input[type="radio"] {
  margin-top: 3px;
  cursor: pointer;
}

.review-option-info {
  display: flex;
  flex-direction: column;
}

.review-option-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-default);
}

.review-option-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.35;
}

.timeline-review-entry {
  position: relative;
  margin-bottom: 24px;
}

.timeline-review-icon {
  position: absolute;
  left: -46px;
  top: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
  border: 2px solid var(--bg-canvas);
  z-index: 1;
}

.timeline-review-icon.approved {
  background-color: #1a3a2a;
  color: #3fb950;
  border: 2px solid var(--bg-canvas);
}

.timeline-review-icon.changes_requested {
  background-color: #3b1d1d;
  color: #f85149;
  border: 2px solid var(--bg-canvas);
}

.timeline-review-icon.commented {
  background-color: #21262d;
  color: #8b949e;
  border: 2px solid var(--bg-canvas);
}

.timeline-review-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-review-badge.approved {
  background: rgba(46, 160, 67, 0.15);
  color: #3fb950;
  border: 1px solid rgba(46, 160, 67, 0.3);
}

.timeline-review-badge.changes_requested {
  background: rgba(248, 81, 73, 0.15);
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.3);
}

.timeline-review-badge.commented {
  background: rgba(139, 148, 158, 0.15);
  color: #8b949e;
  border: 1px solid rgba(139, 148, 158, 0.3);
}

.pr-review-status-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pr-review-status-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   User Navigation, Dropdown & Auth UI
   ========================================== */
.user-menu-wrapper {
  position: relative;
  display: inline-block;
}

.user-menu-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.user-menu-btn:hover {
  border-color: var(--border-muted);
}

.user-menu-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent-gradient, linear-gradient(135deg, #1f6feb, #238636));
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  padding: 8px 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.user-dropdown-menu.hidden {
  display: none;
}

.user-dropdown-header {
  padding: 8px 16px 12px;
  border-bottom: 1px solid var(--border-default);
  font-size: 13px;
}

.user-dropdown-header .signed-in-label {
  color: var(--text-muted);
  font-size: 12px;
}

.user-dropdown-header .signed-in-user {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.user-dropdown-header .user-role-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: rgba(56, 139, 253, 0.2);
  color: #58a6ff;
  border: 1px solid rgba(56, 139, 253, 0.3);
  text-transform: uppercase;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-dropdown-item:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.user-dropdown-item.danger:hover {
  background-color: rgba(248, 81, 73, 0.15);
  color: #f85149;
}

.user-dropdown-divider {
  height: 1px;
  background-color: var(--border-default);
  margin: 6px 0;
}

.btn-auth-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-md);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-auth-trigger:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-muted);
}

/* Auth Modal */
.auth-modal-content {
  max-width: 440px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.auth-tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: #f78166;
  font-weight: 600;
}

.demo-users-picker {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-default);
}

.demo-users-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-users-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.demo-user-chip:hover {
  background-color: var(--bg-hover);
  border-color: #58a6ff;
  transform: translateY(-1px);
}

.demo-user-chip-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1f6feb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
}

/* ==========================================
   User Settings Pages (Profile, PATs, Keys)
   ========================================== */
.user-settings-wrapper {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 24px;
}

.user-settings-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .user-settings-layout {
    grid-template-columns: 1fr;
  }
}

.user-settings-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 8px;
}

.user-settings-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.user-settings-nav-item:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.user-settings-nav-item.active {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 600;
}

.user-settings-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.settings-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 24px;
}

.settings-section-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.settings-section-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Tokens Management */
.token-new-banner {
  background: rgba(46, 160, 67, 0.12);
  border: 1px solid rgba(46, 160, 67, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.token-new-banner-title {
  font-size: 14px;
  font-weight: 600;
  color: #3fb950;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.token-new-banner-secret {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-inset);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #58a6ff;
  margin-top: 10px;
  word-break: break-all;
}

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

.token-list-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-default);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.token-list-table td {
  padding: 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-muted);
  vertical-align: middle;
}

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

.token-name {
  font-weight: 600;
  color: var(--text-primary);
}

.token-prefix {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.scope-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  background-color: rgba(56, 139, 253, 0.15);
  color: #58a6ff;
  border: 1px solid rgba(56, 139, 253, 0.25);
  margin-right: 4px;
  margin-bottom: 4px;
}

.scope-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.scope-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  background-color: var(--bg-inset);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.scope-checkbox-item input[type="checkbox"] {
  margin-top: 3px;
}

.scope-checkbox-text strong {
  display: block;
  font-size: 13px;
  color: var(--text-primary);
}

.scope-checkbox-text p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Collaborators Table */
.collaborator-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-muted);
}

.collaborator-item:last-child {
  border-bottom: none;
}

.collaborator-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.collaborator-role-select {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-inset);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 13px;
}

/* Private Repo Lock Badge */
.repo-badge.private {
  background-color: rgba(248, 81, 73, 0.15);
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.35);
  display: inline-flex;
  align-items: center;
}

.repo-visibility-card {
  padding: 16px;
  background: var(--bg-inset);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

/* ==========================================
   Public Profile & Contribution Calendar
   ========================================== */

.profile-page-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
}

.profile-page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: flex-start;
}

@media (max-width: 860px) {
  .profile-page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Profile Left Sidebar */
.profile-sidebar {
  display: flex;
  flex-direction: column;
}

.profile-avatar-large {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

@media (max-width: 860px) {
  .profile-avatar-large {
    width: 120px;
    height: 120px;
    font-size: 40px;
  }
}

.profile-names {
  margin-bottom: 16px;
}

.profile-name-full {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}

.profile-name-handle {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.25;
}

.profile-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  word-break: break-word;
}

.profile-edit-btn {
  width: 100%;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
  transition: all var(--transition-fast);
}

.profile-edit-btn:hover {
  background-color: var(--bg-elevated);
  border-color: var(--border-muted);
}

.profile-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-muted);
  padding-top: 16px;
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  word-break: break-word;
}

.profile-meta-item svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.profile-meta-item a {
  color: var(--text-link);
  text-decoration: none;
}

.profile-meta-item a:hover {
  text-decoration: underline;
}

/* Profile Content Tabs */
.profile-content-area {
  min-width: 0;
}

.profile-tabs-header {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 24px;
}

.profile-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.profile-tab-btn:hover {
  color: var(--text-primary);
  border-bottom-color: var(--border-muted);
}

.profile-tab-btn.active {
  color: var(--text-primary);
  font-weight: 600;
  border-bottom-color: #f78166;
}

.profile-tab-counter {
  padding: 2px 7px;
  border-radius: 12px;
  background-color: var(--bg-elevated);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Pinned Repositories Grid */
.profile-pinned-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.profile-repo-card {
  padding: 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition-fast);
}

.profile-repo-card:hover {
  border-color: var(--border-muted);
}

.profile-repo-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.profile-repo-title a {
  color: var(--text-link);
  text-decoration: none;
}

.profile-repo-title a:hover {
  text-decoration: underline;
}

.profile-repo-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
  flex: 1;
}

.profile-repo-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* 52-Week Contribution Calendar Card */
.contribution-calendar-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 32px;
}

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

.contribution-calendar-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.contribution-graph-scroll {
  overflow-x: auto;
  padding-bottom: 8px;
}

.contribution-calendar-matrix {
  display: inline-block;
  min-width: 720px;
}

.contribution-months-row {
  display: flex;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
  padding-left: 28px;
}

.contribution-month-label {
  width: calc(100% / 12);
  text-align: left;
}

.contribution-body-flex {
  display: flex;
  gap: 6px;
}

.contribution-days-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 9px;
  color: var(--text-muted);
  height: 98px; /* 7 * 11px + gaps */
  width: 22px;
  line-height: 11px;
}

.contribution-weeks-grid {
  display: grid;
  grid-template-columns: repeat(53, 11px);
  gap: 3px;
}

.contribution-week-col {
  display: grid;
  grid-template-rows: repeat(7, 11px);
  gap: 3px;
}

.contribution-cell {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background-color: #161b22;
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
  transition: transform 0.1s ease;
}

.contribution-cell:hover {
  transform: scale(1.3);
  z-index: 10;
  border-color: rgba(255, 255, 255, 0.4);
}

.contribution-cell[data-level="0"] { background-color: #161b22; }
.contribution-cell[data-level="1"] { background-color: #0e4429; }
.contribution-cell[data-level="2"] { background-color: #006d32; }
.contribution-cell[data-level="3"] { background-color: #26a641; }
.contribution-cell[data-level="4"] { background-color: #39d353; }

/* Calendar Footer & Legend */
.contribution-calendar-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-muted);
}

.contribution-legend {
  display: flex;
  align-items: center;
  gap: 4px;
}

.contribution-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* Activity Stream */
.profile-activity-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.profile-activity-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  color: var(--text-muted);
  flex-shrink: 0;
}

.profile-activity-details {
  flex: 1;
  min-width: 0;
}

.profile-activity-details a {
  color: var(--text-link);
  text-decoration: none;
  font-weight: 500;
}

.profile-activity-details a:hover {
  text-decoration: underline;
}

/* GitHub-Parity Contribution Activity Timeline & Year Navigation */
.profile-contributions-container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 14px;
}

.profile-contributions-main {
  flex: 1;
  min-width: 0;
}

.profile-years-sidebar {
  width: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 80px;
  flex-shrink: 0;
}

.profile-year-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm, 6px);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted, #8b949e);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.profile-year-btn:hover {
  color: var(--text-primary, #c9d1d9);
  background: var(--bg-hover, rgba(177, 186, 196, 0.12));
}

.profile-year-btn.active {
  background: #1f6feb;
  color: #ffffff;
  font-weight: 600;
}

.contribution-activity-section {
  margin-top: 24px;
}

.contribution-activity-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary, #c9d1d9);
}

.contribution-timeline {
  position: relative;
  padding-left: 32px;
  margin-top: 16px;
}

.contribution-timeline::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 14px;
  bottom: 0;
  width: 2px;
  background: var(--border-default, #30363d);
  z-index: 1;
}

.timeline-month-block {
  margin-bottom: 28px;
  position: relative;
}

.timeline-month-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: -32px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.timeline-month-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary, #c9d1d9);
  white-space: nowrap;
}

.timeline-month-year {
  font-weight: 400;
  color: var(--text-muted, #8b949e);
  margin-left: 4px;
}

.timeline-month-rule {
  flex: 1;
  height: 1px;
  background: var(--border-default, #30363d);
}

.timeline-item-group {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item-icon {
  position: absolute;
  left: -32px;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-canvas, #0d1117);
  border: 2px solid var(--border-default, #30363d);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--text-muted, #8b949e);
}

.timeline-item-content {
  padding-left: 8px;
}

.timeline-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #c9d1d9);
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
}

.timeline-group-header:hover {
  color: var(--text-link, #58a6ff);
}

.timeline-group-toggle {
  color: var(--text-muted, #8b949e);
  transition: transform 0.2s ease;
}

.timeline-item-group.collapsed .timeline-group-toggle {
  transform: rotate(-90deg);
}

.timeline-item-group.collapsed .timeline-repos-list {
  display: none;
}

.timeline-repos-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 4px;
}

.timeline-repo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  padding: 3px 0;
}

.timeline-repo-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.timeline-repo-link {
  color: var(--text-link, #58a6ff);
  text-decoration: none;
  font-weight: 500;
}

.timeline-repo-link:hover {
  text-decoration: underline;
}

.timeline-commit-count {
  color: var(--text-muted, #8b949e);
  font-size: 12px;
  white-space: nowrap;
  text-decoration: none;
}

.timeline-commit-count:hover {
  color: var(--text-link, #58a6ff);
  text-decoration: underline;
}

.timeline-bar-track {
  width: 140px;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.timeline-bar-fill {
  height: 100%;
  background: #2ea043;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.timeline-created-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted, #8b949e);
  white-space: nowrap;
}

.timeline-lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.contribution-show-more-btn {
  width: 100%;
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--border-default, #30363d);
  border-radius: var(--radius-sm, 6px);
  color: var(--text-link, #58a6ff);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 16px;
  margin-bottom: 12px;
  text-align: center;
}

.contribution-show-more-btn:hover {
  background: var(--bg-hover, rgba(177, 186, 196, 0.12));
  border-color: var(--text-muted, #8b949e);
}

.contribution-guide-note {
  font-size: 12px;
  color: var(--text-muted, #8b949e);
  margin-top: 8px;
  margin-bottom: 24px;
}

.contribution-guide-note a {
  color: var(--text-link, #58a6ff);
  text-decoration: none;
}

.contribution-guide-note a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .profile-contributions-container {
    flex-direction: column;
  }

  .profile-years-sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    position: static;
    padding-bottom: 8px;
  }
}

/* Profile Edit Form & Password Card in Settings */
.profile-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .profile-edit-grid {
    grid-template-columns: 1fr;
  }
}

.profile-edit-full {
  grid-column: 1 / -1;
}

.password-change-card {
  margin-top: 32px;
  padding: 20px;
  background: var(--bg-inset);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.password-change-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.password-change-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ==========================================
 * Tier 1: Notifications & Activity Feed Styles
 * ========================================== */
.header-notifications-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  transition: all var(--transition-fast);
  margin-right: 8px;
}

.header-notifications-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
  background: var(--bg-elevated);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 8px;
  text-align: center;
  padding: 0 4px;
  box-shadow: 0 0 0 2px var(--bg-canvas);
}

.notifications-page-wrapper {
  max-width: 980px;
  margin: 32px auto;
  padding: 0 16px;
}

.notifications-header-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-default);
}

.notifications-header-box h2 {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notifications-filter-nav {
  display: flex;
  gap: 8px;
}

.notifications-filter-btn {
  background: none;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  padding: 6px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.notifications-filter-btn.active, .notifications-filter-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.notifications-list {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-default);
  transition: background var(--transition-fast);
  gap: 12px;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.unread {
  background-color: rgba(31, 111, 235, 0.08);
  border-left: 3px solid var(--accent-primary);
}

.notification-item:hover {
  background-color: var(--bg-elevated);
}

.notification-item-left {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex: 1;
}

.notification-icon-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-inset);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.notification-icon-pill.mention { color: #58a6ff; }
.notification-icon-pill.review_submitted { color: #3fb950; }
.notification-icon-pill.assigned { color: #d29922; }
.notification-icon-pill.comment { color: #bc8cff; }
.notification-icon-pill.merged { color: #a371f7; }

.notification-content-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-title-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.notification-title-link:hover {
  color: var(--text-link);
  text-decoration: underline;
}

.notification-body-snippet {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.notification-meta-bar {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
  align-items: center;
}

.notification-mark-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.notification-mark-btn:hover {
  color: var(--text-primary);
  background: var(--bg-inset);
}

/* ==========================================
 * Global Dashboard Feed Styles
 * ========================================== */
.dashboard-feed-box {
  margin-top: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.dashboard-feed-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.activity-feed-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-event-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-muted);
}

.feed-event-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feed-event-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

.feed-event-body {
  flex: 1;
  color: var(--text-primary);
  line-height: 1.4;
}

.feed-event-actor {
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.feed-event-actor:hover {
  text-decoration: underline;
}

.feed-event-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================
 * Native File & Asset Upload Styles
 * ========================================== */
.avatar-upload-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.avatar-upload-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-default);
  background: var(--bg-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}

.avatar-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-dropzone-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

.dropzone-hint-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-inset);
  border: 1px solid var(--border-default);
  border-top: none;
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

.dropzone-upload-btn-label {
  color: var(--text-link);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}

.dropzone-upload-btn-label:hover {
  text-decoration: underline;
}

.textarea-drop-active {
  border-color: var(--accent-primary) !important;
  background-color: rgba(31, 111, 235, 0.05) !important;
}

/* ==========================================
 * Labels & Milestones System Styles
 * ========================================== */
.issue-label-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.issue-milestone-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-inset);
  border: 1px solid var(--border-default);
  font-size: 11px;
  color: var(--text-secondary);
}

.milestones-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

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

.milestone-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.milestone-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.milestone-title-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.milestone-title-link:hover {
  color: var(--text-link);
}

.milestone-due-text {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.milestone-desc-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.milestone-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--bg-inset);
  border-radius: 4px;
  overflow: hidden;
  margin: 4px 0;
}

.milestone-progress-fill {
  height: 100%;
  background-color: var(--accent-primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.milestone-counts-row {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

.labels-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.labels-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.label-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-default);
}

.label-row-item:last-child {
  border-bottom: none;
}

.filter-dropdown-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

/* Issue & PR Detail Layout & Sidebar */
.issue-detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .issue-detail-layout {
    grid-template-columns: 1fr;
  }
}

.issue-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 1px solid var(--border-default);
  padding-left: 20px;
}

@media (max-width: 900px) {
  .issue-sidebar {
    border-left: none;
    border-top: 1px solid var(--border-default);
    padding-left: 0;
    padding-top: 20px;
  }
}

.issue-sidebar-item {
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 14px;
}

.issue-sidebar-item:last-child {
  border-bottom: none;
}

.issue-sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: capitalize;
}

.issue-sidebar-action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
}

.issue-sidebar-action-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.issue-sidebar-content {
  font-size: 13px;
  color: var(--text-primary);
}

/* Label Editor Box */
.label-editor-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.label-preview-container {
  margin-bottom: 16px;
}

.label-color-preset {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  display: inline-block;
  transition: transform 0.15s ease;
}

.label-color-preset:hover {
  transform: scale(1.15);
}

/* Milestone Editor Card */
.milestone-editor-card {
  max-width: 720px;
  margin: 0 auto 30px auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 24px;
}

/* Star & Watch Button Groups */
.btn-watch-group,
.btn-star-group {
  display: inline-flex;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.btn-watch,
.btn-star {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.btn-watch:hover,
.btn-star:hover {
  background-color: var(--bg-elevated);
}

.btn-star.starred svg {
  fill: #e3b341;
}

.btn-watch.active {
  background-color: var(--bg-elevated);
}

.watch-count-btn,
.star-count-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background-color: var(--bg-base);
  border: 1px solid var(--border-default);
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.watch-count-btn:hover,
.star-count-btn:hover {
  color: var(--text-link);
}

/* Repository Insights & Analytics */
.insights-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

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

.insights-sidebar {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.insights-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.insights-nav-item:hover {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
}

.insights-nav-item.active {
  background-color: rgba(56, 139, 253, 0.1);
  color: var(--text-link);
  font-weight: 600;
}

.insights-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.insights-card-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-default);
  background-color: var(--bg-elevated);
}

.insights-card-header h3,
.insights-card-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.contributor-rank-row {
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.contributor-rank-row:hover {
  border-color: var(--text-muted);
}

/* ==========================================
   GitCore Actions Lite & Clone Protocol Tabs
   ========================================== */
.actions-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

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

.actions-sidebar {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.actions-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.actions-nav-item:hover {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
}

.actions-nav-item.active {
  background-color: rgba(56, 139, 253, 0.1);
  color: var(--text-link);
  font-weight: 600;
}

.actions-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.actions-run-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.actions-run-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-muted);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--transition-fast);
}

.actions-run-row:last-child {
  border-bottom: none;
}

.actions-run-row:hover {
  background-color: var(--bg-elevated);
}

.actions-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.actions-status-badge.success {
  background-color: rgba(46, 160, 67, 0.15);
  color: #3fb950;
  border: 1px solid rgba(46, 160, 67, 0.4);
}

.actions-status-badge.failure {
  background-color: rgba(248, 81, 73, 0.15);
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.4);
}

.actions-status-badge.in_progress,
.actions-status-badge.queued {
  background-color: rgba(210, 153, 34, 0.15);
  color: #d29922;
  border: 1px solid rgba(210, 153, 34, 0.4);
}

.actions-status-badge.cancelled {
  background-color: rgba(139, 148, 158, 0.15);
  color: #8b949e;
  border: 1px solid rgba(139, 148, 158, 0.4);
}

.actions-terminal {
  background-color: #0d1117;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
}

.actions-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background-color: #161b22;
  border-bottom: 1px solid #30363d;
  cursor: pointer;
  user-select: none;
}

.actions-step-header:hover {
  background-color: #1c2128;
}

.actions-step-body {
  padding: 14px 16px;
  color: #c9d1d9;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.5;
  max-height: 400px;
  overflow-y: auto;
}

/* Clone Protocol Switcher Tabs */
.clone-protocol-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 6px;
}

.clone-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.clone-tab-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-elevated);
}

.clone-tab-btn.active {
  color: var(--text-primary);
  background-color: var(--bg-elevated);
}

/* ==========================================================================
   Reactions
   ========================================================================== */

.reactions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
}

.reaction-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 13px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.reaction-badge:hover {
  border-color: var(--accent-blue);
  background: rgba(88, 166, 255, 0.1);
}

.reaction-badge.reacted {
  border-color: var(--accent-blue);
  background: rgba(88, 166, 255, 0.15);
}

.reaction-badge .reaction-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.reaction-badge.reacted .reaction-count {
  color: var(--accent-blue);
}

.reaction-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: var(--radius-full);
  border: 1px dashed var(--border-default);
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.reaction-add-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(88, 166, 255, 0.08);
}

.reaction-picker {
  position: absolute;
  z-index: 100;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex;
  gap: 2px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.15s ease;
}

.reaction-picker button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 18px;
  transition: all var(--transition-fast);
}

.reaction-picker button:hover {
  background: var(--bg-hover);
  transform: scale(1.2);
}

/* ==========================================================================
   Comment Actions (Edit / Delete)
   ========================================================================== */

.comment-actions-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.comment-action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.comment-action-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.comment-action-btn.danger:hover {
  color: var(--diff-del-text);
  background: rgba(248, 81, 73, 0.1);
}

.comment-edit-form {
  padding: 12px;
}

.comment-edit-form textarea {
  width: 100%;
  min-height: 120px;
  background: var(--bg-canvas);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
}

.comment-edit-form textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}

.comment-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

/* ==========================================================================
   Web File Editor
   ========================================================================== */

.editor-view {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 32px;
}

.editor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-default);
  flex-wrap: wrap;
}

.editor-header .editor-breadcrumbs {
  font-size: 16px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 200px;
}

.editor-header .editor-breadcrumbs a {
  color: var(--text-link);
  text-decoration: none;
}

.editor-header .editor-breadcrumbs a:hover {
  text-decoration: underline;
}

.editor-header .editor-breadcrumbs .separator {
  color: var(--text-muted);
  margin: 0 2px;
}

.editor-path-input {
  flex: 1;
  min-width: 200px;
  background: var(--bg-canvas);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  font-size: 14px;
  font-family: var(--font-mono);
}

.editor-path-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}

.editor-container {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}

.editor-tab-bar {
  display: flex;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  padding: 0 12px;
}

.editor-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.editor-tab-btn:hover {
  color: var(--text-primary);
}

.editor-tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-blue);
}

.editor-textarea {
  width: 100%;
  min-height: 400px;
  background: var(--bg-canvas);
  color: var(--text-primary);
  border: none;
  padding: 16px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
  tab-size: 2;
}

.editor-textarea:focus {
  outline: none;
}

.editor-preview {
  padding: 16px 24px;
  min-height: 400px;
  background: var(--bg-canvas);
}

.editor-commit-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}

.editor-commit-box h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.editor-commit-msg-input {
  width: 100%;
  background: var(--bg-canvas);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 14px;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.editor-commit-msg-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}

.editor-commit-desc {
  width: 100%;
  min-height: 60px;
  background: var(--bg-canvas);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.editor-commit-desc:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.editor-commit-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.editor-commit-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.editor-commit-option:hover {
  background: var(--bg-elevated);
}

.editor-commit-option.selected {
  border-color: var(--accent-blue);
  background: rgba(88, 166, 255, 0.08);
}

.editor-commit-option input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--accent-blue);
}

.editor-commit-option label {
  cursor: pointer;
}

.editor-commit-option .option-title {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 14px;
}

.editor-commit-option .option-desc {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}

.editor-new-branch-input {
  width: 100%;
  background: var(--bg-canvas);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  font-size: 13px;
  font-family: var(--font-mono);
  margin-top: 6px;
  box-sizing: border-box;
}

.editor-new-branch-input:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Delete file confirmation */
.delete-confirm-box {
  background: rgba(248, 81, 73, 0.08);
  border: 1px solid rgba(248, 81, 73, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.delete-confirm-box h3 {
  margin: 0 0 8px;
  color: var(--diff-del-text);
  font-size: 15px;
}

.delete-confirm-box p {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0 0 12px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Organizations & Teams Styles
   ========================================================================== */

.org-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

.org-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.org-header-left {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.org-avatar-large {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.org-title-area h1 {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.org-slug-badge {
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.org-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 12px;
  max-width: 650px;
  line-height: 1.5;
}

.org-meta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.org-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.org-meta-item a {
  color: var(--text-secondary);
  text-decoration: none;
}

.org-meta-item a:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

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

/* Org Navigation Tabs */
.org-nav-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 24px;
}

.org-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.org-tab-btn:hover {
  color: var(--text-primary);
  border-bottom-color: var(--border-default);
}

.org-tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-orange, #f78166);
  font-weight: 600;
}

.org-tab-count {
  background: rgba(110, 118, 129, 0.2);
  color: var(--text-primary);
  padding: 1px 7px;
  border-radius: 12px;
  font-size: 12px;
}

/* Org Repositories Tab */
.org-repos-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.org-search-input {
  background: var(--bg-canvas);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-primary);
  min-width: 280px;
}

.org-search-input:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.org-repo-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
}

.org-repo-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-muted, rgba(255,255,255,0.06));
}

.org-repo-item:last-child {
  border-bottom: none;
}

.org-repo-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.org-repo-title a {
  color: var(--accent-blue);
  text-decoration: none;
}

.org-repo-title a:hover {
  text-decoration: underline;
}

.org-repo-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

/* People / Members List */
.org-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.org-member-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.org-member-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.org-member-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.org-member-details .member-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
}

.org-member-details .member-name:hover {
  color: var(--accent-blue);
}

.org-member-details .member-username {
  font-size: 12px;
  color: var(--text-muted);
}

.org-role-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.org-role-badge.owner {
  background: rgba(163, 113, 247, 0.15);
  color: #a371f7;
  border: 1px solid rgba(163, 113, 247, 0.4);
}

.org-role-badge.member {
  background: rgba(110, 118, 129, 0.15);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}

.org-role-badge.admin {
  background: rgba(248, 81, 73, 0.15);
  color: var(--diff-del-text);
  border: 1px solid rgba(248, 81, 73, 0.4);
}

.org-role-badge.write {
  background: rgba(88, 166, 255, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(88, 166, 255, 0.4);
}

.org-role-badge.read {
  background: rgba(63, 185, 80, 0.15);
  color: #3fb950;
  border: 1px solid rgba(63, 185, 80, 0.4);
}

/* Teams Grid & Cards */
.org-teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.org-team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition-fast);
}

.org-team-card:hover {
  border-color: var(--accent-blue);
}

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

.team-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.team-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 16px;
  line-height: 1.4;
}

.team-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-muted, rgba(255,255,255,0.06));
  padding-top: 12px;
}

.team-card-stats {
  display: flex;
  gap: 12px;
}

/* Team Detail Drawer / Modal */
.team-detail-pane {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 24px;
}

.team-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.team-members-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.team-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 13px;
}

.team-member-chip .remove-chip-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}

.team-member-chip .remove-chip-btn:hover {
  color: var(--diff-del-text);
}

.team-repos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.team-repos-table th, .team-repos-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-default);
}

.team-repos-table th {
  color: var(--text-muted);
  font-weight: 500;
}

/* Settings Form */
.org-settings-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 680px;
  margin-bottom: 24px;
}

.org-settings-box h3 {
  margin: 0 0 16px;
  font-size: 18px;
  color: var(--text-primary);
}

.org-danger-zone {
  border-color: rgba(248, 81, 73, 0.4);
  background: rgba(248, 81, 73, 0.04);
}

.org-danger-zone h3 {
  color: var(--diff-del-text);
}

/* New Organization View */
.new-org-wrapper {
  max-width: 600px;
  margin: 40px auto;
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.new-org-wrapper h1 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--text-primary);
}

.new-org-wrapper p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 24px;
}

/* ==========================================
   GitHub Discussions Styles
   ========================================== */
.discussions-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

.discussions-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.discussions-sidebar {
  width: 240px;
  flex-shrink: 0;
}

.discussions-sidebar-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.discussion-category-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}

.discussion-category-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.discussion-category-item.active {
  background: rgba(56, 139, 253, 0.12);
  color: var(--accent-blue);
  font-weight: 600;
}

.discussion-category-item .category-emoji {
  font-size: 16px;
  line-height: 1;
}

.discussions-main {
  flex: 1;
  min-width: 0;
}

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

.discussions-filter-bar {
  display: flex;
  gap: 12px;
  flex: 1;
  max-width: 600px;
}

.discussions-list-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.discussions-list-header {
  padding: 12px 16px;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.discussion-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border-muted);
  transition: background 0.15s ease;
}

.discussion-card:last-child {
  border-bottom: none;
}

.discussion-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

.discussion-upvote-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 8px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.discussion-upvote-box:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(56, 139, 253, 0.08);
}

.discussion-upvote-box.upvoted {
  background: rgba(56, 139, 253, 0.15);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  font-weight: 600;
}

.discussion-upvote-box .upvote-arrow {
  font-size: 13px;
  line-height: 1;
}

.discussion-upvote-box .upvote-count {
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}

.discussion-card-content {
  flex: 1;
  min-width: 0;
}

.discussion-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.3;
}

.discussion-card-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.discussion-card-title a:hover {
  color: var(--accent-blue);
}

.discussion-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.discussion-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-default);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.discussion-answered-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(46, 160, 67, 0.15);
  border: 1px solid rgba(46, 160, 67, 0.4);
  color: #3fb950;
  font-size: 12px;
  font-weight: 600;
}

/* Discussion Detail View */
.discussion-detail-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 24px;
}

.discussion-detail-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 10px;
  line-height: 1.25;
}

.discussion-answered-banner {
  background: rgba(46, 160, 67, 0.08);
  border: 1px solid rgba(46, 160, 67, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.discussion-answered-banner .banner-icon {
  color: #3fb950;
  flex-shrink: 0;
  margin-top: 2px;
}

.discussion-answered-banner .banner-content {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
}

.comment-answer-highlight {
  border: 2px solid rgba(46, 160, 67, 0.5) !important;
  background: rgba(46, 160, 67, 0.03);
}

.comment-answer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(46, 160, 67, 0.2);
  color: #3fb950;
  border: 1px solid rgba(46, 160, 67, 0.4);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

.discussion-replies-list {
  margin-left: 48px;
  border-left: 2px solid var(--border-muted);
  padding-left: 16px;
  margin-top: 8px;
}

.new-discussion-category-card {
  padding: 14px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.new-discussion-category-card:hover {
  border-color: var(--accent-blue);
  background: rgba(56, 139, 253, 0.05);
}

.new-discussion-category-card.selected {
  border-color: var(--accent-blue);
  background: rgba(56, 139, 253, 0.1);
  box-shadow: 0 0 0 1px var(--accent-blue);
}

/* ==========================================================================
   Wiki System Styles
   ========================================================================== */

.wiki-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px 48px;
}

.wiki-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-default);
  flex-wrap: wrap;
  gap: 12px;
}

.wiki-page-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wiki-page-heading h1 {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.wiki-special-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(139, 148, 158, 0.15);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
}

.wiki-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wiki-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

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

.wiki-main-column {
  min-width: 0;
}

.wiki-reader-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.wiki-meta-bar {
  padding: 12px 20px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 8px;
}

.wiki-meta-bar .author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wiki-meta-bar .commit-note {
  font-style: italic;
  color: var(--text-muted);
}

.wiki-body-content {
  padding: 28px;
  line-height: 1.6;
}

.wiki-sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wiki-sidebar-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.wiki-sidebar-box-header {
  padding: 10px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-default);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wiki-sidebar-box-body {
  padding: 14px 16px;
  font-size: 13px;
}

.wiki-sidebar-box-body p:last-child {
  margin-bottom: 0;
}

.wiki-sidebar-box-body ul {
  padding-left: 18px;
  margin: 6px 0;
}

.wiki-pages-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wiki-pages-list-item {
  border-bottom: 1px solid var(--border-muted);
}

.wiki-pages-list-item:last-child {
  border-bottom: none;
}

.wiki-pages-list-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  transition: background 0.15s ease;
}

.wiki-pages-list-item a:hover {
  background: var(--bg-subtle);
  color: var(--accent-blue);
}

.wiki-pages-list-item.active a {
  background: rgba(56, 139, 253, 0.1);
  color: var(--accent-blue);
  font-weight: 600;
  border-left: 3px solid var(--accent-blue);
}

.wiki-pages-list-item .item-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-footer-panel {
  margin-top: 24px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.wiki-footer-panel .footer-label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* Wiki Editor */
.wiki-editor-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 24px;
}

.wiki-editor-slug-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: -8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.wiki-editor-nav-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 14px;
}

.wiki-editor-nav-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  cursor: pointer;
  margin-bottom: -1px;
}

.wiki-editor-nav-tab.active {
  color: var(--text-primary);
  background: var(--bg-canvas);
  border-color: var(--border-default);
  border-bottom: 1px solid var(--bg-canvas);
}

.wiki-preview-box {
  min-height: 280px;
  padding: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow-y: auto;
  line-height: 1.6;
}

/* Wiki History */
.wiki-history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 13px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.wiki-history-table th {
  background: var(--bg-subtle);
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-default);
}

.wiki-history-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-muted);
  vertical-align: middle;
}

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

.wiki-history-table .rev-id-code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(139, 148, 158, 0.15);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--accent-blue);
}

.wiki-empty-state {
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-canvas);
}

.wiki-empty-state svg {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.wiki-empty-state h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.wiki-empty-state p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 20px;
}

/* ==========================================
   Issue & Pull Request Templates Styling
   ========================================== */

.template-chooser-container {
  max-width: 860px;
  margin: 24px auto;
  padding: 0 16px;
}

.template-chooser-header {
  margin-bottom: 20px;
}

.template-chooser-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.template-chooser-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.template-cards-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
}

.template-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-default);
  transition: background-color 0.15s ease;
  gap: 16px;
}

.template-card-item:last-child {
  border-bottom: none;
}

.template-card-item:hover {
  background-color: var(--bg-inset);
}

.template-card-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

.template-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-default);
  flex-shrink: 0;
}

.template-card-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.template-card-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.template-labels-preview {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.template-label-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(31, 111, 235, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(31, 111, 235, 0.25);
}

.template-blank-divider {
  margin: 24px 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.template-blank-divider::before,
.template-blank-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-default);
}

.template-blank-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-lg);
}

.template-banner-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: rgba(56, 139, 253, 0.08);
  border: 1px solid rgba(56, 139, 253, 0.25);
  font-size: 13px;
  color: var(--text-primary);
}

.template-banner-tip span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pr-template-select-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-inset);
  border: 1px solid var(--border-default);
  border-bottom: none;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-secondary);
}

.pr-template-select-bar select {
  padding: 3px 8px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
}

.template-applied-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 12px;
  background: rgba(35, 134, 54, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(35, 134, 54, 0.3);
  font-weight: 500;
}

/* Repository Transfer Styles */
.repo-transfer-card {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(248, 81, 73, 0.2);
  transition: background-color var(--transition-fast);
}

.transfer-warning-banner {
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.4);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ==========================================
   Merge Queue Styles
   ========================================== */

.merge-queue-banner {
  border-top: 1px solid var(--border-default);
  padding: 16px;
  background: rgba(137, 87, 229, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.merge-queue-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.merge-queue-position-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(137, 87, 229, 0.2);
  color: #a371f7;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(137, 87, 229, 0.4);
}

.merge-queue-banner-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.merge-queue-banner-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.merge-queue-banner-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.merge-queue-state-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: capitalize;
}

.merge-queue-state-pill.queued {
  background: rgba(137, 87, 229, 0.2);
  color: #a371f7;
  border: 1px solid rgba(137, 87, 229, 0.3);
}

.merge-queue-state-pill.testing {
  background: rgba(88, 166, 255, 0.2);
  color: #58a6ff;
  border: 1px solid rgba(88, 166, 255, 0.3);
}

.merge-queue-state-pill.merging {
  background: rgba(210, 153, 34, 0.2);
  color: #d29922;
  border: 1px solid rgba(210, 153, 34, 0.3);
}

.merge-queue-state-pill.merged {
  background: rgba(46, 160, 67, 0.2);
  color: #3fb950;
  border: 1px solid rgba(46, 160, 67, 0.3);
}

.merge-queue-state-pill.failed {
  background: rgba(248, 81, 73, 0.2);
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.3);
}

.merge-queue-state-pill.cancelled {
  background: rgba(110, 118, 129, 0.2);
  color: #8b949e;
  border: 1px solid rgba(110, 118, 129, 0.3);
}

/* Merge Queue Dashboard */
.mq-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

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

.mq-header-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mq-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

.mq-stat-val {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.mq-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow: hidden;
}

.mq-card-header {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 14px;
}

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

.mq-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-muted);
  background: rgba(255, 255, 255, 0.01);
}

.mq-table td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-muted);
  vertical-align: middle;
}

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

.mq-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.mq-pos-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(137, 87, 229, 0.15);
  color: #a371f7;
  font-weight: 600;
  font-size: 12px;
}

.mq-branch-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.mq-empty-state {
  padding: 48px 16px;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ==========================================
   Code Owners Component Styles
   ========================================== */

.pr-codeowners-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  margin-top: 16px;
  overflow: hidden;
}

.pr-codeowners-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-subtle, rgba(255, 255, 255, 0.02));
  border-bottom: 1px solid var(--border-default);
}

.pr-codeowners-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}

.pr-codeowners-title svg {
  color: #79c0ff;
}

.codeowners-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}

.codeowners-status-badge.satisfied {
  background: rgba(46, 160, 67, 0.15);
  color: #3fb950;
  border: 1px solid rgba(46, 160, 67, 0.3);
}

.codeowners-status-badge.pending {
  background: rgba(210, 153, 34, 0.15);
  color: #d29922;
  border: 1px solid rgba(210, 153, 34, 0.3);
}

.pr-codeowners-body {
  padding: 12px 16px;
}

.pr-codeowners-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pr-codeowner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-muted);
  border-radius: 6px;
}

.pr-codeowner-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pr-codeowner-avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border-default);
}

.pr-codeowner-handle {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}

.pr-codeowner-type-tag {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pr-codeowner-files-count {
  font-size: 12px;
  color: var(--text-muted);
}

.pr-codeowner-review-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
}

.pr-codeowner-review-pill.approved {
  background: rgba(46, 160, 67, 0.15);
  color: #3fb950;
  border: 1px solid rgba(46, 160, 67, 0.3);
}

.pr-codeowner-review-pill.pending {
  background: rgba(110, 118, 129, 0.15);
  color: var(--text-muted);
  border: 1px solid var(--border-muted);
}

.pr-codeowner-review-pill.requested {
  background: rgba(210, 153, 34, 0.15);
  color: #d29922;
  border: 1px solid rgba(210, 153, 34, 0.3);
}

.file-codeowner-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(56, 139, 253, 0.12);
  color: #58a6ff;
  border: 1px solid rgba(56, 139, 253, 0.25);
  margin-left: 8px;
}

/* ==========================================
 * Dependabot Security Alerts & Advisories UI
 * ========================================== */

.security-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

.security-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.security-header-title h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.security-header-title p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.security-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.security-metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}

.security-metric-card:hover {
  border-color: var(--border-muted);
}

.security-metric-card .metric-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.security-metric-card .metric-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.security-metric-card.critical .metric-value { color: #f85149; }
.security-metric-card.high .metric-value { color: #db6d28; }
.security-metric-card.moderate .metric-value { color: #d29922; }
.security-metric-card.low .metric-value { color: #58a6ff; }
.security-metric-card.fixed .metric-value { color: #a371f7; }

/* Severity Badges */
.severity-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1;
}

.severity-badge.critical {
  background: rgba(248, 81, 73, 0.15);
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.4);
}

.severity-badge.high {
  background: rgba(219, 109, 40, 0.15);
  color: #db6d28;
  border: 1px solid rgba(219, 109, 40, 0.4);
}

.severity-badge.moderate {
  background: rgba(210, 153, 34, 0.15);
  color: #d29922;
  border: 1px solid rgba(210, 153, 34, 0.4);
}

.severity-badge.low {
  background: rgba(88, 166, 255, 0.15);
  color: #58a6ff;
  border: 1px solid rgba(88, 166, 255, 0.4);
}

/* Alert State Badges */
.alert-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

.alert-state-badge.open {
  background: rgba(46, 160, 67, 0.15);
  color: #3fb950;
  border: 1px solid rgba(46, 160, 67, 0.3);
}

.alert-state-badge.dismissed {
  background: rgba(110, 118, 129, 0.15);
  color: var(--text-muted);
  border: 1px solid var(--border-muted);
}

.alert-state-badge.fixed {
  background: rgba(163, 113, 247, 0.15);
  color: #a371f7;
  border: 1px solid rgba(163, 113, 247, 0.3);
}

/* Filter Bar */
.security-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 12px 16px;
}

.security-state-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.security-state-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.security-state-tab:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.security-state-tab.active {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--bg-secondary);
  border-color: var(--border-default);
}

.security-filter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.security-filter-controls select,
.security-filter-controls input {
  background: var(--bg-inset);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 13px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
}

/* Alert List Table */
.dependabot-alerts-list {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.dependabot-alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-muted);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.dependabot-alert-row:last-child {
  border-bottom: none;
}

.dependabot-alert-row:hover {
  background: var(--bg-secondary);
}

.alert-row-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.alert-row-icon {
  margin-top: 2px;
  flex-shrink: 0;
}

.alert-row-icon.critical { color: #f85149; }
.alert-row-icon.high { color: #db6d28; }
.alert-row-icon.moderate { color: #d29922; }
.alert-row-icon.low { color: #58a6ff; }
.alert-row-icon.fixed { color: #a371f7; }
.alert-row-icon.dismissed { color: var(--text-muted); }

.alert-row-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alert-row-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.alert-row-package {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.alert-row-summary {
  font-size: 13px;
  color: var(--text-secondary);
}

.alert-row-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.alert-manifest-tag {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text-secondary);
}

.alert-row-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Alert Detail View */
.alert-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

.alert-detail-header {
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.alert-detail-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

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

.alert-detail-title-group h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.alert-detail-meta-line {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.alert-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

@media (max-width: 860px) {
  .alert-detail-grid {
    grid-template-columns: 1fr;
  }
}

.alert-section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.alert-section-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-description-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.alert-detail-sidebar .sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 18px;
}

.sidebar-widget-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.cvss-meter-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cvss-score-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.cvss-score-circle.critical { background: #f85149; }
.cvss-score-circle.high { background: #db6d28; }
.cvss-score-circle.moderate { background: #d29922; }
.cvss-score-circle.low { background: #58a6ff; }

.dependabot-pr-card {
  background: rgba(56, 139, 253, 0.08);
  border: 1px solid rgba(56, 139, 253, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dependabot-pr-card.merged {
  background: rgba(163, 113, 247, 0.08);
  border-color: rgba(163, 113, 247, 0.25);
}

/* Dismiss Modal */
.dismiss-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.dismiss-modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dismiss-modal-dialog h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.dismiss-reasons-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.dismiss-reason-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.dismiss-reason-item:hover,
.dismiss-reason-item input:checked + label {
  border-color: #388bfd;
}

.dismiss-reason-item label {
  cursor: pointer;
}

.dismiss-reason-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.dismiss-reason-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}

/* ==========================================================================
   11. Use.Live-Inspired Modern Product Landing System & Design Tokens
   ========================================================================== */

:root {
  /* Use.Live Signature Design Tokens (Default Dark Mode) */
  --g-bg: 14, 14, 16;           /* #0e0e10 deep obsidian canvas */
  --g-card: 27, 27, 31;         /* #1b1b1f elevated card */
  --g-raised: 38, 38, 43;       /* #26262b */
  --g-sheet: 23, 23, 26;        /* #17171a */
  --g-fg: 255, 255, 255;
  --g-inverse: 255, 255, 255;
  --g-on-inverse: 14, 14, 16;
  --g-money: 245, 196, 81;      /* #f5c451 / #f5b301 warm gold amber */
  --g-earn: 94, 224, 160;       /* #5ee0a0 fresh mint emerald */
  --g-danger: 255, 138, 138;
  --g-live: 255, 90, 90;        /* #ff5a5a / #e43838 hot live pulse */
  --g-accent: 36, 128, 245;     /* #2480f5 electric royal blue */
  --font-product: 'Nunito', 'Plus Jakarta Sans', ui-rounded, system-ui, -apple-system, sans-serif;
}

/* Light Theme Support */
html[data-gtheme="light"] {
  --g-bg: 247, 245, 240;        /* #F7F5F0 warm tactile canvas */
  --g-card: 255, 255, 255;      /* #FFFFFF crisp white */
  --g-raised: 239, 236, 229;
  --g-sheet: 255, 255, 255;
  --g-fg: 17, 17, 19;
  --g-inverse: 12, 12, 14;
  --g-on-inverse: 255, 255, 255;
  --g-money: 168, 112, 10;
  --g-earn: 14, 135, 80;
  --g-danger: 200, 45, 45;
  --g-live: 228, 56, 56;
  --g-accent: 22, 106, 226;     /* #166ae2 */
}

/* Floating Pill App Header in Landing Mode */
body:has(.landing-container) .app-header,
body.landing-page-active .app-header {
  position: sticky;
  top: 12px;
  max-width: 1140px;
  width: calc(100% - 24px);
  margin: 12px auto 0 auto;
  border-radius: 9999px;
  background: rgba(var(--g-card), 0.88);
  border: 1px solid rgba(var(--g-fg), 0.08);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px 18px;
  height: 54px;
  z-index: 1000;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
  body:has(.landing-container) .app-header,
  body.landing-page-active .app-header {
    top: 6px;
    margin: 6px 10px 0 10px;
    width: calc(100% - 20px);
    height: 50px;
    padding: 4px 12px;
  }
}

/* Landing Container */
.landing-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  overflow-x: clip;
  font-family: var(--font-product);
  background-color: rgb(var(--g-bg));
  color: rgb(var(--g-fg));
  padding-bottom: 60px;
  box-sizing: border-box;
}

/* Subtle Doodle / Dot Grid Watermark Pattern */
.landing-doodle-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(var(--g-fg), 0.12) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  opacity: 0.25;
  z-index: 0;
}

/* ==========================================================================
   Hero Section Architecture (Split 1.1fr : 1fr)
   ========================================================================== */

.g-hero-wrap {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 20px 80px 20px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .g-hero-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 32px 16px 60px 16px;
    text-align: center;
  }
}

.g-hero-col-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 580px;
}

@media (max-width: 1024px) {
  .g-hero-col-left {
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Eyebrow Pill with Live Dot */
.g-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  border-radius: 9999px;
  background: rgb(var(--g-card));
  border: 1px solid rgba(var(--g-fg), 0.08);
  font-size: 12px;
  font-weight: 800;
  color: rgba(var(--g-fg), 0.75);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
  margin-bottom: 16px;
  text-decoration: none;
}

.g-live-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(var(--g-earn), 0.16);
}

.g-live-ping {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(var(--g-earn));
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.g-live-core {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(var(--g-earn));
}

/* Punchy Ultra-Bold Hero Title */
.g-hero-title {
  font-family: var(--font-product);
  font-size: clamp(36px, 5.2vw, 54px);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: rgb(var(--g-fg));
  margin: 0 0 16px 0;
}

.g-hero-accent {
  color: rgb(var(--g-accent));
  background: linear-gradient(135deg, rgb(var(--g-accent)) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.g-hero-desc {
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 600;
  line-height: 1.5;
  color: rgba(var(--g-fg), 0.62);
  margin: 0 0 24px 0;
  max-width: 480px;
}

/* Interactive Create Repo / Clone Box (Inspired by use.live #create) */
.g-create-card {
  width: 100%;
  max-width: 500px;
  border-radius: 28px;
  background: rgb(var(--g-card));
  border: 1px solid rgba(var(--g-fg), 0.08);
  box-shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.45);
  padding: 14px;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.g-create-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px;
  background: rgba(var(--g-fg), 0.04);
  border-radius: 9999px;
  width: fit-content;
}

.g-create-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: rgba(var(--g-fg), 0.6);
  font-family: var(--font-product);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.g-create-tab.active {
  background: rgb(var(--g-card));
  color: rgb(var(--g-fg));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.g-create-inputs {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 10px;
  align-items: center;
}

@media (max-width: 580px) {
  .g-create-inputs {
    grid-template-columns: 1fr;
  }
}

.g-input-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

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

.g-input-prefix {
  position: absolute;
  left: 14px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(var(--g-fg), 0.4);
  pointer-events: none;
  user-select: none;
}

.g-input-field input {
  width: 100%;
  height: 48px;
  border-radius: 18px;
  border: 1px solid rgba(var(--g-fg), 0.08);
  background: rgba(var(--g-fg), 0.05);
  color: rgb(var(--g-fg));
  padding: 0 14px 0 34px;
  font-family: var(--font-product);
  font-size: 14px;
  font-weight: 700;
  outline: none;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.g-input-field input:focus {
  border-color: rgba(var(--g-accent), 0.6);
  background: rgba(var(--g-fg), 0.08);
  box-shadow: 0 0 0 3px rgba(var(--g-accent), 0.2);
}

.g-btn-create-submit {
  height: 48px;
  padding: 0 22px;
  border-radius: 9999px;
  background: rgb(var(--g-accent));
  color: #ffffff;
  border: none;
  font-family: var(--font-product);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px -2px rgba(var(--g-accent), 0.5);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.g-btn-create-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 6px 20px -2px rgba(var(--g-accent), 0.65);
}

.g-btn-create-submit:active {
  transform: scale(0.97);
}

.g-hero-reassurance {
  font-size: 13px;
  font-weight: 600;
  color: rgba(var(--g-fg), 0.55);
  margin-bottom: 16px;
}

.g-hero-reassurance a {
  color: rgb(var(--g-fg));
  font-weight: 800;
  text-decoration: none;
}

.g-hero-reassurance a:hover {
  color: rgb(var(--g-accent));
}

/* Tool Compatibility Chips */
.g-tools-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.g-tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(var(--g-fg), 0.05);
  border: 1px solid rgba(var(--g-fg), 0.06);
  font-size: 12px;
  font-weight: 700;
  color: rgba(var(--g-fg), 0.7);
}

/* ==========================================================================
   Hero Column Right: Signature Floating Live Simulation Showcase
   ========================================================================== */

.g-hero-col-right {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ambient Lighting Blur Orbs */
.g-stage-backdrop {
  position: absolute;
  inset: 12px;
  border-radius: 40px;
  background: rgba(var(--g-accent), 0.08);
  overflow: hidden;
  pointer-events: none;
}

.g-glow-orb-amber {
  position: absolute;
  right: -50px;
  top: -50px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(245, 179, 1, 0.22);
  filter: blur(56px);
}

.g-glow-orb-blue {
  position: absolute;
  left: -40px;
  bottom: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(36, 128, 245, 0.22);
  filter: blur(56px);
}

/* Centerpiece Live Simulation Card */
.g-stage-center {
  position: relative;
  z-index: 2;
  width: 285px;
  border-radius: 28px;
  background: rgb(var(--g-card));
  padding: 20px;
  border: 1px solid rgba(var(--g-fg), 0.08);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6);
  text-align: left;
}

.g-center-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.g-live-badge-red {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgb(var(--g-live));
}

.g-center-title {
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.02em;
  margin: 0 0 16px 0;
  color: rgb(var(--g-fg));
}

/* Avatar Opponents + Equalizer Row */
.g-center-flow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.g-peer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Squircle Avatars (38% border-radius from use.live) */
.g-squircle-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 800;
  border-radius: 38%;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.45);
  border: 2px solid rgb(var(--g-card));
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}

.g-squircle-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-peer-name {
  font-size: 12px;
  font-weight: 800;
  color: rgba(var(--g-fg), 0.7);
}

/* 5-Bar Equalizer Animation (.g-eq) */
.g-eq {
  display: flex;
  height: 24px;
  align-items: center;
  gap: 3px;
}

.g-eq span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: rgb(var(--g-accent));
  animation: g-eq 0.9s ease-in-out infinite;
}

.g-eq span:nth-child(2) { animation-delay: -0.6s; }
.g-eq span:nth-child(3) { animation-delay: -0.3s; }
.g-eq span:nth-child(4) { animation-delay: -0.75s; }
.g-eq span:nth-child(5) { animation-delay: -0.15s; }

@keyframes g-eq {
  0%, 100% { height: 6px; }
  50% { height: 20px; }
}

/* Traveling Coin / Packet Token (.g-coin) */
.g-coin {
  position: absolute;
  right: 48px;
  top: 16px;
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5b301;
  color: #633806;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(245, 179, 1, 0.4);
  animation: g-coin 2.4s ease-in-out infinite;
}

@keyframes g-coin {
  0% { transform: translateX(0) scale(0.6); opacity: 0; }
  15% { transform: translateX(calc(var(--g-coin-dx, -135px) * 0.15)) scale(1); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(var(--g-coin-dx, -135px)) scale(0.6); opacity: 0; }
}

/* Bottom Highlight Pill in Center Card */
.g-center-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px;
  background: rgba(var(--g-earn), 0.12);
  padding: 10px 14px;
}

.g-status-text-green {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: rgb(var(--g-earn));
}

.g-meta-mode-text {
  font-size: 12px;
  font-weight: 700;
  color: rgba(var(--g-fg), 0.5);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Floating Notification Pills (.g-float) */
.g-float {
  position: absolute;
  z-index: 3;
  animation: g-float 5s ease-in-out infinite;
  animation-delay: var(--g-delay, 0s);
}

@keyframes g-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.g-float-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border-radius: 9999px;
  background: rgb(var(--g-card));
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(var(--g-fg), 0.06);
}

.g-float-pill.green { color: rgb(var(--g-earn)); }
.g-float-pill.blue { color: rgb(var(--g-accent)); }
.g-float-pill.gold { color: #f5b301; }
.g-float-pill.purple { color: #a855f7; }

.g-float-user-card {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  background: rgb(var(--g-card));
  padding: 6px 14px 6px 6px;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(var(--g-fg), 0.06);
  font-size: 12px;
  font-weight: 800;
}

.g-float-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 38%;
  overflow: hidden;
  flex-shrink: 0;
}

.g-float-avatar-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Staggered Floating Positions */
.g-float-pos-top-left {
  left: -8px;
  top: 8px;
}

.g-float-pos-top-right {
  right: -8px;
  top: 48px;
}

.g-float-pos-mid-left {
  left: -12px;
  top: 66%;
}

.g-float-pos-mid-right {
  right: -12px;
  top: 64%;
}

.g-float-pos-bot-right {
  right: 12px;
  bottom: 6px;
}

.g-float-pos-bot-left {
  left: 12px;
  bottom: 24px;
}

.g-avatar-stack {
  display: flex;
}

.g-avatar-stack .g-squircle-avatar {
  width: 32px;
  height: 32px;
  margin-left: -8px;
}

.g-avatar-stack .g-squircle-avatar:first-child {
  margin-left: 0;
}

/* ==========================================================================
   Section 2: "How It Works" 3-Step Process Cards (use.live style)
   ========================================================================== */

.g-section-wrap {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 20px;
  box-sizing: border-box;
}

.g-section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 48px auto;
}

.g-section-tag {
  display: inline-flex;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(var(--g-accent), 0.12);
  color: rgb(var(--g-accent));
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.g-section-title {
  font-family: var(--font-product);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: rgb(var(--g-fg));
  margin: 0 0 12px 0;
}

.g-section-desc {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(var(--g-fg), 0.6);
  margin: 0;
}

.g-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 860px) {
  .g-steps-grid {
    grid-template-columns: 1fr;
  }
}

.g-step-card {
  border-radius: 28px;
  background: rgb(var(--g-card));
  border: 1px solid rgba(var(--g-fg), 0.06);
  box-shadow: 0 16px 40px -28px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  padding: 10px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.g-step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--g-accent), 0.3);
}

.g-step-box-preview {
  height: 190px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  position: relative;
}

.g-step-box-preview.blue { background: rgba(var(--g-accent), 0.08); }
.g-step-box-preview.gold { background: rgba(245, 179, 1, 0.12); }
.g-step-box-preview.green { background: rgba(var(--g-earn), 0.10); }

.g-step-body {
  padding: 16px 14px 10px 14px;
}

.g-step-num {
  font-size: 13px;
  font-weight: 900;
  color: rgba(var(--g-fg), 0.35);
  font-family: var(--font-mono);
}

.g-step-heading {
  font-size: 19px;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: rgb(var(--g-fg));
  margin: 4px 0 8px 0;
}

.g-step-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(var(--g-fg), 0.58);
  margin: 0;
}

/* ==========================================================================
   Section 3: "Made for Every Technical Discipline" (6 Squircle Cards)
   ========================================================================== */

.g-roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 960px) {
  .g-roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .g-roles-grid {
    grid-template-columns: 1fr;
  }
}

.g-role-card {
  border-radius: 28px;
  background: rgb(var(--g-card));
  border: 1px solid rgba(var(--g-fg), 0.06);
  box-shadow: 0 16px 40px -28px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.g-role-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--g-accent), 0.3);
}

.g-role-info {
  flex: 1;
  min-width: 0;
}

.g-role-category {
  font-size: 12px;
  font-weight: 700;
  color: rgba(var(--g-fg), 0.5);
  margin: 0 0 2px 0;
}

.g-role-title {
  font-size: 15px;
  font-weight: 850;
  color: rgb(var(--g-fg));
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g-role-pill-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(var(--g-fg), 0.5);
}

.g-role-metric-badge {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(245, 179, 1, 0.15);
  color: #f5b301;
  font-size: 13px;
  font-weight: 850;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Section 4: Inverted Contrast Section ("Keep 100% Data Sovereignty")
   ========================================================================== */

.g-inverse-section {
  border-radius: 36px;
  background: rgb(var(--g-inverse));
  color: rgb(var(--g-on-inverse));
  padding: 44px 40px;
  margin: 80px auto;
  max-width: 1140px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .g-inverse-section {
    padding: 32px 20px;
    margin: 40px 16px;
  }
}

.g-inverse-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 960px) {
  .g-inverse-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.g-inverse-tag {
  display: inline-flex;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(var(--g-on-inverse), 0.1);
  color: rgb(var(--g-on-inverse));
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.g-inverse-title {
  font-family: var(--font-product);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px 0;
  color: rgb(var(--g-on-inverse));
}

.g-inverse-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.g-inverse-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(var(--g-on-inverse), 0.75);
}

.g-inverse-check {
  color: #f5b301;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Real-Time Packet Pipeline Visualization */
.g-pipeline-flow-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(var(--g-on-inverse), 0.06);
  border-radius: 28px;
  padding: 20px;
}

.g-pipeline-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 20px;
  background: rgba(var(--g-on-inverse), 0.08);
  padding: 16px 8px;
  text-align: center;
}

.g-node-title {
  font-size: 12px;
  font-weight: 800;
  color: rgba(var(--g-on-inverse), 0.7);
}

.g-node-metric {
  font-size: 18px;
  font-weight: 900;
  font-family: var(--font-mono);
}

.g-pipeline-connector {
  position: relative;
  width: 32px;
  height: 2px;
  background: rgba(var(--g-on-inverse), 0.2);
  flex-shrink: 0;
}

.g-pipeline-connector .g-coin {
  top: -13px;
  left: 0;
  width: 20px;
  height: 20px;
  font-size: 10px;
}

/* ==========================================================================
   Section 5: Interactive Platform Simulator / Workbench
   ========================================================================== */

.g-workbench-wrap {
  max-width: 1140px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.g-workbench-window {
  border-radius: 28px;
  background: rgb(var(--g-card));
  border: 1px solid rgba(var(--g-fg), 0.08);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.g-workbench-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(var(--g-fg), 0.06);
  background: rgba(var(--g-fg), 0.02);
}

.g-workbench-dots {
  display: flex;
  gap: 8px;
}

.g-wb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.g-wb-dot.red { background: #ff5f56; }
.g-wb-dot.yellow { background: #ffbd2e; }
.g-wb-dot.green { background: #27c93f; }

.g-workbench-title {
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: rgba(var(--g-fg), 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.g-workbench-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(var(--g-fg), 0.06);
  overflow-x: auto;
  scrollbar-width: none;
}

.g-wb-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: rgba(var(--g-fg), 0.6);
  font-family: var(--font-product);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.g-wb-tab-btn:hover {
  background: rgba(var(--g-fg), 0.05);
  color: rgb(var(--g-fg));
}

.g-wb-tab-btn.active {
  background: rgb(var(--g-accent));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(var(--g-accent), 0.35);
}

.g-workbench-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  background: rgba(var(--g-fg), 0.02);
}

/* ==========================================================================
   Section 6: Clean FAQ Accordion & Bottom Pill CTA
   ========================================================================== */

.g-faq-wrap {
  max-width: 840px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.g-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.g-faq-card {
  border-radius: 20px;
  background: rgb(var(--g-card));
  border: 1px solid rgba(var(--g-fg), 0.06);
  box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.g-faq-card:hover {
  border-color: rgba(var(--g-accent), 0.3);
}

.g-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: transparent;
  border: none;
  font-family: var(--font-product);
  font-size: 15px;
  font-weight: 800;
  color: rgb(var(--g-fg));
  text-align: left;
  cursor: pointer;
}

.g-faq-chevron {
  color: rgba(var(--g-fg), 0.4);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.g-faq-card.open .g-faq-chevron {
  transform: rotate(180deg);
  color: rgb(var(--g-accent));
}

.g-faq-answer {
  padding: 0 22px 18px 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(var(--g-fg), 0.65);
  display: none;
}

.g-faq-card.open .g-faq-answer {
  display: block;
}

/* High-Impact Closing Bottom CTA Banner */
.g-bottom-cta {
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(36, 128, 245, 0.12) 0%, rgba(245, 179, 1, 0.08) 100%), rgb(var(--g-card));
  border: 1px solid rgba(var(--g-fg), 0.08);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.45);
  padding: 64px 32px;
  text-align: center;
  margin: 0 auto 60px auto;
  max-width: 1140px;
  box-sizing: border-box;
}

.g-bottom-cta-title {
  font-family: var(--font-product);
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 850;
  letter-spacing: -0.03em;
  margin: 0 0 14px 0;
  color: rgb(var(--g-fg));
}

.g-bottom-cta-sub {
  font-size: 16px;
  font-weight: 600;
  color: rgba(var(--g-fg), 0.65);
  max-width: 560px;
  margin: 0 auto 28px auto;
  line-height: 1.5;
}

.g-bottom-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Universal Modern Footer (use.live inspired obsidian styling)
   ========================================================================== */

.landing-footer,
.g-landing-footer {
  width: 100%;
  background: rgb(var(--g-bg)) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-top: 80px;
  padding: 64px 20px 32px 20px;
  box-sizing: border-box;
  font-family: var(--font-product);
  color: rgba(var(--g-fg), 0.65);
  position: relative;
  z-index: 10;
}

.landing-footer-container,
.landing-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

.landing-footer-top,
.landing-footer-grid,
.g-footer-grid {
  display: grid !important;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1.3fr !important;
  gap: 40px !important;
  margin-bottom: 56px !important;
}

@media (max-width: 960px) {
  .landing-footer-top,
  .landing-footer-grid,
  .g-footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 600px) {
  .landing-footer-top,
  .landing-footer-grid,
  .g-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

/* Brand Column */
.landing-footer-brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 14px !important;
}

.landing-footer-logo,
.g-footer-brand-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: rgb(var(--g-fg)) !important;
  font-size: 20px !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  letter-spacing: -0.02em !important;
}

.landing-footer-desc,
.landing-footer-tagline {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: rgba(var(--g-fg), 0.58) !important;
  max-width: 320px !important;
  margin: 0 !important;
}

.landing-footer-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 5px 14px !important;
  border-radius: 9999px !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  color: #10b981 !important;
}

.landing-status-dot,
.status-pulse-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  position: relative !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.7) !important;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite !important;
}

/* Column Titles & Lists */
.landing-footer-col {
  display: flex !important;
  flex-direction: column !important;
}

.landing-footer-col-title,
.g-footer-col-title {
  font-size: 12px !important;
  font-weight: 850 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: rgb(var(--g-fg)) !important;
  margin: 0 0 18px 0 !important;
}

.landing-footer-list,
.g-footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.landing-footer-link,
.g-footer-links a,
.g-footer-links button {
  color: rgba(var(--g-fg), 0.65) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  text-align: left !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.15s ease !important;
}

.landing-footer-link:hover,
.g-footer-links a:hover,
.g-footer-links button:hover {
  color: rgb(var(--g-accent)) !important;
  transform: translateX(2px) !important;
}

/* Footer Bottom Bar */
.landing-footer-bottom,
.g-footer-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 18px !important;
  padding-top: 28px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: rgba(var(--g-fg), 0.5) !important;
}

.landing-footer-copy {
  color: rgba(var(--g-fg), 0.5) !important;
}

.landing-footer-legal-links,
.g-footer-legal {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

.landing-footer-legal-links a,
.g-footer-legal a {
  color: rgba(var(--g-fg), 0.5) !important;
  text-decoration: none !important;
  font-size: 13px !important;
  transition: color 0.15s ease !important;
}

.landing-footer-legal-links a:hover,
.g-footer-legal a:hover {
  color: rgb(var(--g-accent)) !important;
}

/* Manage Cookies ghost pill button */
.landing-footer-legal-links button,
.g-footer-legal button,
#btn-open-cookie-prefs-bottom,
.btn-open-cookie-settings-bottom {
  background: rgba(var(--g-fg), 0.08) !important;
  border: 1px solid rgba(var(--g-fg), 0.12) !important;
  border-radius: 9999px !important;
  padding: 5px 14px !important;
  font-family: var(--font-product) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  color: rgba(var(--g-fg), 0.75) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  outline: none !important;
  display: inline-flex !important;
  align-items: center !important;
}

.landing-footer-legal-links button:hover,
.g-footer-legal button:hover,
#btn-open-cookie-prefs-bottom:hover {
  background: rgba(var(--g-fg), 0.15) !important;
  color: rgb(var(--g-fg)) !important;
  border-color: rgba(var(--g-fg), 0.25) !important;
}

/* ==========================================================================
   Closing Bottom CTA Banner (use.live style)
   ========================================================================== */

.g-bottom-cta {
  border-radius: 36px !important;
  background: linear-gradient(135deg, rgba(36, 128, 245, 0.12) 0%, rgba(245, 179, 1, 0.08) 100%), rgb(var(--g-card)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5) !important;
  padding: 64px 32px !important;
  text-align: center !important;
  margin: 0 auto 60px auto !important;
  max-width: 1140px !important;
  box-sizing: border-box !important;
}

.g-bottom-cta-title {
  font-family: var(--font-product) !important;
  font-size: clamp(30px, 4.5vw, 46px) !important;
  font-weight: 850 !important;
  letter-spacing: -0.03em !important;
  margin: 0 0 14px 0 !important;
  color: rgb(var(--g-fg)) !important;
}

.g-bottom-cta-sub {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: rgba(var(--g-fg), 0.65) !important;
  max-width: 560px !important;
  margin: 0 auto 28px auto !important;
  line-height: 1.5 !important;
}

.g-bottom-cta-btns {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.btn-hero-primary,
.g-btn-pill-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 13px 28px !important;
  border-radius: 9999px !important;
  background: rgb(var(--g-accent)) !important;
  color: #ffffff !important;
  font-family: var(--font-product) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 18px rgba(36, 128, 245, 0.45) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-hero-primary:hover,
.g-btn-pill-primary:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.1) !important;
  box-shadow: 0 8px 24px rgba(36, 128, 245, 0.6) !important;
}

.btn-hero-secondary,
.g-btn-pill-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 13px 26px !important;
  border-radius: 9999px !important;
  background: rgba(var(--g-fg), 0.08) !important;
  border: 1px solid rgba(var(--g-fg), 0.12) !important;
  color: rgb(var(--g-fg)) !important;
  font-family: var(--font-product) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-hero-secondary:hover,
.g-btn-pill-secondary:hover {
  background: rgba(var(--g-fg), 0.14) !important;
  transform: translateY(-2px) !important;
  border-color: rgba(var(--g-fg), 0.2) !important;
}

/* ==========================================================================
   All Other Pages Theming (Explore, Repositories, Tabs, Commits, PRs, Modals)
   ========================================================================== */

/* Universal Floating Pill Header */
.app-header {
  position: sticky !important;
  top: 12px !important;
  max-width: 1400px !important;
  width: calc(100% - 24px) !important;
  margin: 12px auto !important;
  border-radius: 9999px !important;
  background: rgba(18, 18, 22, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  padding: 6px 20px !important;
  height: 54px !important;
  z-index: 1000 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (max-width: 768px) {
  .app-header {
    top: 6px !important;
    margin: 6px 10px !important;
    width: calc(100% - 20px) !important;
    height: 50px !important;
    padding: 4px 14px !important;
  }
}

/* Repositories & Explore Page */
.landing-repos-section {
  max-width: 1400px !important;
  margin: 32px auto 60px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.landing-repos-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 24px !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}

.landing-repos-title-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.landing-repos-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-family: var(--font-product) !important;
  font-size: 22px !important;
  font-weight: 850 !important;
  letter-spacing: -0.02em !important;
  color: rgb(var(--g-fg)) !important;
  margin: 0 !important;
}

.landing-repos-title svg {
  color: #2480f5 !important;
}

.landing-repos-title-wrap .counter-badge {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(var(--g-fg), 0.8) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  padding: 2px 10px !important;
  border-radius: 9999px !important;
}

.landing-repos-search-box {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}

.landing-repos-search-box svg {
  position: absolute !important;
  left: 14px !important;
  color: rgba(var(--g-fg), 0.45) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.landing-repos-search-box #repo-filter-input {
  width: 280px !important;
  border-radius: 9999px !important;
  padding: 9px 16px 9px 36px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgb(var(--g-fg)) !important;
  font-family: var(--font-product) !important;
  font-size: 13px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.landing-repos-search-box #repo-filter-input:focus {
  outline: none !important;
  border-color: rgba(36, 128, 245, 0.6) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 0 0 3px rgba(36, 128, 245, 0.2) !important;
}

@media (max-width: 640px) {
  .landing-repos-search-box {
    width: 100% !important;
  }
  .landing-repos-search-box #repo-filter-input {
    width: 100% !important;
  }
}

.repos-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important;
  gap: 20px !important;
}

.repo-card {
  background-color: rgb(var(--g-card)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.repo-card:hover {
  border-color: rgba(36, 128, 245, 0.4) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.65) !important;
}

.repo-card-name {
  font-family: var(--font-product) !important;
  font-size: 16px !important;
  font-weight: 750 !important;
  color: rgb(var(--g-fg)) !important;
}

.repo-badge {
  font-size: 11px !important;
  font-weight: 750 !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(var(--g-fg), 0.7) !important;
}

.repo-badge.private {
  background: rgba(245, 179, 1, 0.12) !important;
  border-color: rgba(245, 179, 1, 0.25) !important;
  color: #f5b301 !important;
}

/* Dashboard feed styling to match obsidian theme */
.dashboard-feed-box {
  margin-top: 40px !important;
  background-color: rgb(var(--g-card)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  padding: 24px 28px !important;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45) !important;
}

.dashboard-feed-title {
  font-family: var(--font-product) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  margin-bottom: 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: rgb(var(--g-fg)) !important;
}

.dashboard-feed-title svg {
  color: #2480f5 !important;
}

.feed-event-row {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  font-size: 13.5px !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: rgba(var(--g-fg), 0.85) !important;
}

.feed-event-row a {
  color: #58a6ff !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.feed-event-row a:hover {
  text-decoration: underline !important;
}

/* Repository Detail Views */
.repo-header {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto 24px auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.repo-breadcrumbs {
  font-family: var(--font-product) !important;
  font-size: 22px !important;
  font-weight: 850 !important;
  letter-spacing: -0.02em !important;
}

.repo-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  margin-bottom: 24px !important;
  box-sizing: border-box !important;
}

.repo-tabs::-webkit-scrollbar {
  display: none !important;
}

.tab-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 12px !important;
  font-size: 13.5px !important;
  font-family: var(--font-product), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 550 !important;
  color: rgba(var(--g-fg), 0.65) !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 6px 6px 0 0 !important;
  cursor: pointer !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin-bottom: -1px !important;
}

.tab-btn svg {
  color: rgba(var(--g-fg), 0.5) !important;
  transition: color 0.15s ease !important;
  flex-shrink: 0 !important;
}

.tab-btn:hover {
  color: rgb(var(--g-fg)) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-bottom-color: rgba(255, 255, 255, 0.25) !important;
}

.tab-btn:hover svg {
  color: rgb(var(--g-fg)) !important;
}

.tab-btn.active {
  color: rgb(var(--g-fg)) !important;
  border-bottom: 2px solid #2480f5 !important;
  font-weight: 650 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.tab-btn.active svg {
  color: #2480f5 !important;
}

.tab-btn .tab-counter {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(var(--g-fg), 0.75) !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  padding: 2px 7px !important;
  border-radius: 9999px !important;
  line-height: 14px !important;
}

.tab-btn.active .tab-counter {
  background: rgba(36, 128, 245, 0.2) !important;
  color: #58a6ff !important;
}

/* File Tree and README Containers */
.file-table-container,
.file-explorer-card {
  border-radius: 24px !important;
  overflow: hidden !important;
  background: rgb(var(--g-card)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5) !important;
}

.readme-container,
.readme-box {
  border-radius: 24px !important;
  background: rgb(var(--g-card)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5) !important;
  padding: 32px !important;
  margin-top: 24px !important;
}

/* Pull Requests, Issues, and Commits Cards */
.pr-item,
.issue-item,
.commit-item {
  border-radius: 20px !important;
  background: rgb(var(--g-card)) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  padding: 16px 20px !important;
  margin-bottom: 12px !important;
  transition: all 0.15s ease !important;
}

.pr-item:hover,
.issue-item:hover,
.commit-item:hover {
  border-color: rgba(36, 128, 245, 0.35) !important;
  transform: translateY(-1px) !important;
}

.pr-state,
.issue-state,
.state-badge {
  border-radius: 9999px !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  padding: 4px 12px !important;
}

/* Modals & Popups */
.modal-overlay {
  background-color: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

.modal-content {
  background-color: #16161a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 28px !important;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85) !important;
  padding: 32px !important;
}

.form-control {
  border-radius: 14px !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  padding: 10px 14px !important;
  font-family: var(--font-product) !important;
  font-size: 14px !important;
  color: rgb(var(--g-fg)) !important;
}

.form-control:focus {
  border-color: rgb(var(--g-accent)) !important;
  box-shadow: 0 0 0 3px rgba(36, 128, 245, 0.25) !important;
}

/* ==========================================================================
   Data Privacy, Terms of Use, and Legal Document Pages
   ========================================================================== */

.legal-container {
  max-width: 1040px;
  margin: 36px auto 80px auto;
  padding: 0 20px;
}

.legal-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 24px;
}

.legal-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-breadcrumbs a {
  color: var(--text-link);
  text-decoration: none;
}

.legal-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.legal-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

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

.legal-nav {
  position: sticky;
  top: 80px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-nav-link {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.legal-nav-link.active {
  color: var(--text-link);
  background: rgba(56, 139, 253, 0.12);
  font-weight: 600;
}

.legal-content {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 14px;
}

.legal-content h2 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-muted);
  scroll-margin-top: 80px;
}

.legal-content h3 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px 0;
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 0 0 16px 20px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-callout {
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid #38bdf8;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 20px 0;
  color: var(--text-primary);
  font-size: 13px;
}

.legal-callout.warning {
  background: rgba(234, 179, 8, 0.08);
  border-left-color: #eab308;
}

.legal-callout.security {
  background: rgba(46, 160, 67, 0.08);
  border-left-color: #2ea043;
}

/* ==========================================================================
   Cookie Preferences Modal Dialog
   ========================================================================== */

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.cookie-modal {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  width: 100%;
  max-width: 580px;
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
  animation: heroFadeUp 0.2s ease-out;
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.cookie-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #f0f6fc;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.cookie-pref-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 16px;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #30363d;
  transition: .3s;
  border-radius: 22px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .cookie-slider {
  background-color: #238636;
}

input:disabled + .cookie-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

input:checked + .cookie-slider:before {
  transform: translateX(20px);
}

/* ==========================================================================
   Sales & Marketing Genius: High-Converting Landing Page Design System
   ========================================================================== */

/* 1. Authority & Trust Bar */
.trust-bar-section {
  padding: 40px 24px;
  max-width: 1140px;
  margin: 0 auto 60px auto;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.trust-bar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-bottom: 20px;
}

.trust-badges-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1;
  transition: all 0.25s ease;
}

.trust-badge-pill:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  transform: translateY(-2px);
}

.trust-badge-pill svg {
  color: #38bdf8;
}

/* 2. Platform Capability Headers */
.marketing-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.marketing-tagline {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #38bdf8;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.marketing-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fafc;
  margin-bottom: 14px;
  line-height: 1.2;
}

.marketing-desc {
  font-size: 16px;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 3. Interactive 60-Second Quickstart Deployer */
/* 3. Interactive Developer Flow Studio (Redesigned) */
.workflow-section {
  padding: 60px clamp(16px, 4vw, 48px);
  width: 100%;
  max-width: 1600px;
  margin: 0 auto 80px auto;
  box-sizing: border-box;
}

.workflow-studio-card {
  background: #090d16;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 50px rgba(56, 189, 248, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Stepper Bar */
.workflow-stepper-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(13, 17, 23, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.workflow-step-btn {
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 3px solid transparent;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.workflow-step-btn:last-child {
  border-right: none;
}

.workflow-step-btn:hover {
  background: rgba(255, 255, 255, 0.03);
}

.workflow-step-btn.active {
  background: rgba(56, 189, 248, 0.06);
  border-bottom-color: #38bdf8;
}

.workflow-step-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: #475569;
  transition: color 0.2s ease;
}

.workflow-step-btn.active .workflow-step-num {
  color: #38bdf8;
}

.workflow-step-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.workflow-step-title {
  font-size: 15px;
  font-weight: 700;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.workflow-step-btn.active .workflow-step-title {
  color: #f8fafc;
}

.workflow-step-sub {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workflow-step-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.workflow-step-tag.blue { background: rgba(56, 189, 248, 0.12); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.workflow-step-tag.purple { background: rgba(168, 85, 247, 0.12); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }
.workflow-step-tag.green { background: rgba(46, 160, 67, 0.12); color: #3fb950; border: 1px solid rgba(46, 160, 67, 0.3); }

/* Split Canvas */
.workflow-canvas {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  padding: 36px 32px;
  background: radial-gradient(circle at 80% 30%, rgba(56, 189, 248, 0.06), transparent 60%), #050811;
  min-height: 420px;
  align-items: center;
}

.wf-col-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wf-stage-pill {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wf-stage-pill.blue { color: #38bdf8; }
.wf-stage-pill.purple { color: #a855f7; }
.wf-stage-pill.green { color: #3fb950; }

.wf-stage-title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.wf-stage-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
}

/* Embedded CLI Terminal */
.wf-terminal-window {
  background: #0a0d14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.wf-term-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #111622;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wf-term-dots {
  display: flex;
  gap: 6px;
}

.wf-term-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8b949e;
}

.wf-term-copy {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.wf-term-copy:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.wf-term-copy.copy-success {
  background: rgba(46, 160, 67, 0.2);
  border-color: rgba(46, 160, 67, 0.5);
  color: #3fb950;
}

.wf-term-code {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #38bdf8;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.wf-checkpoints {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wf-checkpoints li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
}

.wf-check {
  color: #3fb950;
  font-weight: 700;
}

/* Right Visual Artifact Cards */
.wf-col-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wf-visual-card {
  width: 100%;
  background: rgba(13, 17, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wf-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.wf-pr-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.wf-pr-badge.open { background: rgba(46, 160, 67, 0.15); color: #3fb950; border: 1px solid rgba(46, 160, 67, 0.35); }
.wf-pr-badge.queue { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.wf-pr-badge.crit { background: rgba(248, 81, 73, 0.15); color: #f85149; border: 1px solid rgba(248, 81, 73, 0.35); }

.wf-pr-title {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  flex: 1;
}

.wf-pr-branch {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8b949e;
}

.wf-codeowners-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #cbd5e1;
}

.wf-check-circle {
  color: #3fb950;
  font-weight: 700;
}

.wf-diff-viewer {
  background: #050811;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
}

.wf-diff-filebar {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #8b949e;
}

.diff-add { color: #3fb950; }
.diff-del { color: #f85149; }

.wf-diff-lines {
  display: flex;
  flex-direction: column;
}

.wf-diff-row {
  display: flex;
  align-items: center;
  padding: 2px 10px;
  gap: 8px;
  line-height: 1.5;
}

.wf-diff-row.add { background: rgba(46, 160, 67, 0.15); color: #7ee787; }
.wf-diff-row.del { background: rgba(248, 81, 73, 0.15); color: #ffa198; }
.wf-diff-row.ctx { color: #8b949e; }
.wf-diff-row .ln { color: #484f58; width: 20px; user-select: none; font-size: 10px; }
.wf-diff-row .sign { font-weight: 700; width: 10px; }

/* Merge Queue Visualizer Nodes */
.wf-queue-nodes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wf-queue-node {
  background: rgba(22, 27, 34, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wf-queue-node.merged { border-color: rgba(46, 160, 67, 0.4); background: rgba(46, 160, 67, 0.06); }
.wf-queue-node.building { border-color: rgba(56, 189, 248, 0.5); background: rgba(56, 189, 248, 0.08); box-shadow: 0 0 16px rgba(56, 189, 248, 0.15); }
.wf-queue-node.queued { border-color: rgba(255, 255, 255, 0.08); opacity: 0.8; }

.wf-q-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wf-q-num {
  font-weight: 700;
  font-size: 12px;
  color: #f8fafc;
}

.wf-q-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.wf-q-tag.success { background: rgba(46, 160, 67, 0.2); color: #3fb950; }
.wf-q-tag.active { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.wf-q-tag.wait { background: rgba(255, 255, 255, 0.1); color: #94a3b8; }

.wf-q-title {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

.wf-q-meta {
  font-size: 11px;
  color: #8b949e;
}

.wf-queue-reassurance {
  font-size: 12px;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.6);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Dependabot CVE Artifact */
.wf-cve-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wf-cve-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  flex-wrap: wrap;
}

.wf-cve-label { color: #8b949e; }
.wf-cve-pkg { color: #f85149; font-weight: 700; font-family: var(--font-mono); }
.wf-cve-arrow { color: #64748b; }
.wf-cve-fixed { color: #3fb950; font-weight: 700; font-family: var(--font-mono); }
.wf-cve-desc { font-size: 13px; color: #cbd5e1; line-height: 1.5; margin: 0; }

.btn-wf-patch {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-wf-patch:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}

.btn-wf-patch:active {
  transform: translateY(1px) scale(0.98);
}

.wf-patch-success-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(46, 160, 67, 0.15);
  border: 1px solid rgba(46, 160, 67, 0.4);
  padding: 10px 14px;
  border-radius: 8px;
  color: #3fb950;
  font-size: 13px;
  animation: fadeIn 0.3s ease;
}

/* 4-Column Balanced Benchmark Strip */
.workflow-benchmarks-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(13, 17, 23, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.workflow-benchmark-card {
  padding: 20px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.workflow-benchmark-card:last-child {
  border-right: none;
}

.workflow-bm-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
}

.workflow-bm-val.blue { color: #38bdf8; }
.workflow-bm-val.purple { color: #a855f7; }
.workflow-bm-val.green { color: #3fb950; }
.workflow-bm-val.red { color: #f85149; }

.workflow-bm-title {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

.workflow-bm-sub {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .workflow-canvas {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .workflow-benchmarks-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow-benchmark-card:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .workflow-stepper-bar {
    grid-template-columns: 1fr;
  }
  .workflow-step-btn {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 18px;
  }
  .workflow-canvas {
    padding: 20px 16px;
  }
  .workflow-benchmarks-strip {
    grid-template-columns: 1fr;
  }
  .workflow-benchmark-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .workflow-benchmark-card:last-child {
    border-bottom: none;
  }
}

/* 5. Persona-Specific Value Modules */
.persona-section {
  padding: 60px clamp(16px, 4vw, 48px);
  width: 100%;
  max-width: 1600px;
  margin: 0 auto 80px auto;
  box-sizing: border-box;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.persona-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.persona-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.persona-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  margin-bottom: 12px;
}

.persona-title {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 12px;
  line-height: 1.3;
}

.persona-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.persona-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}

.persona-feature-item {
  font-size: 12px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.persona-feature-item svg {
  color: #38bdf8;
  flex-shrink: 0;
}

/* 6. Customer Testimonials & Social Proof */
.testimonials-section {
  padding: 60px clamp(16px, 4vw, 48px);
  width: 100%;
  max-width: 1600px;
  margin: 0 auto 80px auto;
  box-sizing: border-box;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.testimonial-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.testimonial-quote {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
  font-style: italic;
}

.testimonial-quote::before {
  content: "“";
  font-size: 28px;
  color: #38bdf8;
  line-height: 0;
  vertical-align: -8px;
  margin-right: 4px;
}

.testimonial-author-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

.testimonial-role {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* 7. Interactive FAQ Accordion */
.faq-section {
  padding: 80px clamp(16px, 4vw, 48px);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 100px auto;
  box-sizing: border-box;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: rgba(13, 17, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.85);
}

.faq-item.active {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  cursor: pointer;
  text-align: left;
  user-select: none;
  gap: 16px;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02) !important;
  color: #38bdf8;
}

.faq-chevron {
  color: #8b949e;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: #38bdf8;
}

.faq-body {
  padding: 0 26px 24px 26px;
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.7;
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

.faq-item.active .faq-body {
  display: block;
}

/* 8. High-Impact Closing Bottom CTA Banner */
.bottom-cta-section {
  padding: 80px clamp(16px, 4vw, 48px);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.bottom-cta-banner,
.bottom-cta-container {
  background: radial-gradient(120% 120% at 50% 0%, rgba(56, 189, 248, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 24px;
  padding: clamp(36px, 6vw, 64px) clamp(20px, 4vw, 36px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 60px rgba(56, 189, 248, 0.12);
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.bottom-cta-banner::before,
.bottom-cta-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 25%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.bottom-cta-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.bottom-cta-subtitle {
  font-size: 16px;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

.bottom-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.bottom-cta-reassurances {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 640px) {
  .bottom-cta-section {
    padding: 48px 16px;
  }
  .bottom-cta-banner,
  .bottom-cta-container {
    padding: 32px 16px;
    border-radius: 16px;
  }
  .bottom-cta-title {
    font-size: 24px;
  }
  .bottom-cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 20px auto;
  }
  .bottom-cta-buttons .btn-hero-primary,
  .bottom-cta-buttons .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
  .bottom-cta-reassurances {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
}

.bottom-cta-reassurance-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bottom-cta-reassurance-item svg {
  color: #38bdf8;
}

/* ==========================================================================
   Hero Platform Workbench Simulator Components (Claude Opus Approved)
   ========================================================================== */

.workbench-sim-panel {
  padding: 24px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 768px) {
  .workbench-sim-panel {
    padding: 16px 12px;
  }
  .ide-tab-btn {
    padding: 10px 14px;
    font-size: 12px;
  }
}

/* 1. Speculative Merge Queue Pipeline */
.mq-pipeline-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.mq-pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  font-size: 12px;
  color: #8b949e;
}

.mq-pipeline-target {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #38bdf8;
  font-weight: 600;
  font-family: var(--font-mono);
}

.mq-nodes-row {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 2px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.mq-node-card {
  flex: 1;
  min-width: 200px;
  flex-shrink: 0;
  background: rgba(13, 17, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: all 0.2s ease;
}

.mq-node-card.merged {
  border-color: rgba(46, 160, 67, 0.5);
  background: rgba(46, 160, 67, 0.08);
}

.mq-node-card.building {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
}

.mq-node-card.queued {
  border-color: rgba(165, 180, 252, 0.3);
  background: rgba(165, 180, 252, 0.04);
}

.mq-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.mq-node-pos {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #94a3b8;
}

.mq-node-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}

.mq-node-badge.success { background: rgba(46, 160, 67, 0.25); color: #3fb950; border: 1px solid rgba(46, 160, 67, 0.4); }
.mq-node-badge.active { background: rgba(56, 189, 248, 0.25); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.mq-node-badge.waiting { background: rgba(148, 163, 184, 0.2); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }

.mq-node-title {
  font-size: 13px;
  font-weight: 600;
  color: #f0f6fc;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mq-node-meta {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
}

.mq-pipeline-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  font-size: 12px;
  color: #94a3b8;
  font-family: var(--font-mono);
}

/* 2. Code Owners Governance */
.co-governance-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.co-pr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.co-pr-title {
  font-size: 13px;
  font-weight: 600;
  color: #f0f6fc;
}

.co-rules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.co-rule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
}

.co-path-badge {
  font-family: var(--font-mono);
  color: #38bdf8;
  font-weight: 500;
}

.co-owner-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}

.co-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
}

.co-status-chip.approved {
  background: rgba(46, 160, 67, 0.15);
  color: #3fb950;
  border: 1px solid rgba(46, 160, 67, 0.3);
}

/* 3. Dependabot Defense */
.dep-defense-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.dep-cve-card {
  background: rgba(13, 17, 23, 0.75);
  border: 1px solid rgba(248, 81, 73, 0.35);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dep-cve-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dep-severity-badge {
  background: rgba(248, 81, 73, 0.2);
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.4);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.dep-cve-title {
  font-size: 13px;
  font-weight: 600;
  color: #f0f6fc;
}

.dep-patch-box {
  background: #040d1a;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dep-patch-line.del { color: #f85149; }
.dep-patch-line.add { color: #3fb950; }

.dep-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
}

/* 4. Wire Engine Terminal */
.wire-terminal-box {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: #e6edf3;
  width: 100%;
}

/* ==========================================================================
   Autonomous Agent Swarm Bento Grid & Agentic Simulator Styles
   ========================================================================== */

.g-agentic-section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 80px 20px;
  box-sizing: border-box;
}

.g-agentic-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .g-agentic-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .g-agentic-bento-grid {
    grid-template-columns: 1fr;
  }
}

.g-bento-card {
  position: relative;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.g-bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.7), 0 0 24px rgba(56, 189, 248, 0.12);
}

.g-bento-hero {
  grid-column: span 2;
}

@media (max-width: 1024px) {
  .g-bento-hero {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .g-bento-hero {
    grid-column: span 1;
  }
}

.g-bento-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(48px);
  opacity: 0.18;
  transition: opacity 0.3s ease;
}

.g-bento-card:hover .g-bento-glow {
  opacity: 0.32;
}

.g-bento-glow.blue { background: #38bdf8; }
.g-bento-glow.purple { background: #a855f7; }
.g-bento-glow.green { background: #3fb950; }
.g-bento-glow.amber { background: #f59e0b; }
.g-bento-glow.cyan { background: #06b6d4; }

.g-bento-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.g-bento-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.g-bento-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.g-bento-badge.blue {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.g-bento-badge.purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.g-bento-badge.green {
  background: rgba(63, 185, 80, 0.12);
  color: #3fb950;
  border: 1px solid rgba(63, 185, 80, 0.25);
}

.g-bento-badge.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.g-bento-badge.cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.g-bento-pill-live {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #38bdf8;
  font-weight: 600;
}

.g-bento-title {
  font-family: var(--font-product);
  font-size: 19px;
  font-weight: 750;
  color: #f8fafc;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.g-bento-desc {
  font-size: 14px;
  font-weight: 450;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 18px 0;
}

.g-bento-desc code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Bento Preview Components */
.g-bento-preview-box {
  background: rgba(13, 17, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-top: auto;
}

.g-bento-queue-sim {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.bento-q-node {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 140px;
  font-size: 11px;
}

.bento-q-node.merged { border-color: rgba(63, 185, 80, 0.35); }
.bento-q-node.testing { border-color: rgba(56, 189, 248, 0.4); background: rgba(56, 189, 248, 0.06); }
.bento-q-node.speculative { border-color: rgba(245, 158, 11, 0.3); }

.bento-q-node .q-tag { font-family: var(--font-mono); color: #38bdf8; font-weight: 700; }
.bento-q-node .q-name { color: #e2e8f0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bento-q-node .q-status { color: #94a3b8; font-size: 10px; }
.bento-q-node .q-status.active { color: #38bdf8; font-weight: 600; }
.bento-q-node .q-status.wait { color: #f59e0b; }

.bento-q-arrow {
  color: #64748b;
  font-weight: 700;
  font-size: 14px;
}

.bento-q-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: #94a3b8;
}

.bento-link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease, gap 0.15s ease;
  margin-top: auto;
}

.bento-link:hover {
  color: #7dd3fc;
  gap: 7px;
}

/* Bento DAG Preview */
.g-bento-dag-box {
  background: rgba(13, 17, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.dag-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e2e8f0;
}

.dag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.dag-dot.blue { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.dag-dot.cyan { background: #06b6d4; box-shadow: 0 0 8px #06b6d4; }
.dag-dot.amber { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }

.dag-chip {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 9999px;
  font-weight: 700;
}
.dag-chip.merged { background: rgba(63, 185, 80, 0.15); color: #3fb950; }
.dag-chip.ready { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.dag-chip.wait { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.dag-line {
  font-size: 11px;
  color: #64748b;
  font-family: var(--font-mono);
  padding-left: 14px;
}
.dag-auto { color: #3fb950; }
.dag-wait { color: #f59e0b; }

/* Bento SARIF Preview */
.g-bento-sarif-box {
  background: rgba(13, 17, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sarif-rule-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.sarif-patch-snippet {
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #020617;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.sarif-patch-snippet .del { color: #f87171; }
.sarif-patch-snippet .add { color: #4ade80; }

.sarif-api-call {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #38bdf8;
}

/* Bento Safety Box */
.g-bento-safety-box {
  background: rgba(13, 17, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #cbd5e1;
}

.safety-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.safety-icon.ok { color: #3fb950; font-weight: 800; }
.safety-icon.trip { color: #f59e0b; font-weight: 800; }

/* Bento Attestation Box */
.g-bento-attest-box {
  background: rgba(13, 17, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #cbd5e1;
}

.attest-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.attest-field code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #22d3ee;
}
.attest-seal {
  font-size: 11px;
  color: #3fb950;
  font-weight: 700;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Simulator Workbench - Stacked DAG & SARIF Panels
   ========================================================================== */

/* Stacked DAG Sim */
.dag-sim-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.dag-sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.dag-stack-pill {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.dag-nodes-flow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.dag-node-card {
  background: rgba(13, 17, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}

.dag-node-card.root-node { border-left: 3px solid #3fb950; }
.dag-node-card.child-node { border-left: 3px solid #38bdf8; background: rgba(56, 189, 248, 0.04); }
.dag-node-card.leaf-node { border-left: 3px solid #f59e0b; opacity: 0.9; }

.dag-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dag-node-id {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
}

.dag-status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
}
.dag-status-pill.merged { background: rgba(63, 185, 80, 0.15); color: #3fb950; }
.dag-status-pill.ready { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.dag-status-pill.blocked { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.dag-node-title {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.dag-node-meta {
  font-size: 11px;
  color: #94a3b8;
  font-family: var(--font-mono);
}
.dag-node-meta code {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 4px;
  border-radius: 3px;
}

.dag-connector-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.dag-rebase-tag { color: #3fb950; font-weight: 600; }
.dag-arrow-down { color: #64748b; font-size: 14px; font-weight: 800; }

.dag-sim-footer {
  font-size: 12px;
  color: #94a3b8;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* SARIF Sim */
.sarif-sim-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.sarif-sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.sarif-pill {
  background: rgba(63, 185, 80, 0.15);
  color: #3fb950;
  border: 1px solid rgba(63, 185, 80, 0.3);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.sarif-policy-badge.approved {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-weight: 600;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.sarif-diagnostic-card {
  background: rgba(13, 17, 23, 0.85);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sarif-diag-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sarif-level.error {
  background: #f85149;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
}

.sarif-rule-id {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #fca5a5;
}

.sarif-msg {
  font-size: 13px;
  color: #f1f5f9;
  margin: 0;
}

.sarif-suggestion-box {
  background: #020617;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sarif-sugg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.sarif-applied-tag {
  color: #3fb950;
  font-weight: 700;
}

.sarif-code-diff {
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sarif-code-diff .diff-line.del { color: #f87171; background: rgba(248, 113, 113, 0.1); padding: 2px 6px; border-radius: 3px; }
.sarif-code-diff .diff-line.add { color: #4ade80; background: rgba(74, 222, 128, 0.1); padding: 2px 6px; border-radius: 3px; }

.sarif-breaker-status {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
}

@media (max-width: 768px) {
  .sarif-breaker-status {
    grid-template-columns: repeat(2, 1fr);
  }
}

.breaker-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
}

.breaker-label { color: #64748b; }
.breaker-val.ok { color: #3fb950; font-family: var(--font-mono); font-weight: 600; }

/* ==========================================================================
   Enterprise Administration & SSO Console Styles
   ========================================================================== */

.admin-layout {
  display: flex;
  min-height: calc(100vh - 60px);
  background: radial-gradient(1200px 600px at 50% -100px, rgba(56, 189, 248, 0.05), transparent 70%),
              radial-gradient(800px 400px at 100% 20%, rgba(99, 102, 241, 0.04), transparent 60%),
              var(--bg-canvas, #080c10);
  color: var(--text-primary);
}

.admin-mobile-bar {
  display: none;
}

.admin-mobile-tabs-scroller {
  display: none;
}

.admin-sidebar {
  width: 270px;
  flex-shrink: 0;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
}

.admin-sidebar-header {
  padding: 0 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.admin-sidebar-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transform: translateX(2px);
}

.admin-nav-item.active {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-nav-badge {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-weight: 600;
}

.admin-nav-item.active .admin-nav-badge {
  background: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.admin-content {
  flex: 1;
  padding: 32px 40px;
  max-width: 1440px;
  overflow-y: auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-header-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.admin-header-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.admin-stat-card {
  background: rgba(22, 27, 34, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 36px -12px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.1);
}

.admin-stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}

.admin-stat-subtitle,
.admin-stat-helper {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

.admin-card {
  background: rgba(22, 27, 34, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 32px rgba(0, 0, 0, 0.4);
}

.admin-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(13, 17, 23, 0.6);
}

.admin-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.admin-card-desc,
.admin-card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.admin-card-body {
  padding: 24px;
}

.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* Thin scrollbar for aesthetics */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.admin-table-wrap::-webkit-scrollbar {
  height: 4px;
}

.admin-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.admin-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
}

.admin-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.admin-table th {
  padding: 12px 18px;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.admin-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.admin-user-avatar-indicator {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #0f172a;
}
.admin-user-avatar-indicator.active {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}
.admin-user-avatar-indicator.suspended {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.admin-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap !important;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.admin-status-badge.active {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.08);
}

.admin-status-badge.suspended {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.08);
}

.admin-status-badge.admin {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
}

.admin-status-badge.member {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.preset-pill-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.preset-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 17, 23, 0.7);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.preset-pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.preset-pill.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.admin-code-block {
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  margin-bottom: 14px;
}

.license-meter-wrapper {
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-full);
  height: 8px;
  width: 100%;
  overflow: hidden;
  margin: 12px 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.license-meter-bar {
  height: 100%;
  background: linear-gradient(90deg, #2ea043, #38bdf8);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.admin-form-group {
  margin-bottom: 18px;
}

.admin-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.admin-form-help {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-input {
  width: 100%;
  background: rgba(13, 17, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 9px 13px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-sans);
  transition: all 0.15s;
}

.admin-input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.admin-textarea {
  width: 100%;
  background: rgba(13, 17, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 12px;
  font-family: var(--font-mono);
  resize: vertical;
}

.admin-switch-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ==========================================================================
   Admin Mobile & Responsive Layout Enhancements
   ========================================================================== */

@media (max-width: 900px) {
  .admin-layout {
    flex-direction: column !important;
    min-height: auto !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }

  .admin-mobile-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(13, 17, 23, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 60px;
    z-index: 90;
    width: 100%;
    box-sizing: border-box;
  }

  .admin-mobile-bar-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .admin-mobile-bar-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
  }

  .admin-mobile-active-section {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-mobile-active-section strong {
    color: #38bdf8;
    font-weight: 600;
  }

  .admin-mobile-tabs-scroller {
    display: flex !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 8px 12px;
    gap: 8px;
    background: rgba(10, 14, 20, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    scrollbar-width: none;
    width: 100%;
    box-sizing: border-box;
  }

  .admin-mobile-tabs-scroller::-webkit-scrollbar {
    display: none;
  }

  .admin-mobile-tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full, 9999px);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none !important;
    flex-shrink: 0;
    transition: all 0.15s ease;
  }

  .admin-mobile-tab-pill.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-weight: 600;
  }

  .admin-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 16px !important;
    display: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5) !important;
  }

  .admin-sidebar.mobile-open {
    display: flex !important;
    animation: adminSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes adminSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .admin-content {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    padding: 18px 14px !important;
    overflow-x: hidden !important;
  }

  .admin-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
  }

  .admin-header > div:last-child {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .admin-header > div:last-child button,
  .admin-header > div:last-child a {
    flex: 1 1 auto !important;
    justify-content: center !important;
    min-width: 120px !important;
  }

  .admin-header-title {
    font-size: 20px !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
    word-break: break-word !important;
  }

  .admin-header-desc {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  .admin-stat-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
  }

  .admin-stat-card {
    padding: 16px 18px !important;
  }

  .admin-stat-value {
    font-size: 22px !important;
  }

  .admin-card {
    margin-bottom: 16px !important;
    border-radius: 10px !important;
  }

  .admin-card-header {
    padding: 14px 16px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .admin-card-body {
    padding: 14px 16px !important;
  }

  .admin-table {
    min-width: 680px !important;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 12px !important;
    font-size: 12px !important;
  }

  /* Universal responsive override for multi-column grids in admin */
  .admin-content div[style*="grid-template-columns: 1fr 1fr"],
  .admin-content div[style*="grid-template-columns:1fr 1fr"],
  .admin-content div[style*="grid-template-columns: 1.6fr 1.2fr"],
  .admin-content div[style*="grid-template-columns: 2fr 1fr"],
  .admin-content div[style*="grid-template-columns: repeat(3, 1fr)"],
  .admin-content div[style*="grid-template-columns: repeat(4, 1fr)"],
  .admin-content div[style*="grid-template-columns:repeat(4, 1fr)"],
  .admin-layout div[style*="grid-template-columns: 1fr 1fr"],
  .admin-layout div[style*="grid-template-columns:1fr 1fr"],
  .admin-layout div[style*="grid-template-columns: 1.6fr 1.2fr"],
  .admin-layout div[style*="grid-template-columns: 2fr 1fr"],
  .admin-layout div[style*="grid-template-columns: repeat(3, 1fr)"],
  .admin-layout div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

@media (max-width: 640px) {
  .admin-content {
    padding: 14px 10px !important;
  }
  .admin-header-title {
    font-size: 18px !important;
  }
  .admin-card-header {
    padding: 12px 14px !important;
  }
  .admin-card-body {
    padding: 12px 14px !important;
  }
}

/* ==========================================================================
   Advanced Admin Monitoring Components & Subnav Systems
   ========================================================================== */

.pulse-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.pulse-dot.online {
  background: #3fb950;
  box-shadow: 0 0 8px #3fb950;
}

.pulse-dot.online::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #3fb950;
  animation: pulseRadar 2s infinite ease-out;
}

.pulse-dot.warning {
  background: #d29922;
  box-shadow: 0 0 8px #d29922;
}

.pulse-dot.danger {
  background: #f85149;
  box-shadow: 0 0 8px #f85149;
}

@keyframes pulseRadar {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.0); opacity: 0; }
}

.admin-subnav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 17, 23, 0.7);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
  flex-wrap: wrap;
  width: fit-content;
}

.admin-subnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-subnav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.admin-subnav-btn.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.telemetry-progress-wrapper {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  height: 8px;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.telemetry-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(22, 27, 34, 0.7);
  color: var(--text-secondary);
}

.live-pill:hover {
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--text-primary);
}

.live-pill.active {
  background: rgba(46, 160, 67, 0.15);
  border-color: rgba(46, 160, 67, 0.4);
  color: #3fb950;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 17, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  flex: 1;
  max-width: 360px;
}

.admin-search-box input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 13px;
  width: 100%;
  outline: none;
}

/* ==========================================
 * Enterprise Admin Pagination Component
 * ========================================== */
.admin-pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-top: 14px;
  background: rgba(13, 17, 23, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 8px);
  flex-wrap: wrap;
}

.admin-pagination-info {
  font-size: 13px;
  color: var(--text-secondary, #8b949e);
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-pagination-info strong {
  color: var(--text-primary, #f0f6fc);
}

.admin-pagination-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-pagination-size {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted, #6e7681);
}

.admin-pagination-select {
  background: rgba(22, 27, 34, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text-primary, #f0f6fc);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-pagination-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.admin-pagination-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.admin-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary, #8b949e);
  background: rgba(22, 27, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.admin-page-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary, #f0f6fc);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.admin-page-btn.active {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.admin-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.admin-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 32px;
  color: var(--text-muted, #6e7681);
  font-size: 13px;
  user-select: none;
}

/* ==========================================
 * Commit Verification Badges & Popovers
 * ========================================== */
.commit-badge-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.commit-verify-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  padding: 0 8px;
  border-radius: 2em;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  border: 1px solid transparent;
  user-select: none;
  background: transparent;
  outline: none;
}

.commit-verify-badge.commit-badge-verified {
  color: #3fb950;
  border-color: rgba(63, 185, 80, 0.4);
  background: rgba(63, 185, 80, 0.1);
}

.commit-verify-badge.commit-badge-verified:hover {
  background: rgba(63, 185, 80, 0.2);
  border-color: #3fb950;
}

.commit-verify-badge.commit-badge-unverified {
  color: #d29922;
  border-color: rgba(210, 153, 34, 0.4);
  background: rgba(210, 153, 34, 0.1);
}

.commit-verify-badge.commit-badge-unverified:hover {
  background: rgba(210, 153, 34, 0.2);
  border-color: #d29922;
}

.commit-verify-popover {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  width: 320px;
  background-color: var(--bg-surface, #161b22);
  border: 1px solid var(--border-default, #30363d);
  border-radius: var(--radius-md, 6px);
  box-shadow: 0 8px 24px rgba(1, 4, 9, 0.4);
  z-index: 1000;
  text-align: left;
  animation: popoverFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.commit-badge-wrapper:hover .commit-verify-popover,
.commit-badge-wrapper.open .commit-verify-popover {
  display: block;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.commit-verify-popover-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-muted, #21262d);
}

.commit-verify-popover-header.verified {
  color: #3fb950;
  background: rgba(63, 185, 80, 0.08);
}

.commit-verify-popover-header.unverified {
  color: #d29922;
  background: rgba(210, 153, 34, 0.08);
}

.commit-verify-popover-body {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-primary, #c9d1d9);
  line-height: 1.5;
}

.commit-verify-desc {
  margin: 0 0 10px 0;
  color: var(--text-secondary, #8b949e);
}

.commit-verify-meta {
  background: var(--bg-inset, #0d1117);
  border: 1px solid var(--border-default, #30363d);
  border-radius: var(--radius-sm, 4px);
  padding: 8px 10px;
  font-size: 11px;
}

.commit-verify-row {
  display: flex;
  margin-bottom: 4px;
  gap: 6px;
}

.commit-verify-row:last-child {
  margin-bottom: 0;
}

.commit-verify-row .label {
  color: var(--text-muted, #8b949e);
  font-weight: 600;
  min-width: 75px;
}

.commit-verify-row .val {
  color: var(--text-primary, #c9d1d9);
}

.commit-verify-row .mono {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
}

.commit-verify-row .wrap {
  word-break: break-all;
}

/* ==========================================
 * GitCore Documentation System (GitCore Docs)
 * ========================================== */

/* --- Primer Subdomain Navbar (docs.github.com/en) --- */
.docs-subdomain-navbar {
  background: var(--bg-surface, #0d1117);
  border-bottom: 1px solid var(--border-default, #30363d);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.docs-subdomain-navbar-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.docs-subdomain-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.docs-subdomain-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.docs-subdomain-brand-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}

.docs-brand-strong {
  font-weight: 700;
  color: #f0f6fc;
}

.docs-subdomain-pill {
  color: var(--text-muted, #8b949e);
  font-weight: 500;
}

.docs-version-picker-wrapper {
  position: relative;
}

.docs-version-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-default, #30363d);
  border-radius: 6px;
  color: var(--text-primary, #c9d1d9);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.docs-version-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #58a6ff;
}

.docs-version-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 210px;
  background: var(--bg-surface, #161b22);
  border: 1px solid var(--border-default, #30363d);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  z-index: 120;
  overflow: hidden;
  padding: 4px 0;
}

.docs-version-menu-header {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted, #8b949e);
  border-bottom: 1px solid var(--border-muted, #21262d);
}

.docs-version-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--text-primary, #c9d1d9);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.docs-version-option:hover {
  background: rgba(88, 166, 255, 0.12);
  color: #58a6ff;
}

.docs-version-option.active {
  color: #58a6ff;
  font-weight: 600;
}

.docs-version-option .check-icon {
  width: 14px;
  display: inline-block;
  color: #3fb950;
  font-weight: bold;
}

.docs-subdomain-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.docs-subdomain-search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-inset, #0d1117);
  border: 1px solid var(--border-default, #30363d);
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--text-muted, #8b949e);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 240px;
}

.docs-subdomain-search-trigger:hover {
  border-color: #58a6ff;
  color: var(--text-primary, #c9d1d9);
}

.docs-subdomain-search-trigger .search-placeholder {
  flex: 1;
  text-align: left;
}

.docs-subdomain-search-trigger .search-kbd-hint {
  background: var(--bg-surface, #161b22);
  border: 1px solid var(--border-default, #30363d);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  color: var(--text-muted, #8b949e);
}

.docs-subdomain-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.docs-subdomain-link {
  color: var(--text-secondary, #8b949e);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.docs-subdomain-link:hover,
.docs-subdomain-link.active {
  color: #58a6ff;
}

.docs-subdomain-link.return-link {
  color: var(--text-primary, #f0f6fc);
}

/* Mobile Nav Elements (Hidden on Desktop) */
.docs-mobile-menu-btn {
  display: none;
}

.docs-subdomain-search-trigger-mobile {
  display: none;
}

.docs-mobile-nav-dropdown {
  display: none;
}

.docs-mobile-toolbar {
  display: none;
}

.docs-mobile-toc-drawer {
  display: none;
}

.docs-sidebar-backdrop {
  display: none;
}

.docs-sidebar-close-btn {
  display: none;
}

/* --- Hero Eyebrow --- */
.docs-hero-eyebrow {
  margin-bottom: 16px;
}

.docs-badge-eyebrow {
  display: inline-block;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.2px;
}

.docs-category-title-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
}

.docs-category-title-link:hover .docs-category-title {
  color: #58a6ff;
}

.docs-category-title-link .chevron-icon {
  color: var(--text-muted, #8b949e);
  transition: transform 0.15s ease;
}

.docs-category-title-link:hover .chevron-icon {
  color: #58a6ff;
  transform: translateX(3px);
}

.docs-quick-tag.highlighted {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.docs-quick-tag.highlighted:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: #a855f7;
  color: #e9d5ff;
}

.docs-category-article-link.view-all-link {
  color: #58a6ff;
  font-size: 13px;
  margin-top: 4px;
}

/* --- Site Policy Hub Styles (https://docs.github.com/en/site-policy) --- */
.site-policy-hero {
  padding: 32px 0 24px 0;
  border-bottom: 1px solid var(--border-default, #30363d);
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.8) 0%, rgba(8, 12, 16, 1) 100%);
}

.site-policy-hero-inner {
  max-width: 900px;
}

.site-policy-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #f0f6fc;
  letter-spacing: -0.025em;
  margin: 0 0 12px 0;
}

.site-policy-subtitle {
  font-size: 16px;
  color: var(--text-secondary, #8b949e);
  line-height: 1.6;
  margin: 0 0 24px 0;
  max-width: 720px;
}

.site-policy-filter-bar {
  display: flex;
  align-items: center;
  background: var(--bg-surface, #161b22);
  border: 1px solid var(--border-default, #30363d);
  border-radius: 8px;
  padding: 10px 16px;
  max-width: 560px;
  transition: all 0.15s ease;
}

.site-policy-filter-bar:focus-within {
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}

.site-policy-filter-bar svg {
  color: var(--text-muted, #8b949e);
  margin-right: 12px;
  flex-shrink: 0;
}

.site-policy-filter-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary, #c9d1d9);
  font-size: 14px;
}

/* Recommended Cards Section */
.site-policy-recommended-section {
  padding: 40px 0 24px 0;
}

.site-policy-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #f0f6fc;
  margin: 0 0 20px 0;
  letter-spacing: -0.015em;
}

.site-policy-recommended-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.site-policy-recommended-card {
  background: var(--bg-surface, #161b22);
  border: 1px solid var(--border-default, #30363d);
  border-radius: 10px;
  padding: 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.site-policy-recommended-card:hover {
  border-color: #58a6ff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.site-policy-card-group {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #58a6ff;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.site-policy-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #f0f6fc;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.site-policy-card-desc {
  font-size: 13px;
  color: var(--text-secondary, #8b949e);
  line-height: 1.5;
  margin: 0 0 16px 0;
  flex: 1;
}

.site-policy-card-link {
  font-size: 13px;
  font-weight: 600;
  color: #58a6ff;
}

/* Policy Groups & Lists */
.site-policy-groups-section {
  padding: 24px 0 60px 0;
}

.site-policy-groups-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.site-policy-group-box {
  background: var(--bg-surface, #161b22);
  border: 1px solid var(--border-default, #30363d);
  border-radius: 10px;
  overflow: hidden;
}

.site-policy-group-header {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-default, #30363d);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-policy-group-title {
  font-size: 18px;
  font-weight: 700;
  color: #f0f6fc;
  margin: 0 0 4px 0;
}

.site-policy-group-desc {
  font-size: 13px;
  color: var(--text-secondary, #8b949e);
  margin: 0;
}

.site-policy-group-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, #8b949e);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 12px;
}

.site-policy-articles-list {
  display: flex;
  flex-direction: column;
}

.site-policy-article-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  text-decoration: none;
  color: var(--text-primary, #c9d1d9);
  border-bottom: 1px solid var(--border-muted, #21262d);
  transition: all 0.15s ease;
}

.site-policy-article-item:last-child {
  border-bottom: none;
}

.site-policy-article-item:hover {
  background: var(--bg-inset, #0d1117);
  color: #58a6ff;
  padding-left: 28px;
}

.site-policy-article-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-policy-article-left .doc-icon {
  color: var(--text-muted, #8b949e);
  flex-shrink: 0;
}

.site-policy-article-item:hover .doc-icon {
  color: #58a6ff;
}

.site-policy-article-name {
  font-size: 14px;
  font-weight: 500;
}

.site-policy-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted, #8b949e);
}

.site-policy-article-time {
  font-size: 12px;
}

.site-policy-article-meta .chevron-icon {
  transition: transform 0.15s ease;
}

.site-policy-article-item:hover .chevron-icon {
  color: #58a6ff;
  transform: translateX(3px);
}

/* --- Hub View --- */
.docs-hub-wrapper {
  background-color: var(--bg-canvas, #080c10);
  min-height: 100vh;
  color: var(--text-primary, #c9d1d9);
  padding: 0;
  margin: 0;
  width: 100% !important;
  max-width: 100% !important;
}

.docs-reader-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0;
  padding: 0;
  background-color: var(--bg-canvas, #080c10);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.docs-hero-section {
  position: relative;
  overflow: hidden;
  padding: 64px 24px 56px 24px;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.08) 0%, rgba(13, 17, 23, 1) 75%), #0d1117;
  border-bottom: 1px solid var(--border-default, #21262d);
  width: 100% !important;
}

.docs-hero-container {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.docs-hero-eyebrow {
  margin-bottom: 14px;
}

.docs-badge-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: #58a6ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.docs-hero-title {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 16px 0;
}

.docs-hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary, #8b949e);
  line-height: 1.6;
  margin: 0 auto 32px auto;
  max-width: 700px;
}

.docs-search-bar-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.docs-search-bar {
  display: flex;
  align-items: center;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 10px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.15s ease;
  cursor: text;
}

.docs-search-bar:focus-within,
.docs-search-bar:hover {
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.25);
}

.docs-search-bar svg {
  color: #8b949e;
  margin-right: 12px;
  flex-shrink: 0;
}

.docs-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: #f0f6fc;
  font-family: inherit;
}

.docs-search-bar input::placeholder {
  color: #8b949e;
}

.docs-search-kbd {
  background: #21262d;
  border: 1px solid #30363d;
  color: #8b949e;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 4px;
}

.docs-quick-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 12px;
}

.quick-tag-label {
  color: #8b949e;
  font-weight: 500;
}

.docs-quick-tag {
  background: #161b22;
  border: 1px solid #30363d;
  color: #58a6ff;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s ease;
}

.docs-quick-tag:hover {
  background: #21262d;
  border-color: #58a6ff;
  color: #79c0ff;
}

/* --- Container & Section Headers --- */
.docs-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.docs-section-heading {
  margin-bottom: 28px;
}

.docs-section-heading h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  letter-spacing: -0.02em;
  margin: 0 0 6px 0;
}

.docs-section-heading p {
  font-size: 14px;
  color: var(--text-secondary, #8b949e);
  margin: 0;
}

/* --- Featured Grid --- */
.docs-featured-section {
  padding: 56px 0 28px 0;
}

.docs-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.docs-feature-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-surface, #161b22);
  border: 1px solid var(--border-default, #30363d);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.docs-feature-card:hover {
  border-color: #58a6ff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.docs-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.docs-feature-body {
  flex: 1;
}

.docs-feature-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #58a6ff;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}

.docs-feature-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.docs-feature-body p {
  font-size: 13px;
  color: var(--text-secondary, #8b949e);
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.docs-read-link {
  font-size: 13px;
  font-weight: 600;
  color: #58a6ff;
}

/* --- Categories Bento Grid --- */
.docs-categories-section {
  padding: 56px 0 64px 0;
  width: 100%;
}

.docs-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1100px) {
  .docs-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .docs-categories-grid {
    grid-template-columns: 1fr;
  }
}

.docs-category-card {
  background: var(--bg-surface, #161b22);
  border: 1px solid var(--border-default, #30363d);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.docs-category-card:hover {
  border-color: #58a6ff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.docs-category-title-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-primary, #ffffff);
}

.docs-category-title-link:hover .docs-category-title {
  color: #58a6ff;
}

.docs-category-title-link:hover .chevron-icon {
  color: #58a6ff;
  transform: translateX(3px);
}

.chevron-icon {
  transition: transform 0.15s ease, color 0.15s ease;
  color: var(--text-muted, #8b949e);
  flex-shrink: 0;
}

.docs-category-header {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.docs-category-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.docs-category-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin: 0 0 4px 0;
}

.docs-category-desc {
  font-size: 12.5px;
  color: var(--text-secondary, #8b949e);
  margin: 0;
  line-height: 1.45;
}

.docs-category-articles {
  border-top: 1px solid var(--border-muted, #21262d);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-category-article-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13.5px;
  color: var(--text-primary, #c9d1d9);
  transition: all 0.15s ease;
}

.docs-category-article-link:hover {
  background: var(--bg-inset, #0d1117);
  color: #58a6ff;
  padding-left: 14px;
}

.docs-article-time {
  font-size: 11px;
  color: var(--text-muted, #8b949e);
}

/* --- Footer CTA --- */
.docs-footer-cta {
  padding-top: 20px;
  padding-bottom: 56px;
}

.docs-cta-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.docs-cta-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.docs-cta-box p {
  font-size: 13.5px;
  color: var(--text-secondary, #8b949e);
  margin: 0;
}

/* --- Reader 3-Column Layout --- */
.docs-reader-layout {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 60px);
  background-color: var(--bg-canvas, #080c10);
}

/* Sidebar */
.docs-sidebar {
  width: 290px;
  border-right: 1px solid var(--border-default, #30363d);
  background-color: var(--bg-surface, #0d1117);
  height: calc(100vh - 60px);
  position: sticky;
  top: 60px;
  overflow-y: auto;
  flex-shrink: 0;
  padding: 16px 0;
}

.docs-sidebar-header {
  padding: 0 16px 14px 16px;
  border-bottom: 1px solid var(--border-muted, #21262d);
  margin-bottom: 12px;
}

.docs-back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted, #8b949e);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 12px;
}

.docs-back-link:hover {
  color: #58a6ff;
}

.docs-search-trigger-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--bg-inset, #161b22);
  border: 1px solid var(--border-default, #30363d);
  border-radius: 6px;
  color: var(--text-muted, #8b949e);
  font-size: 12.5px;
  cursor: pointer;
  text-align: left;
}

.docs-search-trigger-btn:hover {
  border-color: #58a6ff;
  color: var(--text-primary, #c9d1d9);
}

.docs-search-trigger-btn kbd {
  background: var(--bg-canvas, #0d1117);
  border: 1px solid var(--border-default, #30363d);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-family: var(--font-mono, monospace);
}

.docs-nav-tree {
  padding: 0 8px;
}

.docs-nav-group {
  margin-bottom: 12px;
}

.docs-nav-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #8b949e);
}

.docs-nav-group-list {
  list-style: none;
  padding: 0;
  margin: 2px 0 0 0;
}

.docs-nav-link {
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary, #8b949e);
  text-decoration: none;
  line-height: 1.4;
  transition: all 0.1s ease;
}

.docs-nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary, #c9d1d9);
}

.docs-nav-link.active {
  background: rgba(88, 166, 255, 0.12);
  color: #58a6ff;
  font-weight: 600;
}

/* Center Content */
.docs-main-content {
  flex: 1;
  max-width: 900px;
  padding: 32px clamp(20px, 4vw, 56px) 64px clamp(20px, 4vw, 56px);
  margin: 0 auto;
  min-width: 0;
}

.docs-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted, #8b949e);
  margin-bottom: 24px;
}

.docs-breadcrumbs a {
  color: var(--text-muted, #8b949e);
  text-decoration: none;
}

.docs-breadcrumbs a:hover {
  color: #58a6ff;
}

.docs-breadcrumb-separator {
  color: var(--border-default, #30363d);
}

.docs-breadcrumbs .current {
  color: var(--text-primary, #c9d1d9);
  font-weight: 500;
}

.docs-article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-muted, #21262d);
}

.docs-article-meta-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.docs-badge-category {
  background: rgba(88, 166, 255, 0.12);
  color: #58a6ff;
  border: 1px solid rgba(88, 166, 255, 0.3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}

.docs-badge-updated {
  font-size: 12px;
  color: var(--text-muted, #8b949e);
}

.docs-article-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 12px 0;
}

.docs-article-lead {
  font-size: 16px;
  color: var(--text-secondary, #8b949e);
  line-height: 1.6;
  margin: 0;
}

/* Article Body Typography */
.docs-article-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-primary, #c9d1d9);
}

.docs-h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  letter-spacing: -0.015em;
  margin: 36px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-muted, #21262d);
  position: relative;
}

.docs-h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
  margin: 28px 0 12px 0;
}

.docs-anchor-link {
  opacity: 0;
  color: var(--text-muted, #8b949e);
  text-decoration: none;
  margin-right: 4px;
  transition: opacity 0.15s ease;
}

.docs-heading:hover .docs-anchor-link {
  opacity: 1;
}

.docs-paragraph {
  margin: 0 0 16px 0;
}

.docs-divider {
  border: none;
  border-top: 1px solid var(--border-muted, #21262d);
  margin: 36px 0;
}

.docs-list-item {
  margin-bottom: 6px;
}

.docs-step-row {
  display: flex;
  gap: 14px;
  margin: 14px 0;
  align-items: flex-start;
}

.docs-step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(88, 166, 255, 0.15);
  color: #58a6ff;
  border: 1px solid rgba(88, 166, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.docs-step-content {
  flex: 1;
  font-size: 14.5px;
}

.docs-inline-code {
  background: rgba(110, 118, 129, 0.2);
  color: #79c0ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 0.9em;
}

.docs-link {
  color: #58a6ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.docs-link:hover {
  color: #79c0ff;
}

/* Code Blocks */
.docs-code-container {
  margin: 20px 0 24px 0;
  background: #0d1117;
  border: 1px solid var(--border-default, #30363d);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.docs-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #161b22;
  border-bottom: 1px solid var(--border-muted, #21262d);
}

.docs-code-lang {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #8b949e);
  letter-spacing: 0.5px;
}

.btn-copy-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted, #8b949e);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-code:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary, #c9d1d9);
}

.btn-copy-code.copied {
  color: #3fb950;
  border-color: rgba(63, 185, 80, 0.3);
}

.docs-pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono, monospace);
  font-size: 13.5px;
  line-height: 1.5;
  background: transparent;
}

/* Alerts */
.docs-alert {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 4px solid #58a6ff;
  border-radius: 0 8px 8px 0;
  background: rgba(56, 189, 248, 0.08);
}

.docs-alert-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #58a6ff;
}

.docs-alert-body {
  font-size: 13.5px;
  line-height: 1.55;
}

.docs-alert-note {
  border-left-color: #58a6ff;
  background: rgba(88, 166, 255, 0.08);
}
.docs-alert-note .docs-alert-header { color: #58a6ff; }

.docs-alert-tip {
  border-left-color: #3fb950;
  background: rgba(63, 185, 80, 0.08);
}
.docs-alert-tip .docs-alert-header { color: #3fb950; }

.docs-alert-important {
  border-left-color: #a371f7;
  background: rgba(163, 113, 247, 0.08);
}
.docs-alert-important .docs-alert-header { color: #a371f7; }

.docs-alert-warning {
  border-left-color: #d29922;
  background: rgba(210, 153, 34, 0.08);
}
.docs-alert-warning .docs-alert-header { color: #d29922; }

/* Tables */
.docs-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border-default, #30363d);
  border-radius: 8px;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.docs-table th {
  background: var(--bg-surface, #161b22);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-default, #30363d);
  color: var(--text-primary, #c9d1d9);
  font-weight: 600;
}

.docs-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-muted, #21262d);
  color: var(--text-secondary, #8b949e);
}

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

/* Feedback Box */
.docs-feedback-card {
  margin-top: 48px;
  padding: 20px 24px;
  background: var(--bg-surface, #161b22);
  border: 1px solid var(--border-default, #30363d);
  border-radius: 8px;
}

.docs-feedback-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  font-weight: 500;
}

.docs-feedback-buttons {
  display: flex;
  gap: 8px;
}

.btn-feedback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--bg-inset, #0d1117);
  border: 1px solid var(--border-default, #30363d);
  border-radius: 6px;
  color: var(--text-primary, #c9d1d9);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-feedback:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #58a6ff;
}

.docs-feedback-thanks {
  color: #3fb950;
  font-size: 13px;
  font-weight: 600;
}

/* Pagination Links */
.docs-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-muted, #21262d);
  gap: 16px;
}

.docs-pagination-link {
  display: flex;
  flex-direction: column;
  padding: 12px 18px;
  background: var(--bg-surface, #161b22);
  border: 1px solid var(--border-default, #30363d);
  border-radius: 8px;
  text-decoration: none;
  max-width: 45%;
  transition: all 0.2s ease;
}

.docs-pagination-link:hover {
  border-color: #58a6ff;
  transform: translateY(-1px);
}

.docs-pagination-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, #8b949e);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.docs-pagination-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #58a6ff;
}

/* Right TOC Sidebar */
.docs-toc-sidebar {
  width: 250px;
  padding: 32px 16px 32px 0;
  height: calc(100vh - 60px);
  position: sticky;
  top: 60px;
  overflow-y: auto;
  flex-shrink: 0;
}

.docs-toc-container {
  border-left: 1px solid var(--border-muted, #21262d);
  padding-left: 16px;
}

.docs-toc-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #8b949e);
  margin-bottom: 12px;
}

.docs-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-toc-item {
  margin-bottom: 8px;
}

.docs-toc-item.level-3 {
  padding-left: 12px;
}

.docs-toc-link {
  font-size: 12.5px;
  color: var(--text-muted, #8b949e);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  transition: color 0.15s ease;
}

.docs-toc-link:hover,
.docs-toc-link.active {
  color: #58a6ff;
  font-weight: 500;
}

.docs-toc-divider {
  border-top: 1px solid var(--border-muted, #21262d);
  margin: 20px 0;
}

.docs-toc-extra {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-toc-extra-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted, #8b949e);
  text-decoration: none;
}

.docs-toc-extra-link:hover {
  color: #58a6ff;
}

/* --- Search Modal (Cmd+K) --- */
.docs-search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  animation: fadeIn 0.15s ease-out;
}

.docs-search-modal-card {
  width: 100%;
  max-width: 640px;
  background: var(--bg-surface, #161b22);
  border: 1px solid var(--border-default, #30363d);
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.docs-search-modal-header {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-muted, #21262d);
  gap: 12px;
}

.docs-search-modal-header svg {
  color: var(--text-muted, #8b949e);
  flex-shrink: 0;
}

.docs-search-modal-header input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--text-primary, #c9d1d9);
  font-family: inherit;
}

.docs-search-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted, #8b949e);
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
}

.docs-search-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
}

.docs-search-empty-state {
  padding: 32px 16px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted, #8b949e);
}

.docs-search-result-item {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 4px;
  transition: all 0.12s ease;
}

.docs-search-result-item:hover,
.docs-search-result-item.selected {
  background: rgba(88, 166, 255, 0.12);
}

.docs-search-result-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
  margin-bottom: 4px;
}

.docs-search-result-cat {
  font-size: 11px;
  font-weight: 500;
  color: #58a6ff;
  background: rgba(88, 166, 255, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
}

.docs-search-result-snippet {
  font-size: 12.5px;
  color: var(--text-secondary, #8b949e);
  line-height: 1.4;
}

.docs-search-modal-footer {
  padding: 10px 16px;
  background: var(--bg-inset, #0d1117);
  border-top: 1px solid var(--border-muted, #21262d);
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--text-muted, #8b949e);
}

.docs-search-modal-footer kbd {
  background: var(--bg-surface, #161b22);
  border: 1px solid var(--border-default, #30363d);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-mono, monospace);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1100px) {
  .docs-toc-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Prevent horizontal layout blowout */
  .docs-hub-wrapper,
  .docs-reader-wrapper,
  .site-policy-hub {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  body.docs-sidebar-locked {
    overflow: hidden !important;
  }

  /* 1. Header Navigation Bar */
  .docs-subdomain-navbar-container {
    padding: 10px 16px;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
  }

  .docs-subdomain-left {
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  .docs-subdomain-logo {
    gap: 6px;
    min-width: 0;
  }

  .docs-subdomain-brand-title {
    font-size: 14px;
    white-space: nowrap;
  }

  .docs-version-btn {
    padding: 3px 8px;
    font-size: 11.5px;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .docs-subdomain-right {
    gap: 8px;
    flex-shrink: 0;
  }

  .docs-subdomain-links {
    display: none !important;
  }

  .docs-subdomain-search-trigger {
    min-width: 0;
    padding: 6px 10px;
    font-size: 12px;
    gap: 6px;
  }

  .docs-subdomain-search-trigger .search-kbd-hint {
    display: none;
  }

  .docs-subdomain-search-trigger .search-placeholder {
    display: none;
  }

  .docs-subdomain-search-trigger-mobile {
    display: flex !important;
  }

  .docs-mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-default, #30363d);
    border-radius: 6px;
    color: var(--text-primary, #c9d1d9);
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .docs-mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #58a6ff;
  }

  .docs-mobile-nav-dropdown {
    display: block;
    background: var(--bg-surface, #161b22);
    border-top: 1px solid var(--border-muted, #21262d);
    border-bottom: 1px solid var(--border-default, #30363d);
    animation: fadeIn 0.15s ease;
  }

  .docs-mobile-nav-dropdown.hidden {
    display: none !important;
  }

  .docs-mobile-nav-inner {
    padding: 8px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .docs-mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary, #8b949e);
    text-decoration: none;
    transition: all 0.15s ease;
  }

  .docs-mobile-link:hover,
  .docs-mobile-link.active {
    background: rgba(88, 166, 255, 0.12);
    color: #58a6ff;
  }

  .docs-mobile-link.return-link {
    color: var(--text-primary, #f0f6fc);
    border-top: 1px solid var(--border-muted, #21262d);
    margin-top: 4px;
    padding-top: 10px;
  }

  /* 2. Reader Layout & Mobile Action Toolbar */
  .docs-reader-layout {
    flex-direction: column;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .docs-mobile-toolbar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-surface, #0d1117);
    border-bottom: 1px solid var(--border-muted, #21262d);
    position: sticky;
    top: 52px;
    z-index: 90;
  }

  .docs-mobile-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-default, #30363d);
    border-radius: 6px;
    color: var(--text-primary, #c9d1d9);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .docs-mobile-toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #58a6ff;
  }

  /* 3. Mobile Table of Contents Bottom Sheet */
  .docs-mobile-toc-drawer {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 65vh;
    background: var(--bg-surface, #161b22);
    border-top: 1px solid var(--border-default, #30363d);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.7);
    z-index: 950;
    padding: 16px 20px 24px;
    overflow-y: auto;
    animation: slideUpMobile 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .docs-mobile-toc-drawer.hidden {
    display: none !important;
  }

  .docs-mobile-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-muted, #21262d);
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
  }

  .docs-mobile-drawer-close {
    background: transparent;
    border: none;
    font-size: 22px;
    color: var(--text-muted, #8b949e);
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
  }

  .docs-mobile-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .docs-mobile-toc-item.level-3 {
    padding-left: 14px;
  }

  .docs-mobile-toc-link {
    display: block;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-secondary, #8b949e);
    text-decoration: none;
    line-height: 1.4;
    transition: all 0.12s ease;
  }

  .docs-mobile-toc-link:hover {
    background: rgba(88, 166, 255, 0.12);
    color: #58a6ff;
  }

  /* 4. Mobile Off-Canvas Sidebar Drawer */
  .docs-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    animation: fadeIn 0.15s ease;
  }

  .docs-sidebar-backdrop.hidden {
    display: none !important;
  }

  .docs-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    z-index: 999;
    background: var(--bg-surface, #0d1117);
    border-right: 1px solid var(--border-default, #30363d);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.7);
    padding: 16px 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .docs-sidebar.mobile-open {
    display: block !important;
    animation: slideInLeftMobile 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .docs-sidebar-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }

  .docs-sidebar-close-btn {
    display: block !important;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-muted, #8b949e);
    cursor: pointer;
    line-height: 1;
    padding: 0 6px;
  }

  .docs-sidebar-close-btn:hover {
    color: #fff;
  }

  /* 5. Main Content Area & Typography */
  .docs-main-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 20px 16px 48px !important;
    box-sizing: border-box !important;
  }

  .docs-breadcrumbs {
    flex-wrap: wrap;
    gap: 4px 6px;
    font-size: 12px;
    margin-bottom: 16px;
    line-height: 1.5;
  }

  .docs-article-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
  }

  .docs-article-meta-badges {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
  }

  .docs-article-title {
    font-size: clamp(22px, 6vw, 32px);
    line-height: 1.25;
    word-break: break-word;
    margin-bottom: 10px;
  }

  .docs-article-lead {
    font-size: 14.5px;
    line-height: 1.55;
    word-break: break-word;
  }

  .docs-article-body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    font-size: 14.5px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .docs-h2 {
    font-size: clamp(18px, 4.8vw, 22px);
    margin: 28px 0 14px 0;
    word-break: break-word;
  }

  .docs-h3 {
    font-size: clamp(15px, 4vw, 17px);
    margin: 22px 0 10px 0;
    word-break: break-word;
  }

  /* 6. Code Containers & Tables */
  .docs-code-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 16px 0;
    border-radius: 6px;
  }

  .docs-code-header {
    padding: 6px 10px;
  }

  .docs-code-lang {
    font-size: 10.5px;
  }

  .btn-copy-code {
    font-size: 11px;
    padding: 2px 6px;
  }

  .docs-pre {
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.5;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .docs-table-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
  }

  .docs-table {
    min-width: 480px;
    font-size: 12.5px;
  }

  .docs-table th,
  .docs-table td {
    padding: 8px 10px;
  }

  .docs-alert {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 16px 0;
    padding: 12px 14px;
    word-break: break-word;
  }

  .docs-alert-body {
    font-size: 13px;
  }

  /* 7. Feedback & Pagination */
  .docs-feedback-card {
    padding: 16px;
    margin-top: 32px;
  }

  .docs-feedback-question {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .docs-pagination {
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
  }

  .docs-pagination-link {
    width: 100%;
    box-sizing: border-box;
  }

  /* 8. Hub Views (Docs Hub & Site Policy Hub) */
  .docs-hero-section {
    padding: 40px 16px 28px;
  }

  .docs-hero-title {
    font-size: clamp(26px, 6.5vw, 38px);
    margin-bottom: 12px;
  }

  .docs-hero-subtitle {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 24px;
  }

  .docs-search-bar {
    padding: 10px 14px;
  }

  .docs-search-bar input {
    font-size: 14px;
  }

  .docs-search-kbd {
    display: none;
  }

  .docs-quick-tags {
    gap: 6px;
  }

  .docs-quick-tag {
    font-size: 12px;
    padding: 4px 10px;
  }

  .docs-container {
    padding: 0 16px;
  }

  .docs-featured-grid,
  .docs-categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .docs-category-card {
    padding: 18px 16px;
  }

  .docs-cta-box {
    padding: 20px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .docs-cta-box div:last-child {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .docs-cta-box .btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  /* Site Policy Hub Mobile */
  .site-policy-hero {
    padding: 32px 16px 24px;
  }

  .site-policy-title {
    font-size: clamp(24px, 6vw, 34px);
  }

  .site-policy-subtitle {
    font-size: 14px;
  }

  .site-policy-filter-bar {
    width: 100%;
    box-sizing: border-box;
  }

  .site-policy-filter-bar input {
    font-size: 13.5px;
  }

  .site-policy-recommended-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .site-policy-group-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .site-policy-article-item {
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .site-policy-article-meta {
    align-self: flex-start;
    padding-left: 24px;
  }

  /* 9. Search Modal Mobile Ergonomics */
  .docs-search-modal-overlay {
    padding-top: 14px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .docs-search-modal-card {
    max-height: 86vh;
    display: flex;
    flex-direction: column;
  }

  .docs-search-modal-header {
    padding: 10px 14px;
  }

  .docs-search-modal-header input {
    font-size: 14.5px;
  }

  .docs-search-results {
    max-height: 58vh;
    flex: 1;
    overflow-y: auto;
  }

  .docs-search-modal-footer {
    font-size: 10.5px;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 12px;
  }
}

@keyframes slideInLeftMobile {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes slideUpMobile {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ==========================================
 * GitCore Docs Footer Styling
 * ========================================== */
.docs-footer {
  background: #010409;
  border-top: 1px solid var(--border-default, #30363d);
  padding: 56px 0 36px 0;
  margin-top: 0;
  position: relative;
  z-index: 10;
  width: 100% !important;
  max-width: 100% !important;
}

.docs-footer-reader {
  margin-top: 48px;
  padding: 36px 0 20px 0;
  border-top: 1px solid var(--border-muted, #21262d);
  background: transparent;
}

.docs-reader-footer-inner {
  max-width: 100%;
}

.docs-footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.2fr 1fr 1fr;
  gap: 32px;
}

.docs-footer-brand-col {
  padding-right: 20px;
}

.docs-footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 12px;
}

.docs-footer-brand-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #f0f6fc);
  letter-spacing: -0.01em;
}

.docs-footer-tagline {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary, #8b949e);
  margin-bottom: 16px;
}

.docs-footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(63, 185, 80, 0.1);
  border: 1px solid rgba(63, 185, 80, 0.25);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #3fb950;
  text-decoration: none;
  transition: all 0.15s ease;
}

.docs-footer-status-pill:hover {
  background: rgba(63, 185, 80, 0.18);
  border-color: rgba(63, 185, 80, 0.4);
}

.docs-status-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fb950;
  box-shadow: 0 0 8px #3fb950;
  animation: docsStatusPulse 2s infinite;
}

@keyframes docsStatusPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(63, 185, 80, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); }
}

.docs-footer-heading {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #8b949e);
  margin: 0 0 14px 0;
}

.docs-footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.docs-footer-nav a {
  font-size: 13px;
  color: var(--text-secondary, #c9d1d9);
  text-decoration: none;
  transition: color 0.15s ease;
}

.docs-footer-nav a:hover {
  color: #58a6ff;
}

.docs-footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-muted, #21262d);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted, #8b949e);
}

.docs-footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.docs-footer-version {
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-muted, #21262d);
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--text-muted, #8b949e);
}

.docs-footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.docs-footer-lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary, #c9d1d9);
  font-size: 12px;
  cursor: default;
}

.docs-footer-legal-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.docs-footer-legal-links a {
  color: var(--text-muted, #8b949e);
  text-decoration: none;
  transition: color 0.15s ease;
}

.docs-footer-legal-links a:hover {
  color: #58a6ff;
}

@media (max-width: 960px) {
  .docs-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .docs-footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .docs-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .docs-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Contact & Engineering Dispatch Page
   ========================================================================== */

.contact-page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  box-sizing: border-box;
}

/* Hero Section */
.contact-hero {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(36, 128, 245, 0.08);
  border: 1px solid rgba(36, 128, 245, 0.25);
  border-radius: var(--radius-full, 9999px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #60a5fa;
  text-transform: uppercase;
}

.contact-badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulseGlow 2s infinite ease-in-out;
}

.contact-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary, #f5f5f7);
  margin: 0;
}

.contact-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary, rgba(245, 245, 247, 0.72));
  margin: 0;
  max-width: 720px;
}

/* Main Grid: Form + Bento Department Channels */
.contact-main-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 32px;
  margin-bottom: 64px;
  align-items: start;
}

@media (max-width: 1024px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.contact-card {
  background: var(--bg-surface, #16161a);
  border: 1px solid var(--border-default, rgba(255, 255, 255, 0.08));
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow-md, 0 8px 24px -6px rgba(0, 0, 0, 0.45));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.contact-form-header {
  margin-bottom: 24px;
}

.contact-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #f5f5f7);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}

.contact-title-icon {
  color: var(--accent-blue, #2480f5);
  flex-shrink: 0;
}

.contact-section-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary, rgba(245, 245, 247, 0.65));
  margin: 0;
}

/* Form Elements */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

@media (max-width: 640px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #f5f5f7);
  display: flex;
  align-items: center;
  gap: 4px;
}

.required-star {
  color: #f87171;
}

.label-with-counter {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.char-count {
  font-size: 12px;
  color: var(--text-muted, rgba(245, 245, 247, 0.45));
  font-family: var(--font-mono, monospace);
}

.contact-input,
.contact-select,
.contact-textarea {
  width: 100%;
  background: var(--bg-canvas, #0c0c0e);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary, #f5f5f7);
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
  border-color: var(--accent-blue, #2480f5);
  outline: none;
  box-shadow: 0 0 0 3px rgba(36, 128, 245, 0.2);
  background: #111115;
}

.contact-select {
  cursor: pointer;
}

.contact-select option {
  background: #16161a;
  color: #f5f5f7;
  padding: 8px;
}

.contact-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

/* Priority Pills */
.priority-pill-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 10px;
}

@media (max-width: 500px) {
  .priority-pill-group {
    grid-template-columns: 1fr;
  }
}

.priority-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-canvas, #0c0c0e);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--text-secondary, rgba(245, 245, 247, 0.8));
  font-family: inherit;
}

.priority-pill:hover {
  background: var(--bg-elevated, #1f1f26);
  border-color: rgba(255, 255, 255, 0.2);
}

.priority-pill.active {
  border-color: var(--accent-blue, #2480f5);
  background: rgba(36, 128, 245, 0.08);
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(36, 128, 245, 0.2);
}

.priority-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.priority-indicator.normal {
  background: #3fb950;
  box-shadow: 0 0 6px rgba(63, 185, 80, 0.5);
}

.priority-indicator.high {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.priority-indicator.critical {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
  animation: pulseCritical 1.5s infinite;
}

.priority-text {
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  text-align: left;
}

.priority-sla {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, rgba(245, 245, 247, 0.5));
  font-family: var(--font-mono, monospace);
}

/* Submit Button & Actions */
.contact-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 24px;
  background: linear-gradient(135deg, #2480f5 0%, #1d72dd 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(36, 128, 245, 0.35);
  font-family: inherit;
}

.contact-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(36, 128, 245, 0.45);
  filter: brightness(1.08);
}

.contact-btn-submit:active {
  transform: translateY(0);
}

.contact-btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Alert Message */
.contact-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.contact-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.contact-alert.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.contact-alert.hidden,
.contact-success-panel.hidden {
  display: none !important;
}

/* Success Confirmation State */
.contact-success-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  animation: fadeInUp 0.3s ease;
}

.success-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(63, 185, 80, 0.1);
  border: 1px solid rgba(63, 185, 80, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 0 24px rgba(63, 185, 80, 0.2);
}

.success-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #f5f5f7);
  margin: 0 0 8px;
}

.success-subtitle {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary, rgba(245, 245, 247, 0.65));
  max-width: 480px;
  margin: 0 0 24px;
}

.ticket-meta-box {
  width: 100%;
  max-width: 480px;
  background: var(--bg-canvas, #0c0c0e);
  border: 1px solid var(--border-default, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.ticket-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.ticket-meta-label {
  color: var(--text-muted, rgba(245, 245, 247, 0.5));
  font-weight: 500;
}

.ticket-meta-val {
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  color: var(--text-primary, #f5f5f7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticket-meta-val.highlight {
  color: #60a5fa;
}

.btn-copy-ticket {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary, #f5f5f7);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: 10px;
  font-family: inherit;
}

.btn-copy-ticket:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.status-dot-active {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3fb950;
  display: inline-block;
  box-shadow: 0 0 6px #3fb950;
}

.contact-btn-reset {
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}

/* Right Column: Channels Panel */
.contact-channels-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Live Status Card */
.live-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 14px;
  gap: 14px;
}

.live-status-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.live-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGlow 2s infinite ease-in-out;
  flex-shrink: 0;
}

.live-status-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary, #f5f5f7);
}

.live-status-sub {
  font-size: 12px;
  color: var(--text-secondary, rgba(245, 245, 247, 0.6));
  margin-top: 2px;
}

.live-status-link {
  font-size: 13px;
  font-weight: 600;
  color: #34d399;
  text-decoration: none;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.live-status-link:hover {
  background: rgba(16, 185, 129, 0.2);
}

/* Channels Bento Stack */
.channels-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dept-channel-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-surface, #16161a);
  border: 1px solid var(--border-default, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.dept-channel-card:hover {
  border-color: rgba(36, 128, 245, 0.35);
  background: #1a1a20;
  transform: translateY(-1px);
}

.dept-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dept-icon-box.sales {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.dept-icon-box.support {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #a855f7;
}

.dept-icon-box.security {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.dept-icon-box.legal {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.dept-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.dept-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #f5f5f7);
}

.dept-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary, rgba(245, 245, 247, 0.65));
}

.dept-email-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue, #2480f5);
  text-decoration: none;
  font-family: var(--font-mono, monospace);
  transition: color 0.15s ease;
}

.dept-email-link:hover {
  text-decoration: underline;
  color: #60a5fa;
}

.dept-dual-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.dot-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 11px;
}

.contact-subheading {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #f5f5f7);
  margin-bottom: 24px;
  text-align: left;
}

/* Frequently Addressed Questions (Accordion) */
.contact-faq-section {
  margin-bottom: 64px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-surface, #16161a);
  border: 1px solid var(--border-default, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.faq-item.open {
  border-color: rgba(36, 128, 245, 0.35);
  background: #181820;
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #f5f5f7);
  text-align: left;
  cursor: pointer;
  gap: 16px;
  font-family: inherit;
  transition: color 0.15s ease;
}

.faq-question-btn:hover {
  color: #60a5fa;
}

.faq-chevron {
  color: var(--text-muted, rgba(245, 245, 247, 0.5));
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-blue, #2480f5);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out, padding 0.25s ease-out;
  padding: 0 22px;
}

.faq-item.open .faq-answer-panel {
  max-height: 300px;
  padding: 0 22px 20px;
}

.faq-answer-panel p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary, rgba(245, 245, 247, 0.72));
  margin: 0;
}

.faq-answer-panel a {
  color: var(--accent-blue, #2480f5);
  text-decoration: none;
}

.faq-answer-panel a:hover {
  text-decoration: underline;
}

.faq-answer-panel code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--font-mono, monospace);
  color: #93c5fd;
}

/* Animations */
@keyframes pulseCritical {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

/* ==========================================
 * Global Admin System Monitoring & Telemetry
 * ========================================== */

.monitoring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.monitoring-card {
  background: rgba(18, 22, 31, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg, 12px);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.monitoring-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
}

.monitoring-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.monitoring-card-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #8b949e);
  display: flex;
  align-items: center;
  gap: 8px;
}

.monitoring-stat-big {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary, #f0f6fc);
  font-feature-settings: "tnum" 1;
  font-family: var(--font-mono, monospace);
  line-height: 1.2;
}

.monitoring-stat-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted, #8b949e);
  margin-left: 4px;
}

.monitoring-subrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.monitoring-subrow:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.monitoring-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
}

.monitoring-badge.nominal {
  background: rgba(46, 160, 67, 0.15);
  color: #3fb950;
  border: 1px solid rgba(46, 160, 67, 0.3);
}

.monitoring-badge.warning {
  background: rgba(210, 153, 34, 0.15);
  color: #d29922;
  border: 1px solid rgba(210, 153, 34, 0.3);
}

.monitoring-badge.danger {
  background: rgba(248, 81, 73, 0.15);
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.3);
}

.monitoring-badge.info {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.monitoring-code-viewer {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  max-height: 480px;
  overflow: auto;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  line-height: 1.6;
  color: #93c5fd;
  white-space: pre;
}

.monitoring-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 42px;
  padding-top: 6px;
}

.monitoring-sparkbar {
  flex: 1;
  background: linear-gradient(180deg, #6366f1, #38bdf8);
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  opacity: 0.85;
  transition: height 0.3s ease, opacity 0.2s ease;
}

.monitoring-sparkbar:hover {
  opacity: 1;
}

/* ==========================================
   User Settings — Billing & Licensing Styles
   ========================================== */
.settings-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-default);
}

.settings-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-default);
}

.settings-user-avatar-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.settings-user-info {
  min-width: 0;
  flex: 1;
}

.settings-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-user-handle {
  font-size: 12px;
  color: var(--text-muted);
}

.settings-user-badge {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.settings-nav-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 12px 14px 4px;
}

.settings-collapsible-group {
  display: flex;
  flex-direction: column;
}

.settings-collapsible-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.settings-collapsible-toggle:hover {
  background-color: var(--bg-hover);
}

.settings-chevron {
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.settings-collapsible-group.open .settings-chevron {
  transform: rotate(180deg);
}

.settings-collapsible-items {
  display: none;
  flex-direction: column;
  padding-left: 28px;
  gap: 2px;
  margin-top: 2px;
  margin-bottom: 4px;
}

.settings-collapsible-group.open .settings-collapsible-items {
  display: flex;
}

.user-settings-subnav-item {
  display: block;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: all var(--transition-fast);
}

.user-settings-subnav-item:hover {
  color: var(--text-primary);
  background-color: var(--bg-hover);
}

.user-settings-subnav-item.active {
  color: var(--text-primary);
  font-weight: 600;
  background-color: var(--bg-elevated);
}

/* Billing Main Panels */
.billing-page-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.billing-header {
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 16px;
}

.billing-page-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.billing-metric-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.billing-metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.billing-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.billing-card-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.billing-card-action-link {
  font-size: 12px;
  color: var(--text-link);
  text-decoration: none;
}

.billing-card-action-link:hover {
  text-decoration: underline;
}

.billing-metric-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 8px;
}

.billing-card-subtext {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.billing-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.billing-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.billing-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.billing-section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Subscriptions */
.billing-subscription-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.billing-sub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.billing-sub-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.billing-sub-plan-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.badge-trial {
  background: rgba(63, 185, 80, 0.15);
  color: #3fb950;
  border: 1px solid rgba(63, 185, 80, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.billing-sub-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.billing-price-strikethrough {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.billing-price-active {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.billing-price-period {
  font-size: 13px;
  color: var(--text-muted);
}

.billing-sub-discount-tag {
  font-size: 12px;
  color: #3fb950;
  font-weight: 500;
}

.billing-tax-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Product Tabs for Metered Usage */
.billing-product-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-default);
  overflow-x: auto;
  padding-bottom: 2px;
}

.billing-product-tab {
  background: none;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.billing-product-tab:hover {
  color: var(--text-primary);
}

.billing-product-tab.active {
  color: var(--text-primary);
  font-weight: 600;
  border-bottom-color: var(--accent-blue, #58a6ff);
}

.billing-tab-content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.billing-submetrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.billing-submetric-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.billing-submetric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.billing-submetric-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
}

.billing-submetric-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Usage by Repository */
.billing-repo-progress-container {
  background: var(--bg-inset);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.billing-repo-progress-bar {
  background: linear-gradient(90deg, #2ea043, #3fb950);
  height: 100%;
  border-radius: 4px;
}

.billing-repo-list {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.billing-repo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-muted);
}

.billing-repo-item:last-child {
  border-bottom: none;
}

.billing-repo-name-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.billing-repo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #3fb950;
  flex-shrink: 0;
}

.billing-repo-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.billing-repo-name:hover {
  text-decoration: underline;
}

.billing-repo-spend-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.billing-repo-spend-label {
  font-size: 12px;
  color: var(--text-muted);
}

.billing-repo-spend-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Licensing Plan Card */
.billing-license-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.billing-license-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-default);
}

.billing-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(88, 166, 255, 0.15);
  color: var(--accent-blue, #58a6ff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.billing-license-plan-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.billing-license-rate-strike {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 6px;
}

.billing-license-rate {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.billing-feature-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px 24px;
  padding: 20px 0;
}

.billing-checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
}

.billing-check-icon {
  font-size: 15px;
  font-weight: 800;
  color: #3fb950;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.billing-license-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-default);
}

/* Payment Info & Cards */
.billing-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.billing-info-card-actions {
  display: flex;
  gap: 8px;
}

.billing-card-brand-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-inset);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ledger Table */
.billing-ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.billing-ledger-table th,
.billing-ledger-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-muted);
}

.billing-ledger-table th {
  background: var(--bg-inset);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
}

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

/* Start Organization Banner */
.billing-org-banner {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.12), rgba(163, 113, 247, 0.12));
  border: 1px solid rgba(88, 166, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.billing-org-banner-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.billing-org-banner-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(88, 166, 255, 0.2);
  color: var(--accent-blue, #58a6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.billing-org-banner-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.billing-org-banner-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  max-width: 540px;
  line-height: 1.5;
}

/* Add-ons Grid */
.billing-addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.billing-addon-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.billing-addon-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.billing-addon-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
}

.billing-addon-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .billing-org-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}




