:root {
  --bg: #f7f3ea;
  --panel: #fffdf8;
  --paper: #fffaf3;
  --ink: #171412;
  --muted: #706960;
  --soft: #d8cfbf;
  --line: #ded4c4;
  --accent: #c9182b;
  --accent-soft: #ffe5e4;
  --accent-dark: #8f0f1e;
  --shadow: 0 24px 80px rgba(45, 32, 21, 0.10);
  --radius: 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: 0.012em;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 243, 234, 0.90);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(197, 24, 43, 0.16);
}

.brand, .main-nav { display: flex; align-items: center; gap: 14px; }
.brand {
  grid-column: 2;
  justify-self: center;
  min-width: 0;
}
.brand-logo {
  display: block;
  width: auto;
  height: clamp(54px, 7vw, 86px);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
}
.main-nav { grid-column: 3; justify-self: end; color: var(--muted); font-size: 0.96rem; flex-wrap: wrap; justify-content: flex-end; }

body[data-page="admin"] .site-header,
body[data-page="accounts"] .site-header,
body[data-page="editor"] .site-header,
body[data-page="caricature-editor"] .site-header {
  grid-template-columns: auto 1fr;
}

body[data-page="admin"] .brand,
body[data-page="accounts"] .brand,
body[data-page="editor"] .brand,
body[data-page="caricature-editor"] .brand {
  grid-column: 1;
  justify-self: start;
}

body[data-page="admin"] .main-nav,
body[data-page="accounts"] .main-nav,
body[data-page="editor"] .main-nav,
body[data-page="caricature-editor"] .main-nav {
  grid-column: 2;
  justify-self: end;
}

body[data-page="admin"] .brand-logo,
body[data-page="accounts"] .brand-logo,
body[data-page="editor"] .brand-logo,
body[data-page="caricature-editor"] .brand-logo {
  height: clamp(42px, 5vw, 64px);
}

.search-button, .ghost-button, .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: var(--ink);
  line-height: 1.1;
}
.search-button:hover, .ghost-button:hover { border-color: var(--accent); color: var(--accent-dark); }
.primary-button {
  width: fit-content;
  background: var(--accent);
  color: #fffafa;
  border-color: var(--accent);
}
.primary-button:hover { transform: translateY(-1px); }
.danger-button {
  background: #8b1e1e !important;
  border-color: #8b1e1e !important;
  color: var(--panel) !important;
}

main { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }

.welcome {
  display: flex;
  align-items: end;
  padding: clamp(38px, 6vw, 72px) 0 clamp(18px, 3vw, 30px);
}
.welcome-copy {
  width: 100%;
}
.issue-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.88rem, 1.3vw, 1.05rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 253, 248, 0.72);
}
.welcome h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  line-height: .88;
  letter-spacing: -0.045em;
}
.welcome p:not(.eyebrow) {
  max-width: 430px;
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 12px;
}
.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 820;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 430px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.featured-visual {
  min-height: 100%;
  padding: clamp(26px, 5vw, 54px);
  background:
    radial-gradient(circle at 30% 22%, rgba(201,24,43,.96), transparent 27%),
    linear-gradient(135deg, #1f0707, #5d151a);
  color: var(--panel);
}
.featured-visual span,
.article-number {
  width: fit-content;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  padding: 8px 12px;
}
.featured-visual strong { font-size: clamp(3rem, 9vw, 9rem); line-height: .82; letter-spacing: -.08em; }
.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  padding: clamp(26px, 4vw, 48px);
}
.featured-content > div:last-child {
  display: grid;
  gap: 24px;
  align-items: start;
}
.featured-copy {
  display: grid;
  gap: 18px;
}
.featured-excerpt {
  max-width: 620px;
  margin-top: clamp(12px, 2vw, 22px);
}
.featured-content h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.9rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.meta { color: var(--muted); font-size: 0.9rem; display: flex; gap: 9px; flex-wrap: wrap; }
.excerpt { color: var(--muted); margin: 0; line-height: 1.45; }

.section-heading { padding: 66px 0 30px; }
.highlights-heading { padding-bottom: 30px; }
.section-heading h2 { margin: 0; font-size: clamp(2.3rem, 5vw, 4.8rem); letter-spacing: -0.035em; line-height: 0.95; }
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.caricature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.article-card,
.caricature-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 310px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.article-card:hover, .caricature-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--shadow); }
.article-card h3, .caricature-card h3 { margin: 18px 0 12px; font-size: clamp(1.45rem, 2.3vw, 2.1rem); line-height: 1; letter-spacing: -0.025em; }
.article-card footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 24px; color: var(--muted); }
.read-link { font-weight: 500; color: var(--muted); }
.empty-state {
  grid-column: 1 / -1;
  padding: 36px;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 24px;
  color: var(--muted);
}

.article-page {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 106px) 0 70px;
}
.article-page .back-link {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--muted);
}
.article-page h1 {
  margin: 18px 0 20px;
  font-size: clamp(3.4rem, 8vw, 8rem);
  line-height: .86;
  letter-spacing: -0.045em;
}
.article-lead {
  margin: 0 0 42px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  line-height: 1.28;
}
.article-body {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: #242424;
}
.article-body p { margin: 0 0 1.25em; }
.article-divider { border: none; border-top: 1px solid var(--line); margin: 42px 0; }

.modal {
  width: min(760px, calc(100% - 28px));
  border: 1px solid var(--ink);
  border-radius: 28px;
  padding: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(20, 20, 20, .34); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.modal[open],
.search-dialog[open],
.admin-totp-dialog[open],
.action-dialog[open] {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 32px);
  max-height: calc(100vh - 48px);
  z-index: 1000;
}
body.modal-open { overflow: hidden; }
.close-button {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 1.55rem;
}
.auth-card, .admin-panel { padding: clamp(30px, 5vw, 54px); }
.auth-card h2, .admin-panel h2 { margin: 0 0 20px; font-size: clamp(2rem, 5vw, 3.4rem); line-height: .95; letter-spacing: -.06em; }
.auth-card, .post-form { display: grid; gap: 16px; }
.post-form label, .auth-card label { display: grid; gap: 8px; color: var(--muted); font-size: .9rem; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: var(--panel);
  color: var(--ink);
  outline: none;
}
textarea { resize: none; }
input:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(216, 255, 100, .5); }
.admin-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.form-message { min-height: 1.2em; margin: 0; color: var(--muted); }
.form-message.success { color: #3f6b00; }
.form-message.error { color: #a02828; }
.form-message.session-alert {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(138, 99, 22, .32);
  border-radius: 18px;
  background: #fff8e7;
  color: var(--muted);
}
.login-alert-title {
  color: var(--ink);
  font-weight: 850;
}
.muted { color: var(--muted); }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  width: min(1180px, calc(100% - 36px));
  margin: 72px auto 0;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer p { margin: 0 0 6px; }
.footer-login {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-login:hover { color: var(--accent-dark); }
.text-button {
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-button:hover { color: var(--ink); }

@media (max-width: 820px) {
  .featured-grid { grid-template-columns: 1fr; }
  .welcome { min-height: auto; }
  .article-grid { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .site-header { grid-template-columns: 1fr; justify-items: center; }
  .brand, .main-nav { grid-column: 1; justify-self: center; }
  .featured-visual { min-height: 260px; }
}

@media (max-width: 520px) {
  main, .site-footer { width: min(100% - 24px, 1180px); }
  .site-header { padding: 14px 12px; }
  .main-nav { gap: 10px; }
  .welcome h1, .article-page h1 { font-size: 3.25rem; }
}

.highlights-heading {
  padding-top: clamp(38px, 6vw, 72px);
  padding-bottom: 30px;
}

.meta span:nth-child(2),
.meta span:nth-child(4) {
  color: var(--soft);
}

.nav-link {
  color: var(--muted);
  font-weight: 760;
}
.nav-link:hover { color: var(--ink); }

.auth-page {
  min-height: 56vh;
  display: grid;
  place-items: center;
  padding: clamp(44px, 8vw, 96px) 0;
}
.page-card {
  width: min(680px, 100%);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.auth-card h1 {
  margin: 0 0 24px;
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  line-height: .88;
  letter-spacing: -0.055em;
}
.stacked-form { display: grid; gap: 16px; }

.admin-page {
  padding-top: clamp(36px, 6vw, 72px);
}
.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}
.admin-hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 8rem);
  line-height: .86;
  letter-spacing: -0.055em;
}
.admin-hero p:not(.eyebrow) {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 1.05rem;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.admin-stats article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}
.admin-stats strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.admin-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .88rem;
}
.admin-search-row {
  display: grid;
  gap: 8px;
  margin: 12px 0 14px;
  color: var(--muted);
  font-size: .9rem;
}
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 18px;
  align-items: start;
}
.editor-panel,
.article-manager {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.editor-panel {
  display: grid;
  gap: 16px;
}
.editor-heading,
.manager-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 8px;
}
.editor-heading h2,
.manager-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: .95;
  letter-spacing: -0.045em;
}
.editor-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: .9rem;
}
select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 46px 14px 16px;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 24px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 19px) 50% / 7px 7px no-repeat,
    var(--panel);
  color: var(--ink);
  outline: none;
  font: inherit;
  line-height: 1.25;
}
select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(216, 255, 100, .5); }
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.check-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.check-row input {
  width: auto;
  accent-color: var(--ink);
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-article-list {
  display: grid;
  gap: 12px;
}
.manager-item {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(247, 245, 239, .45);
}
.manager-item h3 {
  margin: 12px 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.manager-item p {
  margin: 0;
  color: var(--muted);
}
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .75rem;
  color: var(--muted);
  background: var(--panel);
}
.status-pill.published { color: #3f6b00; border-color: rgba(63, 107, 0, .32); }
.status-pill.unlisted { color: #5f3f8b; border-color: rgba(95, 63, 139, .32); background: #f6f1ff; }
.status-pill.draft { color: #8a6316; border-color: rgba(138, 99, 22, .32); }
.status-pill.review { color: #1f5f8b; border-color: rgba(31, 95, 139, .34); background: #eef8ff; }
.status-pill.comments { color: #4e4a44; border-color: rgba(78, 74, 68, .24); }
.status-pill.danger { color: #8b1e1e; border-color: rgba(139, 30, 30, .34); background: #fff1f1; }
.status-pill.highlight { color: #fffafa; background: var(--accent); border-color: var(--accent-dark); }
.manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.manager-actions button,
.manager-actions a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: transparent;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.1;
}
.manager-actions button:hover,
.manager-actions a:hover { border-color: var(--ink); }
.manager-actions button:disabled {
  opacity: .38;
  cursor: not-allowed;
  border-color: var(--line);
  color: var(--muted);
}

@media (max-width: 900px) {
  .admin-hero,
  .admin-layout,
  .admin-stats { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .settings-grid { grid-template-columns: 1fr; }
  .form-actions { align-items: flex-start; flex-direction: column; }
}

.featured-visual,
.article-card-visual,
.caricature-visual,
.article-hero-image,
.image-preview {
  background:
    radial-gradient(circle at 30% 22%, rgba(201,24,43,.96), transparent 27%),
    linear-gradient(135deg, #1f0707, #5d151a);
  background-size: cover;
  background-position: center;
}

.featured-visual.has-image,
.article-card-visual.has-image,
.caricature-visual.has-image,
.article-hero-image.has-image,
.image-preview.has-image {
  background-size: cover;
  background-position: center;
}

.article-card {
  padding: 0;
  overflow: hidden;
  min-height: 520px;
}

.article-card-visual {
  min-height: 185px;
  border-bottom: 1px solid var(--line);
}
.caricature-visual {
  min-height: clamp(300px, 36vw, 520px);
  border-bottom: 1px solid var(--line);
}
.caricature-card {
  padding: 0;
  overflow: hidden;
}
.caricature-card { color: inherit; }
.caricature-card > div:not(.caricature-visual) {
  padding: 20px 22px 24px;
}
.caricature-card p { margin: 0; color: var(--muted); }
.caricature-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}
.caricature-form label:not(.image-file-button) {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: .9rem;
}
.caricature-manager {
  margin-bottom: 18px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--panel);
}
.caricature-actions-row { margin: 30px 0 12px; }
.caricature-list-item {
  grid-template-columns: 132px minmax(0, 1fr) auto;
}
.caricature-thumb {
  width: 132px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 22%, rgba(201,24,43,.96), transparent 27%),
    linear-gradient(135deg, #1f0707, #5d151a);
  background-size: cover;
  background-position: center;
}
.caricature-list-item small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.caricature-editor-form .image-preview {
  min-height: clamp(260px, 42vw, 460px);
}
.caricature-page .article-lead { margin-top: 34px; }
.caricature-detail-image { min-height: clamp(320px, 55vw, 680px); }
.form-action-field {
  display: grid;
  gap: 8px;
  align-content: end;
  color: var(--muted);
  font-size: .9rem;
}
.account-picker-list {
  display: grid;
  gap: 12px;
  max-height: min(480px, 55vh);
  overflow: auto;
}
.account-picker-list button {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.account-picker-list button:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.account-picker-list span { color: var(--muted); }

.article-card-body {
  padding: 22px 22px 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.article-card-body .meta {
  min-height: 4.2em;
  align-content: flex-start;
}
.article-card-body h3 {
  min-height: 2em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.article-card-body .excerpt {
  min-height: 2.9em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-card footer {
  padding: 0 22px 22px;
  margin-top: auto;
}

.article-hero-image {
  width: 100%;
  min-height: clamp(260px, 42vw, 460px);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  margin: 34px 0 0;
  overflow: hidden;
}

.image-upload-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
}

.one-time-panel,
.totp-panel {
  display: grid;
  gap: 16px;
  margin: 0 0 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, .72);
}
.one-time-panel h2,
.totp-panel h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.one-time-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
}
.one-time-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: .9rem;
}
.one-time-form .form-message {
  grid-column: 1 / -1;
}
.totp-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.totp-status .status-pill {
  width: fit-content;
  flex: 0 0 auto;
}
.totp-status p,
.totp-setup p,
.totp-recovery p {
  margin: 0;
  color: var(--muted);
}
.totp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.totp-setup {
  display: grid;
  gap: 12px;
}
.totp-qr-box {
  width: fit-content;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.totp-qr-box img {
  display: block;
  width: 220px;
  height: 220px;
}
.totp-recovery {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.totp-recovery code {
  white-space: pre-wrap;
  color: var(--ink);
}
.totp-login-fields {
  display: grid;
  gap: 12px;
}
.totp-panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.internal-comments {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.comments-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: .86rem;
}
.comments-heading strong { color: var(--ink); }
.comment-list {
  display: grid;
  gap: 8px;
}
.comment-list article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.comment-list article button {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .8rem;
}
.comment-list article button:hover { border-color: var(--ink); color: var(--ink); }
.comment-list article div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--soft);
  font-size: .78rem;
}
.comment-list p,
.comment-empty {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}
.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.comment-form textarea {
  min-height: 46px;
}
.comment-form button {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--panel);
  font: inherit;
}

.image-upload-block span {
  display: block;
  color: var(--muted);
  font-size: .9rem;
}

.image-upload-block small {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  line-height: 1.35;
}

.image-preview {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.image-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.image-file-button {
  position: relative;
  overflow: hidden;
}

.image-file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.rich-editor-field {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, .78);
}
.field-label {
  color: var(--muted);
  font-size: .9rem;
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f0eee6;
}
.editor-toolbar button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
.editor-toolbar.disabled {
  opacity: .55;
  pointer-events: none;
}
.editor-toolbar button:hover {
  border-color: var(--ink);
}
.toolbar-file-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--panel);
  color: var(--ink);
  font-size: .85rem;
  cursor: pointer;
}
.toolbar-file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.color-swatch {
  width: 34px;
  height: 34px;
  padding: 0 !important;
  border-radius: 50% !important;
  background: var(--swatch) !important;
}
.highlight-swatch {
  background: linear-gradient(90deg, var(--swatch), var(--panel)) !important;
}
.toolbar-color-input {
  display: inline-flex !important;
  align-items: center;
  gap: 8px !important;
  width: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: var(--panel);
  color: var(--ink) !important;
  font-size: .82rem !important;
}
.toolbar-color-input input {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
}
.toolbar-separator {
  width: 1px;
  min-height: 32px;
  background: var(--line);
  margin: 0 2px;
}
.rich-editor {
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 20px;
  background: var(--panel);
  color: var(--ink);
  outline: none;
  font-size: 1.05rem;
  line-height: 1.6;
  overflow: auto;
}
.rich-editor:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(216, 255, 100, .5);
}
.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: rgba(112, 107, 99, .65);
}
.rich-editor p,
.rich-editor ul,
.rich-editor ol,
.rich-editor blockquote,
.article-body ul,
.article-body ol,
.article-body blockquote {
  margin: 0 0 1.15em;
}
.rich-editor h2,
.article-body h2 {
  margin: 1.35em 0 .55em;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.rich-editor blockquote,
.article-body blockquote {
  padding-left: 18px;
  border-left: 3px solid var(--ink);
  color: var(--muted);
}
.rich-editor mark,
.article-body mark,
.rich-editor span[style],
.article-body span[style] {
  border-radius: 4px;
  padding: 0 .12em;
}
.article-body a {
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.article-body img,
.rich-editor img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.1em auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.admin-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}
.admin-actions-row.read-only-actions .primary-button {
  display: none;
}
.admin-actions-row p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}
.admin-actions-row.caricature-actions-row {
  margin-top: 36px;
  margin-bottom: 18px;
}
.admin-layout-single {
  grid-template-columns: 1fr;
}
.editor-page {
  max-width: 1120px;
}
.admin-back-link {
  display: flex;
  width: fit-content;
  margin-bottom: clamp(42px, 6vw, 76px);
  color: var(--muted);
  font-weight: 760;
}
.admin-back-link:hover { color: var(--ink); }
.editor-page .admin-hero {
  margin-top: 0;
}
.caricature-editor-page {
  padding-top: clamp(48px, 7vw, 86px);
}
.caricature-editor-hero {
  margin-top: 10px;
}
.editor-hero {
  align-items: start;
}
.editor-panel-wide {
  margin-bottom: 38px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(20, 20, 20, .06);
}
.editor-panel-wide > label:first-of-type input {
  padding: 18px 20px;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 780;
  letter-spacing: 0;
}
.check-row.disabled {
  opacity: .55;
  background: rgba(247, 245, 239, .7);
}
.editor-panel input:disabled,
.editor-panel select:disabled {
  color: var(--muted);
  background: #f0eee6;
  cursor: not-allowed;
}
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.editor-word-count {
  color: var(--soft);
  font-size: .85rem;
}
.hidden {
  display: none !important;
}
.article-body hr,
.rich-editor hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.8em 0;
}
.article-body span[style*="color"] {
  padding: 0;
}
@media (max-width: 620px) {
  .admin-actions-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
}
.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--panel);
  color: var(--muted);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}
.filter-chip:hover,
.filter-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffdf8;
}
.filter-chip.active {
  font-weight: 750;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, .16);
}
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: .9rem;
}
.admin-pagination div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-pagination button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.admin-pagination button:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.admin-pagination strong {
  color: var(--ink);
  font-size: .86rem;
}
.admin-id-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-size: .76rem;
}
.admin-id-row code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .76rem;
}
.editor-id-row {
  width: fit-content;
  margin: 14px 0 0;
}
.history-panel {
  display: grid;
  gap: 14px;
  margin-top: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(247, 245, 239, .48);
}
.history-panel h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.035em;
}

.account-management-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 38px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, .72);
}
.account-list {
  display: grid;
  gap: 12px;
}
.account-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.account-main { min-width: 0; }
.account-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}
.account-card .account-login {
  margin-top: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.account-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .88rem;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.account-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
}
.account-actions button:disabled {
  opacity: .42;
  cursor: not-allowed;
}
.account-actions .danger-action {
  border-color: rgba(139, 30, 30, .34);
  color: #8b1e1e;
}
.account-actions .danger-action:hover {
  border-color: #8b1e1e;
}
.account-details {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.account-security-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: .88rem;
}
.account-submenu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.account-submenu button,
.account-note-form button,
.account-article-list a,
.account-note-list button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  text-decoration: none;
}
.account-panel {
  display: grid;
  gap: 12px;
}
.account-dialog-content {
  display: grid;
  gap: 16px;
}
.account-note-form {
  display: grid;
  gap: 10px;
}
.account-note-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}
.account-note-form input,
.account-note-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf0;
  color: var(--ink);
  padding: 14px 16px;
  outline: none;
  resize: none;
}
.account-note-form input { border-radius: 999px; }
.account-note-form input:focus,
.account-note-form textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(216, 255, 100, .35);
}
.account-note-list,
.account-article-list {
  display: grid;
  gap: 8px;
}
.account-note-list article,
.account-article-list article {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.account-note-list article div,
.account-article-list article div {
  display: grid;
  gap: 4px;
}
.account-note-list article span,
.account-article-list article span {
  color: var(--muted);
  font-size: .9rem;
}
.account-note-list article p {
  margin: 0;
  color: var(--ink);
}
.admin-totp-dialog {
  width: min(620px, calc(100% - 32px));
  border: 0;
  border-radius: 30px;
  padding: 0;
  background: transparent;
  box-shadow: 0 28px 110px rgba(20, 20, 20, .28);
}
.admin-totp-dialog::backdrop {
  background: rgba(20, 20, 20, .38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.action-dialog {
  width: min(640px, calc(100% - 32px));
  border: 0;
  border-radius: 30px;
  padding: 0;
  background: transparent;
  box-shadow: 0 28px 110px rgba(20, 20, 20, .28);
}
.action-dialog::backdrop {
  background: rgba(20, 20, 20, .38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.admin-totp-card {
  display: grid;
  gap: 16px;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--ink);
  border-radius: 30px;
  background: var(--panel);
}
.action-dialog-card {
  display: grid;
  gap: 18px;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--ink);
  border-radius: 30px;
  background: var(--panel);
}
.account-settings-dialog {
  width: min(880px, calc(100% - 32px));
}
.account-settings-card {
  position: relative;
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
}
.account-settings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.account-settings-card input:disabled {
  color: var(--muted);
  background: #f3efe6;
  cursor: not-allowed;
}
.account-settings-section {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fffdf8;
}
.account-settings-section.is-disabled {
  opacity: .62;
}
.account-settings-section button:disabled {
  cursor: not-allowed;
  opacity: .5;
}
.account-settings-section h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.account-settings-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.admin-totp-card h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: .9;
  letter-spacing: -0.055em;
}
.action-dialog-card h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: .92;
  letter-spacing: -0.055em;
}
.link-dialog-card label,
.input-dialog-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}
.link-dialog-card input,
.input-dialog-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--ink);
  padding: 16px 20px;
  font-size: 1.08rem;
  outline: none;
}
.link-dialog-card input:focus,
.input-dialog-card input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(216, 255, 100, .35);
}
.admin-totp-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}
.admin-totp-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--ink);
  padding: 16px 20px;
  font-size: 1.1rem;
  outline: none;
}
.admin-totp-card input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(216, 255, 100, .35);
}
.modal-copy {
  margin: 0;
  color: var(--muted);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.history-list {
  display: grid;
  gap: 8px;
}
.history-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.history-list strong {
  color: var(--ink);
  font-size: .9rem;
}
.history-list span,
.history-list p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}
@media (max-width: 620px) {
  .admin-pagination,
  .history-list article {
    align-items: flex-start;
    flex-direction: column;
  }
  .one-time-form,
  .comment-form,
  .caricature-list-item,
  .account-card {
    grid-template-columns: 1fr;
  }
  .caricature-thumb { width: 100%; }
  .account-actions { justify-content: flex-start; }
}

.search-dialog {
  width: min(980px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 48px));
  border: 1px solid var(--ink);
  border-radius: 30px;
  padding: 0;
  background: transparent;
  box-shadow: 0 28px 110px rgba(20, 20, 20, 0.28);
  overflow: visible;
}

.search-dialog::backdrop {
  background: rgba(20, 20, 20, 0.38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.search-modal-card {
  position: relative;
  display: grid;
  gap: 20px;
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 30px;
  background: var(--panel);
}

.search-modal-card h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.7rem, 7vw, 6.2rem);
  line-height: .88;
  letter-spacing: -0.055em;
}

.search-modal-field {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-weight: 720;
}

.search-modal-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--ink);
  padding: 18px 22px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  outline: none;
}

.search-modal-field input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(216, 255, 100, .35);
}

.search-result-meta {
  color: var(--muted);
  font-weight: 720;
}

.search-results {
  display: grid;
  gap: 12px;
  max-height: min(430px, 48vh);
  overflow: auto;
  transition: max-height .18s ease;
}

.search-result-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.72);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  animation: search-result-in .16s ease both;
}

.search-result-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.search-result-card h3 {
  margin: 10px 0 8px;
  font-size: clamp(1.4rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.search-result-card p {
  margin: 0;
  color: var(--muted);
}

.search-result-card > span {
  align-self: center;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 780;
}

.search-empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  color: var(--muted);
  background: rgba(255, 253, 248, .72);
}

@keyframes search-result-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}


.editor-review-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.editor-review-control > div {
  display: grid;
  gap: 6px;
}

.editor-review-control strong {
  font-size: 1.05rem;
  color: var(--ink);
}

.editor-review-control small {
  color: var(--muted);
  font-weight: 680;
}

.editor-review-control button {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .editor-review-control {
    align-items: stretch;
    flex-direction: column;
  }
}

.notice-list {
  display: grid;
  gap: 12px;
  max-height: min(460px, 52vh);
  overflow: auto;
}

.notice-item {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.notice-item p { margin: 0; color: var(--muted); }
.notice-item small { color: var(--muted); font-weight: 720; }
.security-alert-row { margin-top: 30px; }
.legal-page { padding-top: clamp(34px, 6vw, 70px); }
.legal-card { min-height: 38vh; }
.legal-card h1 { margin-bottom: 28px; }
.legal-card .primary-button { width: fit-content; }

@media (max-width: 720px) {
  .search-result-card {
    display: grid;
  }

  .search-result-card > span {
    justify-self: start;
  }
}

.caricature-card .caricature-caption { display: none; }
.caricature-card .caricature-card-title { margin-bottom: 0; }
.caricature-card .read-link { margin-top: 14px; display: inline-flex; }
.manager-item.is-highlight { order: -1; border-color: var(--accent); box-shadow: 0 20px 70px rgba(201, 24, 43, 0.10); }

#postScheduleLabel small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.caricature-card .meta { margin-bottom: 12px; }

.editor-schedule-block {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 18px;
  align-items: end;
  margin: 24px 0 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}
.editor-schedule-block h3, .editor-schedule-block p { margin: 0; }
.editor-schedule-block p:not(.eyebrow) { color: var(--muted); }
.editor-schedule-block label { display: grid; gap: 8px; color: var(--muted); }
.permissions-list { display: grid; gap: 12px; }
.permissions-list .check-row { margin: 0; }
.permissions-list small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
@media (max-width: 760px) { .editor-schedule-block { grid-template-columns: 1fr; } }
