:root{font-family:system-ui,-apple-system,sans-serif;color:#14233b;background:#f1f5f9;--blue:#235bd8;--line:#dce4ee}*{box-sizing:border-box}body{margin:0}header{height:76px;background:white;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px}.logo{display:grid;place-items:center;width:44px;height:44px;background:var(--blue);color:white;border-radius:13px;font-size:32px}h1,h2,p{margin:0}h1{font-size:23px;letter-spacing:-.7px}small,.muted{color:#64748b}button,input{font:inherit}button{cursor:pointer;border:0;border-radius:9px;padding:10px 13px;font-size:13px;font-weight:650;background:#e9eff8;color:#233c67}button:hover{filter:brightness(.95)}button:focus-visible,input:focus-visible{outline:3px solid #90b8ff;outline-offset:2px}.modes{display:flex;background:#edf2f8;padding:4px;border-radius:12px;gap:3px}.modes button{background:transparent}.modes .active{background:white;box-shadow:0 1px 4px #bec9d9;color:var(--blue)}main{display:grid;grid-template-columns:350px minmax(0,1fr);height:calc(100dvh - 76px);min-height:420px}aside{background:white;border-right:1px solid var(--line);padding:23px 20px;overflow:auto}.heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.eyebrow{font-size:10px;letter-spacing:1.3px;font-weight:750;color:#64748b;display:block;margin-bottom:5px}h2{font-size:24px;letter-spacing:-.5px}.count{font-size:13px;padding:3px 8px;background:#edf2fa;border-radius:20px;vertical-align:middle}.outline{border:1px solid var(--line);background:white;color:#235bd8}.primary{background:var(--blue);color:white}.danger{background:#fff0ef;color:#ad2721}.link{background:transparent;color:#64748b;padding-left:0}.notice{font-size:12px;line-height:1.5;background:#edf4ff;padding:12px;border-radius:9px;margin-bottom:17px;color:#315384}label{display:block;font-size:12px;font-weight:650;color:#42526a}input{width:100%;margin-top:6px;border:1px solid #cbd5e1;border-radius:9px;padding:10px 11px;font-size:14px;background:#fff;min-width:0}#addForm{display:flex;align-items:end;gap:8px;margin-bottom:15px}#addForm label{flex:1}.search{margin-bottom:8px}.person{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #eef2f6}.avatar{width:39px;height:39px;border-radius:50%;display:grid;place-items:center;color:white;font-weight:700;flex:none}.personInfo{flex:1;min-width:0}.personInfo strong,.personInfo small{display:block;overflow-wrap:anywhere}.personInfo strong{font-size:14px}.personInfo small{font-size:11px;margin-top:3px}.person button{padding:8px 9px}.person .remove{background:none;color:#76869b;font-size:19px;padding:3px}.person.selected{background:#eff5ff;border-radius:8px;padding-left:6px}.small{font-size:12px;line-height:1.5;margin-top:14px}.mapsection{position:relative;min-height:300px;overflow:hidden;background:#e0e7df}#map{height:100%;width:100%;z-index:0}.mapstatus{position:absolute;top:14px;right:14px;background:white;padding:8px 12px;border-radius:8px;font-size:12px;box-shadow:0 2px 12px #0002;z-index:500}.mapbar{position:absolute;bottom:28px;left:16px;right:16px;display:flex;gap:8px;align-items:center;background:white;padding:14px;border-radius:13px;box-shadow:0 3px 20px #0002;z-index:500}.mapbar div{flex:1}.mapbar strong,.mapbar small{display:block}.mapbar strong{font-size:17px}.marker-dot{display:grid;place-items:center;width:35px;height:35px;border:3px solid white;border-radius:50%;color:white;font-weight:700;box-shadow:0 2px 7px #0005}.leaflet-tooltip{font-weight:650}.muted{font-size:12px;line-height:1.5}#account{margin-bottom:16px;border-bottom:1px solid var(--line);padding-bottom:12px}#account button{margin-top:7px}#signed>button:not(.link),#register button{width:100%}#invite{padding-top:12px}#invite small{display:block;font-size:11px;margin-top:6px}#viewers{margin-top:12px;font-size:12px}#viewers div{display:flex;align-items:center;justify-content:space-between;gap:6px}#toast{position:fixed;bottom:14px;left:50%;transform:translateX(-50%);padding:12px 18px;border-radius:10px;background:#14233b;color:white;max-width:90vw;z-index:1000;font-size:13px} [hidden]{display:none!important}@media(max-width:700px){header{padding:0 12px;height:65px}.brand{gap:7px}.logo{width:34px;height:34px;font-size:25px}h1{font-size:19px}.brand small{font-size:10px}.modes button{padding:8px 7px;font-size:11px}main{display:flex;flex-direction:column;height:auto;min-height:calc(100dvh - 65px)}.mapsection{order:-1;height:53dvh;min-height:270px}aside{border:0;padding:16px}.mapbar{bottom:23px;left:8px;right:8px;padding:9px}.mapbar button{font-size:11px;padding:8px}.mapbar strong{font-size:14px}.mapbar small{font-size:10px}}

#navActions{display:flex;gap:6px;flex:0 0 auto;flex-wrap:wrap}button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:700px){.mapbar{flex-wrap:wrap}.mapbar>div:first-child{flex:1 1 100%}#navActions{flex:1 1 auto}.mapbar button{white-space:nowrap}}

.mapbox-person{position:relative;display:block;background:none;border:0;padding:0;overflow:visible;line-height:1;box-shadow:none}.mapbox-person:hover{filter:none}.marker-name{position:absolute;bottom:40px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#fff;color:#14233b;padding:4px 7px;border-radius:6px;font-size:11px;box-shadow:0 1px 5px #0003;pointer-events:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right{z-index:1}

#groups { margin: 16px 0; display: grid; gap: 10px; }
#groups h3 { margin: 0; font-size: 16px; }
#groups form { display: flex; align-items: end; gap: 8px; }
#groups form label { flex: 1; }
#groupSelect { display: block; width: 100%; margin-top: 6px; padding: 8px; }
#groupResults > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#groupActions:not([hidden]) { display: flex; flex-wrap: wrap; gap: 6px; }
button:disabled { cursor: default; opacity: .55; }

.mapsection.full-map { position: fixed; inset: 0; height: 100dvh; width: 100%; z-index: 600; }
#you[aria-pressed="true"], #fullMap[aria-pressed="true"] { background: var(--blue); color: #fff; }

#trip { display: grid; gap: 8px; }
#tripStops { margin: 0; padding-left: 24px; }
#tripStops li { margin-bottom: 6px; }
#tripStops li button { margin-left: 6px; }
#placeResults > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stop-pin { display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid white; border-radius: 50%; background: #334155; color: white; font-size: 12px; font-weight: 700; }
#tripStatus:empty { display: none; }
#trip .coordinate-stop { display: grid; grid-template-columns: 1fr 1fr; margin-top: 8px; }
.coordinate-stop label:first-child, .coordinate-stop button { grid-column: 1 / -1; }
