/* ===========================================================
   MISO 온보딩 — 공통 스타일
   디자인 토큰은 tokens.css 참조 (모든 컬러·폰트·radius·shadow)
   =========================================================== */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

html, body { min-width: 320px; }
body { overflow: hidden; }

#root { width: 100vw; height: 100vh; min-width: 320px; }

button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; letter-spacing: -0.018em; }
p { margin: 0; }
em { font-style: normal; }

/* ============== App Layout ============== */
.app {
  display: grid;
  grid-template-columns: 296px 1fr;
  height: 100vh;
  background: var(--paper);
}

/* ============== Sidebar ============== */
.sidebar {
  border-right: 1px solid var(--ink-100);
  background: linear-gradient(180deg, #FCFBFE 0%, #F8F6FD 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px 20px;
  border-bottom: 1px solid var(--ink-100);
}

.sb-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--miso);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-purple);
  position: relative;
  overflow: hidden;
}
.sb-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.35), transparent 60%);
}

.sb-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.sb-brand-name { font-weight: 700; font-size: 15px; color: var(--ink-900); }
.sb-brand-sub { font-size: 11.5px; color: var(--ink-500); margin-top: 3px; font-weight: 500; }

.sb-section-title {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-400);
  padding: 18px 24px 8px;
}

.sb-steps { padding: 4px 12px 16px; flex: 1; overflow-y: auto; }

.sb-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
  width: 100%;
  text-align: left;
}
.sb-step:hover { background: rgba(74, 123, 255,0.05); }
.sb-step.active { background: white; box-shadow: var(--shadow-sm); }
.sb-step.active .sb-step-name { color: var(--ink-900); }

.sb-step-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 2px;
}
.sb-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--ink-200);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-600);
  transition: all 0.2s ease;
  z-index: 1;
}
.sb-step.active .sb-step-num {
  background: var(--miso);
  border-color: var(--miso);
  color: white;
  box-shadow: var(--shadow-purple);
}
.sb-step.done .sb-step-num {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: white;
}
.sb-step-line {
  position: absolute;
  top: 32px;
  bottom: -10px;
  width: 1.5px;
  background: var(--ink-200);
  z-index: 0;
}
.sb-step:last-child .sb-step-line { display: none; }

.sb-step-body { padding-top: 4px; min-width: 0; }
.sb-step-label {
  font-size: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sb-step-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-700);
  line-height: 1.35;
  margin-top: 2px;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.sb-step-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-500);
}

.sb-foot {
  border-top: 1px solid var(--ink-100);
  padding: 14px 20px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.6);
}
.sb-foot-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.18);
}
.sb-foot-text { font-size: 12px; color: var(--ink-600); }

/* ============== Main canvas ============== */
.main {
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(74, 123, 255,0.04), transparent 70%),
    var(--paper);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--ink-100);
  background: rgba(252,251,254,0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-crumb {
  font-size: 12px;
  color: var(--ink-500);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.topbar-divider { color: var(--ink-300); }
.topbar-title { font-size: 14px; font-weight: 600; color: var(--ink-800); }

.topbar-right { display: flex; align-items: center; gap: 8px; }
.view-toggle {
  display: inline-flex;
  background: var(--ink-50);
  border-radius: var(--r-md);
  padding: 3px;
  border: 1px solid var(--ink-100);
}
.view-toggle button {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 7px;
  color: var(--ink-500);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.view-toggle button:hover { color: var(--ink-700); }
.view-toggle button.on {
  background: white;
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}

/* ============== Hero / Intro ============== */
.hero {
  padding: 56px 40px 40px;
  max-width: 1080px;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--miso);
  background: var(--miso-50);
  padding: 6px 12px;
  border-radius: 100px;
}
.hero-eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--miso);
  box-shadow: 0 0 0 3px rgba(74, 123, 255,0.2);
}
.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  margin-top: 18px;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  text-wrap: balance;
}
.hero h1 em { color: var(--miso); }
.hero p.lede {
  font-size: 17px;
  color: var(--ink-600);
  margin-top: 18px;
  max-width: 680px;
  text-wrap: pretty;
  line-height: 1.55;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 38px;
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
}
.hero-stat { padding: 18px 24px 18px 0; border-right: 1px solid var(--ink-100); }
.hero-stat:last-child { border-right: 0; padding-right: 0; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-stat-num small {
  font-size: 14px;
  color: var(--ink-500);
  font-weight: 500;
  margin-left: 2px;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 8px;
  font-weight: 500;
}

/* ============== Timeline View ============== */
.timeline-section { padding: 0 40px 80px; }

.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 0 22px;
}
.timeline-head h2 { font-size: 20px; color: var(--ink-900); }
.timeline-head h2 small { font-size: 13px; color: var(--ink-500); margin-left: 10px; font-weight: 500; }

.timeline-rail {
  position: relative;
  padding: 24px 0;
}

.timeline-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--hue-0), var(--hue-3), var(--hue-6));
  border-radius: 4px;
  opacity: 0.55;
}

.timeline-stations {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  position: relative;
}

.station {
  text-align: left;
  padding: 0;
  position: relative;
  cursor: pointer;
}

.station-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-400);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.station-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  border: 3px solid;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
  transition: all 0.2s ease;
}
.station:hover .station-dot { transform: scale(1.18); }
.station.active .station-dot {
  background: var(--miso);
  border-color: var(--miso);
  box-shadow: 0 0 0 6px rgba(74, 123, 255,0.18);
}

.station-card {
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 14px 14px 14px;
  background: white;
  transition: all 0.18s ease;
  min-height: 120px;
  display: flex;
  flex-direction: column;
}
.station:hover .station-card {
  border-color: var(--miso-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.station.active .station-card {
  border-color: var(--miso);
  box-shadow: var(--shadow-purple);
}

.station-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.35;
  text-wrap: balance;
}
.station-owner {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Crew badge */
.crew-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9.5px;
  font-weight: 700;
  font-family: var(--font-display);
  color: white;
  flex-shrink: 0;
  letter-spacing: 0;
  border: 1.5px solid white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.crew-badge.lg { width: 36px; height: 36px; font-size: 13px; border-width: 2px; }
.crew-badge.xl { width: 48px; height: 48px; font-size: 16px; border-width: 2.5px; }

.crew-name { font-size: 11.5px; color: var(--ink-600); font-weight: 500; }

/* ============== Card Grid View ============== */
.grid-section { padding: 0 40px 80px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.step-card {
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  padding: 22px 22px 20px;
  background: white;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.step-card:hover {
  border-color: var(--miso-200);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.step-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.step-card-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.step-card-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.step-card h3 {
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink-900);
  margin-bottom: 10px;
  text-wrap: balance;
}
.step-card-desc {
  font-size: 13px;
  color: var(--ink-600);
  line-height: 1.5;
  margin-bottom: 18px;
}
.step-card-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--ink-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.step-card-tasks {
  font-size: 11.5px;
  color: var(--ink-500);
  font-weight: 500;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

/* ============== Detail Panel (Sheet) ============== */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,19,26,0.42);
  backdrop-filter: blur(4px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.sheet-overlay.open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(720px, 92vw);
  background: var(--paper);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -24px 0 60px -12px rgba(20,19,26,0.18);
}
.sheet.open { transform: translateX(0); }

.sheet-head {
  padding: 24px 32px 18px;
  border-bottom: 1px solid var(--ink-100);
  flex-shrink: 0;
  position: relative;
}
.sheet-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.sheet-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-500);
  background: var(--ink-50);
  transition: all 0.15s ease;
}
.sheet-close:hover { background: var(--ink-100); color: var(--ink-900); }

.sheet-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--miso);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sheet-title {
  font-size: 26px;
  line-height: 1.2;
  color: var(--ink-900);
  margin-top: 12px;
  text-wrap: balance;
}
.sheet-desc {
  font-size: 14px;
  color: var(--ink-600);
  margin-top: 12px;
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 600px;
}

.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 40px;
}

.sheet-section { margin-bottom: 28px; }
.sheet-section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sheet-section-title::before {
  content: "";
  width: 16px; height: 1.5px;
  background: var(--ink-300);
}

/* Crew block */
.crew-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  flex-wrap: wrap;
}
.crew-block .crew-handoff {
  flex: 1 1 100%;
  font-size: 12.5px;
  color: var(--ink-500);
  margin: 2px 0 0;
  line-height: 1.45;
}
.crew-person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.crew-info { display: flex; flex-direction: column; line-height: 1.2; }
.crew-info .n {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
}
.crew-info .r {
  font-size: 11.5px;
  color: var(--ink-500);
  margin-top: 2px;
}

/* Checklist */
.checklist-group { margin-bottom: 18px; }
.checklist-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-800);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.checklist-group-pill {
  font-size: 10.5px;
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--miso-50);
  color: var(--miso);
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checklist {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.checklist-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 16px;
  border-bottom: 1px solid var(--ink-100);
  transition: background 0.12s ease;
  text-align: left;
  width: 100%;
}
.checklist-item:last-child { border-bottom: 0; }
.checklist-item:hover { background: var(--ink-50); }
.checklist-sub { padding-left: 56px; }

.check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--ink-300);
  background: white;
  display: grid;
  place-items: center;
  margin-top: 1px;
  transition: all 0.15s ease;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.checklist-item:hover .check-box { border-color: var(--miso); }
.check-box.checked {
  background: var(--miso);
  border-color: var(--miso);
}
.check-box.checked svg { display: block; }
.check-box svg { display: none; }

.check-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.check-text,
.check-text-btn {
  font-size: 13.5px;
  color: var(--ink-800);
  line-height: 1.5;
  text-wrap: pretty;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.check-text-btn { width: 100%; }
.checklist-item.is-checked .check-text,
.checklist-item.is-checked .check-text-btn {
  color: var(--ink-500);
  text-decoration: line-through;
  text-decoration-color: var(--ink-300);
}
.check-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--miso);
  text-decoration: none;
  font-weight: 500;
  width: fit-content;
  max-width: 100%;
}
.check-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.check-link:focus-visible {
  outline: 2px solid var(--miso);
  outline-offset: 2px;
  border-radius: 4px;
}
.checklist-item.is-checked .check-link {
  color: var(--ink-500);
  text-decoration: line-through;
  text-decoration-color: var(--ink-300);
}
.check-ext-icon {
  flex-shrink: 0;
  opacity: 0.75;
}
.check-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-500);
  text-wrap: pretty;
}
.checklist-item.is-checked .check-note {
  color: var(--ink-400);
  text-decoration: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Done indicator */
.done-list {
  background: linear-gradient(180deg, #FCFAFF 0%, #F8F3FF 100%);
  border: 1px solid var(--miso-100);
  border-radius: var(--r-lg);
  padding: 4px 0;
}
.done-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px dashed var(--miso-100);
}
.done-row:last-child { border-bottom: 0; }
.done-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--miso);
  letter-spacing: 0.02em;
}
.done-text { font-size: 13.5px; color: var(--ink-800); line-height: 1.5; }

/* Step nav at sheet bottom */
.sheet-nav {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-100);
}
.sheet-nav button {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--ink-100);
  background: white;
  text-align: left;
  transition: all 0.15s ease;
}
.sheet-nav button:hover:not(:disabled) {
  border-color: var(--miso);
  background: var(--miso-50);
}
.sheet-nav button:disabled { opacity: 0.4; cursor: not-allowed; }
.sheet-nav .arrow {
  font-family: var(--font-display);
  color: var(--ink-400);
  flex-shrink: 0;
}
.sheet-nav .label-block { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sheet-nav .label-eb { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-400); font-family: var(--font-display); }
.sheet-nav .label-name { font-size: 13px; color: var(--ink-800); font-weight: 500; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-nav .next { justify-content: flex-end; text-align: right; }
.sheet-nav .next .arrow { order: 2; }

/* ============== Crew tooltip on hover ============== */
.crew-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink-900);
  color: white;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 30;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
}
.crew-tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--ink-900);
}
.crew-wrap { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.crew-wrap:hover .crew-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.crew-tooltip .name { font-weight: 600; }
.crew-tooltip .role { color: var(--ink-300); font-size: 11px; }

/* ============== Metrics summary ============== */
.metrics {
  margin: 88px auto 88px;
  max-width: 1320px;
  padding: 0 40px;
  position: relative;
}
.metrics::before {
  content: "";
  display: none;
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 123, 255,0.18), transparent 70%);
}

.metrics-eb {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--miso-200);
}
.metrics h2 {
  color: white;
  font-size: 28px;
  margin-top: 12px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.metrics h2 em { color: var(--miso-200); }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
  position: relative;
}

.metric {
  position: relative;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 24px 22px 22px;
  background: white;
  transition: all 0.2s ease;
  --metric-color: var(--miso);
  --metric-bg: var(--miso-50);
}
.metric:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--metric-color);
}
.metric--time { --metric-color: #F59E0B; --metric-bg: #FFF4E1; }
.metric--adopt { --metric-color: #4A7BFF; --metric-bg: #EEF3FF; }
.metric--biz { --metric-color: #10B981; --metric-bg: #E2F7EE; }

.metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--metric-bg);
  display: grid;
  place-items: center;
  color: var(--metric-color);
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 700;
}
.metric-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.metric-name .en {
  font-family: var(--font-display);
  font-size: 11.5px;
  color: var(--ink-400);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.metric-desc { font-size: 12.5px; color: var(--ink-600); margin-top: 6px; line-height: 1.45; }
.metric-list {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--ink-100);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.metric-list li {
  font-size: 12px;
  color: var(--ink-700);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.metric-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--miso-200);
  margin-top: 7px;
  flex-shrink: 0;
}

/* ============== Crew roster ============== */
.roster {
  margin: 88px auto 0;
  max-width: 1320px;
  padding: 0 40px;
}
.roster h2 { font-size: 20px; }
.roster-sub { font-size: 13px; color: var(--ink-500); margin-top: 6px; }
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.roster-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  background: white;
}
.roster-info { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.roster-info .n { font-size: 14px; font-weight: 600; color: var(--ink-900); }
.roster-info .r { font-size: 12px; color: var(--ink-500); margin-top: 4px; }
.roster-info .s {
  font-size: 11px;
  color: var(--miso);
  font-family: var(--font-display);
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-300); background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

/* fade in */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.35s ease both; }

/* ============== Empty / placeholder ============== */
.placeholder-stripes {
  background-image: repeating-linear-gradient(
    -45deg,
    var(--ink-100),
    var(--ink-100) 1px,
    transparent 1px,
    transparent 8px
  );
}
