/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── CSS VARIABLES ── */
[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f5f5f4;
  --surface-hover: #eeeeec;
  --border: #e7e7e5;
  --border-mid: #c8c8c5;
  --text: #0a0a0a;
  --text-muted: #6b6b6b;
  --text-dim: #ababab;
  --green: #15803d;
  --green-bg: #f0fdf4;
  --green-border: #bbf7d0;
  --draft-bg: #fafaf9;
  --draft-text: #a8a29e;
  --draft-border: #e7e5e4;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --toggle-bg: #e4e4e7;
  --toggle-knob: #09090b;
  --shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.08);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

[data-theme="dark"] {
  --bg: #0f0f10;
  --surface: #18181b;
  --surface-hover: #1e1e22;
  --border: #27272a;
  --border-mid: #3f3f46;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #52525b;
  --green: #4ade80;
  --green-bg: #14532d;
  --green-border: #166534;
  --draft-bg: #1c1917;
  --draft-text: #78716c;
  --draft-border: #292524;
  --danger: #f87171;
  --danger-bg: #450a0a;
  --danger-border: #7f1d1d;
  --toggle-bg: #27272a;
  --toggle-knob: #fafafa;
  --shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 8px 32px rgba(0,0,0,0.5);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
}

/* ── TRANSITIONS ── */
*, *::before, *::after {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.15s ease;
}

/* ── BASE ── */
html, body { height: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

/* ── LOGIN ── */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 24px;
}

.login-card {
  width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
}

.login-theme-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  user-select: none;
}

.theme-toggle:hover { background: var(--surface-hover); }

.toggle-track {
  width: 36px;
  height: 20px;
  background: var(--toggle-bg);
  border-radius: 20px;
  position: relative;
  flex-shrink: 0;
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: var(--toggle-knob);
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s !important;
}

[data-theme="light"] .toggle-knob {
  transform: translateX(16px);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.login-mark {
  width: 36px; height: 36px;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.login-mark span {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  color: var(--bg);
  line-height: 1;
  transition: color 0.2s;
}

.login-site { font-size: 15px; font-weight: 600; }
.login-sub  { font-size: 12px; color: var(--text-dim); }

.login-heading {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  font-style: italic;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.login-error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
  margin-bottom: 16px;
}

.field-group { margin-bottom: 16px; }

.field-label-login {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  padding: 10px 14px;
  outline: none;
  line-height: 1.6;
}

.field-input:focus { border-color: var(--border-mid); }
.field-input::placeholder { color: var(--text-dim); }

/* ── SIDEBAR (56px icon) ── */
.sidebar {
  width: 56px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 20;
  padding: 16px 0;
  gap: 4px;
}

.sidebar-logo {
  width: 32px; height: 32px;
  background: transparent;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.sidebar-logo:hover { opacity: 0.8; }

.sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 7px;
}

.sidebar-logo span {
  font-family: 'Instrument Serif', serif;
  font-size: 17px;
  color: var(--bg);
  line-height: 1;
  transition: color 0.2s;
}

.nav-icon-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dim);
  position: relative;
  text-decoration: none;
}

.nav-icon-btn:hover { background: var(--surface-hover); color: var(--text-muted); }
.nav-icon-btn.active { background: var(--border); color: var(--text); }
.nav-icon-btn svg { width: 17px; height: 17px; transition: none; }

.nav-icon-btn::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
  letter-spacing: 0.01em;
  z-index: 100;
}

.nav-icon-btn:hover::after { opacity: 1; }

.sidebar-spacer { flex: 1; }

.theme-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dim);
  border: none;
  background: transparent;
}

.theme-btn:hover { background: var(--surface-hover); color: var(--text-muted); }
.theme-btn svg { width: 16px; height: 16px; transition: none; }

.user-btn {
  width: 32px; height: 32px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  margin-top: 4px;
  text-decoration: none;
  transition: opacity 0.15s !important;
  flex-shrink: 0;
}

.user-btn:hover { opacity: 0.85; }

.logout-btn {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  text-decoration: none;
  margin-top: 2px;
  position: relative;
}

.logout-btn:hover { background: var(--surface-hover); color: var(--text-muted); }
.logout-btn svg { width: 14px; height: 14px; transition: none; }

.logout-btn::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
  letter-spacing: 0.01em;
  z-index: 100;
}

.logout-btn:hover::after { opacity: 1; }

/* ── SHELL ── */
.shell {
  margin-left: 56px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── TOPBAR — Dashboard variant ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  height: 56px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.topbar-wordmark {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.topbar-wordmark img {
  display: block;
  height: 20px;
  width: auto;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar-tagline {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
  font-family: 'Instrument Serif', serif;
}

.topbar-nav-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}

.topbar-nav-link:hover { color: var(--text); }

/* ── TOPBAR — Edit variant ── */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  padding: 5px 0;
}

.back-link:hover { color: var(--text-muted); }
.back-link svg { width: 14px; height: 14px; transition: none; }

.topbar-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
  flex-shrink: 0;
}

.topbar-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.last-saved {
  font-size: 11.5px;
  color: var(--text-dim);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1;
}

.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: var(--border-mid); color: var(--text); }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger-border);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
}

.btn-danger:hover { background: var(--danger-bg); }

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  transition: none;
}

.badge-published {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.badge-draft {
  background: var(--draft-bg);
  color: var(--draft-text);
  border: 1px solid var(--draft-border);
}

/* ── CATEGORY PILL ── */
.cat-pill {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  text-transform: capitalize;
}

/* ── DASHBOARD CONTENT ── */
.content {
  padding: 32px 36px;
  flex: 1;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.page-heading {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
}

.page-count {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
  font-family: 'DM Sans', sans-serif;
}

.header-actions { display: flex; gap: 8px; }

/* ── FILTER TABS ── */
.filters {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.filter-tab {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  padding-bottom: 2px;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  user-select: none;
}

.filter-tab.active { color: var(--text); border-bottom-color: var(--text); }
.filter-tab:hover:not(.active) { color: var(--text-muted); }

.filter-count {
  font-size: 10px;
  background: var(--border);
  color: var(--text-muted);
  padding: 1px 5px;
  border-radius: 10px;
  margin-left: 4px;
  font-weight: 600;
}

/* ── POST TABLE ── */
.post-table { width: 100%; border-collapse: collapse; }

.post-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--border);
}

.post-table th:first-child { padding-left: 0; }

.post-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.post-table td:first-child { padding-left: 0; }
.post-table tr:last-child td { border-bottom: none; }

.post-table tbody tr { cursor: pointer; }
.post-table tbody tr:hover td { background: var(--surface); }
.post-table tbody tr:hover td:first-child { border-radius: 8px 0 0 8px; }
.post-table tbody tr:hover td:last-child { border-radius: 0 8px 8px 0; }

.post-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.post-thumb {
  width: 44px; height: 32px;
  border-radius: 5px;
  object-fit: cover;
  background: var(--border);
  flex-shrink: 0;
  display: block;
  border: 1px solid var(--border);
  transition: none;
}

.post-thumb-placeholder {
  width: 44px; height: 32px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-thumb-placeholder svg { width: 12px; height: 12px; color: var(--text-dim); }

.post-title-text {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}

.date-cell {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── EDITOR SHELL (full-height) ── */
.shell-editor {
  margin-left: 56px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ── EDITOR LAYOUT ── */
.editor-layout {
  display: grid;
  grid-template-columns: 1fr 268px;
  flex: 1;
  overflow: hidden;
}

.editor-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.editor-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 36px 48px 40px;
}

/* ── TITLE ── */
.title-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Instrument Serif', serif;
  font-size: 34px;
  font-style: italic;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  resize: none;
  padding: 0;
  margin-bottom: 8px;
  transition: none;
  overflow: hidden;
}

.title-input::placeholder { color: var(--border-mid); }

.title-underline {
  height: 1px;
  background: var(--border);
  margin-bottom: 28px;
}

/* ── FIELD BLOCKS ── */
.field-block { margin-bottom: 24px; }

.field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-count { font-weight: 500; font-size: 10px; color: var(--text-dim); }
.char-count.over { color: var(--danger); }

.field-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  padding: 11px 14px;
  outline: none;
  resize: none;
  line-height: 1.65;
  min-height: 90px;
}

.field-textarea:focus { border-color: var(--border-mid); }
.field-textarea::placeholder { color: var(--text-dim); }

/* ── CONTENT TOOLBAR ── */
.content-block { margin-bottom: 0; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 7px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 7px 7px 0 0;
}

.toolbar-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
  margin: 0 4px;
  flex-shrink: 0;
}

.tool-btn {
  width: 30px; height: 28px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  background: transparent;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.12s, color 0.12s;
  position: relative;
}

.tool-btn svg { width: 14px; height: 14px; transition: none; }
.tool-btn:hover { background: var(--surface-hover); color: var(--text); }
.tool-btn.active { background: var(--border); color: var(--text); }

.tool-btn::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
  font-style: normal;
  z-index: 50;
}

.tool-btn:hover::after { opacity: 1; }

.toolbar-mode {
  margin-left: auto;
  display: flex;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px;
}

.mode-btn {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.12s, color 0.12s;
}

.mode-btn.active { background: var(--surface); color: var(--text); }

.content-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 7px 7px;
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  padding: 16px 14px;
  outline: none;
  resize: none;
  line-height: 1.9;
  min-height: 340px;
}

.content-textarea:focus { border-color: var(--border-mid); }

.word-count {
  text-align: right;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ── EDITOR FOOTER ── */
.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 48px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.footer-right { display: flex; align-items: center; gap: 10px; }
.footer-saved { font-size: 11.5px; color: var(--text-dim); }

/* ── META SIDEBAR ── */
.meta-sidebar {
  overflow-y: auto;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.meta-section {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.meta-section:last-child { border-bottom: none; }

.meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

/* Status pill */
.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: 7px;
  margin-bottom: 10px;
}

.status-pill.draft {
  background: var(--draft-bg);
  border-color: var(--draft-border);
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  transition: none;
}

.status-pill.draft .status-dot { background: var(--draft-text); }

.status-text { font-size: 12px; font-weight: 700; color: var(--green); }
.status-pill.draft .status-text { color: var(--draft-text); }

/* Meta form fields */
.meta-select-wrap { position: relative; }

.meta-select-wrap::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-dim);
  pointer-events: none;
}

.meta-select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 8px 28px 8px 11px;
  outline: none;
  cursor: pointer;
  appearance: none;
}

.meta-select:focus { border-color: var(--border-mid); }

.meta-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 8px 11px;
  outline: none;
}

.meta-input:focus { border-color: var(--border-mid); }

.meta-input-mono {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  padding: 7px 10px;
  outline: none;
  margin-bottom: 6px;
}

.meta-input-mono:last-child { margin-bottom: 0; }
.meta-input-mono:focus { border-color: var(--border-mid); }

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

/* Cover image */
.cover-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--border);
  display: block;
  margin-bottom: 10px;
  transition: none;
}

.cover-attr {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

/* Slug display */
.slug-display {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.slug-prefix {
  font-size: 11px;
  color: var(--text-dim);
  padding: 8px 8px 8px 10px;
  font-family: 'DM Mono', monospace;
  white-space: nowrap;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.slug-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  padding: 8px 10px;
  outline: none;
  min-width: 0;
}

/* ── EDIT ERROR ── */
.edit-error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 13px;
  margin: 12px 48px 0;
  flex-shrink: 0;
}
