/* 강조색은 광진구 CI 청색(#0B308E)·BI 분홍(#E51373) 두 가지, 검수 완료만 CI 녹색(#00A63C) — 상징물 안내 규정값 */
:root {
  --bg: #FFFFFF; --soft: #F5F6F8; --soft-2: #EEF0F3; --line: #ECEEF2; --line-2: #E1E4EA;
  --ink: #111418; --ink-2: #464D5A; --ink-3: #69707D;
  --primary: #0B308E; --primary-2: #0A2A7C; --primary-soft: rgba(11, 48, 142, .07); --cur: #EAF0FC; --hit: #FFF1A8;
  --live: #E51373; --live-ink: #C70F62; --live-soft: rgba(229, 19, 115, .08); --ok: #00A63C; --ok-ink: #007A2C; --ok-soft: rgba(0, 166, 60, .09); --err: #D92D20;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(16, 24, 40, .06);
  --top-h: 64px; --sub-size: 18px; --radius: 14px; --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1117; --soft: #171B22; --soft-2: #1D222B; --line: #20252E; --line-2: #2A303B;
    --ink: #ECEEF2; --ink-2: #B7BDC8; --ink-3: #7F8795;
    --primary: #93AAF5; --primary-2: #A9BCF7; --primary-soft: rgba(147, 170, 245, .12); --cur: rgba(147, 170, 245, .16); --hit: rgba(255, 214, 10, .28);
    --live-ink: #FF5BA0; --live-soft: rgba(229, 19, 115, .16); --ok: #3DD27A; --ok-ink: #3DD27A; --ok-soft: rgba(61, 210, 122, .12); --err: #FF6B5E;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); min-height: 100dvh; display: flex; flex-direction: column;
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
}
#content { flex: 1; display: flex; flex-direction: column; }
a { color: var(--primary); text-decoration: none; }
button { font: inherit; color: inherit; }
input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
svg { flex-shrink: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-3); }
mark { background: var(--hit); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ── 버튼·배지·칩 ── */
.btn-primary, .btn-ghost, .btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); }
@media (prefers-color-scheme: dark) { .btn-primary, .row.cur .ts, button.ts:hover { color: #0E1117 !important; } }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--soft); }
.btn-danger { background: var(--bg); color: var(--err); border-color: color-mix(in srgb, var(--err) 35%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, var(--err) 8%, transparent); }
.btn-ghost svg, .btn-primary svg { width: 17px; height: 17px; }
.btn-ghost.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn-ghost.icon-only { width: 38px; padding: 0; }
button:disabled { opacity: .5; cursor: default; }
.link-btn { border: 0; background: none; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 2px; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--soft-2); color: var(--ink-2); white-space: nowrap; }
.badge.ai { background: var(--primary-soft); color: var(--primary); }
.badge.live { background: var(--live); color: #fff; }
/* 생중계 표시의 깜박이는 흰 점 */
.badge.live::before, .live-pill::before, .live-tag::before, .now-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
.badge.busy { background: var(--live-soft); color: var(--live-ink); }
.badge.err { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer;
}
.chip:hover { background: var(--soft); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip svg { width: 14px; height: 14px; }
@keyframes pulse { 50% { opacity: .35; } }

/* ── 머리 ── */
.top {
  position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 20px; padding: 0 24px;
  border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand img { height: 30px; width: auto; display: block; }
.brand-svc { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; padding-left: 10px; border-left: 1px solid var(--line-2); line-height: 18px; }
.nav { display: flex; gap: 4px; }
.nav a { height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 8px; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a.on { color: var(--ink); background: var(--soft); }
.gsearch { margin-left: auto; position: relative; width: min(380px, 34vw); }
.gsearch svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-3); pointer-events: none; }
.gsearch input {
  width: 100%; height: 40px; border-radius: 10px; border: 1px solid transparent; background: var(--soft); padding: 0 12px 0 38px; font-size: 14px;
}
/* 입력 칸 초점 테두리 (회색 바탕 찾기 칸은 흰 바탕으로) */
.gsearch input:focus, .hsearch input:focus, .fsearch:focus-within, .spk-in:focus, .ops-form input:focus, .dlg input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.gsearch input:focus, .fsearch:focus-within { background: var(--bg); }
.gsearch input::placeholder { color: var(--ink-3); }
.live-pill {
  display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; cursor: pointer; flex-shrink: 0;
  background: var(--live); color: #fff; font-size: 13px; font-weight: 700; padding: 8px 12px;
}
.staff-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; flex-shrink: 0;
}
.staff-btn svg { width: 17px; height: 17px; }
.staff-btn:hover { background: var(--soft); }
.staff-btn.on { border-color: color-mix(in srgb, var(--primary) 35%, transparent); color: var(--primary); background: var(--primary-soft); } /* 녹색은 '검수 완료'에만 */

/* ── 공통 페이지 ── */
.page { width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 24px 56px; }
h1, h2, h3 { letter-spacing: -.02em; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.sec-head h2, .home-side h2 { font-size: 18px; margin: 0; }
.empty, .pane-empty { padding: 40px 16px; text-align: center; color: var(--ink-3); font-size: 15px; line-height: 1.6; margin: 0; white-space: pre-line; }
.pane-empty { padding: 24px 0; text-align: left; }

/* ── 처음 화면 ── */
/* 첫 화면 머리: 찾기가 주인공 — 누가 무슨 말을 했는지가 이 서비스를 여는 가장 흔한 이유 */
.home-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; padding: 32px 36px;
  border-radius: 20px; background: linear-gradient(135deg, var(--primary-soft), color-mix(in srgb, var(--live) 5%, transparent)); border: 1px solid var(--line);
}
.home-intro { flex: 1; min-width: 0; }
.home-head h1 { font-size: 30px; margin: 0 0 8px; }
.home-head p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 600px; }
.home-mascot { width: 132px; height: auto; flex-shrink: 0; }
.hsearch { position: relative; display: flex; gap: 8px; max-width: 600px; margin-top: 22px; }
.hsearch svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.hsearch input {
  flex: 1; min-width: 0; height: 52px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 14px 0 46px; font-size: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.hsearch input::placeholder { color: var(--ink-3); }
.hsearch .btn-primary { height: 52px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.home-head .home-stats { margin-top: 12px; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.home-stats:empty { display: none; }
body[data-page="home"] .gsearch { visibility: hidden; }
.live-card { margin-bottom: 32px; }
.live-link {
  display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 24px; padding: 14px 24px 14px 14px; color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--live) 30%, var(--line)); border-radius: var(--radius); background: var(--live-soft); text-decoration: none;
}
.live-link:hover { box-shadow: var(--shadow); }
.live-art { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; background: #12151C url("/static/brand/ci-white.png") center / 40% no-repeat; }
.live-art .live-tag { position: absolute; top: 10px; left: 10px; }
.live-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--live-ink); }
.live-body strong { font-size: 20px; letter-spacing: -.02em; }
.live-meta { font-size: 14px; color: var(--ink-2); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.mgroup + .mgroup { margin-top: 28px; }
.mgroup-h { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 6px; font-size: 15px; font-weight: 700; color: var(--primary); }
.mgroup-h .muted { font-size: 13px; font-weight: 500; }
.mlist { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.mlist li { border-bottom: 1px solid var(--line); }
.mrow { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 12px; margin: 0 -12px; border-radius: 12px; color: var(--ink); }
.mrow:hover { background: var(--soft); }
.mdate { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; font-weight: 500; }
.mmain { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mtitle { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mtitle strong { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.msum { font-size: 14px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mfacts { display: flex; gap: 12px; font-size: 13px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.home-side { position: sticky; top: calc(var(--top-h) + 24px); padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.schedule { list-style: none; margin: 14px 0 0; padding: 0; }
.schedule li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.schedule li:first-child { border-top: 0; padding-top: 0; }
.schedule time { font-weight: 700; font-variant-numeric: tabular-nums; }
.schedule span { color: var(--ink-2); }
.side-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.6; }

/* ── 모든 회의 검색 ── */
.results-head h1 { font-size: 26px; margin: 0 0 6px; }
.results-head p { margin: 0 0 24px; color: var(--ink-2); }
.rgroup { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.rhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--soft); color: var(--ink); flex-wrap: wrap; }
.rhead strong { font-size: 16px; }
.rhead span { font-size: 13px; color: var(--ink-3); }
.rhead:hover strong { color: var(--primary); }
.rhits { list-style: none; margin: 0; padding: 0; }
.rhits li + li { border-top: 1px solid var(--line); }
.rhit { display: flex; flex-direction: column; gap: 6px; padding: 12px 18px; color: var(--ink); }
.rhit:hover { background: var(--soft); }
.rhit .text { font-size: 15px; line-height: 1.6; }
.rhit .ts::before { content: "▶"; font-size: 8px; margin-right: 5px; vertical-align: 1px; } /* 누르면 그 시각부터 재생 */
.rhits .more a { display: block; padding: 12px 18px; font-size: 14px; font-weight: 600; }

/* ── 회의 화면 ── */
.page.meeting { max-width: 1440px; padding-top: 20px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 28px; align-items: start; }
.stage { min-width: 0; }
.crumb { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 0 0 12px -4px; padding: 4px; }
.crumb svg { width: 16px; height: 16px; }
.crumb:hover { color: var(--ink); }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.player-body, .player-body iframe, .player-body video { width: 100%; height: 100%; border: 0; display: block; }
.player-body video, .player-body iframe { background: #000; }
.live-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  background: var(--live); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 4px 8px; border-radius: 6px; pointer-events: none;
}
.placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 24px; }
.placeholder img { height: 34%; max-height: 132px; width: auto; margin-bottom: 10px; }
.placeholder strong { font-size: 17px; font-weight: 700; }
.placeholder span { font-size: 14px; color: var(--ink-3); }

.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 0; flex-wrap: wrap; }
.speed { display: inline-flex; background: var(--soft); border-radius: 10px; padding: 3px; }
.speed button { border: 0; background: transparent; color: var(--ink-3); font-size: 13px; font-weight: 700; height: 30px; min-width: 44px; padding: 0 8px; border-radius: 8px; cursor: pointer; font-variant-numeric: tabular-nums; }
.speed button:hover { color: var(--ink); }
.speed button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px var(--line); }
.bar-actions { display: flex; gap: 8px; margin-left: auto; }
.menu-wrap { position: relative; }
.chev { width: 14px !important; height: 14px !important; color: var(--ink-3); }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 280px; padding: 6px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.menu-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; color: var(--ink); }
.menu-item:hover { background: var(--soft); }
.menu-item:focus-visible { background: var(--soft); outline: 2px solid var(--primary); outline-offset: -2px; }
.menu-item strong { font-size: 14px; }
.menu-item span { font-size: 12px; color: var(--ink-3); }

.info { padding: 18px 2px 0; }
.info h1 { font-size: 24px; font-weight: 700; margin: 0; line-height: 1.35; }
.meta { margin: 8px 0 0; font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 0 6px; }
.meta span + span::before { content: "·"; margin-right: 6px; color: var(--line-2); }
.meta .on-air { color: var(--live-ink); font-weight: 700; }
.meta .busy { color: var(--live-ink); font-weight: 600; }

.tabs { display: flex; gap: 4px; margin-top: 24px; border-bottom: 1px solid var(--line); }
.tab-subs { display: none; } /* 휴대폰 세로에서만 */
.tabs button {
  border: 0; background: none; padding: 12px 4px; margin-right: 18px; font-size: 15px; font-weight: 700; color: var(--ink-3); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab-pane { padding: 20px 2px 8px; }
.tab-pane h3 { font-size: 15px; font-weight: 700; margin: 24px 0 10px; color: var(--ink); }
.tab-pane h3:first-child { margin-top: 0; }
.tab-pane .note { font-size: 13px; color: var(--ink-3); margin: 0 0 12px; }
.tab-pane .lead { font-size: 16px; line-height: 1.8; color: var(--ink-2); margin: 0; }
.agenda-sum { margin: 0; padding-left: 20px; color: var(--ink-2); line-height: 1.7; }
.agenda-sum > li + li { margin-top: 10px; }
.agenda-sum strong { color: var(--ink); }
.agenda-sum ul { margin: 4px 0 0; padding-left: 16px; }
.actions { list-style: none; margin: 0; padding: 0; }
.actions li { display: grid; grid-template-columns: minmax(80px, auto) 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.actions .who { font-weight: 700; color: var(--ink); }
.toc { list-style: none; margin: 0; padding: 0; }
.toc-item { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; border: 0; background: none; padding: 10px 10px; margin: 0 -10px; border-radius: 10px; color: var(--ink); }
button.toc-item { cursor: pointer; width: calc(100% + 20px); }
button.toc-item:hover { background: var(--soft); }
.toc-head { display: flex; align-items: center; gap: 8px; }
.toc-text { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.people { list-style: none; margin: 0; padding: 0; }
.person {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 6px; gap: 6px 12px; width: calc(100% + 20px); margin: 0 -10px; padding: 10px;
  border: 0; background: none; border-radius: 10px; text-align: left; cursor: pointer; color: var(--ink);
}
.person:hover { background: var(--soft); }
.person.on { background: var(--cur); }
.pname { font-size: 15px; font-weight: 700; }
.pstat { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pbar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--soft-2); overflow: hidden; }
.pbar span { display: block; height: 100%; border-radius: 3px; background: var(--primary); opacity: .75; }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.member { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); text-align: left; font-size: 13px; color: var(--ink-3); }
.member strong { font-size: 15px; color: var(--ink-2); }
button.member { cursor: pointer; }
.member.spoke { border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); background: var(--primary-soft); color: var(--primary); }
.member.spoke strong { color: var(--ink); }
button.member:hover { border-color: var(--primary); }

/* ── 자막 판 ── */
.transcript {
  position: sticky; top: calc(var(--top-h) + 20px); height: calc(100dvh - var(--top-h) - 40px); min-height: 480px;
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg);
}
.t-head { height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 14px; border-bottom: 1px solid var(--line); }
.t-title { font-size: 15px; font-weight: 700; }
.seg { display: inline-flex; background: var(--soft); border-radius: 9px; padding: 3px; }
.seg button { border: 0; background: transparent; color: var(--ink-3); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.seg:not([hidden]) + .t-title { display: none; }
.t-tools { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.icon-btn {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink-2); cursor: pointer; font-size: 14px; font-weight: 700;
}
.icon-btn sup { font-size: 10px; margin-left: 1px; }
.icon-btn:hover { background: var(--soft); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn.sm { width: 28px; height: 28px; }
.review-toggle {
  display: inline-flex; align-items: center; gap: 5px; height: 32px; margin-left: 6px; padding: 0 11px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--ink-2); font-size: 13px; font-weight: 700;
}
.review-toggle svg { width: 15px; height: 15px; }
.review-toggle[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.t-search { padding: 10px 12px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.fsearch { display: flex; align-items: center; gap: 4px; height: 38px; padding: 0 6px 0 10px; border-radius: 10px; background: var(--soft); border: 1px solid transparent; }
.fsearch > svg { width: 16px; height: 16px; color: var(--ink-3); }
.fsearch input { flex: 1; min-width: 0; border: 0; background: transparent; height: 100%; padding: 0 4px; font-size: 14px; outline: none; }
.fsearch input::-webkit-search-cancel-button { cursor: pointer; }
.fcount { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; padding: 0 4px; }
.filter-bar { padding: 8px 12px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.review-bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); background: var(--ok-soft); flex-shrink: 0; font-size: 13px; }
.rb-label { font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rb-pct { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.progress { flex: 1; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; min-width: 40px; }
.progress span { display: block; height: 100%; background: var(--ok); border-radius: 3px; transition: width .3s; }
.progress.sm { height: 5px; width: 80px; flex: none; display: inline-block; vertical-align: middle; margin-right: 8px; }

.subs-wrap { flex: 1; min-height: 0; position: relative; display: flex; }
.subs { flex: 1; overflow-y: auto; position: relative; padding-bottom: 72px; overscroll-behavior: contain; }
/* 줄마다 시각 칩 · 화자가 바뀌면 이름 칩 · 줄 사이 구분선 */
.row { padding: 12px 18px 13px; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.row-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; min-height: 22px; }
.ts {
  font: 600 12px/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--primary); background: var(--primary-soft); border: 0; border-radius: 6px; padding: 5px 7px;
}
.ts.plain { background: transparent; padding: 0; color: var(--ink-3); }
button.ts { cursor: pointer; }
button.ts::before { content: "▶"; font-size: 8px; margin-right: 5px; vertical-align: 1px; }
button.ts:hover { background: var(--primary); color: #fff; }
.spk { font-size: 13px; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.spk.none { color: var(--ink-3); background: var(--soft); }
.text { margin: 0; font-size: var(--sub-size); line-height: 1.65; color: var(--ink); }
.row.new { animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
.vod .row:not(.edit) { cursor: pointer; }
.vod .row:not(.edit):hover { background: var(--soft); }
/* 재생 중인 줄: 굵게 하면 줄바꿈이 바뀌어 글이 들썩이니 바탕·왼쪽 띠로만 */
.row.cur, .vod .row.cur:hover { background: var(--cur); box-shadow: inset 3px 0 0 var(--primary); }
.row.cur .ts { background: var(--primary); color: #fff; }
.row.hit { box-shadow: inset 0 0 0 2px var(--primary); }
/* 발언 차례 머리: 회의록처럼 ○이름, 판을 내려도 위쪽에 남아 지금 누구 말인지 보인다 */
.turn-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: baseline; gap: 10px; padding: 9px 18px 8px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.turn-name { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.turn-name::before { content: "○"; margin-right: 3px; color: var(--ink-3); font-weight: 400; }
.turn-ts { font: 500 12px/1 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.turn-head.none .turn-name { color: var(--ink-3); font-weight: 600; }
.turn:has(.row.cur) .turn-name { color: var(--primary); }
.turn:has(.row.cur) .turn-name::before { content: "●"; color: var(--primary); }
.to-latest {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; z-index: 3;
  border: 0; border-radius: 999px; padding: 9px 16px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .16); cursor: pointer;
}
.to-latest svg { width: 14px; height: 14px; }
/* 생중계: 말하는 중인 글자 */
.now { flex-shrink: 0; padding: 14px 18px 16px; border-top: 1px solid var(--line-2); background: var(--cur); }
.now-tag { display: inline-flex; align-items: center; gap: 5px; background: var(--live); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.now .text { font-size: calc(var(--sub-size) + 2px); font-weight: 600; min-height: 1.65em; }
/* 검수 */
.row.edit { padding-top: 10px; }
.spk-in {
  height: 28px; width: 150px; min-width: 0; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg);
  font-size: 13px; font-weight: 700; color: var(--primary);
}
.spk-in::placeholder { color: var(--ink-3); font-weight: 500; }
.spk-in:placeholder-shown { border-style: dashed; } /* 비어 있는 칸이 채운 칸처럼 보이지 않게 */
.rv {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 9px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--ink-3); font-size: 12px; font-weight: 700; white-space: nowrap;
}
.rv svg { width: 14px; height: 14px; }
.rv:hover { color: var(--ok-ink); border-color: var(--ok); }
.rv[aria-pressed="true"] { background: var(--ok-soft); border-color: var(--ok); color: var(--ok-ink); }
.row.edit .text { border-radius: 8px; padding: 4px 8px; margin: 0 -8px; cursor: text; }
.row.edit .text:hover { background: var(--soft); }
.row.edit .text:focus { outline: none; background: var(--bg); box-shadow: 0 0 0 2px var(--primary); }
.row.edit.done .text { color: var(--ink-2); }
.row.edit.unsaved .text { box-shadow: 0 0 0 2px var(--err); } /* 저장하지 못한 고친 문장 */
.row.unsaved .row-meta::after { content: "저장 안 됨"; font-size: 12px; font-weight: 700; color: var(--err); white-space: nowrap; }

/* ── 운영 ── */
.ops h1 { font-size: 28px; margin: 0 0 24px; }
.ops-sec { margin-bottom: 40px; }
.ops-sec h2 { font-size: 18px; margin: 0 0 12px; }
.ops-sec > .ops-body > p.muted { margin: 0 0 14px; font-size: 14px; line-height: 1.6; }
.ops-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); flex-wrap: wrap; }
.ops-card.on { border-color: color-mix(in srgb, var(--live) 30%, var(--line)); background: var(--live-soft); }
.ops-card > div:first-child { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ops-card strong { font-size: 17px; }
.ops-card .muted { font-size: 14px; }
.ops-actions { display: flex; gap: 8px; }
.ops-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ops-form label { font-size: 14px; font-weight: 700; }
.ops-form input { height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 12px; font-size: 14px; min-width: 240px; }
.ops-form input[type="number"] { min-width: 120px; width: 120px; }
.vods { list-style: none; margin: 0 0 16px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.vods li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.vods li + li { border-top: 1px solid var(--line); }
.vinfo { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.vinfo strong { font-size: 15px; }
.vinfo span { font-size: 13px; }
.vnote { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.vods .vmore { justify-content: center; padding: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.ops-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ops-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--ink-3); padding: 10px 14px; background: var(--soft); white-space: nowrap; }
.ops-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.ops-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tname { display: flex; flex-direction: column; gap: 3px; min-width: 220px; }
.tname span { font-size: 12px; }
.tact { text-align: right; }
.tact .btn-ghost + .btn-ghost { margin-left: 6px; }
.set { border: 1px solid var(--line); border-radius: var(--radius); }
.set-row { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 4px 20px; padding: 18px 20px; }
.set-row + .set-row { border-top: 1px solid var(--line); }
.set-row h3 { font-size: 15px; margin: 8px 0 0; }
.set-body > p { margin: 10px 0 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.set-body > p:first-child { margin-top: 8px; }
.set-body a { color: inherit; text-decoration: underline; }
.set-body .ops-form input[type="url"] { flex: 1; }
.set-note { color: var(--ink-2); }
.set-check { display: flex; align-items: center; gap: 10px; min-height: 38px; font-size: 14px; cursor: pointer; }
.set-check input { width: 18px; height: 18px; flex: none; accent-color: var(--primary); }
.set-terms { display: flex; align-items: flex-end; gap: 10px; }
.set-terms textarea { flex: 1; min-width: 0; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: inherit; padding: 10px 12px; font: inherit; font-size: 14px; line-height: 1.5; resize: vertical; }
.err-note { display: block; margin-top: 4px; font-size: 12px; color: var(--err); max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 대화상자·알림 ── */
.dlg { border: 0; border-radius: 16px; padding: 24px; width: min(420px, calc(100vw - 32px)); background: var(--bg); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.dlg::backdrop { background: rgba(10, 14, 22, .45); }
.dlg h2 { font-size: 19px; margin: 0 0 8px; }
.dlg p { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.dlg label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.dlg input { width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 12px; font-size: 15px; }
.dlg .err { color: var(--err); margin: 8px 0 0; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 16px 0 0; font-size: 14px; align-items: center; }
.keys dt { white-space: nowrap; color: var(--ink-3); font-size: 12px; }
.keys dd { margin: 0; color: var(--ink-2); }
kbd { display: inline-block; min-width: 24px; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--soft); font: 600 12px/1.3 var(--mono); text-align: center; color: var(--ink); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 14px;
  max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2); line-height: 1.5;
}
.toast:empty { padding: 0; box-shadow: none; pointer-events: none; }
.toast-x { display: inline-flex; border: 0; background: none; color: var(--bg); opacity: .7; padding: 4px; margin: -4px -6px -4px -8px; cursor: pointer; border-radius: 6px; }
.toast-x:hover { opacity: 1; }
.toast-x svg { width: 16px; height: 16px; }
.toast-act { border: 0; background: color-mix(in srgb, var(--bg) 18%, transparent); color: var(--bg); font-weight: 700; font-size: 13px; padding: 7px 11px; border-radius: 8px; cursor: pointer; white-space: nowrap; }

/* ── 바닥 ── */
.foot { display: flex; align-items: center; gap: 20px; padding: 18px 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.foot p { margin: 0; flex: 1; line-height: 1.6; }
.foot img { height: 32px; width: auto; display: block; }

@media (prefers-reduced-motion: reduce) {
  .live-tag::before, .now-tag::before, .badge.live::before, .live-pill::before, .row.new { animation: none; }
  .row, .progress span { transition: none; }
}

/* ── 태블릿·휴대폰 ── */
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; }
  .home-grid { grid-template-columns: 1fr; }
  .home-side { position: static; }
}
@media (max-width: 960px) {
  .top { height: auto; min-height: 56px; padding: 10px 16px; flex-wrap: wrap; gap: 8px 12px; }
  .brand img { height: 26px; }
  .brand-svc { display: none; }
  .nav { order: 1; }
  .nav a { height: 34px; padding: 0 10px; font-size: 14px; }
  .live-pill { order: 2; padding: 7px 10px; font-size: 12px; }
  .staff-btn { order: 3; margin-left: auto; height: 34px; padding: 0 10px; font-size: 13px; }
  .gsearch { order: 4; width: 100%; flex: 1 1 100%; margin: 0; }
  .page { padding: 20px 16px 40px; }
  .page.meeting { padding: 0 0 24px; }
  body[data-page="meeting"] .top { position: static; }
  body[data-page="meeting"] .gsearch, body[data-page="meeting"] .crumb { display: none; }
  .home-head { padding: 22px 18px; border-radius: 16px; position: relative; }
  .home-head h1 { font-size: 23px; padding-right: 64px; }
  .home-mascot { width: 60px; position: absolute; top: 16px; right: 14px; } /* 제목 줄 옆에만 — 설명 글을 덮지 않게 */
  .hsearch input, .hsearch .btn-primary { height: 48px; }
  .hsearch .btn-primary { padding: 0 16px; }
  body[data-page="home"] .gsearch { display: none; }
  .live-link { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
  .live-link .btn-primary { justify-self: start; }
  .mrow { grid-template-columns: 1fr; gap: 6px; padding: 16px 12px; }
  .mfacts { order: 3; }
  .layout { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .stage { display: contents; }
  .crumb { order: 0; margin: 10px 12px 8px; }
  .player { position: sticky; top: 0; z-index: 5; border-radius: 0; order: 1; }
  .player-bar { order: 2; padding: 10px 16px 0; }
  .bar-actions .btn-ghost span { display: none; }
  .bar-actions .btn-ghost .chev { display: none; }
  .bar-actions .btn-ghost { width: 36px; height: 36px; padding: 0; }
  .bar-actions { gap: 6px; }
  .speed button { min-width: 0; padding: 0 7px; font-size: 12px; }
  .info { order: 3; padding: 14px 16px 12px; }
  .info h1 { font-size: 20px; }
  /* 영상(16:9 = 화면 폭의 56.25%)이 위에 붙어 있으니 나머지 높이를 다 쓰고, 목차에서 건너뛰면 영상 바로 아래로 */
  .transcript { order: 5; position: static; height: calc(100dvh - 56.25vw); min-height: 420px; border-radius: 0; border-width: 1px 0; scroll-margin-top: 56.25vw; }
  .tabs { order: 4; margin: 0; padding: 0 16px; }
  .tab-pane { order: 6; padding: 18px 16px; }
  .foot { flex-direction: column; align-items: flex-start; padding: 18px 16px; }
  .menu { min-width: 260px; }
  .vods li { flex-wrap: wrap; }
  .vinfo { min-width: 55%; } /* 버튼이 길면 아랫줄로 — 회의 이름이 한 낱말씩 꺾이지 않게 */
  .vnote { order: 3; }
  .ops-form input { min-width: 0; flex: 1; }
  .set-row { grid-template-columns: 1fr; padding: 16px; }
  .set-row h3 { margin: 0; }
  .set-body .ops-form input, .set-body .ops-form input[type="url"] { flex: 1 1 100%; }
  .set-terms { flex-direction: column; align-items: stretch; }
}
/* 휴대폰 세로: 영상 밑에 탭이 붙고, 그 아래 한 칸을 자막·요약·목차·발언자가 번갈아 쓴다 */
@media (max-width: 960px) and (orientation: portrait) {
  .tab-subs { display: block; }
  .tabs { position: sticky; top: 56.25vw; z-index: 4; height: 46px; align-items: stretch; background: var(--bg); }
  .tabs button { padding: 0 4px; }
  .transcript { height: calc(100dvh - 56.25vw - 46px); scroll-margin-top: calc(56.25vw + 46px); border-top: 0; }
  .transcript.m-hide { display: none; }
  /* 자막 탭에선 바닥글을 빼서, 끝까지 내려도 자막 판 머리가 영상 밑으로 들어가지 않게 (요약·목차 탭에선 보인다) */
  body[data-page="meeting"]:has(.transcript:not(.m-hide)) .foot { display: none; }
  .page.meeting { padding-bottom: 0; }
}
/* 휴대폰 가로: 왼쪽 영상·정보, 오른쪽 자막 판 */
@media (max-width: 960px) and (orientation: landscape) {
  body[data-page="meeting"] { padding-right: 50vw; }
  .player { position: relative; }
  .transcript { position: fixed; top: 0; right: 0; width: 50vw; height: 100dvh; min-height: 0; z-index: 6; border-width: 0 0 0 1px; scroll-margin-top: 0; }
}
/* 데스크톱 회의 화면: 알림은 왼쪽 칸에 — 오른쪽 자막(검수 중인 문장)을 가리지 않게 */
@media (min-width: 961px) {
  body[data-page="meeting"] .toast { left: 24px; transform: none; max-width: calc(100vw - 560px); }
}
@media (hover: none) { #keys-btn { display: none; } } /* 단축키는 키보드가 있을 때만 */
/* 터치 화면: 입력 칸 글자가 16px보다 작으면 아이폰이 누를 때 화면을 확대해 영상·자막 배치가 틀어진다 */
@media (pointer: coarse) { .gsearch input, .fsearch input, .spk-in, .ops-form input, .dlg input, .set-terms textarea { font-size: 16px; } }
