:root,
[data-theme="night"] {
  color-scheme: dark;
  --bg: #0b1424;
  --card: #132033;
  --line: #2a4363;
  --text: #e7f1fb;
  --muted: #9bb4ce;
  --link: #7eb6ff;
  --button: #2f7fe8;
  --ok: #8fd0a4;
  --wait: #8eb7ef;
  --bad: #f0a394;
  --ink: #f5f9ff;
  --field: #0c1828;
  --glow: #1a3f72;
  --avatar: #1b314c;
  --badge-ok-bg: #163528;
  --badge-wait-bg: #16304e;
  --badge-bad-bg: #3a2428;
  --mine: #1a3d68;
  --theirs: #17283d;
  --flash: #152a44;
}

[data-theme="day"] {
  color-scheme: light;
  --bg: #eef5fc;
  --card: #ffffff;
  --line: #c5daf0;
  --text: #10233b;
  --muted: #4d6784;
  --link: #0d5fbf;
  --button: #1570d6;
  --ok: #1f7a45;
  --wait: #1d5fa8;
  --bad: #b42318;
  --ink: #ffffff;
  --field: #f7fbff;
  --glow: #d4e8fb;
  --avatar: #d7e7f7;
  --badge-ok-bg: #e5f6ec;
  --badge-wait-bg: #e3f0fc;
  --badge-bad-bg: #fdeceb;
  --mine: #d7e9fb;
  --theirs: #ffffff;
  --flash: #e7f2fc;
}

* { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 80% -10%, var(--glow) 0, transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Tahoma, "Segoe UI", sans-serif;
  line-height: 1.75;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.35; font-weight: 700; }
main { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; padding: 1.25rem 0 3rem; }
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top, footer {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}
.top {
  display: flex;
  gap: 0.8rem 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.7rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.logo {
  height: 52px;
  width: auto;
  max-width: min(280px, 62vw);
  display: block;
  border-radius: 0;
  object-fit: contain;
}
.mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: var(--button);
  color: var(--ink);
  border-radius: 10px;
  font-size: 1rem;
}
.menu, .account { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; }
.menu { flex: 1; }
.account { margin-inline-start: auto; }
.menu a, .account > a:not(.button) {
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}
.menu a:hover, .menu a[aria-current="page"], .account > a:not(.button):hover {
  background: var(--field);
  color: var(--text);
  text-decoration: none;
}
.account .button { color: var(--ink); }
a.me { display: grid; padding: 0; text-decoration: none; }
.mini {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: var(--avatar);
  color: var(--text);
  font-size: 0.85rem;
}
.welcome audio, .welcome video {
  width: 100%;
  margin: 0.4rem 0 0.8rem;
  border-radius: 12px;
  background: #000;
}
.welcome video { max-height: 360px; }
.face { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 0.8rem; }
.face .avatar { width: 96px; height: 96px; aspect-ratio: auto; flex: none; }
.button, button {
  background: var(--button);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  cursor: pointer;
}
.button:hover, button:hover { filter: brightness(1.06); }
.button.small { padding: 0.35rem 0.85rem; }
button.quiet, button.linkish {
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  filter: none;
}
button.quiet:hover, button.linkish:hover { color: var(--text); filter: none; }
button.linkish { padding: 0.28rem 0.55rem; }
.hero { padding: 0.4rem 0 0.2rem; }
.eyebrow { color: var(--link); margin: 0 0 0.2rem; font-size: 0.92rem; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); max-width: 14ch; margin: 0.15rem 0 0.4rem; }
.hero p:last-child { max-width: 40rem; color: var(--muted); margin-top: 0; }
.search, .stack, .panel, .sheet, .narrow {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.search {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  padding: 1rem;
  margin: 1rem 0;
  align-items: end;
}
label { display: grid; gap: 0.3rem; color: var(--muted); font-size: 0.92rem; }
input, textarea, select {
  width: 100%;
  background: var(--field);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}
input:focus, textarea:focus, select:focus { border-color: var(--link); outline: none; }
.otp { display: flex; justify-content: center; gap: 0.65rem; direction: ltr; margin: 0.4rem 0 0.2rem; }
.otp-box {
  width: 3.5rem;
  height: 3.7rem;
  padding: 0;
  text-align: center;
  font-size: 1.6rem;
  border-radius: 14px;
}
.helptext { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }
.loc { display: grid; gap: 0.55rem; margin: 0.2rem 0 0.6rem; }
.loc[hidden] { display: none; }
.search .loc { grid-column: 1 / -1; }
.loc-title { margin: 0; font-weight: 700; color: var(--text); }
.loc-status { margin: 0; min-height: 1.4em; }
.loc-map {
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  direction: ltr;
  background: var(--field);
  border: 1px solid var(--line);
}
.loc-map .leaflet-top,
.loc-map .leaflet-bottom { z-index: 2; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.loc-actions button { width: auto; min-height: 2.75rem; }
.search-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.search button { width: auto; min-height: 2.75rem; padding-inline: 1.5rem; }
.result-count { color: var(--muted); margin: 0.2rem 0 0.7rem; }
.check { display: flex; align-items: center; gap: 0.4rem; }
.check input { width: auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.8rem; }
.card, .row, .block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
}
a.card { text-decoration: none; color: inherit; transition: transform 0.15s ease, border-color 0.15s ease; }
a.card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--link); }
.card { display: grid; gap: 0.2rem; padding: 0.85rem; }
.card strong { font-size: 1.05rem; }
.score { color: var(--wait); font-size: 0.88rem; }
.card img, .fallback, .avatar {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: var(--avatar);
}
.fallback, .avatar.fallback {
  display: grid;
  place-items: center;
  font-size: 2rem;
}
.person { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; align-items: center; }
.person .avatar { width: 140px; height: 140px; }
.sheet, .panel, .narrow { padding: 1.1rem 1.15rem; margin: 1rem 0; }
.sheet section + section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.narrow { max-width: 460px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.7rem; }
.gallery figure { margin: 0; }
.chips, .choices { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.choices label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  color: var(--text);
}
.choices input { width: auto; }
.combo { position: relative; }
.combo.open { z-index: 30; }
.search .combo-face,
.stack .combo-face,
.panel .combo-face,
.combo-face {
  width: 100%;
  text-align: start;
  background: var(--field);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
}
.combo-panel {
  position: absolute;
  z-index: 25;
  inset-inline: 0;
  top: calc(100% + 0.35rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.55rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}
.combo-list,
.combo-panel .role-picks,
.combo-panel [data-role-groups] {
  max-height: 16rem;
  overflow: auto;
  margin-top: 0.45rem;
}
.combo-item {
  display: block;
  width: 100%;
  text-align: start;
  background: transparent;
  color: var(--text);
  border: 0;
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
}
.combo-item.active,
.combo-item:hover { background: var(--flash); }
.combo-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  opacity: 0;
  pointer-events: none;
}
.role-picks { display: grid; gap: 0.35rem; max-height: 16rem; overflow: auto; padding: 0.6rem 0.75rem; margin: 0; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
.role-picks label { display: flex; align-items: center; gap: 0.45rem; color: var(--text); }
.role-picks input { width: auto; }
.choices label[hidden],
[data-role-group][hidden] { display: none !important; }
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
  font-size: 0.82rem;
}
.badge.ok { background: var(--badge-ok-bg); color: var(--ok); }
.badge.wait { background: var(--badge-wait-bg); color: var(--wait); }
.badge.bad { background: var(--badge-bad-bg); color: var(--bad); }
.count {
  background: var(--button);
  color: var(--ink);
  border-radius: 999px;
  padding: 0 0.4rem;
  font-size: 0.8rem;
}
.muted { color: var(--muted); }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.crumbs a { color: inherit; }
.crumbs span { color: var(--ink); }
.crumbs a + a::before,
.crumbs a + span::before {
  content: "‹";
  margin-inline-end: 0.55rem;
}
.pre { white-space: pre-wrap; }
.prose { line-height: 1.9; overflow-wrap: anywhere; }
.prose h2, .prose h3, .prose h4 { margin: 1rem 0 0.4rem; }
.prose p { margin: 0.5rem 0; }
.prose img, .prose video { max-width: 100%; height: auto; border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0.6rem 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.4rem 0.55rem; }
.prose blockquote { margin: 0.6rem 0; padding: 0.4rem 0.8rem; border-inline-start: 3px solid var(--link); color: var(--muted); }
.prose pre, .prose code { font-family: ui-monospace, monospace; }
.prose pre { overflow: auto; padding: 0.7rem; background: var(--field); border-radius: 12px; }
.row { display: grid; padding: 0.8rem 1rem; margin: 0.5rem 0; }
.talk { display: grid; gap: 0.5rem; margin: 1rem 0; }
.mine, .theirs { margin: 0; padding: 0.6rem 0.8rem; border-radius: 14px; max-width: 36rem; white-space: pre-wrap; }
.mine { background: var(--mine); justify-self: start; }
.theirs { background: var(--theirs); border: 1px solid var(--line); justify-self: end; }
.flash { list-style: none; padding: 0; margin: 0 0 0.8rem; }
.flash li { background: var(--flash); border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.9rem; margin: 0.4rem 0; }
.flash li.error { border-color: var(--bad); }
.flash li.success { border-color: var(--ok); }
.theme {
  display: flex;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem;
}
.theme button {
  background: transparent;
  color: var(--muted);
  padding: 0.2rem 0.75rem;
}
.theme button.active {
  background: var(--button);
  color: var(--ink);
}
.errorlist { color: var(--bad); list-style: none; padding: 0; margin: 0.2rem 0; }
.phone { font-size: 1.4rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.8rem 0 1rem; }
.filters a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  background: var(--field);
  text-decoration: none;
  color: var(--text);
}
.filters a.active { background: var(--button); color: var(--ink); }
.blog-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.7rem;
  margin: 0.4rem 0 1.1rem;
}
.blog-cats a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 5.2rem;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
}
.blog-cats a strong { font-size: 1.05rem; }
.blog-cats a span { color: var(--muted); font-size: 0.88rem; }
.blog-cats a.active {
  background: var(--button);
  border-color: var(--button);
  color: var(--ink);
}
.blog-cats a.active span { color: var(--ink); }
.cat-rows { display: grid; gap: 0.55rem; margin: 0 0 1rem; }
.cat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem 0.6rem;
  align-items: center;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.55rem;
}
.cat-row form:first-child {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  min-width: 0;
}
.cat-row input { width: auto; flex: 1; min-width: 0; }
.cat-row button { width: auto; }
.cat-row .muted { grid-column: 1 / -1; }
.post-list { display: grid; gap: 0.7rem; }
.post-list a.card { text-decoration: none; color: inherit; }
.prose { white-space: pre-wrap; line-height: 1.9; font-size: 1.05rem; }
.stack input[type="checkbox"] { width: auto; }
.pager { display: flex; gap: 0.7rem; align-items: center; }
.pager a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  color: var(--text);
  text-decoration: none;
}
.empty {
  grid-column: 1 / -1;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 1.4rem;
  color: var(--muted);
}
footer {
  color: var(--muted);
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
footer p { margin: 0.35rem 0; }
.install[hidden] { display: none; }
.install button { width: auto; }
.stars-input { grid-column: 1 / -1; }
.stars-input > div {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.45rem;
  align-items: center;
}
.stars-input > div > div { width: auto; flex: none; }
.stars-input label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
.stars-input input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.stars-input label:hover { border-color: var(--link); }
.stars-input label:has(input:checked) {
  background: var(--button);
  color: var(--ink);
  border-color: transparent;
}
.stars-input label:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.score-line { display: flex; flex-wrap: wrap; gap: 0.35rem 0.7rem; align-items: center; }
.name-line { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.vip {
  display: inline-block;
  padding: 0.05rem 0.42rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f6e2a4, #c9a227);
  color: #2a2108;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.45;
}
.staff-score { color: var(--link); font-weight: 700; }
.review-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
  margin: 0.2rem 0 0.8rem;
}
.review-label { display: block; color: var(--muted); font-size: 0.88rem; margin-bottom: 0.25rem; }
.review-note { display: grid; gap: 0.25rem; color: var(--muted); font-size: 0.88rem; }
.review-compose textarea { min-height: 2.75rem; }
.review-compose button { width: auto; min-height: 2.75rem; }
.review-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.review-card {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.65rem;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field);
}
.review-card p { margin: 0; flex: 1 1 8rem; }
.identity-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; }
.identity-actions label { min-width: 8rem; }
.identity-actions input { width: 6rem; }
.identity-actions button { width: auto; }
.banner { margin: 0.4rem 0 1rem; }
.banner-slide { display: block; }
.banner-slide[hidden] { display: none !important; }
.banner-slide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
}
.banner-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 0.6rem 0 1rem;
}
.banner-pair a { display: block; }
.banner-pair img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
}
.slot-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.slot-list li { padding: 0.15rem 0; }
.report { width: 100%; border-collapse: collapse; }
.report th, .report td {
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0.35rem;
  text-align: right;
  vertical-align: top;
}
.report th { color: var(--muted); font-weight: 600; }
.search-actions a.button { color: var(--ink); text-decoration: none; }
.banner-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 0.55rem; }
.banner-dots button {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border-radius: 50%;
  background: var(--line);
}
.banner-dots button.active { background: var(--button); }
.banner-admin { display: grid; gap: 0.8rem; }
.banner-admin img { width: 100%; max-height: 140px; object-fit: cover; border-radius: 12px; }
.banner.slim .banner-slide img { height: 140px; }
.reminder {
  background: var(--flash);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  margin: 0.8rem 0 1rem;
}
.reminder p { margin: 0.2rem 0; }
.sections {
  display: grid;
  gap: 0.9rem;
  margin: 0.4rem 0 1rem;
}
.section-group,
.subcat-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.9rem;
}
.subcat-block h2 { margin: 0 0 0.7rem; font-size: 1.05rem; }
.section-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
  margin-bottom: 0.75rem;
}
.section-head:hover { text-decoration: none; }
.section-head img,
.section-head .section-fallback {
  width: 4.4rem;
  height: 4.4rem;
  flex: none;
  border-radius: 14px;
  object-fit: cover;
}
.section-head-text { display: grid; gap: 0.15rem; min-width: 0; }
.section-head-text strong { font-size: 1.15rem; }
.section-head-text span { color: var(--link); font-size: 0.9rem; }
.subcats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.55rem;
}
.subcats a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.subcats a:hover { border-color: var(--link); text-decoration: none; }
.cat-tree { display: grid; gap: 0.9rem; }
.cat-root,
.cat-leaf {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.7rem;
}
.cat-root { background: var(--field); }
.cat-leaf { background: var(--card); }
.subcat-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.55rem;
  margin-top: 0.7rem;
}
.global-search {
  display: flex;
  gap: 0.6rem;
  align-items: end;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.9rem;
  margin: 0.4rem 0 0.8rem;
}
.global-search label { flex: 1; }
.global-search input { min-height: 3rem; font-size: 1.05rem; }
.global-search button { width: auto; min-height: 3rem; padding-inline: 1.4rem; }
.topic-hits { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0 0 0.8rem; }
.topic-hits a {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  color: var(--text);
  text-decoration: none;
}
.section-card img, .section-fallback {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--avatar);
}
.section-fallback {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 0.4rem;
}
.socials { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; padding: 0; margin: 0; list-style: none; }
.desk {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.desk-nav {
  position: sticky;
  top: 7.2rem;
  display: grid;
  gap: 0.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.85rem 0.7rem;
}
.desk-nav .eyebrow { padding-inline: 0.65rem; }
.desk-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 12px;
  padding: 0.4rem 0.65rem;
}
.desk-nav a:hover,
.desk-nav a[aria-current="page"] {
  background: var(--field);
  color: var(--text);
  text-decoration: none;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.7rem;
  margin: 0.6rem 0 1.2rem;
}
a.stat {
  display: grid;
  gap: 0.2rem;
  align-content: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem;
  color: inherit;
  text-decoration: none;
}
a.stat strong { font-size: 1.55rem; line-height: 1.2; }
a.stat span { color: var(--muted); font-size: 0.92rem; }
a.stat:hover { border-color: var(--link); text-decoration: none; }
a.stat.has { border-color: var(--link); background: var(--flash); }
@media (max-width: 700px) {
  .logo { height: 42px; }
  .top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.45rem 0 0.55rem;
  }
  .brand { width: 100%; justify-content: center; }
  .menu, .account, .tools {
    width: 100%;
    flex: none;
    margin-inline-start: 0;
    justify-content: center;
    gap: 0.3rem 0.35rem;
  }
  .menu { order: 0; }
  .menu a,
  .account > a:not(.button),
  .theme button,
  button.linkish,
  .account .button.small {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .menu a, .account > a:not(.button), button.linkish { padding: 0.35rem 0.75rem; }
  .theme { flex: none; }
  .theme button { min-width: 2.75rem; padding: 0.35rem 0.8rem; }
  .account .button.small { padding: 0.4rem 0.95rem; }
  .person { grid-template-columns: 1fr; }
  .person .avatar { width: 96px; height: 96px; }
  .review-compose, .review-list { grid-template-columns: 1fr; }
  .banner-slide img, .banner.slim .banner-slide img {
    height: auto;
    max-height: 70vh;
    object-fit: contain;
  }
  .banner-pair { grid-template-columns: 1fr; }
  .banner-pair img { height: auto; max-height: 200px; object-fit: contain; }
  .banner-dots { gap: 0.1rem; }
  .banner-dots button,
  .banner-dots button.active {
    width: 2.25rem;
    height: 2.25rem;
    background: transparent;
    display: grid;
    place-items: center;
  }
  .banner-dots button::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--line);
  }
  .banner-dots button.active::before { background: var(--button); }
  .section-head { align-items: flex-start; }
  .section-head img,
  .section-head .section-fallback {
    width: 3.4rem;
    height: 3.4rem;
  }
  .subcats { grid-template-columns: 1fr 1fr; }
  .subcats a { min-height: 3.1rem; font-size: 0.95rem; }
  .subcat-admin { grid-template-columns: 1fr; }
  .cat-row { grid-template-columns: 1fr; }
  .cat-row form:first-child { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .cat-row form:last-child button { width: 100%; min-height: 2.75rem; }
  .search-actions { flex-direction: column; align-items: stretch; }
  .search button, .search-actions .quiet, .global-search button, .stack > button, .panel > p > .button {
    width: 100%;
    min-height: 2.75rem;
  }
  .search-actions .quiet { border: 1px solid var(--line); }
  .global-search { flex-direction: column; align-items: stretch; }
  .otp { width: 100%; gap: 0.5rem; }
  .otp-box {
    width: clamp(2.75rem, 16vw, 3.5rem);
    height: clamp(3.2rem, 18vw, 3.7rem);
    flex: 0 0 auto;
  }
  .hero h1 { max-width: none; }
  .desk { grid-template-columns: 1fr; }
  .desk-nav {
    position: static;
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    max-width: 100%;
  }
  .desk-nav .eyebrow { display: none; }
  .desk-nav a { white-space: nowrap; }
}
@media (max-width: 380px) {
  .subcats { grid-template-columns: 1fr; }
}
