:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #192e25; background: #f3f3ed;
  --paper: #fffefa; --line: #dedfd4; --forest: #214b39; --muted: #53655b; --danger: #9b382e;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 54px) 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 73px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.035em; }
.brand-mark { flex: none; display: block; width: 32px; height: 32px; border-radius: 11px; background: var(--forest); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.role-label { padding: 5px 10px; border-radius: 100px; background: #e2ebdf; color: var(--forest); font-size: 12px; font-weight: 750; }
main { padding: 32px 0 20px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(30px, 6vw, 52px); letter-spacing: -.06em; line-height: 1.05; }
h2 { margin-bottom: 7px; font-size: 18px; letter-spacing: -.03em; }
p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.intro { max-width: 61ch; margin-top: 11px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.card { padding: 20px; border: 1px solid var(--line); background: var(--paper); border-radius: 19px; }
.narrow { max-width: 450px; margin-top: 22px; }
.card > button { margin-top: 14px; }
.section-head, .actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.section-head { justify-content: space-between; }
.actions { margin-top: 14px; }
button, input, .button { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid transparent; padding: 8px 12px; min-height: 42px; color: white; background: var(--forest); font-size: 13px; font-weight: 750; cursor: pointer; text-decoration: none; }
.secondary { background: var(--paper); border-color: #b7c8ba; color: var(--forest); }
.danger { background: var(--danger); }
button:disabled { opacity: .58; cursor: default; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #a66122; outline-offset: 3px; }
.text-button { margin-top: 9px; color: var(--forest); background: transparent; padding-left: 0; text-decoration: underline; text-underline-offset: 3px; }
label { display: block; font-size: 15px; font-weight: 750; margin-bottom: 6px; }
input { display: block; width: 100%; max-width: 270px; border-radius: 9px; border: 1px solid #b7c8ba; background: #fff; color: #192e25; padding: 8px 12px; min-height: 43px; margin-top: 11px; }
.invite-card { margin-top: 20px; }
.invite-code { display: block; margin: 9px 0 3px; font-size: clamp(23px, 5vw, 34px); font-family: ui-monospace, monospace; font-weight: 800; letter-spacing: .08em; }
.position-details { display: grid; gap: 10px; margin: 14px 0; }
.position-details div { display: grid; grid-template-columns: 98px 1fr; gap: 5px; align-items: start; }
dt { font-size: 13px; color: var(--muted); }
dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 750; font-size: 13px; overflow-wrap: anywhere; }
.state, .message { margin-top: 10px; font-weight: 650; }
.state:empty { display: none; }
.message { padding: 11px 14px; border-radius: 10px; border: 1px solid #ced9ca; background: #e7eee1; }
.message.error, .urgent { color: #762c23; background: #fff0ea; border-color: #e4bdb3; }
.place-list { margin: 9px 0 0; padding: 0; list-style: none; }
.place-list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 9px 0; }
.place-list li + li { border-top: 1px solid var(--line); }
.place-list strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.place-list small, .place-list time { color: var(--muted); font-size: 12px; }
.place-list time { flex: none; }
.place-list button { flex: none; }
.route-card { margin-top: 22px; }
.route-card > summary { font-size: 18px; font-weight: 750; letter-spacing: -.03em; cursor: pointer; }
.route-card summary:focus-visible { outline: 3px solid #a66122; outline-offset: 3px; }
.route-card p { margin-top: 8px; }
.route-figure { margin: 11px 0 12px; }
.route-figure canvas { display: block; width: 100%; height: 220px; background: #e8eee2; border: 1px solid #d6e0d3; border-radius: 12px; }
.route-figure figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }
#route-point-disclosure summary { font-size: 13px; cursor: pointer; font-weight: 750; }
#route-points a { color: var(--forest); font-size: 13px; text-underline-offset: 3px; }
.route-choice { display: flex; gap: 9px; align-items: center; margin: 12px 0 3px; font-size: 13px; cursor: pointer; }
.route-choice input { width: 17px; height: 17px; min-height: 0; margin: 0; accent-color: var(--forest); }
.route-help { font-size: 12px; }
dialog { width: min(460px, calc(100% - 32px)); max-height: 90dvh; padding: 20px; border-radius: 19px; border: 1px solid var(--line); color: inherit; background: var(--paper); }
dialog::backdrop { background: #192e256e; }
dialog h2 { margin-bottom: 16px; }
dialog fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 15px 0; padding: 10px; }
dialog legend { font-size: 14px; font-weight: 750; padding: 0 5px; }
.zone-coordinates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.zone-coordinates label { font-size: 12px; }
.zone-coordinates input { margin-top: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
footer { border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 12px; }
@media (max-width: 560px) {
  main { padding-top: 24px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 16px; }
}
