/* Talent Hub V2 — Modern HR SaaS UI
 * inspiration: Linear / Vercel / Mercury / Notion / Lattice
 */

:root {
  --ink: #0A0A0F;
  --canvas: #FAFAFB;
  --surface: #FFFFFF;
  --line: #EDEDF0;
  --line2: #E4E4E9;
  --mute: #6B7280;
  --mute2: #9AA0A6;
  --accent: #5B5BD6;
  --accent-2: #7C7CF0;
  --accent-soft: #EEF0FF;
  --ok: #16A34A;
  --warn: #D97706;
  --danger: #DC2626;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background:
    radial-gradient(900px 500px at 100% -10%, rgba(91,91,214,0.06), transparent 60%),
    radial-gradient(800px 600px at -10% 110%, rgba(124,124,240,0.04), transparent 60%),
    var(--canvas);
  letter-spacing: -0.005em;
}

/* ───────── nav ───────── */
.nav-link {
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--ink); background: var(--line); }
.nav-link--active { color: var(--ink); background: var(--line); }

/* ───────── KPI cells ───────── */
.kpi-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: left;
  transition: border-color 0.15s, transform 0.15s;
}
.kpi-cell:hover { border-color: var(--line2); }
.kpi-label { font-size: 10px; color: var(--mute); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.kpi-num { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; line-height: 1; color: var(--ink); }
.kpi-unit { font-size: 13px; font-weight: 500; color: var(--mute); margin-left: 1px; }
.kpi-delta { font-size: 11px; margin-top: 6px; font-weight: 500; }
.kpi-up { color: var(--ok); }
.kpi-down { color: var(--danger); }
.kpi-mute { color: var(--mute); }

/* ───────── module pill ───────── */
.mod-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all 0.15s;
}
.mod-pill:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.mod-pill--new { border-color: rgba(91,91,214,0.25); background: linear-gradient(135deg, var(--accent-soft) 0%, transparent 60%); }
.mod-pill-num {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ink); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 12px;
  flex-shrink: 0;
}
.mod-pill-title { font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.mod-pill-sub { font-size: 10px; color: var(--mute); margin-top: 2px; }

/* ───────── avatar ───────── */
.avatar {
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-md { width: 40px; height: 40px; font-size: 13px; }
.avatar-lg { width: 80px; height: 80px; font-size: 26px; border-radius: 16px; }

/* ───────── talent card grid ───────── */
.talent-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.talent-card:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(91,91,214,0.08); transform: translateY(-1px); }
.talent-card .row1 { display: flex; align-items: center; gap: 10px; }
.talent-card .name { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.talent-card .meta { font-size: 11px; color: var(--mute); margin-top: 2px; }
.talent-card .stat-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--line); }
.talent-card .stat { text-align: center; }
.talent-card .stat-label { font-size: 9px; color: var(--mute2); text-transform: uppercase; letter-spacing: 0.05em; }
.talent-card .stat-val { font-size: 12px; font-weight: 600; color: var(--ink); margin-top: 2px; }

/* tier */
.tier-badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}
.tier-JK { background: #FEF3E2; color: #92580E; }
.tier-JC { background: #FEE7E7; color: #B91C1C; }
.tier-general { background: var(--accent-soft); color: var(--accent); }

/* utilization mini bar */
.util-bar {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.util-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: width 0.3s;
}
.util-fill.low { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.util-fill.high { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ───────── pipeline (kanban) ───────── */
.lane {
  background: var(--canvas);
  border-radius: 12px;
  padding: 12px 10px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lane-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 6px 4px; border-bottom: 1px dashed var(--line2); }
.lane-title { font-size: 11px; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; display: flex; align-items: center; gap: 6px; }
.lane-dot { width: 8px; height: 8px; border-radius: 50%; }
.lane-count { font-size: 10px; color: var(--mute); background: var(--surface); padding: 1px 6px; border-radius: 10px; border: 1px solid var(--line); }

.deal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  cursor: pointer;
  transition: all 0.15s;
}
.deal-card:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(10,10,15,0.06); }
.deal-card.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.deal-card .deal-cat { font-size: 9px; font-weight: 600; color: var(--accent); letter-spacing: 0.05em; text-transform: uppercase; }
.deal-card .deal-title { font-size: 12px; font-weight: 600; color: var(--ink); margin-top: 4px; line-height: 1.35; }
.deal-card .deal-budget { font-size: 11px; color: var(--mute); margin-top: 6px; display: flex; align-items: center; justify-content: space-between; }
.deal-card .deal-stack { display: flex; margin-top: 8px; }
.deal-card .deal-stack .avatar-sm { margin-left: -6px; border: 2px solid var(--surface); width: 22px; height: 22px; font-size: 9px; }
.deal-card .deal-stack .avatar-sm:first-child { margin-left: 0; }

.lane-total { font-size: 10px; color: var(--mute); padding: 6px 4px 0; border-top: 1px dashed var(--line2); margin-top: 4px; text-align: right; }

/* deal panel score chips */
.score-chip {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.score-rule { background: var(--ink); color: white; }
.score-llm  { background: var(--accent); color: white; }
.score-total{ background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(91,91,214,0.25); }

/* ───────── module C scatter / table ───────── */
#sns-correlation-table table { width: 100%; border-collapse: collapse; font-size: 11px; }
#sns-correlation-table th { text-align: left; font-weight: 500; font-size: 10px; color: var(--mute); padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--canvas); letter-spacing: 0.05em; text-transform: uppercase; }
#sns-correlation-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
#sns-correlation-table tr:last-child td { border-bottom: 0; }
#sns-correlation-table tr:hover td { background: var(--canvas); }
.corr-pill { display: inline-block; padding: 1px 8px; font-size: 10px; font-weight: 600; border-radius: 4px; }
.corr-strong { background: #DCFCE7; color: #166534; }
.corr-mid { background: #FEF3C7; color: #92400E; }
.corr-weak { background: #FEE2E2; color: #991B1B; }

/* LLM insight item (dark card) */
.insight-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px;
}
.insight-item .ttl { font-size: 11px; font-weight: 600; color: white; }
.insight-item .body { font-size: 11px; color: rgba(255,255,255,0.65); line-height: 1.55; margin-top: 6px; }
.insight-item .tag { display: inline-block; font-size: 9px; padding: 1px 6px; background: var(--accent); color: white; border-radius: 4px; letter-spacing: 0.04em; margin-bottom: 4px; }

/* ───────── module D ───────── */
.brief-item {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
}
.brief-item .icon { width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brief-item .body { flex: 1; }
.brief-item .ttl { font-size: 12px; font-weight: 600; color: white; line-height: 1.3; }
.brief-item .desc { font-size: 11px; color: rgba(255,255,255,0.75); margin-top: 4px; line-height: 1.5; }

.draft-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  transition: border-color 0.15s;
}
.draft-card:hover { border-color: var(--line2); }
.draft-card .head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.draft-card .platform { font-size: 9px; font-weight: 600; padding: 1px 6px; border-radius: 4px; letter-spacing: 0.05em; text-transform: uppercase; }
.platform-ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743); color: white; }
.platform-tt { background: var(--ink); color: white; }
.platform-x { background: var(--ink); color: white; }
.platform-mail { background: var(--accent-soft); color: var(--accent); }
.draft-card .draft-body { font-size: 11px; color: var(--ink); line-height: 1.55; background: var(--canvas); padding: 8px 10px; border-radius: 6px; border: 1px dashed var(--line); }
.draft-card .actions { display: flex; gap: 6px; margin-top: 8px; }
.draft-card .btn-primary { flex: 1; font-size: 11px; font-weight: 500; padding: 5px 0; background: var(--ink); color: white; border-radius: 6px; }
.draft-card .btn-primary:hover { background: rgba(10,10,15,0.85); }
.draft-card .btn-ghost { font-size: 11px; color: var(--mute); padding: 5px 8px; border-radius: 6px; }
.draft-card .btn-ghost:hover { background: var(--line); color: var(--ink); }

/* ───────── module E ───────── */
.roadmap {
  position: relative;
  padding: 18px 0 28px;
}
.roadmap-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}
.roadmap-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}
.roadmap-pts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
}
.roadmap-pt {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 6px;
}
.roadmap-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--mute2);
  margin-bottom: 8px;
  z-index: 1;
}
.roadmap-pt.done .roadmap-dot { border-color: var(--accent); background: var(--accent); }
.roadmap-pt.now .roadmap-dot { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.roadmap-pt.next .roadmap-dot { border-color: var(--ink); }
.roadmap-period { font-size: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.roadmap-goal { font-size: 11px; color: var(--ink); font-weight: 500; margin-top: 4px; line-height: 1.4; }
.roadmap-meta { font-size: 9px; color: var(--mute); margin-top: 3px; }

.chat-bubble {
  display: flex;
  gap: 8px;
}
.chat-bubble.ai { justify-content: flex-start; }
.chat-bubble.me { justify-content: flex-end; }
.chat-bubble .bubble {
  max-width: 80%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
}
.chat-bubble.ai .bubble { background: var(--canvas); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-bubble.me .bubble { background: var(--ink); color: white; border-bottom-right-radius: 4px; }

.risk-item { padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.risk-item .ttl { font-size: 11px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.risk-item .desc { font-size: 10px; color: var(--mute); margin-top: 4px; line-height: 1.5; }
.risk-item .lvl { display: inline-block; font-size: 9px; padding: 1px 5px; border-radius: 4px; font-weight: 600; margin-bottom: 4px; }
.risk-item .lvl-high { background: #FEE2E2; color: #991B1B; }
.risk-item .lvl-mid { background: #FEF3C7; color: #92400E; }
.risk-item .lvl-low { background: var(--canvas); color: var(--mute); }

.backlog-col { background: var(--canvas); border-radius: 8px; padding: 8px; min-height: 240px; display: flex; flex-direction: column; gap: 6px; }
.backlog-col-head { font-size: 10px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: 0.05em; padding: 0 4px 4px; border-bottom: 1px dashed var(--line); }
.backlog-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.backlog-card .ttl { font-size: 11px; color: var(--ink); line-height: 1.35; font-weight: 500; }
.backlog-card .meta { font-size: 9px; color: var(--mute); margin-top: 4px; display: flex; justify-content: space-between; }

/* ───────── alerts ───────── */
.alert-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  transition: all 0.15s;
}
.alert-card:hover { border-color: var(--warn); }
.alert-card .alert-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 600; padding: 2px 6px; background: #FEF3C7; color: #92400E; border-radius: 4px; letter-spacing: 0.04em; }
.alert-card .alert-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 8px; line-height: 1.3; }
.alert-card .alert-body { font-size: 11px; color: var(--mute); margin-top: 8px; line-height: 1.6; }
.alert-card .alert-action { font-size: 11px; font-weight: 600; color: var(--accent); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 4px; }

/* ───────── modal (Module A 詳細) ───────── */
.modal-tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 24px; }
.modal-tab { padding: 12px 16px; font-size: 12px; font-weight: 500; color: var(--mute); cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.15s; }
.modal-tab:hover { color: var(--ink); }
.modal-tab.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.modal-pane { padding: 20px 24px; }
.modal-pane[hidden] { display: none; }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 18px; }
.timeline-item::before { content: ''; position: absolute; left: -22px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline-item.complete::before { background: var(--accent); }
.timeline-item .date { font-size: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.timeline-item .ttl { font-size: 12px; font-weight: 600; color: var(--ink); margin-top: 3px; line-height: 1.4; }
.timeline-item .meta { font-size: 11px; color: var(--mute); margin-top: 4px; line-height: 1.5; }
.timeline-item .badges { display: flex; gap: 4px; margin-top: 6px; }

.note-card { background: var(--canvas); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.note-card .head { font-size: 10px; color: var(--mute); display: flex; justify-content: space-between; }
.note-card .body { font-size: 12px; color: var(--ink); margin-top: 6px; line-height: 1.55; }

.handler-card { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.handler-card .role { font-size: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.05em; }
.handler-card .name { font-size: 12px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.handler-card .actions { margin-left: auto; display: flex; gap: 4px; }
.handler-card .actions a { width: 26px; height: 26px; border-radius: 6px; background: var(--canvas); display: flex; align-items: center; justify-content: center; color: var(--mute); transition: all 0.15s; }
.handler-card .actions a:hover { background: var(--accent-soft); color: var(--accent); }

.spark { width: 60px; height: 22px; }

/* sparkline / mini chart canvas wrappers */
.mini-chart-wrap { height: 40px; }

/* ───────── V3: index summary mini tiles ───────── */
.talent-card-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all 0.15s;
  text-decoration: none;
  color: var(--ink);
}
.talent-card-mini:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }

/* ───────── V3: editable field rows ───────── */
[data-field-row] dt { font-weight: 500; }
.field-input { font-family: inherit; }
.edit-btn { padding: 2px; border-radius: 4px; }
.edit-btn:hover { background: var(--canvas); }

/* roadmap supports dynamic grid template (overridden inline by JS) */
.roadmap-pts { grid-template-columns: repeat(6, 1fr); }

/* handler-card refinements for V3 swap UI */
.handler-card .actions { gap: 6px; }
.handler-card .actions a, .handler-card .actions button {
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────
 * V4 — auth / onboarding / form primitives
 * ───────────────────────────────────────────────────────── */

/* form fields used across login / onboarding / talent-new */
.fld-label {
  display: block;
  font-size: 11px;
  color: var(--mute);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.fld-label .req { color: var(--danger); margin-left: 2px; font-weight: 600; }
.fld-input,
.fld-select,
.fld-textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 13px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fld-input:focus,
.fld-select:focus,
.fld-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.fld-textarea { resize: vertical; min-height: 70px; }
.fld-help { font-size: 10px; color: var(--mute); margin-top: 4px; }

/* primary / ghost buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 8px;
  transition: background 0.15s, transform 0.05s;
}
.btn-primary:hover { background: rgba(10,10,15,0.86); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { background: var(--mute2); cursor: not-allowed; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--mute);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  transition: all 0.15s;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--line2); }

/* radio / checkbox group */
.chk-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  transition: all 0.12s;
}
.chk-pill:hover { border-color: var(--line2); }
.chk-pill input { accent-color: var(--accent); cursor: pointer; }
.chk-pill.checked { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* tag input chips */
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--ink);
  margin: 2px 4px 2px 0;
}
.tag-chip button {
  border: 0; background: transparent; color: var(--mute);
  font-size: 13px; line-height: 1; cursor: pointer; padding: 0; margin-left: 2px;
}
.tag-chip button:hover { color: var(--danger); }

/* login card */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(10,10,15,0.05);
}
.auth-card h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 6px;
}
.auth-card .sub {
  font-size: 12px;
  color: var(--mute);
  text-align: center;
  margin-bottom: 24px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 11px;
  color: var(--mute2);
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-foot {
  text-align: center;
  font-size: 10px;
  color: var(--mute);
  margin-top: 20px;
  line-height: 1.7;
}
.auth-foot a { color: var(--mute); text-decoration: underline; }
.auth-foot .sample-note {
  display: inline-block;
  margin-top: 6px;
  background: var(--ink);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* eye toggle on password */
.pw-wrap { position: relative; }
.pw-wrap .pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--mute);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}
.pw-wrap .pw-toggle:hover { color: var(--ink); background: var(--canvas); }

/* wizard step indicator */
.wiz-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}
.wiz-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--mute2);
  font-weight: 500;
}
.wiz-step .dot {
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--canvas);
  border: 1.5px solid var(--line2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
}
.wiz-step.active { color: var(--ink); }
.wiz-step.active .dot { background: var(--accent); border-color: var(--accent); color: white; }
.wiz-step.done .dot { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.wiz-bar {
  width: 36px; height: 1.5px; background: var(--line);
}
.wiz-bar.done { background: var(--accent); }

.wiz-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* talent-new sticky preview */
.tn-preview {
  position: sticky;
  top: 80px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(10,10,15,0.04);
}
.tn-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(10,10,15,0.03);
}
.tn-section h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.tn-section .desc { font-size: 11px; color: var(--mute); margin-bottom: 16px; }

.talent-card-mini-onb {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.12s;
}
.talent-card-mini-onb:hover { border-color: var(--line2); }
.talent-card-mini-onb.checked { border-color: var(--accent); background: var(--accent-soft); }

/* ───────── PRINT (A3 landscape, 1 page overview) ───────── */
@media print {
  @page { size: A3 landscape; margin: 6mm; }
  html, body {
    background: white !important;
    font-size: 9px;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  * { box-shadow: none !important; }
  header.sticky { position: static !important; backdrop-filter: none !important; background: white !important; }
  header { border-bottom: 1px solid var(--line) !important; }
  header .h-14 { height: auto !important; padding: 4px 12px !important; }
  nav { display: none !important; }
  .print\:hidden { display: none !important; }
  main { padding: 6px 12px !important; }
  section { margin-bottom: 6px !important; }
  h1 { font-size: 16px !important; line-height: 1.15 !important; }
  h2 { font-size: 11px !important; }
  h3 { font-size: 11px !important; }
  .text-\[34px\], .text-\[40px\] { font-size: 14px !important; line-height: 1.15 !important; }
  .text-\[22px\] { font-size: 11px !important; }
  .text-\[18px\] { font-size: 10px !important; }
  .text-\[14px\] { font-size: 9px !important; }
  .text-\[13px\] { font-size: 8px !important; }
  .text-\[12px\] { font-size: 8px !important; }
  .text-\[11px\] { font-size: 7px !important; }
  .text-\[10px\] { font-size: 7px !important; }
  .py-10, .pt-10, .pb-8 { padding-top: 4px !important; padding-bottom: 4px !important; }
  .py-8, .py-6 { padding-top: 4px !important; padding-bottom: 4px !important; }
  .mb-12, .mb-8 { margin-bottom: 6px !important; }
  .mb-4, .mb-3 { margin-bottom: 3px !important; }
  .mt-8, .mt-4 { margin-top: 3px !important; }
  .gap-6, .gap-3 { gap: 4px !important; }
  .p-5, .p-4 { padding: 6px !important; }

  /* keep KPI strip + module pills + first row of each section */
  .kpi-cell { padding: 6px !important; }
  .kpi-num { font-size: 16px !important; }
  .mod-pill { padding: 4px 6px !important; }
  .mod-pill-num { width: 18px; height: 18px; font-size: 9px; }

  /* module A: limit to 8 talents */
  #talent-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 4px !important; }
  #talent-grid > .talent-card:nth-child(n+9) { display: none !important; }
  .talent-card { padding: 6px !important; gap: 4px !important; }
  .talent-card .stat-grid { padding-top: 4px !important; }

  /* module B: keep kanban shape */
  #pipeline { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 3px !important; overflow: visible !important; }
  .lane { padding: 4px !important; gap: 3px !important; }
  .deal-card { padding: 4px !important; }
  .lane > .deal-card:nth-child(n+4) { display: none !important; }
  #deal-panel { display: none !important; }

  /* module C: chart shrink */
  #scatter-chart, #bar-chart { max-height: 110px !important; }
  .h-72 { height: 110px !important; }
  #sns-correlation-table table { font-size: 7px; }
  #sns-correlation-table th, #sns-correlation-table td { padding: 3px 5px !important; }
  /* hide rows beyond 5 */
  #sns-correlation-table tbody tr:nth-child(n+6) { display: none !important; }

  /* module D: hide drafts (keep brief only) */
  #post-drafts > div:nth-child(n+2),
  #mail-drafts > div:nth-child(n+2) { display: none !important; }

  /* module E: keep roadmap, hide chat / risk / backlog */
  #strategist-chat, #risks, #backlog { display: none !important; }
  .roadmap { padding: 8px 0 !important; }

  /* alerts: 3 only */
  #alert-list { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 3px !important; }
  #alert-list > .alert-card:nth-child(n+4) { display: none !important; }
  .alert-card { padding: 6px !important; }

  /* hide modal */
  #talent-modal { display: none !important; }

  /* footer */
  footer { padding: 2px 0 !important; }
  footer .py-6 { padding-top: 2px !important; padding-bottom: 2px !important; }

  /* fixed sample badge - keep small */
  .fixed.top-3.right-3 { top: 1mm !important; right: 1mm !important; }

  /* page break controls */
  section, .talent-card, .deal-card, .alert-card, .lane { page-break-inside: avoid; }
}
