:root {
  --orange: #f26a1b; --ink: #1b2126; --soft: #5a636b; --line: #e4e1dc; --paper: #f4f2ef; --card: #fff; --dark: #141a1f;
  --red: #d93025; --yellow: #f2c200; --amber: #f28c1b; --green: #2f9e5a;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #ece9e4; --soft: #a3abb2; --line: #2c343b; --paper: #0f1418; --card: #182026; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--orange); }
.top { background: var(--dark); color: #e9e6e1; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); display: flex; align-items: center; gap: 12px; }
.top .back { color: #fff; font-size: 30px; line-height: 1; text-decoration: none; padding: 0 4px; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .02em; flex: 1; }
.brand b { color: var(--orange); }
.brand small { font-weight: 500; color: #b9b4ad; letter-spacing: 0; }
.who { font-size: 13px; color: #b9b4ad; }
.who a { color: #fff; }
main { max-width: 720px; margin: 0 auto; padding: 14px 16px 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 0 0 14px; }
.card.highlight { border-color: var(--orange); }
h1 { font-size: 24px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 4px 0 10px; display: flex; align-items: center; gap: 8px; }
h3 { font-size: 16px; margin: 18px 0 8px; }
p { margin: 0 0 8px; }
.eyebrow { color: var(--soft); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: 6px; }
.muted { color: var(--soft); }
.small { font-size: 13px; }
.center { text-align: center; }
.note { background: color-mix(in srgb, var(--amber) 14%, transparent); border-left: 3px solid var(--amber); padding: 6px 10px; border-radius: 6px; }
.problem { color: var(--red); font-weight: 600; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0; }
.facts dt { color: var(--soft); }
.facts dd { margin: 0; font-weight: 600; }
.row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.row:first-of-type { border-top: 0; }
.row .grow { flex: 1; min-width: 0; }
.row p { margin: 2px 0; }
a.row:hover strong { color: var(--orange); }
.split { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.badge { background: var(--amber); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 2px 9px; white-space: nowrap; }
.light { display: inline-block; width: 16px; height: 16px; border-radius: 50%; flex: none; margin-top: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.light.red { background: var(--red); } .light.yellow { background: var(--yellow); } .light.orange { background: var(--amber); }
.light.green { background: var(--green); } .light.cleared { background: var(--line); }
h2 .light, .eyebrow .light { margin-top: 0; }
.bigdot .light { width: 48px; height: 48px; }
.legend { font-size: 13px; color: var(--soft); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 12px; }
.legend .light { width: 11px; height: 11px; margin: 0 2px 0 0; }
.counts { display: flex; gap: 16px; font-weight: 600; }
.counts > span { display: flex; align-items: center; gap: 6px; }
.counts .light { margin: 0; }
.btn { display: inline-block; background: var(--orange); color: #fff; border: 0; border-radius: 12px; padding: 12px 18px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; margin: 4px 4px 4px 0; }
.btn.small { padding: 8px 12px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
.btn.big { display: block; width: 100%; text-align: center; font-size: 19px; padding: 16px; margin: 0 0 14px; }
form label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 12px; }
input, textarea, select { display: block; width: 100%; margin-top: 4px; font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
textarea { resize: vertical; }
.copy { font-family: Menlo, monospace; font-size: 13px; }
.search input { margin: 0 0 6px; }
fieldset.urgency { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
fieldset.urgency legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.pick { margin: 0 !important; }
.pick input { position: absolute; opacity: 0; width: 1px; }
.pick span { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 16px; }
.pick.down span { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.pick input:checked + span { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 12%, transparent); }
.pick.down input:checked + span { border-color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.photos input { padding: 9px; }
.photo-note { font-size: 13px; color: var(--soft); font-weight: 400; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.thumbs img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
details > summary { cursor: pointer; font-weight: 600; }
details.card > summary { color: var(--soft); }
.log { padding-left: 18px; font-size: 14px; }
.log li { margin: 6px 0; }
pre { white-space: pre-wrap; font: 13px/1.4 Menlo, monospace; background: var(--paper); padding: 8px; border-radius: 8px; }
.links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; font-weight: 600; }
.foot { text-align: center; color: var(--soft); font-size: 12px; padding: 0 16px 30px; }
.hero h1 { font-size: 28px; }
@media (max-width: 480px) {
  .who .name { display: none; }
  .brand small { display: none; }
}

/* Side menu: fixed down the left on a computer, slides out on a phone. */
.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 24px; line-height: 1; padding: 0 4px; cursor: pointer; }
.side { position: fixed; top: 54px; left: 0; bottom: 0; width: 230px; background: var(--card); border-right: 1px solid var(--line); padding: 16px 10px; overflow-y: auto; z-index: 20; }
.side a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.side a:hover { background: var(--paper); }
.side a.here { background: color-mix(in srgb, var(--orange) 14%, transparent); color: var(--orange); }
.side-org { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--soft); font-weight: 700; padding: 0 12px; margin-bottom: 6px; }
.side-who { font-size: 13px; color: var(--soft); padding: 0 12px; margin: 0; }
.side hr { border: 0; border-top: 1px solid var(--line); margin: 12px 4px; }
main.with-side { margin-left: max(230px, calc((100vw - 720px) / 2)); }
.scrim { position: fixed; inset: 54px 0 0 0; background: rgba(0,0,0,.35); z-index: 15; }
@media (min-width: 900px) { .top .who { display: none; } }
@media (max-width: 899px) {
  .menu-btn { display: block; }
  main.with-side { margin-left: auto; }
  .side { transform: translateX(-105%); transition: transform .2s ease; box-shadow: 0 0 30px rgba(0,0,0,.25); }
  .side.open { transform: none; }
}
details.add-model > summary { list-style: none; display: inline-block; color: #fff; }
details.add-model > summary::-webkit-details-marker { display: none; }
details.add-model[open] > summary { margin-bottom: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
.contact { padding: 10px 0; border-top: 1px solid var(--line); }
.contact:first-of-type { border-top: 0; }
.contact p { margin: 2px 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--paper); color: var(--soft); margin-left: 6px; }
.side a.platform { color: var(--orange); }
.card.done { border-color: var(--amber); }
.timeline { list-style: none; padding: 0; margin: 10px 0; }
.timeline li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; position: relative; }
.timeline li.todo { opacity: .55; }
.timeline .light { width: 14px; height: 14px; }
.light.held { background: #fff; box-shadow: inset 0 0 0 2px var(--soft); }
.right { text-align: right; margin: -6px 0 6px; }
.card.head h1 { margin-bottom: 2px; }
.status { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 10px 0 6px; }
.status .light { margin: 0; }
details.card > summary { font-weight: 600; }
.photo-pick { margin: 0 0 14px; }
.photo-pick .photo-btn { margin: 0 8px 0 0; }
.previews { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.previews img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.opt { font-weight: 400; color: var(--soft); }
.urg { font-weight: 700; }
.urg.down { color: var(--red); }
