/* JW 자막 보관함 — 관리 화면 스타일 (1.11.0 디자인)
   글꼴: Pretendard(앱에 포함, OFL). 색상은 모두 변수로 정의해 밝은·어두운 테마를 함께 지원합니다. */

@font-face {
  font-family: "Pretendard";
  src: url("/static/fonts/PretendardVariable.woff2") format("woff2-variations"), url("/static/fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #12302a;
  --text: #2c3d38;
  --muted: #66766f;
  --faint: #93a09a;
  --brand: #1f6b5c;
  --brand-strong: #17574a;
  --brand-text: #1f6b5c;
  --brand-soft: #e6f1ec;
  --brand-softer: #f1f7f3;
  --sidebar: #133a32;
  --sidebar-text: #b9d3ca;
  --sidebar-active: #21584b;
  --line: #e3e8e3;
  --line-strong: #d2dbd4;
  --bg: #f3f5f1;
  --paper: #ffffff;
  --paper-alt: #f9fbf8;
  --input-bg: #ffffff;
  --amber: #8a5a14;
  --amber-bg: #fcf1dc;
  --red: #a63f3a;
  --red-bg: #fbe9e7;
  --blue: #2f6390;
  --blue-bg: #e6f0fa;
  --success: #24785e;
  --success-bg: #e3f3eb;
  --mark: #fde68a;
  --mark-current: #f2b632;
  --shadow-sm: 0 1px 2px rgba(18, 48, 42, 0.05);
  --shadow: 0 1px 2px rgba(18, 48, 42, 0.04), 0 10px 30px rgba(18, 48, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(18, 48, 42, 0.18);
  --backdrop: rgba(10, 30, 25, 0.42);
  --hero-from: #1d6656;
  --hero-to: #12423a;
  --toast: #173f36;
  --topbar: rgba(243, 245, 241, 0.86);
  --radius: 18px;
  --radius-sm: 11px;
  --sidebar-width: 256px;
  color-scheme: light;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color: var(--text);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] {
  --ink: #eaf3ef;
  --text: #d1ddd8;
  --muted: #9cada6;
  --faint: #76877f;
  --brand: #3aa087;
  --brand-strong: #2f8a73;
  --brand-text: #84d6be;
  --brand-soft: #1b322b;
  --brand-softer: #172a24;
  --sidebar: #0c1a16;
  --sidebar-text: #98b5ab;
  --sidebar-active: #1c3a32;
  --line: #24332e;
  --line-strong: #31423c;
  --bg: #0f1714;
  --paper: #15201c;
  --paper-alt: #18241f;
  --input-bg: #111b18;
  --amber: #f0bd6e;
  --amber-bg: #33280f;
  --red: #f39a92;
  --red-bg: #3b201d;
  --blue: #9ec7ef;
  --blue-bg: #18283a;
  --success: #8ad8b8;
  --success-bg: #163027;
  --mark: #6b5414;
  --mark-current: #a5801e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --backdrop: rgba(0, 0, 0, 0.6);
  --hero-from: #1a4d42;
  --hero-to: #0f2c26;
  --toast: #2b6b5b;
  --topbar: rgba(15, 23, 20, 0.86);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eaf3ef;
    --text: #d1ddd8;
    --muted: #9cada6;
    --faint: #76877f;
    --brand: #3aa087;
    --brand-strong: #2f8a73;
    --brand-text: #84d6be;
    --brand-soft: #1b322b;
    --brand-softer: #172a24;
    --sidebar: #0c1a16;
    --sidebar-text: #98b5ab;
    --sidebar-active: #1c3a32;
    --line: #24332e;
    --line-strong: #31423c;
    --bg: #0f1714;
    --paper: #15201c;
    --paper-alt: #18241f;
    --input-bg: #111b18;
    --amber: #f0bd6e;
    --amber-bg: #33280f;
    --red: #f39a92;
    --red-bg: #3b201d;
    --blue: #9ec7ef;
    --blue-bg: #18283a;
    --success: #8ad8b8;
    --success-bg: #163027;
    --mark: #6b5414;
    --mark-current: #a5801e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
    --backdrop: rgba(0, 0, 0, 0.6);
    --hero-from: #1a4d42;
    --hero-to: #0f2c26;
    --toast: #2b6b5b;
    --topbar: rgba(15, 23, 20, 0.86);
    color-scheme: dark;
  }
}

/* ---------- 기본 요소 ---------- */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  font-size: 14.5px;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
a { color: var(--brand-text); text-decoration: none; }
h1, h2, h3, p { margin: 0; }

h1 { font-size: 30px; line-height: 1.35; letter-spacing: -0.035em; font-weight: 750; color: var(--ink); }
h2 { font-size: 17px; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); }
h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(58, 160, 135, 0.45); outline-offset: 2px; border-radius: 6px; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--faint); margin-bottom: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 레이아웃: 사이드바 ---------- */

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--sidebar);
  color: var(--sidebar-text);
  padding: 26px 16px 20px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.03em;
  padding: 4px 10px;
}
.brand small { display: block; color: rgba(255, 255, 255, 0.5); font-size: 9.5px; letter-spacing: 0.16em; font-weight: 600; margin-top: 1px; }

.brand-mark {
  background: linear-gradient(140deg, #3fb495, #1f6b5c);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 13px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.brand-mark svg { width: 23px; height: 23px; }

.nav-label { font-size: 11px; color: rgba(255, 255, 255, 0.38); margin: 34px 14px 8px; letter-spacing: 0.12em; font-weight: 600; }

.nav-item {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  margin: 3px 0;
  border-radius: 12px;
  text-align: left;
  color: var(--sidebar-text);
  font-size: 14.5px;
  font-weight: 550;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-item.active { color: #fff; background: var(--sidebar-active); box-shadow: inset 3px 0 0 #5fd3b0; }
.nav-item svg { width: 19px; height: 19px; }

.count-pill {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  min-width: 26px;
  text-align: center;
  margin-left: auto;
  border-radius: 99px;
  padding: 1px 8px;
}

.sidebar-bottom { margin-top: auto; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.local-label { margin: 18px 14px 6px; font-size: 11.5px; color: rgba(255, 255, 255, 0.45); display: flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #5fd3b0; box-shadow: 0 0 0 3px rgba(95, 211, 176, 0.18); }
.sidebar-bottom .text-button { margin-left: 14px; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }
.sidebar-bottom .text-button:hover { color: #fff; }

main { margin-left: var(--sidebar-width); min-width: 0; width: calc(100% - var(--sidebar-width)); }

/* ---------- 상단바 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  height: 64px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--topbar);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
#breadcrumb { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb-root, .crumb-sub { color: var(--muted); font-weight: 500; }
.mobile-brand { display: none; }
.topbar-right { display: flex; align-items: center; gap: 12px; min-width: 0; flex-shrink: 1; }
.status-badges { display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; min-width: 0; }
.status-badges .badge, .home-status .badge { cursor: pointer; border: 0; font-family: inherit; }
.today { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.live-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex-shrink: 0; }
.live-indicator.live { background: #3fb495; box-shadow: 0 0 0 3px rgba(63, 180, 149, 0.18); }
.live-indicator.polling { background: #d6a23f; }

/* 상단바 요약 칩: 좁은 화면에서 배지 대신 한 개만 보여 줍니다. */
.status-summary {
  display: none;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 99px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--brand-softer);
  color: var(--muted);
}
.status-summary .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-summary.success { background: var(--success-bg); color: var(--success); }
.status-summary.warning { background: var(--amber-bg); color: var(--amber); }
.status-summary.error { background: var(--red-bg); color: var(--red); }

.icon-button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.icon-button:hover { color: var(--brand-text); border-color: var(--line-strong); }
.icon-button svg { width: 17px; height: 17px; }

.page { max-width: 1280px; padding: 34px 40px 30px; margin: auto; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; gap: 20px; flex-wrap: wrap; }
.page-heading .muted { margin-top: 6px; font-size: 14.5px; }
.heading-icon { display: none; }

footer {
  padding: 24px 40px;
  color: var(--faint);
  font-size: 11.5px;
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

/* ---------- 홈: 히어로 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 34px 38px;
  border-radius: 24px;
  color: #e3f2ec;
  background: radial-gradient(circle at 85% 15%, rgba(95, 211, 176, 0.28), transparent 45%), linear-gradient(135deg, var(--hero-from), var(--hero-to));
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.05);
}
.hero .eyebrow { color: rgba(255, 255, 255, 0.55); }
.hero h1 { color: #fff; font-size: 32px; }
.hero-text { position: relative; z-index: 1; }
.hero-text p:not(.eyebrow) { margin-top: 6px; color: rgba(255, 255, 255, 0.75); font-size: 15px; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero-figure { position: relative; z-index: 1; text-align: right; }
.hero-figure strong { display: block; font-size: 60px; line-height: 1; font-weight: 800; color: #fff; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.hero-figure span { font-size: 13.5px; color: rgba(255, 255, 255, 0.7); }
.home-status { display: none; }

/* ---------- 카드·패널 ---------- */

.panel { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.form-panel { padding: 28px 30px; }
.form-panel + .form-panel, .panel + .form-panel { margin-top: 18px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.stat {
  position: relative;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  text-align: left;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
button.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-text);
  margin-bottom: 12px;
}
.stat-icon svg { width: 17px; height: 17px; }
.stat-icon.sent { background: var(--success-bg); color: var(--success); }
.stat-icon.warn { background: var(--amber-bg); color: var(--amber); }
.stat-icon.wait { background: var(--blue-bg); color: var(--blue); }
.stat > span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 550; }
.stat > strong { display: block; font-size: 28px; letter-spacing: -0.03em; line-height: 1.3; margin-top: 2px; color: var(--ink); font-weight: 750; font-variant-numeric: tabular-nums; }
.stat small { font-size: 12.5px; color: var(--faint); font-weight: 500; margin-left: 4px; }
.stat-note { display: block; font-style: normal; font-size: 11.5px; color: var(--amber); min-height: 17px; }

.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 22px 24px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.action-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.action-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-text);
  margin-bottom: 14px;
}
.auto-card .action-icon { background: var(--blue-bg); color: var(--blue); }
.card-kicker { font-size: 12px; color: var(--faint); font-weight: 600; margin-bottom: 2px; }
.action-card strong { font-size: 19px; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 6px; font-weight: 750; }
.action-card > .muted { font-size: 13.5px; line-height: 1.75; }
.card-link { display: flex; align-items: center; gap: 8px; color: var(--brand-text); font-size: 13.5px; font-weight: 700; margin-top: 16px; }
.card-link svg { width: 16px; }

.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 28px 0 12px; flex-wrap: wrap; }
.section-heading .muted { margin-top: 4px; }

.empty-state { padding: 44px 24px; text-align: center; color: var(--muted); font-size: 13.5px; }
.empty-state svg { display: block; margin: 0 auto 12px; width: 30px; height: 30px; color: var(--faint); }
.empty-state strong { color: var(--text); font-size: 15px; display: block; margin-bottom: 4px; }

.quiet-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; font-size: 12.5px; color: var(--faint); }
.quiet-note svg { width: 15px; height: 20px; }

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line-strong);
  background: var(--brand-softer);
  border-radius: 14px;
  padding: 15px 18px;
  margin-bottom: 16px;
  font-size: 13.5px;
}
.notice p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.warning-notice { background: var(--amber-bg); border-color: transparent; }
.warning-notice strong { color: var(--amber); }

/* ---------- 버튼·배지 ---------- */

.button {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.button:active { transform: translateY(1px); }
.button.primary { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(31, 107, 92, 0.22); }
.button.primary:hover { background: var(--brand-strong); }
.button.secondary { background: var(--paper); border-color: var(--line-strong); color: var(--text); }
.button.secondary:hover { background: var(--brand-softer); border-color: var(--brand); color: var(--brand-text); }
.button.danger { background: var(--red); color: #fff; }
.button.danger-outline { background: transparent; border-color: var(--red); color: var(--red); }
.button.danger-outline:hover { background: var(--red-bg); }
.button.light { background: #fff; color: #15463c; }
.button.light:hover { background: #eaf6f1; }
.button.ghost-light { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.button.ghost-light:hover { background: rgba(255, 255, 255, 0.16); }
.button svg { width: 16px; height: 16px; }
.small-button { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.full-width { width: 100%; margin-top: 20px; }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.form-actions { margin-top: 22px; }

.text-button { padding: 0; background: none; border: 0; color: var(--brand-text); font-size: 13.5px; font-weight: 650; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.danger-text { color: var(--red); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 11.5px;
  line-height: 1.6;
  white-space: nowrap;
  font-weight: 650;
}
.badge.neutral { color: var(--muted); background: var(--brand-softer); box-shadow: inset 0 0 0 1px var(--line); }
.badge.soft, .badge.success { color: var(--success); background: var(--success-bg); }
.badge.warning { background: var(--amber-bg); color: var(--amber); }
.badge.error { background: var(--red-bg); color: var(--red); }
.badge.running { background: var(--blue-bg); color: var(--blue); }

/* ---------- 작업 목록 ---------- */

.job-row { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; }
.job-row:last-child { border: 0; }
.job-icon {
  width: 36px;
  height: 36px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-text);
  border-radius: 11px;
  flex-shrink: 0;
}
.job-icon svg { width: 17px; height: 17px; }
.job-info { flex: 1; min-width: 0; }
.job-info strong { font-size: 14px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--ink); }
.job-info p { font-size: 12.5px; color: var(--muted); word-break: break-word; }
.job-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.job-time { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.job-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.job-progress { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.job-progress .percent { font-size: 11.5px; color: var(--muted); min-width: 92px; text-align: right; font-variant-numeric: tabular-nums; }
.progress { appearance: none; height: 7px; border: 0; border-radius: 99px; background: var(--brand-soft); width: 100%; overflow: hidden; }
.progress::-webkit-progress-bar { background: var(--brand-soft); border-radius: 99px; }
.progress::-webkit-progress-value { background: linear-gradient(90deg, #3fb495, var(--brand)); border-radius: 99px; }
.progress::-moz-progress-bar { background: var(--brand); border-radius: 99px; }

/* ---------- 폼 ---------- */

label { display: block; font-size: 13.5px; font-weight: 650; margin: 18px 0 7px; color: var(--text); }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), textarea, select {
  display: block;
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  color: var(--text);
  outline: none;
  min-width: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(58, 160, 135, 0.15); }
textarea { resize: vertical; line-height: 1.7; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); width: 17px; height: 17px; }
.narrow-input { max-width: 140px; }
.field-hint { font-size: 12.5px; line-height: 1.75; color: var(--muted); margin-top: 7px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 550; margin: 18px 0; }
.check-row input { margin: 3px 0 0; flex-shrink: 0; }
.check-row small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 2px; }
.radio-row { display: flex; align-items: center; gap: 10px; font-weight: 550; margin: 8px 0; }
.scope-fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 6px 16px 14px; margin: 20px 0 0; }
.scope-fieldset legend { font-size: 13.5px; font-weight: 700; padding: 0 6px; color: var(--ink); }
.input-with-button { display: flex; gap: 8px; align-items: center; }
.feedback { font-size: 13.5px; color: var(--brand-text); margin-top: 12px; }
.feedback:empty { margin: 0; }
.error-text { font-size: 13.5px; color: var(--red); min-height: 20px; margin-top: 10px; }
.error-text:empty { min-height: 0; margin: 0; }
.feedback.error-text { color: var(--red); }
details { padding: 14px 0 0; border-top: 1px solid var(--line); margin-top: 22px; }
summary { cursor: pointer; font-size: 13.5px; color: var(--muted); font-weight: 650; }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.setup-steps { font-size: 13.5px; padding-left: 20px; }

.two-column { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr); gap: 20px; align-items: start; }
.step-label { display: flex; align-items: center; gap: 10px; }
.step-label > span {
  width: 26px;
  height: 26px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 750;
}
.second-step { margin-top: 30px; }
.inline-label { display: flex; align-items: baseline; justify-content: space-between; }

.guidance { padding: 26px; background: var(--paper-alt); }
.mini-label { font-size: 12px; color: var(--faint); font-weight: 600; }
.guidance h2 { margin: 4px 0 18px; }
.sample-note { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 18px; transform: rotate(-1.2deg); box-shadow: var(--shadow); }
.sample-note strong { display: block; margin-top: 12px; font-size: 14.5px; color: var(--ink); }
.sample-link { font-size: 12.5px; color: var(--brand-text); margin: 8px 0 16px; }
.sample-line { height: 5px; background: var(--brand-soft); border-radius: 3px; width: 80%; margin: 9px 0; }
.sample-line.long { width: 95%; }
.sample-line.short { width: 63%; }
.plain-list { font-size: 13.5px; color: var(--muted); padding-left: 18px; margin: 22px 0 0; }
.plain-list li { margin: 8px 0; }

.auto-status { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.auto-status p { margin-top: 3px; }

/* ---------- 폴더 보관함: 트리 + 목록 ---------- */

.library-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; align-items: start; }

.tree-panel {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 104px);
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 6px 8px 12px;
}
.tree-details { border: 0; margin: 0; padding: 0; }
.tree-summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 10px 6px;
  color: var(--ink);
  cursor: default;
  pointer-events: none;
}
.tree-summary::-webkit-details-marker { display: none; }
.tree-summary-label { font-size: 15px; font-weight: 750; }
.tree-current { display: none; }
.tree-toolbar { display: flex; justify-content: space-between; padding: 2px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.tree-toolbar .text-button { font-size: 12.5px; }

.folder-tree ul { list-style: none; margin: 0; padding: 0; }
.tree-row { display: flex; align-items: center; gap: 2px; border-radius: 10px; }
.tree-row:hover { background: var(--brand-softer); }
.tree-row.current { background: var(--brand-soft); }
.tree-row.current .tree-label { color: var(--brand-text); font-weight: 700; }
.tree-row.current .tree-count { background: var(--brand); color: #fff; }
.tree-toggle {
  width: 24px;
  height: 30px;
  border: 0;
  background: none;
  color: var(--faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
}
.tree-toggle span { display: inline-block; transition: transform 0.15s; }
.tree-toggle[aria-expanded="true"] span { transform: rotate(90deg); }
.tree-toggle:hover { color: var(--ink); }
.tree-toggle.placeholder { pointer-events: none; }
.tree-label {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  padding: 7px 8px 7px 2px;
  text-align: left;
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
}
.tree-label svg { width: 17px; height: 17px; color: var(--brand-text); }
.tree-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--brand-softer);
  border-radius: 99px;
  padding: 0 8px;
  min-width: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.tree-row.depth-1 { padding-left: 16px; }
.tree-row.depth-2 { padding-left: 32px; }
.tree-row.depth-3 { padding-left: 48px; }
.tree-row.depth-4 { padding-left: 64px; }
.tree-row.depth-5 { padding-left: 80px; }
.tree-row.depth-6 { padding-left: 96px; }
.tree-row.depth-7 { padding-left: 112px; }
.tree-empty { font-size: 12.5px; color: var(--muted); padding: 10px; }

.library-main { min-width: 0; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.search-input { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; min-width: 0; padding-left: 8px; }
.search-input svg { color: var(--faint); width: 18px; height: 18px; }
.search-input input { border: 0 !important; box-shadow: none !important; background: transparent !important; padding-left: 2px !important; }
.search-options { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search-options select { width: auto !important; font-size: 13px; padding: 8px 10px !important; }

.folder-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; min-height: 36px; }
.folder-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.folder-breadcrumbs button { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; text-align: left; font-size: 15px; color: var(--muted); font-weight: 600; }
.folder-breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.folder-breadcrumbs > span { color: var(--faint); }
.folder-breadcrumbs svg { width: 17px; height: 17px; }

.select-all { margin: 0; font-size: 13px; }
.bulk-bar {
  position: sticky;
  top: 74px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--paper);
  border: 1px solid var(--brand);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.bulk-bar strong { color: var(--brand-text); font-size: 13.5px; }

.record-row { display: flex; align-items: flex-start; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--line); transition: background 0.12s; }
.record-row:hover { background: var(--paper-alt); }
.record-row:last-child { border: 0; }
.record-row.selected { background: var(--brand-softer); box-shadow: inset 3px 0 0 var(--brand); }
.record-check { margin-top: 4px; flex-shrink: 0; }
.record-main { flex: 1; min-width: 0; }
.record-title {
  display: block;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.55;
  overflow-wrap: anywhere;
  cursor: pointer;
  letter-spacing: -0.02em;
}
.record-title:hover { color: var(--brand-text); }
.record-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.record-excerpt { font-size: 12.5px; color: var(--text); margin-top: 6px; background: var(--paper-alt); border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; padding: 5px 10px; }
.record-excerpt mark, .transcript mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }
.transcript mark.current { background: var(--mark-current); }
.record-error { font-size: 12.5px; color: var(--amber); margin-top: 5px; }
.record-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.record-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; padding-top: 2px; }
.record-actions .text-button { font-size: 13px; }

.pagination { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--paper-alt); }

.category-row { display: flex; align-items: center; gap: 13px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.category-row:last-child { border: 0; }
.category-row > svg { color: var(--brand-text); }
.category-row strong { font-size: 14px; }
.category-row .muted { font-size: 12.5px; }
.folder-bindings { margin-top: 22px; }
.folder-bindings .panel { margin-top: 12px; }

/* ---------- 설정 탭 ---------- */

.tabs {
  display: inline-flex;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  margin-bottom: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: var(--shadow-sm);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  border: 0;
  background: none;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: var(--ink); background: var(--brand-softer); }
.tab[aria-selected="true"] { color: #fff; background: var(--brand); box-shadow: 0 4px 12px rgba(31, 107, 92, 0.2); }
.tab.dirty::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e0a33a;
  box-shadow: 0 0 0 2px var(--paper);
}
.tab-panel { max-width: 900px; }

.schedule-table { border: 1px solid var(--line); border-radius: 14px; margin-top: 18px; overflow: hidden; }
.schedule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 4px 20px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.schedule-row:nth-child(odd) { background: var(--paper-alt); }
.schedule-row:last-child { border-bottom: 0; }
.schedule-row .check-row { margin: 0; }
.row-title strong { font-size: 14.5px; color: var(--ink); }
.row-title small { display: block; color: var(--muted); font-size: 12.5px; }
.hours { display: flex; align-items: center; gap: 8px; }
.hours input { width: 86px !important; text-align: center; font-weight: 700; }
.hours span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.schedule-next { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }

.folder-picker { max-height: 280px; overflow: auto; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 6px; }
.folder-picker label { font-weight: 550; margin: 6px 0; display: flex; gap: 10px; align-items: center; }
.folder-picker .depth-1 { padding-left: 22px; }
.folder-picker .depth-2 { padding-left: 44px; }
.folder-picker .depth-3 { padding-left: 66px; }
.folder-picker .depth-4 { padding-left: 88px; }
.folder-picker .depth-5 { padding-left: 110px; }
.folder-picker .depth-6 { padding-left: 132px; }
.folder-picker .depth-7 { padding-left: 154px; }

.session-list, .backup-list { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.session-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.session-row:last-child { border-bottom: 0; }
.session-row small { display: block; color: var(--muted); font-size: 12.5px; }
.backup-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.backup-row:last-child { border-bottom: 0; }
.backup-row strong { font-size: 13.5px; overflow-wrap: anywhere; }
.backup-row small { display: block; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.upload-button { position: relative; overflow: hidden; margin: 0; }
.upload-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.reset-section { margin-top: 28px; }
.reset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reset-card { padding: 22px; }
.reset-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }

/* ---------- 로그인 ---------- */

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 20% 10%, rgba(95, 211, 176, 0.22), transparent 40%), linear-gradient(160deg, var(--hero-from), var(--hero-to));
}
.login-card { width: 420px; max-width: 100%; background: var(--paper); border-radius: 24px; padding: 38px; box-shadow: var(--shadow-lg); }
.login-card .brand-mark { margin-bottom: 22px; }
.login-card h1 { font-size: 30px; }
.login-card .button { width: 100%; margin-top: 20px; padding: 12px 16px; }
.login-card .small { margin-top: 24px; font-size: 12px; }
.login-card label { margin-top: 28px; }

/* ---------- 대화상자 ---------- */

dialog {
  border: 0;
  border-radius: 22px;
  padding: 28px;
  width: min(520px, calc(100% - 28px));
  color: var(--text);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(4px); }
.dialog-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 12px; }
.dialog-heading h2 { font-size: 19px; }
.close-button {
  border: 0;
  background: var(--brand-softer);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  flex-shrink: 0;
}
.close-button:hover { color: var(--ink); background: var(--brand-soft); }
.dialog-actions { justify-content: flex-end; margin-top: 22px; }
.delete-description { font-size: 14.5px; color: var(--text); }

.note-dialog { width: min(900px, calc(100% - 28px)); }
.note-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.note-meta svg { width: 15px; height: 15px; vertical-align: -3px; }
.note-toolbar {
  position: sticky;
  top: -28px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  background: var(--paper);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.note-find { display: flex; align-items: center; gap: 6px; flex: 1 1 260px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 2px 6px 2px 10px; background: var(--input-bg); }
.note-find svg { width: 16px; height: 16px; color: var(--faint); }
.note-find input { border: 0 !important; box-shadow: none !important; padding: 6px 4px !important; background: transparent !important; }
.note-find .icon-button { width: 28px; height: 28px; border: 0; box-shadow: none; }

.transcript { margin-top: 18px; font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.transcript h2 { font-size: 17px; margin: 22px 0 10px; }
.transcript p { margin: 0 0 14px; }
.transcript .metadata { font-size: 13px; color: var(--muted); margin: 2px 0; }
.transcript hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.transcript .timestamp {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-text);
  background: var(--brand-soft);
  border-radius: 6px;
  padding: 0 7px;
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}

/* ---------- 알림 토스트 ---------- */

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--toast);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  max-width: min(560px, calc(100% - 28px));
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 50;
}
.toast.error { background: #9a443d; }
.toast-action {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 9px;
  padding: 4px 12px;
  font-weight: 700;
  white-space: nowrap;
}

.bottom-nav { display: none; }

/* ---------- 반응형 ---------- */

@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .today { display: none; }
}

@media (max-width: 1100px) {
  :root { --sidebar-width: 220px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .page { padding: 28px 26px; }
  .topbar { padding: 0 26px; }
  .library-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .status-badges { display: none; }
  .status-summary { display: inline-flex; }
}

@media (max-width: 800px) {
  body { font-size: 14px; }
  .sidebar { display: none; }
  .app-shell { display: block; }
  main { margin: 0; width: 100%; padding-bottom: calc(86px + env(safe-area-inset-bottom)); }

  .topbar { height: 56px; padding: 0 14px; gap: 10px; }
  .mobile-brand {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(140deg, #3fb495, #1f6b5c);
    color: #fff;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .mobile-brand svg { width: 17px; height: 17px; }
  #breadcrumb { font-size: 16px; font-weight: 750; }
  .crumb-root, .crumb-sub { display: none; }
  .topbar-right { gap: 8px; flex-shrink: 0; }
  .live-indicator { display: none; }
  .icon-button { width: 34px; height: 34px; }

  .page { padding: 18px 14px; }
  .page-heading { margin-bottom: 16px; }
  .page-heading h1 { font-size: 23px; }
  .page-heading .eyebrow { display: none; }
  .page-heading .muted { font-size: 13.5px; margin-top: 2px; }

  .hero { flex-direction: column; align-items: flex-start; padding: 24px 22px; border-radius: 20px; gap: 18px; }
  .hero h1 { font-size: 24px; }
  .hero-text p:not(.eyebrow) { font-size: 13.5px; }
  .hero-figure { text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .hero-figure strong { display: inline; font-size: 40px; }
  .hero-actions { width: 100%; }
  .hero-actions .button { flex: 1; }
  .home-status { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
  .stat { padding: 14px; }
  .stat-icon { width: 30px; height: 30px; margin-bottom: 8px; }
  .stat > strong { font-size: 23px; }
  .stats-grid .stat:last-child { grid-column: 1 / -1; }
  .action-grid { grid-template-columns: 1fr; gap: 10px; }
  .action-card { padding: 18px; }

  .two-column, .reset-grid, .field-grid { grid-template-columns: 1fr; }
  .guidance { display: none; }
  .form-panel { padding: 20px 18px; }
  .notice { align-items: flex-start; flex-direction: column; }
  .job-row { padding: 14px 16px; }
  .job-icon { display: none; }
  .job-meta { align-items: flex-start; flex-wrap: wrap; }
  .schedule-row { grid-template-columns: 1fr; padding: 14px; }
  footer { padding: 16px 14px; flex-direction: column; gap: 2px; }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }

  .tabs { display: flex; width: calc(100% + 28px); max-width: none; margin-left: -14px; margin-right: -14px; border-radius: 0; border-left: 0; border-right: 0; padding: 6px 10px; }
  #current-folder-actions { width: 100%; }
  #current-folder-actions .button { flex: 1 1 auto; }

  /* 폴더 트리는 휴대폰에서 접었다 펼치는 패널이 됩니다. */
  .library-layout { grid-template-columns: 1fr; gap: 12px; }
  .tree-panel { position: static; max-height: none; padding: 4px 8px; }
  .tree-summary { pointer-events: auto; cursor: pointer; padding: 12px 8px; align-items: center; }
  .tree-summary::after { content: "›"; margin-left: auto; font-size: 20px; color: var(--faint); transition: transform 0.15s; }
  .tree-details[open] .tree-summary::after { transform: rotate(90deg); }
  .tree-current { display: block; font-size: 13px; color: var(--brand-text); font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .folder-tree { max-height: 55vh; overflow: auto; padding-bottom: 8px; }
  .tree-label { padding-top: 9px; padding-bottom: 9px; }

  .search-bar { padding: 8px; }
  .search-options { width: 100%; }
  .search-options select { flex: 1 1 30%; }
  .search-options .button { flex: 1 1 100%; }
  .folder-breadcrumbs [aria-current="page"] { font-size: 17px; }
  .record-row { flex-wrap: wrap; padding: 14px; }
  .record-actions { width: 100%; justify-content: flex-start; padding-left: 31px; }
  .bulk-bar { top: 64px; }

  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 20;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 6px;
    box-shadow: var(--shadow-lg);
  }
  .bottom-item {
    border: 0;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 6px 0;
    color: var(--faint);
    font-size: 11px;
    font-weight: 600;
    border-radius: 14px;
  }
  .bottom-item svg { width: 21px; height: 21px; }
  .bottom-item.active { color: var(--brand-text); background: var(--brand-soft); font-weight: 750; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
