/* 세이클래스 진로 흥미 탐색 — M0 기본 모양. 디자인은 M2 에서 세이클래스 체계에 맞춘다. */
:root {
  color-scheme: light dark;   /* 체크박스 · 고르기 상자 · 스크롤 막대도 화면 밝기를 따르게 */
  --bg: #ffffff;
  --fg: #1f2328;
  --muted: #59636e;
  --line: #d1d9e0;
  --accent: #353b8a;
  --notice-bg: #f6f8fa;
  --accent-bg: #eef0fb;
  --chart: #5258b8;      /* 그래프 칠 — 강조색과 같은 남색의 중간 밝기(dataviz 검사 통과 · 밝은 화면) */
  --danger: var(--danger);     /* 경고 · 오류 · 1388 표시 — 어두운 화면은 따로 */
  --danger-bg: #ffebe9;
  --on-accent: #ffffff;  /* 강조색 바탕 위 글자 */
  --chart-2: #eb6834;    /* 비교 계열(이 계열) — 주황 · --chart 와 짝으로 검사 통과(색각 ΔE 25.7) */
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --fg: #e6edf3;
    --muted: #9198a1;
    --line: #3d444d;
    --accent: #9ea4f0;
    --notice-bg: #161b22;
    --accent-bg: #1c2045;
    --chart: #7d84e3;    /* 어두운 화면 — 검사 통과 */
    --danger: #ff7b72;   /* 어두운 바탕에서 읽히는 빨강(대비 7:1 넘음) */
    --danger-bg: #3d1214;
    --on-accent: #0d1117;
    --chart-2: #d95926;  /* 어두운 화면 — 짝 검사 통과(ΔE 26.2) */
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* 숨긴 것은 어디서든 숨김(단추 · 카드의 display 가 덮지 않게) */
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 4px 8px; }
.site-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 16px; }   /* 머리글 — 「top」은 1 · 2위 강조 이름과 겹쳐 바꿈 */
.brand { color: var(--accent); font-weight: 700; text-decoration: none; }
.brand span { color: var(--fg); font-weight: 500; margin-left: 4px; }
/* ---- 글자 체계(모든 화면) — 화면 제목 h1 · 칸 제목 h2.group · 작은 제목 sec-q/subj-head · 본문 · 작은 안내 ---- */
h1 { font-size: 23px; line-height: 1.35; margin: 20px 0 8px; word-break: keep-all; }
@media (min-width: 640px) { h1 { font-size: 28px; margin-top: 28px; } }
a { color: var(--accent); }
.lead { color: var(--muted); font-size: 16px; margin: 0 0 12px; word-break: keep-all; }
.notice { background: var(--notice-bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; }
.foot { color: var(--muted); font-size: 14px; margin-top: 48px; padding-bottom: 32px; border-top: 1px solid var(--line); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---- 시범 설문 · 교사 검토 ---- */
h2 { font-size: 20px; margin: 0 0 8px; }
h2.group { margin: 36px 0 8px; padding-top: 12px; border-top: 2px solid var(--accent); }
.muted { color: var(--muted); }
.box { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 20px 0; }
.box ul { margin: 0; padding-left: 20px; }
.form { margin: 16px 0; }
.field { display: block; margin: 12px 0; }
.field select, .field textarea, .field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password], .field input[type=search] { display: block; width: 100%; margin-top: 4px; padding: 10px; font: inherit;
  color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0; }
.btn { display: block; width: 100%; padding: 14px; font: inherit; font-weight: 700; color: #fff; background: var(--accent);
  border: 0; border-radius: 10px; cursor: pointer; margin-top: 16px; }
@media (prefers-color-scheme: dark) { .btn { color: #0d1117; } }
.btn:focus-visible, .opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.progress { height: 8px; background: var(--notice-bg); border-radius: 4px; overflow: hidden; margin: 20px 0 8px; }
.progress .bar { height: 100%; background: var(--accent); }

fieldset.q { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 16px 0; min-width: 0; }
fieldset.q.q-missing { border: 2px solid var(--danger); }
.q-warn { color: var(--danger); margin: 0 0 8px; font-size: 15px; }
fieldset.q legend { padding: 0; display: contents; }
.q-ask { display: block; color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.q-text { display: block; font-size: 19px; font-weight: 700; line-height: 1.45; margin-bottom: 12px; }
.scale { display: grid; gap: 6px; }
/* 5칸 가로는 넓은 화면에서만 — 좁으면 세로로 쌓는다(선택지 글자가 두 줄로 꺾이지 않게) */
@media (min-width: 760px) { .scale { grid-template-columns: repeat(5, 1fr); } }
/* ---- 고르는 카드(.opt) — 척도 · 연습 · 대화 질문이 모두 같은 모양 ----
   높이를 맞추고(한 줄의 카드가 같은 높이), 고르면 진한 테두리 + 옅은 바탕 + 오른쪽 위 체크 표시 */
.opt { position: relative; display: flex; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt > span { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 48px;
  padding: 10px 12px; text-align: center; font-size: 15px; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .12s, background .12s; }
.opt:hover > span { border-color: var(--accent); }
.opt input:checked + span { background: var(--accent-bg); border: 2px solid var(--accent); padding: 9px 11px; color: var(--accent); font-weight: 700; }
.opt input:checked + span::after { content: ""; position: absolute; top: 8px; right: 8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.scale .opt input:checked + span::after { display: none; }   /* 척도는 한 줄에 하나만 고르니 체크 표시 없이 */
.opt input:disabled + span { opacity: .45; cursor: not-allowed; }
.q-extra { display: grid; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 15px; color: var(--muted); }
.q-extra label { display: flex; gap: 8px; align-items: center; }

.review-item { margin: 24px 0; }
.item-no { margin: 0; font-size: 14px; }
.review-item fieldset.q { margin-top: 4px; }
details.note { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: var(--notice-bg); }
details.note summary { cursor: pointer; font-weight: 700; }
.q-extra[hidden] { display: none; }
.box.sub { margin: 12px 0; background: var(--notice-bg); }

/* 첫 화면 「시작하기 전에」 안의 작은 제목 · 연락처 동의 */
h3.sub { font-size: 17px; margin: 28px 0 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.small { font-size: 15px; }
.check.small { margin: 8px 0 4px; color: var(--muted); }

/* [1] 대화 질문 — 카드 고르기
   .chips      짧은 카드(과목 · 쉴 때 · 고민) — 좁으면 2칸, 넓으면 3칸, 가운데 정렬
   .chips.rich 설명이 붙은 카드(관심 분야 · 부모님 · 소중한 것) — 좁으면 1칸, 넓으면 2칸, 왼쪽 정렬(제목 + 설명)
   .chips.skips 건너뛰기 — 위와 같은 카드, 글자만 옅게 */
.talk-q { margin: 28px 0; }
.chips { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chips.rich { grid-template-columns: 1fr; }
@media (min-width: 640px) { .chips.rich { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chips.rich .opt > span { align-items: flex-start; text-align: left; padding-right: 32px; min-height: 64px; }
.chips.rich .opt input:checked + span { padding-right: 31px; }
.chips .opt b { font-weight: 700; }
.chips .opt small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted); }
.chips .opt input:checked + span small { color: var(--fg); }
.or { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.chips.skips .opt > span { color: var(--muted); }
.chips.skips .opt input:checked + span { color: var(--accent); }
.pick-count { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.talk-q input[type=text] { display: block; width: 100%; margin-top: 6px; padding: 10px; font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; }
.talk-q label.muted { display: block; margin-top: 12px; font-size: 14px; }

/* ---- 결과 화면 — 고르는 카드와 같은 테두리 · 모서리 ---- */
.res { margin: 8px 0 24px; }
.res-cards { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .res-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.res-card { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); word-break: keep-all; }
.res-card.first { border: 2px solid var(--accent); background: var(--accent-bg); padding: 13px 15px; }
.res-card p { margin: 0; }
.res-rank { position: absolute; top: 12px; right: 14px; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; }
@media (prefers-color-scheme: dark) { .res-rank { color: #0d1117; } }
.res-title { font-size: 19px; font-weight: 700; margin-bottom: 4px !important; padding-right: 36px; }
.res-text { font-size: 15px; line-height: 1.55; }
.res-text + .res-text { margin-top: 4px !important; }
.res-note { color: var(--muted); font-size: 15px; }
.res-ptype { text-align: center; margin-bottom: 10px; word-break: keep-all; }
.ptype-name { font-size: 22px; line-height: 1.4; margin-bottom: 2px !important; }
.ptype-name strong { font-size: 28px; font-weight: 800; color: var(--accent); }
.ptype-combo { font-weight: 700; color: var(--muted); margin-bottom: 10px !important; }
.ptype-words { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0 0 10px; }
.ptype-words li { padding: 4px 10px; font-size: 14px; border: 1px solid var(--line); border-radius: 999px; }
.res-axes { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.res-axis { padding: 12px 16px; border-top: 1px solid var(--line); word-break: keep-all; }
.res-axis:first-child { border-top: 0; }
.res-axis p { margin: 0; }
.res-axis-name { font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 2px !important; }
.res-tag { display: inline-block; margin-top: 8px !important; padding: 2px 10px; font-size: 13px; border-radius: 999px; background: var(--accent-bg); color: var(--accent); }
.res-link { display: block; margin-top: 6px; font-size: 13px; word-break: break-all; color: var(--muted); }
#feedback .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#feedback .chips .opt > span { font-size: 14px; padding: 10px 6px; }

/* ---- 다음 단계로 이어 주기 · 학과 고르기 · 들을 과목 ---- */
.steps { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.steps a { color: var(--muted); }
.steps strong { color: var(--accent); }
.steps span { margin: 0 4px; }
.res-more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
.next-box { margin: 28px 0; padding: 18px 16px; border: 2px solid var(--accent); border-radius: 12px; background: var(--accent-bg); }
.next-box p { margin: 0 0 4px; }
.next-step { font-size: 13px; font-weight: 700; color: var(--accent); }
.keep-box { margin: 28px 0 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--notice-bg); }
.keep-box .btn { margin: 8px 0 10px; }
.keep-box p { margin: 0; }
.subj-legend { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.subj-legend p { margin: 0 0 6px; word-break: keep-all; }
.subj-legend p:last-child { margin-bottom: 0; }
a.btn { text-align: center; text-decoration: none; box-sizing: border-box; }
.btn-line { background: var(--bg); color: var(--accent); border: 1px solid var(--accent); }
@media (prefers-color-scheme: dark) { .btn-line { color: var(--accent); } }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.pick-group { margin: 14px 0; }
.pick-group[hidden], .pick-l[hidden], .pick-group label.opt[hidden] { display: none; }
.pick-group-name { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.pick-search { display: block; width: 100%; margin: 4px 0 8px; padding: 12px; font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; }
details.pick-l { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; margin: 8px 0; }
details.pick-l summary { cursor: pointer; padding: 10px 0; font-weight: 700; }
.pick-bar { position: sticky; bottom: 0; margin: 20px -16px 0; padding: 10px 16px 14px; background: var(--bg); border-top: 1px solid var(--line); }
.pick-bar .btn { margin-top: 6px; }
.pick-bar .pick-count { margin: 0; text-align: center; }
.subj-head { margin: 12px 0 6px; font-weight: 700; }
.subj-list { display: flex; flex-wrap: wrap; gap: 8px; }
.subj { display: inline-flex; flex-direction: column; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  font-size: 15px; font-weight: 700; word-break: keep-all; }
.subj small { font-size: 12px; font-weight: 400; color: var(--muted); }
.subj.special { border-style: dashed; }
.subj.mini { display: inline; padding: 1px 6px; font-size: 13px; }
details.subj-more { margin-top: 12px; }
details.subj-more summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: 15px; padding: 6px 0; }
details.subj-more .subj { font-weight: 400; }

/* ---- 나를 더 알아보기 · 가치 고르기 ---- */
.more-card .btn { margin-top: 10px; padding: 10px; }
.more-card.soon { opacity: .6; }
.more-card.done { border-color: var(--accent); }
.val-pair[hidden] { display: none; }
.val-chips { grid-template-columns: 1fr; }
@media (min-width: 640px) { .val-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.val-chips .opt > span { min-height: 88px; justify-content: center; }
.val-chips .opt b { font-size: 18px; }
.val-nav { display: grid; gap: 8px; }
.val-nav .btn[hidden] { display: none; }
.st-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .st-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.st-chips .opt > span { min-height: 72px; padding-right: 28px; }

/* ---- 진로 준비도 ---- */
.ready-stage { margin: 2px 0 0 !important; font-weight: 700; }
.ready-dots { display: inline-flex; gap: 3px; margin-right: 8px; vertical-align: middle; }
.ready-dots i { width: 14px; height: 8px; border-radius: 4px; background: var(--line); }
.ready-dots i.on { background: var(--accent); }
ul.todo { margin: 0; padding-left: 20px; }
ul.todo li { margin: 6px 0; word-break: keep-all; }
ul.todo li .muted { display: block; font-size: 12px; }
.val-chips .opt > span { align-items: flex-start; text-align: left; }
.val-ab { display: inline-block; font-weight: 700; color: var(--accent) !important; font-size: 13px; margin: 0 0 2px !important; }
.val-text { font-size: 16px !important; font-weight: 600; line-height: 1.5; }
.more-chips .opt > span { min-height: 72px; }
.more-time { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }

/* ---- 가고 싶은 길과 나 ---- */
.tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 4px 0 8px; margin: 8px 0 0; }   /* 넘치면 줄을 바꾼다(옆으로 밀리지 않게) */
.tab { flex: 0 0 auto; display: flex; flex-direction: column; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px;
  text-decoration: none; color: var(--fg); font-weight: 700; font-size: 15px; background: var(--bg); max-width: 220px; word-break: keep-all; }
.tab small { font-size: 12px; font-weight: 400; color: var(--muted); }
.tab.on { border: 2px solid var(--accent); background: var(--accent-bg); color: var(--accent); padding: 7px 13px; }
.gap-card { margin: 8px 0; }
.gap-card ul.todo { margin-top: 8px; }
.guide-pick { display: grid; gap: 8px; }
.guide-pick select { padding: 12px; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.guide-pick .btn { margin-top: 0; }

/* ---- 진행 단계(설문) · 결과 뒤 여정 ---- */
.stages { margin: 16px 0 8px; }
.stages ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; list-style: none; margin: 0; padding: 0; }
.stages li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); text-align: center; word-break: keep-all; }
.stages li::before { content: ""; display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--line); }
.stages li.done::before, .stages li.on::before { background: var(--accent); }
.stages li.on { color: var(--accent); font-weight: 700; }
.stage-no { display: none; }
@media (max-width: 420px) { .stage-name { display: none; } .stages li.on .stage-name { display: inline; } }
.stage-now { margin: 8px 0 0; font-size: 14px; }
.stage-intro { margin: 12px 0; padding: 14px 16px; border-radius: 12px; background: var(--accent-bg); border: 1px solid var(--accent); }
.stage-intro p { margin: 0 0 4px; }
.journey li a { color: inherit; text-decoration: none; }
.journey li a:hover { color: var(--accent); text-decoration: underline; }
.journey li.off { opacity: .5; }
@media (max-width: 420px) { .journey .stage-name { display: inline; font-size: 11px; } }
ol.overview { margin: 0 0 8px; padding-left: 22px; }
ol.overview li { margin: 6px 0; word-break: keep-all; }

/* 질문 다듬기 단추 — 작게(선택) */
.q-extra { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.q-extra label.mini { position: relative; display: inline-flex; }
.q-extra label.mini input { position: absolute; opacity: 0; }
.q-extra label.mini span { padding: 3px 10px; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); cursor: pointer; }
.q-extra label.mini input:checked + span { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); font-weight: 700; }
.q-extra label.mini input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---- 결과 화면 — 한눈에 · 차례 · 단계 번호 · 다음에 할 일 ---- */
.summary { margin: 16px 0; padding: 16px; border: 2px solid var(--accent); border-radius: 14px; background: var(--accent-bg); }
.summary-title { margin: 0 0 8px; font-weight: 800; color: var(--accent); }
.summary dl { margin: 0; display: grid; gap: 6px; }
.summary dl div { display: grid; grid-template-columns: 108px 1fr; gap: 8px; align-items: baseline; }
.summary dt { font-size: 13px; color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; word-break: keep-all; }
.summary-code { letter-spacing: 3px; color: var(--accent); }
.toc { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 6px; }
.toc a { flex: 0 0 auto; padding: 6px 12px; font-size: 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--fg); background: var(--bg); }
.sec-no { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 14px; vertical-align: 2px; }
@media (prefers-color-scheme: dark) { .sec-no { color: #0d1117; } }
.sec-q { margin: 20px 0 8px; font-weight: 800; font-size: 17px; }
.todo-card { padding: 14px 16px; border: 1px dashed var(--accent); border-radius: 12px; }
.todo-card p { margin: 0 0 4px; }
.todo-card .btn { margin-top: 10px; padding: 10px; }
ol.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: ns; }
ol.next-steps li { position: relative; padding: 14px 16px 14px 52px; border: 1px solid var(--line); border-radius: 12px; counter-increment: ns; }
ol.next-steps li::before { content: counter(ns); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; line-height: 26px; text-align: center;
  border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 14px; }
ol.next-steps li.now { border: 2px solid var(--accent); padding: 13px 15px 13px 51px; }
ol.next-steps li.now::before { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
ol.next-steps li.done::before { content: "v"; }
ol.next-steps li p { margin: 0 0 2px; }
ol.next-steps li .btn { margin-top: 10px; padding: 10px; }
.badge { display: inline-block; padding: 1px 8px; font-size: 12px; border-radius: 999px; background: var(--accent-bg); color: var(--accent); font-weight: 700; }
.fb-memo { display: block; margin-top: 10px; }
.fb-memo input { display: block; width: 100%; margin-top: 6px; padding: 10px; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
html { scroll-behavior: smooth; scroll-padding-top: 12px; }
.summary dd a { color: var(--accent); font-weight: 600; }

/* ---- 결과 막대 — 흥미 0~100 · 성향 양쪽 % ---- */
.bars-box { margin: 12px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }   /* ② 일반 상자 */
.bars-box summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.bars { display: grid; gap: 8px; margin: 10px 0 8px; }
.bar-row { display: grid; grid-template-columns: 64px 1fr 44px; gap: 8px; align-items: center; font-size: 14px; }
.bar-track { height: 10px; border-radius: 5px; background: var(--notice-bg); border: 1px solid var(--line); overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--muted); opacity: .55; }
.bar-row.top .bar-fill { background: var(--accent); opacity: 1; }
.bar-row.top .bar-name, .bar-row.top .bar-pct { color: var(--accent); font-weight: 700; }
.bar-pct { text-align: right; font-variant-numeric: tabular-nums; }
.axis { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 4px 0 6px; font-size: 13px; color: var(--muted); }
.axis-side { word-break: keep-all; }
.axis-side.right { text-align: right; }
.axis-side.lean { color: var(--accent); font-weight: 700; }
.axis-side b { font-variant-numeric: tabular-nums; }
.axis-track { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--accent-bg), var(--notice-bg)); border: 1px solid var(--line); }
.axis-mark { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--accent); }
@media (min-width: 560px) { .axis { grid-template-columns: 1fr 2fr 1fr; align-items: center; } }
.axes-graph { display: grid; gap: 12px; margin: 10px 0 8px; }
.axis-row .res-axis-name { margin: 0 0 2px; }
.bars-box[open] summary { margin-bottom: 4px; }

/* ---- 흥미 레이더(육각형) — 한 계열이라 범례 없음 · 글자는 글자색 · 점 8px 이상 · 격자는 옅게 ---- */
.radar { margin: 8px auto 4px; max-width: 340px; }
.radar svg { display: block; width: 100%; height: auto; overflow: visible; }
.radar-grid polygon, .radar-grid line { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-area { fill: var(--chart); fill-opacity: .18; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; }
.radar-pt .dot { fill: var(--chart); stroke: var(--bg); stroke-width: 2; }
.radar-pt .hit { fill: transparent; }
.radar-pt:hover .dot { r: 7; }
.radar-label { font-size: 13px; fill: var(--muted); }
.radar-label.top { fill: var(--fg); font-weight: 700; }
.radar-pct { font-size: 12px; font-variant-numeric: tabular-nums; }
.radar-label.top .radar-pct { font-weight: 700; }
details.table-view { margin-top: 6px; font-size: 14px; }
details.table-view summary { cursor: pointer; color: var(--muted); }
.mini-table { border-collapse: collapse; margin-top: 6px; }
.mini-table th, .mini-table td { padding: 3px 12px 3px 0; text-align: left; font-weight: 400; font-variant-numeric: tabular-nums; }
.mini-table tr.top th, .mini-table tr.top td { font-weight: 700; }

/* 흥미 레이더 — 흥미 칸 맨 위, 그래프가 주인공 · 숫자는 아래 한 줄 보조 */
/* 테두리 기준(docs/화면-테두리-기준.md) — ② 일반 상자: 결과 하나를 담은 덩어리(카드 · 그래프 · 목록 묶음 · 질문)는 1px 테두리 + 12px 모서리 */
.radar-box { margin: 12px 0 14px; padding: 16px 14px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
/* 그래프가 주인공 — 휴대폰: 그래프 아래에 표 / 넓은 화면(640px~): 그래프 오른쪽에 표 */
.radar-layout { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 4px; }
.radar-layout .radar { width: 100%; max-width: 320px; margin: 0; }
.radar-table { width: 100%; max-width: 240px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.radar-table th, .radar-table td { padding: 6px 2px; font-weight: 400; color: var(--muted); border-bottom: 1px solid var(--line); }
.radar-table th { text-align: left; }
.radar-table td { text-align: right; }
.radar-table tr:last-child th, .radar-table tr:last-child td { border-bottom: 0; }
.radar-table tr.hi th, .radar-table tr.hi td { color: var(--fg); font-weight: 700; }
.radar-table .lg-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--line); vertical-align: 1px; }
.radar-table tr.hi .lg-dot { background: var(--chart); }
@media (min-width: 640px) {
  .radar-layout { grid-template-columns: 320px 200px; justify-content: center; align-items: center; gap: 28px; }
}
.radar-caption { margin: 8px auto 0; text-align: center; word-break: keep-all; }
.radar-caption span { display: block; }   /* 문장마다 한 줄 */

/* ---- 비교 그래프(2026-11-03) — 나 = --chart(실선) · 이 계열 = --chart-2(점선) · 글자는 글자색 ---- */
.chart-box { margin: 12px 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.chart-title { margin: 0 0 8px; font-weight: 700; font-size: 15px; }
.chart-note { margin: 10px 0 0; }
.cmp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 8px 0; font-size: 14px; }
.cmp-legend .sw { display: inline-block; width: 18px; height: 8px; margin-right: 6px; border-radius: 4px; vertical-align: 1px; }
.sw.me { background: var(--chart); }
.sw.fd { background: var(--chart-2); }
.sw.fd.dash { background: repeating-linear-gradient(90deg, var(--chart-2) 0 6px, transparent 6px 9px); }
.cmp-bars { display: grid; gap: 5px; margin: 10px 0 8px; }
.cmp-row { display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.cmp-pair { display: block; }   /* 격자로 두면 PDF(WeasyPrint)가 막대 너비를 무시하고 끝까지 늘린다 */
.cmp-bar { display: block; height: 6px; min-width: 2px; border-radius: 0 3px 3px 0; }
.cmp-bar + .cmp-bar { margin-top: 2px; }
.cmp-bar.me { background: var(--chart); }
.cmp-bar.fd { background: var(--chart-2); }
.cmp-area.me { fill: var(--chart); stroke: var(--chart); }
.cmp-area.fd { fill: var(--chart-2); stroke: var(--chart-2); }
.cmp-pt .dot.me { fill: var(--chart); stroke: var(--bg); }
.cmp-pt .dot.fd { fill: var(--chart-2); stroke: var(--bg); }
.cmp-box .cmp-legend { justify-content: center; }
.axis-text { margin: 2px 0 0 !important; }
.cnt-row { display: grid; grid-template-columns: 1fr auto 36px; gap: 10px; align-items: center; padding: 3px 0; font-size: 15px; }
.cnt-cells { display: inline-flex; gap: 3px; }
.cnt-cells i { width: 34px; height: 10px; border-radius: 0 4px 4px 0; background: var(--notice-bg); border: 1px solid var(--line); }
.cnt-cells i.on { background: var(--chart); border-color: var(--chart); }
.cnt-num { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.cnt-row.hi .cnt-name { font-weight: 700; }
.ready-chart .ready-row { margin: 0 0 12px; }
.ready-chart .res-axis-name { margin: 0 0 4px; }
.rbar { position: relative; margin-top: 8px; height: 10px; border-radius: 0 5px 5px 0; background: var(--notice-bg); border: 1px solid var(--line); }
.rbar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 5px 5px 0; background: var(--chart); }
.rbar-fill.lv0 { opacity: .55; }
.rbar-prev { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--fg); }
.ready-chart .ready-stage { margin: 4px 0 0; font-size: 14px; }
.radar-box .radar-label { font-size: 17px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- 화면 전체 손질(2026-11-02) ---- */
.chips.rich.st-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .chips.rich.st-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chips.rich.st-chips .opt > span { min-height: 64px; padding: 8px 26px 8px 10px; }
.chips.rich.st-chips .opt b { font-size: 15px; }
.chips.rich.st-chips .opt small { font-size: 12px; }
.next-links { margin: 12px 0 0 !important; text-align: center; font-size: 14px; }
.res + .res h2.group, section.res > h2.group:first-child { margin-top: 28px; }
/* 대화 질문 — 한 화면에 한 질문(talk.js) */
.talk-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 8px; }
.talk-nav .btn { margin-top: 0; }
.talk-nav[hidden], .talk-q[hidden] { display: none; }
.talk-count { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.start-top { margin: 4px 0 8px; }

/* ---- 운영자 화면 ---- */
.admin-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
@media (min-width: 760px) { .admin-stats { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.admin-stats > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.stat-label { margin: 0; font-size: 13px; color: var(--muted); word-break: keep-all; }
.stat-num { margin: 4px 0 0; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.admin-export { display: inline-block; width: auto; padding: 10px 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.admin-table { border-collapse: collapse; width: 100%; font-size: 14px; white-space: nowrap; }
.admin-table th, .admin-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table thead th { background: var(--notice-bg); font-size: 13px; color: var(--muted); font-weight: 700; }
.admin-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table td.small { white-space: normal; min-width: 140px; font-size: 13px; }
.admin-table .badge.going { background: var(--notice-bg); color: var(--muted); }
.admin-table tr.comment-row td { border-bottom: 1px solid var(--line); padding-top: 0; }
.admin-code-form { display: grid; gap: 8px; max-width: 420px; }
.admin-login { max-width: 360px; }
.admin-login { max-width: 360px; margin-top: 8px; }
.admin-login .field { font-weight: 700; font-size: 15px; }
.admin-login .field input { font-weight: 400; }
.admin-login .btn { margin-top: 20px; }
/* 입력칸을 누르면 — 브라우저 기본 파랑 대신 서비스 남색(모든 화면) */
.field input:focus, .field select:focus, .field textarea:focus, .talk-q input[type=text]:focus, .pick-search:focus, .fb-memo input:focus, .guide-pick select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }

/* ---- 운영자 화면 손질 — 넓게 · 머리글 오른쪽 로그아웃 · 새 코드 한 줄 · 표 읽기 쉽게 ---- */
.wrap.wrap-wide { max-width: 1240px; }
.top-right { display: inline-flex; align-items: center; gap: 10px; }
.btn-mini { display: inline-block; padding: 6px 12px; font-size: 14px; font-weight: 700; border: 1px solid var(--accent); border-radius: 8px;
  color: var(--accent); text-decoration: none; background: var(--bg); }
.btn-mini:hover { background: var(--accent-bg); }
.admin-code-form { display: grid; grid-template-columns: 1fr; gap: 8px; max-width: none; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.admin-form-title { margin: 0; font-weight: 700; }
.admin-code-form .field { margin: 0; font-size: 14px; }
.admin-code-form .btn { margin-top: 0; }
@media (min-width: 760px) {
  .admin-code-form { grid-template-columns: 1.6fr 1fr auto; align-items: end; }
  .admin-form-title { grid-column: 1 / -1; }
  .admin-code-form .btn { width: auto; padding: 10px 24px; }
}
.admin-table tbody tr:hover td { background: var(--notice-bg); }
.admin-table thead th { position: sticky; top: 0; }
.admin-table td { vertical-align: middle; }
.admin-table tr.comment-row:hover td { background: transparent; }
.admin-stats > div { background: var(--bg); }
.admin-export-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.admin-table td.contact span { display: block; white-space: nowrap; }
.admin-table td.contact { min-width: 0; }

/* 가볍게 물어보기 (결정 130) */
.ask-form { display: flex; flex-direction: column; gap: 8px; }
.ask-form .field { margin: 0; }
@media (min-width: 640px) { .ask-form { flex-direction: row; align-items: stretch; } .ask-form .field { flex: 1; } .ask-form .btn { flex: none; width: auto; } }
.ask-more-head { font-size: 17px; margin: 22px 0 2px; }
.ask-more { margin-top: 8px; }
.ask-more summary { cursor: pointer; list-style-position: inside; }
.ask-more summary .res-title { display: inline; font-size: 17px; padding-right: 0; }
.ask-more[open] summary { margin-bottom: 8px; }
.ask-examples { padding-left: 20px; }
.ask-examples li { margin: 6px 0; }
.ask-kind { margin-bottom: 2px !important; }

/* 채팅 방식 설문(방법 A) */
.chat-top { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 4px 0 2px; }
.chat-top .progress { margin: 8px 0 4px; }
.chat-count { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.chat { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 24px; }
.bub { max-width: 88%; padding: 12px 14px; border-radius: 16px; line-height: 1.5; word-break: keep-all; }
.bub.bot { white-space: pre-line; align-self: flex-start; background: var(--notice-bg); border: 1px solid var(--line); border-top-left-radius: 4px; }
.bub.bot.note { font-weight: 700; }
.bub.me { align-self: flex-end; text-align: right; background: var(--accent); color: #fff; border-top-right-radius: 4px; font-weight: 700; }
.me-label { margin-right: 6px; }
.me-edit { font: inherit; font-size: 13px; font-weight: 400; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 2px 10px; cursor: pointer; }
.me-togs { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.tog { font: inherit; font-size: 13px; font-weight: 400; color: #fff; background: transparent; border: 1px dashed rgba(255,255,255,.7); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.tog[aria-pressed="true"] { background: #fff; color: var(--accent); border-style: solid; font-weight: 700; }
@media (prefers-color-scheme: dark) { .tog[aria-pressed="true"] { background: var(--bg); color: var(--accent); border-color: var(--bg); } }
.chat-ans { display: grid; gap: 6px; }
.chat-ans.edit { align-self: flex-end; width: 88%; }
.chat-ans button { min-height: 48px; padding: 10px 12px; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; text-align: center; }
.chat-ans button:hover { border-color: var(--accent); }
.chat-ans button[aria-pressed="true"] { border: 2px solid var(--accent); color: var(--accent); font-weight: 700; }
.chat-ans button:disabled { opacity: .5; cursor: wait; }
.chat-ans button:focus-visible, .me-edit:focus-visible, .tog:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.chat-older summary { cursor: pointer; color: var(--muted); font-size: 14px; margin: 4px 0; }
.chat-older[open] { display: flex; flex-direction: column; gap: 8px; }
.chat-err { color: var(--danger); margin: 0; }
.chat-foot { margin-top: 8px; }
@media (min-width: 640px) { .chat-ans:not(.edit) { grid-template-columns: repeat(5, minmax(0, 1fr)); } .chat-ans.edit { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.me-edit, .tog { color: inherit; border-color: currentColor; }
.tog[aria-pressed="true"] { background: var(--bg); color: var(--accent); }
@media (prefers-color-scheme: dark) { .bub.me { color: var(--bg); } }

/* 진행 방식 고르기 · 내 상담 (흐름 개편 결정 137 ~ 141) */
.mode-pick { display: grid; gap: 12px; margin: 20px 0; }
@media (min-width: 640px) { .mode-pick { grid-template-columns: 1fr 1fr; } }
.mode-card { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 18px; font: inherit; color: var(--fg); background: var(--bg);
  border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.mode-card:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-bg); }
.mode-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mode-card:disabled { cursor: not-allowed; opacity: .6; }
.mode-name { font-size: 19px; font-weight: 700; }
.mode-text { color: var(--muted); line-height: 1.5; }
.mode-card.rec:not(:disabled) { border: 2px solid var(--accent); padding: 17px; }   /* 추천 카드 — 테두리 2px(안쪽 크기는 그대로) */
.mode-rec { display: inline-block; margin-left: 4px; padding: 2px 8px; font-size: 13px; font-weight: 700; color: var(--bg); background: var(--accent); border-radius: 999px; vertical-align: 2px; }
.mode-soon { font-size: 13px; font-weight: 400; padding: 2px 8px; border-radius: 999px; background: var(--notice-bg); border: 1px solid var(--line); }
.mine-item { margin: 10px 0; }
.mine-item .btn { margin-top: 10px; }
.agree-must { color: var(--fg); font-weight: 700; margin: 10px 0 0; }
.box.sub .mini-table th { white-space: nowrap; padding-right: 14px; color: var(--muted); }
.box.sub .mini-table td { word-break: keep-all; }

/* AI 대화형 「나에 대해」(결정 139) */
/* 질문 말풍선 — 안내 말풍선(회색)과 구분: 맨 위 「질문 N」 띠 · 강조색 바탕 · 굵게.
   지금 질문(AI 대화형 now · 채팅 cur)은 진한 띠와 테두리 — 아래 답하는 칸과 짝. 지난 질문은 옅은 띠 */
.bub.bot.ask { background: var(--accent-bg); font-size: 17px; font-weight: 700; padding-top: 0; overflow: hidden; }
.bub.bot.ask.now, .bub.bot.ask.cur { border: 2px solid var(--accent); font-size: 18px; }
.q-band { display: block; margin: 0 -14px 10px; padding: 5px 14px; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--accent); background: var(--line); white-space: normal; }
.bub.bot.ask.now .q-band, .bub.bot.ask.cur .q-band { color: #fff; background: var(--accent); }
@media (prefers-color-scheme: dark) { .bub.bot.ask.now .q-band, .bub.bot.ask.cur .q-band { color: var(--bg); } }
.q-lead { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 400; color: var(--fg); }
.ai-hint { font-weight: 400; color: var(--muted); font-size: 14px; }
.bub.bot.note-small { font-size: 14px; color: var(--muted); }
.bub.bot.help { border: 2px solid var(--danger); background: var(--bg); }
.ai-tip { margin: 0 0 8px; font-size: 14px; color: var(--muted); word-break: keep-all; }
.ai-tip:empty { display: none; }
.ai-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.ai-quick-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.ai-quick[hidden] { display: none; }
.ai-picker { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-chip { font: inherit; font-size: 15px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; word-break: keep-all; }
.ai-chip.ghost { border-style: dashed; color: var(--muted); }
.ai-chip[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--accent-bg); color: var(--accent); font-weight: 700; padding: 7px 11px; }
.ai-chip:focus-visible, .ai-more:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ai-more { align-self: flex-start; font: inherit; font-size: 14px; color: var(--accent); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; }
.ai-msg:empty { display: none; }
/* 답하는 카드 — 지금 질문과 같은 진한 테두리 */
.ai-in { background: var(--bg); padding: 12px; margin-top: 4px; border: 2px solid var(--accent); border-radius: 14px; }
.ai-in-head { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--accent); }
.ai-in textarea { display: block; width: 100%; box-sizing: border-box; padding: 10px; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; resize: vertical; }
.ai-in textarea:focus { outline: none; border: 2px solid var(--accent); padding: 9px; }
.ai-in-row { display: flex; gap: 8px; margin-top: 8px; }
.ai-act { flex: 1; min-height: 48px; margin: 0; padding: 0 14px; box-sizing: border-box; font: inherit; font-weight: 700; color: #fff; background: var(--accent); border: 2px solid var(--accent); border-radius: 10px; cursor: pointer; }
.ai-act.line { flex: none; color: var(--accent); background: var(--bg); }
.ai-act[hidden] { display: none; }
.ai-act:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .ai-act { color: #0d1117; } .ai-act.line { color: var(--accent); } }
.ai-privacy { margin: 8px 0 0; }
/* 단계 끝 「다음 단계」 카드 — AI 대화형의 답하는 카드와 같은 모양 */
.stage-next { margin-top: 4px; padding: 12px; border: 2px solid var(--accent); border-radius: 14px; }
.ai-back { margin-top: 8px; }
.saved-line { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--accent-bg); color: var(--fg); font-weight: 700; word-break: keep-all; }
.step[hidden], .opt[hidden] { display: none; }
.step-no { font-size: 14px; color: var(--accent); margin-right: 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.foot-links a { padding: 8px 12px; font-size: 14px; color: var(--accent); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.foot-links a:hover { border-color: var(--accent); }
.form-hint { margin: 16px 0 0; font-size: 15px; color: var(--fg); word-break: keep-all; }
.ai-go { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.bub.me a.me-edit { text-decoration: none; }
fieldset.q.q-ai { border: 0; padding: 0; margin-top: 0; }

/* 운영자 — 결과 보내기(결정 139 · 141) */
.send-tabs { display: flex; gap: 8px; }
.send-tabs .tab { text-decoration: none; }
.send-table td { vertical-align: top; }
.send-table tr.sent { opacity: .6; }
.admin-table.send-table td.send-msg { white-space: normal; min-width: 280px; max-width: 460px; word-break: keep-all; overflow-wrap: anywhere; }
.send-to { white-space: nowrap; }
.badge.warn { background: var(--danger-bg); color: var(--danger); }

/* 말풍선 차례로 나오기(chatfx.js) — 늦게 나올 것은 자리만 잡고 숨어 있다가 떠오른다 */
@keyframes fx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fx-in { animation: fx-in .3s ease-out both; }
@media (prefers-reduced-motion: reduce) { .fx-in { animation: none; } }

/* ---- 운영자 화면(PC 기준 · 2026-11-03) ---- */
.admin-alert { margin: 12px 0; padding: 12px 16px; border: 2px solid var(--accent); border-radius: 12px; background: var(--accent-bg); }
.admin-alert p { margin: 4px 0; }
.admin-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .admin-charts { grid-template-columns: 1fr; } }
.mode-row { display: grid; grid-template-columns: 90px 1fr 210px; gap: 10px; align-items: center; margin: 6px 0; font-size: 14px; }
.mode-row-bars { display: block; }
.hbar { display: block; height: 10px; min-width: 2px; border-radius: 0 4px 4px 0; }
.hbar + .hbar { margin-top: 2px; }
.hbar.start { background: var(--line); }
.hbar.fin { background: var(--chart); }
.sw.start { background: var(--line); }
.mode-row-num, .fun-num { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.fun-row { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; margin: 4px 0; font-size: 14px; }
.fun-track { display: block; }
.fun-num { text-align: right; }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0; }
.admin-actions .btn { width: auto; margin: 0; padding: 10px 18px; }
.people-table td.wrap, .about-table td.wrap { white-space: normal; min-width: 120px; }
.people-table td.links { white-space: nowrap; }
.comment-row td.wrap { white-space: normal; }
.admin-cannot { margin: 16px 0 8px; font-size: 14px; }
.admin-cannot summary { cursor: pointer; }
.admin-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.person-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-table.kv th { color: var(--muted); padding-right: 16px; white-space: nowrap; vertical-align: top; }
.admin-list { margin: 4px 0 8px; padding-left: 18px; }
.about-table td:nth-child(2) { min-width: 260px; }
