:root {
  color-scheme: light;
  --canvas: #f6f2e8;
  --paper: #fffcf5;
  --ink: #373b32;
  --muted: #66675b;
  --moss: #53634a;
  --moss-dark: #3f5038;
  --clay: #9f503a;
  --line: #d8d6c8;
  --soft: #eeeadf;
  --focus: #9f503a;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
a { color: inherit; }
button, select, textarea { font: inherit; }
button, a, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.topbar { min-height: 54px; padding: 8px max(18px, calc((100vw - 720px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; display: inline-flex; gap: 9px; align-items: center; font-size: 15px; font-weight: 650; letter-spacing: .01em; }
.brand-mark { width: 27px; height: 27px; border: 1px solid #9a9a87; border-radius: 50% 50% 50% 8px; display: grid; place-items: center; color: var(--moss-dark); font-family: Georgia, serif; font-size: 16px; }
.lab-link { color: var(--muted); font-size: 14px; text-underline-offset: 3px; padding: 8px 0; }
.page { width: min(100% - 36px, 660px); margin: 0 auto; padding: 17px 0 32px; }
.eyebrow { margin: 0 0 3px; color: var(--muted); font-size: 14px; letter-spacing: .025em; }
h1 { margin: 0; font-size: clamp(1.42rem, 6vw, 1.8rem); line-height: 1.2; font-weight: 650; letter-spacing: -.025em; }
h2 { font-size: 1.12rem; line-height: 1.3; margin: 0; }
h3 { font-size: 1.02rem; margin: 0 0 5px; }
p { margin: 8px 0; }
.intro { color: var(--muted); margin: 5px 0 13px; font-size: .94rem; }
.need-control { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: center; margin: 11px 0 12px; }
.need-control label { font-size: 14px; font-weight: 650; color: var(--muted); }
select { min-height: 48px; width: 100%; appearance: none; border: 1px solid #a6a594; border-radius: 10px; background-color: var(--paper); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5 7.5 5 5 5-5' stroke='%2353634a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; color: var(--ink); padding: 8px 42px 8px 12px; accent-color: var(--moss); }
select option { background: var(--paper); color: var(--ink); }
select option:checked { background: #e5eadf; color: var(--ink); }
select:focus-visible { border-color: var(--clay); }
.top-note { margin: 2px 0 8px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.list-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 4px; }
.list-heading small { color: var(--muted); font-size: 14px; }
.resource-list { border-top: 1px solid var(--line); }
.resource-row { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; padding: 11px 0 12px; border-bottom: 1px solid var(--line); }
.alternative-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.row-number { padding-top: 1px; color: var(--clay); font-family: Georgia, serif; font-size: 17px; }
.resource-row h3 { overflow-wrap: anywhere; margin-bottom: 1px; font-size: 1.02rem; }
.scope { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.availability { display: flex; flex-wrap: wrap; gap: 5px 8px; align-items: baseline; margin: 0 0 7px; font-size: 14px; }
.availability strong { color: var(--clay); font-weight: 650; }
.row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 15px; border: 1px solid var(--moss); border-radius: 7px; color: white; background: var(--moss); text-decoration: none; font-size: 15px; font-weight: 650; cursor: pointer; text-align: center; }
.button:hover { background: var(--moss-dark); }
.button.secondary { background: transparent; color: var(--moss-dark); }
.button.secondary:hover { background: var(--soft); }
.button.quiet { border-color: transparent; color: var(--moss-dark); background: transparent; padding-inline: 9px; }
.button.clay { background: var(--clay); border-color: var(--clay); }
.attempt-label { display: inline-block; margin: 0 0 5px; color: var(--clay); font-size: 14px; font-weight: 650; }
.field-note { border-left: 2px solid var(--line); padding: 8px 0 8px 13px; margin: 12px 0; color: var(--muted); font-size: 14px; }
.prototype-note { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 9px; color: var(--muted); font-size: 14px; }
.prototype-note p { margin: 2px 0; }
.backline { margin: 0 0 13px; }
.backline button { min-height: 44px; padding: 5px 7px 5px 0; border: 0; background: none; color: var(--moss-dark); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.detail-head { padding: 0 0 13px; border-bottom: 1px solid var(--line); }
.detail-head .program-context { color: var(--muted); margin: 4px 0 0; font-size: 15px; }
.detail-summary { margin: 12px 0 6px; }
.fact-line { margin: 4px 0; font-size: 15px; }
.fact-line strong { font-weight: 650; }
.unknown { color: var(--clay); }
.detail-section { padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-section h2 { margin-bottom: 5px; }
.detail-section p { margin: 4px 0; }
.detail-section ul { margin: 5px 0 0; padding-left: 23px; }
.detail-section li { padding: 1px 0; }
.snapshot { margin-top: 6px !important; color: var(--muted); font-size: 14px; }
.row-freshness { margin: 2px 0 7px !important; }
.detail-actions { margin: 13px 0 100px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.detail-actions .button { min-height: 48px; }
.sticky-call { position: fixed; z-index: 2; bottom: 0; left: 0; right: 0; padding: 9px max(18px, calc((100vw - 660px) / 2)) calc(9px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--canvas) 95%, transparent); border-top: 1px solid var(--line); }
.sticky-inner { max-width: 660px; margin: 0 auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.sticky-name { min-width: 0; font-size: 14px; line-height: 1.25; font-weight: 650; overflow-wrap: anywhere; }
.sticky-name span { display: block; color: var(--muted); font-weight: 450; }
.sticky-call .button { flex: 0 0 auto; min-width: 112px; }
.form-intro { color: var(--muted); margin: 5px 0 13px; }
.outcome-list { display: grid; gap: 7px; margin: 12px 0; }
.outcome-option { display: flex; gap: 10px; align-items: center; min-height: 48px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); cursor: pointer; }
.outcome-option:has(input:checked) { border-color: var(--moss); box-shadow: inset 0 0 0 1px var(--moss); }
.outcome-option input { width: 19px; height: 19px; accent-color: var(--moss-dark); }
.field-label { display: block; margin: 13px 0 5px; font-weight: 650; }
textarea { display: block; width: 100%; min-height: 94px; padding: 10px 11px; color: var(--ink); background: var(--paper); border: 1px solid #a6a594; border-radius: 7px; resize: vertical; }
.private-note { color: var(--muted); font-size: 14px; margin-top: 5px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.saved-note { background: var(--soft); border-left: 3px solid var(--moss); padding: 10px 12px; margin: 12px 0; }
.next-step { padding: 12px 0; border-top: 1px solid var(--line); margin-top: 11px; }
.next-step .button { margin-top: 7px; }
.all-tried { border-left: 3px solid var(--clay); padding: 10px 12px; background: var(--paper); margin: 12px 0; }
.error-box { background: var(--paper); padding: 15px; border: 1px solid var(--line); border-radius: 8px; margin-top: 16px; }
.error-box p { margin-top: 0; }
.error-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.loading { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 700px) {
  .page { padding-top: 26px; }
  .resource-row { padding: 14px 0; }
  .detail-head { padding-bottom: 17px; }
}
@media (max-width: 380px) {
  .page { width: calc(100% - 30px); padding-top: 13px; }
  .topbar { padding-inline: 15px; }
  .need-control { grid-template-columns: 1fr; gap: 3px; margin: 8px 0 10px; }
  .resource-row { padding: 9px 0 10px; }
  .row-actions { gap: 5px; }
  .row-actions .button { min-height: 48px; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
