:root {
  --ink: #14201e; --muted: #63706b; --paper: #f3f5f0; --card: #fff;
  --green: #246b55; --green-dark: #183f35; --lime: #d6ef78; --orange: #e97143;
  --line: #dce2dc; --shadow: 0 12px 30px rgba(21, 39, 34, .08);
}
* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif; }
button, input { font: inherit; }
button { color: inherit; }
.hero { padding: max(28px, env(safe-area-inset-top)) 20px 48px; background: var(--green-dark); color: white; }
.eyebrow { color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.hero h1 { margin: 7px 0 3px; font-size: clamp(27px, 8vw, 36px); letter-spacing: -.045em; line-height: 1.05; }
.hero h1 span { color: var(--lime); font-weight: 400; }
.hero p { margin: 8px 0 0; color: #b8c7c1; font-size: 13px; }
main { max-width: 780px; margin: 0 auto; padding: 0 14px 90px; }
.now-panel { position: sticky; top: 8px; z-index: 10; margin: -30px 0 16px; padding: 16px; border: 1px solid rgba(255,255,255,.65); border-radius: 20px; color: white; background: linear-gradient(145deg, #286d58, #174238); box-shadow: 0 16px 35px rgba(16,45,37,.24); }
.now-head { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 900; letter-spacing: .13em; color: var(--lime); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(214,239,120,.14); }
.sync { margin-left: auto; color: #b9cbc5; letter-spacing: 0; font-weight: 600; }
.now-time { margin-top: 12px; color: #c9d7d1; font-size: 12px; }
.now-panel h2 { margin: 2px 0; font-size: 22px; line-height: 1.15; letter-spacing: -.025em; }
.now-panel p { margin: 4px 0 10px; color: #e5ece8; line-height: 1.35; }
.jump { border: 0; padding: 0; color: var(--lime); background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.now-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.now-finish { padding: 7px 10px; border: 1px solid rgba(214,239,120,.45); border-radius: 9px; color: #193f35; background: var(--lime); font-size: 11px; font-weight: 850; cursor: pointer; }
.next-line { display: flex; gap: 10px; align-items: flex-start; margin: 13px -16px 0; padding: 12px 16px 0; border-top: 1px solid rgba(255,255,255,.14); }
.next-line > span { margin-top: 2px; color: #99afa7; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.next-line div { display: grid; }
.next-line strong { font-size: 12px; }
.next-line small { color: #aebfb9; font-size: 11px; }
.progress-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.progress-track { overflow: hidden; flex: 1; height: 5px; border-radius: 5px; background: rgba(255,255,255,.15); }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--lime); transition: width .25s; }
.progress-row strong { color: var(--lime); font-size: 11px; }
.day-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 -14px 12px; padding: 0 14px 4px; clip-path: inset(0 14px 0 0); scroll-padding-inline: 14px; scrollbar-width: none; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tabs button { flex: 0 0 calc((100vw - 44px) / 3); padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; text-align: left; background: #fbfcfa; cursor: pointer; }
.day-tabs b, .day-tabs small { display: block; }
.day-tabs b { font-size: 12px; }
.day-tabs small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.day-tabs button.active { border-color: var(--green); color: white; background: var(--green); box-shadow: 0 6px 14px rgba(36,107,85,.18); }
.day-tabs button.active small { color: #d7e2de; }
.view-toggle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 8px 0 20px; padding: 4px; border-radius: 12px; background: #e5e9e3; }
.view-toggle button { padding: 8px 5px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 750; cursor: pointer; }
.view-toggle button.active { color: var(--ink); background: white; box-shadow: 0 2px 7px rgba(0,0,0,.06); }
.view { display: none; }
.view.active { display: block; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 12px; }
.section-title h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.section-title span { color: var(--muted); font-size: 11px; }
.timeline { position: relative; }
.step { position: relative; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 17px; background: var(--card); box-shadow: 0 3px 14px rgba(25,45,39,.035); }
.step.current { border-color: var(--green); box-shadow: var(--shadow); }
.step.attention { border-color: #efc9ba; }
.step.complete { opacity: .72; }
.step details > summary { display: flex; list-style: none; cursor: pointer; }
.step summary::-webkit-details-marker { display: none; }
.rail { position: relative; width: 35px; flex: 0 0 35px; }
.rail:after { position: absolute; top: 28px; bottom: 0; left: 19px; width: 1px; content: ""; background: var(--line); }
.rail i { position: absolute; z-index: 1; top: 20px; left: 14px; width: 11px; height: 11px; border: 3px solid white; border-radius: 50%; background: #adb8b3; box-shadow: 0 0 0 1px #adb8b3; }
.current .rail i { background: var(--lime); box-shadow: 0 0 0 2px var(--green); }
.attention .rail i { background: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.complete .rail i { background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.step-summary { position: relative; flex: 1; min-width: 0; padding: 14px 42px 13px 0; }
.step-top { display: flex; gap: 8px; align-items: center; }
.step-top time { color: var(--green); font-size: 11px; font-weight: 850; }
.badge { padding: 2px 6px; border-radius: 20px; color: #6d7874; background: #edf0ed; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.current .badge { color: #164d3e; background: var(--lime); }
.attention .badge { color: #8e3e22; background: #ffe0d3; }
.complete .badge { color: white; background: var(--green); }
.step h3 { margin: 4px 0 1px; font-size: 16px; letter-spacing: -.015em; }
.step-summary p { overflow: hidden; margin: 0; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.step-summary p span { color: var(--orange); }
.step-count { position: absolute; top: 50%; right: 14px; padding: 5px 7px; border-radius: 8px; color: var(--muted); background: var(--paper); font-size: 9px; transform: translateY(-50%); }
.step-body { padding: 0 14px 15px 35px; }
.action-callout { margin-bottom: 12px; padding: 11px 12px; border-radius: 11px; color: #193f35; background: #eff8d8; font-weight: 700; }
.action-callout span { display: block; margin-bottom: 2px; color: #557126; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.facts div { min-width: 0; padding: 9px; border-radius: 10px; background: var(--paper); }
.facts span, .facts strong { display: block; }
.facts span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.facts strong { margin-top: 2px; font-size: 10px; line-height: 1.3; }
.facts .reference { margin-top: 2px; color: var(--orange); font-size: 8px; letter-spacing: 0; text-transform: none; }
.detail { margin: 9px 0; color: #4c5954; font-size: 12px; }
.location-link { display: flex; gap: 10px; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 10px; padding: 9px 10px; border: 1px dashed #b8c5be; border-radius: 10px; color: var(--green); background: white; text-align: left; text-decoration: none; font-size: 10px; font-weight: 700; cursor: pointer; }
.location-link span { min-width: 0; }
.location-link b { flex: 0 0 auto; font-size: 9px; }
.checklist { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.checklist label, .need-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px; background: white; cursor: pointer; }
.checklist input, .need-item input { position: absolute; opacity: 0; }
.checklist label i, .need-item i { display: grid; flex: 0 0 19px; height: 19px; place-items: center; border: 1.5px solid #aab5b0; border-radius: 6px; }
.checklist label.checked i, .need-item.checked i { border-color: var(--green); background: var(--green); }
.checklist label.checked i:after, .need-item.checked i:after { content: "✓"; color: white; font-size: 12px; font-weight: 900; }
.checklist label span, .need-item span { font-size: 12px; line-height: 1.45; }
.checklist label.checked span, .need-item.checked span { color: #87918d; text-decoration: line-through; }
.finish-step { width: 100%; margin-top: 10px; padding: 11px; border: 0; border-radius: 11px; color: white; background: var(--green); font-size: 12px; font-weight: 850; cursor: pointer; }
.finish-step.done { color: var(--green); background: #e5efe9; }
.contingency { margin-top: 10px; padding: 10px 11px; border-left: 3px solid #ebb49e; border-radius: 0 8px 8px 0; background: #fff7f2; }
.contingency b { color: #94462a; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.contingency p { margin: 3px 0 0; color: #665750; font-size: 11px; }
.map-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.map-toolbar { display: flex; gap: 5px; padding: 10px; }
.map-toolbar button { flex: 1; padding: 7px; border: 0; border-radius: 8px; color: var(--muted); background: var(--paper); font-size: 10px; font-weight: 800; }
.map-toolbar button.active { color: white; background: var(--green); }
#routeMap { display: block; width: 100%; height: auto; padding: 0 10px; }
.route-line { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 8; }
.map-point { cursor: pointer; }
.map-point circle { fill: white; stroke: var(--green); stroke-width: 3; transition: .2s; }
.map-point text:not(.point-label) { fill: var(--green); font-size: 9px; font-weight: 900; pointer-events: none; }
.map-point .point-label { max-width: 60px; fill: #31413c; font-size: 8px; font-weight: 800; paint-order: stroke; stroke: var(--paper); stroke-width: 4; }
.map-point.tentative circle { stroke: var(--orange); stroke-dasharray: 2 2; }
.map-point.selected circle { fill: var(--lime); r: 15; }
.map-detail { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 105px; padding: 14px 16px; border-top: 1px solid var(--line); }
.map-detail > div { min-width: 0; }
.map-detail span { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.map-detail h3 { margin: 2px 0; font-size: 15px; }
.map-detail p { margin: 0; color: var(--muted); font-size: 10px; }
.map-detail a { color: var(--green); font-size: 10px; }
.directions { flex: 0 0 auto; padding: 9px; border-radius: 9px; background: var(--paper); font-weight: 850; text-decoration: none; }
.week-note { margin-bottom: 10px; padding: 11px; border-radius: 11px; color: #713d29; background: #fff0e8; font-size: 11px; font-weight: 650; }
.agenda-day { overflow: hidden; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.agenda-day > summary { display: flex; justify-content: space-between; padding: 13px; font-weight: 850; cursor: pointer; list-style: none; }
.agenda-day > summary span { color: var(--muted); font-size: 10px; font-weight: 500; }
.agenda-day.conflict > summary { color: #9c4426; }
.agenda-row { display: grid; grid-template-columns: 82px 1fr; gap: 8px; padding: 9px 12px; border-top: 1px solid #edf0ed; }
.agenda-row time { color: var(--green); font-size: 10px; font-weight: 800; }
.agenda-row p, .agenda-row strong, .agenda-row small { display: block; margin: 0; }
.agenda-row strong { font-size: 11px; }
.agenda-row small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.ops-title { margin: 22px 2px 10px; font-size: 17px; }
.ops-card { margin-bottom: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.ops-card summary { padding: 11px 0; font-size: 12px; font-weight: 800; cursor: pointer; }
.ops-card p { margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.needs { margin-top: 22px; }
.needs details { overflow: hidden; border: 1px solid #e5bba9; border-radius: 15px; background: #fff9f5; }
.needs summary { display: flex; justify-content: space-between; padding: 13px; color: #873d24; font-weight: 850; list-style: none; cursor: pointer; }
.needs summary b { display: grid; min-width: 23px; height: 23px; place-items: center; border-radius: 20px; color: white; background: var(--orange); font-size: 10px; }
#needsList { display: grid; gap: 1px; border-top: 1px solid #f0d9cf; background: #f0d9cf; }
.need-item { background: #fffdfb; }
footer { padding: 24px 5px 0; color: #89938f; text-align: center; font-size: 9px; }
footer span { margin: 0 5px; }
@media (min-width: 680px) {
  main { padding-left: 22px; padding-right: 22px; }
  .now-panel { top: 14px; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .day-tabs { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; clip-path: none; }
  .day-tabs button { flex-basis: 116px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
