/* ============================================================
   YongDa.Ai Strategic Delivery Hub — Global Styles
   Frontend Design Standard v2.0
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* Brand Colors */
  --primary: #C8A84B;
  --primary-light: #E8CC7A;
  --primary-dark: #A07820;
  --accent: #00D4FF;
  --accent-dim: rgba(0,212,255,0.15);

  /* Dark Theme (default) */
  --bg-base: #0A0C10;
  --bg-surface: #111318;
  --bg-card: #161A22;
  --bg-elevated: #1C2130;
  --border: rgba(200,168,75,0.15);
  --border-subtle: rgba(255,255,255,0.06);
  --text-primary: #F0EDE6;
  --text-secondary: #9BA3B5;
  --text-muted: #5C6478;
  --glass: rgba(22,26,34,0.85);
  --shadow-glow: 0 0 40px rgba(200,168,75,0.12);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --nav-bg: rgba(10,12,16,0.92);

  /* Typography */
  --font-sans: 'Inter', 'PingFang SC', 'Noto Sans SC', -apple-system, sans-serif;
  --font-display: 'Inter', 'PingFang SC', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* Light Theme */
[data-theme="light"] {
  --bg-base: #F4F6FA;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-elevated: #EEF1F8;
  --border: rgba(200,168,75,0.25);
  --border-subtle: rgba(0,0,0,0.08);
  --text-primary: #0D1117;
  --text-secondary: #4A5568;
  --text-muted: #94A3B8;
  --glass: rgba(255,255,255,0.9);
  --shadow-glow: 0 0 40px rgba(200,168,75,0.08);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.08);
  --nav-bg: rgba(244,246,250,0.95);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 3px; }

/* ---- Typography ---- */
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5 { font-size: 0.95rem; font-weight: 600; }
p { color: var(--text-secondary); line-height: 1.75; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold {
  background: linear-gradient(135deg, #C8A84B, #E8CC7A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 64px;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #0A0C10;
  font-family: var(--font-mono);
}

.nav-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.nav-logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex: 1;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(200,168,75,0.08);
}

.nav-link.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  border-radius: 0;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  z-index: 100;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.nav-dropdown a:hover {
  color: var(--primary);
  background: rgba(200,168,75,0.08);
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: auto;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.nav-badge {
  font-size: 0.65rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #0A0C10;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
  margin-left: 4px;
}

/* ---- Page Wrapper ---- */
.page-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px var(--space-xl) var(--space-2xl);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) 0;
  margin-bottom: var(--space-2xl);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(200,168,75,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 20%, rgba(0,212,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Speed Lines Animation */
.hero-speed-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.3;
  pointer-events: none;
}

.speed-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: speedLine 3s linear infinite;
  opacity: 0;
}

@keyframes speedLine {
  0% { transform: translateX(-100%); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateX(100vw); opacity: 0; }
}

/* Track Animation */
.hero-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--primary), transparent);
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: rgba(200,168,75,0.1);
  border: 1px solid rgba(200,168,75,0.25);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.card:hover::before {
  opacity: 1;
}

.card-glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card-gold {
  border-color: rgba(200,168,75,0.3);
  background: linear-gradient(135deg, var(--bg-card), rgba(200,168,75,0.03));
}

.card-accent {
  border-color: rgba(0,212,255,0.2);
  background: linear-gradient(135deg, var(--bg-card), rgba(0,212,255,0.03));
}

/* ---- Grid System ---- */
.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .page-wrapper { padding: 80px var(--space-md) var(--space-xl); }
  .nav-inner { padding: 0 var(--space-md); }
  .nav-menu { display: none; }
}

/* ---- Section Headers ---- */
.section-header {
  margin-bottom: var(--space-xl);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--primary);
}

.section-title {
  margin-bottom: var(--space-sm);
}

.section-desc {
  max-width: 640px;
}

/* ---- Status Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-gold {
  background: rgba(200,168,75,0.15);
  color: var(--primary);
  border: 1px solid rgba(200,168,75,0.3);
}

.badge-red {
  background: rgba(239,68,68,0.12);
  color: #F87171;
  border: 1px solid rgba(239,68,68,0.25);
}

.badge-green {
  background: rgba(34,197,94,0.12);
  color: #4ADE80;
  border: 1px solid rgba(34,197,94,0.25);
}

.badge-blue {
  background: rgba(59,130,246,0.12);
  color: #60A5FA;
  border: 1px solid rgba(59,130,246,0.25);
}

.badge-cyan {
  background: rgba(0,212,255,0.12);
  color: var(--accent);
  border: 1px solid rgba(0,212,255,0.25);
}

.badge-purple {
  background: rgba(139,92,246,0.12);
  color: #A78BFA;
  border: 1px solid rgba(139,92,246,0.25);
}

/* ---- Person Avatar ---- */
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
}

.avatar-lg {
  width: 80px;
  height: 80px;
  font-size: 1.8rem;
  border-radius: var(--radius-md);
}

.avatar-ring {
  box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--primary);
}

/* Avatar color variants */
.av-1 { background: linear-gradient(135deg, #1e3a5f, #2d5a8e); color: #60A5FA; }
.av-2 { background: linear-gradient(135deg, #3d1a78, #6c3fc7); color: #A78BFA; }
.av-3 { background: linear-gradient(135deg, #1a4a2e, #2d7a4a); color: #4ADE80; }
.av-4 { background: linear-gradient(135deg, #4a1a1a, #8e2c2c); color: #F87171; }
.av-5 { background: linear-gradient(135deg, #3a2e0a, #7a6415); color: var(--primary); }
.av-6 { background: linear-gradient(135deg, #0a3a4a, #157a6e); color: #2DD4BF; }
.av-7 { background: linear-gradient(135deg, #2a1a4a, #5a3a8a); color: #C084FC; }
.av-8 { background: linear-gradient(135deg, #1a3a2a, #2a6a4a); color: #34D399; }
.av-9 { background: linear-gradient(135deg, #4a2a0a, #8a5520); color: #FBBF24; }
.av-10 { background: linear-gradient(135deg, #0a2a4a, #1a5a8e); color: #38BDF8; }
.av-11 { background: linear-gradient(135deg, #3a0a3a, #7a1a7a); color: #E879F9; }

/* ---- Stat Cards ---- */
.stat-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-trend {
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

.stat-trend.up { color: #4ADE80; }
.stat-trend.down { color: #F87171; }

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

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-xl);
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 12px rgba(200,168,75,0.4);
}

.timeline-dot.active {
  animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,168,75,0.4), 0 0 12px rgba(200,168,75,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(200,168,75,0), 0 0 20px rgba(200,168,75,0.6); }
}

/* ---- Chat Bubble ---- */
.chat-bubble {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.4s ease forwards;
}

.chat-bubble.right {
  flex-direction: row-reverse;
}

.chat-content {
  flex: 1;
  max-width: 80%;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 6px;
}

.chat-bubble.right .chat-header {
  flex-direction: row-reverse;
}

.chat-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.chat-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.chat-msg {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px 12px 12px 4px;
  padding: var(--space-md) var(--space-lg);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.chat-bubble.right .chat-msg {
  border-radius: 12px 12px 4px 12px;
  background: linear-gradient(135deg, rgba(200,168,75,0.08), var(--bg-elevated));
  border-color: rgba(200,168,75,0.15);
}

/* ============================================================
   Auth Guard — Session Bar
   ============================================================ */
.session-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
  pointer-events: none;
}

.nav-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  background: rgba(200,168,75,0.08);
  border: 1px solid rgba(200,168,75,0.15);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.nav-user-info:hover {
  background: rgba(200,168,75,0.15);
}

.nav-user-avatar {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #000;
}

/* ============================================================
   Comment & Annotation System
   ============================================================ */

/* Floating Selection Toolbar */
.yda-comment-toolbar {
  position: absolute;
  z-index: 8000;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
  animation: toolbar-pop 0.15s ease;
}

@keyframes toolbar-pop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.yda-toolbar-inner {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.375rem;
  backdrop-filter: blur(12px);
}

.yda-toolbar-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.375rem 0.75rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
}

.yda-toolbar-comment:hover { background: rgba(0,212,255,0.1); color: var(--accent); }
.yda-toolbar-highlight:hover { background: rgba(251,191,36,0.1); color: #FBBF24; }
.yda-toolbar-question:hover { background: rgba(167,139,250,0.1); color: #A78BFA; }

.yda-toolbar-arrow {
  width: 10px;
  height: 6px;
  background: var(--bg-elevated);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

/* Comment Input Panel */
.yda-comment-panel {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  z-index: 8500;
  flex-direction: column;
  gap: 0.875rem;
  animation: panel-slide 0.2s ease;
}

@keyframes panel-slide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

.yda-panel-header span {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.yda-panel-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  line-height: 1;
}

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

.yda-panel-selected-text {
  background: var(--bg-elevated);
  border-left: 3px solid var(--primary);
  padding: 0.5rem 0.75rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.5;
  max-height: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yda-comment-input {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: var(--transition);
}

.yda-comment-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200,168,75,0.1);
}

.yda-panel-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.yda-btn-cancel {
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.yda-btn-cancel:hover { color: var(--text-primary); }

.yda-btn-submit {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: var(--radius-sm);
  color: #000;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.yda-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200,168,75,0.3);
}

.yda-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Comments Sidebar */
.yda-sidebar {
  position: fixed;
  right: -380px;
  top: 0;
  width: 360px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 7000;
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,0.3);
}

.yda-sidebar.open { right: 0; }

.yda-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.yda-sidebar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.yda-comment-count {
  background: var(--primary);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: 100px;
  min-width: 18px;
  text-align: center;
}

.yda-filter-select {
  padding: 0.3rem 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  outline: none;
}

.yda-sidebar-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

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

.yda-comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.yda-comments-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.yda-comment-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.875rem;
  transition: var(--transition);
}

.yda-comment-item:hover {
  border-color: var(--border);
}

.yda-comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.yda-comment-avatar {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #000;
  flex-shrink: 0;
}

.yda-comment-author {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.yda-comment-type-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 100px;
}

.yda-type-comment { background: rgba(0,212,255,0.1); color: var(--accent); }
.yda-type-highlight { background: rgba(251,191,36,0.1); color: #FBBF24; }
.yda-type-question { background: rgba(167,139,250,0.1); color: #A78BFA; }

.yda-comment-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.yda-comment-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.1rem 0.3rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  line-height: 1;
}

.yda-comment-delete:hover { color: #F87171; }

.yda-comment-anchor {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  background: var(--bg-card);
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid rgba(200,168,75,0.3);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.yda-comment-body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  word-break: break-word;
}

.yda-jump-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.625rem;
  background: rgba(200,168,75,0.08);
  border: 1px solid rgba(200,168,75,0.2);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.yda-jump-btn:hover {
  background: rgba(200,168,75,0.15);
}

/* FAB Button */
.yda-fab-btn {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(200,168,75,0.4);
  z-index: 6900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.3rem;
}

.yda-fab-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(200,168,75,0.5);
}

.yda-fab-icon { line-height: 1; }

.yda-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #F87171;
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 100px;
  padding: 0 4px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-base);
}

/* Toast */
.yda-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  white-space: nowrap;
}

.yda-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.yda-toast-success { border-color: rgba(52,211,153,0.4); color: #34D399; }
.yda-toast-error { border-color: rgba(248,113,113,0.4); color: #F87171; }
.yda-toast-warn { border-color: rgba(251,191,36,0.4); color: #FBBF24; }

/* Responsive sidebar */
@media (max-width: 640px) {
  .yda-sidebar {
    width: 100vw;
    right: -100vw;
  }
  .yda-sidebar.open { right: 0; }
  .yda-comment-panel {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: 1rem;
  }
}

.chat-msg strong {
  color: var(--text-primary);
}

.chat-msg .highlight {
  color: var(--primary);
  font-weight: 600;
}

/* ---- Progress Bar ---- */
.progress-bar-wrap {
  background: var(--bg-elevated);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Comparison Table ---- */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

.comparison-table th {
  background: var(--bg-elevated);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th:first-child { border-radius: var(--radius-md) 0 0 0; }
.comparison-table th:last-child { border-radius: 0 var(--radius-md) 0 0; }

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  line-height: 1.6;
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(200,168,75,0.03); }

.before { color: var(--text-muted); text-decoration: line-through; }
.after { color: #4ADE80; font-weight: 600; }

/* ---- Gantt Chart ---- */
.gantt-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.gantt-table {
  width: 100%;
  min-width: 800px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.82rem;
}

.gantt-table th {
  background: var(--bg-elevated);
  padding: 8px 12px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.gantt-table th.task-col {
  text-align: left;
  min-width: 200px;
}

.gantt-table td {
  padding: 6px 12px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.gantt-bar {
  height: 18px;
  border-radius: 4px;
  position: relative;
}

.gantt-bar-p0 { background: linear-gradient(90deg, #EF4444, #F87171); }
.gantt-bar-p1 { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.gantt-bar-p2 { background: linear-gradient(90deg, #60A5FA, #93C5FD); }

/* ---- Checklist ---- */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

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

.checklist-item:hover { background: rgba(200,168,75,0.02); }

.check-box {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-top: 2px;
}

.check-box:hover {
  border-color: var(--primary);
}

.check-box.checked {
  background: var(--primary);
  border-color: var(--primary);
}

.check-box.checked::after {
  content: '✓';
  font-size: 13px;
  color: #0A0C10;
  font-weight: 700;
}

.checklist-content {
  flex: 1;
}

.checklist-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  transition: var(--transition);
}

.checklist-item.done .checklist-title {
  color: var(--text-muted);
  text-decoration: line-through;
}

.checklist-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ---- Flywheel Diagram ---- */
.flywheel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.flywheel-center {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 4px;
  box-shadow: 0 0 40px rgba(200,168,75,0.3);
  animation: rotate-slow 20s linear infinite;
  z-index: 2;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.flywheel-center-inner {
  animation: rotate-slow 20s linear reverse infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.flywheel-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #0A0C10;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.flywheel-icon { font-size: 1.8rem; }

.flywheel-items {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flywheel-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: all;
  cursor: default;
}

.flywheel-node {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--bg-card);
  transition: var(--transition);
}

.flywheel-item:hover .flywheel-node {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(200,168,75,0.2);
}

.flywheel-item-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  max-width: 100px;
}

/* ---- Issue Card ---- */
.issue-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.issue-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(200,168,75,0.15), rgba(200,168,75,0.05));
  border: 1px solid rgba(200,168,75,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.issue-verdict {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: rgba(74,222,128,0.06);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
}

.issue-verdict-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.issue-verdict-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #4ADE80;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--text-muted); opacity: 0.5; }
.breadcrumb-current { color: var(--text-secondary); }

/* ---- Tabs ---- */
.tabs {
  display: flex;
  gap: var(--space-xs);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-xl);
  overflow-x: auto;
  scrollbar-width: none;
}

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

.tab-btn {
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  margin-bottom: -1px;
}

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

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- Phase Steps ---- */
.phase-steps {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  overflow-x: auto;
}

.phase-step {
  flex: 1;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: relative;
  transition: var(--transition);
}

.phase-step::after {
  content: '→';
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  z-index: 1;
}

.phase-step:last-child::after { display: none; }

.phase-step.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(200,168,75,0.05), var(--bg-card));
}

.phase-num {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.phase-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.phase-period {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- Skill Tags ---- */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-sm);
}

.skill-tag {
  padding: 3px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---- Back to Top ---- */
.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: var(--transition);
  z-index: 100;
}

.back-top:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(200,168,75,0.2);
}

.back-top.visible { display: flex; }

/* ---- Footer ---- */
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-xl) 0 var(--space-md);
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

.page-footer-nav {
  display: flex;
  gap: var(--space-md);
}

.page-footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.page-footer-nav a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.page-footer-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: var(--space-xl) 0;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* Stagger animations */
.stagger-children > * {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }

/* ---- Utility ---- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.w-full { width: 100%; }
.text-sm { font-size: 0.82rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }

.border-top { border-top: 1px solid var(--border-subtle); padding-top: var(--space-md); }
.rounded { border-radius: var(--radius-md); }
.overflow-hidden { overflow: hidden; }

/* ---- Responsive Nav ---- */
.nav-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  .nav-mobile-toggle { display: flex; }
  .nav-menu { 
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md);
    flex-direction: column;
    gap: var(--space-xs);
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 10px 16px; }
  .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 16px; }
  .hero { padding: var(--space-xl) 0; }
}

/* ---- Version Tags ---- */
.version-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(200,168,75,0.1);
  border: 1px solid rgba(200,168,75,0.25);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.version-tag.new {
  background: rgba(74,222,128,0.1);
  border-color: rgba(74,222,128,0.25);
  color: #4ADE80;
}

/* ---- Info Box ---- */
.info-box {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 3px solid;
  margin: var(--space-lg) 0;
}

.info-box.warning {
  background: rgba(251,191,36,0.06);
  border-color: #FBBF24;
}

.info-box.info {
  background: rgba(96,165,250,0.06);
  border-color: #60A5FA;
}

.info-box.success {
  background: rgba(74,222,128,0.06);
  border-color: #4ADE80;
}

.info-box.danger {
  background: rgba(248,113,113,0.06);
  border-color: #F87171;
}

.info-box-title {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-box p {
  font-size: 0.88rem;
  margin: 0;
}

/* ---- Delivery Status Tracker ---- */
.delivery-track {
  display: flex;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.delivery-stage {
  flex: 1;
  padding: var(--space-md);
  border-right: 1px solid var(--border-subtle);
  position: relative;
}

.delivery-stage:last-child { border-right: none; }

.delivery-stage.done {
  background: rgba(74,222,128,0.04);
}

.delivery-stage.active {
  background: rgba(200,168,75,0.06);
}

.delivery-stage-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.delivery-stage-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.delivery-stage-status {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.delivery-stage.done .delivery-stage-status { color: #4ADE80; }
.delivery-stage.active .delivery-stage-status { color: var(--primary); }

/* ---- Person Detail Card ---- */
.person-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.person-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.person-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.person-card:hover::after {
  opacity: 1;
}

.person-card-header {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.person-card-meta {
  flex: 1;
}

.person-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.person-card-name-en {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.person-card-title {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 4px;
}

.person-card-org {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.person-card-bio {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-md);
}

.person-why {
  background: rgba(200,168,75,0.05);
  border: 1px solid rgba(200,168,75,0.15);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.person-why strong {
  color: var(--primary);
}

/* Print styles */
@media print {
  .nav, .back-top, .theme-toggle { display: none; }
  .page-wrapper { padding: 20px; }
}
