/* 구독자 대시보드 — 출근길 1분에 읽히게. 따뜻한 중립(stone) + 강조색 teal 하나.
   위계: 결론(경쟁·가격·내 자격) → 근거 → 검증 과정. 숫자는 크게, 설명은 회색으로 */
:root { --bg: #fafaf9; --surface-2: #f5f5f4; --line: #e7e5e4; --line-soft: #f0efed;
  --ink: #1c1917; --ink-2: #44403c; --mute: #78716c; --faint: #a8a29e;
  --accent: #0f766e; --accent-soft: #f0fdfa; --accent-ink: #115e59; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f0e0d; --surface: #171514; --surface-2: #1f1d1b; --line: #2c2926; --line-soft: #23201e;
  --ink: #f5f5f4; --ink-2: #d6d3d1; --mute: #a8a29e; --faint: #78716c;
  --accent: #2dd4bf; --accent-soft: #042f2e; --accent-ink: #99f6e4; } }
:root[data-theme="dark"] { --bg: #0f0e0d; --surface: #171514; --surface-2: #1f1d1b; --line: #2c2926; --line-soft: #23201e;
  --ink: #f5f5f4; --ink-2: #d6d3d1; --mute: #a8a29e; --faint: #78716c; --accent: #2dd4bf; --accent-soft: #042f2e; --accent-ink: #99f6e4; }

body { font-size: 15px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.appbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.appbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.logo i { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 14px; }
.logo:hover { text-decoration: none; }
.prof-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 99px;
  padding: 6px 8px 6px 14px; font-size: 13px; cursor: pointer; color: var(--ink-2); max-width: 70vw; }
.prof-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-chip b { background: var(--accent-soft); color: var(--accent-ink); border-radius: 99px; padding: 1px 9px; font-weight: 600; font-size: 12px; white-space: nowrap; }

/* 홈 */
.hero { padding: 32px 0 8px; }
.hero h1 { margin: 0; font-size: 28px; line-height: 1.3; letter-spacing: -0.03em; font-weight: 750; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin: 8px 0 0; color: var(--mute); }
.upcoming { display: flex; gap: 10px; overflow-x: auto; padding: 18px 0 6px; scroll-snap-type: x mandatory; }
.up { flex: none; scroll-snap-align: start; width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 12px 14px; cursor: pointer; transition: border-color .15s, transform .15s var(--ease); text-align: left; }
.up:hover { border-color: var(--accent); transform: translateY(-1px); }
.up .dd { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.up .dd.today { color: var(--bad); } .up .dd.soon { color: var(--warn); }
.up .what { font-size: 13px; color: var(--ink-2); font-weight: 600; margin-top: 2px; }
.up .who { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 20px 0 14px; }
.count-l { font-size: 13px; color: var(--mute); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-bottom: 24px; }
.nc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 18px 18px 16px; cursor: pointer;
  transition: border-color .15s, box-shadow .2s var(--ease), transform .2s var(--ease); display: flex; flex-direction: column; gap: 12px; text-align: left; color: inherit; }
.nc:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.nc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nc h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
.nc .addr { font-size: 13px; color: var(--mute); margin-top: 2px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.metrics > div { padding: 10px 12px; border-right: 1px solid var(--line-soft); min-width: 0; }
.metrics > div:last-child { border-right: 0; }
.metrics .l { font-size: 11.5px; color: var(--mute); font-weight: 500; }
.metrics .v { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metrics .s { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.down { color: var(--ok); } .up-c { color: var(--bad); }
.mine { display: flex; flex-wrap: wrap; gap: 6px; }
.oneliner { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.pending { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--mute); }
.pending i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; box-shadow: 0 0 0 3px var(--warn-soft); }

/* 경쟁 강도 배지 */
.lv { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.lv::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.lv-low { color: var(--lv-low); } .lv-medium { color: var(--lv-medium); } .lv-high { color: var(--lv-high); } .lv-extreme { color: var(--lv-extreme); }
.lvbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 10px; }
.lvbar i { height: 6px; border-radius: 2px; background: var(--surface-2); }
.lvbar i.on.low { background: var(--lv-low); } .lvbar i.on.medium { background: var(--lv-medium); }
.lvbar i.on.high { background: var(--lv-high); } .lvbar i.on.extreme { background: var(--lv-extreme); }
.lvbar-l { display: grid; grid-template-columns: repeat(4, 1fr); font-size: 10.5px; color: var(--faint); margin-top: 4px; }

/* 상세 */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 20px 0 8px; font-size: 14px; color: var(--mute); }
.dhead { padding: 4px 0 18px; }
.dhead h1 { margin: 8px 0 4px; font-size: 30px; line-height: 1.25; letter-spacing: -0.03em; font-weight: 780; }
.dhead .addr { color: var(--mute); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.timeline { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(110px, 1fr); gap: 0; margin: 6px 0 20px; overflow-x: auto; padding: 6px 2px 4px; }
.timeline .tp { position: relative; padding-top: 22px; min-width: 110px; }
.timeline .tp::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline .tp::after { content: ""; position: absolute; top: 2px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.timeline .tp.past::before, .timeline .tp.past::after { background: var(--accent); border-color: var(--accent); }
.timeline .tp.next::after { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline .tp b { display: block; font-size: 13px; font-weight: 650; }
.timeline .tp span { font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.timeline .tp .d { font-weight: 700; color: var(--accent); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 16px; min-width: 0; }
.tile .l { font-size: 12.5px; color: var(--mute); font-weight: 600; }
.tile .v { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tile .s { font-size: 12.5px; color: var(--mute); margin-top: 6px; line-height: 1.5; }
.dgrid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { margin: 0 0 4px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel .why { color: var(--mute); font-size: 13px; margin: 0 0 14px; }
.panel h4 { margin: 16px 0 6px; font-size: 13px; color: var(--mute); font-weight: 650; }
.panel ul { margin: 0; padding-left: 18px; line-height: 1.7; color: var(--ink-2); }
.panel p { line-height: 1.7; color: var(--ink-2); margin: 0; }
.check li { list-style: none; position: relative; padding-left: 4px; }
.check { padding-left: 18px !important; }
.check li::before { position: absolute; left: -16px; font-weight: 800; }
.check li.ok::before { content: "✓"; color: var(--ok); } .check li.no::before { content: "!"; color: var(--bad); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--mute); } .kv dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 64px; gap: 10px; align-items: center; font-size: 13px; padding: 5px 0; }
.bar-row .track { height: 8px; background: var(--surface-2); border-radius: 99px; position: relative; overflow: hidden; }
.bar-row .track i { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.bar-row .track .mid { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--faint); }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 44px; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 2; }
.spark circle { fill: var(--accent); }
.fb { display: inline-flex; gap: 4px; }
.fb button { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 2px 10px; cursor: pointer; font-size: 13px; color: var(--mute); }
.fb button:hover { border-color: var(--accent); color: var(--accent); }
.fb button.done { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.debate { border-left: 2px solid var(--line); margin-left: 6px; padding-left: 14px; display: grid; gap: 10px; }
.debate div { font-size: 13px; line-height: 1.6; color: var(--ink-2); position: relative; }
.debate div::before { content: ""; position: absolute; left: -20px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.debate .b::before { border-color: #4f46e5; } .debate .c::before { border-color: var(--bad); } .debate .end::before { background: var(--accent); border-color: var(--accent); }
.debate b { font-size: 12px; color: var(--mute); margin-right: 6px; }
details.more summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
.foot { padding: 28px 0 60px; color: var(--faint); font-size: 12.5px; line-height: 1.7; border-top: 1px solid var(--line); margin-top: 24px; }

/* 조건 시트 */
.sheet-bg { position: fixed; inset: 0; background: rgb(12 10 9 / .45); z-index: 50; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: var(--surface); border-radius: var(--r-xl); width: min(520px, 100%); max-height: 90vh; overflow: auto; padding: 22px; box-shadow: var(--shadow-lg); animation: rise .2s var(--ease); }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
.sheet h2 { margin: 0 0 4px; font-size: 19px; letter-spacing: -0.02em; }
.sheet .why { color: var(--mute); font-size: 13px; margin: 0 0 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input[type=number] { height: 42px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 12px; font: inherit; background: var(--surface); color: var(--ink); }
.field .hint { font-size: 12px; color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; cursor: pointer; font-size: 13px; user-select: none; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chips label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.sheet-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dgrid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 23px; } .dhead h1 { font-size: 24px; }
  .wrap { padding: 0 16px; }
}
@media (max-width: 420px) { .metrics .v { font-size: 15px; } .tile .v { font-size: 22px; } }

/* 텔레그램 알림 받기 */
.subcard { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line); }
.subcard > span { font-size: 22px; }
.subcard > div { flex: 1; min-width: 0; font-size: 14px; }
.subcard .mute { font-size: 13px; margin-top: 2px; }
.subcard.on { background: var(--accent-soft); border-color: transparent; }
.subcard.on b { color: var(--accent-ink); }
.steps { margin: 4px 0 14px; padding-left: 20px; line-height: 1.9; color: var(--ink-2); }
.sub-cond { display: grid; gap: 2px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r); font-size: 14px; }
.sub-cond .mute { font-size: 12px; }
a.btn.primary { color: #fff; text-decoration: none; }
@media (max-width: 520px) { .subcard { flex-wrap: wrap; } .subcard .btn { width: 100%; justify-content: center; } }

.pending.done i { background: var(--faint); box-shadow: 0 0 0 3px var(--surface-2); }

.first-sale { background: var(--warn-soft); border-radius: var(--r); padding: 4px 14px 10px; margin: 0 0 12px; }
.first-sale h4 { margin-top: 10px; }

/* 수집한 반응·기사 — SNS·카페·뉴스 갈래별 카드 (출처 비공개) */
.src-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.src-grid > * { min-width: 0; }
.src { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.src-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.src-h .mute { font-size: 12px; }
.src-h .pill { margin-left: auto; }
.src p { margin: 0 0 6px; font-size: 14px; line-height: 1.6; }
.src ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }

/* ── 2026-11-06 가독성 개편 — 한 화면에 결론 하나, 글자 크기 4단계(13·15·19·28), 알약은 상태에만 ──
   근거: docs/UX.md (휴리스틱 평가). 숫자는 크게, 설명은 회색 15px, 줄 길이 40자 안팎 */
body { font-size: 15px; line-height: 1.65; }
.hero { padding: 28px 0 4px; }
.hero h1 { font-size: 28px; letter-spacing: -0.035em; }
.hero p { font-size: 15px; margin-top: 10px; }
.hero p b { color: var(--ink); font-weight: 700; }
.upcoming { padding: 20px 0 4px; }
.up { width: 196px; padding: 12px 14px 11px; }
.up .dd { font-size: 22px; }
.up .what { font-size: 13px; }
.up .who { font-size: 13px; color: var(--ink-2); }
.filters { padding: 18px 0 12px; gap: 8px; }
.filters .seg { max-width: 100%; overflow-x: auto; }

/* 공고 카드: 상태 → 이름 → 결론(지원 가능?) → 숫자 3개 → 한 줄 평 */
.nc { gap: 14px; padding: 18px 18px 18px; }
.nc h3 { font-size: 19px; }
.nc .addr { font-size: 13px; margin-top: 3px; }
.nc .next { font-size: 13px; color: var(--mute); white-space: nowrap; }
.nc .next b { color: var(--ink); font-weight: 700; }
.verdict { display: grid; gap: 3px; padding: 12px 14px; border-radius: var(--r-lg); border-left: 3px solid var(--line); background: var(--surface-2); }
.verdict b { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.verdict span { font-size: 13px; color: var(--mute); line-height: 1.5; }
.verdict.ok { border-left-color: var(--ok); background: var(--ok-soft); } .verdict.ok b { color: var(--ok); }
.verdict.no { border-left-color: var(--bad); background: var(--bad-soft); } .verdict.no b { color: var(--bad); }
.verdict.ask { border-left-color: var(--accent); background: var(--accent-soft); } .verdict.ask b { color: var(--accent-ink); }
.metrics { border-color: var(--line); }
.metrics > div { padding: 11px 12px 10px; border-right-color: var(--line); }
.metrics .l { font-size: 12px; }
.metrics .v { font-size: 18px; margin-top: 3px; }
.metrics .s { font-size: 12px; margin-top: 2px; }
.oneliner { font-size: 15px; color: var(--ink); line-height: 1.6; }
.pending { font-size: 13px; }

/* 상세: 제목 → 일정 → 한눈에 3칸 → 결론 → 자격 → 근거 */
.dhead h1 { font-size: 28px; margin-top: 10px; }
.dhead .addr { font-size: 14px; }
.timeline { margin: 4px 0 18px; }
.timeline .tp b { font-size: 13px; } .timeline .tp span { font-size: 13px; }
.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 16px 16px 14px; }
.tile .l { font-size: 13px; }
.tile .v { font-size: 24px; margin-top: 4px; }
.tile .s { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.tile .s b { font-weight: 700; }
.tile.t-ok { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); } .tile.t-ok .v { color: var(--ok); }
.tile.t-no { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); } .tile.t-no .v { color: var(--bad); }
.lvbar-l { font-size: 11px; }
.panel { padding: 22px 20px; }
.panel h2 { font-size: 19px; margin-bottom: 6px; }
.panel .why { font-size: 13px; line-height: 1.6; }
.panel .lead { font-size: 17px; line-height: 1.6; color: var(--ink); font-weight: 650; letter-spacing: -0.01em; margin: 6px 0 4px; max-width: 34em; }
.panel h4 { font-size: 13px; margin: 18px 0 6px; }
.panel ul { line-height: 1.75; font-size: 15px; max-width: 40em; }
.panel ul li + li { margin-top: 4px; }
.panel p { font-size: 15px; line-height: 1.75; max-width: 40em; }
.panel .unresolved { font-size: 13px; color: var(--mute); margin-top: 14px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--r); }
.panel .unresolved b { color: var(--ink-2); margin-right: 6px; }
.kv { font-size: 15px; gap: 10px 16px; }
.kv dd.mute { font-weight: 500; }
.check li { font-size: 15px; }
.src p { font-size: 15px; } .src ul { font-size: 14px; }
.bar-row { font-size: 14px; }
.foot { font-size: 13px; }
.subcard { margin: 4px 0 8px; }

@media (max-width: 860px) {
  .hero h1 { font-size: 24px; } .dhead h1 { font-size: 24px; }
  .tiles { grid-template-columns: 1fr; gap: 10px; }
  .tile { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l v" "s s"; align-items: baseline; padding: 14px 16px; }
  .tile .l { grid-area: l; } .tile .v { grid-area: v; font-size: 22px; margin: 0; } .tile .s { grid-area: s; margin-top: 6px; }
  .tile .lvbar, .tile .lvbar-l { grid-column: 1 / -1; }
  .panel { padding: 18px 16px; }
  .nc { padding: 16px 16px 16px; }
}

/* 화면 밝기 버튼 (theme.js) — 조건 칩 옆 */
.bar-r { display: flex; align-items: center; gap: 4px; min-width: 0; }
#btn-theme { font-size: 16px; color: var(--mute); flex: none; }
@media (max-width: 520px) { .prof-chip { max-width: calc(100vw - 150px); } }

/* 판단표 + 내가 할 일 (상세 상단 — 긴 근거를 다 읽지 않아도 되게) */
.judge { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0; margin-top: 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.judge > div { padding: 20px; }
.judge-r { border-left: 1px solid var(--line); background: var(--surface-2); }
.judge h2 { margin: 0 0 12px; font-size: 19px; letter-spacing: -0.02em; }
.judge h2 .mute { font-size: 13px; font-weight: 500; margin-left: 6px; }
.sig { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sig li { display: grid; grid-template-columns: 12px 92px 1fr; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.sig li:last-child { border-bottom: 0; }
.sig li i { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); transform: translateY(1px); }
.sig li.good i { background: var(--ok); } .sig li.mid i { background: var(--warn); } .sig li.bad i { background: var(--bad); }
.sig li b { font-size: 13px; color: var(--mute); font-weight: 600; }
.sig li span { color: var(--ink); }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.todo li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: start; font-size: 15px; }
.todo .when { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; display: grid; }
.todo .when b { font-size: 17px; color: var(--accent); font-weight: 800; }
.todo em { display: block; font-style: normal; font-size: 13px; color: var(--mute); }
.judge h4 { margin: 16px 0 6px; font-size: 13px; color: var(--mute); }
.chk2 { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 860px) {
  .judge { grid-template-columns: 1fr; }
  .judge-r { border-left: 0; border-top: 1px solid var(--line); }
  .judge > div { padding: 18px 16px; }
  .sig li { grid-template-columns: 12px 80px 1fr; }
}

/* 공고가 1건이면 카드를 가로로 꽉 채운다 (오른쪽 빈칸 방지) */
.cards > .nc:only-child { grid-column: 1 / -1; }

/* 카드 안 공고별 단계 — 여러 단지를 섞은 일정 레일 대신 (사용자 결정 2026-11-06) */
.steps-mini { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.steps-mini li { position: relative; padding-top: 12px; min-width: 0; }
.steps-mini li::before { content: ""; position: absolute; top: 3px; left: 0; right: 0; height: 3px; border-radius: 2px; background: var(--line); }
.steps-mini li.past::before { background: var(--accent); opacity: .45; }
.steps-mini li.next::before { background: var(--accent); }
.steps-mini b { display: block; font-size: 12px; font-weight: 650; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps-mini span { display: block; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.steps-mini li.past b, .steps-mini li.past span { color: var(--faint); }
.steps-mini li.next b { color: var(--accent-ink); } .steps-mini li.next span { color: var(--accent); font-weight: 700; }

/* 헤더 '참여 신청' — 초대 베타 중 비구독자에게만 */
#hdr-apply { height: 32px; padding: 0 12px; font-size: 13px; flex: none; }
@media (max-width: 520px) { #hdr-apply { padding: 0 10px; } .prof-chip { max-width: calc(100vw - 230px); } }

/* 사용법 모달 — 채팅 화면 한 장씩 ◀ ▶ */
.gm { background: var(--surface); border-radius: var(--r-xl); width: min(440px, 100%); max-height: 94vh; overflow: auto; padding: 16px 16px 14px;
  box-shadow: var(--shadow-lg); animation: rise .2s var(--ease); }
.gm-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.gm-head h2 { margin: 0; font-size: 17px; letter-spacing: -0.02em; }
.gm-stage { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; align-items: center; gap: 6px; }
/* 휴대폰 크기는 /guide 와 같고, 화면이 낮거나 좁으면 모든 장이 똑같이 줄어든다 (장마다 크기가 바뀌지 않게) */
.gm-slide .phone { --pw: min(264px, calc(100vw - 128px), max(216px, calc((94vh - 262px) * 9 / 19.5))); width: 100%; margin: 0; }
.gm-slide .phone .cap { min-height: calc(1.6em * 3); }
.gm-slide .ph-skel { width: var(--pw); aspect-ratio: 9 / 19.5; margin: 0 auto; border-radius: 38px; }
.gm-nav { width: 32px; height: 48px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink);
  font-size: 22px; cursor: pointer; display: grid; place-items: center; }
.gm-nav:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.gm-nav:disabled { opacity: .3; cursor: default; }
.gm-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; min-height: 36px; }
.gm-dots { display: flex; gap: 6px; }
.gm-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.gm-dots button.on { background: var(--accent); width: 20px; border-radius: 99px; }
@media (max-width: 520px) { .gm-stage { grid-template-columns: 26px minmax(0, 1fr) 26px; } .gm-nav { width: 26px; } }

/* ── 성능·모션 (2026-11-06) — 움직임은 transform·opacity 만, 150~250ms, 동작 줄이기 설정이면 끔 ── */
/* 터치 기기: 스크롤마다 다시 칠해야 하는 상단바 흐림(backdrop-filter) 대신 거의 불투명한 배경 */
@media (hover: none) { .appbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--bg) 96%, transparent); } }
/* 마우스 올림 효과는 마우스가 있는 기기에서만 — 터치하면 :hover 가 남아 카드가 들뜬 채로 넘어가던 문제 */
@media (hover: none) {
  .nc:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .up:hover { transform: none; }
}

/* 누름 반응 */
.nc, .btn, .seg button, .prof-chip, .chips label, .gm-nav, .fb button, .gm-dots button, .back, .logo { -webkit-tap-highlight-color: transparent; }
.btn, .prof-chip, .chips label, .gm-nav, .fb button, .seg button { transition: background-color .15s, border-color .15s, color .15s, opacity .15s, transform .15s var(--ease); }
.nc:active { transform: scale(.985); transition-duration: .1s; }
@media (hover: hover) { .nc:hover:active { transform: translateY(-1px) scale(.99); } }
.btn:active:not([disabled]), .prof-chip:active, .chips label:active, .fb button:active, .seg button:active { transform: scale(.96); transition-duration: .08s; }
.gm-nav:active:not(:disabled) { transform: scale(.92); transition-duration: .08s; }
.back { transition: opacity .15s; } .back:active { opacity: .6; }
.btn[disabled] { transition: opacity .15s; }

/* 세그먼트: 눌린 칸 표시판 하나가 미끄러짐 (app.js segInd) */
.seg.has-ind { position: relative; }
.seg.has-ind button { position: relative; z-index: 1; }
.seg.has-ind button[aria-pressed="true"] { background: transparent; box-shadow: none; }
.seg-ind { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 6px; background: var(--surface); box-shadow: var(--shadow);
  transform-origin: 0 50%; transition: transform .22s var(--ease); pointer-events: none; }

/* 화면 전환: 목록 → 상세는 오른쪽에서, 뒤로는 왼쪽에서, 같은 화면 갱신은 살짝 떠오름 */
@keyframes in-fwd { from { opacity: 0; transform: translateX(14px); } }
@keyframes in-back { from { opacity: 0; transform: translateX(-14px); } }
@keyframes in-fade { from { opacity: 0; transform: translateY(6px); } }
#view.in-fwd { animation: in-fwd .22s var(--ease); }
#view.in-back { animation: in-back .2s var(--ease); }
.in-fade { animation: in-fade .2s var(--ease); }

/* 카드 목록: 위에서부터 차례로 (최대 8번째까지만 지연 — 전체가 0.5초 안에 끝남) */
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }
.cards > .nc:not(.sk-card) { animation: card-in .24s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 35ms); }
.no-stagger .cards > .nc { animation: none; }
.sk-card { cursor: default; pointer-events: none; }

/* 모달: 들어올 때 배경 페이드 + 판 떠오름, 나갈 때 반대로 */
@keyframes fade-out { to { opacity: 0; } }
@keyframes sink { to { opacity: 0; transform: translateY(8px) scale(.98); } }
.sheet-bg.out { animation: fade-out .15s ease-in forwards; pointer-events: none; }
.sheet-bg.out > .sheet, .sheet-bg.out > .gm { animation: sink .15s ease-in forwards; }
@keyframes rise { from { transform: translateY(12px) scale(.98); opacity: 0; } }
/* 사용법 모달 장 넘김 */
@keyframes in-next { from { opacity: 0; transform: translateX(18px); } }
@keyframes in-prev { from { opacity: 0; transform: translateX(-18px); } }
.gm-slide.in-next { animation: in-next .2s var(--ease); }
.gm-slide.in-prev { animation: in-prev .2s var(--ease); }
.gm-slide { min-width: 0; }

/* 토스트: 바뀌는 속성만 */
.toast { transition: transform .2s var(--ease), opacity .2s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .nc:active, .btn:active, .prof-chip:active, .chips label:active, .fb button:active, .seg button:active, .gm-nav:active { transform: none; }
}
