/* 회의담다 웹 — 담다 시리즈 공통 문법(사진담다 docs/DESIGN.md v1.2: 먹색 머리·흰 카드·모서리 14/20/24·상태색 공통). 브랜드색만 회의담다 초록(앱 ios/App/Theme.swift 와 같은 값). */
:root {
  --bg: #F9F8F5; --surface: #FFFFFF; --bg-subtle: #F2F0EB;
  --fg: #2B2B2B; --fg-muted: #626160; --line: #D2CEC8; --line-strong: #7A7877; --line-subtle: #E7E5E1;
  --action: #2B2B2B; --fg-on-action: #FFFFFF;
  --brand: #3B9C6E; --brand-text: #2A7A55; --brand-bg: #EAF5EF; --brand-on-hero: #8FD6B0;
  --ok: #16A34A; --fg-success: #147B3A; --danger: #DC2626; --fg-danger: #B91C1C; --bg-danger: #FDEDEA;
  --hero: linear-gradient(160deg, #3B3A3A, #2B2B2B); --on-hero-muted: rgba(255,255,255,.8); --hero-line: rgba(255,255,255,.12);
  --r-control: 14px; --r-card: 20px; --r-float: 24px; --hit: 44px;
  --shadow-card: 0 2px 8px rgba(0,0,0,.06);
  --t-28: 28px; --t-26: 26px; --t-20: 20px; --t-17: 17px; --t-15: 15px; --t-13: 13px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: var(--t-17)/1.55 Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; word-break: keep-all; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

.hero { background: var(--hero); color: #fff; padding: 12px 0 56px; border-radius: 0 0 var(--r-float) var(--r-float); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--hit); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: var(--t-20); min-height: var(--hit); }
.brand img { border-radius: 8px; }
nav { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; border: 0; text-decoration: none; font-size: var(--t-15); font-weight: 600; cursor: pointer; }
.pill:hover { background: rgba(255,255,255,.2); }
#head { margin-top: 20px; }
#head h1 { margin: 0; font-size: var(--t-26); line-height: 34px; font-weight: 700; }
#head .sub { margin-top: 6px; color: var(--on-hero-muted); font-size: var(--t-15); }
#head .kicker { color: var(--brand-on-hero); font-size: var(--t-15); font-weight: 600; margin-bottom: 4px; }
#head .back { display: inline-flex; align-items: center; min-height: var(--hit); color: var(--on-hero-muted); font-size: var(--t-15); font-weight: 600; text-decoration: none; }
.title-input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--hero-line); color: #fff; font-size: var(--t-26); font-weight: 700; padding: 4px 0; }
.title-input:focus { outline: none; border-bottom-color: var(--brand-on-hero); }

main.wrap { margin-top: -36px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 20px; }
.card h2 { margin: 0 0 12px; font-size: var(--t-20); line-height: 28px; font-weight: 700; }
.card p { margin: 0 0 8px; }
.muted { color: var(--fg-muted); font-size: var(--t-15); }
.small { font-size: var(--t-15); }
.err { color: var(--fg-danger); font-size: var(--t-15); }
.okmsg { color: var(--fg-success); font-size: var(--t-15); }
.oneline { background: var(--brand-bg); border-radius: var(--r-card); padding: 16px 20px; }
.oneline .label { color: var(--brand-text); font-size: var(--t-15); font-weight: 600; }
.oneline .text { font-weight: 600; }

.list { list-style: none; margin: 0; padding: 0; }
.list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; padding: 10px 4px; text-decoration: none; border-bottom: 1px solid var(--line-subtle); }
.list li:last-child a { border-bottom: 0; }
.list .t { font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--bg-subtle); font-size: var(--t-13); font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.chip.ok::before { background: var(--ok); }
.chip.fail::before { background: var(--danger); }
.chip.busy::before { background: var(--brand); }

.item { padding: 12px 0; border-bottom: 1px solid var(--line-subtle); }
.item:last-child { border-bottom: 0; }
.item .meta { color: var(--fg-muted); font-size: var(--t-15); }
.verdicts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.verdicts button { min-height: var(--hit); padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: var(--t-15); font-weight: 600; cursor: pointer; }
.verdicts button[aria-pressed="true"] { background: var(--action); color: var(--fg-on-action); border-color: var(--action); }
.verdicts button[aria-pressed="true"][data-v="ok"]::before { content: "✓ "; }
.verdicts button[aria-pressed="true"][data-v="wrong"]::before, .verdicts button[aria-pressed="true"][data-v="invented"]::before { content: "! "; }

textarea, input[type="number"] { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--surface); padding: 12px 14px; min-height: var(--hit); }
textarea:focus, input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
label { display: block; font-size: var(--t-15); font-weight: 600; margin: 12px 0 6px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--hit); padding: 0 20px; border-radius: var(--r-control); background: var(--action); color: var(--fg-on-action); border: 0; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.secondary { background: var(--surface); color: var(--fg); border: 1px solid var(--line-strong); }
.btn.danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }
.textbtn { background: none; border: 0; min-height: var(--hit); color: var(--fg-danger); font-weight: 600; cursor: pointer; padding: 0 4px; }
.seg { display: inline-flex; background: var(--bg-subtle); border-radius: var(--r-control); padding: 4px; gap: 4px; }
.seg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.md h3 { font-size: var(--t-17); margin: 16px 0 6px; }
.md h3:first-child { margin-top: 0; }
.md ul { margin: 0 0 8px; padding-left: 20px; }
.md p { margin: 0 0 8px; }

.seg-line { display: flex; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 8px; min-height: var(--hit); cursor: pointer; }
.seg-line:hover { background: var(--bg-subtle); }
.seg-line .time { flex: 0 0 52px; color: var(--fg-muted); font-size: var(--t-15); }
.seg-line .who { display: block; color: var(--fg-muted); font-size: var(--t-15); font-weight: 600; }
.seg-line[aria-current="true"] { background: var(--brand-bg); }
.seg-line[aria-current="true"] .time { color: var(--brand-text); font-weight: 600; }
.player { position: sticky; bottom: 12px; display: flex; align-items: center; gap: 12px; background: var(--action); color: #fff; border-radius: var(--r-control); padding: 8px 8px 8px 16px; }
.player .now { flex: 1; font-size: var(--t-15); }
.player button { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 0; background: rgba(255,255,255,.16); color: #fff; font-weight: 600; cursor: pointer; }

.confirm { background: var(--bg-danger); border-radius: var(--r-control); padding: 16px; }
.apps .app { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-subtle); flex-wrap: wrap; }
.apps .app:last-child { border-bottom: 0; }
.notice { max-width: 560px; margin: 64px auto; padding: 0 16px; }
.notice h1 { font-size: var(--t-26); }

/* 웹 녹음 */
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack:empty { display: none; }
.steps { margin: 0 0 16px; padding-left: 20px; }
.steps li { margin-bottom: 6px; }
.rec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--danger); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
.rec-clock { margin-left: auto; font-size: var(--t-28); font-weight: 700; }
.meter { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.meter span { flex: 0 0 96px; font-size: var(--t-15); font-weight: 600; }
.meter-bar { flex: 1; height: 10px; background: var(--bg-subtle); border-radius: 999px; overflow: hidden; }
.meter-fill { height: 100%; width: 0; background: var(--brand); transition: width .08s linear; }
