:root {
  --bg: #f1efe8;
  --bg-soft: #eae8e0;
  --panel: #ffffff;
  --ink: #0d0d0d;
  --ink-soft: #2c2c2c;
  --muted: #6b6b66;
  --muted-2: #a09f97;
  --border: rgba(13, 13, 13, 0.08);
  --border-strong: rgba(13, 13, 13, 0.16);
  --accent: #dffd5a;        /* chartreuse / yellow-green */
  --accent-deep: #b8db35;
  --accent-soft: #f3ffd0;
  --good: #1f8f5b;
  --good-bg: #e6f5ec;
  --warn: #b87900;
  --warn-bg: #fff7e0;
  --error: #b91c1c;
  --error-bg: #fde8e6;
  --tag-bg: #ecebe3;
  --tag-fg: #2c2c2c;
  --shadow-sm: 0 1px 2px rgba(13, 13, 13, 0.04);
  --shadow-md: 0 6px 22px rgba(13, 13, 13, 0.06), 0 2px 4px rgba(13, 13, 13, 0.03);
  --shadow-lg: 0 18px 48px rgba(13, 13, 13, 0.10), 0 4px 12px rgba(13, 13, 13, 0.05);
  --radius-card: 24px;
  --radius-md: 14px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

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

/* ── Topbar ──────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 76px;
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 18px;
  z-index: 50;
}
.brand-mark {
  width: 44px; height: 44px;
  background: var(--ink);
  color: white;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.pill-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--panel);
  border-radius: var(--radius-pill);
  padding: 5px;
  box-shadow: var(--shadow-sm);
}
.pill-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  white-space: nowrap;
}
.pill-nav-item:hover { background: var(--bg-soft); }
.pill-nav-item.active {
  background: var(--ink);
  color: white;
  box-shadow: 0 4px 14px rgba(13, 13, 13, 0.18);
}
.pill-nav-item.active svg { color: var(--accent); }

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.round-btn {
  width: 40px; height: 40px;
  background: var(--panel);
  border: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}
.round-btn:hover { background: white; box-shadow: var(--shadow-md); transform: translateY(-1px); }

.user-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--panel);
  border-radius: var(--radius-pill);
  padding: 4px 10px 4px 4px;
  box-shadow: var(--shadow-sm);
}
.user-chip .logout-link {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
}
.user-chip .logout-link:hover { background: var(--bg-soft); color: var(--ink); }
.avatar-mini {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── Left rail ────────────────────────────────────── */
.rail {
  position: fixed;
  left: 24px;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 40;
}
.rail-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--panel);
  border: 0;
  display: grid; place-items: center;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}
.rail-btn:hover { background: white; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.rail-btn.rail-primary {
  background: var(--ink);
  color: white;
}
.rail-btn.rail-primary:hover { background: #1f1f1f; }

/* ── Content ─────────────────────────────────────── */
.content {
  margin-left: 96px;
  margin-top: 76px;
  padding: 14px 36px 80px;
  max-width: 1480px;
}
.panel { display: none; }
.panel.active { display: block; }

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 6px;
}
.breadcrumbs svg { color: var(--muted-2); }
.breadcrumbs span:last-child { color: var(--ink); font-weight: 600; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.page-head h1 {
  font-size: 38px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.head-actions { display: flex; gap: 10px; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--panel);
  color: var(--ink);
  border: 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}
.btn:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn.pill { border-radius: var(--radius-pill); }
.btn.primary {
  background: var(--ink);
  color: white;
}
.btn.primary:hover { background: #1f1f1f; }
.btn.accent {
  background: var(--accent);
  color: var(--ink);
}
.btn.accent:hover { background: var(--accent-deep); }
.btn.ghost {
  background: transparent;
  box-shadow: none;
  color: var(--ink-soft);
}
.btn.ghost:hover { background: var(--bg-soft); box-shadow: none; transform: none; }
.btn.danger { color: var(--error); background: var(--panel); }
.btn.danger:hover { background: var(--error-bg); }

/* ── Stat cards ──────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--panel);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 130px;
  position: relative;
  overflow: hidden;
}
.stat-card.stat-accent {
  background: var(--accent);
}
.stat-card.stat-accent .stat-eyebrow,
.stat-card.stat-accent .stat-eyebrow-sub { color: rgba(13, 13, 13, 0.65); }
.stat-card.stat-accent .stat-big { color: var(--ink); }

.stat-card.stat-clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stat-card.stat-clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-card.stat-clickable:active { transform: translateY(0); }
.stat-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.stat-eyebrow-sub {
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 2px;
  margin-bottom: auto;
}
.stat-big {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 14px;
  font-variant-numeric: tabular-nums;
}

/* ── Card block ──────────────────────────────────── */
.card-block {
  background: var(--panel);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}
.search-wrap {
  position: relative;
  flex: 1 1 280px;
  min-width: 240px;
}
.search-wrap svg {
  position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 13px;
  background: var(--bg);
  color: var(--ink);
}
.search-wrap input::placeholder { color: var(--muted-2); }
.input, .select {
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 13px;
  background: var(--bg);
  color: var(--ink);
  min-width: 130px;
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%236b6b66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 32px;
}
.input { background-image: none; padding-right: 14px; }
.input:focus, .select:focus, .search-wrap input:focus {
  outline: 0;
  background: white;
  box-shadow: 0 0 0 2px var(--ink);
}

.result-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  padding-left: 4px;
  font-weight: 500;
}
.result-meta b { color: var(--ink); font-weight: 700; }

/* ── Data table ──────────────────────────────────── */
.table-wrap {
  background: var(--bg);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  background: transparent;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table thead th.num { text-align: right; }
.data-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  background: var(--panel);
}
.data-table tbody tr:first-child td:first-child { border-top-left-radius: 0; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background 0.1s ease; cursor: pointer; }
.data-table tbody tr:hover td { background: #fafaf6; }
.data-table tbody td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.cell-creator {
  display: flex; align-items: center; gap: 12px;
}
.avatar {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.avatar-initials {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
}
.avatar img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover;
}
.creator-id { display: flex; flex-direction: column; line-height: 1.3; }
.creator-id .name { font-weight: 600; color: var(--ink); }
.creator-id .handle { color: var(--muted); font-size: 12px; font-weight: 500; }

.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
  display: inline-flex;
  background: var(--tag-bg);
  color: var(--tag-fg);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.tag.niche {
  background: var(--accent);
  color: var(--ink);
}
.tag.type-influencer { background: rgba(13, 13, 13, 0.06); color: var(--ink); }
.tag.type-ugc { background: var(--accent); color: var(--ink); }
.tag.type-both { background: var(--ink); color: var(--accent); }

.status-dot {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.status-dot::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
  flex-shrink: 0;
}
.status-dot.active::before { background: #1aab66; box-shadow: 0 0 0 3px rgba(26, 171, 102, 0.18); }
.status-dot.contacted::before { background: #d99b1f; }
.status-dot.booked::before { background: var(--ink); }
.status-dot.declined::before { background: var(--muted); }
.status-dot.blacklisted::before { background: var(--error); }
.status-dot.enriching::before { background: #d99b1f; animation: pulse 1.4s infinite; }
.status-dot.enrichment_failed::before { background: var(--error); }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.row-actions {
  display: flex; gap: 4px;
  opacity: 0;
  transition: opacity 0.12s ease;
  justify-content: flex-end;
}
tr:hover .row-actions { opacity: 1; }
.row-actions .icon-btn {
  width: 30px; height: 30px;
  background: white;
  border-radius: 50%;
  border: 0;
  display: grid; place-items: center;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.row-actions .icon-btn:hover { background: var(--accent); }

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-icon { color: var(--muted-2); margin-bottom: 12px; display: inline-flex; }
.empty-title { font-weight: 600; color: var(--ink); margin-bottom: 4px; font-size: 14px; }
.empty-sub { font-size: 12px; }

/* ── Forms ───────────────────────────────────────── */
.form-card {
  background: var(--panel);
  border-radius: var(--radius-card);
  padding: 32px;
  max-width: 720px;
  box-shadow: var(--shadow-sm);
}
.form-hint { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.creator-form {
  display: grid;
  gap: 14px;
}
.creator-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.creator-form label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12px; color: var(--muted); font-weight: 600;
}
.creator-form label.check {
  flex-direction: row; align-items: center; gap: 8px;
  color: var(--ink); margin: 0; font-weight: 500;
}
.creator-form input:not([type="checkbox"]), .creator-form textarea, .creator-form select {
  padding: 11px 14px;
  border: 0;
  border-radius: 12px;
  font-size: 13.5px;
  background: var(--bg);
  color: var(--ink);
  width: 100%;
  font-weight: 500;
}
.creator-form input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--ink);
  margin: 0;
}
.creator-form label.check {
  flex: 0 0 auto;
  white-space: nowrap;
  width: max-content;
}
.creator-form label > .lbl {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.creator-form input:focus, .creator-form textarea:focus, .creator-form select:focus {
  outline: 0;
  background: white;
  box-shadow: 0 0 0 2px var(--ink);
}
.creator-form .req { color: var(--error); margin-left: 2px; }
.creator-form .muted { color: var(--muted-2); font-weight: 500; font-size: 11px; }
.form-actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
}
.form-status { font-size: 12.5px; min-height: 18px; font-weight: 500; }
.form-status.success { color: var(--good); }
.form-status.error { color: var(--error); }
.type-segments {
  display: inline-flex;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius-pill);
  gap: 2px;
}
.type-seg {
  padding: 8px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.type-seg:hover { color: var(--ink); }
.type-seg.active {
  background: var(--ink);
  color: white;
  box-shadow: 0 4px 14px rgba(13, 13, 13, 0.15);
}
.creator-form .row[data-type-row][hidden] { display: none; }
.creator-form .placeholder-cell { visibility: hidden; }

/* ── Campaigns ───────────────────────────────────────── */
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.campaign-card {
  background: var(--panel);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.campaign-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.campaign-card .brand {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.campaign-card .name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.campaign-card .stats-row {
  display: flex;
  gap: 18px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.campaign-card .stat-mini {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.campaign-card .stat-mini-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.campaign-card .stat-mini-value {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.campaign-card .status-dot { font-size: 11px; }

.brand-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.add-post-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 6px;
}
.add-post-status { font-size: 12px; color: var(--muted); min-height: 18px; padding: 6px 0; }
.add-post-status.success { color: var(--good); }
.add-post-status.error { color: var(--error); }

.post-thumb {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--bg);
  object-fit: cover;
}
.post-link {
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
}
.post-link:hover { text-decoration: underline; }
.post-cell {
  display: flex; align-items: center; gap: 10px;
}
.post-meta { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; max-width: 220px; }
.post-meta .caption-snip {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.manual-num {
  width: 80px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--bg);
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
  -moz-appearance: textfield;
}
.manual-num::-webkit-outer-spin-button,
.manual-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.manual-num:focus {
  outline: 0;
  background: white;
  border-color: var(--ink);
}
.manual-num:placeholder-shown { color: var(--muted-2); font-weight: 500; }

/* Past collabs in drawer */
.collab-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: 12px;
  margin-bottom: 8px;
  align-items: flex-start;
}
.brand-logo {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--accent);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.brand-logo span {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
}
.brand-logo img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover;
  background: white;
}
.collab-body {
  display: flex; flex-direction: column; gap: 5px;
  min-width: 0;
}
.collab-main {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px;
  font-size: 13px;
}
.collab-brand { font-weight: 600; font-size: 13.5px; }
.collab-metrics {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.metric-chip {
  font-size: 11.5px;
  background: white;
  color: var(--ink-soft);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--border);
}
.metric-chip.metric-cost { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.collab-actions {
  display: flex; gap: 4px;
}
.collab-row .icon-btn {
  background: transparent;
  width: 26px; height: 26px;
}
.collab-row .icon-btn:hover { background: white; }
.collab-row .icon-btn.collab-del:hover { background: var(--error-bg); color: var(--error); }
.collab-row .icon-btn.spinning svg { animation: spin 1s linear infinite; }
.collab-form {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px !important;
  gap: 10px !important;
  margin-bottom: 6px;
}
.collab-form input, .collab-form select, .collab-form textarea {
  background: white !important;
  padding: 8px 11px !important;
  font-size: 13px !important;
}
.collab-form .row { gap: 10px !important; }
.collab-form label { font-size: 11px !important; }
.collab-form .form-actions { margin-top: 4px !important; }
.collab-form .btn.primary { padding: 7px 14px; font-size: 12.5px; }
.collab-form .btn.ghost { padding: 7px 12px; font-size: 12.5px; }

.btn.small { padding: 5px 10px; font-size: 11px; box-shadow: none; }

/* Staleness indicator + refresh in drawer profile block */
.profile-meta-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.profile-meta-row .detail-block-label { margin-bottom: 0; flex-shrink: 0; }
.staleness {
  font-size: 11px;
  color: var(--muted-2);
  font-weight: 500;
}
.staleness.fresh { color: var(--good); }
.staleness.stale { color: var(--warn); }
.staleness.very-stale { color: var(--error); }
.refresh-btn {
  width: 26px; height: 26px;
  margin-left: auto;
  background: var(--bg);
  border-radius: 50%;
  border: 0;
  display: grid; place-items: center;
  color: var(--ink-soft);
  cursor: pointer;
}
.refresh-btn:hover { background: var(--accent); color: var(--ink); }
.refresh-btn.spinning svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.optional-section {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.optional-section summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  user-select: none;
  padding: 2px 0;
  font-weight: 600;
}
.optional-section summary:hover { color: var(--ink); }
.optional-section[open] summary { margin-bottom: 12px; }

/* ── Drawer ──────────────────────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer.hidden { display: none; }
.drawer-backdrop {
  position: absolute; inset: 0;
  z-index: 1;
  background: rgba(13, 13, 13, 0.30);
  backdrop-filter: blur(2px);
  animation: fade 0.18s ease;
}
.drawer-card {
  position: absolute; right: 18px; top: 18px; bottom: 18px;
  z-index: 2;
  width: 560px; max-width: 95vw;
  background: var(--panel);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  animation: slide 0.22s ease;
  overflow: hidden;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
}
.drawer-head h2 {
  font-size: 22px; font-weight: 700; margin: 0;
  letter-spacing: -0.015em;
}
.drawer-eyebrow {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.drawer-body { padding: 22px 28px 28px; overflow-y: auto; flex: 1; }
.drawer-body .creator-form { padding: 0; }

.detail-block { margin-bottom: 20px; }
.detail-block-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-row-label { font-size: 11px; color: var(--muted); margin-bottom: 2px; font-weight: 500; }
.detail-row-value { font-weight: 600; font-size: 14px; }
.detail-link { color: var(--ink); border-bottom: 1.5px solid var(--accent); }
.detail-bio { color: var(--ink-soft); line-height: 1.6; font-size: 13px; }
.detail-error {
  background: var(--error-bg);
  color: var(--error);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 500;
}
