[hidden]{display:none!important}
html,body{background:#181819;color:#f7f7f7;font-family:Roboto,Arial,sans-serif}
button,a,input{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.45;cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #f56b31;outline-offset:2px}
#loading{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:linear-gradient(#171718cc,#171718e8),url('./media/skin/cover.jpg') center/cover}
#client-menu{
  position:fixed;inset:max(11px,env(safe-area-inset-top)) env(safe-area-inset-right) auto env(safe-area-inset-left);
  z-index:30;display:grid;grid-template-rows:52px auto auto;justify-items:start;pointer-events:none
}
.brand{display:block;width:min(400px,70vw);height:auto;justify-self:end;margin-right:15px}
#toggle-menu,#destinations button{background:#000;color:#fff;border:0;font-weight:300;pointer-events:auto}
#toggle-menu{padding:0 15px 0 8px;height:40px;margin:0 0 3px 13px;font-size:20px;display:flex;align-items:center;gap:8px}
.menu-icon{display:grid;place-items:center;width:24px;font-size:25px;line-height:1}
#destinations{
  width:min(200px,100vw);max-height:calc(100dvh - 175px);overflow:auto;overscroll-behavior:contain;
  display:grid;gap:2px;pointer-events:auto
}
#destinations button{display:flex;align-items:center;gap:10px;min-height:45px;padding:8px 10px;text-align:left}
#destinations button:hover,#toggle-menu:hover{background:#222}
#destinations svg{width:20px;height:20px}
#toolbar{position:fixed;z-index:30;bottom:0;left:0;right:0;display:flex;justify-content:space-between;gap:6px;
  padding:8px max(11px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(11px,env(safe-area-inset-left));
  background:linear-gradient(transparent,#000a);pointer-events:none}
.tools{display:flex;gap:2px;pointer-events:auto}
.tools button{display:grid;place-items:center;width:40px;height:42px;border:0;border-radius:4px;background:transparent;color:inherit;padding:8px}
.tools button:hover,.tools button[aria-pressed="true"]{background:#0007}
.tools svg,#destinations svg{display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tools svg{width:24px;height:24px}
#notice,#measure-status{position:fixed;z-index:29;bottom:65px;left:50%;transform:translateX(-50%);background:#202021ef;border:1px solid #ffffff48;border-radius:7px;padding:10px 13px;width:max-content;max-width:calc(100vw - 24px)}
#route-bar{
  --route-ink:#1d1d1b;--route-orange:#ff4e00;--route-paper:#fff6e5;
  position:fixed;z-index:29;bottom:calc(64px + env(safe-area-inset-bottom));
  left:max(14px,env(safe-area-inset-left));display:flex;align-items:center;gap:10px;
  max-width:calc(100vw - 28px);padding:9px 9px 9px 12px;
  color:var(--route-ink);background:var(--route-paper);border-radius:5px;box-shadow:0 6px 20px #0005;
  border-left:4px solid var(--route-orange)
}
.route-sun{width:22px;height:22px;flex:none;fill:var(--route-orange)}
.route-destination{display:grid;gap:2px;min-width:0;padding-right:8px}
#route-status{font-size:.64rem;line-height:1.2;font-weight:800;letter-spacing:.105em;text-transform:uppercase}
#route-label{font-size:1.12rem;line-height:1.08;font-weight:800;overflow-wrap:anywhere}
.route-controls{display:flex;align-items:center;gap:4px;margin-left:auto}
.route-controls button{min-height:44px;color:var(--route-ink);background:transparent;border:1px solid currentColor;border-radius:4px;padding:0 11px;font-size:.85rem;font-weight:700}
.route-controls button:hover{background:#ff4e0022}
#route-close{min-width:44px;font-size:1.5rem;border-color:transparent}
body:has(#route-bar:not([hidden])) #wayfinder{color:#ff7436;background:#161616d9}
#panel button,#panel .link{color:#fff;background:#363638;border:1px solid #ffffff35;border-radius:5px;padding:8px 10px;text-decoration:none}
#panel button:hover,#panel .link:hover{background:#505052}
#measure-status small{display:block;margin-top:4px}
#measure-overlay{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:22}
#measure-overlay .measure-outline{stroke:#171717;stroke-width:5}
#measure-overlay .measure-line{stroke:white;stroke-width:2}
#measure-overlay circle{fill:#f57337;stroke:white;stroke-width:1.5}
body.measuring #canvas{cursor:crosshair!important}
body.measuring #navigation-cursor{display:none}
#panel{max-width:min(92vw,570px);width:100%;max-height:80dvh;overflow:auto;color:#f7f7f7;background:#232325;border:1px solid #ffffff45;border-radius:8px;padding:16px}
#panel::backdrop{background:#0008}
.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}
.panel-heading h2{margin:0;font-size:1.25rem}
.panel-heading button{font-size:20px;line-height:1}
.panel-options{display:grid;gap:8px}
#panel:has(.route-choices){background:#fff6e5;color:#1d1d1b;border-color:#1d1d1b}
#panel:has(.route-choices) .panel-heading h2{font-weight:800;letter-spacing:.045em;text-transform:uppercase}
#panel:has(.route-choices) button{background:transparent;color:#1d1d1b;border-color:#1d1d1b}
#panel .route-choices button{
  min-height:44px;display:flex;align-items:center;justify-content:space-between;text-align:left;
  gap:12px;padding-inline:12px;font-weight:700
}
#panel .route-choices button::after{
  content:"";width:8px;height:8px;flex:none;margin-right:3px;transform:rotate(45deg);
  border-top:2px solid #b83a00;border-right:2px solid #b83a00
}
#panel:has(.route-choices) button:hover{background:#ff4e0020}
.share-row{display:flex;gap:7px;margin:.45rem 0;align-items:center}
.share-row input{min-width:0;flex:1;padding:7px}
.share-links{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:13px}
.plan-image{display:block;max-width:100%;max-height:58dvh;object-fit:contain;margin:auto;background:#fff}
.help-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;list-style:none;margin:0 0 16px;padding:0;text-align:center}
.help-actions li{display:grid;align-content:start;justify-items:center;gap:6px}
.help-actions span{font-size:30px;line-height:1.2}
.help-actions small{line-height:1.35;color:#e3e3e3}
@media(max-width:940px){
  body #dev-position{inset-inline-start:max(8px,env(safe-area-inset-left))!important;transform:none!important}
}
@media(max-width:600px){
  .brand{width:min(250px,73vw)}
  #toggle-menu{width:40px;justify-content:center;padding:0}
  .menu-label{display:none}
  .tools{gap:0}
  .tools button{width:clamp(31px,10vw,40px);padding:5px}
  .tools svg{width:21px;height:21px}
  #route-bar{gap:7px;padding-left:8px}
  .route-sun{width:17px;height:17px}
  #route-label{font-size:1rem}
  .route-destination{padding-right:0}
  .help-actions{grid-template-columns:1fr;text-align:left}
  .help-actions li{grid-template-columns:30px 1fr;justify-items:start;align-items:center;column-gap:12px}
  .help-actions span{grid-row:span 2}
}
