/* ==========================================================================
   Architectural Open-Grid Design System (ChainGPT Labs Inspired)
   KTU Question Papers & Notes Portal
   No Clunky Boxes • Seamless Architectural Grid • Ultra-Clean UX • 60fps
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
  user-select: none;
}

:root, html.dark {
  --bg-ground: #07090e;
  --surface-low: rgba(255, 255, 255, 0.025);
  --surface-container: rgba(255, 255, 255, 0.05);
  --surface-high: rgba(255, 255, 255, 0.08);
  --surface-highest: rgba(255, 255, 255, 0.12);
  
  --on-surface: #f8fafc;
  --on-surface-variant: #94a3b8;
  --on-surface-muted: #64748b;
  
  --grid-line-color: rgba(255, 255, 255, 0.045);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);

  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --primary-container: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.4);

  --accent-orange: #ff6b00;
  --accent-orange-bg: rgba(255, 107, 0, 0.1);
  --accent-orange-border: rgba(255, 107, 0, 0.3);

  --secondary-amber: #f59e0b;
  --tertiary-teal: #10b981;
  --error-crimson: #ef4444;

  --font-headline: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --nav-height: 60px;
}

html.light {
  --bg-ground: #f8fafc;
  --surface-low: #ffffff;
  --surface-container: #f1f5f9;
  --surface-high: #e2e8f0;
  --surface-highest: #cbd5e1;
  
  --on-surface: #0f172a;
  --on-surface-variant: #334155;
  --on-surface-muted: #64748b;
  
  --grid-line-color: rgba(15, 23, 42, 0.05);
  --border-subtle: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.18);

  --primary: #2563eb;
  --primary-light: #1d4ed8;
  --primary-container: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.2);

  --accent-orange: #ea580c;
  --accent-orange-bg: rgba(234, 88, 12, 0.08);
  --accent-orange-border: rgba(234, 88, 12, 0.25);

  --secondary-amber: #d97706;
  --tertiary-teal: #059669;
  --error-crimson: #dc2626;
}

/* ==========================================================================
   Light Theme (White Mode) Component Tweaks & High-Contrast Typography
   ========================================================================== */
html.light .site-header {
  background-color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

html.light .tech-grid-bg::before {
  background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.07) 0%, rgba(234, 88, 12, 0.03) 35%, transparent 65%);
}

html.light .flow-title span {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 45%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.light .flow-label-title {
  color: #475569;
}

html.light .flow-label-title span.num {
  color: #2563eb;
}

/* 1. Scheme Selector in Light Mode */
html.light .scheme-segment-btn {
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #334155;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

html.light .scheme-segment-btn .name {
  color: #0f172a;
}

html.light .scheme-segment-btn:hover:not(.active) {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

html.light .scheme-segment-btn.active {
  background-color: #eff6ff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 1.5px #2563eb, 0 4px 16px rgba(37, 99, 235, 0.16) !important;
}

html.light .scheme-segment-btn.active .name {
  color: #1e3a8a !important;
  font-weight: 800;
}

html.light .scheme-segment-btn.active .scheme-check-icon {
  color: #2563eb !important;
}

/* 2. Branch Selector in Light Mode */
html.light .branch-chip-btn {
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

html.light .branch-chip-btn .branch-code-text {
  color: #1e293b;
  font-weight: 700;
}

html.light .branch-chip-btn .branch-icon {
  color: #64748b;
}

html.light .branch-chip-btn:hover:not(.active) {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

html.light .branch-chip-btn.active {
  background-color: #eff6ff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 1.5px #2563eb, 0 4px 14px rgba(37, 99, 235, 0.16) !important;
}

html.light .branch-chip-btn.active .branch-icon {
  color: #2563eb !important;
}

html.light .branch-chip-btn.active .branch-code-text {
  color: #1e3a8a !important;
  font-weight: 800;
}

/* 3. Semester Selector on index.html in Light Mode */
html.light .sem-segment-btn {
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

html.light .sem-segment-btn .sem-num {
  color: #0f172a;
}

html.light .sem-segment-btn .year-sub {
  color: #64748b;
}

html.light .sem-segment-btn:hover:not(.active) {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

html.light .sem-segment-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35) !important;
}

html.light .sem-segment-btn.active .sem-num {
  color: #ffffff !important;
}

html.light .sem-segment-btn.active .year-sub {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* 4. Semester Pills on papers.html */
html.light .sem-pill {
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #334155;
}

html.light .sem-pill:hover:not(.active) {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
}

html.light .sem-pill.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

/* 5. Repository Panels, Cards, and Badges in Light Mode */
html.light .repo-clean-panel {
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

html.light .subject-card {
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

html.light .subject-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

html.light .subject-header {
  background-color: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

html.light .subject-code-tag {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

html.light .pyq-item-card {
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

html.light .pyq-item-card:hover {
  background-color: #f8fafc;
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

/* Dropdowns & Inputs */
html.light .repo-dropdown,
html.light .repo-search-field,
html.light .gpa-input,
html.light .gpa-select {
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

html.light .repo-search-field:focus,
html.light .repo-dropdown:focus {
  background-color: #ffffff;
  border-color: #2563eb;
}

html.light select option {
  background-color: #ffffff;
  color: #0f172a;
}

/* Badges & Meta Tags in Light Mode */
html.light .tag-pill {
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #334155;
}

html.light .tag-pill.scheme-tag {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  font-weight: 700;
}

html.light .tag-pill.branch-tag {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
  font-weight: 700;
}

html.light .tag-pill.count-tag {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
  font-weight: 700;
}

html.light .tag-pill.notes-pill {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
  font-weight: 700;
}

/* Brand badges (New, Previous, Solved, etc.) */
html.light .brand-badge {
  background-color: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

html.dark .brand-badge[class*="bg-primary"],
.brand-badge[class*="bg-primary"] {
  background-color: rgba(37, 99, 235, 0.2) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
}

html.light .brand-badge[class*="bg-primary"] {
  background-color: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
}

html.dark .brand-badge[class*="surface-container"],
.brand-badge[class*="surface-container"] {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

html.light .brand-badge[class*="surface-container"] {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

/* Modals & Toasts */
html.light .modal-container {
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
}

html.light .modal-header,
html.light .modal-footer {
  background-color: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

html.light .search-result-item:hover {
  background-color: #f1f5f9;
}

html.light .toast {
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-left: 3px solid #2563eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--surface-container);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--on-surface);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--surface-high);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

html.dark .theme-toggle-btn .dark-icon {
  display: none;
}
html.dark .theme-toggle-btn .light-icon {
  display: inline-block;
  color: #fde047;
}

html.light .theme-toggle-btn .light-icon {
  display: none;
}
html.light .theme-toggle-btn .dark-icon {
  display: inline-block;
  color: #0f172a;
}

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

html {
  font-family: var(--font-body);
  background-color: var(--bg-ground);
  color: var(--on-surface);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-ground);
  overflow-x: hidden;
}

/* ==========================================================================
   Architectural Background Grid (ChainGPT Labs Style)
   ========================================================================== */
.tech-grid-bg {
  background-color: var(--bg-ground);
  background-image: 
    linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  position: relative;
}

/* Atmospheric Glow */
.tech-grid-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, 1000px);
  height: 520px;
  background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.15) 0%, rgba(255, 107, 0, 0.05) 35%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.nav-wrapper {
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--on-surface);
}

.brand-logo-img {
  height: 26px;
  width: auto;
  border-radius: 4px;
}

.brand-title {
  font-family: var(--font-headline);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  padding: 2px 5px;
  background-color: var(--accent-orange-bg);
  color: var(--accent-orange);
  border: 1px solid var(--accent-orange-border);
  border-radius: 3px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .nav-item-text {
    display: none;
  }
}

.nav-item {
  color: var(--on-surface-variant);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 5px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-item:hover, .nav-item.active {
  color: var(--on-surface);
  background-color: var(--surface-container);
}

.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--surface-low);
  border: 1px solid var(--border-subtle);
  color: var(--on-surface-muted);
  padding: 0.35rem 0.65rem;
  border-radius: 5px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-trigger-btn:hover {
  background-color: var(--surface-container);
  border-color: var(--border-strong);
  color: var(--on-surface-variant);
}

.search-trigger-btn kbd {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  background-color: var(--surface-high);
  color: var(--on-surface-variant);
  padding: 1px 4px;
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Spacious Architectural Hero & Flow (Uncongested, Clean Breathing Room)
   ========================================================================== */
.hero-flow-section {
  padding-top: calc(var(--nav-height) + 2.5rem);
  padding-bottom: 4rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .hero-flow-section {
    padding-top: calc(var(--nav-height) + 1.75rem);
    padding-bottom: 3rem;
  }
}

.flow-container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (max-width: 640px) {
  .flow-container {
    padding: 0 1rem;
  }
}

/* Clean Airy Headline */
.flow-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

@media (max-width: 640px) {
  .flow-header {
    margin-bottom: 1.75rem;
  }
}

.flow-title {
  font-family: var(--font-headline);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--on-surface);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.flow-title span {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #ff6b00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.flow-subtitle {
  font-size: 0.9375rem;
  color: var(--on-surface-variant);
  line-height: 1.5;
  max-width: 500px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .flow-subtitle {
    font-size: 0.8125rem;
    max-width: 340px;
  }
}

/* ==========================================================================
   Open Selector Blocks (Spacious Breathing Room, Zero Congestion)
   ========================================================================== */
.flow-selectors-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (max-width: 640px) {
  .flow-selectors-wrapper {
    gap: 2.25rem; /* Generous breathing room between step 1, 2, and 3 */
  }
}

.flow-section-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.flow-label-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.45rem;
}

.flow-label-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.flow-label-title span.num {
  color: var(--primary-light);
}

/* 1. Scheme Switcher: Box 1 & Box 2 Horizontally (Zero Overflow) */
.scheme-segmented-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.scheme-segment-btn {
  background-color: var(--surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  min-height: 64px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--on-surface-variant);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.scheme-segment-btn:hover {
  background-color: var(--surface-container);
  color: var(--on-surface);
  border-color: var(--border-strong);
  transform: translateY(-1.5px);
}

.scheme-segment-btn.active {
  background-color: rgba(37, 99, 235, 0.16);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 1px var(--primary), 0 4px 16px rgba(37, 99, 235, 0.25);
}

.scheme-btn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.35rem;
}

.scheme-segment-btn .name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
}

.scheme-check-icon {
  font-size: 16px;
  color: var(--primary-light);
  flex-shrink: 0;
}

/* 2. Engineering Branch (2-Col Mobile / 4-Col Desktop Grid, Proper Size, No Horiz Scroll) */
.branch-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .branch-chips-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
  }
}

.branch-chip-btn {
  background-color: var(--surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  min-height: 52px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.branch-chip-btn:hover {
  background-color: var(--surface-container);
  border-color: var(--border-strong);
  transform: translateY(-1.5px);
}

.branch-chip-btn.active {
  background-color: rgba(37, 99, 235, 0.18);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 4px 14px rgba(37, 99, 235, 0.25);
}

.branch-chip-btn .branch-icon {
  font-size: 18px;
  color: var(--on-surface-muted);
  transition: color 0.18s ease;
}

.branch-chip-btn.active .branch-icon {
  color: var(--primary-light);
}

.branch-chip-btn .branch-code-text {
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--on-surface-variant);
  letter-spacing: 0.02em;
}

.branch-chip-btn.active .branch-code-text {
  color: #ffffff;
}

/* 3. Semester Selection (4-Col Mobile / 8-Col Desktop Grid, Proper Size, No Horiz Scroll) */
.sem-matrix-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  width: 100%;
}

@media (min-width: 768px) {
  .sem-matrix-track {
    grid-template-columns: repeat(8, 1fr);
    gap: 0.75rem;
  }
}

.sem-segment-btn {
  background-color: var(--surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  min-height: 58px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.sem-segment-btn:hover {
  background-color: var(--surface-container);
  border-color: var(--border-strong);
  transform: translateY(-1.5px);
}

.sem-segment-btn.active {
  background-color: var(--primary-container);
  border-color: #60a5fa;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.sem-segment-btn .sem-num {
  font-family: var(--font-headline);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--on-surface);
}

.sem-segment-btn.active .sem-num {
  color: #ffffff;
}

.sem-segment-btn .year-sub {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--on-surface-muted);
}

.sem-segment-btn.active .year-sub {
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Magnetic Launch Action Button
   ========================================================================== */
.flow-action-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.75rem;
}

.btn-launch-glow {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem 2.5rem;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  max-width: 380px;
  text-decoration: none;
}

@media (max-width: 640px) {
  .scheme-segmented-track {
    gap: 0.65rem;
  }
  .scheme-segment-btn {
    padding: 0.8rem 0.75rem;
    min-height: 60px;
    border-radius: 12px;
  }
  .scheme-segment-btn .name {
    font-size: 0.8125rem;
  }
  .branch-chips-grid {
    gap: 0.85rem;
  }
  .branch-chip-btn {
    min-height: 54px;
    padding: 0.95rem 1rem;
    border-radius: 12px;
  }
  .branch-chip-btn .branch-code-text {
    font-size: 0.9375rem;
  }
  .sem-matrix-track {
    gap: 0.75rem;
  }
  .sem-segment-btn {
    min-height: 56px;
    padding: 0.85rem 0.4rem;
    border-radius: 12px;
  }
  .sem-segment-btn .sem-num {
    font-size: 1.1rem;
  }
  .flow-action-center {
    margin-top: 2.25rem;
    margin-bottom: 1.5rem;
  }
  .btn-launch-glow {
    padding: 1.1rem 2rem;
    font-size: 1.05rem;
    border-radius: 14px;
    min-height: 54px;
  }
}

.btn-launch-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.55);
}

.btn-launch-glow:active {
  transform: scale(0.98);
}

.flow-features-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--on-surface-muted);
  margin-top: 0.5rem;
}

.feature-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.feature-pill-item .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--tertiary-teal);
}

/* ==========================================================================
   Clean & Simple Repository Page (papers.html)
   ========================================================================== */
.repository-page-wrapper {
  padding-top: calc(var(--nav-height) + 1.5rem);
  padding-bottom: 4rem;
  width: 100%;
}

.repo-main-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (max-width: 640px) {
  .repo-main-container {
    padding: 0 1rem;
  }
}

/* Unified Clean Control Panel */
.repo-clean-panel {
  background-color: var(--surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.35rem 1.6rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 640px) {
  .repo-clean-panel {
    padding: 1rem;
    gap: 1rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
  }
}

.repo-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.repo-tags-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-high);
  color: var(--on-surface-variant);
  border: 1px solid var(--border-subtle);
}

.tag-pill.scheme-tag {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--primary-light);
}

.tag-pill.count-tag {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.tag-pill.notes-pill {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.repo-panel-title {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--on-surface);
  letter-spacing: -0.02em;
  margin: 0;
}

.repo-panel-title .highlight {
  color: var(--primary-light);
}

@media (max-width: 640px) {
  .repo-panel-title {
    font-size: 1.25rem;
  }
}

.repo-panel-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .repo-panel-controls {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
}

.repo-search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 220px;
}

@media (max-width: 640px) {
  .repo-search-box {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }
}

.repo-search-box .search-icon {
  position: absolute;
  left: 0.85rem;
  font-size: 18px;
  color: var(--on-surface-muted);
  pointer-events: none;
}

.repo-search-field {
  background: var(--surface-container);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 0.6rem 0.85rem 0.6rem 2.4rem;
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  outline: none;
  transition: all 0.18s ease;
  width: 100%;
}

.repo-search-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: var(--surface-high);
}

.repo-dropdown {
  background: var(--surface-container);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 0.6rem 0.85rem;
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.18s ease;
  min-width: 110px;
}

@media (max-width: 640px) {
  .repo-dropdown {
    width: 100%;
    min-width: 0;
    text-overflow: ellipsis;
  }
}

.repo-dropdown:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.repo-dropdown option {
  background-color: #0b0f19;
  color: #f1f5f9;
}

/* Semester Jump Row */
.repo-sem-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 640px) {
  .repo-sem-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 0.65rem;
  }
}

.sem-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--on-surface-muted);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.repo-sem-track {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  width: 100%;
}

@media (max-width: 640px) {
  .repo-sem-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
    width: 100%;
  }
}

.sem-pill {
  background: var(--surface-container);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.45rem 0.95rem;
  color: var(--on-surface-variant);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

@media (max-width: 640px) {
  .sem-pill {
    padding: 0.55rem 0;
  }
}

.sem-pill:hover {
  background: var(--surface-high);
  border-color: var(--border-strong);
  color: var(--on-surface);
}

.sem-pill.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* ==========================================================================
   Clean Subject Cards & PYQ Items
   ========================================================================== */
.subject-card {
  background: var(--surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  margin-bottom: 1.75rem;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.subject-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.subject-header {
  padding: 1.15rem 1.35rem;
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 640px) {
  .subject-header {
    padding: 0.85rem 1rem;
    flex-wrap: wrap;
    gap: 0.65rem;
  }
}

.subject-title-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.subject-code-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 6px;
  color: var(--primary-light);
  letter-spacing: 0.03em;
}

.subject-name {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .subject-name {
    font-size: 1rem;
  }
}

.resources-container {
  padding: 1.25rem;
}

@media (max-width: 640px) {
  .resources-container {
    padding: 0.85rem;
  }
}

.pyq-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

@media (max-width: 480px) {
  .pyq-matrix-grid {
    grid-template-columns: 1fr;
  }
}

.pyq-item-card {
  background: var(--surface-container);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pyq-item-card:hover {
  transform: translateY(-2px);
  background: var(--surface-high);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.pyq-header-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pyq-session-badge {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--on-surface);
  letter-spacing: -0.01em;
}

.pyq-actions-row {
  display: flex;
  align-items: center;
}

.btn-tech {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background-color: var(--surface-high);
  color: var(--on-surface);
  text-decoration: none;
  min-height: 36px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-tech:hover {
  background-color: var(--surface-highest);
  border-color: var(--border-strong);
  color: var(--on-surface);
  transform: translateY(-1px);
}

.btn-tech.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-tech.primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.btn-tech:active {
  transform: scale(0.97);
}

.btn-icon-square {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-high);
  border: 1px solid var(--border-subtle);
  color: var(--on-surface-variant);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-icon-square:hover {
  background-color: var(--surface-highest);
  border-color: var(--border-strong);
  color: var(--on-surface);
  transform: translateY(-1px);
}

.btn-icon-square.bookmarked {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--bg-ground);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.8);
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 0.75rem 1rem;
  background-color: var(--surface-container);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 0.65rem 1rem;
  background-color: var(--surface-container);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Paper Viewer Canvas */
.ktu-paper-canvas {
  background-color: #ffffff;
  color: #111827;
  padding: 1.75rem;
  border-radius: 4px;
  font-family: 'Times New Roman', Times, serif;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  line-height: 1.45;
  width: 100%;
  max-width: 700px;
}

.paper-univ-header {
  text-align: center;
  border-bottom: 2px solid #111827;
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
}

.paper-univ-header h2 {
  font-family: 'Times New Roman', Times, serif;
  color: #111827;
  font-size: 1.125rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.paper-exam-title {
  font-weight: bold;
  font-size: 0.8125rem;
  margin-bottom: 0.2rem;
}

.paper-course-title {
  font-weight: bold;
  font-size: 0.875rem;
  margin-top: 0.2rem;
}

.paper-specs-table {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 0.75rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid #d1d5db;
  padding-bottom: 0.3rem;
}

.paper-part-header {
  text-align: center;
  font-weight: bold;
  font-size: 0.875rem;
  margin: 0.85rem 0 0.3rem 0;
  text-decoration: underline;
}

.paper-instruction {
  text-align: center;
  font-style: italic;
  font-size: 0.75rem;
  margin-bottom: 0.65rem;
}

.paper-question-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  font-size: 0.8125rem;
}

.paper-qno {
  font-weight: bold;
  min-width: 26px;
}

.paper-qtext {
  flex: 1;
}

.paper-qmarks {
  font-weight: bold;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* Command Palette Search */
.command-palette-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background-color: var(--surface-container);
  border-bottom: 1px solid var(--border-subtle);
}

.command-palette-input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--on-surface);
  width: 100%;
}

.search-results-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 0.4rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  margin-bottom: 0.2rem;
}

.search-result-item:hover {
  background-color: var(--surface-high);
}

.search-result-title {
  font-weight: 600;
  color: var(--on-surface);
  font-size: 0.8125rem;
}

.search-result-sub {
  font-size: 0.6875rem;
  color: var(--on-surface-variant);
  margin-top: 2px;
}

/* GPA Calculator */
.gpa-course-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 28px;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.4rem;
}

.gpa-input, .gpa-select {
  background-color: var(--surface-container);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.35rem 0.55rem;
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 0.75rem;
  outline: none;
}

.gpa-result-display {
  background-color: var(--surface-container);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 0.85rem;
  text-align: center;
  margin-top: 0.85rem;
}

.gpa-score {
  font-family: var(--font-headline);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin: 0.25rem 0;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.toast {
  background-color: var(--surface-container);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--primary-container);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  color: var(--on-surface);
  padding: 0.55rem 0.85rem;
  border-radius: 4px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-ground);
  border-top: 1px solid var(--border-subtle);
  padding: 1.25rem 0;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: var(--on-surface-muted);
}

/* ==========================================================================
   SEO & Knowledge Base Sections (Google Search Ranking & FAQ Rich Snippets)
   ========================================================================== */
.seo-info-container {
  max-width: 1040px;
  margin: 3.5rem auto 2.5rem auto;
  padding: 0 1rem;
}

.seo-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.seo-section-title {
  font-family: var(--font-headline);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 800;
  color: var(--on-surface);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.seo-section-subtitle {
  font-size: 0.875rem;
  color: var(--on-surface-muted);
  max-width: 620px;
  margin: 0 auto;
}

.seo-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.seo-feature-card {
  background-color: var(--surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.35rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.seo-feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

html.light .seo-feature-card {
  background-color: #ffffff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

html.light .seo-feature-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.seo-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.seo-feature-title {
  font-family: var(--font-headline);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 0.35rem;
}

.seo-feature-desc {
  font-size: 0.8125rem;
  color: var(--on-surface-variant);
  line-height: 1.5;
  margin: 0;
}

/* FAQ Accordion Grid */
.seo-faq-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 840px;
  margin: 0 auto 3rem auto;
}

.seo-faq-item {
  background-color: var(--surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

html.light .seo-faq-item {
  background-color: #ffffff;
  border-color: rgba(15, 23, 42, 0.09);
}

.seo-faq-question {
  padding: 1rem 1.25rem;
  font-family: var(--font-headline);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--on-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.seo-faq-question::-webkit-details-marker {
  display: none;
}

.seo-faq-icon {
  font-size: 20px;
  color: var(--on-surface-muted);
  transition: transform 0.2s ease;
}

.seo-faq-item[open] .seo-faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.seo-faq-answer {
  padding: 0 1.25rem 1.15rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--on-surface-variant);
  line-height: 1.6;
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.25rem;
  padding-top: 0.85rem;
}

/* Google Drive Archive Banner in Repository */
.repo-drive-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.75rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
  border: 1px solid rgba(59, 130, 246, 0.28);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}

.drive-banner-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.drive-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  flex-shrink: 0;
}

.drive-banner-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 700;
  color: var(--on-surface);
}

.drive-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
}

.drive-status-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.drive-banner-sub {
  font-size: 0.825rem;
  color: var(--on-surface-variant);
  margin-top: 2px;
  line-height: 1.4;
}

.drive-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.drive-btn-browser {
  padding: 0.6rem 1.15rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.drive-btn-browser:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .repo-drive-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    gap: 0.9rem;
  }
  .drive-banner-actions {
    width: 100%;
  }
  .drive-btn-browser {
    width: 100%;
    justify-content: center;
  }
}

html.light .repo-drive-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.03) 100%);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.06);
}

/* Landing Page Quicklink Pill */
.landing-drive-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.09);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--on-surface);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.landing-drive-pill:hover {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.5);
  transform: translateY(-1px);
}


