/* public/css/auth.css — Shared styles: auth pages, app shell, onboarding */

/* ─── Design tokens (matches views/layout.ejs home page) ─── */
:root {
  --white: #ffffff;
  --bg: #fcfbfa;
  --surface: #f2f0ed;
  --border: #e4e0d9;
  --border-light: #edeae4;
  --ink: #1a1917;
  --ink-mid: #5c5954;
  --ink-muted: #9a9690;
  --accent: #c45d1a;
  --accent-dark: #a44d15;
  --accent-light: #f8ede2;
}

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

::selection { background: var(--accent-light); color: var(--ink); }
a { color: inherit; }

/* ─── Auth pages ─── */
.auth-page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.04);
}

.auth-logo { margin-bottom: 1.75rem; }

.auth-logo .wordmark {
  font-family: 'DM Serif Text', serif;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-block;
}

.auth-logo .wordmark span { color: var(--accent); }

.auth-title {
  font-family: 'DM Serif Text', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.auth-sub {
  font-size: 0.9rem;
  color: var(--ink-mid);
  margin-bottom: 2rem;
}

.auth-error {
  background: #fef0ec;
  border: 1px solid #f5c4b8;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #b93a1a;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }

.field-group { display: flex; flex-direction: column; gap: 0.4rem; }

.field-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field-input {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,93,26,0.1);
}

.field-input::placeholder { color: var(--ink-muted); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 0.85rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover { background: var(--accent-dark); }
.btn-full { width: 100%; }

.auth-footer-link {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-mid);
  margin-top: 1.5rem;
}

.auth-footer-link a { color: var(--accent); text-decoration: none; }
.auth-footer-link a:hover { text-decoration: underline; }

/* ─── App shell ─── */
.app-shell {
  min-height: 100vh;
  background: var(--bg);
}

.app-nav {
  border-bottom: 1px solid var(--border-light);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 60px;
  background: rgba(252, 251, 250, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.app-nav-brand {
  font-family: 'DM Serif Text', serif;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.app-nav-brand span { color: var(--accent); }
.app-nav-spacer { flex: 1; }
.app-nav-user { font-size: 0.8rem; color: var(--ink-muted); }

.app-nav-signout {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  margin-left: 1.5rem;
}

.app-nav-signout:hover { text-decoration: underline; }

.app-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ─── Onboarding ─── */
.ob-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.ob-pip {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}

.ob-pip.done,
.ob-pip.current { background: var(--accent); }
.ob-pip.current { opacity: 0.5; }

.ob-step-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.ob-h1 {
  font-family: 'DM Serif Text', serif;
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.ob-desc {
  font-size: 0.95rem;
  color: var(--ink-mid);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.ob-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ob-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-secondary {
  background: transparent;
  color: var(--ink-mid);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover { border-color: var(--ink-muted); color: var(--ink); }

/* Persona cards */
.persona-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.persona-card {
  background: var(--white);
  border: 2px solid var(--border-light);
  border-radius: 8px;
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.persona-card:hover { border-color: var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.persona-card.selected { border-color: var(--accent); background: var(--accent-light); }

.persona-card-name {
  font-family: 'DM Serif Text', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.persona-card-desc {
  font-size: 0.8rem;
  color: var(--ink-mid);
  line-height: 1.5;
}

.persona-card input[type="radio"] { display: none; }

/* NicheScore display */
.niche-score-display {
  text-align: center;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.score-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.score-number {
  font-family: 'DM Serif Text', serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}

.score-max {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.score-label {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  display: inline-block;
  margin-top: 0.5rem;
}

.score-label.green { background: rgba(60,200,100,0.1); color: #2d8a4e; }
.score-label.yellow { background: rgba(220,180,60,0.1); color: #b08800; }
.score-label.red { background: rgba(220,80,60,0.08); color: #c0392b; }

.niche-score-sub {
  font-size: 0.85rem;
  color: var(--ink-mid);
  margin-top: 0.75rem;
}

/* Strategy card grid */
.ob-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.ob-grid .ob-field-full { grid-column: 1 / -1; }

.ob-field-group { margin-bottom: 1.25rem; }

/* Outline chapters */
.ob-chapter {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
}

.ob-ch-title {
  font-family: 'DM Serif Text', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.ob-ch-section {
  font-size: 0.82rem;
  color: var(--ink-mid);
  padding-left: 1rem;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.ob-ch-section::before { content: '— '; color: var(--accent); }

/* Drafting editor */
.draft-section {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.draft-section-title {
  font-family: 'DM Serif Text', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1rem;
}

.draft-textarea {
  width: 100%;
  min-height: 300px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  resize: vertical;
  outline: none;
}

.draft-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(196,93,26,0.1); }

.draft-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.btn-draft-action {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink-mid);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-draft-action:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Generic form inputs (used across product pages) ─── */
.page-heading {
  font-family: 'DM Serif Text', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.page-subtitle {
  font-size: 0.95rem;
  color: var(--ink-mid);
  margin-bottom: 2rem;
}

.form-input {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,93,26,0.1);
}

.form-textarea {
  width: 100%;
  min-height: 120px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,93,26,0.1);
}

.form-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ─── Card components ─── */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card-title {
  font-family: 'DM Serif Text', serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ─── Badge/tag styles ─── */
.badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* ─── Checklist styles ─── */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
}

.check-item:last-child { border-bottom: none; }

.check-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--white);
}

.check-item.done .check-box {
  background: var(--accent);
  border-color: var(--accent);
}

.check-text {
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.45;
}

.check-item.done .check-text {
  color: var(--ink-muted);
  text-decoration: line-through;
}

/* ─── App dashboard (app-dashboard.ejs) ─── */
.ob-nav {
  border-bottom: 1px solid var(--border-light);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 60px;
  background: rgba(252, 251, 250, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.ob-nav-brand { font-family: 'DM Serif Text', serif; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.ob-nav-brand span { color: var(--accent); }
.ob-nav-sub { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); border-left: 1px solid var(--border-light); padding-left: 0.75rem; margin-left: 0.75rem; }
.ob-nav-spacer { flex: 1; }
.ob-nav-link { font-size: 0.8rem; color: var(--ink-mid); text-decoration: none; }
.ob-nav-link:hover { color: var(--accent); }
.ob-nav-signout { font-size: 0.8rem; color: var(--accent); text-decoration: none; margin-left: 1.5rem; }
.ob-nav-signout:hover { text-decoration: underline; }
.ob-section { max-width: 960px; margin: 0 auto; padding: 3rem 2rem; }
.ob-section--narrow { max-width: 700px; margin: 0 auto; padding: 3rem 2rem; }
.ob-section--wide   { max-width: 750px; margin: 0 auto; padding: 3rem 2rem; }
.ob-welcome { margin-bottom: 3rem; }
.ob-welcome-h1 { font-family: 'DM Serif Text', serif; font-size: 2.2rem; font-weight: 400; color: var(--ink); line-height: 1.15; margin-bottom: 0.5rem; }
.ob-welcome-sub { font-size: 0.95rem; color: var(--ink-mid); }
.ob-section-head { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.books-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.book-card { background: var(--white); border: 1px solid var(--border-light); border-radius: 6px; padding: 1.5rem; position: relative; transition: border-color 0.2s; text-decoration: none; color: inherit; }
.book-card:hover { border-color: var(--accent); }
.book-status { display: inline-block; font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 20px; background: var(--accent-light); color: var(--accent); margin-bottom: 0.75rem; }
.book-title { font-family: 'DM Serif Text', serif; font-size: 1.1rem; font-weight: 400; color: var(--ink); margin-bottom: 0.4rem; line-height: 1.3; }
.book-meta { font-size: 0.78rem; color: var(--ink-muted); margin-bottom: 1rem; }
.book-cta { display: inline-block; font-size: 0.82rem; color: var(--accent); text-decoration: none; }
.book-cta:hover { text-decoration: underline; }
.cta-bar { margin-top: 2.5rem; display: flex; gap: 1rem; }
.empty-state { background: var(--white); border: 1px dashed var(--border); border-radius: 6px; padding: 3rem; text-align: center; }
.empty-state p { color: var(--ink-muted); margin-bottom: 1.5rem; }

/* ─── Onboarding steps ─── */
.ob-card { background: var(--white); border: 1px solid var(--border-light); border-radius: 10px; padding: 2rem; margin-bottom: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.ob-field-group { margin-bottom: 1.25rem; }
.ob-label { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.4rem; }
.ob-input, .ob-textarea, .ob-select {
  width: 100%; background: var(--white); border: 1px solid var(--border); border-radius: 6px;
  padding: 0.75rem 1rem; color: var(--ink); font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.ob-input:focus, .ob-textarea:focus, .ob-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(196,93,26,0.1); }
.ob-input::placeholder, .ob-textarea::placeholder { color: var(--ink-muted); }
.ob-textarea { resize: vertical; min-height: 280px; line-height: 1.7; }
.ob-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.ob-btn { background: var(--accent); color: #fff; border: none; border-radius: 6px; padding: 0.85rem 1.5rem; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: background 0.2s; display: inline-block; text-decoration: none; }
.ob-btn:hover { background: var(--accent-dark); }
.ob-btn-secondary { background: transparent; color: var(--ink-mid); border: 1px solid var(--border); border-radius: 6px; padding: 0.85rem 1.5rem; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; cursor: pointer; text-decoration: none; display: inline-block; transition: border-color 0.2s, color 0.2s; }
.ob-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.ob-section-title { font-family: 'DM Serif Text', serif; font-size: 1.15rem; font-weight: 400; color: var(--ink); margin-bottom: 0.4rem; }
.ob-section-brief { font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 1rem; line-height: 1.5; }
.ob-stub-note { font-size: 0.75rem; color: var(--ink-muted); margin-top: 0.5rem; font-style: italic; }

/* ─── Pillars nav partial ─── */
.pillar-banner { background: var(--accent-light); border-bottom: 1px solid rgba(196,93,26,0.2); padding: 0.55rem 0; }
.pillar-banner-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: center; gap: 0.6rem; }
.pillar-banner-label { font-family: 'DM Serif Text', serif; font-size: 0.78rem; color: var(--accent); white-space: nowrap; }
.pillar-banner-copy { font-size: 0.75rem; color: var(--ink-mid); font-style: italic; }
.pillars-bar { background: var(--bg); border-bottom: 1px solid var(--border-light); padding: 0.6rem 0; overflow-x: auto; scrollbar-width: none; }
.pillars-bar::-webkit-scrollbar { display: none; }
.pillars-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: flex-start; gap: 0.2rem; min-width: max-content; }
.pillar-item { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.3rem 0.55rem; border-radius: 5px; min-width: 88px; position: relative; transition: background 0.15s; flex-shrink: 0; cursor: default; }
.pillar-item--active { background: var(--accent-light); border: 1px solid rgba(196,93,26,0.3); }
.pillar-item--active .pillar-label { color: var(--accent); }
.pillar-item--active .pillar-num { color: rgba(196,93,26,0.65); }
.pillar-item--complete .pillar-label { color: var(--ink-muted); }
.pillar-item--complete .pillar-num { color: var(--border); }
.pillar-item--locked { opacity: 0.4; }
.pillar-item--locked .pillar-label { color: var(--ink-muted); }
.pillar-item--locked .pillar-num { color: var(--border); }
.pillar-indicator { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.pillar-check { width: 18px; height: 18px; flex-shrink: 0; }
.pillar-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pillar-dot--active { background: var(--accent); box-shadow: 0 0 0 3px rgba(196,93,26,0.18); }
.pillar-dot--locked { background: var(--border); border: 1px solid var(--border-light); }
.pillar-label { font-size: 0.68rem; font-weight: 500; color: var(--ink-mid); text-align: center; line-height: 1.25; white-space: nowrap; }
.pillar-num { font-size: 0.58rem; color: var(--ink-muted); text-align: center; letter-spacing: 0.06em; text-transform: uppercase; }
.pillar-item:not(:last-child)::after { content: ''; position: absolute; right: -0.18rem; top: 50%; transform: translateY(-50%); width: 6px; height: 1px; background: var(--border-light); }
.pillar-item--complete:not(:last-child)::after { background: var(--green); opacity: 0.35; }
.pillar-checklist-wrap { background: var(--bg); border-bottom: 1px solid var(--border-light); }
.pillar-checklist-header { max-width: 1100px; margin: 0 auto; padding: 0.55rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.pillar-checklist-title { font-size: 0.72rem; color: var(--ink-muted); white-space: nowrap; font-weight: 500; letter-spacing: 0.02em; }
.pillar-checklist-progress { display: flex; align-items: center; gap: 0.5rem; flex: 1; }
.pillar-progress-track { flex: 1; height: 3px; background: var(--border-light); border-radius: 2px; overflow: hidden; }
.pillar-progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.4s ease; min-width: 0; }
.pillar-progress-label { font-size: 0.62rem; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pillar-checklist-toggle { background: none; border: none; padding: 0.2rem; cursor: pointer; color: var(--ink-muted); display: flex; align-items: center; }
.pillar-checklist-toggle:hover { color: var(--accent); }
.toggle-icon { width: 14px; height: 14px; transition: transform 0.2s; }
#pillar-checklist-toggle[aria-expanded="false"] .toggle-icon { transform: rotate(-90deg); }
.pillar-checklist-body { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem 0.75rem; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.4rem 1rem; }
#pillar-checklist-body.collapsed { display: none; }
.pillar-check-item { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.35rem 0.5rem; border-radius: 3px; background: var(--surface); border: 1px solid var(--border-light); }
.pillar-check-item--done { background: rgba(45,138,78,0.06); border-color: rgba(45,138,78,0.2); }
.pillar-check-box { width: 14px; height: 14px; flex-shrink: 0; border: 1.5px solid var(--border); border-radius: 2px; display: flex; align-items: center; justify-content: center; margin-top: 0.05rem; background: var(--white); }
.pillar-check-box svg { width: 12px; height: 12px; }
.pillar-check-item--done .pillar-check-box { background: rgba(45,138,78,0.12); border-color: rgba(45,138,78,0.4); }
.pillar-check-label { font-size: 0.72rem; color: var(--ink-mid); line-height: 1.4; }
.pillar-check-item--done .pillar-check-label { color: var(--ink-muted); text-decoration: line-through; text-decoration-color: rgba(45,138,78,0.4); }

/* ─── Page-specific ─── */
.project-header { padding: 3rem 0 2rem; border-bottom: 1px solid var(--border-light); margin-bottom: 2rem; }
.project-title { font-family: 'DM Serif Text', serif; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 400; color: var(--ink); line-height: 1.2; margin-bottom: 0.5rem; }
.project-meta { font-size: 0.8rem; color: var(--ink-muted); }
.module-cards { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
.module-card { background: var(--white); border: 1px solid var(--border-light); border-radius: 6px; padding: 1rem 1.2rem; display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; transition: border-color 0.2s; }
.module-card:hover { border-color: var(--accent); }

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .ob-grid, .form-row, .persona-cards { grid-template-columns: 1fr; }
  .app-main { padding: 2rem 1.25rem; }
  .books-grid { grid-template-columns: 1fr; }
  .pillar-banner-copy { display: none; }
  .pillar-item { min-width: 68px; padding: 0.25rem 0.4rem; }
  .pillar-label { font-size: 0.6rem; }
  .pillar-num { font-size: 0.52rem; }
  .pillar-checklist-title { font-size: 0.68rem; }
  .pillar-checklist-body { grid-template-columns: 1fr 1fr; }
  .pillar-progress-label { display: none; }
  .pillar-item { min-width: 56px; }
  .pillar-label { font-size: 0.56rem; white-space: normal; line-height: 1.1; }
  .pillar-checklist-body { grid-template-columns: 1fr; }
}