/* ═══════════════════════════════════════════════════════════════════
   Bella Figura — core styles (theme-agnostic)
   Resets/base + the admin/composer panel. Public-facing tokens and
   visual identity (palette, type, home/post/blog/about/portfolio/
   packages, lightbox/studio-modal/contact-modal) live in the active
   theme's stylesheet — see themes/<name>/theme.css, loaded alongside
   this file (both on public pages AND /admin, so admin inherits the
   theme's tokens/fonts but never its page-specific layout rules).

   Split rationale: "would Vanessa (a totally different Y2K it-girl
   theme) need to change it?" → theme. Admin stays identical across
   deployments → here. See docs/admin-restructure-plan.md Phase 4.
   ═══════════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── Admin / composer ────────────────────────────────────────────── */

/* Editors/analytics/content still render inside a comfortably-read
   column (unchanged from before the shell restructure); the shell itself
   (topbar + sidebar) goes full viewport width — see .admin-shell below,
   which overrides this max-width back out to 100%. */
.admin { max-width: max(80vw, 1160px); margin: 0 auto; padding: 50px var(--gutter) 80px; }

.admin-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--hairline);
}

/* ── Admin shell: full-width topbar + left sidebar ──────────────────
   .admin-shell overrides the constrained .admin width so the topbar and
   sidebar span the full viewport; .admin-main (where sections/editors
   render) re-applies a readable max-width so long-form editors don't
   stretch edge-to-edge on wide monitors. */
.admin-shell {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 var(--gutter);
  height: 64px;
  border-bottom: 1px solid var(--hairline);
  background: var(--box-bg);
  position: sticky;
  top: 0;
  z-index: 30;
}

.admin-topbar-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  flex: 0 0 auto;
}

.admin-topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.admin-topbar-link {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-3);
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.admin-topbar-link:hover { color: var(--accent); }
.admin-topbar-link.active { color: var(--accent); background: var(--blush); }

.admin-body {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 64px);
}

.admin-sidebar {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 30px 16px;
  border-right: 1px solid var(--hairline);
  position: sticky;
  top: 64px;
  align-self: flex-start;
}

.admin-sidebar-link {
  text-align: left;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .03em;
  color: var(--text-3);
  padding: 9px 12px;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.admin-sidebar-link:hover { color: var(--accent); }
.admin-sidebar-link.active { color: var(--accent); background: var(--blush); }

.admin-main {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
}

/* Editor (composer) mode: the sidebar is hidden (fullBleed) and the
   composer-shell's own 60/40 grid takes the whole viewport width — the
   1160px reading cap is for list/dashboard views, not the composer. */
.admin-main-full {
  max-width: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 900px) {
  .admin-body { flex-direction: column; }
  .admin-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--hairline);
    padding: 16px var(--gutter);
  }
  .admin-topbar { flex-wrap: wrap; height: auto; padding: 14px var(--gutter); }
}

/* ── Shared data table (Blog/Portfolio/Packages/Pages list views) ─── */
.data-table { margin-top: 24px; }
.data-table-head,
.data-table-row {
  display: grid;
  gap: 16px;
  align-items: center;
}
.data-table-head {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-4);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.data-table-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 15px;
}
.data-table-row .title { font-size: 16px; }
.data-table-actions { display: flex; gap: 10px; justify-self: end; }

@media (max-width: 760px) {
  .data-table-head { display: none; }
  .data-table-row { grid-template-columns: 1fr !important; gap: 4px; padding: 16px 0; }
  .data-table-actions { justify-self: start; margin-top: 8px; }
}

/* ── Categories manager (Sort · Label · Delete) ──────────────────────
   Same row rhythm as .data-table-head/.data-table-row (Published tables)
   so the categories list reads as one family with the rest of the admin. */
.cats-head,
.cats-row {
  display: grid;
  grid-template-columns: 90px 1fr 92px;
  gap: 16px;
  align-items: center;
}
.cats-head {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-4);
  padding-bottom: 10px;
  margin-top: 24px;
  border-bottom: 1px solid var(--hairline);
}
.cats-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.cats-row-actions { display: flex; justify-content: flex-end; }

/* ── Shared list-view header (Dashboard/Blog/Portfolio/Packages/Pages):
   title + sub on the left, the "New ___" action floated to the right. ── */
.dash-header-row,
.list-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.dash-header-row h1, .list-header-row h1 { margin-bottom: 8px; }
.dash-header-row .admin-sub, .list-header-row .admin-sub { margin-bottom: 0; }

/* ── Dashboard ───────────────────────────────────────────────────── */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.dash-panel-rows { margin-top: 12px; display: flex; flex-direction: column; }
.dash-panel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-family: var(--font-body);
}
.dash-panel-row:last-child { border-bottom: none; }
.dash-panel-row:hover .title { color: var(--accent); }
.dash-panel-row .title {
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}
.dash-panel-row .admin-msg { flex: 0 0 auto; }

.admin h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  margin-bottom: 8px;
}

.admin-sub { font-style: italic; color: var(--text-3); margin-bottom: 36px; }

.admin label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-4);
  margin: 22px 0 7px;
}

.admin input, .admin textarea, .admin select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--box-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 10px 13px;
}
.admin input:focus, .admin textarea:focus, .admin select:focus {
  outline: none;
  border-color: var(--accent);
}
.admin textarea { min-height: 110px; resize: vertical; line-height: 1.6; }

/* The Schedule field's native date/time picker renders its own digits —
   the serif body font (used by every other .admin input) looks out of
   place on a numeric picker widget; sans-serif reads as a UI control. */
.admin input[type="datetime-local"] { font-family: var(--font-ui); }

/* align-items: center (not the flex default of stretch) — a row's fields
   are usually different control types (e.g. ImageField's text input next to
   its Choose-photo button); stretch let a taller sibling's intrinsic box
   (native <input type=file> is a known offender) inflate a plain text
   input's rendered height to match it. Center keeps each control at its
   own natural height instead. */
.admin-row { display: flex; align-items: center; gap: 16px; }
.admin-row > * { flex: 1; }

.block-card, .credit-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px 20px 22px;
  margin-top: 14px;
}

.block-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.block-kind {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 6px 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: transparent;
  transition: all .3s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn svg { stroke: currentColor; }

.add-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.admin-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}

/* CategorySelect's inline "New category…" Add/Cancel row — no hairline
   (it already sits directly under the name input, not a section break),
   and Add/Cancel standardized to the same size/shape as each other (Add
   is .btn-dark, which otherwise renders larger than plain .btn-pill). */
.cat-select-actions {
  margin-top: 10px;
  padding-top: 0;
  border-top: none;
}
.cat-select-actions button {
  padding: 9px 18px;
  font-size: 10px;
}

.admin-msg { font-family: var(--font-ui); font-size: 12px; color: var(--text-3); }
.admin-msg.error { color: var(--accent-bright); }

/* Sitewide search: portfolio/page hits under the Blog results */
.search-elsewhere { margin-top: 70px; padding-top: 40px; border-top: 1px solid var(--hairline); display: grid; gap: 34px; }
.search-group .eyebrow { display: block; margin-bottom: 14px; }
.search-links { display: flex; flex-direction: column; gap: 2px; }
.search-hit {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 12px 2px; border-bottom: 1px solid var(--hairline-soft);
  text-decoration: none;
}
.search-hit-name { font-family: var(--font-display); font-size: 19px; }
.search-hit:hover .search-hit-name { color: var(--accent); }

/* Categories manager (bottom of the Entries tab) */
.cats-manager .admin-row { align-items: flex-end; }

.login-box { max-width: 380px; margin: 90px auto; }

.autocomplete { position: relative; }
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--hairline);
  border-top: none;
  max-height: 180px;
  overflow-y: auto;
}
.autocomplete-list button {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 8px 13px;
}
.autocomplete-list button:hover { background: var(--paper); }

.export-pre {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  background: var(--box-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 10px;
}

.post-admin-list { margin-top: 30px; }
.post-admin-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.post-admin-row .title { font-size: 17px; flex: 1; }
/* Status pill shape — shared by the Entries/Pages/Packages lists and the
   Analytics tab's per-entry table, so "Published"/"Draft"/"Scheduled"
   always read as a badge rather than plain text. Sized/shaped like
   .icon-btn (same font/size/radius/padding) but with no border, so it
   reads as a tag rather than a button. */
.status {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius);
}
.status.published { background: var(--accent); color: var(--paper); }
.status.draft { background: var(--blush); color: var(--accent); }
/* Scheduled: like a draft, but ringed in accent to read as "queued". */
.status.scheduled { background: var(--blush); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* ── Tag chip input (composer) ───────────────────────────────────── */
.tag-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--box-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 8px 10px;
}
.tag-input:focus-within { border-color: var(--accent); }
.tag-input input {
  flex: 1;
  min-width: 140px;
  border: none;
  background: transparent;
  padding: 4px 2px;
}
.tag-input input:focus { outline: none; border: none; }
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--accent);
  background: var(--blush);
  border-radius: var(--radius);
  padding: 5px 9px;
  transition: opacity .3s;
}
.tag-pill:hover { opacity: .75; }
.tag-pill svg { stroke: currentColor; }

/* ── Utility ─────────────────────────────────────────────────────── */

.loading {
  text-align: center;
  padding: 90px 0;
  font-style: italic;
  color: var(--text-4);
}

/* ── Responsive (admin-only) ──────────────────────────────────────── */

@media (max-width: 760px) {
  .admin-row { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════════════
   Phase 4 — Composer & analytics (live preview, analytics tab)
   Kept isolated at the end of the sheet so this phase's styles are easy
   to find/review/revert as a block.
   ═══════════════════════════════════════════════════════════════════ */

/* Live post preview: reuses .post-content's magazine typography (measure,
   drop cap, markdown styles) so keystrokes render exactly as the public
   page will, inside a boxed "draft" frame. */
.preview-pane {
  margin-top: 48px;
  padding: 34px var(--gutter) 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper);
}
.preview-pane .preview-label { display: block; margin-bottom: 18px; }
.preview-pane .post-head { margin-bottom: 30px; }
.preview-pane .post-content { padding-left: 0; }
.preview-pane .post-body { margin-top: 24px; }

.icon-btn.active { color: var(--accent); border-color: var(--accent); background: var(--blush); }

/* Analytics: stat cards reuse .block-card for a consistent admin look. */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
/* Analytics quick stats: Entries/Scheduled/Drafts/Views/Hearts/Shares
   as six equal blocks in one row (the admin's .admin is wide enough —
   max(80vw, 1160px) — that six 150px-min cards never need to wrap on a
   real screen). Falls back to a narrower fixed track below 900px rather
   than degenerating to one-per-row like the auto-fit default would. */
.stat-grid-6 { grid-template-columns: repeat(6, 1fr); }
.stat-card { margin-top: 0; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 34px;
  color: var(--ink);
  margin-top: 8px;
}
.stat-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-4);
}

/* Per-post analytics table: a CSS-grid "table" matching admin row spacing. */
.analytics-table { margin-top: 20px; }
.analytics-row {
  display: grid;
  grid-template-columns: 1fr 110px 80px 80px 80px;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.analytics-row.analytics-head {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-4);
  border-bottom: 1px solid var(--hairline);
}
.analytics-row .title { font-size: 15px; }

.sort-head {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-4);
  text-align: left;
  transition: color .3s;
}
.sort-head:hover { color: var(--accent); }
.sort-head.active { color: var(--accent); }

@media (max-width: 700px) {
  .analytics-row { grid-template-columns: 1fr 90px 60px 60px 60px; font-size: 13px; }
  .stat-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .stat-grid-6 { grid-template-columns: repeat(3, 1fr); }
}

/* Last-30-days trend: plain inline SVG bars, no chart library. */
.trend-bars { width: 100%; height: 90px; display: block; }

/* ═══════════════════════════════════════════════════════════════════
   Composer touch-ups — styled "Choose photo" button, remove-photo control
   ═══════════════════════════════════════════════════════════════════ */

/* Native <input type="file"> is visually hidden inside a styled label so
   the trigger matches the composer's other pill buttons instead of the
   browser's unstyled default control. */
.file-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 10px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--box-bg);
  cursor: pointer;
  transition: all .3s;
  white-space: nowrap;
}
.file-btn:hover { color: var(--accent); border-color: var(--accent); }
.file-btn input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════
   Phase 2 — Standardized composer shell (composer left / live preview
   right, 60/40). One shell for posts, portfolio, packages, and pages —
   see BS.ComposerShell in src/admin.jsx. Full-bleed (no sidebar; the
   Phase 1 fullBleed seam), sticky action bar, preview scaled to the
   public site's true content width instead of stretching to the pane.
   ═══════════════════════════════════════════════════════════════════ */

.composer-shell {
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: start;
  gap: 0;
  min-height: calc(100vh - 64px);
}

.composer-col {
  /* Centered within the 60% pane: the form keeps a readable measure while
     the pane itself spans the full viewport (admin-main-full). */
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 34px var(--gutter) 120px;
}

.composer-preview-col {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  padding: 0;
  background: var(--paper);
  border-left: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
}

.composer-preview-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter) 14px;
  border-bottom: 1px solid var(--hairline);
  background: var(--box-bg);
}

.composer-preview-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 40px 24px 80px;
  display: flex;
  justify-content: center;
}

/* The preview stage renders the public page's real markup at ITS true
   on-site width (--maxw's inner column, ~1100px), then is scaled down as
   a whole with a CSS transform to fit the 40% pane — this is what makes
   "preview = reality" true down to line-wrapping and photo crops, rather
   than a narrower re-layout that only resembles the site. */
.composer-preview-stage {
  width: 680px;
  flex: 0 0 auto;
  transform-origin: top center;
  background: var(--paper);
}
.composer-preview-stage .wrap { padding-left: 40px; padding-right: 40px; }

/* Collapse the preview's dek→content gap to one. The public post page
   stacks THREE independent spacers back to back — .post-head's bottom
   margin, .post-content's top padding, and .post-body's top margin — which
   is invisible on the real site (only one of those transitions has no
   photo between it) but reads as an oversized dead-space gap here when a
   post has no cover photo. Zero the two inner spacers so .post-head's
   margin (or .post-lead's, when a cover photo is set) is the only gap.
   Scoped to the preview stage only — never touches the public post page. */
.composer-preview-stage .post-content { padding-top: 0; }
.composer-preview-stage .post-body { margin-top: 0; }

@media (max-width: 1100px) {
  .composer-shell { grid-template-columns: 1fr; }
  .composer-preview-col {
    position: static;
    height: auto;
    border-left: none;
    border-top: 1px solid var(--hairline);
  }
  .composer-preview-scroll { padding: 24px var(--gutter) 60px; }
  .composer-preview-stage { width: 100%; transform: none !important; }
}

/* Sticky standardized action bar (Publish/Save · Save as draft · Schedule)
   — shared shape for all four composers. */
.composer-actionbar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding: 16px var(--gutter);
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  background: var(--cream-62);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--hairline);
}
.composer-actionbar .admin-msg { margin-left: 4px; }
.composer-actionbar-spacer { flex: 1 1 auto; }

/* Standardize the action bar's buttons to one size/shape regardless of
   color — the theme's .btn-dark variant (used by Publish/Save) overrides
   .btn-pill's padding/font-size for emphasis elsewhere on the site, which
   made it visibly taller/wider than the plain .btn-pill "Save as draft"/
   "Schedule" buttons sitting right next to it. Reassert .btn-pill's own
   sizing here so every action-bar button matches; colors are untouched. */
.composer-actionbar .composer-btn {
  padding: 9px 18px;
  font-size: 10px;
}

.composer-status-pill {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--text-3);
}
.composer-status-pill.is-saving { color: var(--text-4); }
.composer-status-pill.is-error { color: var(--accent-bright); border-color: var(--accent-bright); }
.composer-status-pill.is-saved { color: var(--accent); border-color: var(--blush); background: var(--blush); }

/* Reorder controls used by credits + portfolio photos (mirrors block-card's
   move-up/move-down convention). */
.reorder-controls { display: flex; gap: 6px; flex: 0 0 auto; }

/* Markdown quick-reference: syntax → rendered result, two columns. */
.md-help {
  margin-top: 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--box-bg);
  overflow: hidden;
}
.md-help-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--hairline-soft);
  align-items: center;
}
.md-help-row:last-child { border-bottom: none; }
.md-help-syntax {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}
.md-help-result {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-3);
}

/* Cross-post opt-ins (only rendered when an integration is connected). */
.crosspost-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

/* Portfolio photo-list rows (photo + alt + reorder + remove). */
.photo-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px 18px;
  margin-top: 12px;
}
.photo-row > .photo-row-fields { flex: 1 1 auto; min-width: 0; }
