/* Review pass: type, contrast, tap targets, and the activity chrome. */
:root {
  --muted-foreground: light-dark(#5b6e5f, #c5d4c8);
  /* Hairlines. --border does not inherit (Zazz @property), so row rules use this alias. */
  --rn-rule: light-dark(#dee6dc, #3b5143);
  --rn-fs-title: 1.75rem;
  --rn-lh-title: 2rem;
  --rn-fs-body: 1rem;
  --rn-lh-body: 1.375rem;
  --rn-fs-meta: 0.875rem;
  --rn-lh-meta: 1.25rem;
  --rn-fs-tab: 0.75rem;
  --rn-fw-regular: 400;
  --rn-fw-strong: 600;
  --rn-space-1: 4px;
  --rn-space-2: 8px;
  --rn-space-3: 12px;
  --rn-space-4: 16px;
  --rn-space-5: 24px;
  --rn-space-6: 40px;
  --rn-margin: 20px;
  --rn-tap: 44px;
  --rn-row-min: 64px;
  --rn-icon: 40px;
  --rn-radius-control: 12px;
  --rn-radius-card: 16px;
  --fs-h1: var(--rn-fs-title);
  --fs-h2: var(--rn-fs-body);
  --fs-lead: var(--rn-fs-body);
  --fs-body: var(--rn-fs-body);
  --fs-meta: var(--rn-fs-meta);
  --fieldguide-muted-text: var(--muted-foreground);
}
@media (max-width: 374px) {
  :root { --rn-margin: 16px; --rn-icon: 32px; }
}

.eyebrow { text-transform: none; letter-spacing: 0; font-size: var(--fs-meta); font-weight: 650; }
.brand small { font-size: var(--fs-meta) !important; letter-spacing: 0.04em; }
.crumb, .crumb a, .breadcrumb-current, .end-meta, .end-meta span, .intro-quote span,
.ui-badge, .ui-badge.pill, .foot, .foot span, .side-info p, .tiny, .card-meta, .card-foot, .card-foot span,
.node-foot, .node-deps, .month-sub, .month-card .month-sub, .pill, .stat-label, .hero-stats .stat-label,
.field-label, .scenario-card .foot, .activity-row .end-meta, .category-group-head p, .linked-item .subtext,
.relation-rail small, .resource span, .note-caption, .tree-card .card-foot, .tree-stage .stage-title,
.tree-node .node-foot, .tree-node .node-deps, .tree-legend, .tree-mobile-note, .prereq-hint, .export-note,
.footer, .quick-scenario, .duration-caption, .side-label, .side-copyright, .inv-stats dt,
.cat-card .card-meta {
  font-size: var(--fs-meta) !important;
}
.tiny, .side-label, .side-copyright, .footer, .card-meta, .card-foot, .card-foot span, .stage-title,
.tree-stage .stage-title, .note-caption, .stat-label, .hero-stats .stat-label, .bottom-link, .side-info p,
.foot, .foot span, .node-foot, .node-deps, .end-meta, .scenario-card .foot, .cat-card .card-meta,
.linked-item .subtext, .resource span, .relation-rail small, .prereq-hint, .export-note, .intro-quote span,
.month-sub, .tree-legend, .inv-stats dt, .bottom-link {
  color: var(--muted-foreground);
}
.cat-card p, .category-block-head p, .scenario-mini p, .activity-row p, .tree-summary p, .detail-stat {
  font-size: var(--fs-body) !important;
}
.inv-field small, .print-kicker, .print-foot, .print-table th {
  font-size: var(--fs-meta) !important;
}
.stage-title { text-transform: none; letter-spacing: 0; font-weight: 650; }
.page-intro, .detail-hero p.lead, .hero p, .panel-sub { font-size: var(--fs-body); }
.section-head h2, .detail-panel h2, .quick-heading { font-size: var(--fs-h2); }
.page-title { font-size: clamp(28px, 4vw, 40px); }
.footer a, .device-status { color: var(--muted-foreground); font-size: var(--fs-meta); }
.side-copyright { color: var(--muted-foreground); }

.text-link { display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: 4px; }
.linked-item { display: flex; align-items: center; gap: 8px; min-height: 44px; }
a.linked-item { color: inherit; }
.source-link, .resource a { display: flex; align-items: center; min-height: 44px; padding-block: 7px; }
.tree-trace { min-width: 44px; min-height: 44px; }

.hero {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: none;
}
.hero:before, .hero:after { display: none; }
.hero .eyebrow, .hero p, .hero h1 { color: var(--primary-foreground); }
.hero .btn { background: var(--primary-foreground); color: var(--primary); }
.badge-icon { background: transparent; color: var(--foreground); box-shadow: none; }
.card, .detail-panel, .detail-hero, .activity-row, .tree-node, .scenario-card, .cat-card {
  border-color: var(--line);
  box-shadow: none;
}
.hero-stats .card { box-shadow: none; }

.start-here { display: flex; flex-direction: column; align-items: stretch; margin-top: 8px; max-width: 460px; }
.start-promise { margin: 0 0 12px; font-size: var(--fs-lead); line-height: 1.45; }
.hero .start-here .hero-actions {
  display: flex !important; flex-direction: column; align-items: stretch;
  flex-wrap: nowrap; gap: 8px; margin: 0; width: 100%;
}
.hero .start-here .hero-actions .btn {
  width: 100% !important; flex: none !important; min-height: 48px;
  white-space: normal !important; font-size: 15px !important; justify-content: center;
}
.hero .start-here .hero-actions .btn[data-variant="outline"],
.hero .start-here .hero-actions .btn[data-variant="outline"]:hover {
  background: transparent !important; color: #f7faf5 !important;
  border: 2px solid #d1e5c0 !important;
  --ui-button-background: transparent; --ui-button-foreground: #f7faf5;
}
.home-desktop-only { margin-top: 8px; }

.step-check {
  width: 44px; height: 44px; min-width: 44px;
  border: 0; background: transparent; color: var(--primary);
  display: grid; place-items: center; padding: 0;
}
.step-box {
  width: 24px; height: 24px; border: 2px solid var(--primary); border-radius: 6px;
  display: grid; place-items: center; background: transparent;
}
.step-check.checked .step-box { background: var(--primary); color: var(--primary-foreground); }
.step-index { font-weight: 700; }
.step-meter { height: 4px; border-radius: 99px; background: var(--muted); margin: 8px 0 12px; overflow: hidden; }
.step-meter span { display: block; height: 100%; background: var(--primary); }

.next-up ol { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.next-up li { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.backup-line, .backup-nudge, .update-row, .install-offer p { font-size: var(--fs-body); line-height: 1.45; }
.backup-nudge, .update-row {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
  margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card);
}
.ledger-core { margin: 14px 0 0; font-size: var(--fs-h2); }
.ledger-core span { display: block; font-size: var(--fs-meta); color: var(--muted-foreground); font-weight: 650; }
.danger-zone { border-color: #a15b3a; }
.danger-zone .text-danger { background: transparent; border: 0; color: light-dark(#9a3b24, #f0b4a4); min-height: 44px; font-weight: 700; text-decoration: underline; padding: 0; }
.settings-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 44px; }
.settings-list { display: grid; gap: 8px; margin-top: 12px; }
.ack-anchor { margin-top: 18px; }

.app-toast {
  position: fixed; z-index: 99; left: 50%; right: auto; bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translateX(-50%); background: var(--primary); color: var(--primary-foreground);
  padding: 11px 16px; border-radius: 11px; font-size: var(--fs-meta); max-width: min(90vw, 350px); text-align: center;
}
.tree-inline { margin-top: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.tree-inline h3 { font-size: var(--fs-body); margin: 0 0 6px; }
.explore-tabs { max-width: none; }
.explore-tabs .segment { min-height: 44px; }

@media (max-width: 690px) {
  .brand small { display: none !important; }
  .mobile-head { height: 56px !important; }
  .page-title, .hero h1, .serif-large, h1.serif-large, h1.page-title { font-size: 28px !important; line-height: 1.15 !important; }
  .detail-hero:after, .scenario-head:after { display: none !important; }
  .hero .hero-actions { display: flex !important; }
  .hero .hero-actions .btn { width: 100%; }
  .home-desktop-only { display: none !important; }
  .app:has(.has-mobile-action) .bottom-nav { display: none !important; }
  .mobile-action {
    bottom: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 8px;
    align-items: center;
    padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
  }
  .mobile-action.has-path-next { grid-template-columns: minmax(0, 1fr) auto 48px !important; }
  .mobile-action .btn { flex: none !important; white-space: nowrap; }
  .mobile-action .btn[data-action="share"],
  .mobile-action .btn[data-path-next] { width: 48px; height: 48px; min-height: 48px; padding: 0; }
  .mobile-action.has-path-next .btn[data-path-next] { width: auto; min-width: 64px; padding: 0 12px; }
  .page-wrap.has-mobile-action { padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
  .completion-actions { display: none !important; }
  .aside-card .meta-row a.ui-badge { min-block-size: 44px; padding-block: 12px; display: inline-flex; align-items: center; }
  #tree-summary { display: none; }
  .tree-inline { display: block; }
  .app-toast { bottom: calc(68px + 12px + env(safe-area-inset-bottom)); }
  .page-wrap.has-mobile-action ~ .app-toast, .app:has(.has-mobile-action) .app-toast {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 691px) {
  .page-title, .serif-large { font-size: 32px; }
  .tree-inline { display: none; }
  .app-toast { top: 71px; right: 17px; bottom: auto; left: auto; transform: none; }
  .mobile-action { display: none !important; }
}

@media print {
  .update-row, .backup-nudge, .install-offer, .context-back { display: none !important; }
}

.bottom-link .nav-short { display: none; }
.inv-pagehead, .inv-card-head, .inv-meter-line, .inv-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.inv-pagehead { margin-bottom: 8px; }
.inv-kicker { margin: 0; font-size: var(--fs-lead); font-weight: 650; }
.inv-subhead { font-size: var(--fs-body); margin: 14px 0 0; }
.inv-row[hidden] { display: none !important; }
.inv-title { font-size: var(--fs-h1); letter-spacing: -0.03em; margin: 0 0 6px; }
.inv-who, .inv-hint, .inv-meta, .inv-status, .inv-foot, .inv-badge, .inv-suggest { font-size: var(--fs-meta); color: var(--muted-foreground); line-height: 1.45; }
.inv-card { border: 1px solid var(--line, var(--border)); border-radius: 16px; padding: 8px 14px 12px; margin: 12px 0; background: var(--card, #fff); }
.inv-card-head { padding: 8px 0; }
.inv-card-head h2, .inv-fields h2, .inv-print-page h2 { font-size: var(--fs-h2); }
.inv-row { align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line, var(--border)); min-height: 52px; }
.inv-card .inv-row:first-of-type { border-top: 0; }
.inv-row.is-covered { color: var(--muted-foreground); }
.inv-row.is-covered strong, .inv-row-copy strong { color: var(--foreground); }
.inv-row-copy { min-width: 0; }
.inv-stepper { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.inv-step { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--card, #fff); color: var(--foreground); font-size: 22px; }
.inv-step:disabled { opacity: 0.4; }
.inv-step-input { width: 4.5rem; min-height: 44px; font-size: 16px; text-align: center; color: var(--foreground); background: var(--card, #fff); border: 2px solid var(--muted-foreground); border-radius: 12px; box-sizing: border-box; }
.inv-segs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.inv-seg { min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--foreground); text-decoration: none; display: inline-flex; align-items: center; }
.inv-seg[aria-pressed="true"] { background: var(--foreground); color: var(--background, #fff); }
.inv-pill { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; color: var(--foreground); }
.inv-check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.inv-check input {
  appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; flex: 0 0 auto;
  border: 2px solid var(--muted-foreground); border-radius: 6px; background: var(--card); display: grid; place-items: center;
}
.inv-check input:checked {
  border-color: #143028; background-color: #143028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5 10 18 19.5 6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 18px 18px;
}
.inv-check input.is-cancelled,
.inv-check input.is-cancelled:checked {
  border-color: #143028; background-color: var(--card, #fff);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23143028' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 6 18 18 M18 6 6 18'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 18px 18px;
}
html[data-theme="dark"] .inv-check input.is-cancelled,
html[data-theme="dark"] .inv-check input.is-cancelled:checked {
  border-color: #f4f7f2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f7f2' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 6 18 18 M18 6 6 18'/%3E%3C/svg%3E");
}
.inv-check input:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.inv-line > .inv-check { -webkit-touch-callout: none; user-select: none; touch-action: manipulation; }
.inv-meter-line { margin-bottom: 8px; }
.inv-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--border); }
.inv-due { color: var(--warn-ink, #7b572c); font-weight: 700; }
.inv-error { color: var(--warn-ink, #7b572c); }
.inv-error[hidden], [data-inv-formula][hidden], [data-inv-days-field][hidden], [data-inv-custom][hidden], [data-inv-label][hidden] { display: none; }
.inv-fields { display: grid; gap: 4px; }
.inv-print-block .btn { width: 100%; margin-top: 8px; }
.inv-sheet { color: #111; background: #fff; }
.inv-sheet .print-group, .inv-sheet .print-table { break-inside: avoid; }
.print-box { display: inline-block; width: 14px; height: 14px; border: 1px solid #111; margin-right: 8px; }
@media (min-width: 800px) {
  .inv-sheet { columns: 2; column-gap: 28px; font-size: 11pt; }
  .inv-sheet h1, .inv-sheet .print-kicker { column-span: all; }
}
@media (max-width: 374px) {
  .bottom-link .nav-long { display: none; }
  .bottom-link .nav-short { display: inline; font-size: 12px; }
}
@media print {
  .inv-screen-only, .inv-print-block, .screen-only, .inv-photo, .inv-ico, .inv-buy, .inv-affiliate, .inv-household-body, .inv-have, .inv-set, .inv-edit { display: none !important; }
  .inv-sheet, .nb-sheet { color: #000; background: #fff; font-size: 11pt; }
  .inv-sheet { columns: 2; }
  .nb-person { break-inside: avoid; }
}
.area-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; width: 100%;
  margin: 8px 0 14px; padding: 0; border: 2px solid var(--muted-foreground);
  border-radius: 14px; overflow: hidden;
}
.area-switch .inv-seg {
  justify-content: center; border: 0; border-radius: 0; min-height: 44px;
  background: transparent; color: var(--foreground);
}
.area-switch .inv-seg[aria-current="page"] { background: var(--foreground); color: var(--background, #fff); }
.inv-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
.inv-days .inv-seg { justify-content: center; padding: 0 4px; }
.inv-duration { margin: 14px 0 6px; }
.inv-duration-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.inv-duration-head h2 { margin: 0; }
.inv-duration-head output { font-weight: var(--rn-fw-strong, 650); font-variant-numeric: tabular-nums; }
.inv-duration input[type="range"] { width: 100%; height: 44px; margin: 4px 0 0; accent-color: #245c45; }
.inv-duration-scale { display: flex; justify-content: space-between; color: var(--muted-foreground); font-size: 13px; }
.inv-days .inv-seg[aria-pressed="true"] {
  background: transparent; color: var(--foreground); border: 2px solid var(--foreground); font-weight: 700;
}
.inv-filter {
  display: flex; gap: 4px; margin: 8px 0 12px; border-bottom: 1px solid var(--border);
}
.inv-filter .inv-seg {
  border: 0; border-radius: 0; background: transparent; color: var(--foreground);
  border-bottom: 2px solid transparent;
}
.inv-filter .inv-seg[aria-pressed="true"] {
  background: transparent; color: var(--foreground); border-bottom-color: var(--foreground); font-weight: 700;
}
.nb-consent { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card, #fff); color: var(--foreground); }
.nb-consent strong { display: block; margin-bottom: 4px; }
.nb-consent p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--foreground); }
.nb-consent p + p { margin-top: 6px; }
.nb-input { width: 100%; text-align: left; padding: 10px 12px; }
textarea.nb-input { min-height: 88px; }
.nb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.nb-actions .btn, .nb-form .btn { min-height: 44px; }
.nb-milestone { margin-top: 12px; }
.nb-more { margin-top: 12px; border-top: 1px solid var(--muted-foreground); }
.nb-more summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
@media (max-width: 690px) {
  .nb-form .btn,
  .nb-form .nb-input,
  .nb-form .text-link,
  .nb-more summary {
    scroll-margin-bottom: calc(96px + env(safe-area-inset-bottom));
    scroll-margin-top: 72px;
  }
}
.nb-form .text-danger { min-height: 44px; margin-top: 8px; }
.nb-card .inv-card-head a { color: var(--foreground); }
.nb-sheet { color: #111; background: #fff; }
.nb-sheet h1 { font-size: 22px; margin: 0 0 8px; }
.nb-sheet h2 { font-size: 16px; margin: 0; }
.nb-sheet p { margin: 2px 0; font-size: 13px; }
.nb-person { padding: 10px 0; border-bottom: 1px solid #ccc; }

.week-focus .hero-actions { display: flex; margin-top: 12px; }
.week-focus .hero-actions .btn { width: 100%; white-space: normal; min-height: 48px; text-align: left; }
.week-tasks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
a.week-task {
  display: grid; gap: 2px; min-height: 44px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 12px;
  color: inherit; text-decoration: none; background: var(--card, transparent);
}
a.week-task strong { font-size: var(--fs-body); }
a.week-task small, .step-stamp, .practiced-stamp { font-size: var(--fs-meta); color: var(--muted-foreground); }
a.week-task.current { border-color: var(--primary); }
.week-more {
  margin: 0; padding: 0; background: transparent; border-radius: 0;
  border-style: solid; border-width: 1px 0 0; border-color: var(--muted-foreground);
}
.detail-panel + .week-more { margin-top: 4px; }
.detail-panel .week-more { margin-top: 12px; }
.week-more summary { min-height: 44px; display: flex; align-items: center; gap: 12px; font-weight: 700; cursor: pointer; }
.week-months, .week-other { display: grid; gap: 0; margin: 0 0 8px; }
a.week-month {
  display: grid; gap: 2px; min-height: 44px; padding: 10px 0;
  color: inherit; text-decoration: none; border-top: 1px solid var(--muted-foreground);
}
a.week-month span, a.week-month small { font-size: var(--fs-meta); color: var(--muted-foreground); }
.path-continue { display: grid; gap: 4px; margin: 0 0 16px; }
.path-continue .btn { width: 100%; white-space: normal; min-height: 48px; text-align: left; }
.step-stamp { display: block; margin: 4px 0 0; }
.practiced-stamp { margin-left: 0; }
.week-jump { margin: 0 0 14px; }
.week-jump a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 690px) {
  .path-continue .btn, .week-focus .hero-actions .btn, a.week-task, .week-more summary {
    scroll-margin-bottom: calc(96px + env(safe-area-inset-bottom));
    scroll-margin-top: 72px;
  }
}

/* Round 2: hero contrast, household layout, and 44px actions. */
html[data-theme="light"] .hero,
.hero {
  background: #28563c;
  color: #f7faf5;
}
html[data-theme="dark"] .hero {
  background: linear-gradient(115deg, #1a3628, #254b35);
  color: #f7faf5;
}
.hero .eyebrow,
.hero p,
.hero h1,
.hero .start-promise,
.hero .lead,
.hero .text-link,
.hero a.text-link {
  color: #f7faf5 !important;
}
.hero .eyebrow { color: #d1e5c0 !important; }
.hero .text-link,
.hero a.text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: normal;
}
.hero .btn,
.hero .ui-button.btn,
.hero .ui-button.btn[data-variant="primary"] {
  background: #f4faf6 !important;
  color: #163224 !important;
  border-color: #f4faf6 !important;
  --ui-button-background: #f4faf6;
  --ui-button-foreground: #163224;
}
.detail-hero,
.scenario-head,
.progress-hero,
.hero-stats .card {
  border-color: var(--border) !important;
  box-shadow: none;
}
.side-label { text-transform: none !important; letter-spacing: 0 !important; font-size: 12px !important; }
a.brand { min-height: 44px; display: inline-flex; align-items: center; }
.side-sublink {
  display: flex; align-items: center; min-height: 44px; padding: 0 13px 0 44px;
  color: var(--muted-foreground); font-size: 14px; text-decoration: none;
}
.side-sublink.active { color: var(--foreground); font-weight: 700; }
.activity-row h3 { font-size: 16px !important; line-height: 1.3; }
.activity-row p { font-size: var(--rn-fs-meta) !important; }
.desktop-next { margin: 0 0 16px; }
.desktop-next .btn { width: 100%; white-space: normal; min-height: 48px; }
@media (max-width: 690px) { .desktop-next { display: none !important; } }
.inv-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--muted-foreground);
}
.inv-line:has(.inv-check) { grid-template-columns: 44px minmax(0, 1fr) auto; }
.inv-line:has(.inv-stepper) { grid-template-columns: minmax(0, 1fr); }
.inv-line:has(.inv-check):has(.inv-stepper) { grid-template-columns: 44px minmax(0, 1fr); }
.inv-line:has(.inv-stepper) .inv-line-count { grid-column: 1 / -1; grid-row: 2; justify-self: end; }
.inv-line:has(.inv-stepper) .inv-line-meta { grid-row: 3; }
.inv-line-name { min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.inv-line-lead { display: flex; align-items: center; gap: 10px; min-width: 0; }
.inv-photo {
  width: 64px; height: 64px; flex: 0 0 64px; object-fit: contain;
  border-radius: 10px; background: #f4faf6;
}
.inv-household > summary { align-items: center; }
.inv-household-summary { min-width: 0; font-size: 15px; font-weight: 650; line-height: 1.35; }
.inv-household-body h2 { font-size: var(--fs-h2); margin: 14px 0 0; }
.inv-affiliate { margin: 12px 0; font-size: var(--fs-meta); color: var(--muted-foreground); line-height: 1.45; }
.inv-line-meta { grid-column: 1 / -1; min-width: 0; }
.inv-line .text-link, .inv-who .text-link, .inv-status .text-link, .inv-card-link .text-link,
.tree-supply-link .text-link, .duration-caption .text-link, .settings-list a, .next-up a,
.backup-line a, .footer a, .nb-card .inv-card-head a {
  white-space: normal;
  overflow-wrap: anywhere;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.inv-setup-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px;
}
.inv-setup-row > span { font-size: 15px; }
.inv-step { display: grid; place-items: center; line-height: 1; padding: 0; }
.inv-nested { margin: 0 0 8px 8px; padding-left: 12px; border-left: 3px solid var(--muted-foreground); }
.inv-sticky-save {
  position: sticky; bottom: 12px; z-index: 6; padding-top: 8px;
  background: linear-gradient(transparent, var(--background, #f7f8f4) 28%);
}
.inv-summary { position: static; background: var(--card); }
.inv-meter-sticky {
  position: sticky; top: 0; z-index: 5; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; padding: 8px 14px; margin: 12px 0 0;
}
.inv-meter-sticky .inv-meter-line { margin-bottom: 0; }
.inv-meter-sticky progress.ui-progress {
  display: block; width: 100%; height: 10px; margin: 8px 0 0;
  border: 1px solid var(--muted-foreground); background: transparent;
  --ui-progress-track-background: transparent;
  --ui-progress-block-size: 8px;
}
.inv-meter-sticky progress.ui-progress::-webkit-progress-bar { background: transparent; }
.inv-fold > summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inv-fold-aside { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted-foreground); }
.inv-fold-show { color: var(--foreground); font-weight: 650; }
.inv-fold[open] > summary .inv-fold-show { display: none; }
.inv-plain {
  margin: 8px 0 0; padding: 0; background: transparent; border-radius: 0;
  border-style: solid; border-width: 1px 0 0; border-color: var(--muted-foreground);
}
.inv-print-block { margin: 16px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.inv-chevron,
.rn-chevron {
  width: 10px; height: 10px; border-right: 2px solid var(--foreground); border-bottom: 2px solid var(--foreground);
  transform: rotate(45deg); margin-top: -4px; flex: 0 0 auto;
  transition: transform 160ms ease, margin-top 160ms ease;
}
.rn-chevron { margin-left: auto; }
details[open] > summary .inv-chevron,
details[open] > summary .rn-chevron { transform: rotate(225deg); margin-top: 4px; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
@media (prefers-reduced-motion: reduce) {
  .inv-chevron, .rn-chevron { transition: none; }
}
.nb-add-phone { display: block; }
.danger-actions { display: grid; gap: 12px; }
.danger-action { display: grid; gap: 4px; }
.danger-action .btn, .danger-btn {
  width: 100%;
  background: transparent;
  color: light-dark(#9a3b24, #f0b4a4);
  border-color: light-dark(#9a3b24, #f0b4a4);
}
.danger-action p { margin: 0; font-size: 12px; color: var(--muted-foreground); }
.rate-row { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--border); }
.rate-sources { display: grid; }
.rate-field { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.rate-input { width: 88px; border: 2px solid var(--muted-foreground); background: var(--card); color: var(--foreground); }
.inv-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; font-size: 15px;
}
.inv-switch input {
  appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 99px; margin: 0;
  border: 2px solid var(--muted-foreground); flex: 0 0 auto;
  background: radial-gradient(circle at 14px 50%, #fff 7px, transparent 7.5px), var(--muted);
}
.inv-switch input:checked {
  border-color: var(--muted-foreground);
  background: radial-gradient(circle at 34px 50%, #fff 7px, transparent 7.5px), #28563c;
}
.inv-switch input:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
label.inv-switch::before,
label.inv-switch::after { content: none !important; display: none !important; }
.inv-lead { font-size: 16px; line-height: 1.45; margin: 4px 0 12px; color: var(--foreground); }
.device-warn { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 8px 0 12px; }
.device-warn p { margin: 0; flex: 1 1 200px; font-size: 15px; line-height: 1.4; color: var(--muted-foreground); }
.device-warn.is-unbacked p { color: var(--foreground); }
.device-backup { min-height: 44px; }
.nb-consent-note { margin: 0 0 12px; font-size: 15px; line-height: 1.45; color: var(--foreground); }
.inv-pet-edit { display: grid; gap: 4px; margin: 0 0 8px; }
.inv-pet-row { display: flex; gap: 8px; align-items: center; }
.inv-pet-row .inv-step-input[data-inv-bind="petDaily"] { width: auto; flex: 1 1 auto; text-align: left; padding: 0 12px; }
.inv-pet-row .inv-step-input[data-inv-bind="petUnit"] { width: 8.5rem; flex: 0 0 auto; text-align: left; padding: 0 12px; }
.nb-name, .nb-name strong { font-size: 17px; }
.nb-phone { margin: 0; font-size: 16px; }
.nb-phone a { min-height: 44px; display: inline-flex; align-items: center; color: var(--foreground); }
.inv-sheet-empty { padding: 16px; }
.inv-sheet-empty .btn { min-height: 44px; }
.inv-sheet .print-line { padding-left: 1.4em; text-indent: -1.4em; }
.tool-hint, .tool-warning, .tool-warning p { font-size: var(--rn-fs-meta) !important; font-weight: 400; }
@media (max-width: 690px) {
  .inv-meter-sticky { top: 56px; }
  .inv-sticky-save { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* Skip link and crumbs stay readable when the theme flips the ink token. */
.app-skip {
  background: #163224;
  color: #f7faf5;
}
.crumb a { color: var(--muted-foreground); }
html[data-theme="dark"] .timeline-item h3,
html[data-theme="dark"] .timeline-item li {
  color: var(--foreground);
}
html[data-theme="dark"] .timeline { border-left-color: var(--border); }
html[data-theme="dark"] .timeline-item:before {
  background: var(--primary);
  box-shadow: 0 0 0 5px var(--card);
}
html[data-theme="dark"] .timeline-item li:before { background: var(--muted-foreground); }
html[data-theme="dark"] .failure-row .pill {
  background: var(--muted);
  color: var(--foreground);
  border-color: var(--border);
}

/* 1.5.1: control edges, tap size, and the desktop activity hero.
   A 1.5px border paints as 1px in this Chrome, so the edge is 2px. */
.detail-hero:after,
.scenario-head:after { display: none !important; }
.detail-hero { border: 1px solid var(--border) !important; box-shadow: none !important; }
[data-inv-root="form"] .inv-fields { max-width: 520px; }
.inv-hint a,
.inv-foot a,
.inv-card-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
a.nb-edit {
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  padding: 0 12px;
}
.next-up .btn { width: 100%; white-space: normal; min-height: 48px; text-align: left; }

/* r5: three type sizes, two weights, one row, one segmented control. */
.page-title {
  font-size: var(--rn-fs-title);
  line-height: var(--rn-lh-title);
  font-weight: var(--rn-fw-strong);
  letter-spacing: -0.02em;
}
.eyebrow, .stage-title, .step-index, .ledger-core span, .danger-zone .text-danger,
.inv-kicker, .inv-due, .nb-more summary, .week-more summary, .side-sublink.active,
.brand {
  font-weight: var(--rn-fw-strong);
}
.eyebrow { font-size: var(--rn-fs-meta); font-weight: var(--rn-fw-regular); color: var(--muted-foreground); }
.ledger-core { font-size: var(--rn-fs-body); font-weight: var(--rn-fw-strong); }
.ledger-core span { font-size: var(--rn-fs-meta); font-weight: var(--rn-fw-regular); }
.app-toast { font-size: var(--rn-fs-meta); font-weight: var(--rn-fw-regular); border-radius: var(--rn-radius-control); }
.danger-action p { font-size: var(--rn-fs-meta); }
.nb-name, .nb-name strong { font-size: var(--rn-fs-body); font-weight: var(--rn-fw-strong); }
.nb-phone { font-size: var(--rn-fs-body); font-weight: var(--rn-fw-regular); }
.nb-consent p { font-size: var(--rn-fs-meta); color: var(--muted-foreground); }

@media (max-width: 690px) {
  .page-wrap { padding-top: var(--rn-space-5) !important; padding-inline: var(--rn-margin) !important; }
  .mobile-head {
    height: 56px !important;
    background: var(--background) !important;
    border-bottom: 1px solid var(--rn-rule) !important;
    padding-inline: var(--rn-margin) !important;
  }
  .mobile-head .brand, a.brand {
    font-size: var(--rn-fs-body) !important;
    font-weight: var(--rn-fw-strong);
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
    gap: var(--rn-space-2);
  }
  .mobile-head .brand-mark { width: 28px !important; height: 28px !important; }
a.brand small { display: block; }
  .mobile-head .icon-btn,
  .mobile-head .icon-btn.ui-button {
    width: 44px; height: 44px;
    background: transparent !important;
    color: var(--foreground) !important;
    border-color: transparent !important;
  }
  .bottom-nav {
    height: calc(64px + env(safe-area-inset-bottom)) !important;
    padding: 0 var(--rn-margin) env(safe-area-inset-bottom) !important;
    background: var(--background) !important;
    border-top: 1px solid var(--rn-rule) !important;
    backdrop-filter: none;
  }
  .bottom-link {
    font-size: var(--rn-fs-tab) !important;
    font-weight: var(--rn-fw-strong) !important;
    color: var(--muted-foreground) !important;
    min-height: 44px;
    gap: 3px;
  }
  .bottom-link.active { color: var(--primary) !important; }
}
.head-save { position: relative; }
.head-dot {
  position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--warn-ink, #7b572c); box-shadow: 0 0 0 2px var(--background); pointer-events: none;
}

.segmented, .area-switch {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px;
  width: 100%; margin: var(--rn-space-4) 0 0; padding: 2px;
  background: var(--muted); border: 0; border-radius: var(--rn-radius-control); overflow: visible;
}
.area-switch { grid-template-columns: 1fr 1fr; }
.segmented .segment, .area-switch .inv-seg {
  justify-content: center; min-height: var(--rn-tap); border-radius: 10px;
  border: 1px solid transparent; background: transparent; color: var(--foreground);
  font-size: var(--rn-fs-body); font-weight: var(--rn-fw-regular); text-decoration: none;
}
.segmented.explore-tabs .segment, .explore-tabs .segment { font-size: var(--rn-fs-meta) !important; }
.segmented .segment[aria-current="page"], .segmented .segment.active,
.area-switch .inv-seg[aria-current="page"] {
  background: var(--card); border-color: var(--muted-foreground); color: var(--foreground); font-weight: var(--rn-fw-strong);
}

.inv-band {
  position: sticky; top: 0; z-index: 6; background: var(--background);
  margin-top: var(--rn-space-5); padding-bottom: var(--rn-space-3);
  border-bottom: 1px solid var(--rn-rule);
}
@media (max-width: 690px) { .inv-band { top: 59px; } }
.inv-household-toggle {
  display: flex; align-items: center; width: 100%; min-height: var(--rn-tap);
  margin: 0; padding: 0; border: 0; background: transparent; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
}
.inv-household-toggle[aria-expanded="true"] .inv-chevron { transform: rotate(225deg); margin-top: 4px; }
.inv-household-summary { display: inline-flex; align-items: center; gap: var(--rn-space-2); min-width: 0; flex: 1; font-size: var(--rn-fs-body); font-weight: var(--rn-fw-strong); line-height: var(--rn-lh-body); white-space: nowrap; }
.inv-household-summary > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.inv-household-body { position: static; margin-top: var(--rn-space-3); }
.inv-household-body[hidden] { display: none !important; }
.hh-house { width: 20px; height: 20px; flex: none; }
.household-progress { margin-top: var(--rn-space-6); }
.household-progress h2 { margin-top: var(--rn-space-5); }
.household-progress h2:first-child { margin-top: 0; }
.household-progress .pillar-line { padding: var(--rn-space-3) 0; border-top: 1px solid var(--rn-rule); display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, 2fr) auto; align-items: center; gap: var(--rn-space-3); font-size: var(--rn-fs-meta); }
.household-progress .pillar-line:first-child { border-top: 0; }
.household-progress .next-steps { display: grid; }
.hh-edit { display: inline-flex; align-items: center; gap: var(--rn-space-2); margin-left: auto; color: var(--muted-foreground); font-size: var(--rn-fs-meta); font-weight: var(--rn-fw-regular); }
.inv-meter-line {
  display: flex; align-items: center; gap: var(--rn-space-3); margin: 0;
  font-size: var(--rn-fs-meta); line-height: var(--rn-lh-meta); color: var(--muted-foreground); font-weight: var(--rn-fw-regular);
}
.inv-meter-bar { flex: 1; height: 6px; border: 0; border-radius: 3px; background: var(--ui-progress-track-background, var(--muted)); overflow: hidden; }
.inv-meter-bar > span { display: block; height: 100%; background: var(--primary); }
.inv-meter-line b { color: var(--foreground); font-weight: var(--rn-fw-strong); }

.inv-filter { display: flex; gap: var(--rn-space-5); margin: var(--rn-space-4) 0 0; border-bottom: 1px solid var(--rn-rule); }
.inv-filter .inv-seg {
  border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent;
  color: var(--foreground); font-size: var(--rn-fs-body); font-weight: var(--rn-fw-regular); min-height: var(--rn-tap); margin-bottom: -1px;
}
.inv-filter .inv-seg[aria-pressed="true"] { background: transparent; color: var(--foreground); border-bottom-color: var(--foreground); font-weight: var(--rn-fw-strong); }
.inv-filter-n { color: var(--muted-foreground); font-weight: var(--rn-fw-regular); margin-left: 6px; font-size: var(--rn-fs-meta); }
.inv-affiliate { margin: var(--rn-space-3) 0 0; font-size: var(--rn-fs-meta); line-height: var(--rn-lh-meta); color: var(--muted-foreground); }
.inv-days .inv-seg[aria-pressed="true"] { font-weight: var(--rn-fw-strong); }

.inv-fold.inv-plain { margin-top: var(--rn-space-5); border: 0; background: transparent; }
.inv-fold > summary { min-height: 48px; font-size: var(--rn-fs-body); font-weight: var(--rn-fw-strong); }
.inv-fold-aside { font-size: var(--rn-fs-meta); font-weight: var(--rn-fw-regular); color: var(--muted-foreground); }

.inv-line,
.inv-line:has(.inv-stepper),
.inv-line:has(.inv-check),
.inv-line:has(.inv-check):has(.inv-stepper) {
  display: grid;
  grid-template-columns: var(--rn-icon) minmax(0, 1fr) auto;
  column-gap: var(--rn-space-3);
  align-items: center;
  min-height: var(--rn-row-min);
  padding: var(--rn-space-3) 0;
  position: relative;
  border-top: 0;
}
.inv-line + .inv-line::before {
  content: ""; position: absolute; top: 0; left: calc(var(--rn-icon) + var(--rn-space-3)); right: 0;
  border-top: 1px solid var(--rn-rule);
}
@media (max-width: 374px) {
  .inv-line,
  .inv-line:has(.inv-stepper),
  .inv-line:has(.inv-check),
  .inv-line:has(.inv-check):has(.inv-stepper) { column-gap: var(--rn-space-2); }
  .inv-line + .inv-line::before { left: calc(var(--rn-icon) + var(--rn-space-2)); }
  .inv-ico svg { width: 24px; height: 24px; }
}
.inv-ico { width: var(--rn-icon); height: var(--rn-icon); color: var(--muted-foreground); display: grid; place-items: center; }
.inv-ico svg { width: 28px; height: 28px; }
.inv-photo { width: 40px; height: 40px; flex: none; object-fit: cover; border-radius: 8px; background: var(--muted); }
.inv-copy { min-width: 0; display: grid; gap: 2px; }
.inv-line-name {
  min-width: 0; font-size: var(--rn-fs-body); line-height: var(--rn-lh-body); font-weight: var(--rn-fw-regular);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.inv-line .inv-meta, .inv-hint, .inv-foot, .rate-sources, .rate-row .inv-meta {
  font-size: var(--rn-fs-meta); line-height: var(--rn-lh-meta); color: var(--muted-foreground); font-weight: var(--rn-fw-regular);
}
.inv-line .inv-meta { margin: 0; }
.inv-due { color: var(--warn-ink, #7b572c); font-weight: var(--rn-fw-strong); }
.inv-line .inv-buy {
  display: inline-block; padding: 12px 0; margin: -12px 0; min-height: 0; white-space: nowrap;
  color: var(--foreground); font-weight: var(--rn-fw-regular); font-size: var(--rn-fs-meta);
  text-decoration: underline; text-decoration-color: var(--muted-foreground); text-underline-offset: 3px;
}
.inv-line.is-covered .inv-buy { color: var(--muted-foreground); }
.inv-line.is-covered .inv-line-name { color: var(--foreground); }
.inv-have {
  min-width: 64px; height: var(--rn-tap); padding: 0 var(--rn-space-3);
  border: 2px solid var(--muted-foreground); border-radius: var(--rn-radius-control);
  background: transparent; color: var(--foreground);
  font-size: var(--rn-fs-body); font-weight: var(--rn-fw-strong); font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.inv-line.is-covered .inv-have { background: var(--secondary); color: var(--secondary-foreground); border-color: var(--primary); }
.inv-line .inv-have[aria-expanded="true"] { background: var(--foreground); color: var(--background); border-color: var(--foreground); }
.inv-line > .inv-check { width: 44px; height: 44px; min-height: 44px; justify-content: center; gap: 0; margin: 0; }
.inv-set {
  min-height: var(--rn-tap); padding: 0 var(--rn-space-3);
  border: 2px solid var(--muted-foreground); border-radius: var(--rn-radius-control);
  background: transparent; color: var(--foreground);
  font-size: var(--rn-fs-meta); font-weight: var(--rn-fw-strong);
}
.inv-edit, .inv-line .inv-pet-edit, .inv-line .inv-suggest {
  grid-column: 1 / -1; margin-top: var(--rn-space-3);
}
.inv-edit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--rn-space-2); }
.inv-all {
  min-height: var(--rn-tap); border: 0; background: transparent; padding: 0;
  color: var(--foreground); font-size: var(--rn-fs-meta); font-weight: var(--rn-fw-regular);
  text-decoration: underline; text-underline-offset: 3px;
}
.inv-edit .inv-stepper { margin-left: auto; }
.inv-step { background: var(--muted); border: 1px solid var(--rn-rule); width: 44px; height: 44px; }
.inv-step svg { display: block; }
.inv-edit .inv-step-input { width: 72px; height: 44px; font-weight: var(--rn-fw-strong); font-size: var(--rn-fs-body); }
.inv-rel { flex-basis: 100%; margin: 0; font-size: var(--rn-fs-meta); line-height: var(--rn-lh-meta); color: var(--muted-foreground); }
.inv-rel a, .inv-edit .text-link { color: var(--foreground); min-height: var(--rn-tap); }
.inv-add { margin-top: var(--rn-space-4); }
.inv-print-block { margin-top: var(--rn-space-6); }
.inv-print-block > .btn { min-height: 48px; width: 100%; border-radius: var(--rn-radius-control); font-weight: var(--rn-fw-strong); }
.inv-foot-links { display: flex; flex-wrap: wrap; gap: var(--rn-space-4) var(--rn-space-5); margin-top: var(--rn-space-2); }
.inv-foot-links a { min-height: var(--rn-tap); display: inline-flex; align-items: center; color: var(--foreground); text-underline-offset: 3px; }
.device-warn {
  display: grid; gap: var(--rn-space-3); margin-top: var(--rn-space-6); padding-top: var(--rn-space-5);
  border-top: 1px solid var(--rn-rule);
}
.device-warn p { margin: 0; flex: none; font-size: var(--rn-fs-body); line-height: var(--rn-lh-body); font-weight: var(--rn-fw-regular); color: var(--foreground); }
.device-when { color: var(--muted-foreground) !important; font-size: var(--rn-fs-meta) !important; line-height: var(--rn-lh-meta) !important; }
.rate-list .rate-row { border-top-color: var(--rn-rule); }
.rate-row strong { font-size: var(--rn-fs-body); font-weight: var(--rn-fw-strong); }
.nb-list { display: grid; }
.nb-row { padding: var(--rn-space-3) 0; border-top: 1px solid var(--rn-rule); background: transparent; }
.nb-row:first-child { border-top: 0; }
.nb-more { border-top-color: var(--rn-rule); }
.nb-more summary { font-weight: var(--rn-fw-strong); font-size: var(--rn-fs-body); }

.week-focus.detail-hero { border-radius: var(--rn-radius-card); padding: var(--rn-space-5) var(--rn-space-4); }
.week-kicker { margin: 0 0 var(--rn-space-2); font-size: var(--rn-fs-meta); line-height: var(--rn-lh-meta); color: var(--muted-foreground); font-weight: var(--rn-fw-regular); }
.week-focus .hero-actions { margin-top: var(--rn-space-5); }
.week-focus .hero-actions .btn { text-align: center; font-weight: var(--rn-fw-strong); min-height: 48px; }
.week-section { margin-top: var(--rn-space-6); background: transparent; border: 0; padding: 0; box-shadow: none; }
.week-section h2 {
  display: flex; align-items: center; justify-content: space-between; gap: var(--rn-space-3);
  font-size: var(--rn-fs-body); font-weight: var(--rn-fw-strong); margin: 0;
}
.week-section h2 span { font-size: var(--rn-fs-meta); font-weight: var(--rn-fw-regular); color: var(--muted-foreground); }
.week-section .week-tasks { margin-top: var(--rn-space-2); gap: 0; }
a.week-task, .week-section a.week-task {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--rn-space-3); align-items: start;
  min-height: var(--rn-row-min); padding: var(--rn-space-3) 0; border: 0; border-radius: 0; background: transparent;
  border-bottom: 1px solid var(--rn-rule);
}
.week-check {
  width: 24px; height: 24px; margin: 0 auto; border: 2px solid var(--muted-foreground); border-radius: 6px; background: transparent;
}
.week-check.is-done { background: var(--primary); border-color: var(--primary); }
.week-task-copy { min-width: 0; display: grid; gap: 2px; }
a.week-task strong { font-size: var(--rn-fs-body); font-weight: var(--rn-fw-regular); }
a.week-task small { font-size: var(--rn-fs-meta); }
.week-more { border-color: var(--rn-rule); margin-top: 0; }
.week-more summary { min-height: 56px; font-weight: var(--rn-fw-strong); font-size: var(--rn-fs-body); }
a.week-month { border-top-color: var(--rn-rule); }
.detail-panel h2, .section-head h2, .quick-heading { font-size: var(--rn-fs-body); font-weight: var(--rn-fw-strong); }
.aside-relations { background: transparent; border: 0; box-shadow: none; padding: 0; display: grid; gap: var(--rn-space-5); }
.aside-relations .aside-section { padding: 0; border: 0; background: transparent; }
.aside-relations .aside-section h3 {
  display: flex; align-items: center; gap: var(--rn-space-2); margin: 0 0 var(--rn-space-3);
  font-size: var(--rn-fs-meta); line-height: var(--rn-lh-meta); font-weight: var(--rn-fw-strong);
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-foreground);
}
.aside-relations .aside-section h3 svg { flex: none; color: currentColor; }
.unlock-rows, .prereq-rows { display: grid; gap: var(--rn-space-2); }
.unlock-rows .activity-row, .prereq-rows .activity-row { text-decoration: none; }
.activity-row .state-icon.open { background: transparent; color: var(--green-2); }
.scenario-links { display: grid; }
.scenario-link {
  display: flex; align-items: center; gap: var(--rn-space-3); min-height: var(--rn-tap);
  padding: var(--rn-space-2) 0; background: transparent; border: 0; border-radius: 0;
  box-shadow: none; color: var(--foreground); text-decoration: none;
  font-size: var(--rn-fs-body); font-weight: var(--rn-fw-regular); line-height: var(--rn-lh-body);
}
.scenario-link + .scenario-link { border-top: 1px solid var(--rn-rule); }
.scenario-link svg { flex: none; color: var(--foreground); }
.aside-relations .source-link { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.aside-relations .text-link { margin-top: var(--rn-space-2); }
.panel-sub, .detail-hero p.lead, .hero p, .page-intro { font-size: var(--rn-fs-body); line-height: var(--rn-lh-body); font-weight: var(--rn-fw-regular); }
