/* 나의 군대 — 웹 스타일 (ORZO-스타일 스카이블루 미니멀 디자인) */

:root {
  --teal: #38BDF8;            /* 브랜드 스카이블루 액센트 */
  --teal-pressed: #0284C7;    /* 텍스트·CTA용 진한 블루 (흰 4.5:1, AA) */
  --teal-deep: #0369A1;       /* CTA hover */
  --warn-text: #9A5B00;       /* 경고 '텍스트'용 (흰 위 5.4:1, AA) — 채움은 --warn 유지 */
  --teal-tint: #E0F2FE;
  --teal-tint-strong: #BAE6FD;

  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-variant: #F8FAFC;

  --ink: #0F172A;        /* TextStrong */
  --text: #334155;       /* TextDefault */
  --weak: #64748B;       /* 접근성 보정된 TextWeak */
  --disabled: #CBD5E1;

  --divider: #F1F5F9;
  --border: #E2E8F0;
  --field: #F1F5F9;

  /* 의미 별칭(봉급·복무/입영일정 카드에서 사용) */
  --card: #FFFFFF;
  --line: #E2E8F0;
  --text-soft: #64748B;

  --success: #22C55E;
  --warn: #F59E0B;
  --warn-tint: #FEF3C7;
  --danger: #EF4444;

  --radius: 22px;
  --radius-sm: 16px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 1px 8px rgba(15, 23, 42, 0.04);
  --toast-bg: #1E293B;
  --maxw: 560px;
}

/* 다크 모드 — 시스템 설정을 따름 (변수 재정의 위주) */
@media (prefers-color-scheme: dark) {
  :root {
    --teal-pressed: #7DD3FC;
    --teal-deep: #38BDF8;
    --warn-text: #FCD34D;
    --teal-tint: #0C1929;
    --teal-tint-strong: #0F2847;

    --bg: #0B1120;
    --surface: #111827;
    --surface-variant: #1E293B;

    --ink: #F1F5F9;
    --text: #CBD5E1;
    --weak: #94A3B8;
    --disabled: #475569;

    --divider: #1E293B;
    --border: #334155;
    --field: #1E293B;

    --card: #111827;
    --line: #334155;
    --text-soft: #94A3B8;
    --warn-tint: #422006;

    --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 1px 8px rgba(0, 0, 0, 0.4);
  }
  /* 색 틴트 칩·뱃지는 어두운 배경에 맞게 조정 */
  .st-pre { background: #1E3A5F; color: #93C5FD; }
  .st-serving { background: #0C1929; color: #7DD3FC; }
  .st-reserve { background: #2E1065; color: #C4B5FD; }
  .st-civil { background: #422006; color: #FCD34D; }
  .st-gunmuwon { background: #1E293B; color: #94A3B8; }
  .react-btn.on { background: #0C1929; color: var(--teal-pressed); }
  .feed-img, .detail-img { background: var(--field); }
  /* --ink 배경(밝은 글씨)은 다크에서 반전되므로 대비 보정 */
  .comm-tab.on { background: var(--teal); border-color: var(--teal); color: #0B1120; }
  .img-remove { background: #030712; border-color: var(--surface); }
  .toast { background: #030712; }
  .qa-blue .qa-ico { background: rgba(37,99,235,.2); } .qa-sky .qa-ico { background: rgba(2,132,199,.2); }
  .qa-green .qa-ico { background: rgba(22,163,74,.2); } .qa-amber .qa-ico { background: rgba(217,119,6,.2); }
  .qa-purple .qa-ico { background: rgba(124,58,237,.2); } .qa-rose .qa-ico { background: rgba(225,29,72,.2); }
  .track-tab { background: var(--surface); }
}

* { box-sizing: border-box; }
button, a, .chip, .option-row, .field-chip, .feature-card.tappable { -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
    "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: var(--teal-pressed); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* ── 버튼 ── */
.btn {
  font: inherit;
  font-weight: 700;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-lg { width: 100%; padding: 18px 24px; font-size: 16px; }
.btn-primary { background-color: var(--teal-pressed); background-image: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.08)); color: #fff; box-shadow: 0 4px 16px rgba(2,132,199,.3), 0 1px 4px rgba(2,132,199,.18); transition: box-shadow .12s, transform .12s; }
.btn-primary:hover { background-color: var(--teal-deep); box-shadow: 0 6px 22px rgba(2,132,199,.36), 0 1px 5px rgba(2,132,199,.22); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(2,132,199,.32); }
.btn-primary:disabled { background-image: none; background-color: var(--disabled); color: #fff; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-outline { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); display: block; text-align: center; text-decoration: none; }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-pressed); }

/* ── 홈 / 히어로 ── */
.hero { padding: 48px 0 28px; text-align: center; }
.hero-badge {
  display: inline-block; background: var(--teal-tint); color: var(--teal-pressed);
  font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 999px; margin-bottom: 20px;
}
.hero-title {
  font-size: 30px; line-height: 1.32; color: var(--ink); margin: 0 0 16px;
  letter-spacing: -.6px; white-space: pre-line; font-weight: 800;
}
.hero-lead { font-size: 16px; color: var(--weak); margin: 0 auto 28px; max-width: 420px; line-height: 1.65; }

.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 36px;
}
.feature-card {
  background: var(--surface); border-radius: var(--radius); padding: 22px 18px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--divider);
}
.feature-emoji { font-size: 26px; }
.feature-title { font-weight: 700; color: var(--ink); margin-top: 10px; font-size: 15px; }
.feature-desc { color: var(--weak); font-size: 13px; margin-top: 4px; line-height: 1.55; }

.section-title { font-size: 18px; color: var(--ink); font-weight: 800; margin: 8px 0 14px; }
.field-grid { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 8px; }
.field-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 14px; font: inherit; font-size: 14px; color: var(--text); cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.field-chip:hover { border-color: var(--teal); color: var(--teal-pressed); }
.field-chip-emoji { font-size: 15px; }

/* ── 상단바 / 진행도 ── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  max-width: var(--maxw); margin: 0 auto;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px; /* 노치 PWA 대응 */
  /* 테마 인지 불투명 배경 — 다크모드에서도 헤더가 어둡게 나오고, sticky 위로 스크롤되는
     콘텐츠가 깔끔히 가려진다. (backdrop-filter blur는 안드로이드 WebView에서 스크롤 중
     헤더 밑 콘텐츠가 번져 겹쳐 보이는 잔상 글리치를 유발하므로 제거) */
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: none; background: var(--surface);
  font-size: 18px; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--teal-tint); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:disabled { opacity: .6; cursor: default; }
.icon-btn.spinning svg { animation: icon-spin .8s linear infinite; }
@keyframes icon-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.topbar-title { flex: 1; text-align: center; font-weight: 800; color: var(--ink); font-size: 16px; }
.progress { flex: 1; display: flex; gap: 6px; align-items: center; }
.progress-dot { height: 6px; flex: 1; border-radius: 999px; background: var(--border); transition: background .2s; }
.progress-dot.on { background: var(--teal); }
.progress-text { font-size: 13px; font-weight: 700; color: var(--weak); }

/* ── 위저드 ── */
.wizard { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.wizard-body { padding-top: 12px; }
.step-head { margin-bottom: 22px; }
.step-kicker { color: var(--teal-pressed); font-weight: 800; font-size: 13px; letter-spacing: .5px; }
.step-title { font-size: 22px; color: var(--ink); font-weight: 800; margin: 8px 0; letter-spacing: -.4px; }
.step-sub { color: var(--weak); font-size: 15px; margin: 0; }

.field-label { font-weight: 700; color: var(--ink); font-size: 15px; margin: 22px 0 8px; }
.collapse { border-radius: 10px; background: var(--surface-variant, var(--field)); margin: 16px 0; overflow: hidden; }
.collapse-head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 16px; border: none; background: none; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; text-align: left; gap: 8px; }
.collapse-chevron { font-size: 12px; color: var(--weak); transition: transform 0.2s; flex: none; }
.collapse.open .collapse-chevron { transform: rotate(90deg); }
.collapse-body { display: none; padding: 0 16px 16px; }
.collapse.open .collapse-body { display: block; }
.collapse-body .field-label:first-child { margin-top: 0; }
.collapse-body .hint:last-child { margin-bottom: 0; }
.hint { color: var(--weak); font-size: 13px; margin: -4px 0 10px; }
.hint-block { margin: 8px 0 4px; line-height: 1.6; }
.back-cta { margin-top: 20px; }

.num-field {
  display: flex; align-items: center; background: var(--field);
  border: 1.5px solid transparent; border-radius: var(--radius-sm); padding: 0 16px;
}
.num-field:focus-within { border-color: var(--teal); background: var(--surface); }
.num-input {
  flex: 1; border: none; background: transparent; font: inherit; font-size: 18px; font-weight: 600;
  color: var(--ink); padding: 14px 0; outline: none; -moz-appearance: textfield;
}
.num-input::-webkit-outer-spin-button, .num-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num-unit { color: var(--weak); font-weight: 700; font-size: 15px; }

/* 칩 */
.chip-flow { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 14px; font-weight: 600; padding: 11px 15px; min-height: 44px;
  border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; transition: all .12s ease;
}
.chip:hover { border-color: var(--teal); }
.chip.on { background: var(--teal-tint); border-color: var(--teal); color: var(--teal-pressed); font-weight: 700; }

/* 옵션 행 */
.option-list { display: flex; flex-direction: column; gap: 10px; }
.option-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px; font: inherit; cursor: pointer; transition: all .12s ease;
}
.option-row:hover { border-color: var(--teal); }
.option-row.on { border-color: var(--teal); background: var(--teal-tint); }
.option-emoji { font-size: 20px; }
.option-title { flex: 1; font-weight: 600; color: var(--ink); font-size: 15px; }
.option-check { color: var(--teal-pressed); font-weight: 800; width: 18px; text-align: center; }

/* tint block */
.tint-block {
  display: flex; align-items: center; gap: 12px; margin-top: 22px;
  background: var(--teal-tint); border-radius: var(--radius-sm); padding: 16px;
}
.tint-block.muted { background: var(--surface); border: 1px solid var(--divider); }
.tint-emoji { flex-shrink: 0; display: inline-flex; color: var(--teal-pressed); }
.tint-emoji svg { width: 22px; height: 22px; }
.tint-block.muted .tint-emoji { color: var(--weak); }
.tint-title { font-weight: 800; color: var(--teal-pressed); font-size: 15px; }
.tint-sub { color: var(--weak); font-size: 13px; margin-top: 2px; }
.tint-block.muted div { color: var(--weak); font-size: 14px; }

/* 하단 고정 CTA */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
}
.cta-bar .btn { max-width: var(--maxw); margin: 0 auto; display: block; }

/* ── 결과 ── */
.result-summary { padding: 8px 0 18px; }
.result-summary-title { font-size: 19px; font-weight: 800; color: var(--ink); margin-bottom: 12px; letter-spacing: -.3px; }
.result-summary-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-tag {
  display: inline-block; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; color: var(--weak);
}

.rec-list { display: flex; flex-direction: column; gap: 12px; }
.rec-card {
  width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--radius); padding: 16px; cursor: pointer; box-shadow: var(--shadow-sm);
  font: inherit; transition: transform .08s ease, box-shadow .15s ease;
}
.rec-card:hover { box-shadow: var(--shadow); }
.rec-card:active { transform: scale(.99); }
.rec-head { display: flex; align-items: center; gap: 12px; }
.rank {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--field); color: var(--weak); font-weight: 800; font-size: 13px;
}
.rank-1 { background: #FFEFC2; color: #B4820A; }
.rank-2 { background: #E7ECF0; color: #5B6B7A; }
.rank-3 { background: #F7E2D4; color: #B06A3C; }
.rec-titles { flex: 1; min-width: 0; }
.rec-name { font-weight: 800; color: var(--ink); font-size: 16px; display: flex; align-items: center; gap: 7px; min-width: 0; }
.rec-sub { color: var(--weak); font-size: 13px; margin-top: 2px; }

/* 군별 라인 아이콘 배지 (이모지 대체) */
.branch-mark { display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 26px; height: 26px; border-radius: 8px; }
.branch-mark svg { width: 16px; height: 16px; }
.branch-mark.sm { width: 22px; height: 22px; border-radius: 7px; }
.branch-mark.sm svg { width: 14px; height: 14px; }
.option-emoji.branch-mark { width: 30px; height: 30px; border-radius: 9px; }
.option-emoji.branch-mark svg { width: 18px; height: 18px; }
.detail-emoji svg { width: 28px; height: 28px; }
.rec-score { font-weight: 800; line-height: 1; display: flex; align-items: baseline; }
.rec-score-num { font-size: 26px; }
.rec-score-pct { font-size: 14px; margin-left: 1px; }

.bar { height: 8px; background: var(--field); border-radius: 999px; overflow: hidden; margin: 13px 0 0; }
.bar-lg { height: 12px; margin-top: 16px; }
.bar-fill { height: 100%; border-radius: 999px; transition: width .4s ease; }
.rec-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.match-label { font-weight: 800; font-size: 13px; flex-shrink: 0; }
.rec-reason { color: var(--weak); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 상세 ── */
.detail-head { display: flex; align-items: center; gap: 14px; padding: 8px 0 4px; }
.detail-emoji {
  width: 52px; height: 52px; border-radius: 16px; background: var(--teal-tint);
  display: inline-flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0;
}
.detail-name { font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: -.3px; }
.detail-branch { color: var(--weak); font-size: 14px; margin-top: 2px; }
.detail-score { margin-left: auto; font-size: 24px; font-weight: 800; }
.gauge-foot { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 4px; }

.card {
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 22px; margin-top: 16px; box-shadow: var(--shadow-sm);
}
.card-title { font-size: 16px; font-weight: 800; color: var(--ink); margin: 0 0 10px; }
.body-text { color: var(--text); font-size: 15px; margin: 0; line-height: 1.7; }
.bullets { margin: 0; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.bullets li { position: relative; padding-left: 24px; color: var(--text); font-size: 14.5px; line-height: 1.55; }
.bullets li::before { position: absolute; left: 0; top: 0; }
.bullets.good li::before { content: "✓"; color: var(--success); font-weight: 800; }
.bullets.warn li::before { content: "!"; color: var(--warn-text); font-weight: 800; }
.bullets.neutral li::before { content: "•"; color: var(--teal-pressed); font-weight: 800; }

.detail-head + * { margin-top: 8px; }
.btn-outline.btn-lg { margin-top: 20px; }

/* ── 면책 / 푸터 ── */
.disclaimer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--divider); }
.disclaimer p { color: var(--weak); font-size: 12.5px; line-height: 1.6; margin: 0 0 8px; }
.disclaimer a { color: var(--weak); text-decoration: underline; }
.disclaimer-note { color: var(--disabled) !important; }
.footer-guides { color: var(--weak); }
.footer-guides a { white-space: nowrap; }

@media (min-width: 600px) {
  .hero-title { font-size: 32px; }
}

/* ── 접근성: 포커스 링 ── */
:focus-visible { outline: 3px solid rgba(56,189,248,.5); outline-offset: 2px; border-radius: 8px; }
/* 폼 입력은 굵은 outline 대신 은은한 box-shadow 링으로 — border-color 변화만으로는
   저시력 사용자에게 포커스 위치가 약하게 보일 수 있어 시각 신호를 하나 더 둔다. */
.num-input:focus-visible, .cut-select:focus-visible, .voice-textarea:focus-visible,
.search-wrap input:focus-visible, .num-field input:focus-visible,
.chat-input:focus-visible, .comm-search-input:focus-visible, .ai-input:focus-visible,
.compose-input:focus-visible, .comm-nick-input:focus-visible, .search-input:focus-visible,
.sched-input:focus-visible {
  outline: none; box-shadow: 0 0 0 3px rgba(56,189,248,.35);
}

/* ── 사이트 헤더(홈) ── */
.site-header {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; padding: 0; }
.brand-icon { border-radius: 7px; display: block; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(145deg, #38BDF8, #0284C7); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
.brand-name { font-weight: 800; color: var(--ink); font-size: 15px; }

/* ─────────────── 홈 포털 (데스크탑 넓게 / 모바일 컬럼) ─────────────── */
.home { background: var(--bg); min-height: 100vh; }
.home-header { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.home-wrap { max-width: 960px; margin: 0 auto; padding: 0 20px 46px; }
/* 퀵 액션 그리드 — 첫 화면 핵심 6개 */
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.qa-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 8px 14px;
  cursor: pointer; font: inherit; transition: transform .1s, box-shadow .15s, border-color .15s; }
.qa-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15,23,42,.08); }
.qa-card:active { transform: scale(.96); }
.qa-ico { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.qa-ico svg { width: 20px; height: 20px; }
.qa-card b { font-size: 14px; font-weight: 800; color: var(--ink); }
.qa-card small { font-size: 11.5px; color: var(--weak); line-height: 1.3; }
.qa-blue .qa-ico { background: #DBEAFE; color: #2563EB; }
.qa-sky .qa-ico { background: #E0F2FE; color: #0284C7; }
.qa-green .qa-ico { background: #DCFCE7; color: #16A34A; }
.qa-amber .qa-ico { background: #FEF3C7; color: #D97706; }
.qa-purple .qa-ico { background: #EDE9FE; color: #7C3AED; }
.qa-rose .qa-ico { background: #FFE4E6; color: #E11D48; }
.qa-blue:hover { border-color: #2563EB; }
.qa-sky:hover { border-color: #0284C7; }
.qa-green:hover { border-color: #16A34A; }
.qa-amber:hover { border-color: #D97706; }
.qa-purple:hover { border-color: #7C3AED; }
.qa-rose:hover { border-color: #E11D48; }

/* 통합 히어로 CTA */
.qa-hero {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #0284C7, #38BDF8);
  color: #fff; border: none; border-radius: 18px;
  padding: 18px 20px; cursor: pointer; font: inherit;
  transition: transform .1s, box-shadow .15s;
  text-align: left;
}
.qa-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(2,132,199,.25); }
.qa-hero:active { transform: scale(.97); }
.qa-hero-ico { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.2); border-radius: 14px; flex-shrink: 0; }
.qa-hero-ico svg { width: 24px; height: 24px; fill: #fff; }
.qa-hero-text { flex: 1; min-width: 0; }
.qa-hero-text b { font-size: 17px; font-weight: 900; display: block; }
.qa-hero-text small { font-size: 12.5px; opacity: .88; }
.hero-steps {
  width: 100%; display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; margin-top: 2px;
}
.hero-step {
  background: rgba(255,255,255,.15); padding: 4px 10px; border-radius: 999px;
  white-space: nowrap; opacity: .7;
}
.hero-step.now { background: rgba(255,255,255,.3); opacity: 1; }
.hero-step.done { background: rgba(255,255,255,.25); opacity: .85; }
.hero-arrow { opacity: .5; font-size: 12px; }
.qa-grid-sub { grid-template-columns: repeat(3, 1fr); }

.home-mecard { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-sm); cursor: pointer; font: inherit; display: flex; flex-direction: column; margin-bottom: 14px; }
.home-mecard.start { justify-content: center; }
.mc-dday { background: linear-gradient(135deg, #38BDF8, #0284C7); color: #fff; border-radius: 16px; padding: 14px 16px; }
.mc-dday b { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; display: block; }
.mc-dday span { font-size: 11.5px; opacity: .92; }
.mc-h { font-weight: 800; font-size: 16px; color: var(--ink); }
.mc-p { font-size: 13px; color: var(--weak); margin-top: 6px; line-height: 1.5; }
.mc-row { display: flex; align-items: center; gap: 8px; margin-top: 11px; font-size: 13px; color: var(--ink); font-weight: 600; }
.mc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.mc-more { margin-top: auto; padding-top: 13px; font-size: 13px; font-weight: 800; color: var(--teal-pressed); }
.home-mecard.start .mc-more { margin-top: 14px; }

/* "지금 나는" 카드 — 복무 중 사용자만 노출, 오늘 기준 자동 계산 */
.home-nowcard { text-align: left; background: linear-gradient(160deg, #10B981, #059669); color: #fff; border: none; border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-sm); cursor: pointer; font: inherit; display: flex; flex-direction: column; margin-bottom: 14px; }
.now-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.now-t { font-size: 15px; font-weight: 900; letter-spacing: -0.01em; }
.now-sub { font-size: 12px; opacity: .9; font-weight: 600; }
.now-rows { display: flex; flex-direction: column; gap: 6px; }
.now-row { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; }
.now-lb { opacity: .88; font-weight: 600; }
.now-vl { font-weight: 800; letter-spacing: -0.01em; }
.now-hint { border-top: 1px solid rgba(255,255,255,0.22); padding-top: 8px; margin-top: 4px; font-size: 12.5px; opacity: .92; }
.now-more { margin-top: 12px; font-size: 12.5px; font-weight: 800; opacity: .95; }
@media (prefers-color-scheme: dark) { .home-nowcard { background: linear-gradient(160deg, #065F46, #064E3B); } }

/* 30초 통합 세팅 시트 — 홈 상단 카드로 노출 */
.home-quick { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--teal); }
.quick-head { margin-bottom: 14px; }
.quick-t { font-size: 16px; font-weight: 900; color: var(--ink); letter-spacing: -0.02em; }
.quick-d { font-size: 12.5px; color: var(--weak); margin-top: 4px; line-height: 1.55; }
.quick-row { margin-bottom: 12px; }
.quick-lb { display: block; font-size: 12.5px; font-weight: 700; color: var(--weak); margin-bottom: 6px; }
.quick-hw-inputs { display: flex; align-items: center; gap: 6px; }
.quick-hw-inputs .num-input { flex: 1; min-width: 0; }
.quick-hw-inputs span { color: var(--weak); font-size: 13px; font-weight: 600; }
.quick-skip { width: 100%; background: transparent; border: none; padding: 10px; font: inherit; font-size: 13px; color: var(--weak); cursor: pointer; margin-top: 4px; }
.quick-skip:hover { color: var(--ink); }

/* "지금 해야 할 것" — 스테이지·상황 기반 자동 액션 카드 */
.home-actions { margin-bottom: 14px; }
.ha-t { font-size: 14px; font-weight: 800; color: var(--ink); margin: 4px 2px 10px; letter-spacing: -0.01em; }
.ha-list { display: flex; flex-direction: column; gap: 8px; }
.ha-item { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; font: inherit; cursor: pointer; border-left: 4px solid var(--teal); box-shadow: var(--shadow-sm); }
.ha-ico { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ha-ico svg { width: 18px; height: 18px; }
.ha-ico.t1 { background: #FDEBEF; color: #F43F5E; } .ha-ico.t2 { background: #FEF6E0; color: #D9A406; }
.ha-ico.t3 { background: #E8F1FE; color: #3B82F6; } .ha-ico.t4 { background: #E9F8EE; color: #22C55E; }
.ha-body { flex: 1; min-width: 0; }
.ha-title { font-size: 14.5px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.ha-desc { font-size: 12.5px; color: var(--weak); margin-top: 3px; }
.ha-cta { font-size: 12px; font-weight: 800; color: var(--teal-pressed); flex-shrink: 0; }

/* 내 합격 지도 — 172개 특기 자동 스캔 */
.passmap-empty { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px 20px; text-align: center; }
.passmap-empty h2 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.passmap-empty p { color: var(--weak); font-size: 14px; margin: 0 0 16px; line-height: 1.65; }
.passmap-head { padding: 8px 2px 12px; }
.passmap-bands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 6px; }
.pm-band { border: none; border-radius: 14px; padding: 12px 6px; font: inherit; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; }
.pm-band b { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.pm-band span { font-size: 11.5px; font-weight: 700; opacity: .95; }
.pm-band.pm-safe { background: #10B981; }
.pm-band.pm-edge { background: #38BDF8; }
.pm-band.pm-challenge { background: #F59E0B; }
.pm-band.pm-hard { background: #94A3B8; }
.passmap-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.passmap-gh { padding: 14px 2px 4px; }
.passmap-gh b { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.passmap-gh small { display: block; font-size: 12.5px; color: var(--weak); margin-top: 2px; }
.passmap-row { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; font: inherit; text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-left-width: 4px; }
.passmap-row.pm-safe { border-left-color: #10B981; }
.passmap-row.pm-edge { border-left-color: #38BDF8; }
.passmap-row.pm-challenge { border-left-color: #F59E0B; }
.passmap-row.pm-hard { border-left-color: #94A3B8; }
.pm-row-t { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.pm-row-d { font-size: 12px; color: var(--weak); margin-top: 3px; }
.pm-row-r { text-align: right; flex-shrink: 0; }
.pm-row-r b { font-size: 15px; font-weight: 900; letter-spacing: -0.01em; color: var(--ink); display: block; }
.pm-row-r small { font-size: 11px; color: var(--weak); }
.passmap-row.pm-safe .pm-row-r b { color: #059669; }
.passmap-row.pm-edge .pm-row-r b { color: #0284C7; }
.passmap-row.pm-challenge .pm-row-r b { color: #D97706; }
.passmap-row.pm-hard .pm-row-r b { color: #64748B; }
.passmap-none { text-align: center; color: var(--weak); font-size: 13.5px; padding: 30px 12px; }
.passmap-actions { display: flex; gap: 8px; margin-top: 20px; }
.passmap-actions .btn { flex: 1; }
.sim-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin: 14px 0 4px; }
.sim-card-h { margin-bottom: 12px; }
.sim-card-h b { font-size: 15px; font-weight: 800; color: var(--ink); display: block; }
.sim-card-h span { font-size: 12.5px; color: var(--weak); }
.sim-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.sim-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.sim-row.sim-pick { border-color: #10B981; background: rgba(16,185,129,.06); }
.sim-row-l b { font-size: 13.5px; font-weight: 700; color: var(--ink); display: block; }
.sim-row-l span { font-size: 12px; color: var(--weak); }
.sim-row-r { font-size: 12.5px; font-weight: 700; color: #059669; flex-shrink: 0; text-align: right; }
.sim-card .btn { margin-top: 2px; }
.alerts-list { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.alerts-gh { padding: 14px 2px 4px; }
.alerts-gh b { font-size: 15px; font-weight: 800; color: var(--ink); }
.alerts-gh small { display: block; font-size: 12.5px; color: var(--weak); margin-top: 2px; }
.alerts-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; border-left: 4px solid var(--border); }
.alerts-row.alerts-urgent { border-left-color: #EF4444; }
.alerts-row.alerts-soon { border-left-color: #F59E0B; }
.alerts-row.alerts-past { opacity: .55; border-left-color: var(--border); }
.alerts-row-l b { font-size: 14px; font-weight: 700; color: var(--ink); display: block; }
.alerts-row-l span { font-size: 12px; color: var(--weak); }
.alerts-row-r { font-size: 14px; font-weight: 800; color: var(--teal-pressed); flex-shrink: 0; }
.alerts-row.alerts-urgent .alerts-row-r { color: #EF4444; }
.alerts-row.alerts-soon .alerts-row-r { color: #D97706; }
.alerts-row.alerts-past .alerts-row-r { color: var(--weak); font-weight: 600; }
.home-more-toggle { width: 100%; margin-top: 22px; padding: 15px; border: 1.5px dashed var(--border); border-radius: 14px;
  background: var(--surface-variant); color: var(--teal-pressed); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
  transition: background .12s, border-color .12s; }
.home-more-toggle:hover { background: var(--teal-tint); border-color: var(--teal); }
.home-sec { padding: 30px 2px 0; }
.home-sec h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.home-sec-d { font-size: 13.5px; color: var(--weak); margin-top: 3px; }

/* 관심사 탭 — 슬림 가로 탭 */
.track-tabs { margin-bottom: 6px; }
.track-tabs-row { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.track-tab { border: none; background: var(--surface-variant); font: inherit; font-size: 13.5px; font-weight: 700;
  color: var(--weak); padding: 9px 16px; border-radius: 999px; cursor: pointer;
  transition: background .12s, color .12s; white-space: nowrap; flex-shrink: 0; }
.track-tab:hover { color: var(--ink); }
.track-tab.on { background: var(--teal); color: #fff; }
@media (max-width: 380px) { .track-tab { font-size: 12.5px; padding: 8px 12px; } }

/* 간부 진급·별 확률 */
.odds-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 4px; }
.odds-stat { background: var(--surface-variant); border: 1px solid var(--border); border-radius: 14px; padding: 14px 10px; text-align: center; }
.odds-stat b { display: block; font-size: 21px; font-weight: 800; color: var(--teal-pressed); letter-spacing: -0.02em; }
.odds-stat-k { display: block; font-size: 11.5px; color: var(--ink); margin-top: 3px; line-height: 1.35; }
.odds-stat small { display: block; font-size: 10.5px; color: var(--weak); margin-top: 2px; }
.odds-bars { display: flex; flex-direction: column; gap: 13px; margin-top: 2px; }
.odds-bar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.odds-bar-top span { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.odds-bar-top b { font-size: 12.5px; font-weight: 700; color: var(--weak); text-align: right; }
.odds-bar-track { height: 10px; border-radius: 999px; background: var(--teal-tint); overflow: hidden; }
.odds-bar-fill { height: 100%; border-radius: 999px; width: var(--w); background: linear-gradient(90deg, var(--teal), var(--teal-pressed)); animation: paygrow 1s cubic-bezier(.22,.85,.24,1) both; }
@media (max-width: 380px) { .odds-stat b { font-size: 18px; } }
/* 간부 vs 민간 봉급 비교 막대 */
.paycmp { display: flex; flex-direction: column; gap: 16px; margin-top: 2px; }
.paycmp-grp-t { font-size: 13px; font-weight: 800; color: var(--weak); margin-bottom: 9px; }
.paycmp-row { margin-bottom: 11px; }
.paycmp-row:last-child { margin-bottom: 0; }
.paycmp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.paycmp-top span { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.paycmp-top b { font-size: 13.5px; font-weight: 800; }
.paycmp-top .won-g { color: var(--teal-pressed); }
.paycmp-top .won-m { color: var(--weak); }
.paycmp-em { font-style: normal; margin-right: 6px; }
.paycmp-best { font-style: normal; font-size: 10px; font-weight: 800; color: #7a4d00; background: #ffe3a3; padding: 1px 7px; border-radius: 999px; margin-left: 7px; vertical-align: middle; }
.paycmp-track { height: 24px; border-radius: 9px; background: var(--surface-variant); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.05); }
.paycmp-fill { height: 100%; border-radius: 9px; width: var(--w); animation: paygrow 1s cubic-bezier(.22,.85,.24,1) both; box-shadow: inset 0 1px 0 rgba(255,255,255,.28); }
.paycmp-fill.g { background: linear-gradient(90deg, var(--teal), var(--teal-pressed)); }
.paycmp-fill.m { background: linear-gradient(90deg, #cfd7e0, #b6c0cc); }
.paycmp-fill.hi { background: linear-gradient(90deg, #f6c453, #e8940f); }
.paycmp-note { font-size: 11px; color: var(--weak); margin-top: 3px; }
@keyframes paygrow { from { width: 0; } to { width: var(--w); } }
/* 전 계급 봉급 사다리 */
.payladder { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.payladder-grp { font-size: 11.5px; font-weight: 800; color: var(--weak); letter-spacing: .02em; margin: 10px 0 2px; text-transform: uppercase; }
.payladder-grp:first-child { margin-top: 0; }
.payladder-grp.star { color: #b07508; }
.payladder-row { display: grid; grid-template-columns: 88px 1fr 52px; align-items: center; gap: 9px; }
.payladder-k { font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.payladder-track { height: 14px; border-radius: 7px; background: var(--surface-variant); overflow: hidden; }
.payladder-fill { height: 100%; border-radius: 7px; width: var(--w); background: linear-gradient(90deg, var(--teal), var(--teal-pressed)); animation: paygrow .8s cubic-bezier(.22,.85,.24,1) both; }
.payladder-fill.star { background: linear-gradient(90deg, #f6c453, #e8940f); }
.payladder-v { font-size: 12px; font-weight: 800; color: var(--teal-pressed); text-align: right; font-variant-numeric: tabular-nums; }
.payladder-v.star { color: #b07508; }
@media (max-width: 380px) { .payladder-row { grid-template-columns: 80px 1fr 48px; } .payladder-k { font-size: 11.5px; } }
@media (prefers-reduced-motion: reduce) { .paycmp-fill, .odds-bar-fill, .payladder-fill { animation: none; } }

/* 내 월급 성장기 */
.pg-odo { background: linear-gradient(135deg, var(--teal-tint), var(--surface)); border: 1px solid var(--border); border-radius: 18px; padding: 22px 18px; text-align: center; margin: 6px 0 4px; }
.pg-odo-k { display: block; font-size: 12.5px; font-weight: 700; color: var(--weak); margin-bottom: 6px; }
.pg-odo-num { display: block; font-size: 31px; font-weight: 800; color: var(--teal-pressed); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pg-odo-rate { display: block; font-size: 12px; color: var(--weak); margin-top: 5px; min-height: 15px; }
.pg-setup-seg { display: flex; gap: 7px; flex-wrap: wrap; margin: 10px 0; }
.pg-line { display: flex; gap: 14px; margin-top: 4px; }
.pg-rail { width: 6px; border-radius: 999px; background: var(--surface-variant); overflow: hidden; flex: none; margin: 12px 0 12px 6px; }
.pg-rail-fill { width: 100%; background: linear-gradient(180deg, var(--teal), var(--teal-pressed)); border-radius: 999px; transition: height .6s ease; }
.pg-stations { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.pg-station { display: grid; grid-template-columns: 14px 52px 1fr auto; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.pg-station.past { opacity: .62; }
.pg-station.cur { border-color: var(--teal); box-shadow: var(--shadow-sm); background: var(--teal-tint); }
.pg-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--surface-variant); border: 2.5px solid var(--border); margin-left: -22px; box-sizing: border-box; }
.pg-station.past .pg-dot { background: var(--teal); border-color: var(--teal); }
.pg-station.cur .pg-dot { background: var(--teal); border-color: #fff; box-shadow: 0 0 0 2.5px var(--teal); }
.pg-dot.pulse { animation: pgpulse 1.6s ease-out infinite; }
@keyframes pgpulse { 0% { box-shadow: 0 0 0 2.5px var(--teal); } 60% { box-shadow: 0 0 0 8px rgba(56,189,248,0); } 100% { box-shadow: 0 0 0 2.5px var(--teal); } }
.pg-st-name { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.pg-st-sub { font-size: 12px; color: var(--weak); font-weight: 600; }
.pg-st-d { font-size: 12px; font-weight: 800; color: var(--teal-pressed); font-variant-numeric: tabular-nums; }

/* 휴가 티켓북 */
.lv-gauge { height: 10px; border-radius: 999px; background: rgba(0,0,0,.07); overflow: hidden; margin: 10px auto 0; max-width: 260px; }
.lv-gauge-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--teal-pressed)); transition: width .35s ease; }
.lv-strip { margin-bottom: 14px; }
.lv-strip-t { font-size: 12.5px; font-weight: 800; color: var(--weak); margin-bottom: 8px; }
.lv-tickets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.lv-ticket { position: relative; aspect-ratio: 1 / 1.15; border: none; border-radius: 9px; cursor: pointer; font: inherit;
  background: linear-gradient(160deg, var(--teal), var(--teal-pressed)); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), opacity .18s, filter .18s;
  -webkit-mask: radial-gradient(circle 5px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 5px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 5px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 5px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat; }
.lv-ticket::after { content: ''; position: absolute; left: 8%; right: 8%; top: 62%; border-top: 1.5px dashed rgba(255,255,255,.55); }
.lv-ticket:active { transform: scale(.9); }
.lv-ticket.gold { background: linear-gradient(160deg, #f6c453, #e8940f); }
.lv-ticket.used { transform: rotate(-7deg) scale(.88); opacity: .38; filter: grayscale(.75); }
.lv-tk-n { font-size: 13.5px; font-weight: 800; line-height: 1; }
.lv-tk-day { font-size: 9px; font-weight: 700; opacity: .85; }
.lv-controls { display: flex; flex-direction: column; gap: 10px; }
.lv-ctrl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px; }
.lv-stepper { display: flex; align-items: center; gap: 4px; }
.lv-step-btn { width: 34px; height: 34px; border-radius: 9px; background: var(--teal-tint); color: var(--teal-pressed); font-size: 17px; font-weight: 800; padding: 0; }
.lv-step-v { min-width: 34px; text-align: center; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lv-minus { background: var(--surface); border: 1.5px solid var(--border); color: var(--weak); font-size: 13px; padding: 9px; }
@media (max-width: 380px) { .lv-tickets { grid-template-columns: repeat(5, 1fr); } }
@media (prefers-reduced-motion: reduce) { .pg-dot.pulse { animation: none; } .lv-ticket { transition: none; } }
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.home-card { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px; cursor: pointer; font: inherit; display: block; transition: .15s; }
.home-card:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.home-ico { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.home-ico svg { width: 24px; height: 24px; }
.home-card-t { display: block; font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.home-card-d { display: block; font-size: 12.5px; color: var(--weak); margin-top: 4px; line-height: 1.45; }
.home-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-top: 14px; }
.home-tool { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; cursor: pointer; font: inherit; }
.home-tool:hover { border-color: var(--teal); }
.home-tico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.home-tico svg { width: 19px; height: 19px; }
.home-tool b { font-size: 14px; font-weight: 800; color: var(--ink); display: block; }
.home-tool small { font-size: 11.5px; color: var(--weak); font-weight: 600; display: block; margin-top: 1px; }
.home-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-top: 14px; }
.home-stage { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 15px; cursor: pointer; font: inherit; }
.hs-n { display: block; font-size: 11px; font-weight: 800; color: var(--teal-pressed); }
.hs-nm { display: block; font-size: 15px; font-weight: 800; color: var(--ink); margin-top: 3px; }
.hs-ag { display: block; font-size: 11.5px; color: var(--weak); margin-top: 2px; }
.home-ico.g1 { background: #E0F2FE; color: #0284C7; } .home-ico.g2 { background: #EDE9FE; color: #7C3AED; }
.home-ico.g3 { background: #F1ECFE; color: #8B5CF6; } .home-ico.g4 { background: #E9ECFD; color: #6366F1; }
.home-ico.g5 { background: #E9F8EE; color: #22C55E; } .home-ico.g6 { background: #FFF1E6; color: #F59E0B; }
.home-tico.t1 { background: #FDEBEF; color: #F43F5E; } .home-tico.t2 { background: #FEF6E0; color: #D9A406; }
.home-tico.t3 { background: #E8F1FE; color: #3B82F6; } .home-tico.t4 { background: #E9F8EE; color: #22C55E; }
.home-tico.g5 { background: #E9F8EE; color: #22C55E; } .home-tico.g6 { background: #FFF1E6; color: #F59E0B; }
@media (max-width: 640px) {
  .home-grid { grid-template-columns: 1fr 1fr; }
  .home-tools { grid-template-columns: 1fr 1fr; }
  .home-stages { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) { .qa-grid { gap: 7px; } .qa-card { padding: 14px 4px 12px; } .qa-card b { font-size: 13px; } }
.site-nav { display: flex; gap: 8px; }
.nav-link {
  font: inherit; font-weight: 700; font-size: 14px; color: var(--teal-pressed);
  background: var(--teal-tint); border: none; border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.nav-link:hover { background: var(--teal-tint-strong); }

/* ── 커뮤니티 ── */
.nav-link.ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border); }
.nav-link.ghost:hover { border-color: var(--teal); color: var(--teal-pressed); background: var(--surface); }
.home-community { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; cursor: pointer;
  margin-top: 16px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border);
  background: radial-gradient(420px 160px at 90% -40%, #E0F2FE 0, rgba(224,242,254,0) 64%), var(--surface); }
.home-community:hover { border-color: var(--teal); }
.hc-ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; background: #E8F1FE; color: #3B82F6; display: flex; align-items: center; justify-content: center; }
.hc-ico svg { width: 24px; height: 24px; }
.hc-text { flex: 1; min-width: 0; }
.hc-text b { display: block; font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.hc-text small { display: block; font-size: 12.5px; color: var(--weak); margin-top: 3px; line-height: 1.45; }
.hc-arrow { flex-shrink: 0; color: var(--disabled); display: inline-flex; }
.hc-arrow svg { width: 20px; height: 20px; transform: rotate(180deg); }

/* 아바타 */
.avatar { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
.avatar.lg { width: 44px; height: 44px; font-size: 18px; }

/* ── 쿠키 고지(광고) — 문서 흐름 안의 일반 배너(고정 아님, sticky 상단바를 가리지 않음) ── */
.cookie-notice {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--ink, #191F28); color: #fff; font-size: 12.5px;
  padding: 9px 14px; line-height: 1.4;
}
.cookie-notice a { color: #fff; text-decoration: underline; }
.cookie-notice-ok {
  flex: none; border: none; background: rgba(255,255,255,.18); color: #fff;
  border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer;
}

/* ── 동의 오버레이 ── */
.consent-overlay { position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,.45); display:flex; align-items:flex-end; justify-content:center; }
.consent-sheet { background:var(--surface,#fff); border-radius:20px 20px 0 0; padding:24px 20px 32px; max-width:480px; width:100%; max-height:80vh; overflow-y:auto; }
.consent-sheet h3 { font-size:18px; margin:0 0 12px; }
.consent-sheet p { font-size:14px; line-height:1.6; margin:8px 0; color:var(--ink,#191F28); }
.consent-sheet ul { padding-left:18px; margin:8px 0 14px; }
.consent-sheet li { font-size:14px; line-height:1.6; margin-bottom:4px; }
.consent-links { font-size:13px !important; }
.consent-links a { color:var(--teal,#0a9d88); }
.consent-btn { display:block; width:100%; padding:14px; border:none; border-radius:12px; background:var(--teal,#0a9d88); color:#fff; font-size:16px; font-weight:700; cursor:pointer; margin-top:14px; }
.consent-cancel { display:block; width:100%; padding:12px; border:none; background:transparent; color:var(--weak,#6B7684); font-size:14px; cursor:pointer; margin-top:6px; }
@media (prefers-color-scheme: dark) {
  .consent-sheet { background:var(--surface,#1e1e1e); }
  .consent-sheet p, .consent-sheet li { color:var(--ink,#e0e0e0); }
}
:root[data-theme="dark"] .consent-sheet { background:var(--surface,#1e1e1e); }
:root[data-theme="dark"] .consent-sheet p, :root[data-theme="dark"] .consent-sheet li { color:var(--ink,#e0e0e0); }

/* ── 채팅방 (카톡 스타일) ── */
.chat-screen { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.chat-info { text-align: center; font-size: 12px; color: var(--weak); padding: 6px 0; background: var(--field); border-bottom: 1px solid var(--divider); }
.chat-messages { flex: 1; overflow-y: auto; padding: 12px 14px 8px; background: #B2DFDB; display: flex; flex-direction: column; gap: 2px; }
.chat-messages::before { content: ''; flex: 1; }
@media (prefers-color-scheme: dark) { .chat-messages { background: #1a3330; } }
:root[data-theme="dark"] .chat-messages { background: #1a3330; }
:root[data-theme="light"] .chat-messages { background: #B2DFDB; }
.chat-date-sep { text-align: center; margin: 14px 0 8px; }
.chat-date-sep span { font-size: 11.5px; color: #fff; background: rgba(0,0,0,.25); border-radius: 999px; padding: 4px 12px; }
.chat-sys { text-align: center; font-size: 13px; color: rgba(0,0,0,.5); background: rgba(255,255,255,.35); border-radius: 12px; padding: 14px 18px; margin: 20px auto; max-width: 280px; }
@media (prefers-color-scheme: dark) { .chat-sys { color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); } }
:root[data-theme="dark"] .chat-sys { color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); }
.chat-row { display: flex; flex-direction: column; align-items: flex-start; padding: 1px 0; }
.chat-row.mine { align-items: flex-end; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,.1); margin-bottom: 2px; }
.chat-nick { font-size: 12px; font-weight: 700; color: rgba(0,0,0,.6); margin: 0 0 2px 4px; }
@media (prefers-color-scheme: dark) { .chat-nick { color: rgba(255,255,255,.7); } }
:root[data-theme="dark"] .chat-nick { color: rgba(255,255,255,.7); }
.chat-msg-wrap { display: flex; align-items: flex-end; gap: 5px; max-width: 78%; }
.chat-msg-wrap.mine { flex-direction: row-reverse; }
.chat-msg-wrap.grouped { margin-left: 40px; }
.chat-bubble { background: #fff; border-radius: 14px 14px 14px 4px; padding: 9px 13px; max-width: 100%; word-break: break-word; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.chat-bubble.mine { background: #FEE500; border-radius: 14px 14px 4px 14px; }
@media (prefers-color-scheme: dark) { .chat-bubble { background: #2a2a2a; color: #e5e5e5; } .chat-bubble.mine { background: #3d6b00; color: #f0f0f0; } }
:root[data-theme="dark"] .chat-bubble { background: #2a2a2a; color: #e5e5e5; }
:root[data-theme="dark"] .chat-bubble.mine { background: #3d6b00; color: #f0f0f0; }
.chat-body { font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; }
.chat-img { max-width: 200px; max-height: 160px; border-radius: 8px; margin-top: 4px; display: block; }
.chat-time { font-size: 10.5px; color: rgba(0,0,0,.35); flex-shrink: 0; padding-bottom: 2px; }
@media (prefers-color-scheme: dark) { .chat-time { color: rgba(255,255,255,.4); } }
:root[data-theme="dark"] .chat-time { color: rgba(255,255,255,.4); }
.chat-bar { display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--divider); background: var(--surface); }
.chat-input { flex: 1; font: inherit; font-size: 15px; border: 1.5px solid var(--border); border-radius: 20px; padding: 10px 16px; resize: none; overflow: hidden; max-height: 120px; background: var(--field); color: var(--ink); line-height: 1.4; }
.chat-input:focus { border-color: var(--teal); outline: none; }
.chat-send { flex: none; width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--teal); display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; transition: opacity .15s; }
.chat-send:hover { background: var(--teal-pressed); }
.chat-send.disabled { opacity: .3; cursor: default; }
.chat-send svg { width: 18px; height: 18px; }
.chat-new-msg { position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%); z-index: 10; font: inherit; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(0,0,0,.6); border: none; border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.chat-new-msg:hover { background: rgba(0,0,0,.75); }

/* 기존 피드 (더 이상 안 쓰이지만 호환용) */
.comm { min-height: 100vh; padding-bottom: 90px; }
.comm-wrap { padding-top: 6px; }
.comm-feed { display: flex; flex-direction: column; }
.feed-item { border-bottom: 1px solid var(--divider); padding: 16px 4px; }
.feed-click { display: flex; gap: 12px; width: 100%; text-align: left; font: inherit; cursor: pointer; background: none; border: none; padding: 0; }
.feed-main { flex: 1; min-width: 0; }
.feed-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.feed-nick { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.feed-dot { color: var(--disabled); font-size: 12px; }
.feed-time { font-size: 12.5px; color: var(--weak); }
.feed-body { color: var(--text); font-size: 14.5px; line-height: 1.6; margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.feed-engage { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-left: 50px; }
.feed-eng { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--weak); }
.eng-ico { display: inline-flex; } .eng-ico svg { width: 15px; height: 15px; }

/* 상태 뱃지 / 군별 태그 */
.st-badge { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; line-height: 1.5; }
.st-pre { background: #E8F1FE; color: #2563EB; }
.st-serving { background: #E0F2FE; color: #0284C7; }
.st-reserve { background: #EDE9FE; color: #7C3AED; }
.st-civil { background: #FEF3E0; color: #B45309; }
.st-gunmuwon { background: #F1F5F9; color: #475569; }
.mil-tag { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--field); color: var(--weak); }

/* 좋아요 버튼 */
.like-btn { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 12.5px; font-weight: 700;
  color: var(--weak); background: none; border: none; cursor: pointer; padding: 2px 2px; }
.like-ico { display: inline-flex; } .like-ico svg { width: 16px; height: 16px; }
.like-btn.on { color: #EF4444; }
.like-btn.on .like-ico svg { fill: #EF4444; stroke: #EF4444; }
.like-btn:active .like-ico { transform: scale(.85); }
.like-ico { transition: transform .15s cubic-bezier(.34,1.56,.64,1); }
.detail-actions { display: flex; justify-content: center; margin-top: 18px; }
.detail-actions .like-btn { font-size: 14px; gap: 7px; padding: 9px 22px; border: 1.5px solid var(--border); border-radius: 999px; }
.detail-actions .like-btn.on { border-color: #FBC9C9; background: #FEF2F2; }
.detail-actions .like-ico svg { width: 18px; height: 18px; }
.cmt-actions { margin-top: 5px; display: flex; align-items: center; gap: 14px; }
.cmt-reply-btn { font: inherit; font-size: 12.5px; font-weight: 700; color: var(--weak);
  background: none; border: none; cursor: pointer; padding: 2px 2px; }
.cmt-reply-btn:hover { color: var(--ink); }
.cmt-reply-btn.on { color: var(--teal-pressed); }

/* 대댓글 */
.cmt-thread { border-bottom: 1px solid var(--divider); padding-bottom: 4px; }
.cmt-replies { margin-left: 44px; border-left: 2px solid var(--divider); padding-left: 10px; }
.cmt-replies .cmt-item { border-bottom: none; }
.cmt-item.is-reply { padding-top: 10px; }
.reply-form-holder:empty { display: none; }
.reply-form-holder { margin-left: 44px; margin-top: 6px; }
.comm-form.reply { background: var(--field); border-radius: 12px; padding: 10px; }
.comm-form.reply .voice-textarea { background: var(--surface, #fff); }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* 검색 */
.comm-search { position: relative; padding: 8px 16px 4px; }
.comm-search-ico { position: absolute; left: 28px; top: 50%; transform: translateY(-30%); color: var(--disabled); pointer-events: none; }
.comm-search-ico svg { width: 17px; height: 17px; }
.comm-search-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px;
  padding: 10px 14px 10px 38px; border: 1.5px solid var(--border); border-radius: 999px;
  background: var(--field); color: var(--ink); outline: none; }
.comm-search-input:focus { border-color: var(--teal); background: var(--surface, #fff); }
.comm-search-meta { font-size: 12.5px; font-weight: 700; color: var(--weak); padding: 12px 4px 2px; }

/* 홈 — AI 상담 진입 */
.home-ai { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  background: linear-gradient(135deg, #38BDF8, #0284C7); color: #fff; border: none; border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 12px; box-shadow: 0 4px 18px rgba(2,132,199,.22); }
.hai-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.2);
  display: inline-flex; align-items: center; justify-content: center; }
.hai-ico svg { width: 23px; height: 23px; }
.home-ai .hc-text b { color: #fff; }
.home-ai .hc-text small { color: rgba(255,255,255,.88); }
.home-ai .hc-arrow { margin-left: auto; transform: rotate(180deg); opacity: .9; }
.home-ai .hc-arrow svg { width: 20px; height: 20px; }

/* AI 모드 탭 */
.ai-tabs { display: flex; gap: 6px; padding: 8px 16px; border-bottom: 1px solid var(--divider); background: var(--surface); }
.ai-tab { flex: 1; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--weak); background: var(--field);
  border: none; border-radius: 999px; padding: 9px 6px; cursor: pointer; }
.ai-tab.on { background: var(--teal-pressed); color: #fff; }

/* AI 결과(코칭·편지) */
.ai-result { margin-top: 14px; }
.ai-out { background: var(--field); border: 1px solid var(--divider); border-radius: 14px; padding: 16px;
  font-size: 14.5px; line-height: 1.7; color: var(--ink); white-space: pre-wrap; word-break: break-word; }

/* AI 병역 상담 화면 */
.ai-screen { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.ai-note { font-size: 12px; color: var(--weak); text-align: center; padding: 8px 16px; background: var(--field); }
.ai-note a { color: var(--teal-pressed); font-weight: 700; }
.ai-scroll { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ai-row { display: flex; gap: 9px; align-items: flex-end; max-width: 100%; }
.ai-row.user { justify-content: flex-end; }
.ai-ava { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-tint); color: var(--teal-pressed);
  display: inline-flex; align-items: center; justify-content: center; }
.ai-ava svg { width: 18px; height: 18px; }
.ai-bubble { max-width: 80%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.ai-bubble.bot { background: var(--field); color: var(--ink); border-bottom-left-radius: 5px; }
.ai-bubble.user { background: var(--teal-pressed); color: #fff; border-bottom-right-radius: 5px; }
.ai-typing { display: inline-flex; gap: 5px; align-items: center; }
.ai-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--disabled); animation: ai-blink 1.2s infinite; }
.ai-dot:nth-child(2) { animation-delay: .2s; } .ai-dot:nth-child(3) { animation-delay: .4s; }
@keyframes ai-blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.ai-empty { text-align: center; margin: auto; padding: 24px 12px; }
.ai-empty-ico { display: inline-flex; width: 56px; height: 56px; border-radius: 16px; background: var(--teal-tint);
  color: var(--teal-pressed); align-items: center; justify-content: center; }
.ai-empty-ico svg { width: 30px; height: 30px; }
.ai-empty-t { font-size: 18px; font-weight: 800; color: var(--ink); margin-top: 14px; }
.ai-empty-d { font-size: 13.5px; color: var(--weak); margin-top: 6px; line-height: 1.55; }
.ai-starters { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.ai-starter { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.ai-starter:hover { border-color: var(--teal); color: var(--teal-pressed); }
.ai-bar { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--divider); background: var(--surface); }
.ai-input { flex: 1; resize: none; font: inherit; font-size: 15px; line-height: 1.4; max-height: 120px;
  border: 1.5px solid var(--border); border-radius: 18px; padding: 10px 14px; background: var(--field); color: var(--ink); outline: none; }
.ai-input:focus { border-color: var(--teal); background: var(--surface); }
.ai-send { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--teal-pressed); color: #fff;
  border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ai-send svg { width: 20px; height: 20px; }


/* 하단 네비게이션 + 광고 스트립을 한 덩어리로 고정 */
.bottom-fixed { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
  display: flex; flex-direction: column; max-width: 100%; }
.btm-nav { display: flex; justify-content: space-around; align-items: center;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 6px 0 6px; }
.btm-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; font: inherit; font-size: 10px; font-weight: 600;
  color: var(--weak); cursor: pointer; padding: 4px 0; transition: color .15s; }
.btm-tab.on { color: var(--teal); }
.btm-ico { display: flex; align-items: center; justify-content: center; }
.btm-ico svg { width: 22px; height: 22px; }
.btm-label { line-height: 1; }
#app { padding-bottom: 96px; }

/* 하단 광고 스트립 — 네이티브 앱 배너 톤(AD 태그 + 한 줄 문구 + 링크) */
.ad-strip { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); }
.ad-tag { flex: none; font-size: 10px; font-weight: 700; color: var(--weak); background: var(--field);
  border-radius: 5px; padding: 2px 6px; letter-spacing: .02em; }
.ad-msg { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-msg b { color: var(--teal-pressed); font-weight: 700; margin-left: 3px; }
.ad-info { flex: none; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--disabled);
  color: var(--weak); font-size: 9.5px; font-style: italic; font-family: Georgia, serif;
  display: flex; align-items: center; justify-content: center; }

/* 준비물 체크리스트 — 체크박스 겸 항목 카드 */
.prep-page { padding-bottom: 8px; }
.prep-intro h1 { font-size: 22px; color: var(--ink); font-weight: 800; margin: 6px 0 6px; letter-spacing: -.4px; }
.prep-intro p { font-size: 13.5px; color: var(--weak); margin: 0 0 14px; line-height: 1.6; }
.prep-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; -webkit-overflow-scrolling: touch; }
.prep-tab { flex: 0 0 auto; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; cursor: pointer; box-shadow: var(--shadow-sm); }
.prep-tab.on { background: var(--teal); border-color: var(--teal); color: #0B1120; }

.prep-kit { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius, 18px);
  box-shadow: var(--shadow-sm); padding: 16px 14px; margin: 16px 0; }
.prep-kit-compact { margin: 20px 0; }
.prep-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 6px; }
.prep-head-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: var(--teal-tint);
  color: var(--teal-pressed); display: flex; align-items: center; justify-content: center; }
.prep-head-ico svg { width: 22px; height: 22px; }
.prep-head-txt { min-width: 0; }
.prep-head-kick { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800;
  color: var(--teal-pressed); letter-spacing: .02em; margin-bottom: 2px; }
.prep-head-txt b { display: block; font-size: 15.5px; color: var(--ink); font-weight: 800; line-height: 1.35; }
.prep-head-txt small { display: block; font-size: 12.5px; color: var(--weak); margin-top: 3px; line-height: 1.5; }

.prep-list { margin-top: 12px; }
.prep-item { display: flex; align-items: flex-start; gap: 11px; padding: 12px 0; border-top: 1px solid var(--divider); }
.prep-item:first-child { border-top: none; }
.prep-check { flex: 0 0 auto; width: 24px; height: 24px; margin-top: 2px; border: 1.8px solid var(--border);
  background: var(--surface); border-radius: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.prep-check.on { background: var(--teal); border-color: var(--teal); }
.prep-check-mark { display: flex; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .12s, transform .12s; }
.prep-check.on .prep-check-mark { opacity: 1; transform: scale(1); }
.prep-check-mark svg { width: 15px; height: 15px; }
.prep-text { flex: 1 1 auto; min-width: 0; }
.prep-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.prep-ico { display: inline-flex; color: var(--teal-pressed); }
.prep-ico svg { width: 17px; height: 17px; }
.prep-name b { font-size: 14.5px; color: var(--ink); font-weight: 700; }
.prep-season { font-size: 9.5px; font-weight: 700; border-radius: 4px; padding: 1px 5px; }
.prep-season-summer { color: #B45309; background: var(--warn-tint); }
.prep-season-winter { color: #0369A1; background: var(--teal-tint); }
.prep-blurb { font-size: 12.5px; color: var(--weak); margin: 4px 0 0; line-height: 1.55; }
.prep-more { display: inline-block; font-size: 13px; font-weight: 700; color: var(--teal-pressed);
  text-decoration: none; margin: 10px 0 2px; }
.prep-related { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 6px; }
.prep-related a { font-size: 14px; font-weight: 700; color: var(--teal-pressed); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; box-shadow: var(--shadow-sm); }

/* 토스트 */
.toast { position: fixed; bottom: 116px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  padding: 12px 24px; border-radius: 12px; z-index: 9500;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.18); white-space: nowrap; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 스켈레톤 로딩 */
.skel { background: var(--surface-variant, #eee); border-radius: 8px; animation: skel-pulse 1.2s ease-in-out infinite; }
@keyframes skel-pulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.skel-line { height: 14px; margin-bottom: 10px; border-radius: 6px; }
.skel-line.w70 { width: 70%; }
.skel-line.w50 { width: 50%; }
.skel-card { height: 72px; margin-bottom: 10px; border-radius: 12px; }

/* 온보딩 바텀시트 */
.obs-ov { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(8,14,18,.5); padding: 16px; animation: obs-fade .2s ease; }
@keyframes obs-fade { from { opacity: 0; } to { opacity: 1; } }
.obs-sheet { width: 100%; max-width: var(--maxw); background: var(--surface); border-radius: 20px 20px 0 0;
  padding: 28px 20px calc(20px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--shadow);
  animation: obs-up .25s cubic-bezier(.2,.8,.2,1); }
@keyframes obs-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.obs-title { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.obs-desc { font-size: 14px; color: var(--text); margin-bottom: 18px; line-height: 1.6; }
.obs-tracks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.obs-track { font: inherit; font-size: 14px; font-weight: 700; padding: 10px 18px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer; transition: all .15s; }
.obs-track:hover { border-color: var(--teal); }
.obs-track.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.obs-skip { font: inherit; font-size: 13px; color: var(--weak); background: none; border: none; cursor: pointer;
  display: block; margin: 0 auto; }

/* 접근성: 본문 바로가기 */
.skip-link { position: absolute; left: 8px; top: -48px; z-index: 10001; background: var(--teal); color: #fff;
  font-weight: 800; padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 8px; }

/* 복무 진행률 바 */
.svc-prog { position: relative; height: 18px; margin-top: 10px; border-radius: 999px; background: rgba(56,189,248,.18); overflow: hidden; }
.svc-prog.light { background: rgba(255,255,255,.28); }
.svc-prog-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--teal); border-radius: 999px; }
.svc-prog.light .svc-prog-fill { background: #fff; }
.svc-prog-lbl { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 10.5px; font-weight: 800; color: var(--ink); }
.svc-prog.light .svc-prog-lbl { color: #fff; }

/* 최근 본 특기 칩 */
.viewed-flow { display: flex; flex-wrap: wrap; gap: 8px; }
.viewed-chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; font: inherit;
  background: var(--field); border: 1px solid var(--divider); border-radius: 12px; padding: 8px 13px; cursor: pointer; }
.viewed-chip:hover { border-color: var(--teal); }
.viewed-name { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.viewed-branch { font-size: 11px; color: var(--weak); }

/* PWA 설치 배너 */
.install-banner { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 13px 15px;
  background: var(--surface, #fff); border: 1.5px solid var(--teal); border-radius: 16px; box-shadow: var(--shadow-sm); }
.install-ico { display: inline-flex; flex: none; width: 38px; height: 38px; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--teal-tint, #E0F2FE); color: var(--teal-pressed); }
.install-ico svg { width: 20px; height: 20px; }
.install-txt { flex: 1; min-width: 0; }
.install-txt b { display: block; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.install-txt small { display: block; font-size: 12px; color: var(--weak); margin-top: 1px; }
.install-txt small strong { color: var(--teal-pressed); font-weight: 800; }
.install-btn { flex: none; font: inherit; font-size: 13.5px; font-weight: 800; color: #fff; background: var(--teal);
  border: none; border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.install-x { flex: none; font: inherit; font-size: 13px; color: var(--disabled); background: none; border: none; cursor: pointer; padding: 4px 6px; }

/* 데이터 기준일·출처 도장 */
.data-stamp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px;
  padding: 9px 12px; background: var(--teal-tint, #E0F2FE); border-radius: 10px; font-size: 12.5px; color: var(--teal-pressed); }
.data-stamp-ico { display: inline-flex; flex: none; }
.data-stamp-ico svg { width: 16px; height: 16px; }
.data-stamp-txt { color: var(--ink); font-weight: 600; }
.data-stamp-txt strong { color: var(--teal-pressed); }
.data-stamp a { color: var(--teal-pressed); font-weight: 700; text-decoration: underline; }
.data-stale { margin-left: auto; background: var(--warn, #F59E0B); color: #fff; font-weight: 800; font-size: 11px; padding: 2px 8px; border-radius: 999px; }

/* 이모지 반응 바 */
.detail-react { display: flex; justify-content: center; margin-top: 16px; }
.react-bar { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.react-btn { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-weight: 700; font-size: 13px;
  color: var(--ink); background: var(--field); border: 1.5px solid transparent; border-radius: 999px; padding: 7px 13px; cursor: pointer; }
.react-btn:hover { border-color: var(--border); }
.react-btn.on { background: #E0F2FE; border-color: var(--teal); color: var(--teal-pressed); }
.react-emoji { font-size: 16px; line-height: 1; }
.react-n { min-width: 8px; }

/* 해시태그 · 멘션 */
.hashtag { font: inherit; color: var(--teal-pressed); font-weight: 700; background: none; border: none;
  padding: 0; cursor: pointer; }
.hashtag:hover { text-decoration: underline; }
.mention { font: inherit; color: #3B82F6; font-weight: 700; background: none; border: none; padding: 0; cursor: pointer; }
.mention:hover { text-decoration: underline; }

/* 인기 태그 바 */
.hot-tags { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 12px 2px; border-bottom: 1px solid var(--divider); }
.hot-tags-l { font-size: 12px; font-weight: 800; color: var(--weak); }
.hot-tag { font: inherit; font-size: 12.5px; font-weight: 700; color: var(--teal-pressed); background: var(--teal-tint);
  border: none; border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.hot-tag:hover { background: var(--teal-tint-strong); }

/* 커뮤니티 콜드스타트 스타터 */
.starter-block { margin-bottom: 14px; }
.starter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.starter-chip { font: inherit; font-size: 13px; font-weight: 700; color: var(--teal-pressed);
  background: var(--surface); border: 1.5px solid var(--teal); border-radius: 999px; padding: 8px 14px; cursor: pointer;
  transition: background .12s, transform .06s; }
.starter-chip:hover { background: var(--teal-tint); }
.starter-chip:active { transform: scale(.97); }

/* 베스트 댓글 뱃지 */
.best-badge { font-size: 10.5px; font-weight: 800; color: #fff; background: var(--teal); padding: 1px 7px; border-radius: 999px; }
.cmt-thread:has(.best-badge) { background: var(--teal-tint); border-radius: 12px; padding: 6px 8px; margin-bottom: 4px; }

/* 차단 */
.comm-block { font: inherit; font-size: 12.5px; font-weight: 700; color: var(--weak);
  background: none; border: none; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.comm-block:hover { color: #EF4444; background: rgba(239,68,68,.08); }
.comm-block.sm { font-size: 11.5px; padding: 2px 5px; }
.block-manage-row { display: flex; justify-content: center; padding: 24px 0 8px; }
.block-manage-link { font: inherit; font-size: 13px; font-weight: 700; color: var(--weak);
  background: none; border: none; cursor: pointer; text-decoration: underline; }
.block-list { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.block-row { display: flex; align-items: center; gap: 12px; background: var(--field); border: 1px solid var(--divider);
  border-radius: 14px; padding: 12px 14px; }
.block-nick { flex: 1; font-size: 14px; font-weight: 800; color: var(--ink); }

/* 토스트 */
.toast { position: fixed; left: 50%; bottom: 116px; transform: translateX(-50%) translateY(8px);
  background: var(--toast-bg); color: #fff; font-size: 13.5px; font-weight: 700; padding: 11px 18px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,.22); opacity: 0; transition: opacity .25s, transform .25s; z-index: 9999; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 공유 시트 — 카드 미리보기 + 카톡/이미지/스토리/링크 */
.share-ov { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(10,14,18,.5); opacity: 0; transition: opacity .22s; }
.share-ov.show { opacity: 1; }
.share-sheet { width: 100%; max-width: var(--maxw); background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 8px 18px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.28);
  transform: translateY(16px); transition: transform .24s cubic-bezier(.2,.8,.25,1); max-height: 92vh; overflow-y: auto; }
.share-ov.show .share-sheet { transform: translateY(0); }
.share-grip { width: 38px; height: 4px; border-radius: 999px; background: var(--line); margin: 8px auto 6px; }
.share-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 12px; }
.share-head strong { font-size: 17px; }
.share-x { border: none; background: none; font-size: 16px; color: var(--weak); cursor: pointer; padding: 6px 8px; line-height: 1; border-radius: 8px; }
.share-x:hover { background: var(--teal-tint); }
.share-preview { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--teal-tint);
  aspect-ratio: 1200 / 630; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.share-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.share-acts { display: flex; flex-direction: column; gap: 8px; }
.share-act { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; cursor: pointer;
  font: inherit; color: var(--ink); transition: background .12s, border-color .12s, transform .06s; }
.share-act:hover { background: var(--teal-tint); }
.share-act:active { transform: scale(.99); }
.share-act-ic { flex: none; width: 22px; height: 22px; color: var(--weak); display: flex; }
.share-act-ic svg { width: 22px; height: 22px; }
.share-act-tx { display: flex; flex-direction: column; gap: 1px; }
.share-act-tx strong { font-size: 15px; font-weight: 700; }
.share-act-sub { font-size: 12.5px; color: var(--weak); }
.share-act.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.share-act.primary:hover { filter: brightness(1.03); background: var(--teal); }
.share-act.primary .share-act-ic, .share-act.primary .share-act-sub { color: rgba(255,255,255,.9); }
.share-foot { text-align: center; font-size: 12.5px; margin-top: 12px; }

/* 수정/삭제 버튼 + 삭제된 댓글 */
.da-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.comm-edit { font: inherit; font-size: 12.5px; font-weight: 700; color: var(--weak);
  background: none; border: none; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.comm-edit:hover { color: var(--teal-pressed); background: var(--field); }
.comm-edit.sm { font-size: 11.5px; padding: 2px 5px; }
.edited-tag { font-size: 11px; color: var(--disabled); }
.cmt-edit { margin: 6px 0 2px; }
.cmt-edit .voice-textarea { min-height: 64px; }
.cmt-edit .comm-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.btn-soft { background: var(--field); color: var(--ink); border: 1px solid var(--border); }
.share-result-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 10px; font-weight: 800; }
.share-result-btn:hover { border-color: var(--teal); color: var(--teal-pressed); }
.share-result-btn .sr-ico { display: inline-flex; width: 18px; height: 18px; }
.share-result-btn .sr-ico svg { width: 18px; height: 18px; }
.comm-del { font: inherit; font-size: 12.5px; font-weight: 700; color: var(--weak);
  background: none; border: none; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.comm-del:hover { color: #EF4444; background: rgba(239,68,68,.08); }
.comm-del.sm { font-size: 11.5px; padding: 2px 5px; }
.cmt-item.is-deleted { opacity: 1; }
.avatar.avatar-del { background: var(--divider) !important; color: var(--disabled); }
.cmt-deleted { font-size: 13.5px; color: var(--disabled); font-style: italic; padding: 3px 0; }

/* 이미지 첨부 */
.feed-img { margin-top: 8px; width: 100%; max-width: 320px; max-height: 220px; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--divider); background: var(--field); }
.detail-img { display: block; margin: 12px 0 4px; width: 100%; max-height: 70vh; object-fit: contain;
  border-radius: 14px; border: 1px solid var(--divider); background: var(--field); }
.pic-row { margin-top: 14px; }
.pic-btn { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13.5px; font-weight: 700;
  color: var(--teal-pressed); background: var(--field); border: 1.5px dashed var(--border); border-radius: 12px;
  padding: 10px 16px; cursor: pointer; }
.pic-btn[disabled] { opacity: .5; }
.pic-ico { display: inline-flex; } .pic-ico svg { width: 18px; height: 18px; }
.img-preview { position: relative; margin-top: 12px; width: fit-content; }
.img-preview-img { max-width: 220px; max-height: 220px; border-radius: 12px; border: 1px solid var(--divider); display: block; }
.img-remove { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 2px solid var(--surface, #fff); cursor: pointer; font-size: 12px; line-height: 1; }

/* 스크랩 버튼 (상세) */
.bm-btn { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 14px; font-weight: 700;
  color: var(--weak); background: none; border: 1.5px solid var(--border); border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.bm-ico { display: inline-flex; } .bm-ico svg { width: 17px; height: 17px; }
.bm-btn.on { color: var(--teal-pressed); border-color: var(--teal); background: var(--field); }
.bm-btn.on .bm-ico svg { fill: var(--teal-pressed); stroke: var(--teal-pressed); }

/* 상단 우측 액션 + 알림 뱃지 */
.comm-top-actions { display: flex; align-items: center; gap: 2px; }
.comm-bell { position: relative; }
.comm-badge { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px;
  box-sizing: border-box; border-radius: 999px; background: #EF4444; color: #fff; font-size: 10px; font-weight: 800;
  line-height: 16px; text-align: center; border: 1.5px solid var(--surface, #fff); }

/* 알림 목록 */
.alert-list { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.alert-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit;
  background: var(--field); border: 1px solid var(--divider); border-radius: 14px; padding: 14px; cursor: pointer; }
.alert-item:hover { border-color: var(--border); }
.alert-ico { display: inline-flex; width: 34px; height: 34px; flex: none; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface, #fff); color: var(--teal-pressed); }
.alert-item.alert-like .alert-ico { color: #EF4444; }
.alert-ico svg { width: 18px; height: 18px; }
.alert-main { min-width: 0; }
.alert-text { font-size: 14px; font-weight: 800; color: var(--ink); }
.alert-prev { font-size: 12.5px; color: var(--weak); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 떠 있는 글쓰기 버튼 */
.comm-fab { position: fixed; right: max(18px, calc((100vw - var(--maxw)) / 2 + 18px));
  bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 20;
  display: inline-flex; align-items: center; gap: 7px; font: inherit; font-weight: 800; font-size: 14.5px; cursor: pointer;
  color: #fff; background: var(--teal-pressed); border: none; border-radius: 999px; padding: 14px 19px;
  box-shadow: 0 6px 20px rgba(2,132,199,.35); }
.comm-fab:hover { background: var(--teal-deep); }
.comm-fab:active { transform: scale(.96); }
.fab-ico { display: inline-flex; } .fab-ico svg { width: 19px; height: 19px; }

/* ── 글쓰기 채팅형 (compose) ── */
.compose-screen { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.compose-body { flex: 1; overflow-y: auto; padding: 24px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.compose-guide { display: flex; align-items: center; gap: 12px; background: var(--surface-variant, var(--field)); border-radius: 14px; padding: 18px 20px; max-width: 340px; }
.compose-guide-ico { flex: none; } .compose-guide-ico svg { width: 28px; height: 28px; color: var(--teal); }
.compose-guide-text { font-size: 14px; color: var(--text); line-height: 1.5; }
.compose-nick-row { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 340px; }
.compose-nick { flex: 1; font: inherit; font-size: 15px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); }
.compose-meta-label { font-size: 12px; font-weight: 700; color: var(--weak); white-space: nowrap; min-width: 36px; }
.compose-meta { padding: 8px 12px; border-top: 1px solid var(--divider); display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.compose-meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.compose-meta .chip-flow { gap: 6px; }
.compose-meta .chip { font-size: 12px; padding: 4px 10px; }
.compose-rating { padding: 4px 0 2px; }
.compose-preview { padding: 6px 12px; border-top: 1px solid var(--divider); }
.compose-preview .img-preview-img { height: 60px; border-radius: 8px; }
.compose-bar { display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--divider); background: var(--surface); }
.compose-input { flex: 1; font: inherit; font-size: 15px; border: 1.5px solid var(--border); border-radius: 20px; padding: 10px 16px; resize: none; overflow: hidden; max-height: 160px; background: var(--field); color: var(--ink); line-height: 1.4; }
.compose-input:focus { border-color: var(--teal); outline: none; }
.compose-meta-toggle, .compose-pic { flex: none; width: 38px; height: 38px; border-radius: 50%; border: none; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--weak); }
.compose-meta-toggle:hover, .compose-pic:hover { background: var(--field); color: var(--ink); }
.compose-meta-toggle.on { color: var(--teal); }
.compose-meta-toggle svg, .compose-pic svg { width: 20px; height: 20px; }
.compose-send { flex: none; width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--teal); display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; }
.compose-send:hover { background: var(--teal-pressed); }
.compose-send:disabled { opacity: .4; cursor: not-allowed; }
.compose-send svg { width: 18px; height: 18px; }
.compose-board-tag { font-size: 11px; font-weight: 700; background: var(--teal-tint); color: var(--teal-pressed); padding: 3px 8px; border-radius: 999px; }

/* 상세 */
.comm-detail { padding: 6px 4px 16px; border-bottom: 8px solid var(--bg); margin: 0 -4px 14px; padding-left: 4px; padding-right: 4px; }
.detail-author { display: flex; align-items: center; gap: 11px; }
.da-text { flex: 1; min-width: 0; }
.da-nick { font-size: 15px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.da-meta { font-size: 12.5px; color: var(--weak); margin-top: 2px; }
.comm-detail-body { color: var(--ink); font-size: 16px; line-height: 1.75; margin-top: 16px; white-space: pre-wrap; word-break: break-word; }
.comm-report { background: none; border: none; cursor: pointer; font: inherit; font-size: 12px; color: var(--weak); text-decoration: underline; padding: 4px; flex-shrink: 0; }
.comm-report.sm { margin-left: auto; font-size: 11.5px; padding: 0; }

/* 댓글 */
.cmt-head { font-size: 14px; font-weight: 800; color: var(--ink); margin: 4px 0 12px; }
.comm-comments { display: flex; flex-direction: column; }
.cmt-empty { color: var(--weak); font-size: 13.5px; padding: 6px 0 14px; }
.cmt-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--divider); }
.cmt-main { flex: 1; min-width: 0; }
.cmt-meta { display: flex; align-items: center; gap: 5px; }
.cmt-nick { font-size: 13px; font-weight: 800; color: var(--ink); }
.cmt-time { font-size: 12px; color: var(--weak); }
.cmt-body { color: var(--text); font-size: 14px; line-height: 1.6; margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.cmt-item .avatar { width: 32px; height: 32px; font-size: 14px; }

/* 폼 (댓글/글쓰기 공용) */
.comm-form { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.comm-form-actions { display: flex; justify-content: flex-end; }
.comm-form-actions .btn { padding: 11px 20px; }
.comm-nick-input { font: inherit; font-size: 14px; color: var(--ink); background: var(--field); border: 1.5px solid transparent; border-radius: var(--radius-sm); padding: 11px 14px; outline: none; }
.comm-nick-input.wide { width: 100%; box-sizing: border-box; }
.comm-nick-input:focus { border-color: var(--teal); background: var(--surface); }
.comm-form-row { display: flex; }
.comm-form-row .comm-nick-input { flex: 0 0 160px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* 스켈레톤 로딩 */
.comm-skel { display: flex; flex-direction: column; }
.skel-row { display: flex; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--divider); }
.skel-av { width: 38px; height: 38px; border-radius: 50%; background: var(--divider); flex-shrink: 0; }
.skel-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-top: 3px; }
.skel-l { height: 11px; border-radius: 6px; background: var(--divider); }
.skel-l.w30 { width: 30%; } .skel-l.w50 { width: 50%; } .skel-l.w90 { width: 90%; }
@media (prefers-reduced-motion: no-preference) {
  .skel-av, .skel-l { animation: skelPulse 1.3s ease-in-out infinite; }
}
@keyframes skelPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ── 히어로 CTA 그룹 ── */
.hero-cta { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 0 auto; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-pressed); }
.resume-link {
  display: inline-block; margin-top: 16px; background: none; border: none; cursor: pointer;
  color: var(--weak); font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: underline;
}
.resume-link:hover { color: var(--teal-pressed); }

/* ── 상세: 콜드 CTA(프로필 미입력) ── */
.detail-headtext { flex: 1; min-width: 0; }
.cold-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.cold-cta .btn { padding: 12px 18px; font-size: 14px; }
.tag-flow { margin-top: 14px; }

/* ── 합격선 조회 ── */
.cut-intro { color: var(--weak); font-size: 14px; margin: 4px 0 16px; line-height: 1.6; }
.search-wrap {
  display: flex; align-items: center; gap: 8px; background: var(--field);
  border: 1.5px solid transparent; border-radius: var(--radius-sm); padding: 0 14px; margin-bottom: 12px;
}
.search-wrap:focus-within { border-color: var(--teal); background: var(--surface); }
.search-ico { color: var(--weak); display: inline-flex; }
.search-ico svg { width: 18px; height: 18px; }
.search-input { flex: 1; border: none; background: transparent; font: inherit; font-size: 15px; color: var(--ink); padding: 13px 0; outline: none; }
.sort-flow { margin-top: 8px; }
.cut-count { font-size: 13px; font-weight: 700; color: var(--weak); margin: 14px 0 10px; }
.cut-list { display: flex; flex-direction: column; gap: 10px; }

.cut-card { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.cut-card-link { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .05s; }
.cut-card-link:hover { border-color: var(--teal); box-shadow: var(--shadow-md, 0 6px 18px rgba(0,0,0,.08)); }
.cut-card-link:active { transform: scale(.995); }
.cut-name { display: flex; align-items: center; gap: 4px; }
.cut-chev { color: var(--disabled); font-size: 18px; line-height: 1; font-weight: 400; }
.cut-chev svg { width: 16px; height: 16px; vertical-align: middle; }

/* 결과: 다른 특기 둘러보기(172 확장) */
.rec-more { margin-top: 26px; }
.rec-more-title { margin-bottom: 4px; }
.rec-more-sub { color: var(--weak); font-size: 13px; margin: 0 0 12px; line-height: 1.5; }
.spec-grid { display: flex; flex-direction: column; gap: 8px; }
.spec-chip { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit;
  background: var(--surface); border: 1px solid var(--divider); border-radius: 14px; padding: 13px 15px; cursor: pointer;
  transition: border-color .12s; }
.spec-chip:hover { border-color: var(--teal); }
.spec-chip-main { flex: 1; min-width: 0; }
.spec-chip-name { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.spec-chip-sub { font-size: 12px; color: var(--weak); margin-top: 2px; }
.spec-chip-score { font-size: 20px; font-weight: 800; flex: none; }
.spec-recent { margin-bottom: 10px; }
.cut-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cut-titles { min-width: 0; }
.cut-tagrow { display: flex; align-items: center; gap: 6px; }
.branch-tag { background: var(--teal-tint); color: var(--teal-pressed); font-weight: 700; font-size: 11.5px; padding: 3px 7px; border-radius: 6px; }
.branch-tag.nco { background: var(--warn-tint, rgba(217,119,6,0.12)); color: var(--warn, #b45309); }
/* ── 간부 종합 가이드 ── */
.guide-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guide-vs-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.guide-vs-t { font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.guide-vs-card .reform-list { margin: 0; }
.guide-paths { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
/* .guide-paths로 스코프 — 아래쪽 leader용 .guide-card(teal)와의 클래스명 충돌 회피 */
.guide-paths .guide-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0; }
.guide-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.guide-name { font-size: 16px; font-weight: 800; color: var(--ink); }
.cut-group { color: var(--weak); font-size: 12px; }
.cut-name { font-size: 18px; font-weight: 800; color: var(--ink); margin-top: 5px; }
.cut-recent { text-align: right; flex-shrink: 0; }
.cut-recent-label { color: var(--weak); font-size: 11.5px; }
.cut-recent-num { font-size: 24px; font-weight: 800; line-height: 1.1; }

.range-bar { position: relative; height: 10px; margin: 14px 0 10px; }
.range-track { position: absolute; inset: 0; background: rgba(23,32,42,.08); border-radius: 999px; }
.range-span { position: absolute; top: 0; height: 10px; background: var(--teal-tint-strong); border-radius: 999px; }
.range-marker { position: absolute; top: -1px; width: 12px; height: 12px; margin-left: -6px; background: var(--teal); border: 2px solid #fff; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }

.cut-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cut-foot > span:first-child { color: var(--weak); font-size: 13px; }
.diff-tag { font-weight: 800; font-size: 12.5px; }
.cut-meta { color: var(--disabled); font-size: 11.5px; margin-top: 6px; overflow-wrap: anywhere; line-height: 1.4; }
.badge-live { background: var(--teal); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.cut-live { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--teal); font-size: 12px; }
.cut-live strong { color: var(--teal); }
.cut-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 var(--teal); animation: cutLivePulse 1.8s ease-out infinite; flex: none; }
@keyframes cutLivePulse { 0% { box-shadow: 0 0 0 0 rgba(56,189,248,0.5); } 70% { box-shadow: 0 0 0 6px rgba(56,189,248,0); } 100% { box-shadow: 0 0 0 0 rgba(56,189,248,0); } }

/* ── 홈 도구 카드(클릭형) ── */
.feature-card.tappable { cursor: pointer; text-align: left; font: inherit; border: 1px solid var(--divider); transition: box-shadow .15s, transform .08s; }
.feature-card.tappable:hover { box-shadow: var(--shadow); border-color: var(--teal); }
.feature-card.tappable:active { transform: scale(.99); }
.feature-card.wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; text-align: left; }
.feature-card.wide .feature-emoji { font-size: 26px; }
.feature-card.wide .feature-title { margin-top: 0; }

/* ── 실시간 경쟁률 ── */
.comp-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius); padding: 15px 16px; box-shadow: var(--shadow-sm); }
.comp-name { font-weight: 800; color: var(--ink); font-size: 15px; }
.comp-meta { color: var(--weak); font-size: 12.5px; margin-top: 3px; }
.comp-rate { font-weight: 800; color: var(--teal-pressed); font-size: 22px; white-space: nowrap; }
.comp-rate span { font-size: 13px; color: var(--weak); font-weight: 700; }
.comp-rate-pre { font-size: 15px; color: var(--weak); }
.comp-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; position: relative; }
.comp-card.tappable { cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .06s; }
.comp-card.tappable:hover { border-color: var(--teal); box-shadow: 0 4px 16px rgba(56,189,248,.14); }
.comp-card.tappable:active { transform: scale(.995); }
.comp-card.tappable:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.comp-share-ic { width: 15px; height: 15px; color: var(--weak); opacity: .5; }
.comp-share-ic svg { width: 15px; height: 15px; }
.comp-card.tappable:hover .comp-share-ic { color: var(--teal-pressed); opacity: 1; }
.comp-share-hint { font-size: 12.5px; margin: 2px 0 8px; }
.job-card { text-decoration: none; }
.job-card .comp-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-go { font-size: 12.5px; font-weight: 800; color: var(--teal-pressed); white-space: nowrap; }
.comp-dday { font-size: 11.5px; font-weight: 800; color: var(--teal-pressed); background: var(--teal-tint);
  border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.comp-dday.urgent { color: #fff; background: var(--danger); }
.comp-dday.st-pre { color: #7a4d00; background: #ffe9bd; }
.comp-dday.st-closed { color: var(--weak); background: var(--surface-variant); }
.comp-period { margin-top: 2px; }
.comp-sched { margin-top: 2px; color: var(--accent); font-size: .82em; }
.comp-rate-closed { color: var(--weak); }
.comp-past-head { margin: 22px 2px 10px; font-size: 13.5px; font-weight: 800; color: var(--weak); border-top: 1.5px dashed var(--border); padding-top: 16px; }

/* 상태 탭 (접수 중 / 접수 예정 / 마감) */
.comp-status-tabs { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comp-status-tab { border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 700; padding: 7px 14px; border-radius: 20px; white-space: nowrap; cursor: pointer; transition: all .15s; }
.comp-status-tab.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.comp-status-tab.tab-open:not(.on) { border-color: #10B981; color: #059669; }
.comp-status-tab.tab-closed:not(.on) { border-color: #9CA3AF; color: #6B7280; }
.comp-status-tab.empty { opacity: .45; }
@media (prefers-color-scheme:dark) {
  .comp-status-tab.tab-open:not(.on) { color: #34D399; border-color: #34D399; }
  .comp-status-tab.tab-upcoming:not(.on) { color: #FBBF24; border-color: #FBBF24; }
  .comp-status-tab.tab-closed:not(.on) { color: #9CA3AF; border-color: #6B7280; }
}
:root[data-theme="dark"] .comp-status-tab.tab-open:not(.on) { color: #34D399; border-color: #34D399; }
:root[data-theme="dark"] .comp-status-tab.tab-upcoming:not(.on) { color: #FBBF24; border-color: #FBBF24; }
:root[data-theme="dark"] .comp-status-tab.tab-closed:not(.on) { color: #9CA3AF; border-color: #6B7280; }

/* 상태별 섹션 힌트 */
.comp-section-hint { font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 10px; margin-bottom: 6px; }
.comp-section-hint.open { background: #ECFDF5; color: #065F46; }
.comp-section-hint.upcoming { background: #FFFBEB; color: #92400E; }
.comp-section-hint.closed { background: var(--field); color: var(--weak); }
@media (prefers-color-scheme:dark) {
  .comp-section-hint.open { background: rgba(16,185,129,.12); color: #6EE7B7; }
  .comp-section-hint.upcoming { background: rgba(245,158,11,.12); color: #FCD34D; }
}
:root[data-theme="dark"] .comp-section-hint.open { background: rgba(16,185,129,.12); color: #6EE7B7; }
:root[data-theme="dark"] .comp-section-hint.upcoming { background: rgba(245,158,11,.12); color: #FCD34D; }

/* 전체 탭: 상태 그룹 헤더 */
.comp-group-head { margin: 16px 0 8px; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.comp-group-head:first-child { margin-top: 4px; }
.comp-group-head.open { background: #ECFDF5; color: #065F46; }
.comp-group-head.upcoming { background: #FFFBEB; color: #92400E; }
.comp-group-head.closed { background: var(--field); color: var(--weak); }
.comp-group-cnt { font-weight: 600; }
.comp-group-desc { font-weight: 400; font-size: 12.5px; }
@media (prefers-color-scheme:dark) {
  .comp-group-head.open { background: rgba(16,185,129,.1); color: #6EE7B7; }
  .comp-group-head.upcoming { background: rgba(245,158,11,.1); color: #FCD34D; }
}
:root[data-theme="dark"] .comp-group-head.open { background: rgba(16,185,129,.1); color: #6EE7B7; }
:root[data-theme="dark"] .comp-group-head.upcoming { background: rgba(245,158,11,.1); color: #FCD34D; }

.comp-summary { font-size: 12.5px; margin: 2px 0 8px; }

/* ── 내 합격 가능성(특기 상세) ── */
.plk-intro { color: var(--weak); font-size: 13px; margin: 0 0 10px; }
.plk-row { margin-bottom: 4px; }
.plk-score { width: 100%; }
.plk-result { margin-top: 12px; border: 2px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.plk-line { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 15px; color: var(--ink); }
.plk-verdict { text-align: center; font-weight: 800; font-size: 15px; margin-top: 8px; }
.plk-out .hint { margin-top: 8px; }
.plk-live { margin-top: 10px; }
.plk-live-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--weak); }
.plk-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.plk-dday { font-weight: 800; color: var(--teal-pressed); }

/* ── 계산기 ── */
.calc-head { margin-bottom: 8px; }
.calc-switch { display: flex; align-items: center; gap: 10px; margin: 18px 0 4px; cursor: pointer; font-size: 14.5px; color: var(--text); font-weight: 600; }
.rel-flow { margin-top: 8px; }
.cbox { width: 24px; height: 24px; flex-shrink: 0; border-radius: 7px; border: 1.5px solid var(--border); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; cursor: pointer; }
.cbox.on { background: var(--teal); border-color: var(--teal); }
.calc-check-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 13px 16px; cursor: pointer; }
.calc-check-row .option-title { flex: 1; }
.bonus-pt { color: var(--teal-pressed); font-weight: 800; font-size: 13px; }

.calc-result { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius); padding: 18px; margin-top: 22px; box-shadow: var(--shadow-sm); }
.calc-total-row { display: flex; align-items: flex-end; justify-content: space-between; }
.calc-total-label { font-weight: 800; color: var(--ink); font-size: 15px; }
.calc-total-sub { color: var(--weak); font-size: 12.5px; margin-top: 2px; }
.calc-total-num { font-weight: 800; color: var(--teal-pressed); }
.calc-total-num > span:first-child { font-size: 34px; }
.calc-total-max { font-size: 15px; color: var(--weak); }
.calc-breakdown { display: flex; gap: 8px; margin-top: 14px; }
.bd-item { flex: 1; background: var(--field); border-radius: 10px; padding: 10px; text-align: center; }
.bd-label { font-size: 12px; color: var(--weak); }
.bd-pts { font-size: 16px; font-weight: 800; color: var(--ink); margin-top: 2px; }

.cut-recommend { margin-top: 22px; }
.cut-compare { margin-top: 22px; }
.cut-select { width: 100%; font: inherit; font-size: 15px; padding: 13px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); }
.compare-result { margin-top: 14px; border: 2px solid var(--border); border-radius: var(--radius); padding: 16px; }
.compare-line { display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 800; color: var(--ink); font-size: 17px; }
.compare-vs { color: var(--weak); font-size: 13px; font-weight: 600; }
.compare-verdict { text-align: center; font-weight: 800; font-size: 15px; margin-top: 8px; }

/* ── 실제 병무청 배점 그라운딩 ── */
.bj-block { margin-top: 18px; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.bj-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.bj-badge { flex: none; display: inline-block; background: var(--teal); color: #0C1929; font-weight: 800; font-size: 11px; padding: 3px 8px; border-radius: 999px; margin-top: 2px; }
.bj-title { font-weight: 800; color: var(--ink); font-size: 15.5px; }
.bj-sub { color: var(--weak); font-size: 12.5px; margin-top: 2px; }
.bj-tbl-label { font-weight: 700; color: var(--ink); font-size: 13px; margin: 14px 0 6px; }
.bj-tbl { display: flex; flex-direction: column; gap: 4px; }
.bj-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 11px; border-radius: 9px; background: var(--bg); font-size: 13.5px; }
.bj-row-k { color: var(--ink); }
.bj-row-v { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.bj-row.on { background: var(--teal-tint); outline: 1.5px solid var(--teal); }
.bj-row.on .bj-row-k { color: var(--teal-pressed); font-weight: 700; }
.bj-row.on .bj-row-v { color: var(--teal-pressed); }
.bj-real { margin-top: 16px; border: 2px solid var(--border); border-radius: var(--radius); padding: 14px; }
.bj-real-row { display: flex; align-items: center; justify-content: space-between; }
.bj-real-label { font-weight: 700; color: var(--ink); font-size: 13.5px; }
.bj-real-num { font-weight: 900; color: var(--ink); font-size: 22px; font-variant-numeric: tabular-nums; }
.bj-real-bd { color: var(--weak); font-size: 12.5px; margin-top: 4px; }
.bj-real-verdict { font-weight: 800; font-size: 14px; margin-top: 8px; }
.bj-disc { margin-top: 12px; }

/* ── 합격예측 결과카드(공유) ── */
.predict-card { margin-top: 16px; border: 2px solid var(--border); border-radius: var(--radius); padding: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.predict-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.predict-q { font-weight: 800; color: var(--ink); font-size: 15.5px; }
.predict-grade-badge { color: #fff; font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.predict-line { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; font-weight: 800; color: var(--ink); font-size: 16px; }
.predict-diff { font-weight: 900; font-variant-numeric: tabular-nums; }
.predict-card .share-result-btn { margin-top: 12px; }

/* ── 전역 D-day 공유카드 + 곰신 ── */
.gs-card { margin-top: 16px; border-radius: var(--radius); padding: 28px 24px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #0284C7 0%, #38BDF8 100%); box-shadow: 0 6px 24px rgba(2,132,199,.22); }
.gs-card.gs-NAVY { background: linear-gradient(135deg, #1e4fa0 0%, #2f86d8 100%); box-shadow: 0 10px 30px rgba(30,79,160,.28); }
.gs-card.gs-AIRFORCE { background: linear-gradient(135deg, #146b8c 0%, #29a6c9 100%); box-shadow: 0 10px 30px rgba(20,107,140,.28); }
.gs-card.gs-MARINE { background: linear-gradient(135deg, #8a1f1f 0%, #c63d3d 100%); box-shadow: 0 10px 30px rgba(138,31,31,.28); }
.gs-cap { font-size: 13px; opacity: .9; font-weight: 700; }
.gs-big { font-size: 64px; font-weight: 900; line-height: 1.05; letter-spacing: -2px; margin-top: 6px; }
.gs-sub { font-size: 17px; font-weight: 700; opacity: .96; margin-top: 4px; }
.gs-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.28); margin: 16px auto 0; max-width: 280px; overflow: hidden; }
.gs-bar-fill { height: 100%; background: #fff; border-radius: 999px; }
.gs-meta { font-size: 12.5px; opacity: .9; margin-top: 10px; }

/* ── 맞춤 합격 코치(로컬 분석) ── */
.coach-block { margin-top: 22px; }
.coach-label { display: flex; align-items: center; gap: 8px; }
.coach-label .field-label { margin: 22px 0 8px; }
.coach-ai { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #38BDF8, #6366F1); color: #fff; margin-top: 14px; }
.coach-ai svg { width: 16px; height: 16px; }
.coach-answer { margin-top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.coach-headline { color: var(--ink); font-size: 14.5px; font-weight: 700; line-height: 1.6; }
.coach-tips { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.coach-tip { display: flex; align-items: flex-start; gap: 11px; }
.coach-tip-n { flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; background: var(--teal-tint); color: var(--teal-pressed); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.coach-tip-t { font-weight: 800; color: var(--ink); font-size: 14px; }
.coach-tip-d { color: var(--weak); font-size: 12.5px; line-height: 1.5; margin-top: 2px; }
.coach-close { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--divider); color: var(--text); font-size: 13px; line-height: 1.6; }
.coach-note { margin-top: 12px; background: var(--warn-tint); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--text); font-size: 13.5px; }
.ai-note { margin-top: 8px; color: var(--weak); font-size: 12px; line-height: 1.5; }
.ai-note a { color: var(--teal-pressed); }
@media (prefers-reduced-motion: no-preference) {
  .coach-answer { animation: fadeUp .38s cubic-bezier(.22,.61,.36,1) both; }
  .coach-tip { animation: fadeUp .42s cubic-bezier(.22,.61,.36,1) both; }
  .coach-tip:nth-child(2) { animation-delay: .07s; }
  .coach-tip:nth-child(3) { animation-delay: .14s; }
}

/* ── 의견·불만 수집 ── */
.voice-cta { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 22px;
  background: var(--teal-tint); border: 1px solid var(--teal-tint-strong); border-radius: var(--radius);
  padding: 15px 16px; cursor: pointer; font: inherit; }
.voice-cta-emoji { flex-shrink: 0; display: inline-flex; color: var(--teal-pressed); }
.voice-cta-emoji svg { width: 22px; height: 22px; }
.voice-cta-text { flex: 1; min-width: 0; }
.voice-cta-t { font-weight: 800; color: var(--teal-pressed); font-size: 14.5px; }
.voice-cta-d { color: var(--text); font-size: 12.5px; margin-top: 2px; }
.voice-textarea { width: 100%; box-sizing: border-box; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--field); padding: 13px 14px; font: inherit; font-size: 14.5px; color: var(--ink); resize: vertical; line-height: 1.6; }
.voice-textarea:focus { outline: none; border-color: var(--teal); background: var(--surface); }
.voice-list { display: flex; flex-direction: column; gap: 8px; }
.voice-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.voice-meta { font-size: 12px; color: var(--teal-pressed); font-weight: 700; }
.voice-body { font-size: 13.5px; color: var(--text); margin-top: 4px; line-height: 1.55; white-space: pre-line; }

/* ── 내 길 찾기 진단 ── */
.pf-summary { margin: 20px 0 4px; background: var(--teal-tint); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14.5px; color: var(--ink); line-height: 1.55; }
.pf-summary strong { color: var(--teal-pressed); }
.pf-list { display: flex; flex-direction: column; gap: 9px; }
.pf-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; }
.pf-card.yes { cursor: pointer; border-color: var(--teal); }
.pf-card.maybe { cursor: pointer; }
.pf-card.no { opacity: .72; }
.pf-card.static { cursor: default; }
.pf-card.fit { box-shadow: 0 0 0 2px var(--teal-tint) inset; }
.pf-card-main { flex: 1; min-width: 0; }
.pf-card-top { display: flex; align-items: center; gap: 8px; }
.pf-name { font-weight: 800; color: var(--ink); font-size: 14.5px; }
.pf-badge { flex-shrink: 0; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.pf-badge.yes { background: var(--teal-pressed); color: #fff; }
.pf-badge.maybe { background: var(--warn-tint); color: var(--warn-text); }
.pf-badge.no { background: var(--field); color: var(--weak); }
.pf-one { color: var(--text-soft); font-size: 12.5px; margin-top: 2px; }
.pf-why { color: var(--weak); font-size: 12.5px; margin-top: 4px; }
.pf-card.yes .pf-why { color: var(--teal-pressed); }
.pf-cta { margin-top: 22px; background: var(--surface-variant); border: 1px solid var(--divider); border-radius: var(--radius); padding: 16px; text-align: center; }
.pf-cta-t { font-weight: 700; color: var(--ink); margin-bottom: 10px; font-size: 14.5px; }

/* ── 병역 타임라인 ── */
.timeline { position: relative; margin-top: 8px; padding-left: 6px; }
.tl-item { position: relative; display: flex; gap: 14px; padding: 0 0 18px 18px; }
.tl-item::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: -4px; width: 2px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-dot { position: absolute; left: 0; top: 3px; width: 10px; height: 10px; border-radius: 999px;
  background: var(--surface); border: 2px solid var(--teal); z-index: 1; }
.tl-item.done .tl-dot { background: var(--teal); }
.tl-item.done::before { background: var(--teal-tint-strong); }
.tl-item.big .tl-dot { width: 13px; height: 13px; border-color: var(--teal-pressed); left: -1px; }
.tl-item.tl-rank .tl-dot { border-color: #8B5CF6; }
.tl-item.tl-rank .tl-t::before { content: "★ "; color: #8B5CF6; font-size: 11px; }
.tl-main { flex: 1; min-width: 0; }
.tl-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tl-t { font-weight: 700; color: var(--ink); font-size: 14.5px; }
.tl-item.big .tl-t { font-size: 16px; font-weight: 800; }
.tl-sub { color: var(--weak); font-size: 12.5px; margin-top: 2px; }
.tl-dday { flex-shrink: 0; font-weight: 800; font-size: 12px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tl-dday.up { background: var(--teal-tint); color: var(--teal-pressed); }
.tl-dday.now { background: var(--teal-pressed); color: #fff; }
.tl-dday.past { background: var(--field); color: var(--weak); }

/* ── 생애 4단계 허브 ── */
/* 내 병역 홈 (마이페이지) */
.me-banner { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--teal-tint); border: 1px solid var(--teal); border-radius: var(--radius);
  padding: 13px 16px; margin: 14px 0 4px; cursor: pointer; font: inherit; }
.me-banner-icon { font-size: 22px; }
.me-banner-text { flex: 1; }
.me-banner-t { font-weight: 800; font-size: 15px; color: var(--ink); }
.me-banner-d { font-size: 12.5px; color: var(--teal-text, #0a8f7d); font-weight: 600; }
.me-banner-arrow { color: var(--teal); font-size: 22px; font-weight: 700; }
.me-dday { display: block; width: 100%; text-align: center; cursor: pointer; font: inherit;
  background: var(--teal); border: none; border-radius: var(--radius); padding: 20px; margin: 4px 0 8px;
  box-shadow: 0 4px 16px rgba(56,189,248,.22); }
.me-dday-num { color: #fff; font-size: 32px; font-weight: 900; letter-spacing: -0.02em; }
.me-dday-sub { color: #fff; opacity: .92; font-size: 13px; font-weight: 600; margin-top: 2px; }
.btn-bookmark { width: 100%; margin: 4px 0 6px; }
.btn-bookmark.on { color: var(--teal-text, #0a8f7d); border-color: var(--teal); background: var(--teal-tint); }
.helper-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 30px; }
.helper-card { display: flex; flex-direction: column; gap: 3px; text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 14px; cursor: pointer; font: inherit; box-shadow: var(--shadow-sm); }
.helper-card:hover { border-color: var(--teal); }
.helper-icon { font-size: 22px; line-height: 1; margin-bottom: 4px; }
.helper-t { font-weight: 800; font-size: 14.5px; color: var(--ink); }
.helper-d { font-size: 12px; color: var(--weak); line-height: 1.45; }
@media (max-width: 340px) { .helper-grid { grid-template-columns: 1fr; } }
.stage-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.stage-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 16px 18px; cursor: pointer; font: inherit; box-shadow: var(--shadow-sm); }
.stage-num { flex-shrink: 0; width: 34px; height: 34px; border-radius: 999px; background: var(--teal-tint);
  color: var(--teal-pressed); font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.stage-body { flex: 1; min-width: 0; }
.stage-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.stage-title { font-weight: 800; color: var(--ink); font-size: 16px; }
.stage-age { font-size: 12px; color: var(--weak); background: var(--field); padding: 2px 8px; border-radius: 999px; }
.stage-tagline { color: var(--weak); font-size: 13px; margin-top: 3px; }
.stage-arrow { color: var(--disabled); font-size: 22px; flex-shrink: 0; }

/* ── 단계 허브 도구 목록 / 정보 페이지 ── */
.tool-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.tool-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 15px 16px; cursor: pointer; font: inherit; }
.tool-text { flex: 1; min-width: 0; }
.tool-t { font-weight: 700; color: var(--ink); font-size: 15px; }
.tool-d { color: var(--weak); font-size: 13px; margin-top: 2px; }
.tool-arrow { color: var(--disabled); font-size: 20px; flex-shrink: 0; }
.info-table { display: flex; flex-direction: column; gap: 8px; }
.info-row { display: grid; grid-template-columns: 40% 1fr; gap: 12px; padding: 11px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px; }
.info-k { font-weight: 700; color: var(--ink); }
.info-v { color: var(--text); }
.link-list { display: flex; flex-direction: column; gap: 8px; }
.link-row { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--teal-tint); color: var(--teal-pressed); border-radius: var(--radius-sm);
  padding: 13px 16px; font-weight: 700; font-size: 14px; text-decoration: none;
  border: none; width: 100%; text-align: left; font-family: inherit; cursor: pointer; }

/* ── 봉급·복무 혜택 ── */
.pay-table { display: flex; flex-direction: column; gap: 8px; }
.pay-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px; }
.pay-row.hi { background: var(--teal-tint); border-color: var(--teal); }
.pay-rank { font-weight: 800; color: var(--ink); }
.pay-bars { color: var(--text-soft); font-size: 12.5px; }
.pay-total { font-weight: 800; color: var(--teal-pressed); white-space: nowrap; }
.term-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.term-cell { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 6px; text-align: center; }
.term-svc { font-size: 12.5px; color: var(--text-soft); margin-bottom: 4px; }
.term-m { font-size: 16px; font-weight: 800; color: var(--ink); }
.reform-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--text); font-size: 13.5px; line-height: 1.55; }
.reform-list li::marker { color: var(--teal-pressed); }

.mma-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.mma-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.mma-kv { display: flex; gap: 6px; font-size: 13px; }
.mma-k { color: var(--text-soft); }
.mma-v { color: var(--ink); font-weight: 600; }

/* ── 카투사 ── */
.track-list { display: flex; flex-direction: column; gap: 10px; }
.track-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.track-card.pass { border-color: var(--success); background: var(--success-tint, #E1F7EC); }
.track-top { display: flex; align-items: center; justify-content: space-between; }
.track-name { font-weight: 800; color: var(--ink); font-size: 15px; }
.track-status { font-size: 12.5px; font-weight: 700; color: var(--weak); }
.track-status.ok { color: var(--success); }
.track-status.near { color: var(--warn-text); }
.track-meta { color: var(--weak); font-size: 13px; margin-top: 3px; }
.track-note { color: var(--text); font-size: 13px; margin-top: 6px; line-height: 1.5; }
.branch-cat { font-weight: 600; font-size: 11.5px; color: var(--weak); margin-left: 7px; padding: 1px 7px; border: 1px solid var(--border); border-radius: 999px; vertical-align: middle; }
.branch-mini { font-size: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.branch-mini:hover { border-color: var(--teal); }
.sel-card { display: block; width: 100%; text-align: left; cursor: pointer; font: inherit; }
.sel-card:hover { border-color: var(--teal); }
.sel-arrow { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--teal); }

.month-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.month-cell { background: var(--surface); border: 1px solid var(--divider); border-radius: 10px; padding: 10px 6px; text-align: center; }
.month-cell.best { border-color: var(--success); background: #E1F7EC; }
.month-m { font-size: 12px; color: var(--weak); }
.month-p { font-size: 17px; font-weight: 800; color: var(--teal-pressed); margin-top: 2px; }
.month-cell.best .month-p { color: var(--success); }
.month-r { font-size: 11px; color: var(--weak); margin-top: 1px; }

.lang-table { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-sm); overflow: hidden; }
.lang-row { display: flex; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--divider); font-size: 14px; color: var(--text); }
.lang-row:last-child { border-bottom: none; }
.lang-cut { font-weight: 800; color: var(--ink); }

/* ── 선택방식(점수형/추첨형) 안내 ── */
.sel-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm); }
.sel-note.sel-score { background: var(--teal-tint); }
.sel-note.sel-lottery { background: #FFF1E0; }
.sel-badge { flex-shrink: 0; font-weight: 800; font-size: 12.5px; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.sel-badge.sel-score { background: var(--surface); color: var(--teal-pressed); }
.sel-badge.sel-lottery { background: var(--surface); color: var(--warn-text); }
.sel-text { font-size: 13.5px; color: var(--text); line-height: 1.55; }
.cut-callout { margin-bottom: 14px; }
.cut-callout div { font-size: 13px !important; line-height: 1.6; }

/* ── 빈 상태 ── */
.empty-state { text-align: center; padding: 56px 20px; }
.empty-ico { width: 56px; height: 56px; margin: 0 auto; border-radius: 16px; background: var(--teal-tint); color: var(--teal-pressed); display: flex; align-items: center; justify-content: center; }
.empty-ico svg { width: 28px; height: 28px; }
.empty-title { font-weight: 800; color: var(--ink); font-size: 16px; margin-top: 14px; }
.empty-sub { color: var(--weak); font-size: 14px; margin-top: 4px; }

/* ════════════════════════════════════════════════════════════════════
   마이크로 인터랙션 — 은근하게 살아있는 움직임
   (움직임 최소화를 선호하는 사용자는 모두 자동 비활성화)
   ════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  /* 화면 진입: 살짝 떠오르며 나타남 */
  .hero, .feature-card, .section-title, .field-grid,
  .step-head, .calc-head, .rec-card, .track-card,
  .pay-row, .term-cell, .month-cell, .mma-card, .cut-card {
    animation: fadeUp .42s cubic-bezier(.22,.61,.36,1) both;
  }
  /* 그리드 항목은 차례로(스태거) 등장 — 은근한 리듬감 */
  .feature-grid .feature-card:nth-child(1) { animation-delay: .02s; }
  .feature-grid .feature-card:nth-child(2) { animation-delay: .06s; }
  .feature-grid .feature-card:nth-child(3) { animation-delay: .10s; }
  .feature-grid .feature-card:nth-child(4) { animation-delay: .14s; }
  .feature-grid .feature-card:nth-child(5) { animation-delay: .18s; }
  .feature-grid .feature-card:nth-child(6) { animation-delay: .22s; }
  .month-cell:nth-child(2n) { animation-delay: .05s; }
  .month-cell:nth-child(3n) { animation-delay: .09s; }

  /* 점수 막대: 0에서 차오름 */
  .bar-fill { animation: barGrow .6s cubic-bezier(.22,.61,.36,1) both; }
  /* 합격선 마커: 한 번 톡 튕기고 가만히 */
  .range-marker { animation: markerPop .45s cubic-bezier(.34,1.56,.64,1) both .15s; }

  /* 호버 가능한 기기에서만 살짝 떠오름(터치 sticky-hover 방지) */
  @media (hover: hover) {
    .feature-card.tappable, .rec-card, .field-chip, .mma-card {
      transition: box-shadow .18s ease, transform .18s cubic-bezier(.22,.61,.36,1), border-color .18s ease;
    }
    .feature-card.tappable:hover, .rec-card:hover { transform: translateY(-3px); }
    .field-chip:hover { transform: translateY(-1px); }
  }

  /* 선택 순간 톡 — 칩/옵션/체크 */
  .chip.on { animation: tapPop .22s cubic-bezier(.34,1.56,.64,1); }
  .cbox.on::after, .cbox.on { animation: tapPop .2s cubic-bezier(.34,1.56,.64,1); }
  .progress-dot.on { animation: tapPop .22s cubic-bezier(.34,1.56,.64,1); }

  /* 로딩 중 버튼: 은근한 호흡 */
  .btn[disabled] { animation: breathe 1.4s ease-in-out infinite; }

  /* 빈 상태 아이콘: 가만히 떠 있는 느낌 */
  .empty-ico { animation: floaty 3s ease-in-out infinite; }
}

/* 누름 피드백은 항상(빠르고 기능적이라 reduced-motion에서도 무방) */
.chip:active, .option-row:active, .field-chip:active, .icon-btn:active { transform: scale(.96); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes barGrow { from { width: 0; } }
@keyframes markerPop { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.25); opacity: 1; } 100% { transform: scale(1); } }
@keyframes tapPop { 0% { transform: scale(.9); } 55% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .62; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* 군적금 만기 시뮬레이터 */
.save-result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 16px 0 6px; box-shadow: var(--shadow-sm); }
.save-cap { font-size: 13px; font-weight: 700; color: var(--weak); }
.save-total { font-size: 30px; font-weight: 900; color: var(--teal-pressed); letter-spacing: -.5px; margin: 4px 0 14px; }
.save-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--field, #EEF2F4); }
.save-bar .sb { height: 100%; }
.sb-p { background: var(--teal); }
.sb-m { background: var(--success); }
.sb-i { background: var(--warn); }
.save-legend { margin-top: 14px; display: grid; gap: 9px; }
.save-legend .sl { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.save-legend .sl strong { margin-left: auto; color: var(--ink); font-weight: 800; }
.sl-dot { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }

/* 자대 후기 별점 */
.rating-stars { color: #F5A623; letter-spacing: 1px; font-size: 15px; }
.feed-rating { margin: 3px 0 2px; }
.detail-rating { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }
.detail-rating .rating-stars { font-size: 20px; }
.detail-rating-n { font-weight: 800; color: var(--ink); font-size: 15px; }
.star-input { display: flex; align-items: center; gap: 4px; margin: 2px 0 4px; }
.star-btn { background: none; border: none; padding: 2px; font-size: 28px; line-height: 1; cursor: pointer; color: var(--line); }
.star-btn.on { color: #F5A623; }
.star-hint { margin-left: 8px; font-size: 13px; color: var(--weak); font-weight: 700; }

/* 간부 도우미 — 면담 필수항목·위기신호 가이드 카드 */
.guide-card { background: var(--teal-tint); border: 1px solid var(--teal-tint-strong); border-radius: 14px; padding: 14px 16px; margin: 6px 0 14px; }
.guide-card.warn { background: #FEF2F2; border-color: #FBC9C9; }
.guide-title { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--teal-pressed); font-size: 14.5px; margin-bottom: 8px; }
.guide-card.warn .guide-title { color: #B42318; }
.guide-ico { display: inline-flex; }
.guide-ico svg { width: 18px; height: 18px; }
.guide-card.warn .guide-ico { color: #D92D20; }
.guide-list { margin: 0; padding-left: 20px; }
.guide-list li { font-size: 13.5px; color: var(--text); line-height: 1.6; margin: 2px 0; }
.guide-foot { margin-top: 10px; font-size: 12.5px; color: var(--weak); line-height: 1.55; }
.sign-rows { display: grid; gap: 7px; }
.sign-row { display: flex; gap: 8px; align-items: flex-start; }
.sign-k { flex-shrink: 0; min-width: 34px; font-weight: 800; font-size: 12px; color: #B42318; background: #FFE0E0; border-radius: 6px; padding: 2px 6px; text-align: center; }
.sign-v { font-size: 13px; color: var(--text); line-height: 1.5; }

/* 간부 도우미 — 면담 일정·알림 */
.sched-tools { margin: 4px 0 12px; }
.sched-notif { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13.5px; color: var(--teal-pressed); background: var(--teal-tint); border: 1px solid var(--teal-tint-strong); border-radius: 999px; padding: 8px 15px; cursor: pointer; }
.sched-notif.on { color: #067647; background: #ECFDF3; border-color: #ABEFC6; }
.sched-notif .guide-ico svg { width: 16px; height: 16px; }
.sched-banner { display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 11px 14px; margin: 4px 0 14px; font-size: 13.5px; line-height: 1.5; }
.sched-banner.due { background: #FEF2F2; border: 1px solid #FBC9C9; color: #7A271A; }
.sched-banner.ok { background: #ECFDF3; border: 1px solid #ABEFC6; color: #085D3A; }
.sched-list { display: grid; gap: 9px; margin-bottom: 16px; }
.sched-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: var(--card); }
.sched-main { min-width: 0; flex: 1; }
.sched-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sched-alias { font-weight: 800; font-size: 14.5px; color: var(--text); }
.sched-grp { font-size: 11.5px; font-weight: 800; border-radius: 6px; padding: 1px 7px; }
.sched-grp.g-도움 { color: #B42318; background: #FFE0E0; }
.sched-grp.g-배려 { color: #93370D; background: #FEF0C7; }
.sched-grp.g-일반 { color: #344054; background: #EAECF0; }
.sign-k.g-도움 { color: #B42318; background: #FFE0E0; }
.sign-k.g-배려 { color: #93370D; background: #FEF0C7; }
.sign-k.g-일반 { color: #344054; background: #EAECF0; }
.sched-due { font-size: 11.5px; font-weight: 800; border-radius: 6px; padding: 1px 7px; }
.sched-due.over { color: #fff; background: #D92D20; }
.sched-due.today { color: #fff; background: #DC6803; }
.sched-due.soon { color: #B54708; background: #FEF0C7; }
.sched-due.ok { color: #067647; background: #ECFDF3; }
.sched-sub { font-size: 12px; color: var(--weak); margin-top: 4px; line-height: 1.45; word-break: keep-all; }
.sched-btns { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.sched-act { font-size: 12px; font-weight: 700; color: var(--teal-pressed); background: var(--teal-tint); border: 1px solid var(--teal-tint-strong); border-radius: 8px; padding: 5px 10px; cursor: pointer; white-space: nowrap; }
.sched-act.del { color: var(--weak); background: #F4F4F5; border-color: var(--line); }
.sched-input { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 14.5px; font-family: inherit; margin-bottom: 4px; }
.sched-input:focus { outline: none; border-color: var(--teal); }

/* 면담 유형 템플릿 카드 */
.tpl-when { font-size: 12.5px; font-weight: 700; color: var(--teal-pressed); margin-bottom: 8px; }
.guide-card.warn .tpl-when { color: #B42318; }
.tpl-sub { font-size: 12px; font-weight: 800; color: var(--weak); margin: 8px 0 3px; letter-spacing: .02em; }
.guide-list.q li { color: var(--teal-pressed); }
.guide-card.warn .guide-list.q li { color: #B42318; }

/* 유형별 확인·기록 항목 — 체크리스트 표시 */
.guide-list.check { list-style: none; padding-left: 2px; }
.guide-list.check li { position: relative; padding-left: 22px; }
.guide-list.check li::before { content: '☐'; position: absolute; left: 0; top: -1px; color: var(--teal-pressed); font-weight: 700; }
.guide-card.warn .guide-list.check li::before { color: #B42318; }

/* 부조리 기록·신고 도우미 */
.report-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.report-link { font-size: 13px; font-weight: 700; color: var(--teal-pressed); background: var(--teal-tint); border: 1px solid var(--teal-tint-strong); border-radius: 999px; padding: 7px 13px; text-decoration: none; }
.report-count { font-size: 12.5px; color: var(--weak); margin-bottom: 8px; }
.report-list { margin-bottom: 8px; }
.report-item { border: 1px solid var(--line); border-left: 3px solid #D92D20; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: var(--card); }
.report-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.report-when { font-weight: 800; font-size: 13.5px; color: var(--text); }
.report-type { font-size: 11.5px; font-weight: 800; color: #B42318; background: #FFE0E0; border-radius: 6px; padding: 1px 7px; }
.report-item-head .sched-act { margin-left: auto; }
.report-meta { font-size: 12px; color: var(--weak); margin: 5px 0 3px; word-break: keep-all; }
.report-content { font-size: 13.5px; color: var(--text); line-height: 1.5; white-space: pre-wrap; }
.report-evid { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.report-evid-tag { font-size: 11px; font-weight: 700; color: #344054; background: #EAECF0; border-radius: 6px; padding: 1px 7px; }
.report-add { border: 1px solid var(--teal-tint-strong); background: var(--teal-tint); border-radius: 14px; padding: 12px 14px; margin: 6px 0 16px; }
.report-add-title { font-weight: 800; color: var(--teal-pressed); font-size: 14.5px; margin-bottom: 4px; }
.report-add .field-label:first-of-type { margin-top: 6px; }

/* 내 편 도우미 — 마음건강 자가체크 */
.check-q { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; margin-bottom: 9px; background: var(--card); }
.check-q-label { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.check-q .chip-flow { gap: 6px; }
.check-result { border-radius: 14px; padding: 14px 16px; }
.check-result.ok { background: #ECFDF3; border: 1px solid #ABEFC6; }
.check-result.mid { background: #FEF7E6; border: 1px solid #FCE3A8; }
.check-result.high { background: #FEF2F2; border: 1px solid #FBC9C9; }
.check-result-title { font-weight: 800; font-size: 15.5px; color: var(--text); margin-bottom: 4px; }
.check-result-msg { font-size: 13.5px; color: var(--text); line-height: 1.55; }
.check-result-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* 합격 부스터 — 점수 올리는 준비(자격증·어학·면허) 연결 */
.boost-block { margin: 18px 0 4px; background: linear-gradient(180deg, rgba(56,189,248,.08), rgba(56,189,248,.02)); border: 1px solid rgba(56,189,248,.22); border-radius: var(--radius); padding: 18px 16px 14px; }
.boost-head { margin: 0 2px 12px; }
.boost-badge { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: var(--teal-pressed); background: rgba(56,189,248,.14); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.boost-title { font-size: 16.5px; font-weight: 800; color: var(--ink); }
.boost-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.boost-list { display: flex; flex-direction: column; gap: 8px; }
.boost-card { display: flex; align-items: center; gap: 11px; padding: 12px; background: var(--card); border: 1px solid var(--line, #e7eceb); border-radius: 14px; text-decoration: none; color: inherit; transition: transform .08s ease, box-shadow .15s ease, border-color .15s ease; }
.boost-card:active { transform: scale(.99); }
.boost-card:hover { border-color: rgba(56,189,248,.5); box-shadow: 0 2px 10px rgba(56,189,248,.1); }
.boost-ic { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(56,189,248,.12); color: var(--teal-pressed); }
.boost-ic svg { width: 20px; height: 20px; }
.boost-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.boost-tag { font-size: 11px; font-weight: 700; color: var(--teal-pressed); }
.boost-t { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.boost-d { font-size: 12px; color: var(--muted); line-height: 1.45; }
.boost-gain { flex: 0 0 auto; align-self: flex-start; font-size: 11.5px; font-weight: 800; color: var(--teal-pressed); background: rgba(56,189,248,.1); border-radius: 8px; padding: 4px 8px; white-space: nowrap; }
.boost-disc { margin: 10px 2px 0; font-size: 11px; color: var(--muted); line-height: 1.5; }
.boost-disc a { color: var(--muted); text-decoration: underline; }

/* 홈 — 모집병 지원 전면 강조 패널 */
.home-apply { margin: 18px 0 6px; background: linear-gradient(180deg, rgba(2,132,199,.07), rgba(2,132,199,.02)); border: 1px solid rgba(2,132,199,.18); border-radius: 18px; padding: 16px 14px 14px; }
.home-apply-head { margin: 2px 4px 12px; }
.home-apply-badge { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: var(--teal-pressed); background: rgba(2,132,199,.12); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.home-apply-head h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--ink); }
.home-apply-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.home-apply .home-tools { margin: 0; }

/* AI 응답 마크다운 렌더링 (.md = ai-out / ai-bubble bot 공통) */
.md { white-space: normal; }
.md .md-h { font-weight: 800; line-height: 1.4; margin: 12px 0 6px; color: var(--ink); }
.md .md-h:first-child { margin-top: 0; }
.md .md-h1 { font-size: 17px; }
.md .md-h2 { font-size: 15.5px; }
.md .md-h3, .md .md-h4 { font-size: 14.5px; }
.md .md-p { margin: 7px 0; }
.md .md-p:first-child { margin-top: 0; }
.md .md-ul, .md .md-ol { margin: 6px 0; padding-left: 20px; }
.md .md-ul li, .md .md-ol li { margin: 3px 0; }
.md .md-ul li.md-sub { list-style: circle; margin-left: 14px; }
.md strong { font-weight: 800; }
.md code { background: rgba(0,0,0,.06); border-radius: 5px; padding: 1px 5px; font-size: 0.92em; }
.ai-bubble.bot.md { white-space: normal; }
.ai-bubble.bot.md .md-p:first-child { margin-top: 0; }
.ai-bubble.bot.md .md-p:last-child { margin-bottom: 0; }

/* 홈 즉답 검색 — 자연어 질문 → /api/ask */
.home-ask { margin: 0 0 14px; }
.home-ask-t { font-weight: 800; color: var(--ink); font-size: 17px; margin-bottom: 10px; display: none; }
.home-ask-bar { display: flex; gap: 8px; }
.home-ask-bar .search-input { flex: 1; }
.home-ask-btn { flex-shrink: 0; padding: 0 16px; border: none; border-radius: var(--radius-sm); background: var(--teal); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.home-ask-btn:hover { background: var(--teal-pressed, #097266); }
.home-ask-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.home-ask-chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-soft, #3A4652); font-size: 13px; cursor: pointer; }
.home-ask-chip:hover { border-color: var(--teal); color: var(--teal); }

/* ── 홈 마감 임박 모집 위젯 ── */
.home-rcpt { margin: 16px 0 6px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--card); box-shadow: var(--shadow-sm); }
.home-rcpt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.home-rcpt-head b { color: var(--ink); font-size: 15px; }
.home-rcpt-badge { background: var(--teal); color: #0C1929; font-weight: 800; font-size: 11px; padding: 3px 8px; border-radius: 999px; }
.home-rcpt-badge.upcoming { background: var(--warn-tint, rgba(217,119,6,0.15)); color: var(--warn, #b45309); }
@media (prefers-color-scheme: dark) { .home-rcpt-badge.upcoming { background: #422006; color: #FCD34D; } }
.home-rcpt-more { margin-left: auto; background: none; border: none; color: var(--teal-pressed); font-weight: 700; font-size: 13px; cursor: pointer; }
.home-rcpt-list { display: flex; flex-direction: column; gap: 8px; }
.home-rcpt-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.home-rcpt-card:hover { border-color: var(--teal); }
.hr-name { font-weight: 800; color: var(--ink); font-size: 14px; }
.hr-meta { color: var(--weak); font-size: 12px; margin-top: 2px; }
.hr-dday { flex: none; font-weight: 800; font-size: 12.5px; color: var(--teal-pressed); background: var(--teal-tint); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.hr-dday.urgent { color: #fff; background: var(--danger); }
.hr-dday.st-pre { color: #2563EB; background: #E8F1FE; }
@media (prefers-color-scheme: dark) { .hr-dday.st-pre { background: #1E3A5F; color: #93C5FD; } }
.home-ask-out:not(:empty) { margin-top: 12px; }
.home-ask-loading { color: var(--ink-soft, #6b7681); font-size: 14px; padding: 8px 2px; }
.home-ask-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius, 14px); padding: 6px 14px; }
.home-ask-item { padding: 12px 0; border-bottom: 1px solid var(--divider, #eef1f4); }
.home-ask-item b { color: var(--ink); }
.home-ask-item p { margin: 6px 0 8px; color: var(--ink-soft, #3A4652); line-height: 1.55; font-size: 14px; }
.home-ask-src { color: var(--teal); font-weight: 700; font-size: 13px; text-decoration: none; }
.home-ask-cut { padding: 10px 0; border-bottom: 1px solid var(--divider, #eef1f4); color: var(--ink-soft, #3A4652); font-size: 14px; }
.home-ask-cut b { color: var(--ink); }
.home-ask-empty { padding: 12px 0; color: var(--ink-soft, #6b7681); font-size: 14px; line-height: 1.55; }
.home-ask-foot { padding: 12px 0 4px; font-size: 13px; color: var(--ink-soft, #6b7681); }
.home-ask-foot a { color: var(--teal); font-weight: 700; text-decoration: none; }
.home-ask-note { color: var(--muted, #9aa4ad); }

/* 체감컷 — 합격 점수 제보 */
.cutrep-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.cutrep-stat { background: var(--card-2, #f4f6f8); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--ink); }
.cutrep-stat.pass b { color: var(--success, #18a957); }
.cutrep-stat.fail b { color: var(--danger, #e5484d); }
.cutrep-meta { font-size: 12px; color: var(--muted, #9aa4ad); margin-bottom: 10px; }
.cutrep-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.cutrep-chip { font-size: 12px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); }
.cutrep-chip.pass { background: rgba(24,169,87,.10); color: var(--success, #18a957); border-color: rgba(24,169,87,.25); }
.cutrep-chip.fail { background: rgba(229,72,77,.10); color: var(--danger, #e5484d); border-color: rgba(229,72,77,.25); }
.cutrep-empty { font-size: 14px; color: var(--ink-soft, #6b7681); padding: 6px 0 12px; line-height: 1.5; }
.cutrep-form { border-top: 1px dashed var(--line); padding-top: 12px; }
.cutrep-hint { font-size: 13px; color: var(--ink-soft, #3A4652); margin-bottom: 10px; }
.cutrep-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.cutrep-score { flex: 1; }
.cutrep-ym { flex: 1; }
.cutrep-rbs { display: flex; gap: 6px; flex-shrink: 0; }
.cutrep-rb { padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--ink-soft, #6b7681); font-size: 14px; cursor: pointer; }
.cutrep-rb.on-pass { background: var(--success, #18a957); color: #fff; border-color: var(--success, #18a957); }
.cutrep-rb.on-fail { background: var(--danger, #e5484d); color: #fff; border-color: var(--danger, #e5484d); }
.cutrep-submit { flex-shrink: 0; white-space: nowrap; }
.cutrep-msg { font-size: 13px; color: var(--teal); margin-top: 4px; min-height: 16px; }

/* ── 합격 준비 플랜 (#/plan) ──────────────────────────────────── */
.plan-wrap { padding-bottom: 32px; }
.plan-head { margin-bottom: 14px; }
.plan-base-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 11px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; }
.plan-base-row { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plan-base-lbl { font-size: 11px; font-weight: 800; color: var(--weak); }
.plan-base-val { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.plan-base-edit { flex: 0 0 auto; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--teal-pressed); background: rgba(56,189,248,.1); border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.plan-base-edit:active { transform: scale(.97); }

.plan-gauge { margin: 14px 0 18px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.plan-gauge-nums { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.plan-gauge-now { font-size: 28px; font-weight: 900; color: var(--teal); letter-spacing: -.02em; }
.plan-gauge-unit { font-size: 13px; font-weight: 700; color: var(--weak); margin-left: 3px; }
.plan-gauge-cut { font-size: 13px; font-weight: 800; color: var(--ink); }
.plan-bar-track { position: relative; height: 14px; border-radius: 999px; background: var(--teal-tint); overflow: hidden; }
.plan-bar-base { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(56,189,248,.28); border-radius: 999px; }
.plan-bar-proj { position: absolute; left: 0; top: 0; bottom: 0; background: var(--teal); border-radius: 999px; transition: width .35s cubic-bezier(.34,1.3,.64,1); }
.plan-bar-cut { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 2px dashed var(--ink); }
.plan-bar-cut span { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 9.5px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.plan-gauge-msg { margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.plan-gauge-msg.on { color: var(--teal-pressed); }

.plan-list-head { display: flex; align-items: center; justify-content: space-between; margin: 8px 2px 8px; }
.plan-list-head .field-label { margin: 0; }
.plan-progress { font-size: 12px; font-weight: 800; color: var(--teal-pressed); background: rgba(56,189,248,.1); border-radius: 999px; padding: 4px 10px; }
.plan-group { margin-bottom: 12px; }
.plan-group-h { font-size: 11.5px; font-weight: 800; color: var(--weak); letter-spacing: .02em; margin: 6px 2px 7px; }
.plan-item { display: flex; align-items: flex-start; gap: 11px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; transition: border-color .15s ease, background .15s ease; }
.plan-item.on { border-color: rgba(56,189,248,.55); background: rgba(56,189,248,.05); }
.plan-item .cbox { margin-top: 1px; }
.plan-item-ic { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(56,189,248,.12); color: var(--teal-pressed); }
.plan-item-ic svg { width: 18px; height: 18px; }
.plan-item-main { flex: 1 1 auto; min-width: 0; }
.plan-item-t { font-size: 14.5px; font-weight: 800; color: var(--ink); line-height: 1.35; }
.plan-item.on .plan-item-t { text-decoration: line-through; text-decoration-color: rgba(56,189,248,.6); }
.plan-item-d { font-size: 12px; color: var(--weak); line-height: 1.45; margin-top: 2px; }
.plan-item-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.plan-item-pts { font-size: 12.5px; font-weight: 900; color: var(--teal-pressed); background: rgba(56,189,248,.1); border-radius: 8px; padding: 3px 8px; white-space: nowrap; }
.plan-item-go { font-size: 11.5px; font-weight: 700; color: var(--weak); text-decoration: none; white-space: nowrap; }
.plan-item-go:hover { color: var(--teal-pressed); }

.plan-empty { padding: 18px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-align: center; margin: 6px 0 12px; }
.plan-empty-t { font-size: 15px; font-weight: 800; color: var(--ink); }
.plan-empty-d { font-size: 12.5px; color: var(--weak); line-height: 1.5; margin-top: 6px; }

.plan-reset { display: block; width: 100%; font: inherit; font-size: 13px; font-weight: 700; color: var(--weak); background: transparent; border: 1px solid var(--line); border-radius: 12px; padding: 11px; margin: 16px 0 4px; cursor: pointer; }
.plan-reset:active { transform: scale(.99); }

/* 계산기 → 플랜 진입 CTA */
.plan-cta { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 16px; padding: 14px; background: linear-gradient(180deg, rgba(56,189,248,.1), rgba(56,189,248,.03)); border: 1px solid rgba(56,189,248,.35); border-radius: 16px; cursor: pointer; }
.plan-cta:active { transform: scale(.99); }
.plan-cta-ic { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--teal); color: #fff; }
.plan-cta-ic svg { width: 21px; height: 21px; }
.plan-cta-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.plan-cta-body b { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.plan-cta-body small { font-size: 12px; color: var(--weak); line-height: 1.4; }
.plan-cta-arr { flex: 0 0 auto; font-size: 20px; font-weight: 800; color: var(--teal); }

/* ── 합격선 분포 차트 (#/cutline 상단) ──────────────────────────── */
.cutchart { margin: 14px 0 4px; padding: 14px 14px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.cutchart-head { margin-bottom: 12px; }
.cutchart-title { font-size: 15px; font-weight: 800; color: var(--ink); }
.cutchart-sub { font-size: 12px; color: var(--weak); margin-top: 2px; }
.cutchart-plot { position: relative; }
.cutchart-bars { display: flex; align-items: stretch; gap: 5px; height: 138px; }
.cutchart-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.cutchart-cnt { height: 16px; font-size: 10.5px; font-weight: 800; color: var(--weak); line-height: 16px; }
.cutchart-barwrap { flex: 1 1 auto; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.cutchart-bar { width: 66%; min-height: 3px; border-radius: 5px 5px 0 0; transition: height .35s cubic-bezier(.34,1.3,.64,1); }
.cutchart-xlbl { height: 18px; line-height: 18px; font-size: 10px; font-weight: 700; color: var(--weak); }
/* 내 점수 세로선 오버레이 */
.cutchart-me { position: absolute; top: 16px; bottom: 18px; width: 0; border-left: 2px dashed var(--ink); pointer-events: none; }
.cutchart-me-lbl { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--ink); border-radius: 999px; padding: 2px 7px; }
.cutchart-mehint { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.cutchart-mehint strong { color: var(--teal-pressed); font-weight: 900; }
.cutchart-mehint-sub { display: block; font-size: 11px; font-weight: 600; color: var(--weak); margin-top: 1px; }
.cutchart-cta { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font: inherit; font-size: 13px; font-weight: 800; color: var(--teal-pressed); background: rgba(56,189,248,.1); border: 0; border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.cutchart-cta:active { transform: scale(.98); }
.cutchart-cta-ic { display: inline-flex; }
.cutchart-cta-ic svg { width: 15px; height: 15px; }
.cutchart-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.cutchart-leg { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--weak); }
.cutchart-leg-dot { width: 10px; height: 10px; border-radius: 3px; }

/* ── 다크모드 2차 보정: 라이트 틴트가 다크에서 밝게/안 읽히던 것 정리 ── */
.tint-block.tint-danger { background: #FEF2F2; border-color: #FBC9C9; }
@media (prefers-color-scheme: dark) {
  .tint-block.tint-danger { background: rgba(217,45,32,.16); border-color: rgba(217,45,32,.42); }
  .sel-note.sel-lottery { background: rgba(255,159,67,.16); }   /* 라이트 오렌지 → 다크 틴트(텍스트 가독성 복구) */
  .rank-1 { background: rgba(244,197,126,.18); color: #F4C57E; }
  .rank-2 { background: rgba(150,170,190,.16); color: #AEBDCC; }
  .rank-3 { background: rgba(176,106,60,.22); color: #E0A579; }
  .sched-notif.on { background: rgba(6,118,71,.20); color: #6FE0AC; border-color: rgba(6,118,71,.42); }
  .sched-banner.ok { background: rgba(6,118,71,.16); border-color: rgba(6,118,71,.42); color: #6FE0AC; }
  .sched-due.ok { background: rgba(6,118,71,.16); color: #6FE0AC; }
  .check-result.ok { background: rgba(6,118,71,.16); border-color: rgba(6,118,71,.42); }
}

/* 플랜 빈 상태 — 막다른 길 대신 타이밍 액션으로 */
.plan-empty-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.plan-empty-btn { font: inherit; font-size: 13px; font-weight: 800; color: var(--teal-pressed); background: rgba(56,189,248,.1); border: 0; border-radius: 12px; padding: 11px 14px; cursor: pointer; text-align: center; }
.plan-empty-btn:active { transform: scale(.99); }

/* 특기 상세 → 계산기/플랜 다리 버튼 */
.spec-bridge { display: flex; gap: 8px; margin-top: 12px; }
.spec-bridge .btn { flex: 1 1 0; }

/* ─── 시각화 공용 부품 (글 → 그림) ─── */
.viz-ring { position: relative; width: 104px; height: 104px; flex: 0 0 104px; }
.viz-ring-svg { position: absolute; inset: 0; }
.viz-ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.viz-ring-big { font-size: 22px; font-weight: 900; color: var(--teal-pressed); line-height: 1; }
.viz-ring-sub { font-size: 11px; font-weight: 700; color: var(--weak); margin-top: 2px; }

.viz-scale { position: relative; padding-top: 30px; margin: 6px 2px; }
.viz-scale-mark { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 2; }
.viz-scale-tag { font-size: 12px; font-weight: 800; color: #1a1f27; background: #ffe08a; padding: 2px 8px; border-radius: 7px; white-space: nowrap; }
.viz-scale-arrow { color: #1a1f27; font-size: 14px; line-height: .7; }
.viz-scale-bar { display: flex; border-radius: 9px; overflow: hidden; height: 34px; }
.viz-scale-seg { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; min-width: 0; padding: 0 2px; text-align: center; line-height: 1.1; }
.viz-scale-ticks { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--weak); margin-top: 5px; }

.viz-age { position: relative; height: 92px; margin: 34px 16px 4px; }
.viz-age-track { position: absolute; top: 7px; left: 0; right: 0; height: 6px; border-radius: 3px; background: var(--teal-tint); }
.viz-age-fill { height: 100%; border-radius: 3px; background: #e8342f; }
.viz-age-now { position: absolute; top: -24px; transform: translateX(-50%); text-align: center; z-index: 3; }
.viz-age-nowtag { font-size: 12px; font-weight: 800; color: #1a1f27; background: #ffe08a; padding: 2px 8px; border-radius: 7px; white-space: nowrap; }
.viz-age-nowarr { display: block; color: #1a1f27; font-size: 15px; line-height: .6; margin-top: 1px; }
.viz-age-mark { position: absolute; top: 0; transform: translateX(-50%); text-align: center; width: 84px; }
.viz-age-dot { display: block; width: 15px; height: 15px; border-radius: 50%; margin: 0 auto; border: 3px solid var(--card); }
.viz-age-age { display: block; font-size: 12.5px; font-weight: 800; margin-top: 6px; }
.viz-age-lbl { display: block; font-size: 11px; font-weight: 600; color: var(--weak); line-height: 1.25; margin-top: 1px; white-space: pre-line; }

.viz-jr { position: relative; height: 60px; margin: 10px 38px 2px; }
.viz-jr-track { position: absolute; top: 9px; left: 0; right: 0; height: 5px; border-radius: 3px; background: var(--teal-tint); }
.viz-jr-fill { height: 100%; border-radius: 3px; background: var(--teal-pressed); }
.viz-jr-step { position: absolute; top: 0; transform: translateX(-50%); text-align: center; width: 76px; }
.viz-jr-dot { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; margin: 0 auto; border: 3px solid var(--card); font-size: 12px; font-weight: 800; color: #fff; }
.viz-jr-dot.done { background: var(--teal-pressed); box-shadow: 0 0 0 1px var(--teal-pressed); }
.viz-jr-dot.now { background: #f0b429; box-shadow: 0 0 0 1px #f0b429; }
.viz-jr-dot.todo { background: var(--teal-tint); box-shadow: 0 0 0 1px var(--border); }
.viz-jr-lbl { display: block; font-size: 12.5px; font-weight: 800; color: var(--ink); margin-top: 5px; }
.viz-jr-sub { display: block; font-size: 10.5px; font-weight: 600; color: var(--weak); }

.viz-bars { display: flex; flex-direction: column; gap: 9px; margin: 6px 0; }
.viz-bar-row { display: flex; align-items: center; gap: 10px; }
.viz-bar-lbl { flex: 0 0 66px; font-size: 13px; font-weight: 700; color: var(--ink); }
.viz-bar-track { flex: 1; height: 18px; border-radius: 9px; background: var(--teal-tint); overflow: hidden; }
.viz-bar-fill { display: block; height: 100%; border-radius: 9px; background: var(--teal-pressed); }

/* 운영 현황(관리자) */
.admin-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 18px; }
.admin-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 8px; text-align: center; box-shadow: var(--shadow-sm); }
.admin-tile b { display: block; font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.admin-tile span { display: block; font-size: 12px; color: var(--weak); margin-top: 4px; font-weight: 600; }
.admin-list { display: flex; flex-direction: column; }
.admin-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--divider); }
.admin-row-label { font-size: 13.5px; color: var(--ink); }
.admin-row-n { font-size: 13.5px; font-weight: 800; color: var(--teal-pressed); flex: none; margin-left: 12px; }
.viz-bar-val { flex: 0 0 auto; font-size: 12.5px; font-weight: 800; color: var(--teal-pressed); }
