/* ============================================================
   YERRN INTAKE — STYLESHEET
   ============================================================ */

/* ============ DESIGN TOKENS ============ */
:root {
  /* Yerrn brand */
  --yerrn-blue: #2563eb;
  --yerrn-blue-bright: #3366ff;
  --yerrn-blue-hover: #1d4ed8;
  --yerrn-blue-tint: #eff6ff;
  --yerrn-blue-tint-2: #dbeafe;
  --yerrn-navy: #1e2a44;
  --yerrn-navy-deep: #0f172a;
  --yerrn-navy-soft: #2e3f5c;

  /* Surfaces (light mode) */
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --surface-sunken: #e2e8f0;

  /* Text */
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --muted-soft: #94a3b8;

  /* Borders */
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Accent */
  --accent: var(--yerrn-blue);
  --accent-hover: var(--yerrn-blue-hover);
  --accent-tint: var(--yerrn-blue-tint);
  --accent-tint-2: var(--yerrn-blue-tint-2);

  /* Status */
  --error: #dc2626;
  --error-tint: #fef2f2;
  --success: #16a34a;
  --success-tint: #f0fdf4;
  --warn: #ea580c;
  --warn-tint: #fff7ed;

  /* Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
  --shadow: 0 4px 14px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-lg: 0 18px 40px rgba(15,23,42,0.10), 0 2px 6px rgba(15,23,42,0.05);
  --shadow-blue: 0 8px 24px rgba(37,99,235,0.18);

  /* Type */
  --display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg-soft);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; color: inherit; }
a { color: var(--accent); }

/* ============ APP LAYOUT ============ */
.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  max-width: 1320px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  position: relative;
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
}

/* ============ SIDEBAR ============ */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 28px 24px 28px 32px;
  border-right: 1px solid var(--border);
  background: var(--bg);
}
@media (max-width: 900px) {
  .sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 22px 20px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  height: 26px;
  width: auto;
  display: block;
}
.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 2px;
}
.brand-meta .label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-meta .client {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.nav { list-style: none; padding: 0; margin: 0 0 24px; }
.nav li { margin: 2px 0; }
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.3;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--surface-alt); color: var(--ink); }
.nav a.active {
  background: var(--accent-tint);
  color: var(--accent);
}
.nav a .num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  width: 20px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.nav a.active .num { color: var(--accent); }
.nav .req-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warn);
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.7;
}
.nav a .check {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--success);
  opacity: 0;
  transition: opacity 0.2s;
}
.nav a.complete .check { opacity: 1; }
.nav a.complete .req-dot { display: none; }

.progress-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px 13px;
  margin-bottom: 16px;
}
.progress-card h4 {
  margin: 0 0 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.progress-bar {
  height: 6px;
  background: var(--surface-sunken);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 7px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--yerrn-blue), var(--yerrn-blue-bright));
  width: 0%;
  transition: width 0.4s cubic-bezier(.2,.8,.2,1);
  border-radius: var(--radius-pill);
}
.progress-text {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.save-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  color: var(--muted);
  padding: 10px 12px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
}
.save-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}
.save-status.saving .dot {
  background: var(--warn);
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--yerrn-navy-deep);
  background-image:
    radial-gradient(ellipse at top left, rgba(37,99,235,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(51,102,255,0.12) 0%, transparent 55%),
    linear-gradient(180deg, var(--yerrn-navy-deep) 0%, var(--yerrn-navy) 100%);
  color: #fff;
  padding: 56px 56px 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 700px) {
  .hero { padding: 36px 24px; }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  max-width: 720px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yerrn-blue-bright);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--yerrn-blue-bright);
}

h1.title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: #fff;
  font-variation-settings: "opsz" 96;
}
h1.title em {
  font-style: italic;
  color: var(--yerrn-blue-bright);
  font-weight: 700;
}

.lede {
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 60ch;
  margin: 0;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin: 32px 0 0;
  position: relative;
  z-index: 1;
}
.info-strip > div {
  padding: 16px 22px 16px 0;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.info-strip > div:last-child { border-right: none; }
.info-strip dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--yerrn-blue-bright);
  margin-bottom: 4px;
}
.info-strip dd {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
}

/* ============ MAIN ============ */
.main-wrap {
  background: var(--bg);
  min-height: 100vh;
}
.main {
  padding: 56px 56px 120px;
  max-width: 880px;
  width: 100%;
}
@media (max-width: 700px) {
  .main { padding: 32px 24px 80px; }
}

/* ============ FORM SECTIONS ============ */
.form-section {
  margin-bottom: 80px;
  scroll-margin-top: 24px;
}
.section-header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 14px;
}
.section-num {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  flex: 1;
  color: var(--ink);
}
.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--warn-tint);
  color: var(--warn);
  border: 1px solid rgba(234,88,12,0.2);
  flex-shrink: 0;
}
.section-pill.optional {
  background: var(--surface-alt);
  color: var(--muted);
  border-color: var(--border);
}
.section-pill.reference {
  background: var(--accent-tint);
  color: var(--accent);
  border-color: var(--accent-tint-2);
}
.section-desc {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 60ch;
  font-size: 14.5px;
  line-height: 1.6;
}
.section-desc em {
  font-style: italic;
  color: var(--ink-soft);
}

/* ============ FIELDS ============ */
.field-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
.field-grid.cols-2 {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) {
  .field-grid.cols-2 { grid-template-columns: 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.field-label .req {
  color: var(--warn);
  font-size: 14px;
}
.field-label .opt-tag {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-soft);
  font-style: italic;
}
.field-help {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: -2px 0 4px;
}
.field-help code {
  background: var(--surface-alt);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11.5px;
  font-family: var(--mono);
}
.field-help em { font-style: italic; }

/* Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 11px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  font-family: var(--sans);
}
textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.55;
}
textarea.tall { min-height: 140px; }
input::placeholder, textarea::placeholder {
  color: var(--muted-soft);
}
input:hover, textarea:hover, select:hover {
  border-color: var(--border-strong);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
  background: var(--surface);
}

.char-count {
  font-size: 11px;
  color: var(--muted-soft);
  text-align: right;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.char-count.warn { color: var(--warn); }
.char-count.over { color: var(--error); }

/* File upload */
.file-input {
  position: relative;
  display: block;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-align: center;
}
.file-input:hover {
  background: var(--accent-tint);
  border-color: var(--accent);
}
.file-input input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-input-label {
  color: var(--accent);
  font-weight: 500;
  font-size: 13.5px;
}
.file-input-hint {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
}
.file-preview {
  margin-top: 10px;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
}
.file-preview.show { display: flex; }
.file-preview img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--surface-sunken);
  flex-shrink: 0;
}
.file-preview-info { flex: 1; min-width: 0; }
.file-preview-name {
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.file-preview-size {
  font-size: 11.5px;
  color: var(--muted);
  font-family: var(--mono);
}
.file-preview-remove {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 5px 11px;
  font-size: 11px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.file-preview-remove:hover {
  color: var(--error);
  border-color: var(--error);
}

/* ============ REPEATABLE ITEM CARDS ============ */
.items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.2s;
}
.item-card:hover { border-color: var(--border-strong); }
.item-card.expanded {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.item-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}
.item-toggle {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 0.2s;
}
.item-card.expanded .item-toggle { transform: rotate(90deg); color: var(--accent); }
.item-index {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 24px;
}
.item-title {
  flex: 1;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-title.empty { color: var(--muted-soft); font-style: italic; font-weight: 400; }
.item-subtitle {
  font-size: 12.5px;
  color: var(--muted);
  margin-left: 4px;
  white-space: nowrap;
}
.item-remove {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 5px 11px;
  font-size: 11.5px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: all 0.15s;
}
.item-remove:hover {
  color: var(--error);
  border-color: var(--error);
  background: var(--error-tint);
}
.item-body {
  display: none;
  padding: 4px 22px 22px;
  border-top: 1px solid var(--border);
}
.item-card.expanded .item-body { display: block; padding-top: 22px; }

.add-btn {
  background: transparent;
  border: 1px dashed var(--border-strong);
  color: var(--accent);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  width: 100%;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.add-btn:hover {
  background: var(--accent-tint);
  border-color: var(--accent);
  border-style: solid;
}

/* ============ CHECKLIST ============ */
.checklist {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 4px;
}
.checklist-item {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}
.checklist-content { flex: 1; }
.checklist-content strong {
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}
.checklist-content span {
  font-size: 12.5px;
  color: var(--muted);
}

/* ============ CALLOUTS ============ */
.callout {
  background: var(--accent-tint);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 22px 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.callout strong {
  color: var(--accent);
  font-weight: 600;
}
.callout.warn {
  background: var(--warn-tint);
  border-left-color: var(--warn);
}
.callout.warn strong { color: var(--warn); }
.callout em { font-style: italic; }

/* ============ EXPORT CARD ============ */
.export-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.export-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yerrn-blue), var(--yerrn-blue-bright));
}
.export-card h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}
.export-card p {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 14px;
}
.export-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) {
  .export-actions { grid-template-columns: 1fr; }
}

/* ============ BUTTONS ============ */
.btn {
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ COMPLETION STATS ============ */
.completion-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 22px 0;
}
.completion-stats > div {
  background: var(--surface-alt);
  padding: 14px 16px;
  text-align: center;
}
.completion-stats .num {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.completion-stats .label {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--yerrn-navy-deep);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast .check {
  width: 14px;
  height: 14px;
  color: #4ade80;
}

/* ============ FOOTER ============ */
.form-footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}
.form-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--display);
}
.form-footer a:hover { text-decoration: underline; }
.form-footer em {
  font-style: italic;
  color: var(--ink-soft);
}
.form-footer .sep {
  margin: 0 8px;
  color: var(--muted-soft);
}

/* ============ DETAILS / ADVANCED ============ */
details.field summary {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  padding: 8px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
details.field summary::-webkit-details-marker { display: none; }
details.field summary::before {
  content: '▸';
  font-size: 10px;
  color: var(--muted-soft);
  transition: transform 0.2s;
  display: inline-block;
}
details.field[open] summary::before { transform: rotate(90deg); }

/* ============ PRINT ============ */
@media print {
  .sidebar, .export-card .export-actions, .toast { display: none !important; }
  .app { display: block; }
  .main { padding: 0; max-width: none; }
  .hero { background: #fff !important; color: #000 !important; padding: 0 0 24px; border-bottom: 1px solid #000; }
  .hero h1.title, .hero .lede { color: #000 !important; }
  .hero h1.title em { color: #000 !important; font-style: italic; }
  .item-card.expanded { box-shadow: none; }
  .item-card { break-inside: avoid; }
  .form-section { break-after: page; }
}
