:root {
  --bg:            #0a0b13;
  --bg-soft:       #0e0f1c;
  --surface:       #141628;
  --surface-2:     #191c33;
  --border:        #232544;
  --border-soft:   #1c1e38;

  --text:          #e9e9f5;
  --text-soft:     #c3c5de;
  --muted:         #8d8fac;

  --accent:        #5b7cfa;
  --accent-2:      #9d7bff;
  --accent-cyan:   #4fd1e0;
  --accent-lime:   #b3e847;
  --accent-soft:   rgba(91,124,250,.16);
  --accent-ink:    #0a0b13;

  --code-bg:       #0f1122;
  --code-ink:      #cfd3ec;
  --code-muted:    #6b7196;

  --tip-bg: #101a10; --tip-border: #2c4023; --tip-ink: #9fe58f;
  --warn-bg: #1d1526; --warn-border: #5b3a63; --warn-ink: #d9a6f0;
  --info-bg: #101a2e; --info-border: #28407a; --info-ink: #9dbdfb;
  --danger-bg: #28131a; --danger-border: #5c2a35; --danger-ink: #f5919e;

  --shadow: 0 12px 34px -14px rgba(0,0,0,.6);
  --radius: 10px;
  --font-ui: 'Inter', -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", Consolas, Menlo, "Liberation Mono", monospace;
}

:root[data-theme="light"] {
  --bg:            #f6f7fb;
  --bg-soft:       #ffffff;
  --surface:       #ffffff;
  --surface-2:     #eef0f8;
  --border:        #e3e5f1;
  --border-soft:   #edeef8;

  --text:          #181a2c;
  --text-soft:     #454a68;
  --muted:         #767b9a;

  --accent:        #4a5fe0;
  --accent-2:      #7c4fe0;
  --accent-cyan:   #0a8298;
  --accent-lime:   #5c8a00;
  --accent-soft:   rgba(74,95,224,.10);
  --accent-ink:    #ffffff;

  --tip-bg: #eafaf1; --tip-border: #bfe8cf; --tip-ink: #1c7a45;
  --warn-bg: #faf0ff; --warn-border: #e3c6f5; --warn-ink: #7a3d94;
  --info-bg: #eef3ff; --info-border: #c7d6fb; --info-ink: #2a4faa;
  --danger-bg: #fdeef0; --danger-border: #f3c6ce; --danger-ink: #a3273b;

  --shadow: 0 12px 34px -14px rgba(20,20,50,.15);
}

* { box-sizing: border-box; }
html, body { height: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--font-mono); }
::selection { background: var(--accent-soft); }

/* ---------- ambient background ---------- */
.glow-orb {
  position: fixed; z-index: 0; pointer-events: none; overflow: hidden;
  width: 58vw; height: 58vw; max-width: 760px; max-height: 760px;
  right: -16vw; top: -22vw; border-radius: 50%; filter: blur(100px); opacity: .16;
  background:
    radial-gradient(circle at 30% 35%, var(--accent), transparent 60%),
    radial-gradient(circle at 65% 60%, var(--accent-2), transparent 65%);
  animation: glow-drift 32s ease-in-out infinite;
}
.glow-orb.orb-2 {
  right: auto; left: -20vw; top: 40vh; opacity: .1; filter: blur(90px);
  background: radial-gradient(circle at 40% 50%, var(--accent-cyan), transparent 65%);
  animation-duration: 40s; animation-direction: reverse;
}
@keyframes glow-drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-4%, 3%) scale(1.06); }
}

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: var(--accent-ink); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.brand-word { font-weight: 800; font-size: 15px; line-height: 1.15; }
.brand-word .grad {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-cyan));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-word small { display: block; font-weight: 600; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 20px;
  background: var(--bg-soft); border-bottom: 1px solid var(--border);
}
.navtoggle, .theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-soft);
  cursor: pointer;
}
.navtoggle:hover, .theme-toggle:hover { border-color: var(--accent-2); color: var(--text); }
.navtoggle svg, .theme-toggle svg { width: 16px; height: 16px; }
.navtoggle { display: none; }
.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; }

.topbar-search { flex: 1; max-width: 380px; margin-left: auto; }
.topbar-search input {
  width: 100%; height: 34px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); padding: 0 14px 0 34px;
  font-size: 13px; font-family: inherit;
  background-repeat: no-repeat; background-position: 12px center; background-size: 15px 15px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8fac' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>");
}
.topbar-search input::placeholder { color: var(--muted); }
.topbar-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- layout ---------- */
.layout { display: flex; align-items: flex-start; max-width: 1320px; margin: 0 auto; position: relative; z-index: 1; }

.sidebar {
  width: 264px; flex-shrink: 0; position: sticky; top: 56px;
  height: calc(100vh - 56px); overflow-y: auto;
  padding: 18px 10px 60px 16px; background: var(--bg-soft); border-right: 1px solid var(--border);
}
.nav-tree { display: flex; flex-direction: column; gap: 1px; }
.page-list a {
  display: block; padding: 8px 10px; border-radius: 7px;
  color: var(--text-soft); font-size: .93em; font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.page-list a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.page-list a.active { background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }
.no-results { color: var(--muted); font-size: .85em; padding: 8px 10px; }

.nav-group { margin: 2px 0; }
.nav-group summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: 7px;
  font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted);
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::before { content: "▸"; font-size: .85em; transition: transform .15s ease; }
.nav-group[open] > summary::before { transform: rotate(90deg); }
.nav-group summary:hover { background: var(--surface); color: var(--text); }
.nav-group-items { display: flex; flex-direction: column; gap: 1px; padding-left: 10px; margin-top: 1px; }

.backdrop { display: none; }

main { flex: 1; min-width: 0; padding: 34px 40px 100px; max-width: 900px; position: relative; }

.breadcrumbs { font-size: .82em; color: var(--muted); display: flex; gap: 8px; margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span:last-child { color: var(--text-soft); }

/* ---------- content ---------- */
.content-columns { display: flex; gap: 40px; align-items: flex-start; }
.content { flex: 1; min-width: 0; }
.content > :first-child { margin-top: 0; }
.content h1 { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 10px; }
.content h2 {
  font-size: 1.45rem; font-weight: 750;
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border-soft);
  scroll-margin-top: 76px; position: relative;
}
.content h1 { scroll-margin-top: 76px; }
.content h3 { font-size: 1.12rem; margin-top: 1.6em; scroll-margin-top: 76px; }
.heading-anchor { position: absolute; left: -20px; opacity: 0; color: var(--muted); text-decoration: none; }
.content h1:hover .heading-anchor, .content h2:hover .heading-anchor, .content h3:hover .heading-anchor { opacity: 1; }
.content p, .content li { color: var(--text-soft); }
.content strong { color: var(--text); }
.content ul, .content ol { padding-left: 1.3em; }
.content li::marker { color: var(--accent-2); }
.content li + li { margin-top: .35em; }
.content blockquote {
  margin: 16px 0; padding: 12px 15px; border: 1px solid var(--border); border-left: 3px solid var(--muted);
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text-soft); font-size: .95em;
}
.content code:not(pre code) {
  background: var(--surface); border: 1px solid var(--border); color: var(--accent-lime);
  padding: 1px 6px; border-radius: 5px; font-size: .88em;
}

/* callouts — drop straight into markdown as raw HTML: <div class="callout tip">…</div> */
.callout {
  border: 1px solid var(--border); border-left: 3px solid var(--muted); background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 15px; margin: 16px 0; font-size: .93em;
}
.callout.tip   { border-left-color: var(--tip-border);   background: var(--tip-bg);   color: var(--tip-ink); }
.callout.warn  { border-left-color: var(--warn-border);  background: var(--warn-bg);  color: var(--warn-ink); }
.callout.info  { border-left-color: var(--info-border);  background: var(--info-bg);  color: var(--info-ink); }
.callout.danger{ border-left-color: var(--danger-border);background: var(--danger-bg);color: var(--danger-ink); }

.table-wrap { overflow-x: auto; margin: 14px 0 22px; border: 1px solid var(--border); border-radius: var(--radius); }
.content table { border-collapse: collapse; width: 100%; font-size: .92em; }
.content th, .content td { padding: 9px 13px; text-align: left; border-bottom: 1px solid var(--border); }
.content th { background: var(--surface-2); color: var(--text); font-weight: 700; }

.pill { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2.5px 8px; border-radius: 100px; border: 1px solid; line-height: 1.5; }

/* ---------- code blocks ---------- */
.code-wrap { position: relative; margin: 16px 0 20px; }
.code-label {
  position: absolute; top: 0; left: 14px; transform: translateY(-50%);
  background: var(--code-bg); color: var(--code-muted); font-size: 10px;
  text-transform: uppercase; letter-spacing: .06em; padding: 0 6px; font-weight: 700;
}
.copy-btn {
  position: absolute; top: 8px; right: 8px; font-size: 10.5px; font-weight: 600;
  color: var(--code-muted); background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 9px; cursor: pointer; opacity: 0;
  transition: opacity .15s ease, color .15s ease, border-color .15s ease;
}
.code-wrap:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { color: var(--text); border-color: var(--accent-2); }
.code-wrap pre {
  background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius);
  border: 1px solid var(--border); border-left: 2px solid var(--accent-2);
  padding: 16px 16px 14px; overflow-x: auto; font-size: 12.8px; line-height: 1.6; margin: 0;
}
.code-wrap pre code.hljs { background: transparent !important; padding: 0; font-family: var(--font-mono); }

/* ---------- toc ---------- */
.toc { width: 190px; flex-shrink: 0; position: sticky; top: 76px; font-size: .85em; }
.toc-title { color: var(--muted); text-transform: uppercase; font-size: .74em; letter-spacing: .06em; font-weight: 700; margin: 0 0 10px; }
#toc-list { display: flex; flex-direction: column; gap: 7px; border-left: 1px solid var(--border-soft); }
#toc-list a { color: var(--text-soft); padding-left: 12px; }
#toc-list a.toc-h3 { padding-left: 22px; color: var(--muted); }
#toc-list a:hover { color: var(--accent-2); text-decoration: none; }

/* ---------- pagination ---------- */
.next-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--border); }
.next-links a {
  flex: 1 1 200px; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; text-decoration: none; color: var(--text); background: var(--surface);
  transition: border-color .15s ease, transform .15s ease;
}
.next-links a:hover { border-color: var(--accent-2); transform: translateY(-2px); text-decoration: none; }
.next-links a.next { text-align: right; }
.next-links .lbl { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }

/* ---------- forms / buttons (shared: login, admin, editor) ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: .87em; color: var(--text-soft); }
input, textarea, select, button, .button {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
}
select { color-scheme: dark; }
:root[data-theme="light"] select { color-scheme: light; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
button, .button {
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  font-weight: 600; font-size: .92em; color: var(--text-soft);
}
button:hover, .button:hover { border-color: var(--accent-2); color: var(--text); text-decoration: none; }
button.primary, .button.primary { background: linear-gradient(145deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; }
button.primary:hover, .button.primary:hover { filter: brightness(1.08); }
button.full { width: 100%; justify-content: center; }
button.danger { border-color: var(--danger-border); color: var(--danger-ink); background: none; }
button.danger:hover { background: var(--danger-bg); }
.error { color: var(--danger-ink); font-size: .9em; margin: 0; }
form { margin: 0; }

/* ---------- auth / admin pages ---------- */
.auth-body { background: var(--bg); }
.login-page { min-height: calc(100vh - 56px); display: flex; align-items: center; justify-content: center; }
.login-box {
  width: 340px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  padding: 32px; box-shadow: var(--shadow);
}
.login-box h1 { font-size: 1.1em; margin: 4px 0 0; }

.admin-topbar { justify-content: space-between; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.user-menu { display: flex; align-items: center; gap: 8px; }
.user-menu-btn {
  display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text);
}
.user-menu-btn:hover { border-color: var(--accent-2); text-decoration: none; }
.user-avatar {
  width: 24px; height: 24px; border-radius: 50%; background: var(--grad-brand);
  color: var(--accent-ink); font-weight: 800; font-size: .78em;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.user-name { font-size: .88em; font-weight: 600; }

.admin-nav {
  display: flex; gap: 4px; padding: 10px 32px 0; border-bottom: 1px solid var(--border);
  max-width: 980px; margin: 0 auto; position: relative; z-index: 1; overflow-x: auto;
}
.admin-nav a {
  padding: 9px 14px; color: var(--muted); font-size: .9em; font-weight: 600;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.admin-nav a:hover { color: var(--text); text-decoration: none; }
.admin-nav a.active { color: var(--text); border-bottom-color: var(--accent); }

.admin { max-width: 980px; margin: 0 auto; padding: 32px 24px 60px; position: relative; z-index: 1; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.admin-header .actions { display: flex; gap: 8px; }
.admin-header h1 { margin-bottom: 4px; }
.role-note { margin: 0; color: var(--muted); font-size: .85em; }
.flash-ok { color: var(--tip-ink); font-size: .9em; margin: 0 0 16px; }
.inline-password-form { display: inline-flex; gap: 8px; align-items: center; }
.inline-password-form input { padding: 9px 12px; font-size: .88em; width: 160px; }

/* ---------- stats / logs ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 32px; }
.stat-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; }
.stat-label { margin: 0 0 6px; color: var(--muted); font-size: .78em; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.stat-value { margin: 0; font-size: 1.8em; font-weight: 800; }
.stat-sub { margin: 4px 0 0; color: var(--text-soft); font-size: .82em; }

.stats-section { margin-bottom: 32px; }
.stats-section h2 { font-size: 1.05em; margin: 0 0 14px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.section-head h2 { margin: 0; }

.chart {
  display: flex; align-items: flex-end; gap: 6px; height: 160px;
  border-bottom: 1px solid var(--border); padding-bottom: 4px; position: relative;
}
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.chart-bar {
  width: 100%; max-width: 24px; min-height: 3px; border-radius: 4px 4px 0 0;
  background: var(--accent); cursor: default; transition: background .12s ease;
}
.chart-bar:hover { background: var(--accent-2); }
.chart-label { font-size: .68em; color: var(--muted); white-space: nowrap; }
.chart-tooltip {
  position: absolute; top: -8px; transform: translate(-50%, -100%);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); font-size: .78em; font-weight: 600; white-space: nowrap;
  padding: 5px 10px; border-radius: 6px; pointer-events: none; box-shadow: var(--shadow);
  z-index: 5;
}

.admin-table code { font-size: .85em; }

.flash-banner {
  border: 1px solid var(--tip-border); background: var(--tip-bg); color: var(--tip-ink);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px;
}
.flash-banner p { margin: 0; }
.flash-banner code { background: rgba(0,0,0,.2); border-color: transparent; color: inherit; }
.flash-note { margin-top: 6px !important; font-size: .82em; opacity: .8; }
.copy-btn-inline {
  background: none; border: 1px solid currentColor; color: inherit; border-radius: 6px;
  padding: 2px 8px; font-size: .82em; cursor: pointer;
}
.new-user-form { max-width: 420px; }
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
table.admin-table th { color: var(--muted); font-size: .82em; text-transform: uppercase; letter-spacing: .04em; }
.row-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.row-actions button, .row-actions .button { white-space: nowrap; }

.editor { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.editor .actions { display: flex; gap: 8px; }
.field-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.field-row label { flex: 1; min-width: 140px; }
.field-row .field-grow { flex: 3; min-width: 220px; }
.field-row .field-narrow { flex: 0 0 110px; min-width: 90px; }
.EasyMDEContainer .CodeMirror { border-radius: var(--radius); min-height: 360px; background: var(--surface); color: var(--text); border-color: var(--border); }
.EasyMDEContainer .editor-toolbar { border-color: var(--border); }
.EasyMDEContainer .editor-toolbar button { color: var(--text-soft) !important; }
.EasyMDEContainer .editor-toolbar button:hover, .EasyMDEContainer .editor-toolbar button.active { background: var(--surface-2); border-color: var(--border); }
.EasyMDEContainer .editor-preview { background: var(--bg); color: var(--text); }
.EasyMDEContainer .CodeMirror-cursor { border-color: var(--text); }
.cm-s-easymde .CodeMirror-selected { background: var(--accent-soft); }
.EasyMDEContainer .CodeMirror-hscrollbar, .EasyMDEContainer .CodeMirror-vscrollbar,
.EasyMDEContainer .CodeMirror-scrollbar-filler, .EasyMDEContainer .CodeMirror-gutter-filler {
  background: var(--surface);
}
.EasyMDEContainer .CodeMirror-scroll::-webkit-scrollbar { height: 10px; width: 10px; background: var(--surface); }
.EasyMDEContainer .CodeMirror-scroll::-webkit-scrollbar-track { background: var(--surface); }
.EasyMDEContainer .CodeMirror-scroll::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 5px; }
.EasyMDEContainer .CodeMirror-scroll { line-height: 1.6; }
.EasyMDEContainer .cm-header { color: var(--accent-2); }
.EasyMDEContainer .cm-link, .EasyMDEContainer .cm-url { color: var(--accent-cyan); }

/* ---------- confirm modal (replaces native confirm()) ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl, 16px); padding: 24px; box-shadow: var(--shadow);
}
.modal-text { margin: 0 0 20px; color: var(--text); font-size: .95em; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- admin tables: horizontal scroll instead of overflow on narrow screens ---------- */
.admin-table-wrap { overflow-x: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .toc { display: none; }
}
@media (max-width: 860px) {
  .navtoggle { display: flex; }
  .topbar-search { display: none; }
  .sidebar {
    position: fixed; left: 0; top: 56px; bottom: 0; width: min(82vw, 290px); z-index: 39;
    transform: translateX(-100%); transition: transform .22s cubic-bezier(.16,1,.3,1); box-shadow: var(--shadow);
  }
  .sidebar.open { transform: translateX(0); }
  .backdrop.open {
    display: block; position: fixed; inset: 0; top: 56px; background: rgba(0,0,0,.55); z-index: 38;
  }
  main { padding: 24px 20px 90px; }

  .admin, .admin-nav { padding-left: 16px; padding-right: 16px; }
  .user-name { display: none; }
  .user-menu-btn { padding: 5px; }
  .admin-header { align-items: flex-start; }
  .field-row { flex-direction: column; align-items: stretch; }
  .field-row .field-grow, .field-row .field-narrow { flex: 1; min-width: 0; }
}
