/* ==========================================================================
   Gravy Studio — admin interface
   ========================================================================== */

:root {
  --admin-sidebar: 264px;
  --admin-topbar: 64px;
  --admin-bg: #f5f5f7;
  --admin-panel: #ffffff;
  --admin-line: #e6e6e9;
  --admin-ink: #1d1d1f;
  --admin-ink-2: #515154;
  --admin-ink-3: #86868b;
  --admin-accent: #206bea;
  --admin-accent-soft: #e9f1fd;
  --admin-side-bg: #1d1d1f;
  --admin-side-ink: #a7adbb;
  --admin-side-heading: #6b7280;
}
[data-theme='dark'] {
  --admin-bg: #000000;
  --admin-panel: #1d1d1f;
  --admin-line: #262a32;
  --admin-ink: #f3f4f7;
  --admin-ink-2: #b3b9c5;
  --admin-ink-3: #838b99;
  --admin-accent: #6ba1f2;
  --admin-accent-soft: #171f36;
  --admin-side-bg: #08090c;
}

body.admin-body {
  background: var(--admin-bg);
  color: var(--admin-ink);
  --ink: var(--admin-ink);
  --ink-2: var(--admin-ink-2);
  --ink-3: var(--admin-ink-3);
  --line: var(--admin-line);
  --surface: var(--admin-panel);
  --surface-2: color-mix(in srgb, var(--admin-panel) 92%, var(--admin-bg));
  --accent: var(--admin-accent);
  --accent-ink: var(--admin-accent);
  --accent-soft: var(--admin-accent-soft);
  --bg: var(--admin-bg);
}

/* ------------------------------------------------------------- shell */
.admin-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--admin-sidebar);
  background: var(--admin-side-bg);
  color: var(--admin-side-ink);
  display: flex;
  flex-direction: column;
  z-index: 70;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s var(--ease);
}
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--admin-topbar);
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex: none;
}
.sidebar__brand .brand { min-width: 0; gap: 8px; }
.sidebar__brand .brand__mark { background: #fff; color: #0e1015; width: 26px; height: 26px; font-size: 0.86rem; border-radius: 7px; padding-bottom: 0; }
.sidebar__brand .brand__name { color: #fff; font-size: 1.02rem; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__brand .badge-studio {
  margin-left: auto;
  flex: none;
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(125, 155, 255, 0.16);
  color: #9db3ff;
}
.sidebar__scroll { flex: 1; overflow-y: auto; padding: 16px 12px 20px; scrollbar-width: thin; }
.sidebar__scroll::-webkit-scrollbar { width: 6px; }
.sidebar__scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
.nav-group { margin-bottom: 22px; }
.nav-group__title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
  margin-bottom: 8px;
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--admin-side-heading);
}
.nav-group a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--admin-side-ink);
  font-size: 0.87rem;
  font-weight: 480;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
  position: relative;
}
.nav-group a svg { width: 17px; height: 17px; opacity: 0.75; flex: none; }
.nav-group a:hover { background: rgba(255, 255, 255, 0.055); color: #fff; }
.nav-group a:hover svg { opacity: 1; }
.nav-group a.is-active { background: rgba(125, 155, 255, 0.14); color: #fff; font-weight: 540; }
.nav-group a.is-active svg { color: #a9bcff; opacity: 1; }
.nav-group a.is-active::before {
  content: '';
  position: absolute;
  left: -12px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 18px;
  border-radius: 0 3px 3px 0;
  background: #7d9bff;
}
.nav-group__count {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: #cdd3df;
}
.nav-group a.is-active .nav-group__count { background: rgba(125, 155, 255, 0.24); color: #fff; }
.nav-group__count--hot { background: #c0392b; color: #fff; }

/*
  Nested navigation.

  Declared after `.nav-group a` on purpose. `.nav-sub a` has the same specificity
  as `.nav-group a` — both are one class and one element — so the one written
  later is the one that applies, and a sub-item's tighter padding and smaller
  type would otherwise be silently overridden by the rule above it.

  A parent whose child is the current page stays lit (`.is-parent`) without
  borrowing the child's filled background, so "you are here" and "this group is
  open" remain two distinguishable states rather than two identical highlights.
*/
.nav-group a.is-parent { color: #dfe3ec; }
.nav-group a.is-parent svg { opacity: 0.95; }

/*
  A heading that is not a link: a container with no page of its own (Tools), or a
  parent this person may not open while a child underneath it they may. Styled to
  match the links around it so the column still reads as one list — but with no
  hover, no pointer and no destination, because a link that answers 403 is worse
  than a label that says nothing is clickable.
*/
.nav-label {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--admin-side-ink);
  font-size: 0.87rem;
  font-weight: 480;
  cursor: default;
}
/* `.nav-group a svg` reaches anchors only, so the label needs its own. */
.nav-label svg { width: 17px; height: 17px; opacity: 0.75; flex: none; }

.nav-sub {
  display: grid;
  gap: 1px;
  margin: 1px 0 6px;
  padding-left: 22px;
  /* The guide line that makes the nesting legible without indentation alone. */
  margin-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-sub a {
  padding: 6px 12px;
  font-size: 0.81rem;
  font-weight: 450;
  border-radius: 8px;
}
.nav-sub a svg { width: 15px; height: 15px; }
/* The active bar belongs to a top-level destination; inside a sub-list it would
   sit on the guide line and read as a stray mark. */
.nav-sub a.is-active::before { display: none; }
.nav-sub a.is-active { background: rgba(125, 155, 255, 0.14); color: #fff; font-weight: 540; }
/* Slightly stronger guide while the group holds the current page. */
.nav-sub--open { border-left-color: rgba(125, 155, 255, 0.42); }

/* ------------------------------------------------------------------ */
/* Collapsible submenus. The parent link and the chevron sit side by  */
/* side so folding a section never navigates, and navigating never    */
/* folds. Open state animates through max-height; the children stay   */
/* in the DOM either way, so the active item is still focusable and   */
/* the server-rendered default (open around the current page) works   */
/* with script switched off.                                          */
/* ------------------------------------------------------------------ */
.nav-row { display: flex; align-items: center; gap: 2px; }
.nav-row > a { flex: 1; min-width: 0; }
.nav-row__toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--admin-side-ink);
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.nav-row__toggle:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-row__toggle svg { width: 14px; height: 14px; transition: transform 0.22s var(--ease); }
.nav-row__toggle[aria-expanded='false'] svg { transform: rotate(-90deg); }

.nav-label--toggle {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.nav-label--toggle:hover { background: rgba(255, 255, 255, 0.06); color: #dfe3ec; }
.nav-label--toggle svg:last-child {
  width: 14px;
  height: 14px;
  margin-left: auto;
  opacity: 0.6;
  transition: transform 0.22s var(--ease);
}
.nav-label--toggle[aria-expanded='false'] svg:last-child { transform: rotate(-90deg); }

.nav-sub {
  overflow: hidden;
  max-height: 420px;
  transition: max-height 0.28s var(--ease), opacity 0.2s var(--ease);
}
.nav-sub:not(.nav-sub--open) {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
  border-left-color: transparent;
}

.sidebar__foot {
  flex: none;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.16s var(--ease);
}
.sidebar-user:hover { background: rgba(255, 255, 255, 0.06); }
.sidebar-user__meta { min-width: 0; }
.sidebar-user__meta b { display: block; font-size: 0.82rem; color: #fff; font-weight: 540; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user__meta span { font-size: 0.7rem; color: var(--admin-side-heading); text-transform: capitalize; }
.sidebar-user .icon-btn { width: 30px; height: 30px; border-color: transparent; background: transparent; color: var(--admin-side-ink); margin-left: auto; }
.sidebar-user .icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.sidebar-user .icon-btn svg { width: 15px; height: 15px; }

/* -------------------------------------------------------------- main */
.admin-main {
  flex: 1;
  min-width: 0;
  margin-left: var(--admin-sidebar);
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--admin-topbar);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(16px, 2.4vw, 32px);
  background: color-mix(in srgb, var(--admin-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--admin-line);
}
.admin-topbar__title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-topbar__title h1 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-topbar__title .sep { color: var(--admin-ink-3); }
.admin-topbar__title a { font-size: 0.84rem; color: var(--admin-ink-3); }
.admin-topbar__title a:hover { color: var(--admin-accent); }
.topbar-search {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
  background: var(--admin-panel);
  border: 1px solid var(--admin-line);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  min-width: 220px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.topbar-search:focus-within { border-color: var(--admin-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--admin-accent) 14%, transparent); }
.topbar-search svg { width: 15px; height: 15px; color: var(--admin-ink-3); flex: none; }
.topbar-search input { border: 0; background: none; outline: none; font-size: 0.84rem; width: 100%; }
.topbar-search kbd { font-size: 0.66rem; color: var(--admin-ink-3); border: 1px solid var(--admin-line); border-radius: 4px; padding: 1px 5px; }
.admin-topbar__actions { display: flex; align-items: center; gap: 6px; }
.admin-topbar__actions .icon-btn { width: 34px; height: 34px; border-color: transparent; background: transparent; }
.admin-topbar__actions .icon-btn:hover { background: var(--admin-panel); border-color: var(--admin-line); }
.admin-topbar__actions .icon-btn svg { width: 17px; height: 17px; }
.admin-topbar__actions .dot-badge { position: relative; }
.admin-topbar__actions .dot-badge::after {
  content: attr(data-count);
  position: absolute; top: -1px; right: -1px;
  min-width: 15px; height: 15px;
  border-radius: 8px;
  background: #d94b3a;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  display: grid; place-items: center;
  padding: 0 3px;
  border: 2px solid var(--admin-bg);
}
.topbar-avatar { display: flex; align-items: center; gap: 8px; padding-left: 6px; margin-left: 4px; border-left: 1px solid var(--admin-line); }
.topbar-avatar .avatar { width: 28px; height: 28px; }

.admin-content { padding: clamp(18px, 2.4vw, 32px); padding-bottom: 80px; flex: 1; }
.admin-content--flush { padding: 0 0 60px; }

.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(18px, 2.4vw, 26px);
}
.admin-page-head h1 { font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -0.02em; }
.admin-page-head p { margin: 5px 0 0; color: var(--admin-ink-3); font-size: 0.86rem; }
.admin-page-head__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------- panels */
.panel {
  background: var(--admin-panel);
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  overflow: hidden;
}
.panel + .panel { margin-top: 20px; }
.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--admin-line);
}
.panel__head h2 { font-size: 0.9rem; font-weight: 600; }
.panel__head p { margin: 3px 0 0; font-size: 0.78rem; color: var(--admin-ink-3); }
.panel__body { padding: 18px; }
.panel__body--flush { padding: 0; }
.panel__foot { padding: 14px 18px; border-top: 1px solid var(--admin-line); background: color-mix(in srgb, var(--admin-panel) 94%, var(--admin-bg)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* --------------------------------------------------------- stat cards */
/* Five cards since Posts and Pages got separate counts: 5 across on desktop,
   3+2 on tablets, 2-per-row on phones. */
.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1180px) { .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-card {
  position: relative;
  padding: 16px 18px;
  background: var(--admin-panel);
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.stat-card:hover { border-color: color-mix(in srgb, var(--admin-accent) 32%, var(--admin-line)); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-card__label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--admin-ink-3); }
.stat-card__icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--admin-accent-soft); color: var(--admin-accent); }
.stat-card__icon svg { width: 15px; height: 15px; }
.stat-card__value { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 620; letter-spacing: -0.03em; line-height: 1; }
.stat-card__foot { display: flex; align-items: center; gap: 7px; font-size: 0.76rem; color: var(--admin-ink-3); }
.trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.trend--up { color: #1f7a53; }
.trend--down { color: #c0392b; }
[data-theme='dark'] .trend--up { color: #58c795; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
@media (max-width: 1080px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }

/* chart */
.chart { display: flex; align-items: flex-end; gap: 5px; height: 148px; padding-top: 8px; }
.chart__bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; position: relative; }
.chart__bar span {
  width: 100%;
  min-height: 3px;
  border-radius: 4px 4px 2px 2px;
  background-color: var(--admin-accent);
  background-image: linear-gradient(180deg, var(--admin-accent), color-mix(in srgb, var(--admin-accent) 45%, #fff));
  transition: height 0.6s var(--ease), opacity 0.2s;
  opacity: 0.9;
}
.chart__bar:hover span { opacity: 1; }
.chart__bar small { font-size: 0.6rem; color: var(--admin-ink-3); white-space: nowrap; }
.chart__bar:hover::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% - 2px);
  background: var(--admin-ink);
  color: var(--admin-bg);
  font-size: 0.66rem;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
  z-index: 2;
}
.chart-legend { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 0.76rem; color: var(--admin-ink-3); }

/* quick actions */
.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-action {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--admin-line);
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 520;
  transition: all 0.18s var(--ease);
}
.quick-action svg { width: 16px; height: 16px; color: var(--admin-accent); }
.quick-action:hover { border-color: var(--admin-accent); background: var(--admin-accent-soft); }

/* activity */
.activity-list { list-style: none; margin: 0; padding: 0; display: grid; }
.activity-list li { display: flex; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--admin-line); font-size: 0.83rem; }
.activity-list li:last-child { border-bottom: 0; }
.activity-list b { font-weight: 560; }
.activity-list time { margin-left: auto; font-size: 0.74rem; color: var(--admin-ink-3); white-space: nowrap; }
.activity-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--admin-accent); margin-top: 7px; flex: none; }
.activity-dot--comment { background: #b4741b; }
.activity-dot--media { background: #1f7a53; }
.activity-dot--user { background: #8e44ad; }

/* ------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-ink-3);
  border-bottom: 1px solid var(--admin-line);
  white-space: nowrap;
  background: color-mix(in srgb, var(--admin-panel) 96%, var(--admin-bg));
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--admin-line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.14s var(--ease); }
.table tbody tr:hover { background: color-mix(in srgb, var(--admin-panel) 94%, var(--admin-bg)); }
.table .cell-title { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.table .cell-title img { width: 46px; height: 36px; border-radius: 7px; object-fit: cover; flex: none; background: var(--admin-bg); }
.table .cell-title__text { min-width: 0; }
.table .cell-title b { display: block; font-size: 0.87rem; font-weight: 560; line-height: 1.32; }
.table .cell-title b a:hover { color: var(--admin-accent); }
.table .cell-title small { color: var(--admin-ink-3); font-size: 0.74rem; }
.table .cell-actions { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.table .row-action {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 7px;
  color: var(--admin-ink-3);
  transition: all 0.15s var(--ease);
}
.table .row-action:hover { background: var(--admin-bg); color: var(--admin-ink); }
.table .row-action--danger:hover { background: color-mix(in srgb, #c0392b 12%, transparent); color: #c0392b; }
.table .row-action svg { width: 14px; height: 14px; }
.table .col-check { width: 40px; }
.table input[type='checkbox'] { width: 15px; height: 15px; accent-color: var(--admin-accent); }
.table .muted { color: var(--admin-ink-3); font-size: 0.79rem; }
@media (max-width: 720px) {
  .table th:nth-last-child(2), .table td:nth-last-child(2) { display: none; }
}

/* status pills */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--admin-bg);
  color: var(--admin-ink-2);
  white-space: nowrap;
  text-transform: capitalize;
}
.pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.75; }
.pill--published, .pill--approved, .pill--confirmed { background: #e7f5ee; color: #1a6b47; }
.pill--draft, .pill--pending { background: #fdf2df; color: #9a6316; }
.pill--scheduled { background: #e9eefe; color: #2b4bb5; }
.pill--trash, .pill--spam, .pill--unsubscribed { background: #fbe9e7; color: #a93425; }
.pill--private { background: #f1e9fb; color: #6d3ca8; }
.pill--role { background: var(--admin-accent-soft); color: var(--admin-accent); }
.pill--plain::before { display: none; }
[data-theme='dark'] .pill--published, [data-theme='dark'] .pill--approved { background: #10281d; color: #5ec996; }
[data-theme='dark'] .pill--draft, [data-theme='dark'] .pill--pending { background: #2a2111; color: #e0ad5b; }
[data-theme='dark'] .pill--scheduled { background: #151d33; color: #9ab2ff; }
[data-theme='dark'] .pill--trash, [data-theme='dark'] .pill--spam { background: #2b1512; color: #e98b7d; }

/* filter bar */
.filter-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--admin-line);
}
.filter-bar form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-tabs { display: flex; align-items: center; gap: 2px; }
.filter-tabs a {
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--admin-ink-2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.15s var(--ease);
}
.filter-tabs a:hover { background: var(--admin-bg); color: var(--admin-ink); }
.filter-tabs a.is-active { background: var(--admin-ink); color: var(--admin-panel); font-weight: 540; }
.filter-tabs a span { font-size: 0.72rem; opacity: 0.7; }
.filter-bar .input, .filter-bar .select { padding: 7px 11px; font-size: 0.82rem; border-radius: 8px; width: auto; }
.filter-bar .search-field { position: relative; }
.filter-bar .search-field svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--admin-ink-3); }
.filter-bar .search-field .input { padding-left: 30px; width: 210px; }

/* bulk bar */
.bulk-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  /*
    The parked position has to clear BOTH the bar's own height and the 24px
    bottom offset. translateY(120%) on its own leaves the top
    `24px - 0.2 * height` of the bar above the fold — on a ~50px bar that is
    a ~14px black strip stuck to the bottom of every admin screen, with the
    blue Apply button's top edge just showing.

    visibility: hidden matters separately from the transform: it takes the
    action <select> and the Apply <button> out of the tab order and the
    accessibility tree while the bar is off-screen, so tabbing through a page
    cannot focus controls nobody can see.
  */
  transform: translate(-50%, calc(100% + 24px));
  visibility: hidden;
  opacity: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 18px;
  background: var(--admin-ink);
  color: var(--admin-bg);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  z-index: 80;
  transition: transform 0.3s var(--ease), opacity 0.25s var(--ease), visibility 0.3s var(--ease);
  font-size: 0.82rem;
}
.bulk-bar.is-visible { transform: translate(-50%, 0); visibility: visible; opacity: 1; }
.bulk-bar select { background: rgba(255, 255, 255, 0.12); border: 0; color: inherit; border-radius: var(--radius-pill); padding: 6px 10px; font-size: 0.8rem; }
.bulk-bar select option { color: #111; }
.bulk-bar .btn { --btn-bg: var(--admin-bg); --btn-fg: var(--admin-ink); padding: 6px 14px; font-size: 0.8rem; }

/* -------------------------------------------------------------- forms */
.form-grid { display: grid; gap: 18px; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .form-grid--2 { grid-template-columns: 1fr; } }
/*
  base.css's `.field + .field { margin-top: 18px }` also fires between grid items.
  In a two-column grid that is a visible defect: the second field is pushed 18px
  below its row partner, so its label, input and placeholder text drop out of
  alignment with the left column. `gap` already spaces grid items, so zero it.
  This holds both for the desktop two-column row and for the single-column mobile
  stack (<=720px), where `gap` continues to separate the rows.

  Deliberately NOT applied to plain single-column `.form-grid` (used as
  `.panel__body` across the Studio): every item there shares one column, so the
  extra margin only widens the vertical gap uniformly and nothing is misaligned.
*/
.form-grid--2 > .field + .field { margin-top: 0; }
.form-section + .form-section { margin-top: 6px; padding-top: 20px; border-top: 1px solid var(--admin-line); }
.form-section h3 { font-size: 0.9rem; margin-bottom: 4px; }
.form-section > p { font-size: 0.8rem; color: var(--admin-ink-3); margin-bottom: 14px; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
label.field > span { color: var(--admin-ink-2); }
.hint { font-size: 0.76rem; color: var(--admin-ink-3); margin-top: 6px; line-height: 1.5; }
.input-sm { padding: 8px 11px; font-size: 0.84rem; border-radius: 8px; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: 9px 0 0 9px; }
.input-group .addon {
  display: grid; place-items: center;
  padding: 0 12px;
  border: 1px solid var(--admin-line);
  border-left: 0;
  border-radius: 0 9px 9px 0;
  background: var(--admin-bg);
  color: var(--admin-ink-3);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* toggle switch */
.switch { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; padding: 10px 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  position: relative;
  width: 38px; height: 22px;
  border-radius: var(--radius-pill);
  background: var(--admin-line);
  flex: none;
  transition: background 0.2s var(--ease);
  margin-top: 1px;
}
.switch__track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s var(--ease);
}
.switch input:checked + .switch__track { background: var(--admin-accent); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--admin-accent); outline-offset: 2px; }
.switch__text b { display: block; font-size: 0.84rem; font-weight: 540; }
.switch__text span { display: block; font-size: 0.76rem; color: var(--admin-ink-3); line-height: 1.45; }

/* segmented control */
.segmented { display: inline-flex; padding: 3px; background: var(--admin-bg); border-radius: 9px; gap: 2px; }
.segmented input { position: absolute; opacity: 0; }
.segmented label {
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 0.8rem;
  color: var(--admin-ink-2);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.segmented input:checked + label { background: var(--admin-panel); color: var(--admin-ink); box-shadow: var(--shadow-sm); font-weight: 540; }

/* color swatches */
.color-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.color-row input[type='color'] { width: 38px; height: 38px; padding: 3px; border-radius: 9px; border: 1px solid var(--admin-line); background: var(--admin-panel); cursor: pointer; }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.swatch.is-active { border-color: var(--admin-ink); }

/* ------------------------------------------------------------- editor */
.editor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1180px) { .editor-shell { grid-template-columns: minmax(0, 1fr); } .editor-side { position: static; } }
.editor-main { min-width: 0; display: grid; gap: 16px; }
.editor-side { position: sticky; top: calc(var(--admin-topbar) + 16px); display: grid; gap: 14px; }

.editor-title {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  font-weight: 620;
  letter-spacing: -0.025em;
  padding: 18px 22px;
  outline: none;
}
.editor-title::placeholder { color: var(--admin-ink-3); opacity: 0.6; }
.slug-row {
  display: flex; align-items: center; gap: 8px;
  padding: 0 22px 14px;
  font-size: 0.78rem;
  color: var(--admin-ink-3);
  border-bottom: 1px solid var(--admin-line);
}
.slug-row .input { padding: 5px 9px; font-size: 0.78rem; border-radius: 7px; }
.slug-row svg { width: 13px; height: 13px; }

.editor-toolbar {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  padding: 8px 12px;
  border-bottom: 1px solid var(--admin-line);
  background: color-mix(in srgb, var(--admin-panel) 96%, var(--admin-bg));
}
.editor-toolbar .tool {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 6px;
  color: var(--admin-ink-2);
  transition: all 0.14s var(--ease);
}
.editor-toolbar .tool:hover { background: var(--admin-bg); color: var(--admin-ink); }
.editor-toolbar .tool svg { width: 15px; height: 15px; }
.editor-toolbar .divider-v { width: 1px; height: 18px; background: var(--admin-line); margin: 0 5px; }
.editor-toolbar .tool-group { display: flex; gap: 2px; align-items: center; }
.editor-toolbar__right { margin-left: auto; display: flex; align-items: center; gap: 4px; }

.editor-tabs { display: flex; gap: 2px; margin-left: 8px; }
.editor-tabs button {
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 0.8rem;
  color: var(--admin-ink-2);
}
.editor-tabs button.is-active { background: var(--admin-accent-soft); color: var(--admin-accent); font-weight: 540; }

.editor-panes { position: relative; }
.editor-pane { display: none; }
.editor-pane.is-active { display: block; }
.editor-textarea {
  width: 100%;
  min-height: 520px;
  border: 0;
  background: transparent;
  padding: 20px 24px;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: 0.9rem;
  line-height: 1.75;
  resize: vertical;
  outline: none;
  tab-size: 2;
}
.editor-preview { padding: 8px 26px 26px; min-height: 520px; }
.editor-preview .prose { font-size: 1rem; }
.editor-preview__empty { display: grid; place-items: center; min-height: 420px; color: var(--admin-ink-3); font-size: 0.9rem; text-align: center; }
.editor-foot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 18px;
  border-top: 1px solid var(--admin-line);
  font-size: 0.76rem;
  color: var(--admin-ink-3);
  background: color-mix(in srgb, var(--admin-panel) 96%, var(--admin-bg));
}
.editor-foot .spacer { margin-left: auto; }

.side-card { background: var(--admin-panel); border: 1px solid var(--admin-line); border-radius: 12px; overflow: hidden; }
.side-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--admin-line); }
.side-card__head h3 { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--admin-ink-2); }
.side-card__body { padding: 14px; display: grid; gap: 12px; }
.side-card__body .field + .field { margin-top: 0; }
.side-card__body .label { font-size: 0.74rem; }
.side-card--collapsible .side-card__body { display: none; }
.side-card--open .side-card__body { display: grid; }
.side-card__toggle { color: var(--admin-ink-3); display: inline-flex; }
.side-card__toggle svg { width: 15px; height: 15px; transition: transform 0.2s; }
.side-card--open .side-card__toggle svg { transform: rotate(180deg); }

.publish-actions { display: grid; gap: 8px; }
.publish-meta { display: grid; gap: 8px; font-size: 0.78rem; color: var(--admin-ink-3); }
.publish-meta div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.publish-meta b { color: var(--admin-ink-2); font-weight: 520; }

.checklist { display: grid; gap: 2px; max-height: 220px; overflow-y: auto; }
.checklist label { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 0.84rem; cursor: pointer; }
.checklist input { accent-color: var(--admin-accent); }

.tag-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--admin-line); border-radius: 9px; background: var(--admin-panel); }
.tag-input:focus-within { border-color: var(--admin-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--admin-accent) 12%, transparent); }
.tag-input__chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
  font-size: 0.76rem;
}
.tag-input__chip button { display: inline-flex; opacity: 0.7; }
.tag-input__chip button:hover { opacity: 1; }
.tag-input input { border: 0; outline: none; background: none; flex: 1; min-width: 90px; font-size: 0.82rem; padding: 2px; }

.image-picker {
  position: relative;
  display: grid;
  place-items: center;
  gap: 6px;
  aspect-ratio: 16 / 10;
  border: 1px dashed var(--admin-line);
  border-radius: 9px;
  background: var(--admin-bg);
  overflow: hidden;
  text-align: center;
  color: var(--admin-ink-3);
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.image-picker:hover { border-color: var(--admin-accent); }
/*
  The preview <img> is permanent markup and .has-image alone decides visibility.
  It used to be the other way round: the server rendered an empty state carrying
  an inline display:none, and the picker JS only ever set .src — inline styles
  outrank CSS, so a chosen image stayed invisible until the page was reloaded.
*/
.image-picker img {
  display: none;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.image-picker.has-image img { display: block; }
.image-picker__empty { display: grid; gap: 6px; place-items: center; padding: 16px; }
.image-picker.has-image .image-picker__empty { display: none; }
.image-picker__empty svg { width: 22px; height: 22px; }
.image-picker__actions { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 5px; z-index: 2; }
.image-picker__actions button {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: rgba(10, 12, 16, 0.6);
  color: #fff;
  backdrop-filter: blur(6px);
}
.image-picker__actions svg { width: 13px; height: 13px; }

/*
  Four recent images under the picker, as a quick way to set a featured image
  without opening the library. These reproduce the inline styles the buttons
  used to carry, plus a selected state so the current choice is visible.
*/
.quick-picks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 8px;
}
.quick-pick {
  position: relative;
  padding: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  background: var(--admin-bg);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.quick-pick img { display: block; width: 100%; height: 100%; object-fit: cover; }
.quick-pick:hover { border-color: var(--admin-accent); transform: translateY(-1px); }
.quick-pick:focus-visible { outline: 2px solid var(--admin-accent); outline-offset: 2px; }
.quick-pick.is-selected { border-color: var(--admin-accent); box-shadow: 0 0 0 2px var(--admin-accent-soft); }
.quick-pick.is-selected::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--admin-accent);
  border-radius: 5px;
  pointer-events: none;
}

.seo-preview {
  border: 1px solid var(--admin-line);
  border-radius: 9px;
  padding: 12px 14px;
  background: var(--admin-panel);
  display: grid;
  gap: 3px;
}
.seo-preview span { font-size: 0.7rem; color: var(--admin-ink-3); }
.seo-preview b { font-size: 0.92rem; color: #1a0dab; font-weight: 500; line-height: 1.3; }
[data-theme='dark'] .seo-preview b { color: #8ab4f8; }
.seo-preview p { font-size: 0.78rem; color: var(--admin-ink-2); margin: 0; line-height: 1.45; }
.counter { font-size: 0.7rem; color: var(--admin-ink-3); }
.counter.is-warn { color: #b4741b; }
.counter.is-over { color: #c0392b; }

.revision-list { list-style: none; margin: 0; padding: 0; display: grid; }
.revision-list li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--admin-line); font-size: 0.8rem; }
.revision-list li:last-child { border-bottom: 0; }
.revision-list time { color: var(--admin-ink-3); font-size: 0.74rem; }

/* -------------------------------------------------------------- media */
.media-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.media-toolbar .search-field { position: relative; flex: 1; min-width: 200px; max-width: 320px; }
.media-toolbar .search-field svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--admin-ink-3); }
.media-toolbar .search-field .input { padding-left: 33px; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.media-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  background: var(--admin-panel);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.media-item:hover { border-color: var(--admin-accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.media-item.is-selected { outline: 2px solid var(--admin-accent); }
.media-item__thumb { display: block; aspect-ratio: 4 / 3; background: var(--admin-bg); position: relative; }
.media-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-item__ext {
  position: absolute; left: 8px; top: 8px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(10, 12, 16, 0.6);
  color: #fff;
  backdrop-filter: blur(4px);
}
.media-item__meta { padding: 9px 10px; display: grid; gap: 2px; }
.media-item__meta b { font-size: 0.78rem; font-weight: 520; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-item__meta span { font-size: 0.7rem; color: var(--admin-ink-3); }
.media-item__actions {
  position: absolute; top: 6px; right: 6px; display: flex; gap: 4px;
  opacity: 0; transform: translateY(-4px);
  transition: all 0.18s var(--ease);
}
.media-item:hover .media-item__actions { opacity: 1; transform: none; }
.media-item__actions button, .media-item__actions a {
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 6px; background: rgba(10, 12, 16, 0.62); color: #fff; backdrop-filter: blur(6px);
}
.media-item__actions svg { width: 13px; height: 13px; }
.media-item__check { position: absolute; top: 8px; left: 8px; z-index: 2; }

.dropzone {
  display: grid; place-items: center; gap: 6px;
  padding: 26px;
  border: 1.5px dashed var(--admin-line);
  border-radius: 12px;
  color: var(--admin-ink-3);
  text-align: center;
  font-size: 0.84rem;
  background: color-mix(in srgb, var(--admin-panel) 60%, transparent);
  transition: all 0.2s var(--ease);
  margin-bottom: 16px;
}
.dropzone.is-dragover, .dropzone:hover { border-color: var(--admin-accent); background: var(--admin-accent-soft); color: var(--admin-accent); }
.dropzone svg { width: 26px; height: 26px; }
.dropzone b { color: var(--admin-ink); font-weight: 560; }

/* ------------------------------------------------------------- comments */
.moderation-list { list-style: none; margin: 0; padding: 0; }
.moderation-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--admin-line);
  align-items: start;
  transition: background 0.14s;
}
.moderation-item:hover { background: color-mix(in srgb, var(--admin-panel) 95%, var(--admin-bg)); }
.moderation-item:last-child { border-bottom: 0; }
.moderation-item__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.moderation-item__head b { font-size: 0.87rem; }
.moderation-item__head span { font-size: 0.75rem; color: var(--admin-ink-3); }
.moderation-item p { font-size: 0.86rem; color: var(--admin-ink-2); margin: 0 0 8px; line-height: 1.55; }
.moderation-item__meta { font-size: 0.74rem; color: var(--admin-ink-3); display: flex; gap: 10px; flex-wrap: wrap; }
.moderation-item__meta a { color: var(--admin-accent); }
.moderation-item__actions { display: flex; gap: 4px; align-items: center; }
.moderation-item__actions form { display: flex; }
@media (max-width: 760px) { .moderation-item { grid-template-columns: auto minmax(0, 1fr); } .moderation-item__actions { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- login */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--admin-bg);
}
@media (max-width: 900px) { .auth-shell { grid-template-columns: minmax(0, 1fr); } .auth-art { display: none; } }
.auth-form-side { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 380px; display: grid; gap: 22px; }
.auth-card h1 { font-family: var(--font-display); font-weight: 620; font-size: 2.3rem; line-height: 1.05; letter-spacing: -0.02em; }
.auth-card p { color: var(--admin-ink-3); font-size: 0.9rem; margin: 0; }
.auth-card form { display: grid; gap: 16px; }
.auth-hint { padding: 12px 14px; border-radius: 10px; background: var(--admin-accent-soft); color: var(--admin-accent); font-size: 0.78rem; line-height: 1.5; }
.auth-hint code { font-family: ui-monospace, monospace; font-weight: 600; }
.auth-art {
  position: relative;
  background: linear-gradient(160deg, #1d1d1f 0%, #101012 55%, #000000 100%);
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
}
.auth-art::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(80% 70% at 70% 30%, #000, transparent);
  z-index: -1;
}
.auth-art__quote { font-family: var(--font-display); font-weight: 620; font-size: clamp(1.7rem, 3.1vw, 2.5rem); line-height: 1.14; letter-spacing: -0.032em; max-width: 24ch; margin-top: auto; }
.auth-art__sub { color: rgba(255, 255, 255, 0.62); font-size: 0.88rem; margin-top: 16px; max-width: 40ch; }
.auth-art__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.auth-art__badges span { font-size: 0.72rem; padding: 5px 10px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); }
.auth-art .brand__name { color: #fff; }

/* ------------------------------------------------------------ utilities */
.admin-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.admin-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.admin-grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 1080px) {
  .admin-grid-2, .admin-grid-3, .admin-grid-side { grid-template-columns: minmax(0, 1fr); }
}
.stack-16 { display: grid; gap: 16px; }
.stack-10 { display: grid; gap: 10px; }
.stack-6 { display: grid; gap: 6px; }
.row { display: flex; align-items: center; gap: 10px; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.spacer { margin-left: auto; }
.text-sm { font-size: 0.84rem; }
.text-xs { font-size: 0.76rem; }
.text-muted { color: var(--admin-ink-3); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }

.empty-state { display: grid; place-items: center; gap: 8px; padding: 52px 20px; text-align: center; }
.empty-state svg { width: 38px; height: 38px; color: var(--admin-ink-3); opacity: 0.5; }
.empty-state h3 { font-size: 1rem; }
.empty-state p { font-size: 0.84rem; color: var(--admin-ink-3); margin: 0; max-width: 38ch; }

/* pagination (admin) */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--admin-line); font-size: 0.8rem; color: var(--admin-ink-3); flex-wrap: wrap; }
.pager__links { display: flex; gap: 4px; }
.pager__links a, .pager__links span {
  min-width: 30px; height: 30px;
  display: inline-grid; place-items: center;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--admin-line);
  font-size: 0.78rem;
}
.pager__links a:hover { border-color: var(--admin-accent); color: var(--admin-accent); }
.pager__links .is-current { background: var(--admin-ink); color: var(--admin-panel); border-color: var(--admin-ink); }
.pager__links .is-disabled { opacity: 0.4; pointer-events: none; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 130; display: none; }
.modal.is-open { display: grid; place-items: center; padding: 20px; }
.modal__scrim { position: absolute; inset: 0; background: rgba(8, 10, 14, 0.55); backdrop-filter: blur(3px); }
.modal__dialog {
  position: relative;
  z-index: 1;
  /* The library popup should feel like the media page, not a tooltip:
     72vw × 84vh lands at ≈60% of the viewport area on typical laptop
     screens; the caps keep it sane on very large monitors. */
  width: min(1200px, 72vw);
  height: min(860px, 84vh);
  margin: 0;
  background: var(--admin-panel);
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-in 0.24s var(--ease);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.99); } }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--admin-line); }
.modal__head h2 { font-size: 0.95rem; }
.modal__body { padding: 16px 18px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.modal__foot { padding: 12px 18px; border-top: 1px solid var(--admin-line); display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 640px) {
  /* Sixty percent of a phone screen cannot hold a usable grid — go near-full. */
  .modal.is-open { padding: 10px; }
  .modal__dialog { width: 100%; height: 100%; }
}

/* mobile sidebar */
.sidebar__close, .admin-menu-btn { display: none; }
@media (max-width: 1000px) {
  .admin-main { margin-left: 0; }
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .sidebar.is-open { transform: none; }
  .admin-menu-btn { display: inline-grid; }
  .sidebar__close { display: inline-grid; margin-left: auto; }
  .sidebar__brand .badge-studio { display: none; }
  .topbar-search { min-width: 0; width: 40px; padding: 7px; border: 0; background: transparent; }
  .topbar-search input, .topbar-search kbd { display: none; }
}
@media (max-width: 640px) {
  .admin-page-head { flex-direction: column; align-items: stretch; }
  .topbar-avatar .topbar-avatar__meta { display: none; }
  .admin-topbar { gap: 4px; padding-inline: 10px; }
  .admin-topbar__title { flex: 1 1 auto; }
  .admin-topbar__title a, .admin-topbar__title .sep { display: none; }
  .admin-topbar__title h1 { font-size: 0.94rem; }
}

::selection { background: color-mix(in srgb, var(--admin-accent) 26%, transparent); }

/* phones: compact dashboard cards (declared last so it wins) */
@media (max-width: 560px) {
  .stat-grid { gap: 10px; }
  .stat-card { padding: 13px; gap: 5px; border-radius: 12px; }
  .stat-card__value { font-size: 1.55rem; }
  .stat-card__foot { font-size: 0.71rem; line-height: 1.35; }
  .dash-grid { gap: 12px; }
}

/* ---------------------------------------------------- installer (setup wizard) */
.steps {
  display: flex; align-items: center; gap: 18px;
  list-style: none; margin: 0 0 22px; padding: 0;
  font-size: 0.78rem; color: var(--admin-ink-3);
}
.steps li { display: flex; align-items: center; gap: 8px; position: relative; }
.steps li span {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--admin-line);
  font-size: 0.7rem; font-weight: 600;
  background: var(--admin-bg);
}
.steps li + li::before {
  content: ''; position: absolute; left: -14px; top: 50%;
  width: 10px; height: 1px; background: var(--admin-line);
}
.steps li.is-current { color: var(--admin-ink-1); font-weight: 540; }
.steps li.is-current span { background: var(--admin-accent); border-color: var(--admin-accent); color: #fff; }
.steps li.is-done span { border-color: var(--admin-accent); color: var(--admin-accent); }

.hint--error { color: #c0392b; }
.auth-card .alert code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
.db-code {
  display: inline-block; margin-left: 8px; padding: 1px 7px;
  border-radius: var(--radius-pill, 32px);
  border: 1px solid currentColor; opacity: 0.72;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.68rem;
}
.db-hint {
  margin: 10px 0 0; padding: 10px 12px;
  border-radius: 8px; background: rgba(0, 0, 0, 0.045);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
}
#db-embedded-fields[hidden], #db-server-fields[hidden] { display: none; }
/*
  These two panels are plain divs, so nothing spaced their children: the Host/Port
  grid sat flush against "Database name" (0px) while the form around them used a
  16px gap. Matching the form's rhythm keeps the whole screen even. The [hidden]
  rule above wins on specificity, so the driver toggle still works.
*/
#db-server-fields, #db-embedded-fields { display: grid; gap: 16px; }

/* ------------------------------------------- preview / permalink link rows */
/*
  One row under the title in the Stories and Pages lists, and under the title
  field in the editor. Published items get their real permalink; anything not
  public yet gets a private preview link (author or super admin only — the
  template gates it with the same rule the /preview/:ref route enforces).
*/
.table .cell-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  margin-top: 3px;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--admin-ink-3);
  text-decoration: none;
}
.table .cell-link:hover { color: var(--admin-accent); }
.table .cell-link svg { flex: none; opacity: 0.9; }
.table .cell-link__url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}
.table .cell-link--preview { color: var(--admin-accent); }
.table .cell-link__status {
  padding: 1px 6px;
  border-radius: 980px;
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
  font-size: 0.67rem;
  font-weight: 560;
  text-transform: capitalize;
}

.editor-titlelink {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 2px 0 0;
  padding: 0 2px;
  font-size: 0.78rem;
}
.editor-titlelink a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--admin-accent);
  font-weight: 500;
  text-decoration: none;
}
.editor-titlelink a:hover { text-decoration: underline; }
.editor-titlelink__url {
  padding: 2px 7px;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  background: var(--admin-bg);
  color: var(--admin-ink-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.71rem;
}
.editor-titlelink__note { color: var(--admin-ink-3); font-size: 0.72rem; }

@media (max-width: 720px) {
  .table .cell-link__url { max-width: 150px; }
  .editor-titlelink__note { flex-basis: 100%; }
}

/* ------------------------------------------------------------------ */
/* AI assistant                                                        */
/* ------------------------------------------------------------------ */

/*
  Sidebar on/off switch. The base .switch is designed for light panels, so on
  the dark rail the ink and track are re-toned here rather than left to inherit
  dark-on-dark. The Apply button is the no-JS path; admin.js hides it once the
  switch has been upgraded to an instant fetch.
*/
.sidebar-ai { margin-bottom: 4px; }
.sidebar-ai__form { padding: 4px 10px 8px; }
.switch--rail { padding: 6px 0; gap: 9px; }
.switch--rail .switch__track { background: rgba(255, 255, 255, 0.18); }
.switch--rail input:checked + .switch__track { background: var(--admin-accent); }
.switch--rail .switch__text b { color: #f2f4f8; font-size: 0.79rem; }
.switch--rail .switch__text span { color: var(--admin-side-ink); font-size: 0.71rem; }
.sidebar-ai__apply {
  margin-top: 6px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f2f4f8;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
}
.sidebar-ai__apply:hover { background: rgba(255, 255, 255, 0.12); }

/* Editor drafting card */
.side-card--ai .side-card__head h3 { display: flex; align-items: center; gap: 6px; }
.side-card--ai .side-card__head h3 svg { color: var(--admin-accent); }
.side-card--ai #aiStatus { line-height: 1.5; }
.side-card--ai #aiGenerate[disabled] { opacity: 0.65; cursor: progress; }

/*
  Headline suggestions offered by the AI card's "Title" and
  "Title + Post + Feature Image" modes.

  Buttons rather than radio inputs on purpose: the AI card lives inside
  #editorForm and must not contribute a named control to it, which is the same
  reason the card is not a <form>. role="radiogroup"/"radio" carries the
  semantics that the missing inputs would have.

  Admin tokens only, so the light/dark switch needs no second rule set.
*/
.ai-titles { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 8px; }
.ai-titles__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-panel);
  color: var(--admin-ink-2);
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}
.ai-titles__item:hover { border-color: var(--admin-accent); color: var(--admin-ink); }
.ai-titles__item[aria-checked='true'] {
  border-color: var(--admin-accent);
  background: var(--admin-accent-soft);
  color: var(--admin-ink);
  font-weight: 500;
}
.ai-titles__item:focus-visible { outline: 2px solid var(--admin-accent); outline-offset: 1px; }
#aiTitlePicker[hidden] { display: none; }

/* ------------------------------------------------------ AI: who can use it */
/*
  The provider catalogue and the per-member entitlement list on
  Admin → AI assistant, plus the assignment block on a person's own page.

  Admin tokens only, so the light/dark switch needs no second rule set — the
  same constraint the title picker above is built under.

  The catalogue is a grid that collapses to one column rather than a fixed
  number of columns: 15 providers in four groups is a lot of reading, and at a
  narrow width the privacy line is the part most worth keeping on one piece,
  since it is what tells an administrator where an unpublished draft goes.
*/
.provider-catalogue { display: grid; gap: 18px; }
.provider-group { display: grid; gap: 8px; }
.provider-group__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.provider-group__head h3 {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--admin-ink);
  letter-spacing: -0.01em;
}
.provider-group .hint { margin: 0; }

.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 10px;
}
.provider-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: var(--admin-panel);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.provider-card:hover { border-color: var(--admin-accent); }
.provider-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.provider-card__name { font-size: 0.85rem; font-weight: 600; color: var(--admin-ink); letter-spacing: -0.01em; }
.provider-card__badges { display: flex; gap: 4px; flex-wrap: wrap; }
.provider-card__model { margin: 0; font-size: 0.72rem; color: var(--admin-ink-3); }
.provider-card__text { margin: 0; font-size: 0.75rem; line-height: 1.5; color: var(--admin-ink-2); }
.provider-card__privacy {
  padding-top: 6px;
  border-top: 1px solid var(--admin-line);
  color: var(--admin-ink-3);
}
.provider-card__use { margin-top: auto; align-self: flex-start; }

/* Approved-provider checkboxes for members' own keys. */
.preset-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.preset-pick {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-panel);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}
.preset-pick:hover { border-color: var(--admin-accent); }
.preset-pick input { margin-top: 2px; flex: 0 0 auto; }
.preset-pick b { display: block; font-size: 0.8rem; font-weight: 600; color: var(--admin-ink); }
.preset-pick__meta { display: block; font-size: 0.71rem; color: var(--admin-ink-3); }
.preset-pick:has(input:checked) { border-color: var(--admin-accent); background: var(--admin-accent-soft); }

/* The member list. A label per row, so the whole row is the click target. */
.member-list { display: grid; gap: 6px; }
.member-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1.1fr) auto minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-panel);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}
.member-row:hover { border-color: var(--admin-accent); }
.member-row:has(input:checked) { border-color: var(--admin-accent); background: var(--admin-accent-soft); }
.member-row input { margin: 0; }
/* An administrator's checkbox is disabled, so the row must not look clickable. */
.member-row--fixed { cursor: default; opacity: 0.86; }
.member-row--fixed:hover { border-color: var(--admin-line); }
.member-row__who { display: flex; flex-direction: column; min-width: 0; }
.member-row__who b { font-size: 0.81rem; font-weight: 600; color: var(--admin-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-row__email { font-size: 0.71rem; color: var(--admin-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-row__role { text-transform: capitalize; }
.member-row__state { font-size: 0.74rem; color: var(--admin-ink-2); line-height: 1.4; }
.member-row__edit { white-space: nowrap; }

/* Collapses to a readable stack well before the grid gets cramped. */
@media (max-width: 900px) {
  .member-row { grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; }
  .member-row__role { grid-column: 2; justify-self: start; }
  .member-row__state { grid-column: 2; }
  .member-row__edit { grid-column: 2; justify-self: start; }
}

/* Assignment block on a person's own page. */
.ai-assign {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: var(--admin-bg);
}
.ai-assign__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-assign__head h3 { margin: 0; font-size: 0.86rem; font-weight: 600; color: var(--admin-ink); letter-spacing: -0.01em; }
.ai-assign__foot { padding-top: 4px; border-top: 1px solid var(--admin-line); }

/* Read-only member status in the sidebar: no switch, because switching the
   assistant off site-wide is not a member's decision to make. */
.sidebar-ai__static { display: flex; flex-direction: column; gap: 1px; padding: 6px 0; }
.sidebar-ai__static b { color: #f2f4f8; font-size: 0.79rem; }
.sidebar-ai__static span { color: var(--admin-side-ink); font-size: 0.71rem; }
.sidebar-ai__link { display: block; text-align: center; text-decoration: none; }
.sidebar-ai__link:hover { text-decoration: none; }

/* --------------------------------------------------------- permalinks */
/*
  Structure picker for Admin → Permalinks.

  Built on the admin tokens only, so it follows the light/dark switch without a
  second rule set. The radios are styled here rather than reusing `.segmented`
  because each option is a multi-line card (label, example URL, note) and the
  segmented control hides its inputs and lays them out in a single row.
*/
.permalink-list { display: grid; gap: 10px; }
.permalink-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: var(--admin-panel);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.permalink-option:hover { border-color: color-mix(in srgb, var(--admin-accent) 45%, var(--admin-line)); }
.permalink-option.is-selected {
  border-color: var(--admin-accent);
  background: var(--admin-accent-soft);
}
.permalink-option input[type='radio'] {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--admin-accent);
  cursor: pointer;
}
.permalink-option__body { display: grid; gap: 4px; min-width: 0; }
.permalink-option__title { font-size: 0.86rem; font-weight: 560; color: var(--admin-ink); }
.permalink-option__url {
  font-size: 0.78rem;
  color: var(--admin-accent);
  word-break: break-all;
}
.permalink-option__note { font-size: 0.75rem; line-height: 1.5; color: var(--admin-ink-3); }
.permalink-option__input { margin-top: 2px; max-width: 380px; }
.permalink-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--admin-line);
}

/* ----------------------------------------------------------------------- *
 * News ticker: sources panel (Settings -> News ticker)
 *
 * Full width, below .admin-grid-side, because it is a list of rows with three
 * action buttons each and the side column is too narrow to hold that without
 * wrapping every row onto four lines.
 *
 * Every colour here is either a --admin-* token (all of which are overridden
 * under [data-theme='dark']) or a literal with an explicit dark counterpart, so
 * the panel is legible in both themes. That is deliberate: a literal without a
 * dark override is the easy way to ship a white block on a black page.
 * ----------------------------------------------------------------------- */
.news-sources { margin-top: 20px; }

.panel__meta {
  font-size: 0.74rem;
  font-weight: 450;
  color: var(--admin-ink-3);
  letter-spacing: 0.005em;
}

.text-danger { color: #a93425; }
[data-theme='dark'] .text-danger { color: #f0a49a; }

/* Status pills for a feed row. Named to match the .pill--<state> convention the
   post statuses already use, and paired light/dark like they are. */
.pill--ok { background: #e7f5ee; color: #1a6b47; }
.pill--bad { background: #fbe9e7; color: #a93425; }
[data-theme='dark'] .pill--ok { background: #10281d; color: #5ec996; }
[data-theme='dark'] .pill--bad { background: #33191a; color: #f0a49a; }

.feed-list { display: grid; gap: 8px; }

.feed-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: var(--admin-panel);
}
/* A disabled source stays on the list but visibly stops competing with the live
   ones — dimmed rather than hidden, because hiding it would make it impossible
   to work out why the ticker went quiet. */
.feed-row--off { background: var(--admin-bg); opacity: 0.72; }

.feed-row__state {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
}
.feed-row--off .feed-row__state { background: var(--admin-bg); color: var(--admin-ink-3); }

.feed-row__body { display: grid; gap: 3px; min-width: 0; }
.feed-row__body > b {
  font-size: 0.86rem;
  font-weight: 560;
  color: var(--admin-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-row__url {
  font-size: 0.74rem;
  color: var(--admin-ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-row__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.74rem;
  color: var(--admin-ink-3);
}
/* The publisher's own words about why it refused us. Shown rather than logged,
   because "HTTP 403" tells an administrator to go and look at the publisher,
   where a generic "failed" sends them looking for a bug here. */
.feed-row__error {
  font-size: 0.72rem;
  color: #a93425;
  word-break: break-word;
}
[data-theme='dark'] .feed-row__error { color: #f0a49a; }

.feed-row__actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.feed-row__actions form { margin: 0; }

/* The add-a-source form: URL takes what is left, name is a fixed comfortable
   width, and the whole thing collapses to a stack on a narrow window rather
   than squeezing the URL field to nothing. */
.feed-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 220px) auto;
  align-items: end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--admin-line);
}
.feed-add .field { margin: 0; }
.feed-add__title em { font-style: normal; color: var(--admin-ink-3); font-weight: 400; }
@media (max-width: 860px) {
  .feed-add { grid-template-columns: minmax(0, 1fr); }
  .feed-row { grid-template-columns: auto minmax(0, 1fr); }
  .feed-row__actions { grid-column: 1 / -1; }
}

/* ----------------------------------------------------------------------- *
 * Brand icons: Settings -> Brand icons
 * ----------------------------------------------------------------------- */

/* A numbered explanation of the resolution order. Styled rather than left to
   the browser default, because the numbers are the point of the list. */
.ordered-notes {
  margin: 8px 0 0;
  padding: 0 0 0 22px;
  display: grid;
  gap: 7px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--admin-ink-2);
}
.ordered-notes li::marker { color: var(--admin-accent); font-weight: 600; }
.ordered-notes b { color: var(--admin-ink); font-weight: 560; }

/* Live preview of the categories that already point at a brand, so the effect of
   the feature is visible on the page that configures it. */
.brand-preview { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-preview__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--admin-line);
  border-radius: 32px;
  background: var(--admin-panel);
}
.brand-preview__chip img {
  width: 28px; height: 28px;
  border-radius: 7px;
  object-fit: contain;
  background: var(--admin-bg);
}
.brand-preview__chip b { font-size: 0.8rem; font-weight: 560; color: var(--admin-ink); }
.brand-preview__chip span { font-size: 0.7rem; color: var(--admin-ink-3); }

/* ----------------------------------------------------------------------- *
 * Categories: brand domain field (Admin -> Categories)
 *
 * The admin layout loads base.css and admin.css but not site.css, so this gets
 * its own preview styling rather than reusing the public .brand-mark.
 * ----------------------------------------------------------------------- */
.brand-field { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-field .input { flex: 1 1 auto; min-width: 0; }
.brand-field__mark {
  width: 24px; height: 24px;
  flex: none;
  border-radius: 6px;
  object-fit: contain;
  background: var(--admin-bg);
  border: 1px solid var(--admin-line);
}
/* Placeholder tile, so the row keeps its shape before a domain is entered
   instead of the input jumping sideways when the preview appears. */
.brand-field__mark--empty { display: inline-block; border-style: dashed; }
