:root {
  --ink: #122028;
  --ink-soft: #3d4f58;
  --muted: #6b7c85;
  --line: #e4ddd0;
  --paper: #fffdf8;
  --cream: #f4efe4;
  --sand: #e8dfcc;
  --teal: #0b3d4a;
  --teal-mid: #146078;
  --teal-soft: #1a7a8c;
  --gold: #c9a227;
  --gold-soft: #e8c547;
  --gold-dim: #8c7014;
  --rose: #8b3a2a;
  --ok: #1b7a4e;
  --warn: #b86e14;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(18, 32, 40, .08);
  --radius: 18px;
  --font: "Manrope", sans-serif;
  --display: "Fraunces", serif;
  --page-w: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap, .wrap-wide { width: var(--page-w); margin-inline: auto; }

.topbar {
  background: var(--teal);
  color: #e8f3f4;
  font-size: 13px;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a:hover { color: var(--gold-soft); }
.topbar-addr { min-width: 0; }
.topbar-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.topbar-social { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.topbar-social a {
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #e8c547;
}
.topbar-social a:hover { background: rgba(232,197,71,.22); color: #fff; }
.topbar-calls { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.topbar-phone { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; white-space: nowrap; }
.topbar-phone-short { display: none; }
.topbar-mail { white-space: nowrap; }
.muted { color: var(--muted); }
.gold { color: var(--gold-dim); }

.site-chrome {
  position: sticky; top: 0; z-index: 80;
  background: #fffdf8;
  border-bottom: 1px solid var(--line);
}
.site-bar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.site-chrome .brand { flex: 0 0 auto; }
.mark {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(145deg, var(--teal), #1a6d7a);
  color: var(--gold-soft);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 20px;
  box-shadow: 0 8px 18px rgba(11,61,74,.25);
}
.brand-text { display: grid; line-height: 1.15; white-space: nowrap; }
.brand-text strong, .brand strong { display: block; font-size: 18px; letter-spacing: 0; }
.brand-text small, .brand small {
  color: var(--muted); font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.nav { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; }
.nav-body { display: contents; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
  background: transparent; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-link svg { width: 15px; height: 15px; color: var(--teal-mid); flex: 0 0 auto; }
.nav-link:hover, .nav-link.active, .nav-drop.active > .nav-link {
  background: var(--cream); color: var(--teal);
}
.nav-link.active svg, .nav-link:hover svg, .nav-drop.active > .nav-link svg { color: var(--gold-dim); }
.nav-drop { position: relative; }
.nav-caret { width: 13px !important; height: 13px !important; transition: transform .2s; }
.nav-drop.is-open .nav-caret, .account.is-open .nav-caret { transform: rotate(180deg); }
.nav-sub {
  position: absolute; top: 100%; left: 0; z-index: 50;
  min-width: 210px; display: none;
  background: #fffdf8; border: 1px solid var(--line); border-radius: 16px;
  padding: 10px 8px 8px; box-shadow: var(--shadow);
}
.nav-sub::before, .account-menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 12px;
}
.nav-drop.is-open .nav-sub { display: grid; gap: 4px; }
.nav-sub a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--ink-soft);
}
.nav-sub a svg { width: 16px; height: 16px; color: var(--teal-mid); }
.nav-sub a:hover, .nav-sub a.active { background: #eef5f6; color: var(--teal); }
.site-overlay, .nav-head, .nav-foot, .site-close { display: none; }
.site-burger {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--teal);
  place-items: center; cursor: pointer;
}
.header-cta { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.exam-sub, .exam-ico-menu { min-width: 280px; }
.exam-sub a span, .exam-ico-menu a span { display: grid; line-height: 1.25; min-width: 0; }
.exam-sub a b, .exam-ico-menu a b { font-size: 13px; }
.exam-sub a small, .exam-ico-menu a small { color: var(--muted); font-size: 11px; font-weight: 600; }
.exam-sub-label {
  padding: 10px 12px 4px; color: var(--gold-dim);
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.exam-sub-date {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: #0b3d4a; color: #e8c547; font-size: 12px; font-weight: 800; font-style: normal;
}
.exam-ico-drop { position: relative; z-index: 4; }
.exam-ico-btn {
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--teal);
  display: grid; place-items: center; cursor: pointer; position: relative;
}
.exam-ico-btn:hover, .exam-ico-drop.is-open .exam-ico-btn {
  border-color: #c9d5d8; box-shadow: 0 6px 16px rgba(18,32,40,.06);
}
.exam-ico-btn em {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: #c9a227; color: #2b2208; font-size: 10px; font-weight: 800; font-style: normal;
  display: grid; place-items: center;
}
.exam-ico-menu {
  display: none; position: absolute; right: 0; top: 100%; z-index: 60;
  padding: 10px 8px 8px;
  background: #fffdf8; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow);
}
.exam-ico-menu::before {
  content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 12px;
}
.exam-ico-drop.is-open .exam-ico-menu { display: grid; gap: 4px; }
.exam-ico-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; font-weight: 700; color: var(--ink-soft);
}
.exam-ico-menu a svg { width: 16px; height: 16px; color: var(--teal-mid); flex: none; }
.exam-ico-menu a:hover, .exam-ico-menu a.active { background: #eef5f6; color: var(--teal); }
.exam-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.exam-filter .chip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.account { position: relative; z-index: 3; }
.account-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 12px 0 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; white-space: nowrap;
}
.account-btn:hover, .account.is-open .account-btn { border-color: #c9d5d8; box-shadow: 0 6px 16px rgba(18,32,40,.06); }
.account-btn .avatar { width: 32px; height: 32px; font-size: 12px; flex: 0 0 auto; }
.account-meta { display: grid; line-height: 1.15; text-align: left; }
.account-meta strong { font-size: 13px; }
.account-meta small { color: var(--gold-dim); font-size: 11px; font-weight: 800; }
.account-menu {
  display: none; position: absolute; right: 0; top: 100%; z-index: 60;
  width: 240px; padding: 10px 8px 8px;
  background: #fffdf8; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow);
}
.account.is-open .account-menu { display: grid; gap: 2px; }
@media (hover: hover) and (pointer: fine) {
  .nav-drop:hover .nav-sub { display: grid; gap: 4px; }
  .account:hover .account-menu { display: grid; gap: 2px; }
  .exam-ico-drop:hover .exam-ico-menu { display: grid; gap: 4px; }
  .nav-drop:hover .nav-caret, .account:hover .nav-caret { transform: rotate(180deg); }
}
.account-who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.account-who strong { display: block; font-size: 14px; }
.account-who small { color: var(--muted); font-size: 12px; }
.account-menu a, .account-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 10px 12px; border: 0; background: transparent;
  border-radius: 12px; text-align: left; cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
}
.account-menu a:hover, .account-menu button:hover { background: #eef5f6; color: var(--teal); }
.account-menu svg { width: 16px; height: 16px; color: var(--teal-mid); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal); color: var(--gold-soft);
  display: grid; place-items: center; font-weight: 800;
  object-fit: cover; overflow: hidden;
}
img.avatar { display: block; background: #d9e3e6; }
.avatar.lg { width: 72px; height: 72px; font-size: 24px; border: 3px solid rgba(232,197,71,.45); }
.avatar.xl { width: 96px; height: 96px; font-size: 28px; border: 3px solid rgba(232,197,71,.45); }
.photo-card { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; max-width: 720px; }
.photo-actions input[type=file] { display: none; }
.photo-studio {
  position: relative; max-width: 720px; margin-bottom: 14px; padding: 0; overflow: hidden;
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(232,197,71,.16), transparent 60%),
    linear-gradient(180deg, #fff, #f7fafb);
}
.photo-studio-hit {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 20px; cursor: pointer; min-height: 128px;
}
.photo-studio-hit input { position: absolute; opacity: 0; width: 0; height: 0; }
.photo-studio-ring {
  position: relative; width: 96px; height: 96px; flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(232,197,71,.55);
}
.photo-studio-ring .avatar.xl { width: 96px; height: 96px; border: 0; }
.photo-studio-cam {
  position: absolute; right: 2px; bottom: 2px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: #0b3d4a; color: #e8c547;
  box-shadow: 0 6px 14px rgba(11,61,74,.2);
}
.photo-studio-txt { min-width: 0; }
.photo-studio-txt strong { display: block; font-size: 18px; }
.photo-studio-txt small { display: block; margin: 4px 0 6px; color: var(--teal); font-weight: 800; }
.photo-studio-txt p { margin: 0; color: var(--muted); font-size: 13px; }
.photo-studio-del {
  position: absolute; top: 14px; right: 14px; z-index: 2;
}
.photo-studio-del button {
  width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: #8b3a2a;
  display: grid; place-items: center; cursor: pointer;
}
.photo-studio-hit:hover { background: rgba(11,61,74,.03); }
.photo-studio-hit:hover .photo-studio-cam { transform: scale(1.08); }
.hist-list { display: grid; gap: 10px; }
.hist-card {
  background: #fffdf8; border: 1px solid var(--line); border-radius: 18px; padding: 14px;
}
.hist-top { display: flex; align-items: flex-start; gap: 12px; }
.hist-date {
  width: 48px; min-height: 52px; border-radius: 14px; flex: 0 0 auto;
  background: #0b3d4a; color: #fff; display: grid; place-items: center; text-align: center; padding: 6px 4px;
}
.hist-date b { font-family: var(--display); font-size: 20px; line-height: 1; }
.hist-date small { color: #e8c547; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.hist-main { flex: 1; min-width: 0; }
.hist-main strong { display: block; font-size: 15px; line-height: 1.3; }
.hist-top .badge { flex: 0 0 auto; }
.hist-meta {
  display: flex; flex-wrap: wrap; gap: 8px 12px;
  margin: 12px 0 10px; color: var(--muted); font-size: 12px; font-weight: 700;
}
.hist-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hist-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hist-actions .btn { flex: 1 1 auto; justify-content: center; min-width: 96px; }

.bal-page { display: grid; gap: 16px; }
.bal-hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: stretch;
  background: linear-gradient(145deg, #0b3d4a, #1a7a8c);
  color: #f6f1e6; border-radius: 22px; padding: 22px;
  box-shadow: 0 14px 30px rgba(11,61,74,.18);
}
.bal-hero-sum small {
  display: block; color: #e8c547; font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
}
.bal-hero-sum strong {
  display: block; font-family: var(--display); font-size: 42px; line-height: 1.1;
  margin: 8px 0 10px; letter-spacing: 0;
}
.bal-hero-sum em { font-style: normal; font-size: 20px; color: #e8c547; }
.bal-hero-sum p { margin: 0; color: #d5e4e6; font-size: 13px; max-width: 36ch; }
.bal-form { background: #fffdf8; color: var(--ink); border-radius: 18px; padding: 16px; }
.bal-form-label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.bal-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bal-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 12px; font-weight: 800; font-size: 12px; cursor: pointer; color: var(--ink-soft);
}
.bal-chip.is-on, .bal-chip:hover { background: #0b3d4a; color: #fff; border-color: #0b3d4a; }
.bal-form .field { margin-bottom: 10px; }
.bal-form .btn { width: 100%; justify-content: center; }
.bal-feed { display: grid; gap: 10px; }
.bal-feed-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bal-feed-head h3 { margin: 0; font-size: 18px; }
.bal-empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.tx-list { display: grid; gap: 8px; }
.tx-row {
  display: grid; grid-template-columns: 42px minmax(0, 1.4fr) minmax(110px, .8fr) 88px;
  gap: 12px; align-items: center;
  background: #fffdf8; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
}
.tx-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.tx-ico.is-in { background: #d8f3e4; color: #1b7a4e; }
.tx-ico.is-out { background: #f6e4df; color: #8b3a2a; }
.tx-main { min-width: 0; }
.tx-main strong { display: block; font-size: 14px; line-height: 1.3; }
.tx-main small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.tx-sum { text-align: right; }
.tx-sum b { display: block; font-variant-numeric: tabular-nums; font-size: 15px; }
.tx-sum small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.tx-sum.is-in b { color: #1b7a4e; }
.tx-sum.is-out b { color: #8b3a2a; }
.tx-time { text-align: right; }
.tx-time b { display: block; font-size: 13px; font-weight: 800; }
.tx-time small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.tx-when { display: none; }
.bal-pager { margin-top: 6px; }

.dyn-page { display: grid; gap: 14px; }
.kpi-grid, .dyn-kpis {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px;
}
.kpi-card, .dyn-kpis article {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px; min-height: 112px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 8px 20px rgba(18, 32, 40, .04);
}
.kpi-card .kpi-ico, .dyn-kpis .kpi-ico {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.kpi-ico.is-teal { background: #e7f1f3; color: var(--teal); }
.kpi-ico.is-gold { background: #f6ecd0; color: var(--gold-dim); }
.kpi-ico.is-rose { background: #f4e8e5; color: var(--rose); }
.kpi-ico.is-sea { background: #e4f0ee; color: var(--teal-soft); }
.kpi-card small, .dyn-kpis small {
  display: block; color: var(--muted); font-size: 11px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
}
.kpi-card b, .dyn-kpis b {
  display: block; font-family: var(--display); font-size: 24px; line-height: 1.1;
  color: var(--teal); font-variant-numeric: tabular-nums;
}
.kpi-card em, .dyn-kpis em { font-style: normal; font-size: 12px; font-weight: 800; }
.kpi-card .is-up, .dyn-kpis .is-up { color: var(--ok); }
.kpi-card .is-down, .dyn-kpis .is-down { color: var(--rose); }
.app-tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px; min-height: 118px; text-align: left;
  box-shadow: 0 8px 20px rgba(18, 32, 40, .04);
}
.app-tile strong { display: block; font-size: 14px; }
.app-tile .muted { font-size: 12px; }
.app-tile .ico {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
}
.app-tile.is-wide { grid-column: 1 / -1; min-height: auto; flex-direction: row; align-items: center; }
.subj-row { margin-bottom: 14px; }
.subj-row-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.subj-row-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.subj-row-who strong { font-size: 14px; }
.dyn-note { margin: 0; color: var(--ink-soft); font-size: 14px; }
.dyn-card-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.dyn-card-top h3 { margin: 0; }
.dyn-chip-row { position: relative; margin: 0 0 12px; }
.dyn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dyn-chips button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 12px; font-weight: 800; font-size: 12px; cursor: pointer; color: var(--ink-soft);
}
.dyn-chips button.is-on { background: #0b3d4a; color: #fff; border-color: #0b3d4a; }
.dyn-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dyn-topics { display: grid; gap: 10px; margin-top: 12px; }
.dyn-topic { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 52px; gap: 10px; align-items: center; }
.dyn-topic strong, .dyn-topic small { display: block; }
.dyn-topic small { color: var(--muted); font-size: 12px; }
.dyn-bar { height: 8px; background: #efe8d8; border-radius: 99px; overflow: hidden; }
.dyn-bar span { display: block; height: 100%; background: linear-gradient(90deg, #0b3d4a, #c9a227); }
.dyn-topic b { text-align: right; font-variant-numeric: tabular-nums; }
.dyn-exams { display: grid; gap: 8px; margin-top: 12px; }
.dyn-exam {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center;
  padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.dyn-exam div strong, .dyn-exam div small { display: block; }
.dyn-exam div small { color: var(--muted); font-size: 12px; }
.dyn-exam em { font-style: normal; font-weight: 800; color: #0b3d4a; }

.app-body { min-height: 100vh; background: var(--cream); }
.app-stage { min-height: auto; }
.app-web-link { display: none; }
.desk-site { display: block; }
.phone {
  width: 100%;
  height: auto;
  min-height: 60vh;
  background: transparent;
  border: 0; border-radius: 0; box-shadow: none;
  display: flex; flex-direction: column;
}
.app-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 0;
  width: var(--page-w);
  margin: 0 auto;
  background: transparent; color: var(--ink);
}
.app-bar-title { flex: 1; min-width: 0; }
.app-bar-title small { display: block; color: var(--gold-dim); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.app-bar-title strong { display: block; font-family: var(--display); font-size: 28px; }
.ttl-mob { display: none; }
.app-back, .app-bar-user {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--teal); color: #fff;
}
.app-bar .avatar { width: 44px; height: 44px; }
.app-bar-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.app-bar-wallet {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold); color: #2b2208;
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 800;
}
.app-scroll { flex: 1; overflow: visible; padding: 0 0 40px; width: var(--page-w); margin: 0 auto; }
.app-tabs {
  display: flex; justify-content: flex-start; gap: 8px; flex-wrap: wrap;
  width: var(--page-w); margin: 0 auto 18px;
  background: transparent; border: 0; padding: 0;
  order: -1;
}
.desk-tab { display: none; }
.app-tabs a {
  display: inline-flex; flex-direction: row; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 800; color: var(--ink-soft);
  padding: 10px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
}
.app-tabs a.active { color: #fff; background: var(--teal); border-color: var(--teal); }
.app-tabs a.active svg { color: var(--gold-soft); }
.tab-ico { display: inline-flex; }
.tab-ico svg { width: 18px; height: 18px; }
.tab-lbl { line-height: 1; }
.app-bar { order: 1; }
.app-tabs { order: 2; }
.app-scroll { order: 3; }
.app-hello {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 10px;
}
.app-hello-txt { min-width: 0; flex: 1; }
.app-hello .eyebrow { margin: 0 0 2px; font-size: 11px; }
.app-hello h2 { font-family: var(--display); font-size: 22px; margin: 0 0 2px; line-height: 1.1; }
.app-hello .muted { margin: 0; font-size: 13px; }
.hello-score {
  flex: 0 0 auto; text-align: center; color: inherit;
}
.hello-ring {
  --pct: 0;
  width: 56px; height: 56px; margin: 0 auto 4px;
  display: grid; place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--paper) 66%, transparent 68% 100%),
    conic-gradient(var(--gold) calc(var(--pct) * 1%), #e4ddd0 0);
}
.hello-ring b {
  font-family: var(--display); font-size: 15px; color: var(--teal); line-height: 1;
}
.hello-score small {
  display: block; color: var(--muted); font-size: 10px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
}
.bilet-block + .bilet-block { margin-top: 22px; }
@media (min-width: 981px) {
  .desk-tab { display: inline-flex; }
  .app-tabs {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
  }
  .app-tabs a { justify-content: center; padding: 12px 10px; width: 100%; }
  .app-hello h2 { font-size: 28px; }
  .hist-list, .bilet-block { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .bilet-block > h3, .bilet-block > .muted { grid-column: 1 / -1; }
}
.app-wallet-card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 10px;
  background:
    radial-gradient(180px 70px at 100% 0%, rgba(232,197,71,.24), transparent 58%),
    linear-gradient(135deg, #0b3d4a 0%, #145a68 55%, #1a7a8c 100%);
  color: #f6f1e6; border-radius: 16px; padding: 10px 12px;
  box-shadow: 0 10px 22px rgba(11,61,74,.2);
  margin-bottom: 12px;
}
.wallet-sum { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wallet-ico {
  width: 32px; height: 32px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center; background: rgba(255,255,255,.1); color: #e8c547;
}
.app-wallet-card small { color: #e8c547; letter-spacing: .08em; text-transform: uppercase; font-size: 10px; font-weight: 800; }
.app-wallet-card b { display: block; font-family: var(--display); font-size: 22px; line-height: 1.05; margin: 1px 0 0; }
.app-wallet-card b em { font-style: normal; font-size: 12px; color: #e8c547; }
.app-wallet-card .wallet-add { padding: 6px 11px; }
.wallet-next {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 11px; background: rgba(0,0,0,.16);
}
.wallet-next.is-live { background: rgba(232,197,71,.16); }
.wallet-next-txt { min-width: 0; }
.wallet-next small { display: block; letter-spacing: .04em; text-transform: none; font-size: 10px; color: #d7e4e6; }
.wallet-next strong { display: block; font-size: 12px; font-weight: 800; line-height: 1.25; color: #fff; }
.wallet-count { display: flex; gap: 4px; flex: 0 0 auto; }
.wallet-count span {
  min-width: 34px; text-align: center; font-size: 8px; color: #c9d8db;
  background: rgba(255,255,255,.08); border-radius: 7px; padding: 3px 2px;
}
.wallet-count b { display: block; font-size: 12px; color: #fff; margin: 0; }
.app-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.app-actions a {
  background: #fffdf8; border: 1px solid #e4ddd0; border-radius: 18px;
  padding: 14px 12px; text-align: left; font-size: 13px; font-weight: 800; color: #3d4f58;
  box-shadow: 0 8px 20px rgba(18, 32, 40, .04);
}
.app-actions .ico {
  width: 40px; height: 40px; margin: 0 0 10px; border-radius: 12px;
  display: grid; place-items: center; background: #eef5f6; color: #0b3d4a;
}
.app-actions .ico.is-teal, .app-tile .ico.is-teal { background: #e7f1f3; color: var(--teal); }
.app-actions .ico.is-gold, .app-tile .ico.is-gold { background: #f6ecd0; color: var(--gold-dim); }
.app-actions .ico.is-rose, .app-tile .ico.is-rose { background: #f4e8e5; color: var(--rose); }
.app-actions .ico.is-sea, .app-tile .ico.is-sea { background: #e4f0ee; color: var(--teal-soft); }
.app-list { display: grid; gap: 8px; }
.exam-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.exam-card-when { font-size: 12px; font-weight: 800; }
.exam-card h3 { margin: 8px 0 4px; font-size: 18px; line-height: 1.25; }
.exam-card-meta { font-size: 13px; margin-bottom: 10px; }
.exam-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.exam-card-actions .btn { justify-content: center; }
.exam-mine {
  background:
    radial-gradient(200px 80px at 100% 0%, rgba(255,255,255,.16), transparent 58%),
    linear-gradient(145deg, #5a3d08, #b8891a 58%, #e0b83a);
  color: #fff8e6;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(90,61,8,.16);
}
.exam-mine .badge { background: rgba(255,255,255,.16); color: #fff8e6; }
.exam-mine .exam-card-when,
.exam-mine .exam-card-meta { color: rgba(255,248,230,.78); }
.exam-mine .btn-line {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
  color: #fff8e6;
}
.cal-toggle {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  margin-bottom: 12px; padding: 12px 14px; border-radius: 16px; cursor: pointer;
  background: #fffdf8; border: 1px solid var(--line); color: inherit;
  box-shadow: 0 8px 20px rgba(18,32,40,.04);
}
.cal-toggle-ico {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; background: #0b3d4a; color: #e8c547;
}
.cal-toggle-txt { flex: 1; min-width: 0; }
.cal-toggle-txt strong { display: block; font-size: 15px; }
.cal-toggle-txt small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.cal-caret { color: var(--muted); transition: transform .2s; }
.cal-toggle.is-open { border-color: #0b3d4a; }
.cal-toggle.is-open .cal-caret { transform: rotate(180deg); }
.cal-panel {
  margin: -4px 0 14px; padding: 14px; border-radius: 18px;
  background:
    radial-gradient(280px 120px at 100% 0%, rgba(232,197,71,.14), transparent 55%),
    #fffdf8;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(18,32,40,.06);
}
.cal-board { display: grid; grid-template-columns: minmax(240px, .9fr) 1.1fr; gap: 16px; align-items: start; }
.cal-month-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px;
}
.cal-month-nav strong { font-family: var(--display); font-size: 20px; }
.cal-month-nav button {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--teal); display: grid; place-items: center; cursor: pointer;
}
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-week span {
  text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); padding: 2px 0 6px;
}
.cal-grid button, .cal-grid span {
  aspect-ratio: 1; border: 0; border-radius: 10px; background: transparent;
  font-weight: 800; font-size: 13px; color: var(--ink);
}
.cal-grid button { cursor: pointer; }
.cal-grid button.is-today { box-shadow: inset 0 0 0 1.5px #0b3d4a; }
.cal-grid button.has-exam {
  background: #f6ecd0; color: #6d5608;
}
.cal-grid button.has-exam.is-mine { background: #e8c547; color: #2b2208; }
.cal-grid button.is-on { background: #0b3d4a; color: #e8c547; }
.cal-table-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.cal-table-head small { color: var(--muted); font-weight: 700; }
.cal-table { display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.cal-row {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid #efe8da;
}
.cal-row.is-on { border-color: #0b3d4a; background: #eef5f6; }
.cal-row-date {
  width: 48px; border-radius: 10px; background: #0b3d4a; color: #fff;
  display: grid; place-items: center; text-align: center; padding: 5px 2px;
}
.cal-row-date b { font-family: var(--display); font-size: 16px; line-height: 1; }
.cal-row-date small { color: #e8c547; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.cal-row-main strong, .cal-row-main small { display: block; }
.cal-row-main small { color: var(--muted); font-size: 12px; }
.app-row {
  display: flex; align-items: center; gap: 12px;
  background: #fffdf8; border: 1px solid #e4ddd0; border-radius: 16px; padding: 12px;
}
.app-row .ico {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; background: #eef5f6; color: #0b3d4a;
}
.app-row strong { display: block; font-size: 14px; }
.cabinet-hero {
  background:
    radial-gradient(700px 240px at 12% 0%, rgba(201,162,39,.16), transparent 55%),
    linear-gradient(180deg, #0a3340 0%, #0e4d5c 100%);
  color: #f6f1e6;
  padding: 28px 0 22px;
}
.cabinet-hero h1 { font-family: var(--display); font-size: clamp(26px, 3vw, 36px); margin: 0 0 4px; }
.cabinet-hero .muted { color: #c9d8db; margin: 0; }
.cabinet-hero-grid { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cabinet-who { display: flex; align-items: center; gap: 16px; }
.cabinet-mini {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,253,248,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px; padding: 12px 16px;
}
.cabinet-mini small { display: block; color: var(--gold-soft); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.cabinet-mini strong { font-family: var(--display); font-size: 22px; }
.cabinet-nav { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 76px; z-index: 30; }
.cabinet-nav .wrap { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; }
.cabinet-nav a {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-soft); font-weight: 700;
}
.cabinet-nav a:hover, .cabinet-nav a.active { background: var(--teal); color: #fff; }
.cabinet-main { padding: 28px 0 56px; }
.auth-on-site { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; max-width: 880px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 18px;
  cursor: pointer; font-weight: 700; letter-spacing: .01em;
  transition: .2s ease;
}
.btn-gold { background: linear-gradient(180deg, #e0b83a, var(--gold)); color: #2b2208; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(201,162,39,.28); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-mid); }
.btn-line { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.16); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-block { width: 100%; }

.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(201,162,39,.18), transparent 50%),
    radial-gradient(700px 380px at 90% 20%, rgba(26,122,140,.18), transparent 45%),
    linear-gradient(180deg, #0a3340 0%, #0e4d5c 58%, #123a42 100%);
  color: #f6f1e6;
  overflow: hidden;
  padding: 72px 0 84px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  padding: 6px 12px; border-radius: 999px; color: var(--gold-soft); font-size: 13px; font-weight: 700;
}
.hero h1 {
  font-family: var(--display); font-weight: 560; font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08; margin: 16px 0 14px; max-width: 14ch;
}
.hero p.lead { max-width: 52ch; color: #d7e4e6; font-size: 17px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.next-card {
  background: rgba(255,253,248,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px; padding: 22px;
  backdrop-filter: blur(10px);
}
.next-card h3 { margin: 0 0 6px; font-size: 15px; color: var(--gold-soft); }
.next-card .exam-name { font-family: var(--display); font-size: 22px; line-height: 1.25; margin: 0 0 16px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown div {
  background: rgba(0,0,0,.18); border-radius: 14px; text-align: center; padding: 10px 4px;
}
.countdown strong { display: block; font-family: var(--display); font-size: 26px; }
.countdown span { font-size: 11px; color: #c9d8db; }

.section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-head h2, .page-title h1 {
  font-family: var(--display); font-weight: 560; font-size: clamp(28px, 3vw, 40px); margin: 0;
}
.eyebrow { color: var(--gold-dim); font-weight: 800; font-size: 12px; letter-spacing: .08em; word-spacing: .18em; text-transform: uppercase; margin: 0 0 8px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cards { display: grid; gap: 16px; }

.card, .panel {
  background: var(--paper);
  border: 1px solid #ebe4d6;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(18, 32, 40, .04);
}
.card { padding: 20px; transition: .2s ease; }
.card:hover { border-color: #d8cfc0; box-shadow: 0 14px 32px rgba(18, 32, 40, .07); }
.icon-chip {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--cream); color: var(--teal);
}
.date-pill {
  width: 68px; min-height: 72px; border-radius: 16px;
  background: var(--teal); color: #fff; text-align: center;
  display: grid; place-items: center; padding: 8px;
}
.date-pill b { font-family: var(--display); font-size: 28px; line-height: 1; }
.date-pill span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--cream); color: var(--teal);
}
.badge-gold, .badge.gold { background: #f6e7b8; color: #6d5608; }
.badge-ok, .badge.ok { background: #d8f3e4; color: #14633c; }
.check { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-weight: 700; }
.app-bar-note, .app-bar-chat {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: #eef5f6; color: var(--teal); border: 0; cursor: pointer;
}
.app-bar-note em, .app-bar-chat em {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; border-radius: 99px;
  background: #c9a227; color: #2b2208; font-size: 10px; font-style: normal;
  display: grid; place-items: center; font-weight: 800;
}
.badge-warn { background: #f8e6c6; color: #8a5410; }
.badge-danger, .badge.danger { background: #f8d4d1; color: #8a1c14; }

.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.home-split { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: start; }
.exam-row {
  display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid #ebe4d6;
}
.exam-row + .exam-row { margin-top: 8px; }
.exam-row .date-pill { width: 58px; min-height: 58px; border-radius: 14px; }
.exam-row .date-pill b { font-size: 22px; }
.mini-link {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px; border-radius: 16px; background: var(--paper);
  border: 1px solid #ebe4d6; min-height: 118px;
}
.mini-link h3 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: 0; }
.mini-link p { margin: 0; font-size: 12px; color: var(--muted); }
.mini-link .icon-chip { width: 36px; height: 36px; border-radius: 10px; }
.home-tools { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 28px; }
.tool-card { padding: 18px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.stat { padding: 22px; }
.stat b { display: block; font-family: var(--display); font-size: 36px; color: var(--teal); }
.map-box {
  height: 420px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  position: relative; z-index: 1; isolation: isolate;
}
.leaflet-container { z-index: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; cursor: pointer; font-family: inherit; }
.chip.active, .chip:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

.page-hero { padding: 28px 0 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--teal); }
.page-intro {
  display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start;
  padding: 22px 24px; border-radius: 24px;
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(201,162,39,.16), transparent 55%),
    linear-gradient(165deg, #0b3d4a, #145a68);
  color: #f4efe4;
  box-shadow: 0 18px 40px rgba(11,61,74,.18);
  animation: page-drop .55s cubic-bezier(.22,1,.36,1);
}
.page-intro-ico {
  width: 72px; height: 72px; border-radius: 20px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #e8c547;
}
.page-intro-txt h1 {
  font-family: var(--display); font-weight: 560;
  font-size: clamp(28px, 3vw, 40px);
  color: #fff; margin: 0 0 8px; line-height: 1.15;
}
.page-intro-txt p { color: #d5e2e6; max-width: 68ch; margin: 0; }
.page-intro .eyebrow { color: #e8c547; }
.page-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.page-pills span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.08); color: #f6f1e6; font-size: 12px; font-weight: 700;
}
@keyframes page-drop {
  from { opacity: 0; transform: translateY(-32px); }
  to { opacity: 1; transform: none; }
}
.page-rise { animation: page-rise .6s .08s both cubic-bezier(.22,1,.36,1); }
@keyframes page-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.results-desk {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start;
  width: min(1100px, calc(100% - 40px)); margin-inline: auto;
}
.results-form h3, .results-hint h3 { margin: 0 0 8px; }
.results-hint { background: linear-gradient(180deg, #fffdf8, #f6f1e6); }
.results-hint-list { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; }
.results-hint-list li { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-soft); }
.results-hint-list svg { color: #1b7a4e; }
.results-hint-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (prefers-reduced-motion: reduce) {
  .page-intro, .page-rise, .hero.page-rise, .faq-lead, .faq-item, .faq-a { animation: none; }
}
.news-hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
  overflow: hidden; margin-bottom: 18px;
  box-shadow: 0 16px 40px rgba(18,32,40,.06);
}
.news-hero-txt { padding: 28px 28px 24px; display: flex; flex-direction: column; justify-content: center; }
.news-hero-txt h2 { font-family: var(--display); font-size: clamp(26px, 3vw, 36px); margin: 8px 0 10px; line-height: 1.15; }
.news-hero-txt p { margin: 0 0 16px; color: var(--ink-soft); }
.news-more { color: var(--gold-dim); font-weight: 800; font-size: 13px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.news-card {
  position: relative;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 10px 24px rgba(18,32,40,.04);
}
.news-cover {
  aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(145deg, #0b3d4a, #1a7a8c);
}
.news-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-cover.is-empty { display: grid; place-items: center; color: #e8c547; font-weight: 800; letter-spacing: .08em; }
.news-card-txt { padding: 14px 16px 44px; position: relative; flex: 1; }
.news-card-txt h3 { margin: 4px 0 8px; font-size: 17px; line-height: 1.3; }
.news-card-txt p, .news-card-txt small { color: var(--muted); }
.news-card-txt p { margin: 0; font-size: 13px; padding-right: 36px; }
.news-go {
  position: absolute; right: 12px; bottom: 12px;
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: #0b3d4a; color: #e8c547;
}
.news-article-wrap { max-width: 860px; }
.news-article-cover { margin: 0 0 22px; border-radius: 22px; overflow: hidden; }
.news-article-cover img { width: 100%; height: auto; display: block; }
.news-article-body { font-size: 17px; line-height: 1.75; color: var(--ink); }
.news-story-wrap { max-width: 1080px; }
.news-story-cover {
  position: relative; margin: 0 0 28px; border-radius: 26px; overflow: hidden;
  box-shadow: 0 22px 48px rgba(11,61,74,.16);
}
.news-story-cover img { width: 100%; height: min(62vh, 560px); object-fit: cover; display: block; }
.news-story-cover figcaption {
  position: absolute; left: 16px; bottom: 16px;
  display: flex; gap: 10px; align-items: center;
  background: rgba(11,61,74,.82); color: #f6f1e6;
  padding: 8px 12px; border-radius: 12px; font-size: 12px; font-weight: 800;
}
.news-story-cover figcaption span { color: #e8c547; }
.news-story-body {
  font-size: 18px; line-height: 1.8; color: var(--ink); max-width: 72ch;
}
.news-gallery { margin: 36px 0 8px; }
.news-gallery-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-bottom: 14px;
}
.news-gallery-head h2 { margin: 0; }
.news-gallery-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.news-gal {
  border: 0; padding: 0; cursor: zoom-in; overflow: hidden;
  border-radius: 18px; background: #0b3d4a; aspect-ratio: 4 / 3;
  box-shadow: 0 10px 24px rgba(18,32,40,.06);
}
.news-gal:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 280px; }
.news-gal img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.news-gal:hover img { transform: scale(1.04); }
.news-lite {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(8,22,28,.88);
  display: grid; place-items: center;
}
.news-lite[hidden] { display: none; }
.news-lite img { max-width: min(92vw, 1100px); max-height: 82vh; border-radius: 16px; }
.news-lite-close, .news-lite-nav {
  position: absolute; border: 0; background: #fff; color: #0b3d4a;
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; cursor: pointer;
}
.news-lite-close { top: 18px; right: 18px; }
.news-lite-nav.is-prev { left: 16px; }
.news-lite-nav.is-next { right: 16px; }
.news-lite small {
  position: absolute; bottom: 18px; color: #e8c547; font-weight: 800; letter-spacing: .06em;
}
.news-admin-gal { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.news-admin-shot {
  width: 92px; display: grid; gap: 4px; font-size: 11px; font-weight: 700;
}
.news-admin-shot img { width: 92px; height: 68px; object-fit: cover; border-radius: 10px; }
.news-related { margin-top: 36px; }
.news-related h2 { font-family: var(--display); margin: 0 0 14px; }
.news-pager { margin-top: 22px; }
.home-news {
  display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.home-news .news-cover { aspect-ratio: 1; border-radius: 10px; }
.home-news strong, .home-news small { display: block; }
.home-news small { color: var(--muted); font-size: 12px; }
.news-admin { display: grid; gap: 14px; }
.news-admin-card { overflow: hidden; }
.news-admin-card > .news-cover { aspect-ratio: 21 / 9; }
.news-admin-actions { display: flex; gap: 8px; margin: 8px 0 12px; }
.page-title p { color: var(--ink-soft); max-width: 62ch; }
.page-title .eyebrow, .kicker { display: inline-flex; align-items: center; gap: 6px; }
.crumbs a, .crumbs strong { display: inline-flex; align-items: center; gap: 5px; }
.faq summary { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.faq-band {
  padding: 64px 0;
  background:
    radial-gradient(700px 240px at 8% 0%, rgba(232,197,71,.18), transparent 55%),
    #efe8d8;
}
.faq-desk { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.faq-lead {
  position: sticky; top: 92px;
  padding: 26px 24px; border-radius: 26px;
  background:
    radial-gradient(360px 140px at 100% 0%, rgba(232,197,71,.2), transparent 58%),
    linear-gradient(160deg, #0b3d4a, #156274);
  color: #f4efe4;
  box-shadow: 0 18px 40px rgba(11,61,74,.16);
  animation: faq-up .55s cubic-bezier(.22,1,.36,1) both;
}
.faq-lead h2 { font-family: var(--display); margin: 8px 0 10px; font-size: clamp(28px, 3vw, 38px); }
.faq-lead p { margin: 0 0 18px; color: #d5e2e6; }
.faq-lead .eyebrow { color: #e8c547; }
.faq-lead-ico {
  width: 54px; height: 54px; border-radius: 16px; margin-bottom: 12px;
  display: grid; place-items: center; background: rgba(255,255,255,.08); color: #e8c547;
}
.faq-lead-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-lead-actions .btn-line { border-color: rgba(255,255,255,.24); color: #fff; }
.faq-board { display: grid; gap: 10px; }
.faq-search {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 16px; margin-bottom: 4px;
  background: #fff; border: 1px solid var(--line);
}
.faq-search input { border: 0; outline: none; width: 100%; background: transparent; font: inherit; }
.faq-item {
  background: #fff; border: 1px solid #ebe4d6; border-radius: 18px;
  overflow: hidden; box-shadow: 0 10px 24px rgba(18,32,40,.04);
  animation: faq-up .5s cubic-bezier(.22,1,.36,1) both;
  animation-delay: var(--d, 0ms);
}
.faq-item summary {
  list-style: none; display: grid; grid-template-columns: 40px 1fr 22px;
  gap: 12px; align-items: center; padding: 16px 16px; cursor: pointer; font-weight: 800;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-num {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: #0b3d4a; color: #e8c547; font-size: 13px;
}
.faq-q { min-width: 0; }
.faq-caret { color: var(--muted); transition: transform .25s ease; }
.faq-item[open] { border-color: #d8c27a; box-shadow: 0 14px 30px rgba(11,61,74,.08); }
.faq-item[open] .faq-caret { transform: rotate(180deg); color: var(--teal); }
.faq-item[open] .faq-num { background: linear-gradient(145deg, #1a7a8c, #0b3d4a); }
.faq-a {
  padding: 0 16px 16px 68px; color: var(--ink-soft); line-height: 1.65;
  animation: faq-open .28s ease;
}
.faq-item:hover { transform: translateY(-2px); }
@keyframes faq-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.settings-grid { display: grid; gap: 16px; max-width: 920px; }
.settings-card h3 { margin-bottom: 14px; }
.writer-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.writer-desk { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; }
.writer-out label { display: block; font-size: 12px; font-weight: 700; margin: 10px 0 4px; color: var(--ink-soft); }
.writer-out input, .writer-out textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  font: inherit; background: #fffdf8;
}
@media (max-width: 900px) {
  .writer-desk { grid-template-columns: 1fr; }
}

.auth-shell {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
  background: var(--cream);
}
.auth-visual {
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(201,162,39,.2), transparent 50%),
    linear-gradient(165deg, #0b3d4a, #145a68);
  color: #f4efe4; padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-visual h2 { font-family: var(--display); font-size: 42px; line-height: 1.15; max-width: 12ch; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(460px, 100%); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink-soft); }
.field-control {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 0 12px; min-height: 48px;
}
.field-control:focus-within { border-color: var(--teal-mid); box-shadow: 0 0 0 4px rgba(20,96,120,.12); }
.field-control i, .field-control svg { color: var(--teal-mid); flex: 0 0 auto; }
.field-control input, .field-control select, .field-control textarea {
  border: 0; outline: 0; background: transparent; width: 100%; padding: 12px 0;
}
.field textarea { min-height: 110px; resize: vertical; }
.help { color: var(--danger); font-size: 12px; margin-top: 5px; }
.star-label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 8px; color: var(--ink-soft); }
.star-pick {
  display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px;
  margin: 0 0 14px;
}
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { cursor: pointer; color: #d4cbb8; line-height: 0; }
.star-pick label:hover,
.star-pick label:hover ~ label,
.star-pick input:checked ~ label { color: #c9a227; }
.star-pick svg { width: 26px; height: 26px; fill: currentColor; }
.star-view { display: inline-flex; align-items: center; gap: 3px; color: #d4cbb8; margin: 6px 0; }
.star-view .is-on, .star-view svg.is-on { color: #c9a227; fill: #c9a227; }
.flash {
  padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 14px;
}
.flash-ok { background: #d8f3e4; color: #14633c; }
.flash-err { background: #f8d4d1; color: #8a1c14; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 272px 1fr; }
.sidebar {
  background: #0c323c; color: #d7e6e8; padding: 22px 16px;
  position: sticky; top: 0; height: 100vh; overflow: auto;
}
.sidebar .brand { color: #fff; margin-bottom: 22px; }
.side-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; color: #c5d5d8; margin-bottom: 4px; font-size: 14px;
}
.side-nav a:hover, .side-nav a.active { background: rgba(255,255,255,.08); color: #fff; }
.side-nav .grp { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #7f9aa0; margin: 16px 8px 8px; }
.app-main { padding: 22px 24px 40px; }
.top-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 12px; }
.user-pill { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); padding: 6px 10px 6px 6px; border-radius: 999px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
th { color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.admin-sidebar { background: #101418; }
.admin-sidebar .mark { background: linear-gradient(145deg, #1a1f24, #2a3238); color: var(--gold); }

.admin-body { background: #f5f7f8; }
.admin-body .live-fab,
.admin-body .live-box,
.admin-body .live-shade,
.admin-dock-btn { display: none !important; }
.admin-chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 120;
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #128c7e, #075e54);
  color: #fff;
  box-shadow: 0 16px 32px rgba(7,94,84,.38);
  text-decoration: none;
}
.admin-chat-fab:hover { transform: translateY(-2px); color: #fff; }
.admin-chat-fab em {
  position: absolute; top: 4px; right: 4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: #e8c547; color: #2b2208;
  font-size: 11px; font-weight: 800; font-style: normal;
  display: grid; place-items: center;
  box-shadow: 0 0 0 2px #075e54;
}
.admin-chat-fab em[hidden] { display: none; }
.admin-chat-fab.has-unread { animation: wa-pulse 1.6s ease-in-out infinite; }
.admin-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #f5f7f8;
}
.admin-app.is-chat { grid-template-columns: 280px minmax(0, 1fr); height: 100dvh; overflow: hidden; }
.admin-body.is-admin-chat { height: 100dvh; overflow: hidden; }
.admin-app.is-chat .admin-main {
  display: flex; flex-direction: column;
  height: 100dvh; min-height: 0; min-width: 0; overflow: hidden;
}
.admin-app.is-chat .admin-content {
  padding: 0; flex: 1; min-height: 0; display: flex; overflow: hidden;
}
.admin-app.is-chat .admin-top {
  flex: 0 0 auto; padding: 8px 20px; gap: 0;
  position: static; box-shadow: none;
}
.admin-app.is-chat .admin-title .page-ico,
.admin-app.is-chat .admin-title .eyebrow { display: none; }
.admin-app.is-chat .admin-title h1 { font-size: 18px; }
.admin-overlay { display: none; }
.admin-side {
  background: #fff;
  border-right: 1px solid #e7ecee;
  padding: 20px 14px 16px;
  position: sticky; top: 0; height: 100vh;
  overflow: auto;
  display: flex; flex-direction: column;
  box-shadow: 8px 0 32px rgba(18, 32, 40, .04);
}
.admin-brand { margin-bottom: 18px; padding: 4px 8px; }
.admin-brand small { color: var(--gold-dim); letter-spacing: .1em; }
.admin-nav { flex: 1; }
.admin-nav .grp {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: #8a99a0; margin: 16px 10px 8px; font-weight: 800;
}
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  color: #42545c; margin-bottom: 3px; font-size: 14px; font-weight: 700;
}
.admin-nav a svg { color: #6d838c; }
.admin-nav a:hover { background: #f3f6f7; color: var(--teal); }
.admin-nav a.active {
  background: linear-gradient(90deg, rgba(11,61,74,.08), rgba(201,162,39,.1));
  color: var(--teal);
  box-shadow: inset 3px 0 0 var(--gold);
}
.admin-nav a.active svg { color: var(--gold-dim); }
.admin-nav a .nav-badge {
  margin-left: auto;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: #c9a227; color: #2b2208; font-size: 10px; font-weight: 800;
  display: grid; place-items: center; font-style: normal;
}
.admin-nav a .nav-badge[hidden] { display: none; }
.admin-notify {
  position: relative;
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: #eef5f6; color: #0b3d4a;
}
.admin-notify.has-unread { background: #fff4d6; color: #8c7014; }
.admin-notify em {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: #25d366; color: #fff; font-size: 10px; font-weight: 800;
  display: grid; place-items: center; font-style: normal;
  box-shadow: 0 0 0 2px #fff;
}
.admin-notify em[hidden] { display: none; }
.admin-notify.has-unread em { animation: wa-pulse 1.6s ease-in-out infinite; }
@keyframes wa-pulse { 50% { transform: scale(1.12); } }
.admin-dock {
  position: sticky; top: 0; height: 100vh;
  background: #fff; border-left: 1px solid #e7ecee;
  display: flex; flex-direction: column; min-width: 0;
  box-shadow: -8px 0 32px rgba(18, 32, 40, .04);
}
.dock-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 16px 16px 12px; border-bottom: 1px solid #eef2f3;
}
.dock-head strong { display: block; }
.dock-head small { display: block; color: var(--muted); font-size: 12px; }
.dock-head em {
  min-width: 24px; padding: 3px 8px; border-radius: 999px;
  background: #0b3d4a; color: #e8c547; font-style: normal; font-size: 12px; font-weight: 800; text-align: center;
}
.dock-tools { padding: 10px 12px; border-bottom: 1px solid #eef2f3; }
.dock-search {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: #f7fafb;
}
.dock-search input { border: 0; background: transparent; width: 100%; outline: none; }
.dock-filters { display: flex; gap: 6px; margin-top: 8px; }
.dock-filters button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 5px 10px; font-size: 12px; font-weight: 800; cursor: pointer; color: var(--ink-soft);
}
.dock-filters button.is-on { background: #0b3d4a; color: #fff; border-color: #0b3d4a; }
.admin-dock .live-inbox-list { flex: 1; overflow: auto; }
.admin-dock .live-item.has-unread { background: #fff8e8; }
.admin-dock .live-item.is-wait { background: #fff6ea; }
.live-agent { color: #8c7014 !important; font-weight: 800; }
.dock-accept {
  padding: 14px 16px 16px; background: #fff8e8; border-top: 1px solid #ead9a8;
  display: grid; gap: 10px;
}
.dock-accept[hidden], #deskWrite[hidden] { display: none; }
.dock-accept p { margin: 0; font-size: 13px; color: #5c4a12; }
.live-sys-row { align-self: center; max-width: 92%; }
.live-sys {
  margin: 4px 0; text-align: center; font-size: 12px; font-weight: 700;
  color: #5c6b72; background: #e8eef0; border-radius: 999px; padding: 6px 12px;
}
.admin-dock .live-item .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.dock-thread { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #eef3f4; }
.dock-thread[hidden] { display: none; }
.admin-dock.is-thread .dock-tools,
.admin-dock.is-thread .live-inbox-list { display: none; }
.wa-desk {
  display: grid; grid-template-columns: 360px minmax(0, 1fr);
  flex: 1; height: 100%; min-height: 0; width: 100%;
  background: #fff; overflow: hidden;
}
.wa-list {
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  background: #fff; border-right: 1px solid #e7ecee; overflow: hidden;
}
.wa-list-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 16px 16px 12px;
}
.wa-list-head strong { display: block; font-size: 18px; }
.wa-list-head small { display: block; color: var(--muted); font-size: 12px; }
.wa-unread-pill {
  min-width: 24px; padding: 3px 8px; border-radius: 999px;
  background: #25d366; color: #fff; font-style: normal; font-size: 12px; font-weight: 800; text-align: center;
}
.wa-unread-pill[hidden] { display: none; }
.wa-list .live-inbox-list { flex: 1; overflow: auto; }
.wa-list .live-item { padding: 12px 16px; border-bottom: 1px solid #f1f4f5; }
.wa-list .live-item.has-unread { background: #f7fff9; }
.wa-list .live-item.has-unread b { font-weight: 800; }
.wa-list .live-item.has-unread .live-item-txt small:nth-of-type(2) { color: #122028; font-weight: 700; }
.wa-list .live-item-meta em {
  background: #25d366; color: #fff; min-width: 20px; height: 20px;
  border-radius: 999px; font-size: 11px;
}
.wa-stage {
  min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(600px 240px at 80% 0%, rgba(201,162,39,.12), transparent 50%),
    #e8eef0;
}
.wa-empty {
  flex: 1; display: grid; place-items: center; align-content: center; text-align: center;
  padding: 40px 24px; color: var(--ink-soft);
}
.wa-empty[hidden] { display: none; }
.wa-empty-ico {
  width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; background: #0b3d4a; color: #e8c547;
}
.wa-empty h3 { margin: 0 0 8px; font-family: var(--display); font-size: 28px; }
.wa-empty p { margin: 0; max-width: 36ch; }
.wa-desk .dock-thread { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.wa-desk .dock-thread[hidden] { display: none; }
.wa-desk .live-thread-head,
.wa-desk .dock-accept,
.wa-desk #deskWrite { flex: 0 0 auto; }
.wa-desk .live-stream {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px 12px;
  background:
    linear-gradient(180deg, rgba(232,238,240,.92), rgba(232,238,240,.92)),
    repeating-linear-gradient(135deg, rgba(11,61,74,.03) 0 8px, transparent 8px 16px);
}
.wa-desk .live-stream::before { content: ""; flex: 1 0 0; }
.wa-desk .live-msg { max-width: min(68%, 560px); }
.wa-desk .live-composer { background: #f0f2f5; padding: 10px 14px 12px; }
@media (max-width: 980px) {
  .wa-desk { grid-template-columns: 1fr; }
  .wa-desk.is-thread .wa-list { display: none; }
  .wa-desk:not(.is-thread) .wa-stage { display: none; }
  .admin-app.is-chat .admin-title h1 { font-size: 16px; }
  .admin-app.is-chat .admin-content { padding: 0; }
}
.dock-back {
  width: 36px; height: 36px; border: 0; border-radius: 10px; margin-right: 8px;
  background: rgba(255,255,255,.1); color: #fff; cursor: pointer;
}
.live-thread-head { gap: 8px; }
.live-thread-head > div { flex: 1; min-width: 0; }
.admin-side-foot { padding-top: 14px; border-top: 1px solid #eef2f3; }
.admin-main { min-width: 0; }
.admin-top {
  display: flex; flex-direction: column; gap: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,251,.94)),
    radial-gradient(1200px 180px at 8% -40%, rgba(232,197,71,.18), transparent 60%),
    radial-gradient(900px 160px at 92% 0%, rgba(26,122,140,.12), transparent 55%);
  border-bottom: 1px solid #e7ecee;
  padding: 20px 48px 16px; position: sticky; top: 0; z-index: 20;
  box-shadow: 0 12px 28px rgba(18,32,40,.05);
  backdrop-filter: blur(10px);
}
.admin-top-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.admin-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.admin-title h1 { margin: 0; font-family: var(--display); font-size: 30px; letter-spacing: -.02em; }
.page-ico {
  width: 46px; height: 46px; border-radius: 14px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #0b3d4a, #1a7a8c);
  color: #e8c547; box-shadow: 0 10px 20px rgba(11,61,74,.18);
}
.admin-burger {
  display: none; border: 1px solid var(--line); background: #fff;
  width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
}
.admin-top-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.admin-date-rail { min-width: 0; }
.admin-date-rail-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: 8px; color: #5d6d72; font-size: 12px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
}
.admin-date-rail-head span { display: inline-flex; align-items: center; gap: 6px; }
.admin-date-rail-head a { color: var(--teal); text-transform: none; letter-spacing: 0; }
.admin-date-chips {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.admin-date-chip {
  display: flex; align-items: center; gap: 10px; min-width: 220px;
  padding: 8px 12px 8px 8px; border-radius: 16px;
  background: #fff; border: 1px solid #e7ecee; color: inherit;
  box-shadow: 0 8px 18px rgba(18,32,40,.04);
  scroll-snap-align: start;
}
.admin-date-chip strong, .admin-date-chip small { display: block; }
.admin-date-chip small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.admin-date-num {
  width: 46px; min-height: 50px; border-radius: 13px; flex: 0 0 auto;
  background: #0b3d4a; color: #fff; display: grid; place-items: center; text-align: center;
}
.admin-date-num b { font-family: var(--display); font-size: 20px; line-height: 1; }
.admin-date-num small { color: #e8c547; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.admin-date-empty { color: var(--muted); font-size: 13px; padding: 8px 0; }
.admin-content { padding: 26px 48px 56px; }
.pay-filter { margin-bottom: 14px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-toggle em {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: #0b3d4a; color: #e8c547; font-size: 11px; font-weight: 800; font-style: normal;
  display: inline-grid; place-items: center;
}
.filter-caret { transition: transform .2s; }
.pay-filter.is-open .filter-caret { transform: rotate(180deg); }
.filter-body { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.pay-sub { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.pay-table td b { font-variant-numeric: tabular-nums; }
.pay-table .is-in { color: #1b7a4e; }
.pay-table .is-out { color: #8b3a2a; }
.pay-type.is-exam_pay { background: #f4e8e5; color: #8b3a2a; }
.pay-type.is-topup { background: #d8f3e4; color: #1b7a4e; }
.pay-type.is-bonus { background: #f6ecd0; color: #8c7014; }
.pay-type.is-refund { background: #e7f1f3; color: #0b3d4a; }
.date-board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.date-board-head h3 { margin: 0; }
.date-table td { vertical-align: top; }
.date-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.date-actions form { display: inline; }
.dash { display: grid; gap: 16px; }
.dash-hello {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 24px; border-radius: 22px;
  background:
    radial-gradient(420px 140px at 100% 0%, rgba(201,162,39,.18), transparent 55%),
    linear-gradient(165deg, #0b3d4a, #145a68);
  color: #f4efe4;
}
.dash-hello h2 { margin: 4px 0 6px; font-family: var(--display); font-size: clamp(24px, 3vw, 34px); color: #fff; }
.dash-hello p { margin: 0; color: #d5e2e6; max-width: 62ch; }
.dash-hello-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.dash-card {
  display: grid; gap: 4px; padding: 16px 16px 14px; min-height: 132px;
  border-radius: 20px; border: 1px solid var(--line); background: #fff;
  text-decoration: none; color: inherit;
  box-shadow: 0 10px 24px rgba(18,32,40,.04);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.dash-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(18,32,40,.08); border-color: #c9d5d8; }
.dash-card-ico {
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 8px;
  display: grid; place-items: center;
}
.dash-card b { font-family: var(--display); font-size: 28px; line-height: 1; color: var(--teal); }
.dash-card strong { font-size: 14px; }
.dash-card small { color: var(--muted); font-size: 12px; }
.dash-card.is-teal .dash-card-ico { background: #e7f1f3; color: var(--teal); }
.dash-card.is-gold .dash-card-ico { background: #f6ecd0; color: var(--gold-dim); }
.dash-card.is-rose .dash-card-ico { background: #f4e8e5; color: var(--rose); }
.dash-card.is-sea .dash-card-ico { background: #e4f0ee; color: var(--teal-soft); }
.dash-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dash-jumps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.dash-jump {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  font-weight: 800; color: var(--ink-soft); text-decoration: none;
}
.dash-jump:hover { border-color: #1a6b78; color: var(--teal); }
.dash-jump svg { color: var(--teal); }
.dash-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dash-head h3 { margin: 0; }
.dash-head a { font-size: 12px; font-weight: 800; color: var(--teal); }
.dash-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none;
}
.dash-row span { min-width: 0; }
.dash-row b, .dash-row small { display: block; }
.dash-row small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.dash-row em {
  flex: none; font-style: normal; font-size: 11px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px; background: #eef5f6; color: var(--teal);
}
.dash-day {
  width: 42px; border-radius: 12px; flex: none; text-align: center;
  background: #0b3d4a; color: #fff; padding: 6px 0;
}
.dash-day b { font-family: var(--display); font-size: 16px; color: #fff; }
.dash-day small { color: #e8c547; font-size: 10px; }
@media (max-width: 1180px) {
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .dash-jumps, .dash-charts, .dash-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .dash-hello, .dash-charts, .dash-cols, .dash-jumps { grid-template-columns: 1fr; }
  .dash-hello { flex-direction: column; align-items: flex-start; }
}
.admin-stat {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
}
.stu-hero {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px; align-items: center; margin-bottom: 14px;
}
.stu-hero h2 { margin: 4px 0 6px; font-family: var(--display); font-size: 32px; }
.stu-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.stu-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.stu-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  margin-bottom: 14px;
}
.stu-facts small { display: block; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.stu-facts strong { display: block; margin-top: 4px; }
.stu-mini { display: flex; align-items: center; gap: 10px; }
.stu-result {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.stu-result b { font-family: var(--display); font-size: 24px; color: var(--teal); }
.stu-subjects { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.stu-subjects span {
  background: #f6f8f8; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 10px; font-size: 12px; font-weight: 700;
}
.pay-mini {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.pay-mini b.is-in { color: #1b7a4e; }
.pay-mini b.is-out { color: #8b3a2a; }
@media (max-width: 900px) {
  .stu-hero { grid-template-columns: 1fr; }
  .stu-facts { grid-template-columns: 1fr 1fr; }
}
.admin-stat .ico {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; background: #eef5f6; color: var(--teal);
}
.section-ico {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
}
.section-ico svg { color: var(--teal); }

.footer { background: #0b2d36; color: #c9d8db; padding: 48px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.footer h4 { color: #fff; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.footer a { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: #c9d8db; }
.footer a:hover { color: var(--gold-soft); }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px; padding: 0; display: grid; place-items: center;
  border-radius: 10px; background: rgba(255,255,255,.08); color: #e8c547;
}
.copy { border-top: 1px solid rgba(255,255,255,.08); margin-top: 28px; padding-top: 14px; font-size: 13px; display: flex; justify-content: space-between; }

.progress { height: 8px; background: var(--sand); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.faq + .faq { border-top: 1px solid var(--line); }
.faq details { padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.quote { font-family: var(--display); font-size: 20px; line-height: 1.4; }

.pagination { display: flex; gap: 6px; list-style: none; padding: 0; flex-wrap: wrap; }
.pagination .page-link, .pagination .page-item span {
  display: inline-block; padding: 7px 11px; border-radius: 10px;
  background: var(--paper); border: 1px solid var(--line);
}
.pagination .active .page-link { background: var(--teal); color: #fff; border-color: var(--teal); }

@media (max-width: 1180px) {
  body.nav-lock { overflow: hidden; }
  .site-burger { display: grid; }
  .header-cta > .btn { display: none; }
  .site-overlay {
    display: block; position: fixed; inset: 0; z-index: 220;
    background: rgba(11, 32, 40, .48);
    opacity: 0; pointer-events: none; transition: opacity .25s ease;
  }
  .site-chrome.is-open .site-overlay, body.nav-lock .site-overlay { opacity: 1; pointer-events: auto; }
  .nav {
    display: flex; position: fixed; top: 0; right: 0;
    width: min(340px, 88vw); height: 100dvh; max-height: 100dvh;
    z-index: 230;
    background: #fffdf8;
    flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0;
    padding: 0; margin: 0;
    transform: translateX(110%);
    transition: transform .28s ease;
    box-shadow: -18px 0 50px rgba(18, 32, 40, .16);
  }
  .site-chrome.is-open .nav, body.nav-lock .nav { transform: translateX(0); }
  .nav-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 16px 16px 14px; flex: 0 0 auto;
    border-bottom: 1px solid var(--line);
  }
  .nav-head .brand-text small { color: var(--gold-dim); }
  .site-close {
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 12px;
    border: 1px solid var(--line); background: #fff; color: var(--teal); cursor: pointer;
  }
  .nav-body {
    display: grid !important; gap: 4px; padding: 12px 12px 8px;
    overflow: auto; flex: 1 1 auto; min-height: 0;
  }
  .nav-foot {
    display: grid; gap: 8px; padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line); background: #f7f2e8; flex: 0 0 auto;
  }
  .nav-link { width: 100%; justify-content: flex-start; border-radius: 14px; padding: 12px 14px; font-size: 15px; }
  .nav-link svg { width: 18px; height: 18px; }
  .nav-drop .nav-sub {
    position: static; display: none; box-shadow: none; border: 0;
    background: #f4efe4; margin: 4px 0 0; padding: 6px; border-radius: 12px;
  }
  .nav-drop.is-open .nav-sub { display: grid; }
  .nav-drop:hover .nav-sub { display: none; }
  .nav-drop.is-open:hover .nav-sub { display: grid; }
  .account-meta { display: none; }
  .account-btn { padding-right: 8px; }
}
@media (max-width: 1200px) {
  .admin-app.has-dock { grid-template-columns: 280px minmax(0, 1fr); }
  .admin-dock {
    position: fixed; right: 0; top: 0; z-index: 46; width: min(380px, 100vw);
    transform: translateX(105%); transition: transform .25s ease;
    box-shadow: -16px 0 40px rgba(18,32,40,.16);
  }
  .admin-app.dock-open .admin-dock { transform: none; }
  .admin-app.dock-open .admin-overlay {
    display: block; position: fixed; inset: 0; z-index: 40;
    background: rgba(18,32,40,.35); opacity: 1; pointer-events: auto;
  }
}
@media (max-width: 980px) {
  .hero-grid, .auth-shell, .app-shell, .grid-3, .grid-4, .quick, .footer-grid, .auth-on-site, .home-split, .home-tools, .news-hero, .news-grid, .news-gallery-grid, .results-desk, .page-intro, .sm-grid, .cal-board, .faq-desk, .reg-desk, .reg-card .grid-2 { grid-template-columns: 1fr; }
  .faq-lead { position: static; }
  .faq-a { padding-left: 16px; }
  .news-gal:first-child { grid-column: auto; grid-row: auto; min-height: 0; }
  .page-intro { padding: 18px 16px; gap: 12px; }
  .page-intro-ico { width: 56px; height: 56px; border-radius: 16px; }
  .cabinet-nav { top: 0; }
  .desk-site { display: none; }
  .topbar { overflow: hidden; }
  .topbar-addr, .topbar-mail, .topbar-phone-full { display: none; }
  .topbar-phone-short { display: inline; }
  .topbar .wrap {
    width: calc(100% - 20px);
    justify-content: stretch;
    min-height: 46px;
    gap: 8px;
  }
  .topbar-tools {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
  }
  .topbar-calls { gap: 6px; }
  .topbar-phone {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    font-size: 11px;
  }
  .topbar-social a { width: 28px; height: 28px; border-radius: 9px; }
  .app-body {
    background:
      radial-gradient(900px 400px at 20% 0%, rgba(201,162,39,.16), transparent 50%),
      linear-gradient(180deg, #0b3d4a, #163a42);
  }
  .app-stage { padding: 0; min-height: 100dvh; }
  .phone {
    width: 100%; height: 100dvh; min-height: 100dvh;
    background: #f4efe6; border-radius: 0; border: 0; box-shadow: none;
  }
  .app-bar {
    width: 100%; margin: 0; padding: 12px 14px 10px;
    background: #0b3d4a; color: #f6f1e6; order: 1;
  }
  .app-bar-title strong { font-family: var(--font); font-size: 16px; }
  .app-bar-title small { color: #e8c547; }
  .ttl-desk { display: none; }
  .ttl-mob { display: inline; }
  .app-back, .app-bar-user { width: 38px; height: 38px; background: rgba(255,255,255,.1); }
  .app-bar-note, .app-bar-chat { background: rgba(255,255,255,.1); color: #f6f1e6; }
  .app-bar-wallet {
    display: inline-flex; height: 40px; padding: 0 10px;
    background: #e8c547; color: #2b2208; font-size: 12px;
  }
  .app-bar .avatar { width: 38px; height: 38px; }
  .app-scroll {
    width: 100%; margin: 0; padding: 16px 14px 12px;
    overflow: auto; order: 2;
  }
  .app-tabs {
    order: 3; width: 100%; margin: 0;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px;
    background: #fffdf8; border-top: 1px solid #ece4d6;
    box-shadow: 0 -8px 24px rgba(18, 32, 40, .06);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .app-tabs a {
    min-width: 0; flex-direction: column; gap: 4px;
    padding: 6px 2px; border: 0; background: transparent; border-radius: 14px;
    font-size: 11px; font-weight: 700; color: #6b7c85; letter-spacing: 0;
  }
  .app-tabs .tab-ico {
    width: 32px; height: 32px; border-radius: 10px;
    display: grid; place-items: center; background: transparent;
  }
  .app-tabs .tab-ico svg { width: 20px; height: 20px; }
  .app-tabs .tab-lbl {
    display: block; width: 100%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-align: center;
  }
  .app-tabs a.active { color: #0b3d4a; background: #eef5f6; }
  .app-tabs a.active .tab-ico { background: #0b3d4a; color: #e8c547; }
  .app-tabs a.active svg { color: #e8c547; }
  .phone .grid-2, .phone .grid-4 { grid-template-columns: 1fr; }
  .bal-hero { grid-template-columns: 1fr; padding: 16px; }
  .bal-hero-sum strong { font-size: 34px; }
  .tx-row { grid-template-columns: 40px 1fr auto; }
  .tx-time { display: none; }
  .tx-when { display: block; }
  .kpi-grid, .dyn-kpis, .app-tile-grid { grid-template-columns: 1fr 1fr; }
  .dyn-split { grid-template-columns: 1fr; }
  .dyn-topic { grid-template-columns: 1fr auto; }
  .dyn-bar { grid-column: 1 / -1; }
  .dyn-chip-row {
    margin: 0 -16px 14px;
    padding: 2px 0 4px;
  }
  .dyn-chip-row::before, .dyn-chip-row::after {
    content: ""; position: absolute; top: 0; bottom: 4px; width: 22px; z-index: 1; pointer-events: none;
  }
  .dyn-chip-row::before { left: 0; background: linear-gradient(90deg, #fffdf8, transparent); }
  .dyn-chip-row::after { right: 0; background: linear-gradient(270deg, #fffdf8, transparent); }
  .dyn-chips {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 16px 8px;
    touch-action: pan-x;
  }
  .dyn-chips::-webkit-scrollbar { display: none; }
  .dyn-chips button {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 9px 14px;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(18,32,40,.04);
  }
  .phone .card { box-shadow: none; }
  .sidebar { position: relative; height: auto; }
  .section { padding: 48px 0; }
  .admin-app, .admin-app.has-dock { grid-template-columns: 1fr; }
  .admin-dock {
    position: fixed; right: 0; top: 0; z-index: 46; width: min(380px, 100vw);
    transform: translateX(105%); transition: transform .25s ease;
  }
  .admin-app.dock-open .admin-dock { transform: none; }
  .admin-app.dock-open .admin-overlay { opacity: 1; pointer-events: auto; }
  .admin-side {
    position: fixed; left: 0; top: 0; z-index: 50; width: min(300px, 86vw);
    transform: translateX(-110%); transition: transform .25s ease;
  }
  .admin-app.is-open .admin-side { transform: none; }
  .admin-overlay {
    display: block; position: fixed; inset: 0; z-index: 40;
    background: rgba(18,32,40,.35); opacity: 0; pointer-events: none; transition: .2s;
  }
  .admin-app.is-open .admin-overlay { opacity: 1; pointer-events: auto; }
  .admin-burger { display: grid; place-items: center; }
  .admin-top, .admin-content { padding-left: 16px; padding-right: 16px; }
  .admin-app.is-chat .admin-content { padding: 0; }
  .admin-app.is-chat .admin-top { padding: 8px 12px; }
  .admin-title h1 { font-size: 22px; }
  .admin-date-chip { min-width: 200px; }
  .ticket { margin: 12px; }
  .center-feature { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .topbar-tools { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .topbar-social, .topbar-calls { width: 100%; justify-content: center; }
}

.exam-body { background: #e8eef0; }
.exam-shell { min-height: 100vh; max-width: 1440px; margin: 0 auto; }
.exam-stick {
  position: sticky; top: 0; z-index: 10;
  background: #e8eef0;
}
.exam-top {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px; background: #0b3d4a; color: #f6f1e6;
}
.exam-who { min-width: 0; flex: 1; }
.exam-who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.exam-top small { color: #e8c547; letter-spacing: .02em; }
.exam-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.exam-stat {
  min-width: 62px; text-align: center; font-size: 13px; font-weight: 800;
  background: rgba(255,255,255,.08); border-radius: 999px; padding: 8px 12px;
}
.exam-timer {
  display: inline-flex; align-items: center; gap: 8px;
  background: #163a42; border-radius: 999px; padding: 8px 14px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.exam-timer.is-low { background: #8b3a2a; }
.exam-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 22px;
  background: #e8eef0;
  border-bottom: 1px solid #d5dee1;
}
.exam-modes, .exam-zoom, .exam-subs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.exam-modes button, .exam-zoom button, .exam-subs button {
  border: 0; background: transparent; border-radius: 999px;
  padding: 6px 12px; font-weight: 800; font-size: 12px; cursor: pointer; color: var(--ink-soft);
}
.exam-modes button.is-on, .exam-zoom button:hover, .exam-subs button.is-on { background: #0b3d4a; color: #fff; }
.exam-saved { margin-left: auto; font-size: 12px; }
.exam-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; padding: 14px 22px 28px; align-items: start; }
.exam-nav { position: sticky; top: calc(var(--exam-chrome, 120px) + 10px); padding: 14px 16px; }
.exam-nav-toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  gap: 10px; border: 0; background: transparent; padding: 0 0 10px; margin: 0;
  text-align: left; cursor: default; color: inherit;
}
.exam-nav-toggle-text { display: grid; gap: 2px; min-width: 0; }
.exam-nav-toggle-text strong { font-size: 16px; }
.exam-nav-toggle-text small { color: var(--muted); font-size: 12px; font-weight: 700; }
.exam-nav-toggle-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 800; flex: 0 0 auto; }
.exam-nav-toggle-meta i { display: none; }
.exam-nav-tools { display: none; }
.exam-nav-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.exam-nav-title h3 { margin: 0; font-size: 16px; }
.exam-legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.exam-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.lg-done { background: #1b7a4e; }
.lg-mark { background: #c9a227; }
.lg-now { background: #0b3d4a; }
.lg-open { background: #c9a227; border-radius: 2px; }
.exam-nav-block { padding: 10px 0; border-top: 1px dashed var(--line); }
.exam-nav-block.is-off { display: none; }
.exam-nav-subj { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.exam-nav-subj b { font-size: 13px; }
.exam-nav-prog { font-size: 11px; color: var(--muted); font-weight: 800; }
.exam-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.exam-dot {
  position: relative;
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; font-weight: 800; cursor: pointer;
}
.exam-dot.done { background: #d8f3e4; border-color: #1b7a4e; }
.exam-dot.marked { box-shadow: inset 0 0 0 2px #c9a227; }
.exam-dot.current { border-color: #0b3d4a; background: #0b3d4a; color: #fff; }
.exam-dot.is-off { display: none; }
.exam-dot.is-open-q { border-radius: 8px; }
.exam-dot em {
  position: absolute; right: -3px; bottom: -3px;
  width: 13px; height: 13px; border-radius: 4px;
  background: #c9a227; color: #2b2208;
  font-size: 8px; font-style: normal; font-weight: 800;
  display: grid; place-items: center; line-height: 1;
  box-shadow: 0 0 0 2px #fffdf8;
}
.exam-dot.current em { background: #e8c547; color: #0b3d4a; }
.exam-window { margin: 12px 0 0; font-size: 12px; }
.exam-paper { display: grid; gap: 14px; }
.exam-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; }
.exam-sheet-head small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.exam-sheet-head strong { display: block; font-size: 14px; line-height: 1.4; }
.exam-sheet-head em { font-style: normal; font-weight: 800; color: #0b3d4a; background: #eef5f6; border-radius: 999px; padding: 8px 12px; white-space: nowrap; }
.exam-block { display: grid; gap: 12px; }
.exam-block.is-off { display: none; }
.exam-block-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  padding: 4px 2px 2px;
}
.exam-block-head small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.exam-block-head h2 { margin: 2px 0 0; font-family: var(--display); font-size: 26px; }
.exam-block-head span { color: var(--muted); font-size: 12px; font-weight: 700; }
.exam-q-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.exam-flag {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); cursor: pointer;
}
.exam-flag.is-on { background: #f6e7b8; color: #8c7014; border-color: #c9a227; }
.exam-q { padding: 18px 20px; }
.exam-q h3 { font-size: 1.08em; line-height: 1.5; margin: 8px 0 16px; }
.exam-opts { display: grid; gap: 8px; }
.exam-opt {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
}
.exam-opt:has(input:checked) { border-color: #0b3d4a; background: #eef5f6; }
.exam-q-tag {
  display: inline-block; margin-left: 6px; padding: 2px 7px;
  border-radius: 999px; background: #f6e7b8; color: #8c7014;
  font-size: 10px; font-weight: 800; letter-spacing: .02em;
}
.exam-write { display: grid; gap: 8px; }
.exam-write span { font-size: 12px; font-weight: 800; color: var(--muted); }
.exam-write textarea {
  width: 100%; min-height: 92px; resize: vertical;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; background: #fff; line-height: 1.45;
}
.exam-write textarea:focus { outline: 2px solid #0b3d4a; border-color: #0b3d4a; }
.exam-pager { display: none; gap: 8px; }
.exam-pager.is-show, .exam-modal .exam-pager { display: flex; }
.exam-mode-step .exam-q { display: none; }
.exam-mode-step .exam-q.is-on { display: block; }
.exam-mode-step .exam-pager { display: flex; }
.exam-mode-step .exam-block-head, .exam-mode-step .exam-sheet-head { display: none; }
.exam-mode-list .exam-q { display: block; }
.exam-mode-list .exam-paper > .exam-pager { display: none; }
.exam-modal {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center;
  background: rgba(11,32,40,.45); padding: 16px;
}
.exam-modal[hidden] { display: none; }
.exam-modal .card { width: min(420px, 100%); }
.exam-lobby { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #0b3d4a; }
.exam-lobby-card { width: min(520px, 100%); text-align: center; }
.exam-lobby-card h1 { font-family: var(--display); font-size: 28px; margin: 6px 0 8px; }
.exam-lobby-meta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 18px 0; }
.exam-lobby-meta div { background: #f4efe4; border-radius: 14px; padding: 10px 8px; }
.exam-lobby-meta b { display: block; font-size: 13px; }
.exam-lobby-meta span { color: var(--muted); font-size: 11px; }
.exam-wait { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 20px; }
.exam-wait div { background: #0b3d4a; color: #fff; border-radius: 14px; padding: 12px 6px; }
.exam-wait strong { display: block; font-family: var(--display); font-size: 28px; }
.exam-wait span { color: #e8c547; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 980px) {
  .exam-shell { max-width: none; }
  .exam-top { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .exam-who { width: 100%; flex: 1 1 100%; }
  .exam-who strong { white-space: normal; font-size: 15px; }
  .exam-tools { width: 100%; justify-content: space-between; }
  .exam-stat, .exam-timer { padding: 7px 10px; }
  .exam-grid { grid-template-columns: 1fr; padding: 8px 10px 10px; gap: 8px; }
  .exam-paper { gap: 8px; }
  .exam-toolbar { display: none; }
  .exam-sheet-head { display: none; }
  .exam-nav {
    position: sticky; top: 0; z-index: 6;
    padding: 0; overflow: hidden;
    display: flex; flex-direction: column;
  }
  .exam-nav.is-open {
    max-height: calc(100dvh - var(--exam-chrome, 72px) - 8px);
  }
  .exam-nav-toggle {
    padding: 8px 12px; cursor: pointer; flex: 0 0 auto;
  }
  .exam-nav-toggle-text strong { font-size: 14px; }
  .exam-nav-toggle-text small { font-size: 11px; }
  .exam-nav-toggle-meta i { display: block; transition: transform .18s ease; }
  .exam-nav.is-open .exam-nav-toggle-meta i { transform: rotate(180deg); }
  .exam-nav-body { display: none; padding: 0 14px 14px; }
  .exam-nav.is-open .exam-nav-body {
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0;
    flex: 1 1 auto;
  }
  .exam-nav-tools { display: grid; gap: 8px; margin-bottom: 10px; }
  .exam-nav-tools .exam-subs, .exam-nav-tools .exam-modes { width: 100%; }
  .exam-nav-tools .exam-subs { overflow-x: auto; flex-wrap: nowrap; }
  .exam-dots { flex-wrap: wrap; overflow: visible; }
  .exam-block-head h2 { font-size: 20px; }
  .exam-q { padding: 10px 12px; }
  .exam-q-top .muted { font-size: 11px; }
  .exam-flag { width: 28px; height: 28px; border-radius: 8px; }
  .exam-q h3 { font-size: 15px; line-height: 1.35; margin: 4px 0 8px; }
  .exam-opts { gap: 5px; }
  .exam-opt { padding: 7px 10px; border-radius: 10px; font-size: 13px; gap: 8px; }
  .exam-write textarea { min-height: 72px; padding: 10px 12px; }
  .exam-pager {
    position: sticky; bottom: 0; z-index: 5;
    margin: 0; padding: 8px 0 calc(6px + env(safe-area-inset-bottom));
    background: #e8eef0;
  }
  .exam-pager .btn { flex: 1; padding: 8px 12px; }
  .exam-lobby-meta { grid-template-columns: 1fr; }
}

.ticket-body { background: #d9e3e6; min-height: 100vh; padding: 24px 0; }
.ticket-actions { width: min(820px, calc(100% - 24px)); margin: 0 auto 14px; display: flex; gap: 8px; }
.ticket {
  width: min(820px, calc(100% - 24px)); margin: 0 auto;
  background: #fff; border: 1px solid #c9d5d8; border-radius: 18px; padding: 0;
  box-shadow: 0 16px 40px rgba(18,32,40,.08); overflow: hidden;
}
.ticket-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; background: #0b3d4a; color: #f6f1e6;
}
.ticket-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ticket-brand strong { display: block; font-size: 16px; letter-spacing: 0; }
.ticket-brand em { display: block; font-style: normal; color: #e8c547; font-size: 12px; font-weight: 700; }
.ticket-no { text-align: right; }
.ticket-no span { display: block; color: #c9d8db; font-size: 11px; }
.ticket-no b { font-size: 18px; letter-spacing: .04em; }
.ticket-grid { display: grid; grid-template-columns: 1fr 180px; gap: 24px; padding: 22px; }
.ticket-person { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ticket-person h1 { font-family: var(--display); font-size: 28px; margin: 0 0 4px; }
.ticket-person p { margin: 0; color: var(--muted); }
.ticket-dl { display: grid; gap: 0; margin: 0; }
.ticket-dl div {
  display: grid; grid-template-columns: 120px 1fr; gap: 12px;
  padding: 10px 0; border-top: 1px solid #efe8d8;
}
.ticket-dl dt { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.ticket-dl dd { margin: 0; font-weight: 800; }
.ticket-qr {
  text-align: center; align-self: start;
  border: 1px solid #e4ddd0; border-radius: 16px; padding: 14px 10px;
}
.ticket-qr img { width: 148px; height: 148px; margin: 0 auto 8px; }
.ticket-qr b { display: block; }
.ticket-qr span { color: var(--muted); font-size: 12px; }
.ticket-note {
  margin: 0 22px 16px; padding: 12px 14px; border-radius: 12px;
  background: #f4efe4; color: #3d4f58; font-size: 13px;
}
.ticket-foot {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  padding: 12px 22px 16px; color: #6b7c85; font-size: 13px;
  border-top: 1px solid #efe8d8;
}
@media (max-width: 720px) {
  .ticket-grid { grid-template-columns: 1fr; }
  .ticket-head { flex-direction: column; align-items: flex-start; }
  .ticket-no { text-align: left; }
  .ticket-dl div { grid-template-columns: 1fr; gap: 2px; }
  .news-story-cover img { height: 240px; }
  .news-lite-nav.is-prev { left: 8px; }
  .news-lite-nav.is-next { right: 8px; }
}

.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.module-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px;
}
.module-card.is-on { border-color: #1b7a4e; box-shadow: 0 0 0 3px rgba(27,122,78,.08); }
.module-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.module-switch { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 800; }
.chat-hide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
.chat-hide-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; cursor: pointer;
}
.chat-hide-item input { margin-top: 3px; accent-color: #8B3A2A; }
.chat-hide-item strong { display: block; }
.chat-hide-item small { display: block; color: var(--muted, #6b7280); font-weight: 500; margin-top: 2px; }
.chat-hide-item:has(input:checked), .chat-hide-item.is-on {
  border-color: #8B3A2A; background: #fff8f6;
}
.chat-hide-item.is-locked { cursor: default; }
.center-feature { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; align-items: stretch; }
.center-feature .map-box { min-height: 280px; }
.center-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.center-nav-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: #0b3d4a;
  font-size: 12px; font-weight: 800;
}
.center-nav-btn svg, .center-nav-btn i { flex: 0 0 auto; }
.center-nav-btn.is-waze { background: #33ccff; border-color: #1eb6ea; color: #07364a; }
.center-nav-btn.is-maps { background: #e7f1f3; }
.center-nav-btn.is-route { background: #fff6df; border-color: #ead7a0; }
.center-nav-btn.is-call { background: #e8f6ee; border-color: #b9e0c8; }
.center-nav-btn:hover { transform: translateY(-1px); }
.sm-block { margin-bottom: 32px; }
.sm-lead { max-width: 72ch; margin: -6px 0 16px; }
.sm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sm-card {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: start;
  color: inherit;
}
.sm-card .icon-chip { width: 42px; height: 42px; border-radius: 12px; }
.sm-card strong { display: block; font-size: 16px; }
.sm-card small {
  display: block; margin: 2px 0 6px; color: var(--gold-dim);
  font-size: 12px; font-weight: 800;
}
.sm-card p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.sm-card:hover { border-color: #c9d5d8; box-shadow: 0 10px 24px rgba(18,32,40,.06); }

.live-fab {
  position: fixed; right: 20px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border: 0; border-radius: 50%;
  background: linear-gradient(145deg, #0b3d4a, #1a7a8c); color: #e8c547;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 14px 28px rgba(11,61,74,.28);
}
.live-fab svg { width: 24px; height: 24px; }
.live-fab-dot {
  position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px;
  padding: 0 4px; border-radius: 999px; background: #c9a227; color: #2b2208;
  font-size: 10px; font-weight: 800; display: grid; place-items: center;
}
.live-box {
  position: fixed; right: 20px; bottom: 88px; z-index: 92;
  width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100dvh - 110px));
  background: #fffdf8; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 22px 50px rgba(18,32,40,.18);
  display: flex; flex-direction: column; overflow: hidden;
}
.live-box[hidden] { display: none; }
.live-head, .live-thread-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 16px; background: #0b3d4a; color: #f6f1e6; flex: 0 0 auto;
}
.live-head-actions { display: flex; gap: 6px; }
.live-shade {
  position: fixed; inset: 0; z-index: 91; border: 0; padding: 0;
  background: rgba(11, 32, 40, .38); cursor: pointer;
}
.live-shade[hidden] { display: none; }
.live-box.is-wide {
  right: 24px; bottom: 24px;
  width: min(720px, calc(100vw - 32px));
  height: min(86dvh, 860px);
  border-radius: 24px;
}
.live-talk {
  display: none; align-items: center; justify-content: center; gap: 10px;
  margin: 0 12px 12px; min-height: 52px; border: 0; border-radius: 16px;
  background: #0b3d4a; color: #e8c547; font-weight: 800; cursor: pointer;
  touch-action: none; user-select: none;
}
.live-box.is-wide .live-talk { display: flex; }
.live-talk.is-on { background: #8b3a2a; color: #fff; }
.live-box.is-wide .live-voice audio { width: min(280px, 100%); height: 40px; }
.live-rec-hint { color: #8b3a2a; font-size: 12px; font-weight: 700; }
.live-head strong, .live-thread-head strong { display: block; }
.live-head small, .live-thread-head small { display: block; color: #e8c547; font-size: 11px; }
.live-x {
  width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer;
}
.live-stream {
  flex: 1 1 auto; min-height: 0; overflow: auto; padding: 14px 12px;
  background: #eef3f4; display: flex; flex-direction: column; gap: 8px;
}
.live-msg {
  max-width: 86%; align-self: flex-start;
  background: #fff; border-radius: 16px 16px 16px 4px; padding: 8px 10px 6px;
  box-shadow: 0 1px 0 rgba(18,32,40,.04);
}
.live-msg.is-mine {
  align-self: flex-end; background: #d8efe8; border-radius: 16px 16px 4px 16px;
}
.live-msg p { margin: 0; font-size: 14px; line-height: 1.4; white-space: pre-wrap; }
.live-msg footer {
  display: flex; align-items: center; gap: 8px; margin-top: 4px;
  color: var(--muted); font-size: 11px;
}
.live-ticks { font-style: normal; letter-spacing: -1px; }
.live-ticks.is-read { color: #1a7a8c; }
.live-ans {
  margin-left: auto; border: 0; background: transparent; color: var(--teal-mid);
  font-size: 11px; font-weight: 800; cursor: pointer;
}
.live-ref {
  background: rgba(11,61,74,.06); border-left: 3px solid #0b3d4a;
  border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; font-size: 12px; color: var(--ink-soft);
}
.live-ref small { display: block; color: #0b3d4a; font-weight: 800; }
.live-quote-bar {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 8px 12px; background: #f4efe4; border-top: 1px solid var(--line); flex: 0 0 auto;
}
.live-quote-bar[hidden] { display: none; }
.live-quote-bar small { display: block; color: #0b3d4a; font-size: 10px; font-weight: 800; }
.live-quote-bar b { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.live-quote-bar button { border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--muted); }
.live-composer {
  display: flex; gap: 6px; align-items: flex-end;
  padding: 10px 12px 12px; background: #fffdf8; border-top: 1px solid var(--line);
}
.live-composer textarea {
  flex: 1; resize: none; min-height: 40px; max-height: 110px;
  border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fff;
}
.live-composer .live-send {
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: #0b3d4a; color: #e8c547; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto;
}
.live-composer .live-tool {
  width: 38px; height: 38px; border: 0; border-radius: 12px;
  background: #eef5f6; color: #0b3d4a; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto;
}
.live-emoji {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px;
  padding: 8px 10px; background: #fffdf8; border-top: 1px solid var(--line);
  max-height: 150px; overflow: auto; flex: 0 0 auto;
}
.live-emoji[hidden], .live-rec[hidden] { display: none; }
.live-emoji button {
  border: 0; background: transparent; font-size: 20px; height: 34px;
  border-radius: 8px; cursor: pointer;
}
.live-emoji button:hover { background: #eef5f6; }
.live-rec {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: #fff4ef; border-top: 1px solid #f0d8cc; flex: 0 0 auto;
}
.live-rec em {
  width: 10px; height: 10px; border-radius: 50%; background: #b42318;
  animation: live-pulse 1s infinite; font-style: normal;
}
.live-rec b { flex: 1; font-variant-numeric: tabular-nums; }
.live-rec button {
  border: 0; border-radius: 999px; padding: 7px 12px; font-weight: 800; cursor: pointer;
  background: #fff; color: #8b3a2a;
}
.live-rec button.is-go { background: #0b3d4a; color: #e8c547; }
.live-voice { display: flex; align-items: center; gap: 8px; min-width: 170px; }
.live-voice audio { width: 168px; height: 34px; }
@keyframes live-pulse { 50% { opacity: .35; } }
.live-desk {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  height: calc(100vh - 130px); min-height: 520px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.live-inbox { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #fffdf8; }
.live-inbox header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.live-inbox header em {
  min-width: 22px; padding: 2px 7px; border-radius: 999px;
  background: #0b3d4a; color: #e8c547; font-style: normal; font-size: 12px; font-weight: 800; text-align: center;
}
.live-inbox-list { overflow: auto; flex: 1; }
.live-item {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center;
  width: 100%; padding: 12px 14px; border: 0; background: transparent; text-align: left; cursor: pointer;
}
.live-item:hover, .live-item.is-on { background: #eef5f6; }
.live-item-txt { min-width: 0; }
.live-item-txt b, .live-item-txt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-item-txt small { color: var(--muted); font-size: 12px; }
.live-item-meta { text-align: right; }
.live-item-meta small { display: block; color: var(--muted); font-size: 11px; }
.live-item-meta em {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-top: 4px;
  border-radius: 999px; background: #c9a227; color: #2b2208; font-style: normal; font-size: 10px; font-weight: 800;
}
.live-thread { display: flex; flex-direction: column; min-width: 0; background: #eef3f4; }
.live-thread .live-stream { flex: 1; }

body.is-chat-open { overflow: hidden; }
body.is-chat-open .live-fab { display: none; }
@media (max-width: 980px) {
  .live-fab { bottom: calc(78px + env(safe-area-inset-bottom)); right: 14px; }
  .live-box, .live-box.is-wide {
    inset: 0; right: 0; left: 0; top: 0; bottom: 0;
    width: auto; height: 100dvh; height: 100svh;
    border-radius: 0; border: 0;
    z-index: 90;
  }
  .live-shade, #liveExpand { display: none !important; }
  .live-box.is-wide .live-talk { display: flex; }
  .live-composer { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .live-desk { grid-template-columns: 1fr; height: auto; min-height: 70vh; }
  .live-inbox { max-height: 240px; }
}

@media print {
  .no-print, .ticket-actions, .live-fab, .live-box { display: none !important; }
  .ticket-body { background: #fff; padding: 0; }
  .ticket { width: 100%; border-radius: 0; }
}

.topic-desk { display: grid; gap: 16px; }
.topic-subject-head { display: flex; gap: 12px; align-items: center; }
.topic-subject-head h3 { margin: 0; font-family: var(--display); }
.topic-subject-head small { display: block; color: var(--muted); margin-top: 2px; }
.topic-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px; margin-top: 16px;
}
.topic-grid-mini { margin-top: 12px; grid-template-columns: 1fr; }
.topic-tile {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  padding: 14px 14px 14px 16px; border-radius: 16px;
  border: 1px solid var(--line); background: #fffdf8;
  text-decoration: none; color: inherit;
  transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s, border-color .22s, background .22s;
}
.topic-tile b { display: block; line-height: 1.3; }
.topic-tile small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.topic-tile svg { color: var(--teal); }
.topic-tile:hover {
  transform: translateY(-3px);
  border-color: #1a6b78;
  background: #fff;
  box-shadow: 0 14px 28px rgba(11,61,74,.1);
}
.topic-soon-list, .topic-soon-row { display: grid; gap: 8px; }
.topic-soon-list { margin-top: 14px; }
.topic-soon-list a, .topic-soon-row {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.topic-soon-list a:last-child, .topic-soon-row:last-child { border-bottom: 0; padding-bottom: 0; }
.topic-soon-list span, .topic-soon-row span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.topic-soon-list a:hover strong, .topic-soon-row:hover strong { color: var(--teal); }
.topic-show { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }
.topic-show-main, .topic-show-side { display: grid; gap: 16px; }
.topic-brief p { margin: 0 0 16px; max-width: 68ch; }
.topic-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.topic-facts div {
  padding: 12px 14px; border-radius: 14px; background: #f4f8f8; border: 1px solid var(--line);
}
.topic-facts small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.topic-facts b { font-family: var(--display); font-size: 18px; }
.topic-steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.topic-steps li { display: flex; gap: 10px; align-items: flex-start; }
.topic-steps svg { color: var(--teal); margin-top: 2px; flex: none; }
.topic-cta { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) {
  .topic-show { grid-template-columns: 1fr; }
  .topic-facts { grid-template-columns: 1fr; }
}

.reg-desk { display: grid; grid-template-columns: .78fr 1.22fr; gap: 18px; align-items: start; }
.reg-aside h2 { font-family: var(--display); font-size: clamp(26px, 3vw, 34px); margin: 6px 0 16px; line-height: 1.15; }
.reg-steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.reg-steps li {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 14px; border-radius: 14px; background: #f4f8f8; border: 1px solid var(--line);
}
.reg-steps svg { color: var(--teal); flex: none; }
.reg-card { padding: 22px 22px 20px; }
.reg-block { margin-bottom: 22px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.reg-block:last-of-type { border-bottom: 0; }
.reg-block h3 { margin: 0 0 14px; }
.reg-login { margin: 16px 0 0; text-align: center; }
.field-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.reg-gender { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reg-gender-card { cursor: pointer; }
.reg-gender-card input { position: absolute; opacity: 0; pointer-events: none; }
.reg-gender-card span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; border-radius: 14px; border: 1px solid var(--line);
  background: #fffdf8; font-weight: 800; transition: border-color .2s, background .2s, box-shadow .2s;
}
.reg-gender-card svg { color: var(--teal); }
.reg-gender-card:hover span { border-color: #1a6b78; }
.reg-gender-card input:checked + span {
  border-color: #1a6b78; background: #eef6f6;
  box-shadow: 0 0 0 4px rgba(20,96,120,.12);
}
.phone-az { position: relative; }
.phone-az-cc {
  flex: none; font-weight: 800; color: var(--teal);
  padding-right: 10px; border-right: 1px solid var(--line);
}
.phone-az input { letter-spacing: .02em; }
.phone-az em {
  flex: none; font-style: normal; font-size: 11px; font-weight: 800;
  color: var(--muted); white-space: nowrap;
}
.az-date { position: relative; }
.az-date-btn { width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.az-date-btn span { flex: 1; }
.az-date-pop {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px);
  padding: 12px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(18,32,40,.14);
}
.az-date-bar { display: grid; grid-template-columns: 36px 1fr 88px 36px; gap: 6px; align-items: center; margin-bottom: 10px; }
.az-date-bar button {
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px;
  background: #f4f8f8; cursor: pointer;
}
.az-date-bar select {
  height: 36px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font: inherit; font-weight: 700; padding: 0 8px;
}
.az-date-week, .az-date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.az-date-week span { font-size: 11px; font-weight: 800; color: var(--muted); padding: 4px 0; }
.az-date-grid button, .az-date-grid span { min-height: 34px; }
.az-day {
  border: 0; border-radius: 10px; background: transparent; cursor: pointer; font: inherit; font-weight: 700;
}
.az-day:hover { background: #eef6f6; }
.az-day.is-today { color: var(--teal); }
.az-day.is-on { background: #0b3d4a; color: #fff; }
@media (max-width: 860px) {
  .reg-desk { grid-template-columns: 1fr; }
  .az-date-bar { grid-template-columns: 36px 1fr 72px 36px; }
}
