h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ============================================================
   008 — 파이썬 프로토타입(ai_mail_manager, static/style.css) 이식
   원칙: 검정 배경 + 따뜻한 앰버 포인트 + 얇은 선 + 넓은 여백
   값은 프로토타입에서 그대로 가져온다(재창작 아님, research.md §1).
   ============================================================ */

:root {
  --bg: #0A0A0A;
  --bg-panel: #131313;
  --bg-card: #1A1A1A;
  --bg-subtle: #202020;
  --ink: #F2F2F0;
  --gray: #999999;
  --gray-dim: #858585;
  --divider: #262626;
  --accent: #C9A455;
  --accent-dim: #E3C077;
  --accent-deep: #B8934A;
  --red: #E0574C;
  --red-soft: #2A1614;
  --green: #4CAF6D;
  --info: #8F86C9;
  --green-soft: #142A1C;
  --amber: #C9A455;
  --amber-soft: #2A2213;
  --font-display: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;

  /* 040: 랜딩페이지(marketing/landing-page/index.html)와 같은 이름의 변수 — 로그인 화면 톤 통일용.
     값이 같은 것은 위의 기존 변수를 가리키고, 앱에 없던 것은 랜딩페이지와 같은 값으로 정의한다.
     두 파일의 값이 어긋나지 않는지는 LandingThemeTokensTests가 확인한다. */
  --gold: var(--accent);
  --gold-strong: var(--accent-dim);
  --surface: var(--bg-panel);
  --muted: var(--gray);
  --line: var(--divider);
  --main: var(--ink);
  --gold-tint: rgba(201, 164, 85, 0.14);
  --on-gold: #14120D;
  --shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.65);
  --radius-s: 10px;
  --radius-m: 16px;

  /* 046: 오늘의 요약 카테고리 비율 막대그래프 전용 색 — 기존 --gold/--red와 겹치지 않는 팔레트. */
  --chart-fan: #D9B46A;
  --chart-system: #8B7FC9;
  --chart-check: #E08A6B;
  --chart-business: #6EA8D8;
  --chart-spam: #3A3833;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ---------- 전체 레이아웃 (왼쪽 사이드바 + 메인 콘텐츠) ---------- */
.app-shell { display: flex; min-height: 100vh; align-items: flex-start; }

.sidebar {
  width: 232px; flex-shrink: 0;
  background: var(--bg-panel); border-right: 1px solid var(--divider);
  padding: 28px 18px; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-top { margin-bottom: 30px; }
.mailvine-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-bottom: 10px; cursor: pointer;
}
.mailvine-symbol { flex-shrink: 0; display: flex; color: var(--accent); }
.mailvine-text { display: flex; flex-direction: column; line-height: 1.2; }
.mailvine-text .brand-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: 0.3px; }
.mailvine-text .brand-name em { font-style: normal; color: var(--accent); }
.mailvine-text .brand-sub { font-size: 8.5px; font-weight: 700; color: var(--accent); letter-spacing: 0.09em; text-transform: uppercase; margin-top: 3px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar-nav a {
  padding: 9px 10px; border-radius: 7px; font-size: 13.5px; color: var(--gray);
  text-decoration: none; letter-spacing: 0.01em;
}
.sidebar-nav a:hover { background: var(--bg-card); color: var(--ink); }
.sidebar-nav a.active { background: var(--bg-card); color: var(--ink); font-weight: 700; }

.sidebar-bottom { border-top: 1px solid var(--divider); padding-top: 16px; margin-top: 16px; }
.sidebar-accounts-title { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-dim); margin: 0 0 10px; padding: 0 10px; }
.sidebar-account-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray); padding: 4px 10px; }
.sidebar-empty { font-size: 12px; color: var(--gray-dim); padding: 0 10px; margin: 0; }
.sidebar-settings-link {
  display: block; margin-top: 10px; padding: 9px 10px; border-radius: 7px;
  font-size: 13px; color: var(--gray); text-decoration: none;
}
.sidebar-settings-link:hover { background: var(--bg-card); color: var(--ink); }

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

@media (max-width: 760px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--divider); }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
  /* 041: .app-shell의 align-items: flex-start 때문에 세로로 쌓인 콘텐츠 영역이 내용 폭으로 줄어들어,
     내용이 좁은 화면(빈 상태 카드)이 화면 폭을 채우지 못했다. */
  .main-content { align-self: stretch; }
}

/* ---------- 공통 레이아웃 ---------- */
.wrap { max-width: 880px; margin: 0 auto; padding: 44px 32px 100px; }
.wrap-narrow { max-width: 560px; margin: 0 auto; padding: 44px 32px 100px; }

/* 2026-09-23: 홈 화면에서 "메일 분석 실행" 버튼(.analyze-toolbar)과 그 아래 TodaySummary
   (.wrap.wrap-after-toolbar)가 각각 독립된 .wrap(상단 44px+하단 100px)을 쓰면 두 패딩이 겹쳐
   144px 이상 벌어진다. .wrap 자체는 다른 여러 화면이 공유하므로 건드리지 않고, 이 조합에만
   쓰이는 두 보조 클래스로 간격을 28px로 좁힌다. */
.analyze-toolbar { max-width: 880px; margin: 0 auto; padding: 44px 32px 0; }
.wrap-after-toolbar { padding-top: 28px; }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray-dim); margin: 0 0 6px;
}
h1.page-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.005em; margin: 0; color: var(--ink); }
.page-date { font-size: 13px; color: var(--gray); margin: 8px 0 2px; letter-spacing: 0.02em; }
.page-sub { font-size: 13px; color: var(--gray-dim); margin: 0 0 20px; }

/* ---------- 플래시 메시지 ---------- */
.flash { padding: 11px 14px; border-radius: 6px; margin-bottom: 18px; font-size: 13px; line-height: 1.5; border: 1px solid var(--divider); }
.flash.success { background: var(--green-soft); color: #8FD9A8; border-color: #234030; }
.flash.error { background: var(--red-soft); color: #F2A199; border-color: #4A2622; }
.flash.notice { background: var(--amber-soft); color: var(--amber); border-color: #4A3B1E; }

/* ---------- 핵심 숫자 ---------- */
.num-row { display: flex; margin: 26px 0 22px; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); flex-wrap: wrap; }
.num-item {
  flex: 1; text-decoration: none; color: inherit; text-align: left;
  padding: 18px 20px 18px 0; min-width: 90px;
}
.num-item .n { font-size: 30px; font-weight: 800; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.num-item .l { font-size: 11.5px; color: var(--gray); margin-top: 8px; letter-spacing: 0.02em; }

/* ---------- 046 오늘의 요약 재설계: 헤더 날짜 + 핵심 한 줄 + 비율 막대그래프 + 우선순위 카드 ---------- */
.report-heading-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.today-date { font-size: 12px; color: var(--gray-dim); }

.today-headline { font-size: 17px; font-weight: 600; line-height: 1.6; color: #D7D6DA; margin: 18px 0 0; max-width: 640px; }
.today-headline .hl-total { color: var(--gold); font-weight: 700; }
.today-headline .hl-urgent { color: var(--chart-check); font-weight: 700; }

.category-chart { margin: 18px 0 30px; }
.category-bar { display: flex; width: 100%; height: 10px; border-radius: 999px; overflow: hidden; background: var(--divider); }
.category-bar-segment.fan { background: var(--chart-fan); }
.category-bar-segment.system { background: var(--chart-system); }
.category-bar-segment.check { background: var(--chart-check); }
.category-bar-segment.business { background: var(--chart-business); }
.category-bar-segment.spam { background: var(--chart-spam); }
.category-bar-segment.etc { background: var(--gray-dim); }
.category-legend { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.category-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #C8C4B8; }
.category-legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.category-legend-dot.fan { background: var(--chart-fan); }
.category-legend-dot.system { background: var(--chart-system); }
.category-legend-dot.check { background: var(--chart-check); }
.category-legend-dot.business { background: var(--chart-business); }
.category-legend-dot.spam { background: var(--chart-spam); }
.category-legend-dot.etc { background: var(--gray-dim); }

.priority-section { margin-bottom: 26px; }
.priority-card-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.priority-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-panel); border: 1px solid var(--divider); border-radius: 14px; padding: 16px 18px;
}
.priority-rank {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-card); color: var(--gold); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.priority-body { flex-grow: 1; min-width: 0; }
.priority-top-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.priority-title { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.priority-deadline {
  flex-shrink: 0; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: var(--red-soft); color: var(--chart-check);
}
.priority-desc { font-size: 12.5px; color: var(--gray-dim); margin: 5px 0 0; }

/* ---------- 050: 우선순위 카드 → 전용 답장 작성 화면 이동 링크(047의 인라인 폼을 대체) ---------- */
.priority-reply-cta-btn { margin-top: 8px; }
.reply-compose-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.reply-send-btn {
  padding: 7px 16px; border-radius: 7px; border: none; background: var(--ink); color: #0B0B0D;
  font-size: 12.5px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.reply-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- 050: 전용 답장 작성 화면(/reply/compose/{id}) ---------- */
.reply-compose-summary {
  background: var(--bg-card); border: 1px solid var(--divider); border-radius: 10px;
  padding: 16px 18px; margin: 4px 0 18px;
}
.reply-compose-original-summary { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.reply-compose-original-reason { font-size: 13px; color: var(--gray-dim); margin: 0; }
.reply-compose-textarea {
  width: 100%; min-height: 220px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--divider);
  background: #16161A; color: var(--ink); font-size: 13.5px; line-height: 1.7; font-family: inherit;
  resize: vertical; box-sizing: border-box;
}
.reply-compose-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.reply-template-label { display: block; font-size: 12px; font-weight: 700; color: var(--gray-dim); margin: 0 0 6px; }
.reply-template-select {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--divider);
  background: #16161A; color: var(--ink); font-size: 13px; font-family: inherit; margin-bottom: 14px;
}
.reply-subject-input {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--divider);
  background: #16161A; color: var(--ink); font-size: 13.5px; font-family: inherit; margin-bottom: 14px;
}
.reply-subject-input:focus { outline: none; border-color: var(--accent); }
.reply-template-empty { font-size: 13px; color: var(--gray-dim); margin: 0 0 14px; }
.reply-template-empty a { color: var(--accent); }
/* 069: 톤 버튼(정중하게/친절하게) — 선택된 톤은 gold 테두리, 옆의 새로고침 아이콘은 그 톤 다시 생성 */
.reply-tone-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.reply-tone-label { margin: 0; }
.reply-tone-group { display: inline-flex; align-items: center; gap: 4px; }
.btn.reply-tone-btn { padding: 8px 18px; font-size: 13px; }
.btn.reply-tone-btn.active { border-color: var(--gold); color: var(--gold-strong); background: var(--gold-tint); }
.reply-tone-refresh-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0;
  background: transparent; border: 1px solid transparent; border-radius: 6px; color: var(--gray-dim); cursor: pointer;
}
.reply-tone-refresh-btn:hover:not(:disabled) { color: var(--ink); border-color: var(--divider); }
.reply-tone-refresh-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.reply-tone-confirm { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.reply-tone-confirm p { margin: 0; }
.reply-tone-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
.reply-ai-notice { font-size: 12.5px; color: var(--amber); margin: -6px 0 14px; }

/* ---------- 050: 답장 템플릿 관리 화면(/reply/templates) ---------- */
.template-form {
  display: grid; gap: 6px; background: var(--bg-card); border: 1px solid var(--divider);
  border-radius: 10px; padding: 18px 20px; margin: 4px 0 24px;
}
.template-form label { font-size: 12px; font-weight: 700; color: var(--gray-dim); margin-top: 8px; }
.template-form input, .template-form .template-body-input {
  padding: 9px 12px; border-radius: 7px; border: 1px solid var(--divider); background: #16161A;
  color: var(--ink); font-size: 13px; font-family: inherit; box-sizing: border-box;
}
.template-body-input { min-height: 100px; resize: vertical; }
.template-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
/* 059: AI 제안 보기 — 톤별 카드를 나란히(좁은 화면에서는 세로로) 보여준다. 카드를 누르면 본문에 채워진다. */
.template-ai-suggest-btn { justify-self: start; margin-top: 8px; }
.template-suggestion-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 6px 0 4px;
}
.template-suggestion-card {
  display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer; font: inherit; color: inherit;
  padding: 12px 14px; border: 1px solid var(--divider); border-radius: 8px; background: #16161A;
}
.template-suggestion-card:hover { border-color: var(--accent); }
.template-suggestion-tone { font-size: 11px; font-weight: 700; color: var(--accent); }
.template-suggestion-body { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--ink); white-space: pre-wrap; }
.template-list { display: flex; flex-direction: column; gap: 10px; }
.template-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--divider);
  border-radius: 8px; background: var(--bg-card);
}
.template-category-tag {
  flex-shrink: 0; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: rgba(255,183,3,0.12); color: var(--accent);
}
.template-title { flex: 1; font-size: 13.5px; color: var(--ink); }
.template-row-actions { display: flex; gap: 8px; }
.reply-error { margin: 8px 0 0; font-size: 12px; color: var(--chart-check); }
.reply-success { margin: 8px 0 0; font-size: 12px; color: var(--gray-dim); }
.reply-back-to-list-btn { margin-top: 12px; } /* 055: 성공 메시지 아래, 임시저장/보내기 버튼이 있던 자리를 대신한다. */

.rest-summary { font-size: 12.5px; color: var(--gray-dim); margin: 0 0 20px; }
.today-reassurance { font-size: 11px; color: #5A564C; margin: 0 0 30px; }

/* ---------- 058: 보낸 답장 화면(/reply) ---------- */
.sent-reply-card {
  border: 1px solid var(--divider); border-radius: 10px; background: var(--bg-card);
  margin-bottom: 12px; overflow: hidden;
}
.sent-reply-toggle {
  display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 14px 16px; font: inherit; color: inherit;
}
.sent-reply-toggle:hover { background: rgba(255,255,255,0.03); }
.sent-reply-top-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sent-reply-subject { font-size: 15px; font-weight: 700; color: var(--ink); }
.sent-reply-sent-at { flex-shrink: 0; font-size: 11.5px; color: var(--gray-dim); font-variant-numeric: tabular-nums; }
.sent-reply-recipient { font-size: 12px; color: var(--accent); margin: 4px 0 6px; }
.sent-reply-preview {
  font-size: 13px; color: var(--gray-dim); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sent-reply-detail { padding: 0 16px 16px; border-top: 1px solid var(--divider); }
.sent-reply-detail-label {
  font-size: 10.5px; color: var(--gray-dim); text-transform: uppercase; letter-spacing: 0.05em;
  margin: 14px 0 4px;
}
.sent-reply-detail-original, .sent-reply-detail-body { font-size: 13.5px; color: var(--ink); margin: 0; white-space: pre-wrap; }
.sent-reply-detail-reason { font-size: 12.5px; color: var(--gray-dim); margin: 4px 0 0; }

/* ---------- 섹션 제목 ---------- */
h2.section-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray-dim); margin: 0 0 2px; scroll-margin-top: 70px;
}
.section-title-sub { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 16px; }

/* ---------- 053/070: 우선순위 드롭다운(확인 필요·전체 메일·오늘 할 일 공용) — 골드로 눈에 띄게, 제목 아래 왼쪽 정렬 ---------- */
.urgency-filter-row { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.urgency-dropdown-wrap { position: relative; display: inline-flex; align-items: center; }
.urgency-dropdown-icon { position: absolute; left: 14px; color: var(--gold-strong); pointer-events: none; }
.urgency-dropdown-wrap::after {
  content: "▾"; position: absolute; right: 14px; color: var(--gold-strong); pointer-events: none; font-size: 12px;
}
.urgency-dropdown {
  appearance: none; -webkit-appearance: none; min-height: 40px; padding: 0 32px 0 38px;
  border-radius: var(--radius-s, 8px); border: 1px solid rgba(214, 167, 91, 0.5);
  background: transparent; color: var(--gold-strong);
  font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.urgency-dropdown:hover { background: rgba(214, 167, 91, 0.12); }
.urgency-dropdown:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--gold-tint), 0 0 0 5px var(--gold); }
@media (prefers-reduced-motion: reduce) { .urgency-dropdown { transition: none; } }

/* ---------- 044 스팸 전체 삭제 확인 단계 ---------- */
.spam-confirm { background: var(--red-soft); border: 1px solid #4A2622; border-radius: 8px; padding: 16px; margin-top: 16px; }
.spam-confirm-text { font-size: 13px; color: #F2A199; margin: 0 0 12px; line-height: 1.6; }
.section-note { font-size: 12px; color: var(--gray-dim); margin: -8px 0 16px; }
section.report-section { margin-bottom: 48px; padding-bottom: 4px; }

/* ---------- 메일 리스트 아이템 (확인 필요·비즈니스·전체 메일 공용, 068) ----------
   4열 그리드: 우선순위 색상바 | 제목+발신자 정보 | 중요도 배지 | 버튼 그룹. surface-2 = --bg-card, surface-3 = --bg-subtle. */
.mail-item {
  display: grid; grid-template-columns: 12px 1fr 100px auto; column-gap: 14px; align-items: center;
  box-sizing: border-box; min-height: 64px; padding: 14px 16px 14px 10px; margin-bottom: 8px;
  background: var(--bg-card); border: 1px solid var(--divider); border-radius: 10px;
  transition: background-color 0.12s ease;
}
.mail-item:hover { background: var(--bg-subtle); }
.mail-item-bar { justify-self: center; align-self: stretch; width: 4px; border-radius: 4px; background: var(--gray-dim); }
.mail-item-bar.bar-high { background: var(--red); }
.mail-item-bar.bar-medium { background: var(--amber); }
.mail-item-bar.bar-low { background: var(--gray-dim); }
.mail-item-main { min-width: 0; }
.mail-item-meta { margin: 0 0 4px; font-size: 12px; color: var(--gray-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-item-meta .simple-cat { margin-left: 0; font-size: inherit; }
.mail-item-badge { display: flex; justify-content: center; }
.mail-item-badge .urgency-badge { margin-left: 0; }
.mail-item-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.mail-item-actions .reply-cta-btn { margin: 0; }
.mail-item-actions .spam-action { margin-left: 0; }
.mail-item-actions .replied-badge { margin-top: 0; }
@media (max-width: 720px) {
  .mail-item { grid-template-columns: 12px 1fr; row-gap: 10px; }
  .mail-item-badge { grid-column: 2; justify-content: flex-start; }
  .mail-item-actions { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
}
.check-meta { font-size: 11.5px; color: var(--gray-dim); margin-bottom: 4px; }
.check-subject { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.mail-card-reason { font-size: 13px; color: var(--gray-dim); margin: 0 0 6px; } /* 056: 제목과 다를 때만 보이는 조치 사유 */
.ai-verdict { font-size: 13px; color: var(--gray); }
.ai-verdict b { color: #C9C6D6; font-weight: 600; }
.deadline-tag { font-size: 12px; color: var(--amber); margin-top: 6px; }

.lang-tag {
  display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--accent);
  background: rgba(255,183,3,0.12); border-radius: 20px; padding: 1px 8px; margin-left: 4px;
}
.draft-reply-box { margin-top: 12px; }
.draft-reply-box summary { cursor: pointer; font-size: 12.5px; color: var(--accent); list-style: none; }
.draft-reply-box summary::-webkit-details-marker { display: none; }
.draft-reply-box summary::before { content: "✎ "; }
.draft-reply-translation-label { font-size: 10.5px; color: var(--gray-dim); margin: 10px 0 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.draft-reply-translation { background: transparent; border: none; border-left: 2px solid var(--divider); border-radius: 0; padding: 4px 0 4px 12px; margin-top: 0; color: var(--gray); }
.draft-reply-text {
  white-space: pre-line; font-size: 13px; color: #D7D6DA; line-height: 1.75;
  background: var(--bg-card); border: 1px solid var(--divider); border-radius: 8px;
  padding: 14px 16px; margin: 10px 0 8px;
}
.copy-draft-btn {
  font-size: 11.5px; color: var(--gray); background: none; border: 1px solid var(--divider);
  border-radius: 20px; padding: 4px 12px; cursor: pointer; font-family: inherit;
}
.copy-draft-btn:hover { border-color: var(--gray); color: var(--ink); }

/* 050: 답장 완료 배지 + 확인 필요 목록의 "답장하기" 이동 버튼 */
.replied-badge {
  display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; background: var(--green-soft); color: #8FD9A8;
}
.reply-cta-btn { margin-top: 10px; }

/* 052: 답장완료 상태의 제목 — 확인 필요 목록/오늘의 요약 우선순위 카드 공통. */
.mail-title-replied { text-decoration: line-through; color: var(--gray-dim); }

/* ---------- 해야 할 일 ---------- */
.todo-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--divider); }
.todo-row:first-child { border-top: 1px solid var(--divider); }
.todo-num { font-size: 11.5px; color: var(--gray-dim); font-weight: 700; width: 18px; flex-shrink: 0; padding-top: 2px; }
.todo-body { flex: 1; }
.todo-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.todo-desc { font-size: 12px; color: var(--gray-dim); margin-top: 3px; }

/* 007에서 추가한 긴급도 배지 — 프로토타입의 .priority-tag처럼 배경 없이 색 텍스트만 사용
   (008 연구 결정 §5: 컴포넌트/클래스 구조는 007 그대로, 표현만 조정). */
.urgency-badge {
  font-size: 11px; font-weight: 600; margin-left: 6px; white-space: nowrap;
}
.urgency-high { color: var(--red); }
.urgency-medium { color: var(--amber); }
.urgency-low { color: var(--gray-dim); }

/* 007 FR-005: 해외 발신 메일의 명시적 시간대 회의 시간 → KST 변환 표시. */
.meeting-time-note {
  display: block; margin-top: 6px; font-size: 12px; color: var(--gray);
}

/* ---------- 팬 니즈 / 비즈니스 ---------- */
.tally-row { display: flex; align-items: baseline; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--divider); font-size: 14px; color: #D7D6DA; }
.tally-row:first-child { border-top: 1px solid var(--divider); }
.tally-count { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.analysis-line { font-size: 13.5px; color: var(--gray); line-height: 1.75; margin-top: 16px; }
.empty-note { color: var(--gray-dim); font-size: 13px; line-height: 1.7; padding: 6px 0; }

/* ---------- FAN INSIGHT: 순위형 니즈 랭킹 ---------- */
.fan-subhead { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-dim); margin: 0 0 14px; }
.fan-two-col { display: flex; gap: 56px; flex-wrap: wrap; margin-top: 22px; }
.fan-need-list { flex: 1.4; min-width: 280px; }
.fan-sentiment { flex: 1; min-width: 220px; }

.need-rank-row { padding: 11px 0; }
.need-rank-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 7px; }
.need-rank-num { font-size: 11px; color: var(--gray-dim); font-weight: 700; width: 18px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.need-rank-label { font-size: 14px; font-weight: 500; color: #D7D6DA; flex: 1; }
.need-rank-stat { font-size: 12px; color: var(--gray); font-variant-numeric: tabular-nums; white-space: nowrap; }
.need-bar-track { height: 3px; background: var(--divider); margin-left: 28px; }
.need-bar-fill { height: 100%; background: var(--gray-dim); }
.rank-first .need-rank-label { color: var(--ink); font-weight: 700; }
.rank-first .need-bar-fill { background: var(--accent); }
.trend-up { color: var(--green); font-size: 11px; margin-left: 4px; }
.trend-down { color: var(--red); font-size: 11px; margin-left: 4px; }
.trend-flat { color: var(--gray-dim); font-size: 11px; margin-left: 4px; }
.trend-new { color: var(--accent); font-size: 11px; font-weight: 700; margin-left: 4px; }

.sentiment-list-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; color: #D7D6DA; }
.sentiment-pct { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.fan-sentiment-sentence { font-size: 12.5px; color: var(--gray); line-height: 1.65; margin-top: 12px; }

.ai-analysis-block { border-top: 1px solid var(--divider); margin-top: 30px; padding-top: 22px; max-width: 640px; }
.ai-analysis-headline { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.ai-analysis-body { font-size: 13.5px; color: var(--gray); line-height: 1.75; margin: 0 0 10px; }
.ai-analysis-action { font-size: 13.5px; color: #C9C6D6; line-height: 1.7; margin: 0; }

.sentiment-bar { display: flex; height: 4px; overflow: hidden; margin: 16px 0 8px; background: var(--divider); }

/* ---------- 061: FanSignal 카드 구획 · 순위 색 단계 · 수치 강조 · 감정 색 · AI 인사이트 ----------
   새 스타일은 .fan-card 안으로만 한정한다 — 주간 FanSignal 리포트가 같은 .need-rank-row 클래스를
   공유하므로 이 화면 밖에는 영향을 주지 않는다. */
:root {
  --num-font: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --tier-2: #A08B57;   /* 2~3위: 골드를 톤다운한 색 */
}
.num-mono { font-family: var(--num-font); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.fan-card {
  background: var(--bg-card); border: 1px solid var(--divider); border-radius: 14px;
  padding: 22px 24px; box-sizing: border-box;
}
.fan-two-col { gap: 16px; align-items: stretch; }
.fan-two-col > .fan-card { margin: 0; }
.fan-two-col + .fan-card, .fan-content-card + .fan-card, .fan-card-ai + .fan-card { margin-top: 16px; }
.fan-card .fan-subhead { margin-bottom: 12px; }

.fan-card .need-rank-row { padding: 12px 0; }
.fan-card .need-rank-top { align-items: center; }
.fan-card .need-bar-track { height: 5px; border-radius: 3px; overflow: hidden; }
.fan-card .need-bar-fill { border-radius: 3px; }
.fan-card .need-rank-stat { display: inline-flex; align-items: baseline; gap: 6px; color: var(--gray); }
.need-stat-count { font-size: 19px; font-weight: 600; color: var(--ink); }
.need-stat-unit { font-size: 11.5px; color: var(--gray-dim); margin-left: -3px; }
.need-stat-pct { font-size: 13px; font-weight: 500; color: var(--gray); }

/* 순위 단계: tier-1 골드 / tier-2 톤다운 골드 / tier-3 회색 */
.fan-card .tier-1 .need-rank-num, .fan-card .tier-1 .need-stat-pct { color: var(--accent); }
.fan-card .tier-1 .need-rank-label { color: var(--ink); font-weight: 700; }
.fan-card .tier-1 .need-bar-fill { background: linear-gradient(90deg, var(--accent-deep), var(--accent-dim)); }
.fan-card .tier-2 .need-rank-num, .fan-card .tier-2 .need-stat-pct { color: var(--tier-2); }
.fan-card .tier-2 .need-rank-label { color: #E2E0E6; }
.fan-card .tier-2 .need-bar-fill { background: var(--tier-2); }
.fan-card .tier-3 .need-stat-count { color: #C9C7CE; }
.fan-card .tier-3 .need-bar-fill { background: var(--gray-dim); }

/* 팬 감정: 막대를 라벨 바로 위에 붙이고 라벨·숫자를 같은 색으로 */
.fan-sentiment .sentiment-bar { height: 8px; border-radius: 4px; margin: 4px 0 12px; }
.sentiment-row { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; }
.sentiment-row .sentiment-label { font-size: 13.5px; font-weight: 600; }
.sentiment-row .sentiment-pct { font-size: 18px; font-weight: 600; }
.sentiment-row.s-pos .sentiment-label, .sentiment-row.s-pos .sentiment-pct { color: var(--green); }
.sentiment-row.s-neu .sentiment-label, .sentiment-row.s-neu .sentiment-pct { color: var(--gray); }
.sentiment-row.s-neg .sentiment-label, .sentiment-row.s-neg .sentiment-pct { color: var(--red); }

/* 콘텐츠별 반응 빈 상태 */
.fan-empty { margin: 4px 0 4px; font-size: 14px; font-weight: 600; color: var(--gray); }
.fan-empty-sub { margin: 0; font-size: 12.5px; color: var(--gray-dim); line-height: 1.6; }

/* AI ANALYSIS: 골드 틴트 배경 + 아이콘으로 "AI가 도출한 인사이트" 강조 */
.fan-card-ai {
  background: linear-gradient(135deg, var(--gold-tint), rgba(201, 164, 85, 0.04));
  border-color: rgba(201, 164, 85, 0.45); max-width: none;
}
.fan-ai-tag {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; padding: 4px 11px 4px 9px;
  border-radius: 999px; background: rgba(201, 164, 85, 0.16); color: var(--accent-dim);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em;
}
.fan-card-ai .ai-analysis-headline { font-size: 16px; }
.fan-card-warn { background: var(--red-soft); border-color: rgba(224, 87, 76, 0.35); }
.fan-card .ai-analysis-body:last-child { margin-bottom: 0; }

.sentiment-bar .pos { background: var(--green); }
.sentiment-bar .neu { background: var(--gray-dim); }
.sentiment-bar .neg { background: var(--red); }

/* ---------- 간단 메일 리스트 ---------- */
.simple-row { padding: 12px 0; border-bottom: 1px solid var(--divider); }
.simple-row:first-child { border-top: 1px solid var(--divider); }
.simple-top { display: flex; justify-content: space-between; gap: 12px; }
.simple-subject { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.simple-time { font-size: 11px; color: var(--gray-dim); white-space: nowrap; }
.simple-desc { font-size: 12px; color: var(--gray); margin-top: 3px; }
.simple-cat { font-size: 10.5px; color: var(--gray-dim); margin-left: 6px; } /* 058: MailListItem 안에서 배지 바로 뒤에 올 때도 간격이 비게 */

/* ---------- 스팸 ---------- */
.spam-teaser {
  font-size: 12.5px; color: var(--gray-dim); text-decoration: none;
  display: inline-block; margin-top: 4px;
}
.spam-teaser:hover { color: var(--gray); }
.spam-body { flex: 1; }
.spam-subject { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.spam-meta { font-size: 11px; color: var(--gray-dim); margin: 2px 0 3px; }
.spam-verdict { font-size: 12px; color: var(--gray); }
.spam-actions { display: flex; gap: 10px; margin: 8px 0 16px; } /* 060: 리스트 위로 옮김 */
.spam-note { font-size: 11.5px; color: var(--gray-dim); margin-top: 14px; line-height: 1.6; }

details.other-group summary { cursor: pointer; font-size: 12.5px; color: var(--gray-dim); padding: 10px 0; }

/* ---------- 빈 상태 (분석 전) — 랜딩 스타일 히어로 ---------- */
.hero-split { display: flex; gap: 56px; align-items: center; padding: 90px 0; flex-wrap: wrap; }
.hero-left { flex: 1.05; min-width: 300px; }

.hero-badge {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent);
  background: rgba(255, 183, 3, 0.1); border: 1px solid rgba(255, 183, 3, 0.35);
  border-radius: 20px; padding: 5px 14px; margin-bottom: 22px;
}
.hero-title { font-family: var(--font-display); font-size: 36px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; margin: 0 0 18px; color: var(--ink); }
.grad-text {
  background: linear-gradient(90deg, var(--accent-dim), var(--accent) 55%, var(--accent-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc { font-size: 14.5px; color: var(--gray); line-height: 1.8; margin: 0 0 28px; max-width: 460px; }
.hero-trust { font-size: 12px; color: var(--gray-dim); margin-top: 18px; }

.hero-right { flex: 1; min-width: 300px; }
.mock-window { background: var(--bg-panel); border: 1px solid var(--divider); border-radius: 12px; overflow: hidden; }
.mock-titlebar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--divider); background: var(--bg-card); }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; }
.mock-dot.red { background: #E0574C; }
.mock-dot.amber { background: #D9A441; }
.mock-dot.green { background: #4CAF6D; }
.mock-url { font-size: 11px; color: var(--gray-dim); margin-left: 8px; }
.mock-body { padding: 22px 24px; }
.mock-stats { display: flex; gap: 28px; margin-bottom: 20px; flex-wrap: wrap; }
.mock-stats div { display: flex; flex-direction: column; }
.mock-stats b { font-size: 19px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mock-stats span { font-size: 10.5px; color: var(--gray-dim); margin-top: 3px; }
.mock-section-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-dim); margin: 0 0 10px; }
.hero-preview-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--divider); font-size: 13px; color: #9A97A3; }
.hero-preview-row:last-child { border-bottom: none; }
.hero-preview-time { color: var(--gray-dim); font-size: 11.5px; }
.mock-caption { font-size: 11.5px; color: var(--gray-dim); margin: 12px 4px 0; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 7px;
  font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: none; font-family: inherit;
}
.btn-primary { background: var(--ink); color: #0B0B0D; }
.btn-primary:hover { background: #fff; }
.btn-primary:disabled { background: var(--bg-card); color: var(--gray-dim); cursor: not-allowed; }
.btn-outline { background: transparent; border: 1px solid var(--divider); color: var(--ink); }
.btn-outline:hover { border-color: var(--gray); }
.btn-danger-outline { background: transparent; border: 1px solid #4A2622; color: var(--red); }
.btn-danger-outline:hover { border-color: var(--red); }
.btn-block { display: block; width: 100%; text-align: center; }
/* 041: 골드 그라데이션 버튼(로그인 "MailVine 시작하기"에서 꺼내 공용화). 화면의 주 행동 버튼에 쓴다.
   .btn-primary:hover(클래스+의사클래스)보다 특이도가 낮아지지 않도록 .btn.btn-gold로 정의하며,
   골드 버튼에는 btn-primary를 함께 쓰지 않는다. */
.btn.btn-gold {
  border-radius: var(--radius-s); font-weight: 700;
  background: linear-gradient(135deg, var(--gold-strong), var(--gold)); color: var(--on-gold);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}
.btn.btn-gold:hover:not(:disabled) { filter: brightness(1.08); }
.btn.btn-gold:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--gold-tint), 0 0 0 5px var(--gold); }
.btn.btn-gold:disabled { background: var(--bg-card); color: var(--gray-dim); cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .btn.btn-gold { transition: none; } }


/* ---------- 설정 페이지 폼 ---------- */
.settings-card { border: 1px solid var(--divider); border-radius: 10px; padding: 22px 24px; margin-bottom: 18px; background: var(--bg-panel); }
.settings-card h2 { font-size: 13.5px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.tag-ok { font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 20px; background: var(--green-soft); color: var(--green); }
.tag-warn { font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 20px; background: var(--amber-soft); color: var(--amber); }

.account-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--divider); font-size: 13.5px; color: #D7D6DA; flex-wrap: wrap; gap: 8px; }
.account-row:last-child { border-bottom: none; }
.account-left { display: flex; align-items: center; gap: 10px; }
.dot-provider { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-provider.gmail { background: var(--red); }
.dot-provider.naver { background: var(--green); }
.provider-name { font-size: 10.5px; font-weight: 700; color: var(--gray-dim); }
.disconnect-link { color: var(--gray-dim); font-size: 11.5px; text-decoration: none; background: none; border: none; cursor: pointer; font-family: inherit; }
.disconnect-link:hover { color: var(--red); }

.field-row { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.field-row:last-child { margin-bottom: 0; }
input[type=text], input[type=password], input[type=email] {
  flex: 1; padding: 10px 12px; border: 1px solid var(--divider); border-radius: 7px;
  font-size: 13.5px; font-family: inherit; color: var(--ink); background: #1A1A1E;
  min-width: 160px;
}
input:focus { outline: none; border-color: var(--gray); }
input::placeholder { color: var(--gray-dim); }
.field-label { font-size: 11.5px; color: var(--gray); margin-bottom: 8px; display: block; }
.helper { font-size: 11.5px; color: var(--gray-dim); margin-top: 8px; line-height: 1.55; }
.naver-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--divider); }

/* ---------- 인증(로그인/가입) 폼 ---------- */
.auth-form { display: flex; flex-direction: column; gap: 16px; margin-top: 6px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-size: 12.5px; color: var(--gray); }
.form-field input[type=text], .form-field input[type=password], .form-field input[type=email] { width: 100%; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--gray); }
.checkbox-row input[type=checkbox] { accent-color: var(--ink); }
.auth-links { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; font-size: 12.5px; }
.auth-links a { color: var(--gray-dim); }
.auth-links a:hover { color: var(--ink); }
.auth-divider { text-align: center; font-size: 11px; color: var(--gray-dim); margin: 20px 0; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- 040 로그인 화면: 좌우 분할 + 카드 폼 (로그인 전용 클래스 안에서만 적용) ---------- */
.login-shell {
  display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; background: var(--bg);
}
.login-brand {
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px clamp(32px, 6vw, 88px);
  background:
    radial-gradient(60% 55% at 25% 22%, var(--gold-tint), transparent 70%),
    linear-gradient(160deg, rgba(201, 164, 85, 0.10), transparent 55%),
    var(--bg);
  border-right: 1px solid var(--line);
}
.login-brand .mailvine-brand { margin-bottom: 0; }
.login-brand .mailvine-text .brand-name { font-size: 30px; }
.login-brand .mailvine-text .brand-sub { font-size: 9.5px; }
.login-tagline {
  margin: 30px 0 0; max-width: 440px; font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 28px); font-weight: 600; line-height: 1.5; letter-spacing: -0.01em;
  color: var(--main); text-wrap: balance; word-break: keep-all;
}
.login-panel { display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.login-card {
  width: 100%; max-width: 440px; box-sizing: border-box; padding: 34px 32px 26px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-m); box-shadow: var(--shadow);
  word-break: keep-all;
}
.login-card .page-title { font-size: 22px; }
.login-card .page-sub { margin: 8px 0 22px; line-height: 1.6; }
/* Blazor의 InputText는 type 속성 없이 출력되므로 type 선택자 대신 입력창 전체를 잡는다. */
.login-card .form-field input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; background: var(--bg); color: var(--main);
  font-size: 13.5px; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.login-card .form-field input:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint);
}
.login-card .login-submit { display: block; width: auto; min-width: 210px; margin: 8px auto 0; padding: 13px 30px; }
.login-note {
  margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12px; line-height: 1.6; color: var(--muted); text-align: center;
}
@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; min-height: 0; }
  .login-brand { padding: 40px 24px 32px; border-right: none; border-bottom: 1px solid var(--line); }
  .login-tagline { margin-top: 20px; }
  .login-panel { padding: 28px 16px 48px; }
  .login-card { padding: 28px 22px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-card .form-field input { transition: none; }
}

/* ---------- 042 공용 빈 상태 카드: "분석 결과 없음"과 "이 항목 0건"에 모두 쓰인다(041에서
   오늘의 리포트 전용으로 시작한 것을 일반화). 아이콘·제목·부제만 페이지마다 다르다. ---------- */
.empty-state-stage {
  min-height: min(58vh, 480px); box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; padding: 24px 0 48px;
}
/* 한 페이지에 섹션이 여럿이라(확인 필요, FanSignal) 각자 좁게 보여줘야 할 때. */
.empty-state-stage.empty-state-stage-inline { min-height: 0; padding: 28px 0; }
.empty-state-card {
  width: 100%; max-width: 460px; box-sizing: border-box; padding: 48px 40px 44px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
}
.empty-state-stage-inline .empty-state-card { padding: 34px 32px 30px; }
.empty-state-icon {
  width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-tint); color: var(--gold);
}
.empty-state-icon svg { width: 40px; height: 40px; }
.empty-state-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--main); word-break: keep-all; }
.empty-state-sub { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); word-break: keep-all; }
.empty-state-sub a { color: var(--muted); text-decoration: underline; }
.empty-state-sub a:hover { color: var(--main); }
.empty-state-actions { margin-top: 16px; }
.empty-state-actions .btn { min-width: 190px; padding: 13px 30px; }
@media (max-width: 760px) {
  .empty-state-stage { min-height: 0; padding: 12px 0 0; align-items: flex-start; }
  .empty-state-card { padding: 36px 22px 32px; }
}

/* ---------- 043 홈 대시보드 바로가기 카드: 042의 빈 상태 아이콘을 재사용해 톤을 잇는다 ---------- */
.home-shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 26px 0 30px; }
/* 098: 카드 그리드 오른쪽 끝과 맞춰 우측 정렬하고(같은 부모 폭을 쓰므로 text-align만으로 충분),
   별도 font-family는 없었지만(전역 폰트를 이미 상속) 명시적으로 남겨 의도를 분명히 한다. */
.generated-at { text-align: right; font-family: inherit; font-size: 12px; color: var(--gray-dim); margin-top: 8px; }
.shortcut-card {
  display: flex; flex-direction: column; gap: 10px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  text-decoration: none; transition: border-color 0.15s ease;
}
.shortcut-card:hover { border-color: var(--gold); }
.shortcut-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-tint); color: var(--gold);
}
.shortcut-name { font-size: 14.5px; font-weight: 700; color: var(--main); }
.shortcut-desc { font-size: 12.5px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .shortcut-card { transition: none; } }

/* ---------- 로딩 오버레이 ---------- */
#loading-overlay {
  display: none; position: fixed; inset: 0; background: rgba(11,11,13,0.97); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px;
}
#loading-overlay.visible { display: flex; }
.spinner {
  width: 38px; height: 38px; border: 3px solid var(--divider); border-top-color: var(--ink);
  border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loading-overlay .loading-title, .demo-scan-page .loading-title { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.loading-progress { font-size: 20px; font-weight: 800; color: var(--accent); margin-bottom: 6px; font-variant-numeric: tabular-nums; min-height: 24px; }
.loading-phase { font-size: 12.5px; color: var(--gray); }
/* ---------- 063: 스팸 목록 카드(2줄 구조) · 공용 버튼 보조 스타일 ---------- */
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-outline:disabled:hover { border-color: var(--divider); }
.spam-card {
  background: var(--bg-card); border: 1px solid var(--divider); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px;
}
.spam-card-head { display: flex; align-items: center; gap: 12px; }
.spam-card-head input[type=checkbox] { flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--accent); }
.spam-card-head .spam-subject { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.spam-confidence {
  display: inline-flex; align-items: baseline; gap: 6px; flex-shrink: 0; padding: 3px 10px; border-radius: 999px;
  background: var(--bg-subtle); color: var(--gray);
}
.spam-confidence-label { font-size: 10.5px; font-weight: 600; }
.spam-confidence-num { font-size: 14px; font-weight: 600; }
.spam-confidence.conf-high { background: var(--red-soft); color: var(--red); }
.spam-confidence.conf-mid { background: var(--amber-soft); color: var(--amber); }
.spam-card-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 12px 0 0 28px; }
.spam-card-actions .spam-action { margin-left: 0; }
.spam-card-actions .reply-cta-btn { margin: 0; }

/* ---------- 062: 스팸으로 지정 / 발신자 차단 액션, 목록 알림, 설정의 차단 목록 ---------- */
.spam-action { display: inline-block; margin-left: 8px; vertical-align: top; }
.list-notice { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.list-notice-close {
  background: none; border: none; color: inherit; opacity: 0.7; cursor: pointer; font-size: 12px;
  text-decoration: underline; flex-shrink: 0;
}
.blocked-kind {
  font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg-subtle); color: var(--gray);
}
.blocked-value { font-size: 13.5px; color: var(--ink); word-break: break-all; }

/* ---------- 064: 목록 카드 액션 버튼 공용 규격 ("답장하기"·"스팸으로 지정"·"발신자 차단"·"스팸 아님") ----------
   글자 수와 상관없이 같은 최소 폭·높이·패딩·글자 크기를 쓴다. 글자가 더 길면 폭만 늘어난다(줄바꿈 없음). */
.btn.btn-action {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; min-width: 120px; min-height: 36px; padding: 8px 16px;
  font-size: 12.5px; line-height: 1.2; text-align: center; white-space: nowrap;
}

/* ---------- 065: 확인 팝업(모달) 공용 스타일 — 발신자 차단/스팸으로 지정 ---------- */
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover:not(:disabled) { filter: brightness(1.1); }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(0, 0, 0, 0.6);
}
.modal-dialog {
  box-sizing: border-box; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px; padding: 24px;
  background: var(--bg-panel); border: 1px solid var(--divider); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); text-align: left; white-space: normal;
}
.modal-head { display: flex; align-items: center; gap: 12px; }
.modal-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg-card); color: var(--gray);
}
.modal-icon-danger { background: var(--red-soft); color: var(--red); }
.modal-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.modal-desc { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink); }
.modal-sender {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 14px;
  background: var(--bg-subtle); border: 1px solid var(--divider); border-radius: 8px;
}
.modal-sender-label { font-size: 11.5px; font-weight: 600; color: var(--gray-dim); }
.modal-sender-value { font-family: var(--num-font); font-size: 13.5px; color: var(--ink); word-break: break-all; }
.modal-sender-muted { font-family: inherit; font-size: 13px; color: var(--gray-dim); }
.modal-sender-reason { font-size: 12px; line-height: 1.5; color: var(--gray-dim); }
.modal-options { display: flex; flex-direction: column; gap: 10px; }
.modal-option-card {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--divider); border-radius: 10px;
}
.modal-option-card:hover { border-color: var(--gray-dim); }
.modal-option-card input { flex-shrink: 0; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }
.modal-option-text { display: flex; flex-direction: column; gap: 6px; }
.modal-option-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.modal-option-hint { font-size: 12px; line-height: 1.55; color: var(--gray-dim); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.spam-action-error { margin: 0; font-size: 12.5px; }

/* ---------- 072: 주간 리포트 — 오늘의 요약과 같은 다크 톤·골드 토큰 ---------- */
.weekly-period { font-size: 13px; color: var(--gray); margin: -8px 0 18px; font-variant-numeric: tabular-nums; }
.weekly-summary { background: var(--bg-card); border: 1px solid var(--divider); border-radius: 12px; padding: 18px 20px; margin-bottom: 20px; }
.weekly-summary-text { margin: 0; font-size: 14.5px; line-height: 1.85; color: var(--ink); }
.weekly-summary-loading { margin: 0; font-size: 13.5px; color: var(--gray-dim); }
.weekly-summary-footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.weekly-summary-note { flex: 1; font-size: 12px; color: var(--amber); }
.weekly-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 26px; }
.weekly-metric { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--divider); border-radius: 12px; }
.weekly-metric-label { font-size: 12px; color: var(--gray-dim); }
.weekly-metric-value { font-size: 22px; font-weight: 600; color: var(--gold-strong); }
.weekly-metric-sub { font-size: 12px; line-height: 1.5; color: var(--gray-dim); }
.weekly-metric-delta { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--gray); }
.weekly-metric-delta.delta-up { color: var(--green); }
.weekly-metric-delta.delta-down { color: var(--gray); }
.weekly-metric-delta.delta-bad { color: var(--red); }
.category-delta { font-size: 11px; margin-left: 2px; font-variant-numeric: tabular-nums; color: var(--gray); }
.category-delta.delta-up { color: var(--green); }
.weekly-topics { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.weekly-topic-row { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--divider); border-radius: 12px; }
.weekly-topic-rank { font-size: 16px; font-weight: 600; color: var(--gold); }
.weekly-topic-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.weekly-topic-label { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.weekly-topic-count { font-size: 13px; color: var(--gold-strong); }
.weekly-topic-title { margin: 6px 0 0; font-size: 12.5px; color: var(--gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weekly-topic-comment { margin: 4px 0 0; font-size: 12.5px; color: var(--gray-dim); }
.weekly-empty-note { font-size: 13px; color: var(--gray-dim); margin: 0 0 26px; }
.weekly-suggestions { margin: 0 0 26px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.weekly-suggestion { padding: 12px 16px; background: var(--gold-tint); border: 1px solid var(--divider); border-radius: 10px; font-size: 13.5px; line-height: 1.6; color: var(--ink); }
@media (max-width: 900px) { .weekly-metrics { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 073: 확인 필요 — 놓치면 안되는 계정 알림 섹션 (info 색 좌측 바 + 도메인 배지) ---------- */
.mail-item-bar.bar-info { background: var(--info); }
.mail-domain-badge {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; vertical-align: middle;
  font-size: 11px; font-weight: 600; color: var(--info); background: rgba(143, 134, 201, 0.14); border: 1px solid rgba(143, 134, 201, 0.35);
}
.system-alert-section { margin-bottom: 4px; }
/* 088: 참고용 보안 로그라는 인상을 주도록 일반 메일 카드보다 작고 옅게 — 색상은 새로 만들지
   않고 기존 --bg-subtle 토큰을 재사용한다. */
.system-alert-section .mail-item { min-height: 48px; padding: 8px 14px 8px 10px; background: var(--bg-subtle); }
.system-alert-section .mail-item:hover { background: var(--bg-card); }
.system-alert-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none;
  padding: 10px 4px; margin-bottom: 8px; color: var(--ink);
}
.system-alert-header::-webkit-details-marker { display: none; }
.system-alert-header::before { content: "▾"; color: var(--info); margin-right: 8px; font-size: 12px; }
.system-alert-section:not([open]) .system-alert-header::before { content: "▸"; }
.system-alert-title { flex: 1; font-size: 14px; font-weight: 700; }
.system-alert-count {
  font-size: 12px; font-weight: 600; color: var(--info); padding: 2px 10px; border-radius: 999px;
  background: rgba(143, 134, 201, 0.14);
}
.needs-divider { border: none; border-top: 1px solid var(--divider); margin: 22px 0; }
.filter-empty-note { font-size: 13px; color: var(--gray-dim); margin: 6px 0 0; }

/* 075: 스팸 목록 "전체 선택" — 전체 선택된 상태에서는 gold 테두리로 지금 상태를 보여준다. */
.btn.select-all-btn.active { border-color: var(--gold); color: var(--gold-strong); background: var(--gold-tint); }

/* ---------- 076: FanSignal 그룹(사이드바) · 주간 리포트 진입 링크 ---------- */
.nav-group-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 10px; border: none; border-radius: 7px;
  background: transparent; font: inherit; font-size: 13.5px; letter-spacing: 0.01em; color: var(--gray); cursor: pointer; text-align: left;
}
.nav-group-toggle:hover { background: var(--bg-card); color: var(--ink); }
.nav-group-toggle.active { color: var(--ink); font-weight: 700; }
.nav-group-caret { font-size: 11px; color: var(--gray-dim); }
.nav-sub { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 4px 12px; padding-left: 8px; border-left: 1px solid var(--divider); }
.nav-sub a { font-size: 13px; }
.fansignal-toolbar + .wrap { padding-top: 24px; }
.weekly-back-link { display: inline-block; margin: -8px 0 10px; font-size: 12.5px; color: var(--gray); text-decoration: none; }
.weekly-back-link:hover { color: var(--ink); }

/* ---------- 078: 데모 체험 플로우 ---------- */
.demo-cta { margin: 4px 0 14px; }
.demo-cta-btn { display: inline-block; }
.demo-cta-hint { font-size: 11.5px; color: var(--gray-dim); margin: 6px 0 0; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 4px 0 18px; font-size: 11.5px; color: var(--gray-dim); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--divider); }

.demo-scan-page {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px; background: var(--bg);
}
.demo-intro-symbol { color: var(--accent); margin-bottom: 18px; }
.demo-intro-title { font-size: 22px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.demo-intro-desc { font-size: 13.5px; color: var(--gray); margin: 0 0 24px; max-width: 360px; }
.demo-start-btn { padding: 13px 30px; font-size: 14px; }
/* 096: 095에서 화면을 가로지르는 풀폭 상단 배너로 바꿨던 걸, "체험해보기" 버튼 바로 아래
   눈에 띄는 pill 배지로 되돌린다(경고 톤 — 새 토큰 없이 이 배지 전용 색을 그대로 씀). */
.demo-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  font-size: 15px; font-weight: 700; color: #F0A877;
  background: rgba(221, 138, 82, 0.12); border: 1.5px solid rgba(221, 138, 82, 0.5);
  border-radius: 999px; padding: 12px 22px;
}
.demo-badge-icon { font-size: 18px; line-height: 1; color: #DD8A52; }

.demo-banner {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding: 10px 32px; background: var(--gold-tint); border-bottom: 1px solid var(--divider);
}
.demo-banner-text { font-size: 12.5px; color: var(--ink); }
.demo-banner-cta { flex-shrink: 0; }
.demo-exit-link { color: var(--gold); }
@media (max-width: 560px) {
  .demo-banner { padding: 10px 16px; }
}

/* ---------- 099: 데모 스캔 화면 — 파티클이 중심으로 빨려 들어가는 로딩 + 4단계 체크리스트 ----------
   081의 "통통 튀는 마스코트"를 대체한다. 색상은 새 리터럴을 추가하지 않고 기존 토큰(--bg/--ink/
   --gold/--gold-strong/--gray/--gray-dim/--divider)을 그대로 재사용했다. */
.scan-loading {
  position: relative; display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 460px; transition: opacity 0.6s ease;
}
.scan-loading.scan-fade-out { opacity: 0; }
.scan-glow {
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 360px; height: 360px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--gold-tint) 0%, transparent 68%);
  filter: blur(8px);
}
.scan-field { position: relative; width: 260px; height: 160px; margin-bottom: 20px; }
.scan-particle {
  position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 6px var(--gold);
  animation-name: scan-converge; animation-timing-function: ease-in; animation-iteration-count: infinite;
}
.scan-ring {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%);
  border: 1px solid rgba(201, 164, 85, 0.25); border-radius: 50%; animation: scan-pulse 2.8s ease-in-out infinite;
}
.scan-ring::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(201, 164, 85, 0.14); border-radius: 50%; }
.scan-core {
  position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--gold-strong); box-shadow: 0 0 22px rgba(227, 192, 119, 0.5);
}
.scan-title { margin: 0; font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.scan-desc { margin: 10px 0 0; font-size: 13.5px; color: var(--gray-dim); line-height: 1.7; }
.scan-steps { width: min(360px, 90vw); margin: 30px auto 0; text-align: left; }
.scan-step {
  display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 10px;
  height: 30px; color: var(--gray-dim); font-size: 13px; transition: color 0.4s ease;
}
.scan-step-mark { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--divider); transition: 0.4s ease; }
.scan-step-status { font-size: 11px; letter-spacing: 0.04em; color: var(--gray-dim); }
.scan-step.active { color: var(--gold-strong); }
.scan-step.active .scan-step-mark { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 10px rgba(201, 164, 85, 0.4); }
.scan-step.active .scan-step-status { color: var(--gold); }
.scan-step.done { color: var(--gray); }
.scan-step.done .scan-step-mark { border-color: var(--gray-dim); background: var(--gray-dim); }
.scan-step.done .scan-step-status { color: var(--gray-dim); }
.scan-progress-track { width: min(360px, 90vw); height: 1px; margin: 18px auto 0; background: var(--divider); overflow: hidden; }
.scan-progress-bar { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-strong)); transition: width 0.7s ease; }
.scan-counter { margin-top: 13px; font-family: var(--num-font); font-size: 11px; letter-spacing: 0.06em; color: var(--gray-dim); }
@keyframes scan-converge {
  0% { transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(1); opacity: 0; }
  12% { opacity: 0.9; }
  70% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.15); opacity: 0; }
}
@keyframes scan-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.82); opacity: 0.4; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .scan-loading { transition: none; }
  .scan-particle, .scan-ring { animation: none; opacity: 0; }
  .scan-progress-bar { transition: none; }
}
