:root {
  --bg: #0E1116;
  --bg-2: #12161C;
  --surface: #161A21;
  --surface-2: #1C212A;
  --surface-3: #242A35;
  --line: #272D38;
  --line-2: #333A47;
  --row-line: #222832;
  --text: #E9ECF1;
  --text-2: #C9CED6;
  --muted: #A0A8B5;
  --faint: #7D8592;
  --accent: #F2B544;
  --accent-ink: #1A1406;
  --accent-bg: #2A2416;
  --accent-line: #4A3B1A;
  --green: #4CC38A;
  --green-text: #6FD8A4;
  --green-bg: #15281F;
  --red-text: #F59AA1;
  --red-bg: #2E1A1D;
  --red-line: #4A2A2E;
  --blue-text: #8FBCFA;
  --blue-bg: #16233A;
  --purple-text: #C3B1F7;
  --purple-bg: #231D36;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: #F7CB72; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spread { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }

/* ---- Shell ---- */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: stretch; }
.sidebar {
  flex: 1 1 248px; max-width: 280px;
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 24px 16px; display: flex; flex-direction: column; gap: 22px;
  position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto;
}
.main { flex: 999 1 560px; min-width: 0; padding: 32px 40px 56px; display: flex; flex-direction: column; gap: 24px; }
.main-narrow { max-width: 1100px; }

.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; text-decoration: none; color: var(--text); }
.brand span { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }

.icon-btn.menu-toggle { display: none; }

.switcher { position: relative; }
.switcher summary {
  list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 56px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.switcher summary::-webkit-details-marker { display: none; }
.switcher .pmark {
  width: 32px; height: 32px; border-radius: 8px; background: var(--accent-bg); color: var(--accent);
  font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none;
  text-transform: uppercase;
}
.switcher .ptext { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.switcher .ptext b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switcher .ptext span { font-size: 12px; color: var(--muted); }
.switcher-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}
.switcher-menu a {
  display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 8px;
  color: var(--text-2); text-decoration: none; font-size: 14px;
}
.switcher-menu a:hover, .switcher-menu a.current { background: var(--surface-3); color: var(--text); }
.switcher-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  font-size: 14px; text-decoration: none; color: var(--text-2); font-weight: 500;
}
.nav a svg { flex: none; stroke: #8C95A3; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--surface-3); color: #fff; font-weight: 700; }
.nav a.active svg { stroke: var(--accent); }
.nav a .label { flex: 1; }
.nav-badge {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.nav-section { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 10px 12px 4px; }

.me { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 14px 8px 0; border-top: 1px solid var(--line); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: #233042; color: var(--blue-text);
  font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; flex: none;
  text-transform: uppercase;
}
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.avatar.alt { background: var(--purple-bg); color: var(--purple-text); }
.me .who { display: flex; flex-direction: column; flex: 1; min-width: 0; text-decoration: none; color: var(--text); }
.me .who b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .who span { font-size: 12px; color: var(--muted); }
.icon-btn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px;
  border: 0; background: none; cursor: pointer; color: var(--muted);
}
.icon-btn:hover { background: var(--surface-2); }

/* ---- Page header ---- */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.page-head h1 { font-size: 30px; font-weight: 800; }
.page-head p { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---- Cards, tiles ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card.flush { padding: 8px 0; }
.card.accent { border-color: var(--accent-line); }
.card h2 { font-size: 16px; font-weight: 700; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px 12px; }
.card-row { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--row-line); font-size: 14px; }
.card-row .grow { flex: 1; min-width: 0; }
.empty { padding: 28px 20px; text-align: center; color: var(--muted); font-size: 14px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.tile .k { font-size: 13px; color: var(--muted); }
.tile .v { font-family: var(--mono); font-size: 34px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.tile .s { font-size: 13px; color: var(--faint); }
.tile.hot { background: #1E1A12; border-color: var(--accent-line); }
.tile.hot .k { color: #D9B56A; }
.tile.hot .v { color: var(--accent); }

.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--green); border-radius: 3px; }
.bar.warn > span { background: var(--accent); }

.columns { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.col-wide { flex: 2 1 480px; min-width: 0; }
.col-narrow { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.grid-2 { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.grid-2 > * { flex: 1 1 420px; min-width: 0; }

.status-line { display: flex; gap: 12px; align-items: flex-start; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; margin-top: 7px; background: var(--faint); }
.dot.ok { background: var(--green); }
.dot.warn { background: var(--accent); }
.dot.off { background: #4A5260; }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 132px; }
.bars .day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bars .day i { display: block; width: 100%; max-width: 28px; border-radius: 6px 6px 2px 2px; background: #3A4558; }
.bars .day.today i { background: var(--accent); }
.bars .day span { font-size: 12px; color: var(--faint); }
.bars .day b { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); }

/* ---- Chips, pills ---- */
.chip { flex: none; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap; }
.chip.up { background: var(--green-bg); color: var(--green-text); }
.chip.down, .chip.security { background: var(--red-bg); color: var(--red-text); }
.chip.regulation { background: var(--blue-bg); color: var(--blue-text); }
.chip.projects { background: var(--purple-bg); color: var(--purple-text); }
.chip.digest { background: var(--surface-3); color: var(--text-2); }
.chip.urgent { background: var(--accent-bg); color: var(--accent); font-weight: 700; }
.pill { flex: none; white-space: nowrap; height: 30px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border-radius: 15px; font-size: 13px; font-weight: 600; }
.pill.ok { background: var(--green-bg); color: var(--green-text); }
.pill.warn { background: var(--accent-bg); color: var(--accent); }
.pill.off { background: var(--surface-2); color: var(--muted); }
.pill.dashed { border: 1px dashed #3A4250; color: var(--muted); font-weight: 500; }

/* ---- Buttons ---- */
.btn {
  height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn.primary:hover { background: #F7C35E; color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--text-2); }
.btn.danger { background: transparent; border-color: var(--red-line); color: var(--red-text); }
.btn.danger:hover { background: var(--red-bg); }
.btn.lg { height: 48px; font-size: 15px; }
.btn.sm { height: 36px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; min-height: 44px; }
form.inline { display: inline; margin: 0; }

/* ---- Forms ---- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.hint { font-size: 13px; color: var(--muted); line-height: 1.5; }
input[type=text], input[type=password], input[type=url], input[type=tel], input[type=number], input[type=time],
input[type=search], select, textarea {
  height: 46px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--text); font: inherit; font-size: 15px; width: 100%;
}
textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
select { padding-right: 10px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); min-height: 44px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.input-row { display: flex; flex-wrap: wrap; gap: 10px; }
.input-row > input, .input-row > select { flex: 1 1 220px; min-width: 0; width: auto; }

/* ---- Flash ---- */
.flashes { display: flex; flex-direction: column; gap: 10px; }
.flash { padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; border: 1px solid; }
.flash.ok { background: var(--green-bg); border-color: #23402F; color: var(--green-text); }
.flash.error { background: var(--red-bg); border-color: var(--red-line); color: var(--red-text); }
.flash.info { background: #131B26; border-color: #223149; color: #C9D6EA; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.55; }
.note.info { background: #131B26; border: 1px solid #223149; color: #C9D6EA; }
.note.plain { background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.note svg { flex: none; margin-top: 1px; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; min-width: 720px; }
table.list th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 14px 20px; }
table.list td { padding: 12px 20px; border-top: 1px solid var(--row-line); font-size: 14px; vertical-align: middle; }
table.list tr.off td { color: var(--faint); }
.cell-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cell-title b { font-weight: 700; }
.cell-title span { font-family: var(--mono); font-size: 12px; color: var(--faint); word-break: break-all; }
.meter { display: flex; align-items: center; gap: 10px; }
.meter .num { font-family: var(--mono); font-size: 13px; width: 28px; text-align: right; }
.meter .bar { flex: 1; max-width: 90px; height: 5px; }
.meter .bar > span { background: #6CA8F7; }

.switch { width: 44px; height: 26px; border-radius: 13px; border: 0; padding: 3px; cursor: pointer; display: flex; background: #333A47; }
.switch i { width: 20px; height: 20px; border-radius: 50%; background: var(--muted); }
.switch.on { background: var(--green); justify-content: flex-end; }
.switch.on i { background: var(--bg); }

/* ---- Review ---- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters a {
  height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--line-2); color: var(--text-2);
  font-size: 14px; display: inline-flex; align-items: center; text-decoration: none;
}
.filters a.on { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); font-weight: 700; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-wrap: wrap; gap: 20px; scroll-margin-top: 20px; }
.post-card.urgent { border-color: var(--accent-line); }
.post-main { flex: 3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.post-side { flex: 2 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.preview { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.6; }
.preview .t { font-weight: 800; font-size: 16px; }
.preview .b { color: #D5DAE1; white-space: pre-line; }
.preview .f { font-size: 14px; color: var(--muted); }
.dropzone {
  aspect-ratio: 16 / 9; border-radius: 12px; border: 1.5px dashed #3A4250; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; color: var(--text-2); font-size: 14px;
}
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dropzone { position: relative; }
.dropzone:focus-within .btn { outline: 2px solid var(--accent); outline-offset: 2px; }
.image-box { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #222832; }
.image-box img { display: block; width: 100%; max-height: 260px; object-fit: contain; }
.image-box form { position: absolute; top: 6px; right: 6px; }
.image-box .icon-btn { width: 36px; height: 36px; background: var(--surface); }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.actions .row > * { flex: 1; }
.publish-form { display: flex; flex-direction: column; gap: 8px; }

/* ---- Keys ---- */
.key-card { display: flex; flex-direction: column; gap: 16px; }
.key-card.warn { border-color: var(--accent-line); }
.key-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.key-title { display: flex; gap: 12px; align-items: center; }
.key-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--surface-2); }
.kv { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--bg); border-radius: 10px; font-size: 14px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; }
.kv > div > span:first-child { color: var(--muted); }

/* ---- Auth ---- */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-aside { flex: 1 1 420px; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; border-right: 1px solid var(--line); }
.auth-aside h1 { font-size: 44px; line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
.auth-aside .lead { font-size: 17px; line-height: 1.6; color: var(--muted); }
.auth-points { display: flex; flex-direction: column; gap: 14px; }
.auth-points div { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--text-2); }
.auth-points i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.auth-panel { flex: 1 1 420px; padding: 56px 24px; display: flex; align-items: center; justify-content: center; background: var(--bg-2); }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.auth-card h2 { font-size: 24px; font-weight: 700; }
.code-input { height: 56px !important; font-family: var(--mono) !important; font-size: 24px !important; letter-spacing: .3em; text-align: center; border-color: var(--accent) !important; }

.simple-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.simple-main { max-width: 980px; margin: 0 auto; padding: 32px 24px 56px; display: flex; flex-direction: column; gap: 24px; }

.project-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.project-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--text); }
.project-card:hover { border-color: var(--line-2); color: var(--text); }
.project-card .top { display: flex; align-items: center; gap: 12px; }

.log-row .when { font-family: var(--mono); font-size: 12px; color: var(--faint); width: 96px; flex: none; }

/* ---- Help hints ---- */
.help-q {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid #3A4250; background: var(--surface-2);
  color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1; text-decoration: none;
  vertical-align: middle; margin-left: 6px; cursor: help; letter-spacing: 0; text-transform: none;
}
.help-q::before { content: ""; position: absolute; inset: -12px; }  /* bigger touch target */
.help-q:hover, .help-q:focus-visible { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.help-q[data-tip]:not([data-tip=""]):hover::after, .help-q[data-tip]:not([data-tip=""]):focus-visible::after {
  content: attr(data-tip); position: absolute; z-index: 50; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  width: max-content; max-width: 280px; padding: 10px 12px; border-radius: 10px; background: #2A313C; color: var(--text);
  border: 1px solid #3A4250; box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
  font-size: 13px; font-weight: 500; line-height: 1.45; text-align: left; white-space: normal; pointer-events: none;
}
.help-q.static { margin: 0 2px; cursor: default; }
h1 .help-q, h2 .help-q { transform: translateY(-2px); }

/* ---- Help center ---- */
.simple-main.help-page { max-width: 1180px; }
.help-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.help-nav { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 20px; }
.help-nav a { padding: 9px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 14px; }
.help-nav a:hover { background: var(--surface-2); color: var(--text); }
.help-nav a.on { background: var(--surface-3); color: #fff; font-weight: 700; }
.help-nav .help-back { color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.help-body { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.help-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.help-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); }
.help-card:hover { border-color: var(--line-2); color: var(--text); }
.help-card span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.help-toc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.help-toc a { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 16px; font-size: 13px; color: var(--text-2); text-decoration: none; }
.help-toc a:hover { border-color: var(--accent); color: var(--accent); }
.help-section { scroll-margin-top: 16px; }
.help-section:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 181, 68, .15); }
.help-section h2 { font-size: 18px; margin-bottom: 10px; }
.help-anchor { color: var(--text); text-decoration: none; }
.help-anchor:hover { color: var(--accent); }
.help-text { color: var(--text-2); font-size: 15px; line-height: 1.65; display: flex; flex-direction: column; gap: 10px; }
.help-text ol, .help-text ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.help-text b { color: var(--text); }
.help-text code { font-family: var(--mono); font-size: 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--text); word-break: break-all; }
.help-text dl { margin: 0; display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 10px 18px; }
.help-text dt { font-weight: 700; color: var(--text); }
.help-text dd { margin: 0; }
.help-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.help-table th, .help-table td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--row-line); vertical-align: top; }
.help-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border-top: 0; }
.help-next { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); }
.help-next:hover { border-color: var(--accent); color: var(--text); }

/* ---- Mobile ---- */
@media (max-width: 860px) {
  .sidebar {
    max-width: none; flex-basis: 100%; height: auto; position: sticky; top: 0; z-index: 30;
    padding: 10px 12px; gap: 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible;
  }
  .sidebar .top-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .icon-btn.menu-toggle { display: inline-flex; }
  .sidebar .collapsible { display: none; flex-direction: column; gap: 14px; max-height: calc(100vh - 70px); overflow-y: auto; padding-bottom: 6px; }
  .sidebar.open .collapsible { display: flex; }
  .me { margin-top: 0; }
  .main { padding: 20px 16px 40px; gap: 20px; }
  .page-head h1 { font-size: 26px; }
  .auth-aside { padding: 32px 24px; gap: 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-aside h1 { font-size: 32px; }
  .auth-card { padding: 24px; }
  .post-card { padding: 16px; }
  .card-row { padding: 12px 16px; flex-wrap: wrap; gap: 8px 12px; }
  .card-row .grow { flex-basis: 100%; order: 3; }
  .card-row .mono.faint { width: auto !important; }
  .card-head { padding: 14px 16px 12px; }
  .tile .v { font-size: 28px; }
  .help-nav { position: static; max-width: none; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .help-nav a { border: 1px solid var(--line-2); padding: 7px 12px; font-size: 13px; }
  .help-nav .help-back { flex-basis: 100%; border: 0; padding-left: 0; }
  .is-index .help-nav a:not(.help-back) { display: none; }
  .help-text dl { grid-template-columns: 1fr; gap: 4px; }
  .help-text dd { margin-bottom: 8px; }
  .help-q[data-tip]:not([data-tip=""]):hover::after { left: auto; right: -10px; transform: none; max-width: 240px; }
}
@media (min-width: 861px) {
  .sidebar .top-row { display: contents; }
  .sidebar .collapsible { display: contents; }
}
