/* =============================================================
   Folio Index — design system
   ============================================================= */
:root {
  --bg: #fbfaf7;
  --bg-2: #f4f1ea;
  --surface: #ffffff;
  --fg: #1a1a1a;
  --fg-2: #3a3a3a;
  --muted: #6f6a62;
  --muted-l: #8a857c;
  --line: #e7e2d6;
  --line-2: #d8d3c5;
  --accent: #D85A3A;
  --green: #1F8A5B;

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 22px;

  --gap: 28px;
  --row-gap: 18px;

  --shadow-sm: 0 1px 2px rgba(20, 18, 12, 0.04), 0 1px 1px rgba(20, 18, 12, 0.03);
  --shadow: 0 1px 2px rgba(20, 18, 12, 0.04), 0 10px 30px -12px rgba(20, 18, 12, 0.08);
  --shadow-lg: 0 1px 2px rgba(20, 18, 12, 0.04), 0 30px 60px -20px rgba(20, 18, 12, 0.16);
}

html[data-theme="dark"] {
  --bg: #0e0d0a;
  --bg-2: #15140f;
  --surface: #18170f;
  --fg: #ece8df;
  --fg-2: #c9c3b5;
  --muted: #948e80;
  --muted-l: #6f6a5d;
  --line: #2a2820;
  --line-2: #38352a;
  --shadow: 0 1px 2px rgba(0,0,0,0.5), 0 10px 30px -12px rgba(0,0,0,0.6);
  --shadow-lg: 0 1px 2px rgba(0,0,0,0.5), 0 30px 60px -20px rgba(0,0,0,0.7);
}

html[data-density="compact"] {
  --gap: 18px;
  --row-gap: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11", "cv05";
}

img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; background: none; border: 0; outline: 0; }
em { font-style: italic; font-family: var(--serif); font-weight: 400; }
.mono { font-family: var(--mono); font-feature-settings: "ss02", "ss03"; letter-spacing: -0.01em; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.muted-l { color: var(--muted-l); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: 56px; }
h2 { font-size: 36px; }
h3 { font-size: 20px; letter-spacing: -0.015em; }

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin-right: 6px; vertical-align: middle; }
.dot-green { background: var(--green); box-shadow: 0 0 0 3px color-mix(in oklab, var(--green) 20%, transparent); }

/* ===== Buttons ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-icon { display: inline-flex; }
.btn-icon svg { width: 13px; height: 13px; }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: color-mix(in oklab, var(--fg) 88%, var(--accent)); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--line-2); }
.btn-danger { color: #b91c1c; border: 1px solid #f1c2c2; background: #fff7f7; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.icon-btn {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  position: relative;
  color: var(--fg-2);
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--bg-2); color: var(--fg); }

/* ===== Chips ============================================================== */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--fg-2);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { background: var(--bg-2); border-color: var(--line-2); }
.chip-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip-static { cursor: default; }
.chip-static:hover { background: transparent; border-color: var(--line); }
.chip-removable span:last-child { color: var(--muted-l); margin-left: 3px; }
.chip-suggest { background: var(--bg-2); border-color: transparent; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ===== Top nav ============================================================ */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.topnav-l { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.logo-mark { display: inline-flex; }
.logo-word { font-family: var(--serif); font-size: 18px; letter-spacing: -0.02em; }
.topnav-c { display: flex; gap: 4px; justify-self: start; }
.topnav-c button {
  padding: 7px 12px; border-radius: 999px;
  font-size: 13.5px; color: var(--fg-2);
}
.topnav-c button:hover { background: var(--bg-2); }
.topnav-c button.on { color: var(--fg); background: var(--bg-2); }
.topnav-r { display: flex; align-items: center; gap: 6px; }
.topnav-search {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
  background: var(--surface);
}
.topnav-search:hover { background: var(--bg-2); }
.topnav-search kbd { font-size: 11px; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted-l); }

.avatar-menu { position: relative; cursor: pointer; padding-left: 4px; }
.dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: flex; flex-direction: column;
  z-index: 100;
}
.dropdown-h {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.dropdown button {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13.5px; text-align: left;
  color: var(--fg-2);
}
.dropdown button:hover { background: var(--bg-2); color: var(--fg); }
.dropdown button svg { color: var(--muted); }
.dropdown-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* ===== Bottom nav (mobile) ================================================ */
.bottomnav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
  padding: 8px 0 calc(env(safe-area-inset-bottom) + 8px);
}
.bottomnav button {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 0; font-size: 10px;
  color: var(--muted);
}
.bottomnav button.on { color: var(--fg); }
.bottomnav button svg { width: 18px; height: 18px; }

/* ===== Layout shell ======================================================= */
.app { min-height: 100vh; }
.main { max-width: 1400px; margin: 0 auto; padding: 0 28px 80px; }

/* =========================================================================
   LANDING
   ========================================================================= */
.landing {}
.landing-strip {
  text-align: center;
  font-size: 12px; color: var(--muted);
  padding: 22px 0 10px;
}
.strip-dot { margin: 0 8px; color: var(--line-2); }

.hero {
  position: relative;
  padding: 80px 0 100px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-title { font-size: clamp(56px, 7.5vw, 116px); line-height: 0.96; letter-spacing: -0.035em; }
.hero-line { display: block; }
.hero-line em { display: inline-block; }
.hero-sub { max-width: 460px; font-size: 18px; color: var(--fg-2); margin: 28px 0 32px; line-height: 1.45; text-wrap: pretty; }
.hero-cta { display: flex; gap: 10px; }
.hero-meta {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 4px 0;
  align-items: center;
  font-size: 12.5px; color: var(--muted);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(0.6deg);
  cursor: pointer;
  transition: transform .2s ease;
}
.hero-card:hover { transform: rotate(0) translateY(-4px); }
.hero-card-banner { height: 110px; }
.hero-card-body {
  padding: 16px 20px 12px;
  margin-top: -32px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: end;
}
.hero-card-meta h4 { font-size: 18px; font-family: var(--serif); }
.hero-card-meta p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.hero-card-tags {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
  padding-top: 8px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.hero-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 0 8px 8px; }
.hero-card-grid > div { aspect-ratio: 4/3; border-radius: 6px; }

/* Features */
.features { padding: 40px 0 60px; border-top: 1px solid var(--line); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.feature-card .feature-kicker { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.feature-card h3 { font-size: 24px; font-family: var(--serif); margin: 16px 0 10px; text-wrap: balance; }
.feature-card p { color: var(--fg-2); font-size: 14.5px; }

/* Section wrap */
.section-wrap { padding: 60px 0; border-top: 1px solid var(--line); }
.block-h {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 32px;
}
.block-h h2 { font-size: 44px; margin-top: 6px; }
.link-arrow { font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; color: var(--fg-2); }
.link-arrow:hover { color: var(--accent); }
.link-arrow svg { width: 13px; height: 13px; }

.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.people-card {
  background: var(--surface);
  padding: 24px 22px;
  cursor: pointer;
  transition: background .15s ease;
}
.people-card:hover { background: var(--bg-2); }
.people-card-top { display: flex; gap: 12px; align-items: center; }
.people-card-name { font-family: var(--serif); font-size: 20px; line-height: 1.1; }
.people-card-role { font-size: 13px; color: var(--muted); margin-top: 2px; }
.people-card-bio {
  margin: 16px 0 18px;
  font-size: 14px;
  color: var(--fg-2);
  text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.people-card-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-l); }

.pull {
  padding: 100px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.pull blockquote {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15; letter-spacing: -0.02em;
  max-width: 900px; margin: 0 auto;
  text-wrap: balance;
}
.quote-mark { color: var(--accent); font-size: 1.4em; line-height: 0; vertical-align: -0.2em; margin-right: 6px; }
.pull cite { display: block; margin-top: 28px; font-size: 13px; color: var(--muted); font-style: normal; font-family: var(--mono); }

.closer {
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.closer h2 { font-size: clamp(56px, 7vw, 96px); letter-spacing: -0.03em; }
.closer p { color: var(--muted); margin: 16px 0 32px; }
.closer-url { margin-top: 28px; font-size: 14px; color: var(--muted); }
.closer-blink::after { content: "|"; animation: blink 1s steps(1) infinite; margin-left: 1px; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

.foot { padding: 50px 0 30px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; gap: 60px; align-items: start; font-size: 13px; color: var(--muted); }
.foot-l { display: flex; align-items: center; gap: 8px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.foot-cols div { display: flex; flex-direction: column; gap: 4px; }
.foot-cols strong { color: var(--fg); font-weight: 500; margin-bottom: 6px; font-size: 12px; }
.foot-cols a { color: var(--fg-2); }

/* =========================================================================
   PROFILE
   ========================================================================= */
.profile { margin-top: -1px; }
.profile-banner {
  height: 220px;
  margin: 0 -28px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.profile-banner-stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,0.06) 14px 15px);
}
.profile-shell { max-width: 980px; margin: -80px auto 0; position: relative; }
.profile-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.profile-head-l { display: flex; gap: 22px; align-items: end; }
.profile-id h1 { font-size: 48px; margin-bottom: 4px; }
.profile-handle { display: flex; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.profile-meta { display: flex; gap: 18px; font-size: 13.5px; color: var(--fg-2); }
.profile-meta span { display: inline-flex; align-items: center; gap: 6px; }
.profile-meta svg { color: var(--muted); }
.avail { display: inline-flex; align-items: center; }
.profile-head-r { display: flex; align-items: center; gap: 6px; padding-bottom: 4px; }

.profile-bio {
  margin: 32px 0 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.profile-bio p { max-width: 640px; font-size: 16px; line-height: 1.55; text-wrap: pretty; color: var(--fg); }
.profile-links { display: flex; flex-direction: column; gap: 4px; }
.prof-link {
  font-size: 13px; color: var(--fg-2);
  display: inline-flex; align-items: center; gap: 5px;
  text-decoration: none;
  cursor: pointer;
}
.prof-link:hover { color: var(--accent); }
.prof-link svg { color: var(--muted-l); }

.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 16px 0 28px; }
.stat { padding: 18px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value { font-family: var(--serif); font-size: 28px; letter-spacing: -0.02em; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

.profile-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 32px; overflow-x: auto; }
.tab {
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--muted);
  position: relative;
  white-space: nowrap;
}
.tab:hover { color: var(--fg-2); }
.tab-active { color: var(--fg); }
.tab-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 1.5px; background: var(--fg); }

.profile-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; }
.section-h { display: flex; justify-content: space-between; align-items: baseline; padding: 24px 0 12px; }
.section-h h3 { font-size: 13px; font-family: var(--mono); color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.section-count { margin-left: 8px; color: var(--muted-l); font-weight: 400; }

.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.timeline-item { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.timeline-yrs { color: var(--muted); font-size: 12.5px; padding-top: 2px; }
.timeline-role { font-size: 17px; }
.timeline-org { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.timeline-body p { color: var(--fg-2); font-size: 14px; margin: 8px 0 0; max-width: 56ch; text-wrap: pretty; }

.side-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.side-list li { border-top: 1px solid var(--line); padding-top: 14px; }
.side-name { font-size: 15px; display: flex; align-items: baseline; gap: 8px; }
.side-year { color: var(--muted-l); font-size: 12px; }
.side-note { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.side-list-lg li { padding-top: 24px; }
.side-list-lg .side-name { font-size: 22px; font-family: var(--serif); }

.now-note { font-family: var(--serif); font-size: 18px; line-height: 1.4; text-wrap: pretty; color: var(--fg); }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
.project-card { cursor: pointer; }
.project-meta { padding: 14px 2px 0; }
.project-title { font-family: var(--serif); font-size: 18px; }
.project-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; letter-spacing: 0.08em; text-transform: uppercase; }

.cover { width: 100%; border-radius: 8px; overflow: hidden; position: relative; background: var(--bg-2); }
.cover::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 24px, rgba(255,255,255,0.04) 24px 25px);
  pointer-events: none;
}
.cover-meta { position: absolute; bottom: 12px; left: 12px; display: flex; gap: 8px; color: rgba(255,255,255,0.85); font-family: var(--mono); font-size: 11px; }

.empty-pane { padding: 8px 0 60px; }
.writing-list { list-style: none; padding: 0; margin: 0; }
.writing-list li { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); cursor: pointer; }
.writing-list li:hover .writing-title { color: var(--accent); }
.writing-date { color: var(--muted); font-size: 12px; padding-top: 4px; }
.writing-title { font-family: var(--serif); font-size: 24px; margin-bottom: 6px; transition: color .15s; }
.writing-list p { margin: 0; color: var(--fg-2); font-size: 14px; text-wrap: pretty; max-width: 56ch; }

.collections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.coll-card { cursor: pointer; }
.coll-stack { position: relative; aspect-ratio: 4/3; }
.coll-thumb { position: absolute; inset: 0; border-radius: 8px; box-shadow: var(--shadow); }
.coll-thumb:nth-child(1) { transform: translate(-10px, 8px) rotate(-2deg); }
.coll-thumb:nth-child(2) { transform: translate(0, 0) rotate(0); }
.coll-thumb:nth-child(3) { transform: translate(10px, -6px) rotate(2deg); }
.coll-meta { margin-top: 16px; }
.coll-title { font-family: var(--serif); font-size: 18px; }
.coll-count { font-size: 11.5px; color: var(--muted); margin-top: 3px; letter-spacing: 0.06em; text-transform: uppercase; }

/* =========================================================================
   PROJECT
   ========================================================================= */
.project-page-bar { display: flex; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--line); margin: 0 0 40px; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--fg-2); }
.back-btn:hover { color: var(--fg); }
.proj-share { display: flex; gap: 6px; }

.project-article { max-width: 920px; margin: 0 auto; }
.proj-header { padding-bottom: 40px; }
.proj-header h1 { font-size: clamp(48px, 6vw, 88px); margin: 12px 0 20px; letter-spacing: -0.03em; }
.proj-lede { font-size: 20px; color: var(--fg-2); max-width: 640px; line-height: 1.4; text-wrap: pretty; }
.proj-credits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.proj-credits > div { padding: 18px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.proj-credits > div:last-child { border-right: 0; }

.proj-hero {
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  margin: 20px 0 40px;
  position: relative; overflow: hidden;
}
.proj-hero-label {
  position: absolute; bottom: 14px; left: 16px;
  font-size: 11px; color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
}

.proj-prose { max-width: 640px; margin: 40px auto; }
.proj-prose h2 { font-size: 32px; margin: 28px 0 16px; }
.proj-prose p { font-size: 17px; line-height: 1.55; color: var(--fg); text-wrap: pretty; margin: 0 0 18px; }

.proj-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 40px 0; }
.proj-img { aspect-ratio: 4/3; border-radius: var(--r); position: relative; overflow: hidden; }
.proj-img-wide { aspect-ratio: 16/9; margin: 40px 0; }

.proj-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 40px 0 80px; }
.proj-foot-author { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer; transition: background .15s; }
.proj-foot-author:hover { background: var(--bg-2); }
.muted-l.mono { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.proj-foot-name { font-family: var(--serif); font-size: 20px; }
.proj-foot-role { font-size: 13px; color: var(--muted); }
.proj-foot-actions { display: flex; gap: 8px; margin-top: 16px; }

/* =========================================================================
   EXPLORE
   ========================================================================= */
.explore { padding-top: 28px; }
.explore-head { padding: 28px 0 32px; }
.explore-head h1 { font-size: clamp(48px, 6vw, 88px); margin: 12px 0 16px; letter-spacing: -0.03em; }
.explore-lede { color: var(--muted); max-width: 480px; }

.explore-bar { margin: 32px 0 18px; }
.search {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  max-width: 640px;
}
.search input { flex: 1; font-size: 15px; }
.search input::placeholder { color: var(--muted-l); }
.search kbd { font-size: 11px; color: var(--muted); padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; }
.search svg { color: var(--muted); width: 16px; height: 16px; }

.explore-filters { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 28px; gap: 12px; flex-wrap: wrap; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.view-toggle button { width: 32px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--muted); }
.view-toggle button.on { background: var(--fg); color: var(--bg); }

.explore-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.explore-card { background: var(--surface); cursor: pointer; transition: background .15s; }
.explore-card:hover { background: var(--bg-2); }
.explore-card-banner { height: 70px; }
.explore-card-body { padding: 0 20px 22px; margin-top: -28px; }
.explore-card-body h3 { font-size: 18px; margin: 12px 0 2px; }
.explore-card-role { font-size: 12.5px; color: var(--fg-2); }
.explore-card-loc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.explore-card-avail { font-size: 11.5px; color: var(--muted); margin-top: 10px; display: inline-flex; align-items: center; }

.explore-list { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.explore-row { display: grid; grid-template-columns: auto 1.4fr 1.4fr 1fr 1.2fr auto; gap: 18px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.explore-row:last-child { border-bottom: 0; }
.explore-row:hover { background: var(--bg-2); }
.row-name { font-size: 14.5px; }
.row-handle { font-size: 11.5px; color: var(--muted); }
.row-role, .row-loc, .row-avail { font-size: 13px; color: var(--fg-2); }

.explore-collections { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--line); }

/* =========================================================================
   EDITOR
   ========================================================================= */
.editor-page { margin: 0 -28px; }
.editor-bar {
  position: sticky; top: 57px; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 12px 28px;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.editor-bar-c { text-align: center; font-size: 13px; }
.editor-bar-c .kicker { display: block; }
.editor-bar-r { display: flex; justify-content: end; align-items: center; gap: 8px; }
.save-state { font-size: 12px; display: inline-flex; align-items: center; }

.editor-shell { display: grid; grid-template-columns: 220px 1fr 320px; gap: 0; min-height: calc(100vh - 200px); }
.editor-nav { padding: 28px 18px 28px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; position: sticky; top: 110px; align-self: start; }
.editor-nav-item { padding: 8px 12px; text-align: left; border-radius: 6px; font-size: 13.5px; color: var(--fg-2); display: flex; justify-content: space-between; }
.editor-nav-item:hover { background: var(--bg-2); }
.editor-nav-item.on { background: var(--bg-2); color: var(--fg); }

.editor-main { padding: 36px 32px; max-width: 720px; }
.editor-pane h2 { font-size: 32px; margin-bottom: 8px; }
.editor-pane .muted { margin-bottom: 24px; }
.editor-pane > * + * { margin-top: 18px; }

.editor-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.field-input-wrap { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 10px 12px; transition: border-color .15s; }
.field-input-wrap:focus-within { border-color: var(--fg-2); }
.field-input-wrap input, .field-input-wrap textarea { flex: 1; font-size: 14px; }
.field-input-wrap textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.field-suffix { font-size: 12px; }
.field-hint { font-size: 12px; color: var(--muted-l); }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: 8px; }
.seg-btn { padding: 6px 12px; border-radius: 6px; font-size: 13px; color: var(--fg-2); display: inline-flex; align-items: center; }
.seg-btn:hover { color: var(--fg); }
.seg-on { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm); }

.editor-rows { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 4px; }
.editor-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.editor-drag { color: var(--muted-l); cursor: grab; }
.editor-row-grid { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 10px; }
.editor-row-grid input { font-size: 13.5px; padding: 4px 6px; border-radius: 6px; }
.editor-row-grid input:hover { background: var(--bg-2); }
.editor-yrs { color: var(--muted); }

.chip-row-edit { padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.chip-input { font-size: 13px; min-width: 100px; flex: 1; padding: 4px; }

.rich-editor { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.rich-title { width: 100%; padding: 28px 32px 6px; font-family: var(--serif); font-size: 36px; letter-spacing: -0.02em; }
.rich-meta { padding: 0 32px 16px; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.rich-body { padding: 0 32px 24px; }
.rich-body p { font-size: 16px; line-height: 1.55; margin: 0 0 18px; }
.slash-trigger { color: var(--muted); cursor: pointer; padding: 8px 0; font-size: 13.5px; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); display: inline-flex; align-items: center; gap: 8px; }
.slash-trigger:hover { color: var(--accent); }
.slash-trigger .mono { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 4px; background: var(--bg-2); }
.slash-menu { margin-top: 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); box-shadow: var(--shadow); }
.slash-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; font-size: 13px; text-align: left; }
.slash-item:hover { background: var(--bg-2); }
.slash-glyph { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.rich-tools { display: flex; align-items: center; gap: 6px; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--bg-2); }
.rich-tools button { font-size: 13px; padding: 4px 10px; border-radius: 6px; color: var(--fg-2); }
.rich-tools button:hover { background: var(--surface); color: var(--fg); }
.rich-sep { width: 1px; height: 18px; background: var(--line); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; cursor: pointer; position: relative; transition: transform .12s; }
.swatch:hover { transform: scale(1.06); }
.swatch-on::after { content: ""; position: absolute; inset: -4px; border: 1.5px solid var(--fg); border-radius: 50%; }
.swatches-lg .swatch { width: 48px; height: 48px; }

.editor-proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.editor-proj-card { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; background: var(--surface); }
.editor-proj-meta { display: flex; justify-content: space-between; padding: 10px 4px 8px; font-size: 13.5px; }
.editor-proj-actions { display: flex; gap: 12px; padding: 0 4px; font-size: 12px; }
.editor-proj-actions button { color: var(--muted); }
.editor-proj-actions button:hover { color: var(--fg); }
.editor-proj-add { aspect-ratio: 4/3; border: 1.5px dashed var(--line-2); border-radius: var(--r); color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; }
.editor-proj-add:hover { background: var(--bg-2); color: var(--fg); }

.editor-preview { padding: 28px 28px 28px 0; border-left: 1px solid var(--line); position: sticky; top: 110px; align-self: start; }
.editor-preview .kicker { margin-bottom: 12px; padding-left: 24px; }
.preview-card { margin-left: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.preview-banner { height: 60px; }
.preview-body { padding: 0 18px 18px; margin-top: -22px; }
.preview-body h3 { font-size: 18px; margin: 8px 0 2px; }
.preview-bio { font-size: 12.5px; color: var(--fg-2); margin: 10px 0 12px; line-height: 1.45; }
.preview-avail { font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; }

/* =========================================================================
   ONBOARDING
   ========================================================================= */
.onb-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center;
  padding: 28px;
}
.onb-back { font-size: 13px; color: var(--muted); align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; }
.onb-card {
  width: 100%; max-width: 540px;
  margin-top: 6vh;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.onb-progress { display: flex; gap: 4px; margin-bottom: 28px; }
.onb-step { flex: 1; padding: 10px 12px; border-radius: 8px; background: var(--bg-2); font-size: 12px; color: var(--muted-l); display: flex; flex-direction: column; gap: 2px; }
.onb-step-n { font-size: 10px; }
.onb-step.on { background: var(--fg); color: var(--bg); }
.onb-step.done { color: var(--fg-2); }
.onb-pane > * + * { margin-top: 18px; }
.onb-pane h1 { font-size: 40px; }
.onb-actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.link-quiet { font-size: 13px; color: var(--muted); }
.link-quiet:hover { color: var(--fg); }
.onb-sso { display: flex; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 8px; }
.sso-btn { flex: 1; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.sso-btn:hover { background: var(--bg-2); }

.suggestion-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }

.onb-preview { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--r-lg); }
.onb-preview h3 { font-size: 22px; }
.onb-preview p { margin: 2px 0; font-size: 13px; color: var(--fg-2); }
.onb-preview .mono { color: var(--muted); }

/* =========================================================================
   SETTINGS
   ========================================================================= */
.settings-page { padding-top: 28px; }
.settings-page .page-head { padding-bottom: 24px; }
.settings-shell { display: grid; grid-template-columns: 220px 1fr; gap: 0; min-height: 60vh; }
.settings-nav { padding: 28px 18px 28px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.settings-main { padding: 28px 0 28px 32px; max-width: 720px; }
.toggle-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.toggle-row.simple { border-top: 0; padding: 10px 0; }
.toggle-group { display: flex; gap: 14px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-2); cursor: pointer; }
.check input { accent-color: var(--fg); }
.conn-row { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.conn-name { font-weight: 500; }
.plan-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.plan-card .kicker { margin-bottom: 6px; }
.plan-card h3 { font-size: 26px; margin-bottom: 14px; }
.plan-card ul { padding: 0 0 16px 18px; color: var(--fg-2); font-size: 14px; }
.plan-card li { margin: 4px 0; }
.danger-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.danger-row p { margin: 4px 0 0; font-size: 13px; }

/* =========================================================================
   DASHBOARD
   ========================================================================= */
.dash-page { padding-top: 32px; }
.dash-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.dash-head h1 { font-size: 40px; margin-top: 4px; }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dash-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.dash-card-wide { grid-column: span 3; }
.dash-stat { font-family: var(--serif); font-size: 48px; letter-spacing: -0.025em; margin-top: 14px; }
.dash-stat-label { font-size: 13px; color: var(--muted); }
.dash-stat-label .up { color: var(--green); margin-left: 6px; font-family: var(--mono); font-size: 12px; }
.spark { margin-top: 14px; opacity: 0.9; }
.draft-list { list-style: none; padding: 0; margin: 0; }
.draft-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.draft-list li:last-child { border-bottom: 0; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table td { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dash-table tr:last-child td { border-bottom: 0; }
.num { text-align: right; color: var(--muted); }

/* Dashboard — content hub */
.dash-head-actions { display: flex; gap: 8px; align-items: center; }
.dash-sub { margin: 8px 0 0; max-width: 56ch; }
.dash-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.dash-tabs .tab { padding: 14px 16px 16px; position: relative; font-size: 14px; }
.dash-body { padding-bottom: 80px; }

.dash-overview { display: flex; flex-direction: column; gap: 20px; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dash-stat-card { padding: 18px 20px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.dash-stat-card .dash-stat { font-size: 34px; margin-top: 10px; line-height: 1; }
.dash-stat-card .dash-stat-label { font-size: 12.5px; margin-top: 6px; }
.spark-sm { display: block; width: 100%; height: 32px; margin-top: 12px; opacity: 0.85; }

.dash-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.draft-list li > div:first-child { min-width: 0; }
.dash-quick-add {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px dashed var(--line-2); border-radius: 8px;
  color: var(--fg-2); font-size: 13px;
}
.dash-quick-add:hover { background: var(--bg-2); border-style: solid; }
.dash-quick-add svg { width: 13px; height: 13px; }

.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-list li {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 12px; align-items: center; padding: 10px 0;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.activity-list li:last-child { border-bottom: 0; }

/* Status pills */
.status-pill {
  display: inline-flex; align-items: center; font-size: 11.5px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--fg-2);
  padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
}
.status-pill .dot { width: 6px; height: 6px; }

/* Compose row (writing tab) */
.dash-compose {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 14px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); cursor: text; margin-bottom: 18px;
  transition: border-color .15s, background .15s;
}
.dash-compose:hover { border-color: var(--line-2); background: var(--bg-2); }
.dash-compose-input { display: flex; justify-content: space-between; align-items: baseline; }
.dash-compose-input .serif { font-family: var(--serif); font-size: 19px; color: var(--muted); }
.dash-compose-input kbd { font-family: var(--mono); font-size: 10.5px; padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; }

/* CMS toolbar */
.cms-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.cms-toolbar-l { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cms-toolbar-r { display: flex; gap: 8px; align-items: center; }
.cms-search {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted-l); min-width: 220px;
}
.cms-search input { flex: 1; font-size: 13px; color: var(--fg); }
.cms-search input::placeholder { color: var(--muted-l); }
.cms-filters { display: inline-flex; gap: 2px; }
.cms-filter {
  padding: 7px 12px; border-radius: 999px; font-size: 13px; color: var(--fg-2);
  display: inline-flex; align-items: center;
}
.cms-filter:hover { background: var(--bg-2); }
.cms-filter.on { background: var(--fg); color: var(--bg); }
.cms-filter.on .muted-l { color: color-mix(in oklab, var(--bg) 70%, transparent); }

/* CMS table */
.cms-table { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.cms-row {
  display: grid;
  grid-template-columns: 56px 1fr 130px 90px 90px 120px 110px;
  align-items: center; gap: 16px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background .15s;
  font-size: 14px;
}
.cms-row:last-child { border-bottom: 0; }
.cms-row:hover { background: var(--bg-2); }
.cms-row.cms-head {
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted-l); cursor: default; background: var(--bg-2);
}
.cms-row.cms-head:hover { background: var(--bg-2); }
.cms-row-writing { grid-template-columns: 1fr 130px 80px 90px 120px 110px; }
.cms-thumb { width: 56px; height: 42px; border-radius: 6px; position: relative; }
.cms-thumb::after {
  content: ""; position: absolute; inset: 0; border-radius: 6px;
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(255,255,255,0.05) 12px 13px);
  pointer-events: none;
}
.cms-title { font-size: 14.5px; color: var(--fg); }
.cms-title.serif { font-family: var(--serif); font-size: 18px; letter-spacing: -0.01em; }
.cms-actions { display: inline-flex; gap: 4px; align-items: center; justify-content: flex-end; }

/* CMS grid */
.cms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cms-card {
  display: flex; flex-direction: column; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden; transition: border-color .15s;
  cursor: pointer;
}
.cms-card:hover { border-color: var(--line-2); }
.cms-card-cover {
  aspect-ratio: 4/3; position: relative; padding: 12px;
  display: flex; align-items: flex-start; justify-content: flex-end;
}
.cms-card-cover::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,0.05) 22px 23px);
  pointer-events: none;
}
.cms-card-body { padding: 14px 16px 0; }
.cms-card-foot {
  display: flex; gap: 12px; padding: 12px 16px 14px; margin-top: auto;
  border-top: 1px dashed var(--line); margin-top: 14px;
  font-size: 13px;
}
.cms-card-add {
  align-items: center; justify-content: center;
  padding: 36px 20px; gap: 8px;
  background: transparent; border-style: dashed; color: var(--muted);
}
.cms-card-add:hover { background: var(--bg-2); color: var(--fg-2); }
.cms-add-glyph {
  width: 38px; height: 38px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg-2);
}

/* Collections grid */
.coll-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.coll-card {
  display: flex; flex-direction: column; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden;
}
.coll-card:hover { border-color: var(--line-2); }
.coll-cover {
  aspect-ratio: 16/10; position: relative;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 14px;
}
.coll-cover::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,0.05) 22px 23px);
  pointer-events: none;
}
.coll-cover-count {
  position: relative; z-index: 1;
  padding: 4px 10px; border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--fg);
}
.coll-body { padding: 16px 18px 6px; }
.coll-title { font-size: 22px; letter-spacing: -0.01em; }
.coll-note { font-size: 13px; margin: 4px 0 12px; }
.coll-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.coll-foot {
  display: flex; gap: 14px; padding: 14px 18px;
  border-top: 1px dashed var(--line); margin-top: 12px;
  font-size: 13px;
}
.coll-card-add { cursor: pointer; }
.coll-add-cover {
  aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); border-bottom: 1px dashed var(--line);
}

/* Shared text helpers used across screens */
.feed-name { font-weight: 500; }

/* =========================================================================
   PERSON ROW
   ========================================================================= */
.person-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 0; cursor: pointer; }
.person-row-text { min-width: 0; }
.person-row-name { font-size: 14.5px; display: flex; align-items: baseline; gap: 6px; }
.person-row-handle { font-family: var(--mono); font-size: 11.5px; color: var(--muted-l); }
.person-row-role { font-size: 12.5px; color: var(--muted); }

/* =========================================================================
   TWEAKS jump buttons
   ========================================================================= */
.tweak-jump { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 12px; color: var(--fg-2); cursor: pointer; }
.tweak-jump:hover { background: var(--bg-2); }

/* =========================================================================
   PAGE HEAD
   ========================================================================= */
.page-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 40px; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 980px) {
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-two { grid-template-columns: 1fr; }
  .cms-grid, .coll-grid { grid-template-columns: 1fr 1fr; }
  .cms-row { grid-template-columns: 48px 1fr auto auto; }
  .cms-row > :nth-child(4), .cms-row > :nth-child(5), .cms-row > :nth-child(6) { display: none; }
  .cms-row-writing { grid-template-columns: 1fr auto auto; }
  .cms-row-writing > :nth-child(3), .cms-row-writing > :nth-child(4), .cms-row-writing > :nth-child(5) { display: none; }
}
@media (max-width: 640px) {
  .dash-stats { grid-template-columns: 1fr; }
  .cms-grid, .coll-grid { grid-template-columns: 1fr; }
  .dash-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cms-search { min-width: 0; flex: 1; }
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 60px 0; }
  .features-grid { grid-template-columns: 1fr; gap: 36px; }
  .people-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .profile-cols { grid-template-columns: 1fr; gap: 12px; }
  .explore-grid { grid-template-columns: 1fr 1fr; }
  .collections-grid { grid-template-columns: 1fr 1fr; }
  .editor-shell { grid-template-columns: 1fr; }
  .editor-nav { position: relative; top: 0; flex-direction: row; flex-wrap: wrap; padding: 18px 28px; border-right: 0; border-bottom: 1px solid var(--line); gap: 4px; }
  .editor-preview { display: none; }
  .editor-main { padding: 28px; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash-card-wide { grid-column: span 2; }
  .settings-shell { grid-template-columns: 1fr; }
  .settings-nav { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .settings-main { padding-left: 0; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .main { padding: 0 18px 96px; }
  .topnav-c { display: none; }
  .topnav-search { display: none; }
  .topnav-inner { padding: 10px 18px; grid-template-columns: auto 1fr auto; gap: 8px; }
  .bottomnav { display: flex; }
  h1 { font-size: 40px; }
  .hero-title { font-size: 56px; }
  .profile-banner { height: 140px; margin: 0 -18px; }
  .profile-shell { margin-top: -64px; }
  .profile-head { grid-template-columns: 1fr; }
  .profile-head-r { padding: 0; }
  .profile-head-l { gap: 16px; flex-direction: column; align-items: start; }
  .profile-id h1 { font-size: 36px; }
  .profile-bio { grid-template-columns: 1fr; gap: 16px; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .projects-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: 1fr; }
  .collections-grid { grid-template-columns: 1fr; }
  .explore-row { grid-template-columns: auto 1fr auto; }
  .explore-row > :nth-child(n+4):not(:last-child) { display: none; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .writing-list li { grid-template-columns: 1fr; gap: 4px; }
  .editor-page { margin: 0 -18px; }
  .editor-bar { padding: 10px 18px; grid-template-columns: auto auto; }
  .editor-bar-c { display: none; }
  .editor-main { padding: 22px 18px; }
  .editor-nav { padding: 14px 18px; }
  .editor-grid-2 { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-card-wide { grid-column: span 1; }
  .foot { grid-template-columns: 1fr; gap: 32px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .proj-credits { grid-template-columns: 1fr 1fr; }
  .proj-credits > div:nth-child(2) { border-right: 0; }
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
