/* Asylum News — Newsroom (CMS) */

/* Dark is the newsroom's default look. A saved choice (inline head script +
   cms.js) can opt into light via :root[data-theme="light"] below. */
:root {
  --bg: #14120e;
  --surface: #1c1a15;
  --ink: #ece5d6;
  --ink-2: #c3baa8;
  --muted: #8d8473;
  --line: #2f2b23;
  --line-2: #423c31;
  --accent: #e0574a;
  --accent-tint: #3a1d19;
  --ok: #7cc28a;
  --ok-tint: #1b2a1d;
  --side: #0d0c09;
  --side-ink: #ebe4d5;
  --side-muted: #968d7c;
  --focus: rgba(224, 87, 74, .25);

  --ui: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --serif: 'Newsreader', Georgia, serif;
  --black: 'UnifrakturMaguntia', 'Old English Text MT', serif;
  color-scheme: dark;
}

:root[data-theme='light'] {
  --bg: #f3efe7;
  --surface: #fffdf8;
  --ink: #1b1813;
  --ink-2: #4a443a;
  --muted: #857c6d;
  --line: #e3dccd;
  --line-2: #cdc4b2;
  --accent: #9e1f16;
  --accent-tint: #f6e4df;
  --ok: #2d6a3a;
  --ok-tint: #e3efe2;
  --side: #1b1813;
  --focus: rgba(158, 31, 22, .18);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; }
code { font-family: var(--mono); font-size: .9em; background: var(--bg); padding: .1em .35em; border: 1px solid var(--line); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.head { image-rendering: pixelated; flex: none; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.brand-name { font-family: var(--black); font-size: 30px; line-height: 1; }
.brand-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

/* ---------- app shell ---------- */

.app {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}

.side {
  background: var(--side);
  color: var(--side-ink);
  display: flex;
  flex-direction: column;
  padding: 26px 16px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; flex-direction: column; gap: 6px; text-decoration: none; padding: 0 10px 22px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.brand .brand-sub { color: var(--side-muted); }

.nav { display: flex; flex-direction: column; gap: 1px; padding-top: 16px; }
.nav-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--side-muted);
  padding: 18px 10px 6px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 3px;
  text-decoration: none;
  color: #cfc7b7;
  font-size: 14.5px;
}
.nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-link[aria-current='page'] { background: rgba(255, 255, 255, .09); color: #fff; }
.nav-link[aria-current='page']::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #d8483b;
  margin-left: -2px;
}

.whoami {
  margin-top: auto;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 16px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.whoami-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.whoami-text strong { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whoami-text span { color: var(--side-muted); font-size: 12px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whoami form { grid-column: 2; }
.linkish {
  font: inherit;
  font-size: 12.5px;
  color: var(--side-muted);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.linkish:hover { color: #fff; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 5px;
  color: var(--side-ink);
  cursor: pointer;
}
.theme-toggle:hover { background: rgba(255, 255, 255, .08); }
.theme-toggle .icon--sun { display: none; }
:root[data-theme='light'] .theme-toggle .icon--moon { display: none; }
:root[data-theme='light'] .theme-toggle .icon--sun { display: block; }
.theme-toggle--gate { position: fixed; top: 16px; right: 16px; border-color: var(--line-2); color: var(--ink-2); }
.theme-toggle--gate:hover { background: var(--surface); }

.main { padding: 34px 44px 60px; max-width: 1280px; width: 100%; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}
.page-head h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0;
}
.sub { color: var(--ink-2); margin: 6px 0 0; max-width: 620px; }

/* ---------- controls ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: 500 14px/1.2 var(--ui);
  padding: 9px 15px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { border-color: var(--ink); }
.btn--primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn--publish { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--publish:hover { filter: brightness(1.08); border-color: var(--accent); }
.btn--danger { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: transparent; }
.btn--danger:hover { background: var(--accent-tint); border-color: var(--accent); }
.btn--quiet { background: transparent; border-color: transparent; padding-inline: 8px; }
.btn--quiet:hover { border-color: var(--line-2); }
.btn--wide { width: 100%; }

.field { display: flex; flex-direction: column; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 500; font-size: 13.5px; }
.field legend { margin-bottom: 6px; }
.field small, small.muted { color: var(--muted); font-size: 12.5px; line-height: 1.4; }

input:not([type='checkbox']):not([type='radio']):not([type='file']), textarea, select {
  font: 15px/1.4 var(--ui);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 9px 11px;
  width: 100%;
  min-width: 0;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input[type='checkbox'], input[type='radio'] { accent-color: var(--accent); width: 16px; height: 16px; margin: 2px 0 0; flex: none; }

.stack { display: flex; flex-direction: column; gap: 16px; }

.check, .radio { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.check small { display: block; color: var(--muted); font-size: 12.5px; }
.check--small { font-size: 13.5px; margin-top: 10px; }
.radio + .radio { margin-top: 8px; }

.flash {
  padding: 11px 14px;
  border: 1px solid;
  border-radius: 3px;
  margin-bottom: 20px;
  font-size: 14.5px;
}
.flash--ok { background: var(--ok-tint); border-color: color-mix(in srgb, var(--ok) 35%, transparent); color: var(--ok); }
.flash--err { background: var(--accent-tint); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent); }

.tag {
  display: inline-block;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 7px 3px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--ink-2);
  white-space: nowrap;
  vertical-align: 2px;
}
.tag--live { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: var(--ok-tint); }
.tag--draft { border-style: dashed; color: var(--muted); }
.tag--admin { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tag--off { color: var(--muted); text-decoration: line-through; }
.tag--kw { text-transform: none; letter-spacing: 0; font-family: var(--ui); font-size: 11.5px; }
.tag--boost { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); margin-left: 6px; }
.t-keywords { max-width: 240px; }
.admin-only { text-transform: none; font-weight: 400; color: var(--accent); letter-spacing: 0; font-size: 11px; }

.hint { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }

/* ---------- lists / tables ---------- */

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 0;
}
.tabs { display: flex; gap: 22px; }
.tab {
  padding: 8px 0 10px;
  text-decoration: none;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-weight: 500;
}
.tab:hover { color: var(--ink); }
.tab[aria-current='page'] { color: var(--ink); border-bottom-color: var(--accent); }
.count { font: 12px var(--mono); color: var(--muted); margin-left: 3px; }
.search { padding-bottom: 8px; width: min(300px, 45%); }
.search input { padding: 7px 10px; font-size: 14px; }

.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
}
.table th {
  font: 500 10.5px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14.5px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: color-mix(in srgb, var(--bg) 50%, var(--surface)); }
.table .num { text-align: right; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.t-title { min-width: 280px; }
.t-title > a { font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.25; text-decoration: none; }
.t-title > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.t-slug { display: block; font: 12px var(--mono); color: var(--muted); margin-top: 3px; }
.t-actions { text-align: right; white-space: nowrap; }
.t-actions > a { margin-left: 12px; font-size: 13.5px; color: var(--ink-2); }
.t-actions > a:hover { color: var(--accent); }

.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }

.blank {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  padding: 60px 20px;
  text-align: center;
}
.blank h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 0 0 6px; }
.blank p { margin: 0; color: var(--ink-2); }
.main > .blank { border-top: 1px solid var(--line); }

/* ---------- panels ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 16px 18px 18px;
}
.panel + .panel { margin-top: 14px; }
.panel--form { padding: 22px 24px 24px; }
.panel--narrow { max-width: 620px; }
.panel--note { background: transparent; border-style: dashed; }
.panel--note p { margin: 0; color: var(--ink-2); font-size: 14px; }
.panel-title {
  display: block;
  font: 500 10.5px var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.field > .panel-title { margin-bottom: 4px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.split .table { border-top: 1px solid var(--line); }
/* Staff table stays unclipped so the Manage popover can spill over it. */
.split .table-wrap { overflow: visible; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; max-width: 980px; }

/* ---------- staff ---------- */

.person { display: flex; align-items: center; gap: 12px; }
.person strong { font-weight: 500; }
.person--big .hint { margin: 0; }
.table--staff td { vertical-align: middle; }
.table--staff tr.is-off td { color: var(--muted); }
.table--staff tr.is-off .head { opacity: .45; filter: grayscale(1); }
.table--staff tr.is-new td { background: var(--ok-tint); }

.menu { position: relative; display: inline-block; text-align: left; }
.menu summary {
  list-style: none;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { border-color: var(--ink); color: var(--ink); }
.menu-body {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .25);
  padding: 14px;
  white-space: normal;
}
.menu-row { display: flex; flex-direction: column; gap: 8px; }
.menu-row .field > span { font-size: 12.5px; }
.menu-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.menu-actions .btn { padding: 7px 11px; font-size: 13px; }

.pw { display: flex; gap: 6px; }
.pw input { font-family: var(--mono) !important; }

/* ---------- editor ---------- */

.editor-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: -8px 0 22px;
  font-size: 13.5px;
}
.back { text-decoration: none; color: var(--ink-2); }
.back:hover { color: var(--ink); }
.editor-state { display: flex; gap: 10px; align-items: center; flex: 1; }
.editor-state .muted { font-size: 13px; }

.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }

.f-title, .f-dek {
  display: block;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  resize: none;
  overflow: hidden;
  font-family: var(--serif) !important;
}
.f-title { font-size: 42px !important; font-weight: 600; line-height: 1.1 !important; letter-spacing: -.015em; }
.f-dek { font-size: 20px !important; font-style: italic; line-height: 1.4 !important; color: var(--ink-2) !important; margin: 12px 0 24px; }

.body-box { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; }
.body-box:focus-within { border-color: var(--line-2); }
.body-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; }
.seg button, .tools button {
  font: 500 13px var(--ui);
  background: none;
  border: 0;
  color: var(--ink-2);
  padding: 5px 12px;
  cursor: pointer;
}
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button[aria-selected='true'] { background: var(--ink); color: var(--bg); }
.tools { display: flex; flex-wrap: wrap; gap: 2px; }
.tools button { padding: 5px 9px; border-radius: 3px; min-width: 30px; }
.tools button:hover { background: var(--bg); color: var(--ink); }
.tools button[data-md='heading'], .tools button[data-md='quote'] { font-family: var(--serif); font-size: 16px; font-weight: 600; }

.f-body {
  display: block;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  min-height: 480px;
  resize: none !important;
  overflow: hidden;
  padding: 20px 24px !important;
  font: 15px/1.75 var(--mono) !important;
}
.preview { padding: 24px 28px; min-height: 480px; }
.body-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  font: 12px var(--mono);
  color: var(--muted);
}

.editor-side { position: sticky; top: 20px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.actions .btn { flex: 1; }
.editor-side .check + .actions { margin-top: 16px; }
.editor-side > .btn--danger { margin-top: 14px; }

.slug { display: flex; align-items: stretch; }
.slug-pre {
  display: flex;
  align-items: center;
  font: 13px var(--mono);
  color: var(--muted);
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-right: 0;
  border-radius: 3px 0 0 3px;
  background: var(--bg);
}
.slug input { border-radius: 0 3px 3px 0 !important; font: 13px var(--mono) !important; }

.kw-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kw-chip {
  font: 500 12.5px var(--ui);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 4px 10px;
  color: var(--ink-2);
  cursor: pointer;
}
.kw-chip:hover { border-color: var(--ink); color: var(--ink); }

.panel--boost { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }

.cover-preview {
  aspect-ratio: 16 / 9;
  background: var(--bg);
  border: 1px solid var(--line);
  margin-bottom: 10px;
  overflow: hidden;
}
.cover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-preview.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  color: var(--muted);
  font-size: 13px;
}
.file { position: relative; display: block; margin: 10px 0 6px; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file span {
  display: block;
  text-align: center;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  font-weight: 500;
  font-size: 14px;
}
.file:hover span { border-color: var(--ink); }
.file:focus-within span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* preview uses the same reading styles as the public site */
.prose { font-family: var(--serif); font-size: 19px; line-height: 1.65; max-width: 680px; }
.prose > * { margin: 0 0 1em; }
.prose h2 { font-size: 27px; line-height: 1.2; margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose a { color: var(--accent); }
.prose img { width: 100%; display: block; }
.prose blockquote { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 14px 0; margin: 1.6em 0; font-size: 24px; font-style: italic; text-align: center; line-height: 1.3; }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 2em auto; width: 30%; }
.prose pre { background: var(--bg); padding: 14px; overflow-x: auto; font-size: 14px; }
.prose table { border-collapse: collapse; font-family: var(--ui); font-size: 14px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 6px 10px 6px 0; text-align: left; }
.prose li::marker { color: var(--accent); }
.preview-empty { color: var(--muted); font-style: italic; }

/* ---------- gate (login / setup) ---------- */

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 16px;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, color-mix(in srgb, var(--line) 40%, transparent) 31px 32px),
    var(--bg);
}
.gate-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  padding: 34px 32px 28px;
  box-shadow: 0 1px 0 var(--line), 0 24px 50px -30px rgba(0, 0, 0, .3);
}
.gate-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 3px double var(--ink);
}
.gate-brand .brand-name { font-size: 46px; }
.gate-brand .brand-sub { color: var(--muted); }
.gate-title { font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 0; line-height: 1.15; }
.gate-lede { color: var(--ink-2); margin: 6px 0 22px; font-size: 14.5px; }
.gate-foot { color: var(--muted); font-size: 12.5px; margin: 20px 0 0; text-align: center; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .editor-grid, .split { grid-template-columns: 1fr; }
  .editor-side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .editor-side .panel + .panel { margin-top: 0; }
  .editor-side > .btn--danger { margin-top: 0; grid-column: 1 / -1; justify-self: start; width: auto; }
}

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 14px 16px;
  }
  .brand { border: 0; padding: 0; flex-direction: row; align-items: baseline; gap: 10px; }
  .brand-name { font-size: 26px; }
  .nav { flex-direction: row; flex-wrap: wrap; padding: 0; gap: 2px; order: 3; width: 100%; }
  .nav-label { display: none; }
  .nav-link { padding: 6px 9px; font-size: 13.5px; }
  .whoami { margin: 0 0 0 auto; border: 0; padding: 0; grid-template-columns: 28px auto; }
  .whoami .head { width: 28px; height: 28px; }
  .whoami-text span { display: none; }
  .main { padding: 24px 16px 48px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .page-head h1 { font-size: 30px; }
  .cols { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .tabs { overflow-x: auto; }
  .f-title { font-size: 32px !important; }
  .editor-side { grid-template-columns: 1fr; }
  .table--staff th:nth-child(4), .table--staff td:nth-child(4) { display: none; }
  .table--staff td, .table--staff th { padding-inline: 10px; }
  .menu-body { width: min(300px, calc(100vw - 48px)); }
  .body-bar { flex-direction: column; align-items: stretch; }
}
