/* SIGMA / AERO REVIVAL — a designed 2005-era navigator, not rounded app chips.
   Geography lives in the vector map. Glass, refraction, and pinstripes live only
   in the hardware UI, following the controls rather than the viewport map. */
body[data-theme=aero]{
  --sigma-mint:#147eb7;
  --skin-accent:#248bc7;
  --skin-accent-rgb:36,139,199;
  --accent:#197fb8;
  --accent-rgb:25,127,184;
  --accent-ink:#f9ffff;
  --shell-ink:#173e5b;
  --shell-muted:#47738a;
  --shell-stroke:rgba(53,125,164,.58);
  --shell-shadow:rgba(8,78,126,.23);
  --aero-glass:rgba(194,234,253,.43);
  --aero-glass-edge:rgba(241,255,255,.9);
  --aero-warm:#ff759f;
  font-family:Tahoma,Verdana,'Trebuchet MS',sans-serif;
}
body[data-theme=aero] .map-vignette,
body[data-theme=aero] .grain,
body[data-theme=aero] .aero-orbit{display:none}
body[data-theme=aero] button:focus-visible,
body[data-theme=aero] input:focus-visible{outline:3px solid #ffbb43;outline-offset:2px}

/* A compact translucent browser toolbar, with a real frame and edge light. */
body[data-theme=aero] .top-chrome{padding-top:calc(10px + env(safe-area-inset-top))}
body[data-theme=aero] .brand-bar{
  position:relative;isolation:isolate;padding:6px 7px 6px 8px;gap:7px;
  background:linear-gradient(167deg,rgba(250,255,255,.91),rgba(207,238,254,.83) 51%,rgba(162,214,244,.81));
  border:1px solid rgba(255,255,255,.98);outline:1px solid rgba(58,126,172,.53);
  border-radius:9px;
  box-shadow:inset 0 2px 2px white,inset 0 -2px rgba(42,127,178,.17),0 5px 24px rgba(8,95,153,.25);
  backdrop-filter:blur(20px) saturate(160%);
}
body[data-theme=aero] .brand-bar:before{
  content:'';position:absolute;z-index:-1;pointer-events:none;inset:2px 2px 48% 2px;
  border-radius:6px 6px 50% 50%;background:linear-gradient(180deg,rgba(255,255,255,.91),rgba(255,255,255,.05));
}
body[data-theme=aero] .brand{padding:0;background:none;border:0;outline:0;box-shadow:none;gap:8px;border-radius:0}
body[data-theme=aero] .brand-mark{
  width:40px;height:40px;transform:none;border-radius:8px;border:1px solid #faffff;
  background:radial-gradient(ellipse at 32% 17%,#ffffff 0%,#d2ffff 13%,#70e6ec 39%,#218ac8 72%,#115488 100%);
  box-shadow:inset 0 2px 3px #fff,inset 0 -4px 6px #17628b,0 1px 4px rgba(19,87,123,.34);
}
body[data-theme=aero] .brand-mark span{font:700 29px/38px Georgia,serif;color:#faffff;text-shadow:0 2px 2px #07527c,0 0 7px #6bdaef}
body[data-theme=aero] .brand-mark .brand-trace{height:17px;opacity:.7}
body[data-theme=aero] .brand-type{gap:3px;filter:none}
body[data-theme=aero] .brand-type strong{
  font:900 21px/1 'Trebuchet MS',Tahoma,sans-serif;color:#11527c;letter-spacing:-.07em;
  text-shadow:0 1px #fff,0 0 8px rgba(255,255,255,.7);
}
body[data-theme=aero] .brand-dot{color:#f28a38}
body[data-theme=aero] .brand-type>span{font:700 8px/1.15 Tahoma,Verdana,sans-serif;color:#376f8f;letter-spacing:.07em;opacity:1}
body[data-theme=aero] .header-actions{gap:5px}
body[data-theme=aero] .build-tag{
  border-radius:5px;color:#225f86;border-color:#8fcae5;
  background:rgba(230,251,255,.63);backdrop-filter:blur(18px) saturate(180%);
  box-shadow:inset 0 1px white,0 1px 3px rgba(36,113,158,.15);
}
body[data-theme=aero] .live-dot{background:#39ad69;box-shadow:0 0 0 2px #e5fff2}

/* XP-era raised toolbar keys: bevels, recessed edges, no pill silhouettes. */
body[data-theme=aero] :is(.circle-button,.tool-button,.theme-close,.drawer-close,.route-close){
  border:1px solid #5f9fc6;border-radius:6px;color:#24587a;
  background:var(--aero-glass);
  box-shadow:inset 0 2px rgba(255,255,255,.96),inset 1px 0 rgba(255,255,255,.74),inset 0 -2px rgba(36,116,167,.22),0 3px 9px rgba(19,92,136,.17);
  backdrop-filter:blur(19px) saturate(190%);
}
body[data-theme=aero] :is(.circle-button,.tool-button,.theme-close,.drawer-close,.route-close):active{
  transform:translateY(1px);background:rgba(115,193,230,.59);
  box-shadow:inset 0 2px 5px rgba(22,88,133,.23);
}
body[data-theme=aero] :is(.circle-button,.tool-button).active{background:rgba(249,203,121,.63);border-color:#d79b35}
body[data-theme=aero] .map-tools{gap:5px}
body[data-theme=aero] .map-world-tag{
  border:1px solid #75bad9;border-radius:5px;color:#1d6b95;
  font:700 9px/1 Tahoma,sans-serif;letter-spacing:.09em;padding:7px 10px;
  background:rgba(217,247,255,.67);backdrop-filter:blur(15px) saturate(185%);
  box-shadow:inset 0 1px white,0 2px 9px rgba(28,112,169,.13);
}

/* The search console is one desktop utility window, rather than two pills. */
.aero-windowbar{display:none}
body[data-theme=aero] .bottom-controls{
  isolation:isolate;position:absolute;gap:6px;align-items:stretch;
  padding:29px 7px 7px;border:1px solid #70afd3;outline:1px solid rgba(255,255,255,.94);
  border-radius:9px;background:rgba(188,229,250,.65);
  box-shadow:inset 0 1px #fff,inset 0 0 0 1px rgba(255,255,255,.37),inset 0 -1px rgba(32,115,171,.2),0 8px 28px rgba(15,102,155,.24);
  backdrop-filter:blur(23px) saturate(160%);
}
body[data-theme=aero] .aero-windowbar{
  display:flex;align-items:center;gap:6px;position:absolute;left:2px;right:2px;top:2px;height:22px;
  padding:0 8px;border-radius:6px 6px 2px 2px;
  color:#fff;text-shadow:0 1px 2px #12649c;
  font:700 10px Tahoma,Verdana,sans-serif;
  background:rgba(30,127,198,.77);backdrop-filter:blur(12px) saturate(190%);
  box-shadow:inset 0 1px rgba(255,255,255,.89),inset 0 -1px #165c9d;
  pointer-events:none;
}
body[data-theme=aero] .aero-window-emblem{
  width:13px;height:13px;flex:none;border:1px solid #e8ffff;border-radius:4px;
  background:radial-gradient(circle at 31% 28%,#fff 0%,#9bffd1 22%,#20bda9 62%,#08729b 100%);
  box-shadow:0 0 0 1px rgba(6,85,143,.2);
}
body[data-theme=aero] .aero-window-edition{margin-left:auto;font:700 8px Tahoma,sans-serif;letter-spacing:.07em;opacity:.85}
body[data-theme=aero] .aero-window-lights{display:flex;gap:3px;margin-left:4px}
body[data-theme=aero] .aero-window-lights i{width:6px;height:6px;border:1px solid rgba(255,255,255,.75);border-radius:2px;background:#a5f9d1;box-shadow:0 0 3px rgba(218,255,250,.6)}
body[data-theme=aero] .aero-window-lights i:nth-child(2){background:#ffdd7d}
body[data-theme=aero] .aero-window-lights i:nth-child(3){background:#a9d6ff}
body[data-theme=aero] .search-box{
  height:52px;padding:0 12px;gap:10px;border-radius:5px;border:1px solid #79abc7;
  background:rgba(252,255,255,.74);
  box-shadow:inset 0 2px 4px rgba(40,112,157,.17),inset 0 0 0 1px rgba(255,255,255,.76),0 1px rgba(255,255,255,.73);
  backdrop-filter:blur(15px) saturate(145%);
}
body[data-theme=aero] .search-box input{color:#163f5e;font:600 16px Tahoma,Verdana,sans-serif;letter-spacing:0}
body[data-theme=aero] .search-box input::placeholder{color:#668da3;opacity:1}
body[data-theme=aero] .search-icon{color:#247db2}
body[data-theme=aero] .search-shortcut{color:#487f9a}
body[data-theme=aero] .styles-launcher{
  border:1px solid #4a97c6;border-radius:5px;color:#115581;
  background:rgba(168,220,246,.42);
  box-shadow:inset 0 2px rgba(255,255,255,.97),inset 0 -2px rgba(18,96,159,.24),0 2px 6px rgba(28,112,156,.16);
  backdrop-filter:blur(18px) saturate(200%);
}
body[data-theme=aero] .styles-launcher:before{height:1px;background:#fff}
body[data-theme=aero] .styles-launcher:after{left:10px;right:10px;bottom:5px;height:1px;border-radius:0;background:#197fae;opacity:.55}
body[data-theme=aero] .styles-symbol{color:#075d97}
body[data-theme=aero] .styles-copy strong{font:800 11px Tahoma,sans-serif;letter-spacing:.07em;color:#115786}
body[data-theme=aero] .styles-copy small{font:500 9px Tahoma,sans-serif;color:#356f91}
body[data-theme=aero] .search-results{
  border-radius:6px;border:1px solid #76aecd;background:rgba(238,251,255,.97);
  box-shadow:inset 0 1px white,0 11px 36px rgba(9,77,120,.3);backdrop-filter:blur(14px);
}
body[data-theme=aero] .search-result{color:#194963;border-radius:3px}
body[data-theme=aero] .search-result:hover,
body[data-theme=aero] .search-result:focus{background:#cdefff}
body[data-theme=aero] .search-result small,
body[data-theme=aero] .search-message{color:#567c90}

/* Shortcuts behave like an early-web favorites toolbar, not lozenges. */
body[data-theme=aero] .quick-places{gap:5px}
body[data-theme=aero] .quick-places button{
  border-radius:4px;border:1px solid #74b8d2;color:#124e73;
  font:700 11px Tahoma,sans-serif;padding:9px 10px;
  background:rgba(212,250,255,.57);
  box-shadow:inset 0 1px #fff,inset 0 -1px rgba(52,132,153,.19),0 2px 7px rgba(24,105,135,.13);
  backdrop-filter:blur(17px) saturate(180%);
}
body[data-theme=aero] .quick-places .place-dot{
  height:8px;width:8px;border-radius:2px;background:#48caa7;border:1px solid #61c0a8;
  box-shadow:inset 0 1px #dffff6;
}
body[data-theme=aero] .quick-places button>.line-icon{color:#2988b4}

/* Product windows share a layered ice-blue glass shell and inset workspaces. */
body[data-theme=aero] :is(.route-card,.theme-dock,.places-drawer,.modal){
  color:#164464;border:1px solid #72b8d9;border-radius:9px;
  background:rgba(218,245,255,.78);
  box-shadow:inset 0 2px #fff,inset 0 -2px rgba(54,132,180,.18),0 15px 46px rgba(10,75,132,.29);
  backdrop-filter:blur(26px) saturate(158%);
}
body[data-theme=aero] .theme-dock:before{
  inset:0 0 auto;height:9px;border-radius:8px 8px 0 0;opacity:1;
  background:linear-gradient(180deg,#e7ffff,#69c9ed 52%,#2e91cc);
}
body[data-theme=aero] .dock-heading h2,
body[data-theme=aero] .drawer-heading h2{color:#164d78;font-family:'Trebuchet MS',Tahoma,sans-serif;letter-spacing:-.025em}
body[data-theme=aero] .dock-eyebrow{color:#2678a0;font:700 9px Tahoma,sans-serif;letter-spacing:.11em}
body[data-theme=aero] .dock-heading p,
body[data-theme=aero] .renderer-note,
body[data-theme=aero] .dock-foot{color:#527e96}
body[data-theme=aero] .theme-card{
  background:rgba(239,254,255,.68);border:1px solid #9ac5db;
  color:#164d74;border-radius:5px;
  box-shadow:inset 0 1px white,inset 0 -1px #c1d9e8;
}
body[data-theme=aero] .theme-card[aria-pressed=true]{
  border-color:#327dad;background:rgba(171,229,251,.71);
  box-shadow:inset 0 0 0 2px white,0 0 0 1px rgba(50,122,175,.17),0 5px 12px rgba(28,103,148,.17);
}
body[data-theme=aero] .theme-art{border-radius:3px}
body[data-theme=aero] .theme-details strong{font:800 13px Tahoma,sans-serif;color:#14527b}
body[data-theme=aero] .theme-details small{font:700 8px Tahoma,sans-serif;color:#6288a0;letter-spacing:.04em}
body[data-theme=aero] .selected-badge{border-radius:4px;background:#1e9ed6;box-shadow:inset 0 1px #8be5fc,0 2px 6px rgba(20,103,163,.29)}
body[data-theme=aero] .route-head{margin-top:0}
body[data-theme=aero] .route-kicker{color:#236e96}
body[data-theme=aero] .route-kicker-dot{background:#35c392;box-shadow:0 0 0 2px #e3fff1}
body[data-theme=aero] .route-destination{color:#164b70;font-family:'Trebuchet MS',Tahoma,sans-serif}
body[data-theme=aero] .route-subline{color:#4c7792}
body[data-theme=aero] .route-place-symbol{
  background:linear-gradient(180deg,#f6ffff,#b3eaf7 52%,#6db9df);color:#1775a8;
  border:1px solid #77b9d8;border-radius:7px;box-shadow:inset 0 2px #fff,inset 0 -2px rgba(8,99,158,.15);
}
body[data-theme=aero] :is(.route-stats,.origin-summary,.origin-editor,.directions-toggle,.alternative-button){
  border-radius:5px;border:1px solid #a3cde0;background:rgba(248,255,255,.72);
  box-shadow:inset 0 1px #fff;
}
body[data-theme=aero] .route-stats strong,
body[data-theme=aero] .origin-summary strong,
body[data-theme=aero] .directions-list strong{color:#1b4b6a}
body[data-theme=aero] .route-stats span,
body[data-theme=aero] .origin-summary>span:nth-child(2){color:#59839a}
body[data-theme=aero] :is(.utility-button,.secondary-button,.route-style-button,.origin-shortcuts button,.drawer-close,.modal-close){
  border-radius:5px;border:1px solid #79aecc;color:#1c648e;
  background:rgba(191,234,249,.48);backdrop-filter:blur(16px) saturate(185%);
  box-shadow:inset 0 1px white,inset 0 -1px rgba(24,98,150,.15);
}
body[data-theme=aero] .utility-button .line-icon{color:#1b83b5}
body[data-theme=aero] .primary-button{
  /* DORFic's unmistakable #FF6600; light passes through the vivid orange
     surface, while precise white edge reflections give it thickness. */
  position:relative;isolation:isolate;overflow:hidden;
  border-radius:5px;border:1px solid rgba(255,142,37,.97);color:#3c1902;
  text-shadow:0 1px rgba(255,247,226,.69);
  background:rgba(255,102,0,.78);
  box-shadow:inset 0 2px rgba(255,255,255,.86),inset 0 -3px rgba(183,54,0,.3),
    0 0 0 1px rgba(210,75,0,.26),0 6px 20px rgba(255,102,0,.39),0 0 17px rgba(255,102,0,.18);
  backdrop-filter:blur(16px) saturate(205%);-webkit-backdrop-filter:blur(16px) saturate(205%);
  font:800 11px Tahoma,sans-serif;letter-spacing:.045em;
}
body[data-theme=aero] .primary-button::before{
  content:'';position:absolute;left:3px;right:3px;top:3px;height:35%;
  border-radius:2px 2px 1px 1px;background:rgba(255,255,255,.2);
  pointer-events:none;
}
body[data-theme=aero] .primary-button :is(svg,span){position:relative;z-index:1}
body[data-theme=aero] .primary-button:hover{background:rgba(255,102,0,.88);box-shadow:inset 0 2px rgba(255,255,255,.91),inset 0 -3px rgba(170,47,0,.32),0 6px 26px rgba(255,102,0,.52)}
body[data-theme=aero] .primary-button:active{transform:translateY(1px);filter:brightness(.95)}
body[data-theme=aero] .route-notice{color:#4c718a}
body[data-theme=aero] .places-list .place-row{border-radius:4px;background:rgba(255,255,255,.57);border-color:#afcfdd}
body[data-theme=aero] .drawer-section-heading{color:#50758d}
body[data-theme=aero] .drawer-section-heading>span:first-child{color:#247caf}
body[data-theme=aero] .place-row-select strong{color:#174767}
body[data-theme=aero] .place-row-select small,
body[data-theme=aero] .drawer-foot{color:#668ca2}
body[data-theme=aero] .toast{
  border:1px solid #75b7d7;border-radius:6px;color:#175279;
  background:rgba(217,249,255,.88);backdrop-filter:blur(20px);box-shadow:0 6px 20px rgba(16,82,133,.22);
}

/* The route details affordance is a labelled tab, 44px tall, not an 8px hint. */
@media(max-width:900px){
  .route-card .sheet-expand{
    display:flex;align-items:center;justify-content:center;gap:9px;
    height:44px;min-height:44px;width:100%;padding:0 12px;margin:-5px 0 9px;
    border-radius:8px;border:1px solid rgba(70,116,129,.55);
    color:#183b46;background:linear-gradient(180deg,#f6ffff,#d4eaf0);
    box-shadow:inset 0 1px #fff,0 2px 5px rgba(22,64,76,.16);
    font:800 12px Tahoma,'Trebuchet MS',sans-serif;letter-spacing:.09em;
  }
  .route-card .sheet-expand:after{content:none!important}
  .sheet-expand .sheet-expand-indicator{display:grid;place-items:center}
  .sheet-expand .sheet-expand-indicator .line-icon{height:17px;width:17px}
  .sheet-expand .sheet-expand-text{font-size:12px;line-height:1}
  .sheet-expand .sheet-expand-chevron{display:grid;place-items:center;margin-left:3px;transition:transform .18s}
  .sheet-expand .sheet-expand-chevron .line-icon{height:16px;width:16px}
  .sheet-expand[aria-expanded=true] .sheet-expand-chevron{transform:rotate(180deg)}
  body[data-theme=aero] .route-card .sheet-expand{
    border-radius:5px;border-color:#5e9ec9;color:#114f7d;text-shadow:0 1px rgba(255,255,255,.52);
    background:rgba(143,207,243,.6);
    box-shadow:inset 0 2px rgba(255,255,255,.89),inset 0 -2px rgba(0,87,145,.17),0 2px 5px rgba(24,94,148,.18);
    backdrop-filter:blur(19px) saturate(185%);
  }
  body[data-theme=frontier] .route-card .sheet-expand{
    border-radius:3px;border-color:#8b6f4d;color:#523a28;
    background:linear-gradient(180deg,#f4e4c6,#d8bc90);
    box-shadow:inset 0 1px #fff6df,inset 0 -2px rgba(110,74,39,.18);
    font-family:Georgia,serif;
  }
  body[data-theme=aero] .top-chrome{padding:calc(9px + env(safe-area-inset-top)) 10px 0}
  body[data-theme=aero] .brand-bar{padding:5px;gap:5px;border-radius:7px}
  body[data-theme=aero] .brand-mark{width:36px;height:36px;border-radius:6px}
  body[data-theme=aero] .brand-mark span{font-size:27px;line-height:34px}
  body[data-theme=aero] .brand-type strong{font-size:17px}
  body[data-theme=aero] .brand-type>span{font-size:6px;letter-spacing:.035em}
  body[data-theme=aero] .header-actions{gap:4px}
  body[data-theme=aero] .circle-button{width:37px;height:37px;border-radius:5px}
  body[data-theme=aero] .tool-button{width:42px;height:42px;border-radius:6px}
  body[data-theme=aero] .map-tools{top:calc(94px + env(safe-area-inset-top));right:11px}
  body[data-theme=aero] .bottom-controls{left:10px;right:10px;width:auto;bottom:calc(10px + env(safe-area-inset-bottom))}
  body[data-theme=aero] .search-box{height:48px;padding:0 9px}
  body[data-theme=aero] .search-box input{font-size:16px}
  body[data-theme=aero] .styles-launcher{width:104px;min-width:104px;padding:0 7px;gap:5px}
  body[data-theme=aero] .styles-symbol{width:20px;height:20px}
  body[data-theme=aero] .styles-copy strong{font-size:10px}
  body[data-theme=aero] .styles-copy small{font-size:8px}
  body[data-theme=aero] .quick-places{left:10px;right:10px;bottom:calc(102px + env(safe-area-inset-bottom))}
  body[data-theme=aero] .quick-places button{font-size:10px;padding:8px 9px;white-space:nowrap}
  body[data-theme=aero] .route-card,
  body[data-theme=aero] .theme-dock,
  body[data-theme=aero] .places-drawer{border-radius:12px 12px 0 0}
  body[data-theme=aero] .route-card{padding-top:12px}
  body[data-theme=aero] .theme-dock .sheet-grip{display:none}
  body[data-theme=aero] .dock-heading{margin-top:6px}
  body[data-theme=aero] .theme-card{border-radius:5px}
  body[data-theme=aero] .theme-art{border-radius:3px}
  body[data-theme=aero] .map-world-tag{font-size:8px}
  body[data-theme=aero] .leaflet-bottom,
  body[data-theme=aero] .maplibregl-ctrl-bottom-left,
  body[data-theme=aero] .maplibregl-ctrl-bottom-right{bottom:calc(160px + env(safe-area-inset-bottom))}
}
@media(max-width:370px){
  body[data-theme=aero] .brand-type strong{font-size:16px}
  body[data-theme=aero] .styles-launcher{min-width:93px;width:93px}
  body[data-theme=aero] .aero-window-edition{font-size:7px}
}
@media(prefers-reduced-motion:reduce){
  .sheet-expand .sheet-expand-chevron{transition:none}
  body[data-theme=aero] :is(.circle-button,.tool-button,.primary-button):active{transform:none}
}
