:root {
  --bg: #faf8f4;
  --bg-warm: #faf8f4;
  --ink: #111;
  --soft-ink: #2a2925;
  --mute: #6f6a60;
  --rule: #e7e0d6;
  --btn: #111;
  --btn-hover: #2a2925;
  --btn-ink: #faf8f4;
  --input-bg: #fff;
  --input-border: #e3ddd3;
  --input-placeholder: #aaa39a;
  --paper-card: #f7f3ec;
  --paper-portrait: #f3eee6;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
  --max: 820px;
  --ok: #3a7a3a;
  --bad: #b04a2c;
}

html[data-theme="dark"] {
  --bg: #0f0e0c;
  --bg-warm: #14120f;
  --ink: #f2ede5;
  --soft-ink: #e2dcd2;
  --mute: #857f77;
  --rule: #28241e;
  --btn: #f2ede5;
  --btn-hover: #fff;
  --btn-ink: #0f0e0c;
  --input-bg: #4a4540;
  --input-border: #6b665c;
  --input-placeholder: #807b72;
  --paper-card: #16130f;
  --paper-portrait: #1a1714;
  --ok: #8fbf8f;
  --bad: #e08a72;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0f0e0c;
    --bg-warm: #14120f;
    --ink: #f2ede5;
    --soft-ink: #e2dcd2;
    --mute: #857f77;
    --rule: #28241e;
    --btn: #f2ede5;
    --btn-hover: #fff;
    --btn-ink: #0f0e0c;
    --input-bg: #4a4540;
    --input-border: #6b665c;
    --input-placeholder: #807b72;
    --paper-card: #16130f;
    --paper-portrait: #1a1714;
    --ok: #8fbf8f;
    --bad: #e08a72;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% -10%, var(--bg-warm) 0, var(--bg) 55%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.main { flex: 1 1 auto; max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 40px 64px; }
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.nav-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.brand:hover { text-decoration: none; }
.brand-avatar {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--paper-portrait);
  border: 1px solid var(--rule);
  align-items: center;
  justify-content: center;
}
.brand-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.brand-short { display: none; }
.nav .links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
}
.nav .links a { color: var(--ink); }
.nav .links a:hover { color: var(--mute); }
.nav-search, .theme-toggle {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle svg { display: block; }
.theme-toggle .theme-icon-sun,
html[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-toggle .theme-icon-moon { display: none; }
  html:not([data-theme="light"]) .theme-toggle .theme-icon-sun { display: block; }
}
.hero { padding: 112px 0 64px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.016em;
  margin: 0 0 24px;
  color: var(--ink);
  max-width: 28ch;
  text-wrap: balance;
  animation: rise 0.6s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: var(--soft-ink);
  margin: 0 0 32px;
}
.lede--hero { font-size: 18px; }
.sub-form { display: flex; gap: 8px; max-width: 560px; width: 100%; }
.sub-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 24px;
  border: 1px solid var(--input-border);
  border-radius: 999px;
  background: var(--input-bg);
  color: var(--ink);
  font-size: 15px;
}
.sub-form input:focus { outline: none; border-color: var(--ink); }
.sub-form input::placeholder { color: var(--input-placeholder); }
.sub-form button, .btn {
  height: 52px;
  padding: 0 30px;
  background: var(--btn);
  color: var(--btn-ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}
.sub-form button:hover, .btn:hover { background: var(--btn-hover); }
.form-ok { color: var(--ok); font-size: 14px; margin: 12px 0 0; }
.form-bad { color: var(--bad); font-size: 14px; margin: 12px 0 0; }
.testimonials { padding: 8px 0 32px; }
.testimonials-eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--mute);
  margin: 0 0 16px;
}
.testimonials-eyebrow em { font-style: italic; }
.testimonial-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.testimonial { font-size: 16px; line-height: 1.55; color: var(--soft-ink); }
.testimonial-quote { display: block; color: var(--ink); }
.testimonial-attrib { display: block; margin-top: 4px; font-size: 14px; color: var(--mute); }
.testimonial-attrib em { font-style: italic; font-family: var(--font-display); }
.section-heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 56px 0 8px;
}
.home-magnet { margin: 96px 0; }
.home-magnet .section-heading { margin-top: 0; }
.home-magnet-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 48px;
  align-items: center;
}
.home-magnet-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.home-magnet-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--soft-ink);
  margin: 0 0 28px;
}
.home-magnet-cta {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-ink);
}
.home-magnet-cta:hover { background: var(--btn-hover); }
.home-magnet-cover {
  display: block;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 17 / 22;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-card);
  box-shadow: 0 10px 28px rgba(20, 16, 10, 0.12);
}
.home-magnet-cover:hover { transform: translateY(-3px); }
.home-magnet-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-fallback {
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding: 16px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.25;
}
.essay-list { list-style: none; margin: 0; padding: 0; }
.essay-list li { border-bottom: 1px solid var(--rule); padding: 40px 0; }
.essay-list li:last-child { border-bottom: 0; }
.essay-list a { display: block; color: var(--ink); }
.essay-list a:hover { text-decoration: none; transform: translate(6px, -2px); transition: transform 0.22s ease-out; }
.essay-tags { display: flex; gap: 22px; font-size: 13.5px; color: var(--mute); margin-bottom: 14px; }
.essay-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.018em;
  margin: 0 0 10px;
}
.essay-new-badge {
  display: inline-block;
  margin-left: 12px;
  padding: 4px 10px 5px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--btn-ink);
  background: var(--btn);
  border-radius: 6px;
  vertical-align: middle;
}
.essay-desc { font-size: 15.5px; line-height: 1.5; color: var(--soft-ink); margin: 0 0 18px; max-width: 60ch; }
.essay-meta { display: flex; gap: 22px; font-size: 13.5px; color: var(--mute); }
.see-all { margin: 8px 0 96px; font-size: 14.5px; }
.see-all a { color: var(--ink); }
.home-about { padding: 0 0 24px; }
.home-about-card { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: center; margin-top: 16px; }
.home-about-photo {
  width: 200px;
  height: 200px;
  background-color: var(--paper-portrait);
  background-size: cover;
  background-position: center 20%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-about-text { font-size: 16px; line-height: 1.6; color: var(--soft-ink); margin: 0 0 14px; max-width: 60ch; }
.home-about-more { font-size: 14px; color: var(--ink); }
.home-about-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.monogram { font-family: var(--font-display); color: var(--mute); font-size: 13px; }
.home-about-photo .monogram { font-size: 42px; }
.home-cta { margin: 56px 0 0; padding: 0 0 8px; border-top: 1px solid var(--rule); }
.home-cta-inner { padding: 56px 0 16px; }
.home-cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin: 0 0 16px;
}
.home-cta-title em { font-style: italic; font-weight: 400; }
.home-cta-lede { font-size: 16px; color: var(--soft-ink); margin: 0 0 28px; }
.home-cta-inner .sub-form { max-width: 460px; }
.home-cta-fine { font-size: 13px; color: var(--mute); margin: 18px 0 0; }
.archive-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 72px 0 8px;
}
.prose { padding: 80px 0 32px; max-width: 64ch; }
.prose h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
}
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin: 40px 0 12px; }
.prose h3 { font-family: var(--font-display); font-weight: 400; font-size: 20px; margin: 28px 0 10px; }
.prose p, .prose li { font-size: 17px; line-height: 1.65; color: var(--soft-ink); }
.prose p { margin: 0 0 18px; }
.prose ul { padding-left: 24px; margin: 12px 0 20px; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose .kicker { color: var(--mute); font-size: 15px; margin: 0 0 18px; }
.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 22px calc(48px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
  color: var(--mute);
}
.foot-top, .foot-links, .foot-social { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.foot-top { flex-direction: column; align-items: center; gap: 12px; }
.foot a { color: var(--mute); }
.foot a:hover { color: var(--ink); }
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 18, 14, 0.36);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
}
.search-overlay[hidden] { display: none; }
.search-modal {
  width: 100%;
  max-width: 560px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.search-input-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.search-input-row input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
}
.search-input-row input::placeholder { color: var(--input-placeholder); }
.search-close {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 11px;
  color: var(--mute);
  padding: 3px 8px;
  cursor: pointer;
}
.search-results { list-style: none; margin: 0; padding: 6px 0; max-height: 60vh; overflow-y: auto; }
.search-result a { display: block; padding: 10px 16px; border-left: 2px solid transparent; }
.search-result a:hover { background: var(--paper-card); border-left-color: var(--ink); }
.search-result-title { font-family: var(--font-display); font-size: 16px; line-height: 1.3; }
.search-result-desc { font-size: 13.5px; color: var(--mute); margin-top: 3px; }
.search-empty { padding: 16px; color: var(--mute); font-size: 14px; text-align: center; }
.guide-list { list-style: none; margin: 24px 0 0; padding: 0; }
.guide-list li { border-bottom: 1px solid var(--rule); padding: 22px 0; }
.guide-list a { font-family: var(--font-display); font-size: 28px; }
.admin-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}
.admin-side {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 16px 24px;
  border-right: 1px solid var(--rule);
  background: var(--bg);
}
.admin-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.015em;
  padding: 0 12px;
}
.admin-links { display: flex; flex-direction: column; gap: 2px; font-family: var(--font-display); font-size: 17px; }
.admin-links a, .admin-signout button {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
}
.admin-links a:hover { background: var(--paper-card); }
.admin-links a[aria-current="page"] { background: var(--paper-card); box-shadow: inset 2px 0 0 var(--ink); }
.admin-signout { margin-top: auto; }
.admin-signout button {
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  color: var(--mute);
}
.admin-signout button:hover { color: var(--bad); }
.admin-main { min-width: 0; width: 100%; max-width: var(--max); padding: 40px 56px 64px; }
.admin-main .archive-title { margin-top: 0; }
.admin-lead { color: var(--soft-ink); margin-top: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.field span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.field input, .field textarea, .field select {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field textarea.tall { min-height: 280px; }
.check { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; }
.row-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.btn-quiet {
  background: transparent;
  color: var(--bad);
  border: 0;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table td { border-bottom: 1px solid var(--rule); padding: 14px 12px 14px 0; vertical-align: baseline; }
.admin-table a { text-decoration: underline; text-underline-offset: 3px; }
.key-once {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  padding: 14px;
  word-break: break-all;
  font-size: 14px;
}
.login-wrap { padding: 120px 0; max-width: 36ch; }
.login-wrap h1 { font-family: var(--font-display); font-weight: 400; font-size: 42px; line-height: 1.1; margin: 0 0 16px; }
.login-wrap p { color: var(--soft-ink); }
.login-wrap .btn { display: inline-flex; align-items: center; text-decoration: none; }

.photo-editor { margin: 8px 0 28px; }
.photo-preview { display: flex; gap: 16px; align-items: center; margin: 12px 0 16px; }
.photo-preview-round, .photo-preview-card {
  object-fit: cover;
  object-position: center 20%;
  background: var(--paper-portrait);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.photo-preview-round { width: 72px; height: 72px; border-radius: 50%; }
.photo-preview-card { width: 120px; height: 150px; border-radius: 4px; }
.file-pick input { font-size: 16px; padding: 12px 0; }
.about-portrait {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 0 0 24px;
}
.save-bar { margin-top: 8px; }

.schedule { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 16px; }
.schedule .field { flex: 1 1 140px; min-width: 0; margin: 0; }
.schedule .field input, .schedule .field select { height: 48px; padding-top: 0; padding-bottom: 0; }
.schedule .btn { height: 48px; }
.queue-hint, .queue-empty { color: var(--mute); font-size: 14px; }
.queue-hint { margin: 0 0 8px; }
.queue { list-style: none; margin: 0 0 32px; padding: 0; }
.queue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title actions" "when actions";
  align-items: center;
  gap: 2px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.queue-title { grid-area: title; font-family: var(--font-display); font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.queue-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.queue-when { grid-area: when; color: var(--mute); font-size: 14px; }
.queue-actions { grid-area: actions; display: flex; gap: 6px; justify-content: flex-end; }
.queue-actions form { margin: 0; }
.queue-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.queue-btn:hover { border-color: var(--ink); }
.queue-delete { color: var(--bad); }
.queue-delete:hover { border-color: var(--bad); }

.writer-page::before { display: none; }
.writer-page { background: var(--bg); color: var(--ink); }
.writer {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: calc(68ch + 48px);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 24px 0;
  font-family: var(--font-body);
}
.writer-when { margin: 0 0 24px; font-size: 13px; color: var(--mute); }
.writer-error { margin: -12px 0 20px; font-size: 14px; color: var(--bad); }
.writer-sheet {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  box-shadow: none;
  resize: none;
  background: transparent;
  color: var(--ink);
  caret-color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.8;
}
.writer-sheet::placeholder { color: var(--mute); opacity: 0.7; }
.writer-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  padding: 12px 0 calc(16px + env(safe-area-inset-bottom));
}
.writer-hint { margin: 0; font-size: 12.5px; color: var(--mute); }
.writer-back, .writer-save { display: none; }

@media (max-width: 720px) {
  .queue-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "when" "actions"; }
  .queue-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 6px; }
  .schedule .field { flex-basis: 100%; }
  .schedule .btn { width: 100%; }
}
@media (max-width: 720px), (pointer: coarse) {
  .writer { padding: calc(16px + env(safe-area-inset-top)) 16px 0; }
  .writer-sheet { font-size: 18px; line-height: 1.75; }
  .writer-back, .writer-save {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 15px;
  }
  .writer-back { margin-left: auto; color: var(--mute); }
  .writer-save { color: var(--ink); }
}

@media (max-width: 720px) {
  .main, .nav-inner { padding-left: 22px; padding-right: 22px; }
  .nav-inner { flex-wrap: wrap; row-gap: 10px; }
  .brand { font-size: 22px; gap: 8px; }
  .brand-avatar { width: 32px; height: 32px; }
  .brand-full { display: none; }
  .brand-short { display: inline; }
  .hero { padding: 64px 0 40px; }
  .nav .links { gap: 12px; font-size: 15px; margin-left: auto; }
  .home-magnet-inner, .home-about-card { grid-template-columns: 1fr; }
  .home-about-photo { width: 100%; height: 240px; }
  .home-magnet { margin: 56px 0; }
  .sub-form { flex-direction: column; }
  .sub-form button { width: 100%; }
  .home-cta-inner { padding: 32px 0 8px; }
  .prose { padding: 48px 0 24px; }
  .admin-shell { display: block; overflow-x: clip; }
  .admin-side {
    position: sticky;
    top: 0;
    z-index: 5;
    height: auto;
    overflow: visible;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 0 8px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .admin-brand { display: flex; align-items: center; min-height: 48px; padding: 0 8px; margin-right: auto; font-size: 22px; }
  .admin-signout { order: 1; margin-top: 0; }
  .admin-signout button { width: auto; min-height: 44px; padding: 0 8px; }
  .admin-links {
    order: 2;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    border-top: 1px solid var(--rule);
    font-size: 16px;
  }
  .admin-links a { flex: 0 0 auto; min-height: 44px; padding: 0 12px; }
  .admin-links a[aria-current="page"] { background: transparent; box-shadow: inset 0 -2px 0 var(--ink); }
  .admin-main { max-width: none; padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); }
  .admin-main .archive-title { font-size: 32px; }
  .admin-lead, .admin-main code { overflow-wrap: anywhere; }
  .photo-preview { flex-wrap: wrap; }
  .file-pick input { max-width: 100%; }
  .btn-quiet { display: inline-flex; align-items: center; min-height: 44px; }
  .field input, .field textarea, .field select { font-size: 16px; padding: 14px 12px; }
  .save-bar {
    position: sticky;
    bottom: 0;
    background: var(--bg);
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--rule);
  }
  .save-bar .btn { width: 100%; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { border-bottom: 1px solid var(--rule); padding: 12px 0; }
  .admin-table td { border: 0; padding: 4px 0; }
  .login-wrap { padding: 48px 0; }
  .login-wrap .btn { width: 100%; justify-content: center; }
}
