/* CYNI-VR website. Palette follows the in-game menu: navy cards, cyan accent, white selected pill. */
:root {
  --bg: #0b1020;
  --bg2: #0e1528;
  --card: #121a2e;
  --card-hi: #172138;
  --field: #0d1426;
  --edge: #1f2a44;
  --edge-hi: #2c3b5e;
  --text: #e8edf7;
  --muted: #9aa7c4;
  --accent: #4fe3f5;
  --accent-ink: #04222a;
  --danger: #f87171;
  --warn: #fbbf24;
  --ok: #4ade80;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at 80% -10%, #14224a 0%, transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text); font: 16px/1.55 var(--font);
}
main { flex: 1; outline: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #9af0fa; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.view { padding-top: 28px; padding-bottom: 56px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.loading { color: var(--muted); padding: 24px 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }
.visually-hidden, .hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.ico.sm { width: 1em; height: 1em; vertical-align: -.15em; }
.ico.lg { width: 28px; height: 28px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11, 16, 32, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--edge); }
.bar { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .04em; font-size: 1.1rem; }
.brand img { border-radius: 9px; }
.main-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.main-nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; }
.main-nav a:hover { color: var(--text); background: var(--card); }
.main-nav a[aria-current="page"] { background: #fff; color: #0b1020; }
.user-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.me-link { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--edge); background: var(--card); max-width: 220px; }
.me-link:hover { border-color: var(--edge-hi); }
.me-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
@media (max-width: 720px) {
  .bar { gap: 8px 12px; }
  .main-nav { order: 3; flex-basis: 100%; }
  .user-nav { margin-left: auto; }
  .me-name { display: none; }
}

/* footer */
.site-footer { border-top: 1px solid var(--edge); background: var(--bg2); padding: 26px 0 36px; margin-top: 40px; }
.foot ul { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent); }
.foot p { margin: 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--edge-hi); background: var(--card-hi); color: var(--text);
  font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s, background .12s, border-color .12s;
}
.btn:hover { background: #1e2a47; color: var(--text); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #7aeaf8; color: var(--accent-ink); }
.btn.white { background: #fff; border-color: #fff; color: #0b1020; }
.btn.danger { background: #3a1620; border-color: #7a2634; color: #ffc9c9; }
.btn.danger:hover { background: #4d1b28; color: #fff; }
.btn.ghost { background: transparent; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.icon-btn { background: transparent; border: 0; color: var(--muted); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--card-hi); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* cards */
.card { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r); box-shadow: var(--shadow); }
.card.pad, .panel { padding: 22px; }
.panel { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r); margin-bottom: 20px; }
.panel > h2, .panel > h3 { margin-bottom: .6em; }
.panel.danger-zone { border-color: #6a2431; background: #1a1220; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.tile { position: relative; overflow: hidden; transition: transform .15s, border-color .15s; }
.tile:hover { transform: translateY(-3px); border-color: var(--edge-hi); }
.thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1b2a52, #0f1a35); position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.noimg::after { content: "No preview"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.tile-body { padding: 14px 16px 16px; }
.tile-body h3 { margin-bottom: .2em; }
.tile-body h3 a { color: var(--text); text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; }
.stretch:focus-visible { outline: none; }
.stretch:focus-visible::after { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: var(--r); }
.above { position: relative; z-index: 1; }
.meta-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .875rem; flex-wrap: wrap; }
.sep { opacity: .5; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #4a566f; display: inline-block; }
.dot-live.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: #1a2440; border: 1px solid var(--edge); color: #c5d0ea; font-size: .8rem; }
button.chip, a.chip { cursor: pointer; font: inherit; font-size: .85rem; text-decoration: none; min-height: 32px; }
button.chip[aria-pressed="true"], a.chip[aria-pressed="true"] { background: #fff; color: #0b1020; border-color: #fff; font-weight: 700; }
button.chip:hover { border-color: var(--edge-hi); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 26px; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); border: 1px dashed var(--edge-hi); border-radius: var(--r); }
.empty strong { display: block; color: var(--text); margin-bottom: 4px; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.rank-guest { background: #232b3d; color: #b6c0d6; border-color: #38425a; }
.rank-member { background: #12301f; color: #6ee7a0; border-color: #1f5a37; }
.rank-regular { background: #12294d; color: #7db4ff; border-color: #234a86; }
.rank-veteran { background: #2c1850; color: #d2a8ff; border-color: #502f8a; }
.rank-elite { background: #3a2c08; color: #fcd34d; border-color: #7a5d12; }
.staff { color: #07121a; }
.staff-moderator { background: #2dd4bf; }
.staff-developer { background: #818cf8; }
.staff-owner { background: #fb923c; }
.staff-owner_dev { background: #fb7185; }
.perf { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #232b3d; color: #cbd5ea; text-transform: capitalize; }
.perf-excellent { background: #12301f; color: #6ee7a0; }
.perf-good { background: #12294d; color: #7db4ff; }
.perf-medium { background: #3a2c08; color: #fcd34d; }
.perf-poor, .perf-very-poor { background: #3a1620; color: #ff9d9d; }
.badge-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-info { background: #17233f; color: #bfe9f0; border-color: #25405f; }

/* initials */
.initials { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; flex: none; border: 1px solid rgba(255, 255, 255, .12); }
.initials.sm { width: 32px; height: 32px; font-size: .8rem; }
.initials.md { width: 48px; height: 48px; }
.initials.lg { width: 96px; height: 96px; font-size: 2rem; }

/* forms */
.form { max-width: 520px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 650; margin-bottom: 6px; }
.req { color: var(--danger); }
input[type=text], input[type=password], input[type=email], input[type=search], input[type=url], textarea, select {
  width: 100%; min-height: 46px; padding: 10px 14px; background: var(--field); color: var(--text);
  border: 1px solid var(--edge-hi); border-radius: 12px; font: inherit;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: #6c7a99; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.hint { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.field-error { color: #ff9d9d; font-size: .88rem; margin: 6px 0 0; }
.field.check label { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; cursor: pointer; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin: 1px 0 0; }
input[type=checkbox]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.switch-row { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--edge); }
.switch-row:first-of-type { border-top: 0; }
.switch-row p { margin: 0; }
.switch-row .t { font-weight: 650; }
.counter { text-align: right; color: var(--muted); font-size: .82rem; margin-top: 4px; }
.link-row { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-bottom: 10px; }
@media (max-width: 520px) { .link-row { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 8px 0 18px; font-size: .88rem; display: grid; gap: 4px; }
.checklist li { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.checklist li .ico { color: #55627f; }
.checklist li.ok { color: #9fe8b9; }
.checklist li.ok .ico { color: var(--ok); }
.checklist li.bad { color: #ffb4b4; }
.checklist li.bad .ico { color: var(--danger); }
.progress { height: 10px; background: var(--field); border: 1px solid var(--edge-hi); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #27b6cc, var(--accent)); transition: width .15s; }
.auth-card { max-width: 480px; margin: 0 auto; }
.hp { position: absolute; left: -10000px; }

/* notices */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--edge-hi); background: #151f38; margin: 0 0 18px; }
.notice > .ico { margin-top: 2px; }
.notice > div { min-width: 0; overflow-wrap: anywhere; }
.notice.danger { background: #2a1219; border-color: #7a2634; color: #ffd0d0; }
.notice.warn { background: #2b2209; border-color: #7a5d12; color: #ffe9a8; }
.notice.ok { background: #0f2a1b; border-color: #1f5a37; color: #b8f1cd; }
.notice p:last-child { margin-bottom: 0; }

/* tabs */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: thin; }
.tab { background: transparent; border: 1px solid var(--edge); color: var(--muted); padding: 0 16px; min-height: 40px; border-radius: 999px; font: inherit; font-weight: 650; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); border-color: var(--edge-hi); }
.tab[aria-selected="true"] { background: #fff; color: #0b1020; border-color: #fff; }
.tabpanel { outline: none; padding-top: 8px; }

/* hero / landing */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 28px 0 10px; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 850; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.15rem; color: #c3cde4; max-width: 34em; }
.hero-shot { border-radius: 22px; overflow: hidden; border: 1px solid var(--edge-hi); box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 0 6px rgba(79, 227, 245, .06); }
.hero-shot img { display: block; width: 100%; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } }
.section { margin-top: 64px; }
.section > h2 { margin-bottom: .3em; }
.section > .lead { color: var(--muted); max-width: 44em; margin-bottom: 24px; }
.feature { padding: 20px; }
.feature .ico-wrap { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #11263a; color: var(--accent); margin-bottom: 12px; }
.feature h3 { margin-bottom: .3em; }
.feature p { color: var(--muted); margin: 0; }
.shots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.shots figure { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--edge); background: var(--card); }
.shots img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.shots figcaption { padding: 8px 14px; color: var(--muted); font-size: .85rem; }
.dl-card { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.dl-card h3 { display: flex; align-items: center; gap: 10px; margin: 0; }
.soon { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; background: #2b2209; color: var(--warn); border: 1px solid #7a5d12; }
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding: 0; list-style: none; }
.steps li { counter-increment: s; padding: 18px 18px 18px 64px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #0b1020; display: grid; place-items: center; font-weight: 800; }

/* profile */
.profile-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 26px; margin-bottom: 20px; }
.profile-head h1 { margin: 0; }
.profile-head .handle { color: var(--muted); margin: 2px 0 10px; }
.bio { white-space: pre-wrap; overflow-wrap: anywhere; }
.stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; }
.stat b { display: block; font-size: 1.3rem; }
.stat span { color: var(--muted); font-size: .85rem; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 8px; } }
.detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .detail { grid-template-columns: minmax(0, 1fr); } }
.detail .thumb { border-radius: var(--r); overflow: hidden; border: 1px solid var(--edge); }

/* search bar */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar .search { flex: 1; min-width: 220px; position: relative; }
.toolbar .search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.toolbar .search input { padding-left: 42px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--edge); border-radius: 999px; }
.seg button { border: 0; background: transparent; color: var(--muted); min-height: 36px; padding: 0 16px; border-radius: 999px; font: inherit; font-weight: 650; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: #0b1020; }

/* tables (account sessions, admin) */
.table-wrap { overflow-x: auto; border: 1px solid var(--edge); border-radius: 12px; margin-bottom: 18px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--edge); vertical-align: top; }
th { color: var(--muted); font-weight: 650; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; background: #0f1730; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.wrap-cell { overflow-wrap: anywhere; min-width: 90px; }
.panel > .table-wrap:last-child { margin-bottom: 0; }
.session-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.session { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--field); border: 1px solid var(--edge); border-radius: 14px; flex-wrap: wrap; }
.session .ico-wrap { width: 42px; height: 42px; border-radius: 12px; background: #11263a; color: var(--accent); display: grid; place-items: center; flex: none; }
.session .info { flex: 1; min-width: 200px; }
.session .info b { display: block; }
.progress-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.progress-list li { display: grid; gap: 6px; }
.progress-list .row { display: flex; justify-content: space-between; gap: 10px; }

/* dialogs */
dialog.dlg { border: 1px solid var(--edge-hi); border-radius: 20px; background: var(--card); color: var(--text); padding: 0; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
dialog.dlg.wide { width: min(760px, calc(100vw - 24px)); }
dialog.dlg::backdrop { background: rgba(3, 6, 14, .72); backdrop-filter: blur(3px); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 0 22px; }
.dlg-head h2 { margin: 0; font-size: 1.25rem; }
.dlg-body { padding: 14px 22px 22px; overflow-wrap: anywhere; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.secret-row { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.secret { font-family: var(--mono); font-size: 1.15rem; background: var(--field); border: 1px dashed var(--accent); padding: 10px 14px; border-radius: 10px; user-select: all; overflow-wrap: anywhere; }
.code-input { font-family: var(--mono); font-size: 1.8rem !important; letter-spacing: .25em; text-align: center; text-transform: uppercase; }
.device-info { margin: 0 0 20px; padding: 16px; background: var(--field); border: 1px solid var(--edge); border-radius: 14px; }

/* toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { padding: 12px 16px; border-radius: 12px; background: #1b2744; border: 1px solid var(--edge-hi); box-shadow: var(--shadow); animation: pop .2s ease-out; }
.toast.ok { border-color: #1f5a37; background: #0f2a1b; }
.toast.danger { border-color: #7a2634; background: #2a1219; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

/* placeholders in legal text */
span.ph { outline: 2px dashed var(--warn); outline-offset: 2px; background: rgba(251, 191, 36, .14); color: #ffe9a8; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* legal */
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
.legal-side { position: sticky; top: 84px; }
.legal-side h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.legal-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.legal-side a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.legal-side a:hover { background: var(--card); }
.legal-side a[aria-current="page"] { background: #fff; color: #0b1020; font-weight: 700; }
.legal-side .sum { display: none; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: minmax(0, 1fr); } .legal-side { position: static; } .legal-side ul { grid-auto-flow: column; overflow-x: auto; } .legal-side a { white-space: nowrap; } }
article.legal { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r); padding: clamp(18px, 4vw, 40px); min-width: 0; overflow-wrap: anywhere; }
article.legal h1 { margin-bottom: .2em; }
article.legal h2 { margin-top: 1.8em; padding-top: .4em; border-top: 1px solid var(--edge); }
article.legal h3 { margin-top: 1.4em; }
article.legal li { margin-bottom: .4em; }
article.legal .legal-meta { color: var(--muted); }
article.legal nav.toc { background: var(--field); border: 1px solid var(--edge); border-radius: 12px; padding: 14px 18px; margin: 18px 0 8px; }
article.legal nav.toc ul { list-style: none; margin: 0; padding: 0; columns: 2 260px; }
article.legal nav.toc li { margin: 0 0 4px; break-inside: avoid; }
article.legal .table-wrap { margin: 1em 0; }
article.legal td, article.legal th { font-size: .9rem; }

/* admin */
.admin-note { margin-bottom: 20px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #232b3d; color: #cbd5ea; }
.status.open { background: #3a2c08; color: #fcd34d; }
.status.resolved { background: #12301f; color: #6ee7a0; }
.status.dismissed { background: #232b3d; color: #aab6d0; }
.status.hidden { background: #3a1620; color: #ff9d9d; }
.ok-text { color: var(--ok); } .bad-text { color: var(--danger); }
pre.log { background: var(--field); border: 1px solid var(--edge); border-radius: 12px; padding: 14px; overflow: auto; max-height: 420px; font: .82rem/1.5 var(--mono); margin: 0 0 18px; }
.split { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 1.5fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.list-btn { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; background: var(--field); border: 1px solid var(--edge); color: var(--text); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; font: inherit; cursor: pointer; }
.list-btn:hover { border-color: var(--edge-hi); }
.list-btn[aria-current="true"] { border-color: var(--accent); background: #10233a; }
.list-btn .sub { color: var(--muted); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  body { background: #fff; color: #000; display: block; }
  .site-header, .site-footer, .legal-side, .toasts, .skip, nav.toc { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  article.legal { background: none; border: 0; padding: 0; box-shadow: none; }
  article.legal h2 { border-color: #999; break-after: avoid; }
  article.legal a { color: #000; text-decoration: underline; }
  article.legal a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
  span.ph { outline: 1px dashed #000; background: none; color: #000; }
  th { background: none; color: #000; }
  th, td { border-color: #999; }
}

.dlg-body h3 { margin-top: 18px; }
.progress-list { margin-bottom: 16px; }
