@font-face { font-family: 'GenSenRounded'; src: url('/fonts/GenSenRounded2TW-R.otf') format('opentype'); font-display: swap; font-weight: 400; }
@font-face { font-family: 'GenSenRounded'; src: url('/fonts/GenSenRounded2TW-B.otf') format('opentype'); font-display: swap; font-weight: 700; }

:root {
  --ink: #173c33;
  --ink-2: #48645c;
  --deep: #123e34;
  --green: #1b8c72;
  --mint: #dcefe7;
  --cream: #f4f1e8;
  --card: #fffefa;
  --line: #d8dfda;
  --amber: #d9a642;
  --red: #c65f52;
  --blue: #537cc0;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: 'GenSenRounded', 'Noto Sans TC', sans-serif; }
button, input { font: inherit; }
button { color: inherit; }

.app-shell { width: 100vw; height: 100dvh; overflow: hidden; background: var(--cream); }
.topbar { height: 64px; display: grid; grid-template-columns: minmax(250px, 1fr) auto minmax(54px, 1fr); align-items: center; gap: 18px; padding: 0 18px; border-bottom: 1px solid #d8dfda; background: rgba(255,254,250,.96); position: relative; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; background: var(--deep); color: white; box-shadow: 0 5px 14px rgba(18,62,52,.18); }
.brand strong { display: block; font-size: 15px; letter-spacing: .055em; line-height: 1.1; }
.brand span { display: block; margin-top: 3px; color: #698078; font-size: 11px; white-space: nowrap; }
.status-strip { height: 37px; display: flex; align-items: center; gap: 14px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #f8f7f2; font-size: 12px; color: var(--ink-2); }
.status-strip > span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.status-strip .test { color: #8a5a14; background: #f7e8c2; border-radius: 7px; padding: 4px 7px; font-weight: 700; }
.updated { padding-left: 12px; border-left: 1px solid var(--line); }
.icon-button, .mobile-menu { width: 38px; height: 38px; display: grid; place-items: center; justify-self: end; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.mobile-menu { display: none; justify-self: auto; }

.workspace { height: calc(100dvh - 64px); display: grid; grid-template-columns: 68px 340px minmax(0, 1fr); }
.rail { background: var(--deep); color: #cfe3dc; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; z-index: 25; }
.rail button { width: 52px; min-height: 52px; display: grid; place-items: center; gap: 2px; border: 0; border-radius: 11px; background: transparent; color: #a9c5bc; cursor: pointer; }
.rail button span { font-size: 10px; }
.rail button.active { color: white; background: rgba(255,255,255,.13); box-shadow: inset 3px 0 0 #63c4a4; }

.control-panel { z-index: 20; overflow-y: auto; background: var(--cream); border-right: 1px solid #cbd5cf; padding: 17px 16px; box-shadow: 8px 0 24px rgba(34,60,52,.07); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.eyebrow { color: #70877f; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.panel-heading h1 { margin: 2px 0 0; font-size: 20px; line-height: 1.2; }
.panel-close { display: none; border: 0; background: transparent; }
.control-panel section { margin-bottom: 18px; }
.route-form { padding-bottom: 16px; border-bottom: 1px solid #d7ddd8; }
.route-form label { display: flex; align-items: center; gap: 7px; margin: 9px 0 5px; color: var(--ink-2); font-size: 11px; font-weight: 700; }
.point { width: 8px; height: 8px; border-radius: 99px; border: 2px solid var(--green); }
.point.end { border-radius: 2px; border-color: var(--red); }
.input-like { height: 40px; display: grid; grid-template-columns: 20px 1fr 20px; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid #cbd6d0; border-radius: 10px; background: var(--card); color: #35554c; font-size: 13px; }
.input-like svg:last-child { color: var(--green); }
.travel-modes { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin-top: 11px; padding: 4px; background: #e4e7e1; border-radius: 10px; }
.travel-modes button { height: 31px; border: 0; border-radius: 7px; background: transparent; color: #65776f; cursor: pointer; font-size: 12px; }
.travel-modes button.active { background: white; color: var(--deep); font-weight: 700; box-shadow: 0 2px 6px rgba(30,55,47,.1); }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.section-title button { display: flex; align-items: center; gap: 4px; border: 0; background: transparent; color: #60766e; font-size: 11px; }
.route-card { width: 100%; margin-bottom: 8px; padding: 11px; text-align: left; border: 1px solid #d7ded9; border-radius: 12px; background: rgba(255,254,250,.82); cursor: pointer; }
.route-card.selected { border-color: #6fbda5; box-shadow: 0 0 0 2px rgba(49,151,120,.12); background: white; }
.route-card-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; }
.route-card-top > span { display: flex; align-items: center; gap: 7px; }
.route-card-top b { padding: 3px 6px; border-radius: 5px; background: #d9eee6; color: #176b56; font-size: 9px; }
.route-dot { display: inline-block; width: 14px; height: 4px; border-radius: 3px; }
.route-dot.green { background: #19b996; }
.route-dot.blue { background: var(--blue); }
.metrics { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 11px; }
.metrics strong { font-size: 14px; border-right: 1px solid #dfe4e0; }
.metrics strong:last-child { border: 0; padding-left: 8px; }
.metrics strong:nth-child(2) { padding-left: 8px; }
.metrics small { display: block; margin-top: 1px; color: #7b8b85; font-size: 9px; font-weight: 400; }
.metrics .good { color: #168066; }
.route-card p { margin: 9px 0 0; color: #667b73; font-size: 10px; }
.model-note { display: flex; gap: 9px; padding: 10px; border: 1px solid #ead7aa; border-radius: 10px; background: #fbf2d9; color: #76551f; }
.model-note svg { flex: 0 0 auto; margin-top: 2px; }
.model-note strong { font-size: 11px; }
.model-note p { margin: 3px 0 0; font-size: 9px; line-height: 1.5; }
.mini-tag { padding: 2px 6px; border-radius: 5px; background: #f3e2b7; color: #805b18; font-size: 9px; }
.summary-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.summary-grid article { min-height: 79px; display: grid; grid-template-columns: 22px 1fr; align-content: center; padding: 10px; border: 1px solid #d9e0db; border-radius: 11px; background: var(--card); }
.summary-grid svg { color: var(--green); }
.summary-grid span { color: #71837c; font-size: 9px; }
.summary-grid strong { grid-column: 1 / -1; margin-top: 6px; font-size: 18px; }
.summary-grid small { color: #6f817b; font-size: 9px; }
.scenario-list { display: grid; gap: 6px; }
.scenario-list button { height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; border: 1px solid #d8dfda; border-radius: 9px; background: var(--card); color: #657a72; font-size: 11px; cursor: pointer; }
.scenario-list button.selected { border-color: #6eb59e; background: #e5f1ec; color: #175f4d; }
.scenario-list b { font-size: 11px; }
.range-card { padding: 11px; border: 1px solid #d8dfda; border-radius: 10px; background: var(--card); }
.range-card div { display: flex; justify-content: space-between; font-size: 11px; }
.range-card input { width: 100%; accent-color: var(--green); }
.data-caveat, .contract-card, .compact-note { display: flex; gap: 9px; padding: 10px; border-radius: 10px; background: #e7efeb; color: #3d5c52; }
.data-caveat svg, .contract-card svg, .compact-note svg { flex: 0 0 auto; margin-top: 2px; }
.data-caveat strong, .contract-card strong { font-size: 11px; }
.data-caveat p, .contract-card p { margin: 3px 0 0; font-size: 9px; line-height: 1.5; }
.selected-building { display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid #d5ded8; border-radius: 12px; background: var(--card); }
.building-visual { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 10px; background: #d8ebe3; color: #24765f; }
.selected-building span, .selected-building p { color: #71837d; font-size: 9px; }
.selected-building h2 { margin: 2px 0; font-size: 14px; }
.selected-building p { margin: 0; }
.detail-table { display: grid; grid-template-columns: repeat(2,1fr); border: 1px solid #d8dfda; border-radius: 10px; overflow: hidden; background: var(--card); }
.detail-table div { padding: 9px 10px; border-right: 1px solid #e0e5e1; border-bottom: 1px solid #e0e5e1; }
.detail-table div:nth-child(2n) { border-right: 0; }
.detail-table div:nth-last-child(-n+2) { border-bottom: 0; }
.detail-table span, .detail-table b { display: block; }
.detail-table span { color: #71827c; font-size: 9px; }
.detail-table b { margin-top: 3px; font-size: 12px; }
.floor-bars { display: grid; gap: 6px; }
.floor-bars > div { display: grid; grid-template-columns: 24px 1fr 35px; align-items: center; gap: 6px; font-size: 9px; }
.floor-bars i { height: 7px; overflow: hidden; border-radius: 4px; background: #e1e6e2; }
.floor-bars i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#75b6c3,#ddb458,#ca6752); }
.floor-bars em { color: #687b74; font-style: normal; text-align: right; }
.layer-list { display: grid; gap: 7px; }
.layer-list button { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; border: 1px solid #d8dfda; border-radius: 10px; background: var(--card); cursor: pointer; }
.layer-list button > span { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; }
.layer-list button > span svg { color: var(--green); }
.layer-list i { width: 32px; height: 18px; padding: 2px; border-radius: 10px; background: #cad1cd; }
.layer-list i b { display: block; width: 14px; height: 14px; border-radius: 50%; background: white; transition: transform .2s; }
.layer-list i.on { background: var(--green); }
.layer-list i.on b { transform: translateX(14px); }
.mode-list { display: grid; gap: 6px; }
.mode-list button { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 6px; padding: 8px 10px; text-align: left; border: 1px solid #d8dfda; border-radius: 9px; background: var(--card); cursor: pointer; }
.mode-list button.selected { border-color: #6eb49e; background: #e4f0eb; }
.mode-list button > span { font-size: 11px; font-weight: 700; }
.mode-list small { display: block; color: #72837d; font-size: 9px; font-weight: 400; }
.compact-note { align-items: center; font-size: 10px; }
.pipeline { position: relative; display: grid; gap: 0; }
.pipeline-item { min-height: 58px; display: grid; grid-template-columns: 32px 1fr; gap: 9px; align-items: start; position: relative; }
.pipeline-item:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 29px; width: 2px; height: 30px; background: #ccd6d0; }
.pipeline-item > span { width: 29px; height: 29px; display: grid; place-items: center; border: 2px solid #b6c4bd; border-radius: 50%; background: var(--cream); color: #65776f; font-size: 10px; font-weight: 700; z-index: 1; }
.pipeline-item.done > span { border-color: #4ba88c; background: #d9eee6; color: #176550; }
.pipeline-item b, .pipeline-item small { display: block; }
.pipeline-item b { font-size: 11px; }
.pipeline-item small { margin-top: 3px; color: #74857f; font-size: 9px; }

.map-stage { min-width: 0; min-height: 0; position: relative; overflow: hidden; background: #dce7e1; }
.scene-host, .scene-host canvas { width: 100%; height: 100%; display: block; }
.scene-host { position: absolute; inset: 0; }
.mode-switch { position: absolute; top: 16px; left: 50%; z-index: 5; transform: translateX(-50%); display: flex; gap: 3px; padding: 4px; border: 1px solid rgba(55,84,75,.22); border-radius: 12px; background: rgba(255,254,250,.9); box-shadow: 0 6px 20px rgba(34,64,55,.15); backdrop-filter: blur(12px); }
.mode-switch button { height: 33px; display: flex; align-items: center; gap: 5px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #5a7068; cursor: pointer; font-size: 11px; }
.mode-switch button.active { background: var(--deep); color: white; }
.scene-caption { position: absolute; top: 17px; left: 17px; display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 10px; background: rgba(20,55,46,.88); color: white; box-shadow: 0 5px 18px rgba(22,49,42,.2); font-size: 11px; backdrop-filter: blur(10px); }
.scene-caption strong { font-size: 12px; }
.scene-caption span:last-child { color: #c6d9d2; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #5ee0ad; box-shadow: 0 0 0 4px rgba(94,224,173,.16); }
.legend { position: absolute; right: 16px; top: 16px; width: 198px; padding: 9px 11px; border-radius: 10px; background: rgba(255,254,250,.9); box-shadow: 0 5px 18px rgba(22,49,42,.14); backdrop-filter: blur(10px); }
.legend div { display: flex; justify-content: space-between; font-size: 9px; color: #657a73; }
.legend b { color: var(--ink); }
.legend i { display: block; height: 7px; margin: 7px 0 3px; border-radius: 4px; background: linear-gradient(90deg,#70b4c5,#80b98c,#e3bc5e,#d7654c); }
.legend small { display: inline-block; width: 20%; color: #667a73; font-size: 8px; }
.layer-tray { position: absolute; left: 50%; bottom: 17px; z-index: 6; transform: translateX(-50%); width: min(520px,calc(100% - 32px)); border: 1px solid rgba(57,85,76,.2); border-radius: 13px; background: rgba(255,254,250,.92); box-shadow: 0 8px 25px rgba(25,56,46,.16); backdrop-filter: blur(12px); }
.tray-title { display: flex; align-items: center; gap: 7px; padding: 8px 11px 4px; font-size: 10px; }
.tray-title svg:last-child { margin-left: auto; }
.layer-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; padding: 5px 8px 8px; }
.layer-row button { height: 34px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #d7dfda; border-radius: 8px; background: #f5f3ed; color: #71827c; cursor: pointer; font-size: 10px; }
.layer-row button.on { border-color: #88b9a9; background: #dcefe7; color: #17634f; font-weight: 700; }
.map-tool { position: absolute; z-index: 7; border: 1px solid rgba(60,86,78,.2); background: rgba(255,254,250,.92); box-shadow: 0 5px 16px rgba(32,59,51,.13); cursor: pointer; }
.reset-tool { right: 16px; bottom: 82px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; }
.map-compass { position: absolute; z-index: 7; right: 17px; bottom: 127px; width: 34px; height: 45px; display: grid; place-items: center; padding: 4px 0; border-radius: 9px; background: rgba(255,254,250,.9); color: var(--red); font-size: 9px; box-shadow: 0 5px 16px rgba(32,59,51,.12); }
.backdrop { display: none; }

@media (max-width: 1120px) {
  .workspace { grid-template-columns: 62px 315px minmax(0,1fr); }
  .scene-caption span:last-child, .legend { display: none; }
  .status-strip span:nth-child(3) { display: none; }
}

@media (max-width: 1450px) {
  .scene-caption span:last-child { display: none; }
}

@media (max-width: 760px) {
  .topbar { height: 58px; grid-template-columns: 1fr auto; padding: 0 10px; }
  .mobile-menu { display: grid; }
  .brand-mark { display: none; }
  .brand strong { font-size: 13px; }
  .brand span { font-size: 9px; }
  .status-strip { display: none; }
  .workspace { height: calc(100dvh - 58px); display: block; }
  .rail { position: absolute; z-index: 15; left: 8px; bottom: 8px; right: 8px; height: 55px; padding: 4px 7px; flex-direction: row; justify-content: space-around; border-radius: 13px; box-shadow: 0 5px 18px rgba(20,55,46,.2); }
  .rail button { width: 19%; min-height: 45px; }
  .control-panel { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: min(88vw,350px); transform: translateX(-105%); transition: transform .25s ease; padding: 16px; box-shadow: 12px 0 30px rgba(18,55,45,.25); }
  .control-panel.open { transform: translateX(0); }
  .panel-close { display: block; }
  .map-stage { width: 100%; height: 100%; }
  .mode-switch { top: 12px; }
  .mode-switch button { padding: 0 9px; }
  .scene-caption { top: 57px; left: 10px; }
  .layer-tray { bottom: 72px; width: calc(100% - 20px); }
  .layer-row button span { display: none; }
  .reset-tool { right: 10px; bottom: 134px; }
  .map-compass { right: 11px; bottom: 178px; }
  .backdrop { display: block; position: fixed; z-index: 45; inset: 0; border: 0; background: rgba(8,31,25,.42); }
}

@media print {
  .rail, .control-panel, .mode-switch, .layer-tray, .map-tool, .map-compass { display: none !important; }
  .workspace { display: block; height: calc(100vh - 64px); }
  .map-stage { height: 100%; }
}

/* HEAL-NAV-inspired AIR-TWIN NAV interface: ivory + muted blue, 3D-first. */
.hn-app {
  --hn-ink: #294a5d;
  --hn-ink-2: #58717f;
  --hn-blue: #527d94;
  --hn-blue-dark: #315c73;
  --hn-blue-soft: #dfe9ed;
  --hn-cream: #f5f1e8;
  --hn-card: rgba(255, 253, 247, .95);
  --hn-line: rgba(68, 103, 121, .2);
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  color: var(--hn-ink);
  background: var(--hn-cream);
}
.hn-app button { cursor: pointer; }
.hn-header { position: relative; z-index: 40; height: 72px; color: var(--hn-ink); background: rgba(248,245,237,.98); border-bottom: 1px solid var(--hn-line); box-shadow: 0 5px 18px rgba(34,61,75,.12); }
.hn-header-main { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.hn-brand { height: 58px; display: flex; align-items: center; gap: 12px; min-width: 0; white-space: nowrap; }
.hn-brand-icon { width: 48px; height: 48px; overflow: hidden; flex: 0 0 auto; display: block; border: 1px solid rgba(68,103,121,.18); border-radius: 13px; background: #f8f5ed; box-shadow: 0 4px 12px rgba(34,61,75,.12); }
.hn-brand-icon img { width: 92px; height: 48px; display: block; object-fit: cover; object-position: left center; }
.hn-brand strong { color: var(--hn-ink); font-size: 25px; line-height: 1; letter-spacing: .075em; }
.hn-header-actions { display: flex; align-items: center; gap: 8px; }
.hn-header-actions button { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 13px; border: 1px solid var(--hn-line); border-radius: 11px; color: var(--hn-ink); background: #fffdf8; font-size: 11px; }
.hn-header-modes { width: max-content; display: flex; gap: 4px; margin-top: 8px; padding: 4px; border: 1px solid var(--hn-line); border-radius: 13px; background: rgba(232,236,233,.94); box-shadow: 0 5px 16px rgba(37,61,74,.1); backdrop-filter: blur(10px); }
.hn-header-modes button { min-width: 80px; height: 31px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 9px; color: #667b86; background: transparent; font-size: 10px; }
.hn-header-modes button.active { color: white; background: var(--hn-blue-dark); box-shadow: 0 3px 9px rgba(45,83,103,.2); }

.hn-map { position: relative; width: 100%; height: calc(100dvh - 72px); overflow: hidden; background: #e7e6df; }
.hn-map .scene-host { position: absolute; inset: 0; }
.hn-app .map-tool,.hn-app .map-compass { display: none; }
.hn-command { position: absolute; z-index: 24; top: 18px; left: 22px; width: min(500px,calc(100% - 120px)); }
.hn-search { height: 49px; display: grid; grid-template-columns: 23px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 0 7px 0 15px; border: 1px solid var(--hn-line); border-radius: 15px; background: rgba(255,253,247,.96); box-shadow: 0 8px 25px rgba(37,61,74,.15); backdrop-filter: blur(12px); }
.hn-search svg { color: var(--hn-blue); }
.hn-search input { min-width: 0; border: 0; outline: 0; color: var(--hn-ink); background: transparent; font-size: 12px; }
.hn-search button { height: 37px; padding: 0 16px; border: 0; border-radius: 10px; color: white; background: var(--hn-blue-dark); font-size: 10px; font-weight: 700; }
.hn-search-results { position: absolute; top: 101px; left: 0; right: 0; padding: 7px; border: 1px solid var(--hn-line); border-radius: 13px; background: #fffdf8; box-shadow: 0 12px 28px rgba(37,59,71,.18); }
.hn-search-results button { width: 100%; display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 7px; padding: 9px; text-align: left; border: 0; border-radius: 9px; color: var(--hn-ink); background: #eef2f1; }
.hn-search-results b,.hn-search-results small { display: block; }.hn-search-results b { font-size: 10px; }.hn-search-results small { margin-top: 3px; color: var(--hn-ink-2); font-size: 8px; }.hn-search-results p { margin: 4px 7px; color: var(--hn-ink-2); font-size: 10px; }

.hn-scene-status { position: absolute; z-index: 17; left: 22px; bottom: 92px; display: flex; overflow: hidden; border: 1px solid var(--hn-line); border-radius: 13px; background: rgba(255,253,247,.92); box-shadow: 0 7px 22px rgba(37,61,74,.14); backdrop-filter: blur(12px); }
.hn-scene-status span { display: flex; align-items: center; gap: 5px; padding: 9px 11px; border-right: 1px solid var(--hn-line); color: var(--hn-ink-2); font-size: 9px; }.hn-scene-status span:last-child { border: 0; }.hn-scene-status svg { color: var(--hn-blue); }
.hn-map-tools { position: absolute; z-index: 20; top: 18px; right: 18px; display: grid; overflow: hidden; border: 1px solid var(--hn-line); border-radius: 13px; background: rgba(255,253,247,.94); box-shadow: 0 8px 22px rgba(37,61,74,.14); }
.hn-map-tools button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-bottom: 1px solid var(--hn-line); color: var(--hn-ink); background: transparent; }.hn-map-tools button:last-child { border: 0; }.hn-map-tools button:hover { color: white; background: var(--hn-blue); }
.hn-legend { position: absolute; z-index: 17; right: 18px; bottom: 92px; width: 260px; padding: 9px 11px; border: 1px solid rgba(68,103,121,.12); border-radius: 12px; background: rgba(255,253,247,.93); box-shadow: 0 7px 20px rgba(37,61,74,.14); backdrop-filter: blur(10px); }
.hn-legend div { display: flex; justify-content: space-between; color: var(--hn-ink-2); font-size: 8px; }.hn-legend b { color: var(--hn-ink); }.hn-legend i { display: block; height: 7px; margin: 7px 0 4px; border-radius: 6px; background: linear-gradient(90deg,#0d4fd8,#14a6ff,#eef6f7,#ffe633,#ff6b0d,#bf0508); }.hn-legend i.population { background: linear-gradient(90deg,#389ed1,#7dc7f5,#eef6f7,#ffe34d,#e03f29); }.hn-legend i.exposure { background: linear-gradient(90deg,#2e3847,#0d4fd8,#20a7ef,#eef6f7,#ffe34d,#ff8a22,#ad0314); }.hn-legend small { display: inline-block; width: 20%; color: var(--hn-ink-2); font-size: 7px; }
.hn-map-attribution { position: absolute; z-index: 16; right: 18px; bottom: 8px; padding: 2px 5px; border-radius: 4px; color: #456273; background: rgba(255,253,247,.82); font-size: 8px; text-decoration: none; }

.hn-bottom-nav { position: absolute; z-index: 30; left: 50%; bottom: 14px; transform: translateX(-50%); height: 64px; display: flex; align-items: center; gap: 2px; padding: 5px 7px; border: 1px solid var(--hn-line); border-radius: 18px; background: rgba(255,253,247,.95); box-shadow: 0 10px 30px rgba(34,58,71,.2); backdrop-filter: blur(14px); }
.hn-bottom-nav button { width: 72px; height: 52px; display: grid; place-items: center; align-content: center; gap: 3px; border: 0; border-radius: 13px; color: #667b86; background: transparent; }
.hn-bottom-nav button span { font-size: 8px; }.hn-bottom-nav button.active { color: white; background: var(--hn-blue-dark); }

.hn-panel { position: absolute; z-index: 28; top: 130px; left: 22px; bottom: 90px; width: 360px; overflow: hidden; border: 1px solid var(--hn-line); border-radius: 17px; background: rgba(248,245,237,.97); box-shadow: 0 16px 42px rgba(34,58,71,.22); backdrop-filter: blur(16px); }
.hn-panel-head { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid var(--hn-line); }
.hn-panel-head span { color: #7a8f99; font-size: 8px; font-weight: 700; letter-spacing: .16em; }.hn-panel-head h2 { margin: 2px 0 0; font-size: 18px; }.hn-panel-head button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--hn-line); border-radius: 10px; background: #fffdf8; }
.hn-panel-body { height: calc(100% - 68px); overflow-y: auto; display: grid; align-content: start; gap: 13px; padding: 14px; }
.hn-empty,.hn-building { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--hn-line); border-radius: 13px; background: #fffdf8; }
.hn-empty > svg,.hn-building > span { flex: 0 0 auto; color: var(--hn-blue); }.hn-building > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 12px; background: var(--hn-blue-soft); }
.hn-empty b,.hn-building b,.hn-building small,.hn-building p { display: block; }.hn-empty b,.hn-building b { font-size: 12px; }.hn-empty p,.hn-building p { margin: 4px 0 0; color: var(--hn-ink-2); font-size: 9px; line-height: 1.55; }.hn-building small { color: #78909b; font-size: 8px; }
.hn-notice { display: flex; gap: 8px; padding: 10px; border-radius: 11px; color: #486777; background: #e4ecee; font-size: 9px; line-height: 1.55; }.hn-notice svg { flex: 0 0 auto; margin-top: 1px; }
.hn-stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }.hn-stat-grid article { padding: 11px; border: 1px solid var(--hn-line); border-radius: 11px; background: #fffdf8; }.hn-stat-grid span { display: block; color: #78909b; font-size: 8px; }.hn-stat-grid b { display: block; margin-top: 5px; font-size: 14px; }
.hn-source-list { padding: 2px 11px; border: 1px solid var(--hn-line); border-radius: 11px; background: #fffdf8; }.hn-source-list p { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 9px 0; border-bottom: 1px solid var(--hn-line); font-size: 9px; }.hn-source-list p:last-child { border: 0; }.hn-source-list span { color: #78909b; }
.hn-section-title { display: flex; justify-content: space-between; align-items: center; font-size: 10px; }.hn-section-title span { color: #78909b; font-size: 8px; }
.hn-layer-list { display: grid; gap: 7px; }.hn-layer-list .cm-toggle-row { border-color: var(--hn-line); background: #fffdf8; }.hn-layer-list .cm-layer-icon { color: var(--hn-blue); background: var(--hn-blue-soft); }.hn-layer-list .cm-switch.on { background: var(--hn-blue); }
.hn-result-modes { display: grid; gap: 7px; }.hn-result-modes button { min-height: 42px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 6px; padding: 7px 10px; text-align: left; border: 1px solid var(--hn-line); border-radius: 10px; color: var(--hn-ink); background: #fffdf8; font-size: 10px; }.hn-result-modes button.active { border-color: var(--hn-blue); background: var(--hn-blue-soft); }
.hn-progress { display: grid; }.hn-progress p { min-height: 55px; position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 9px; margin: 0; }.hn-progress p:not(:last-child)::after { content:''; position:absolute; left:13px; top:28px; width:2px; height:28px; background:#c9d6dc; }.hn-progress i { width: 28px; height: 28px; z-index: 1; display:grid; place-items:center; border:2px solid #afc1ca; border-radius:50%; color:#6b808b; background:var(--hn-cream); font-size:8px; font-style:normal; }.hn-progress .done i { color:#315c73; border-color:#7398aa; background:#dfe9ed; }.hn-progress b,.hn-progress small { display:block; }.hn-progress b { font-size:10px; }.hn-progress small { margin-top:3px; color:#78909b; font-size:8px; }

.hn-modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(28,48,59,.48); backdrop-filter: blur(5px); }
.hn-about { width: min(760px,100%); max-height: min(720px,calc(100dvh - 36px)); overflow: hidden; border: 1px solid var(--hn-line); border-radius: 21px; background: var(--hn-cream); box-shadow: 0 25px 70px rgba(24,44,55,.34); }
.hn-about-head { height: 74px; display:flex; align-items:center; justify-content:space-between; padding:13px 18px; color:white; background:var(--hn-blue-dark); }.hn-about-head span { font-size:8px; letter-spacing:.15em; }.hn-about-head h2 { margin:2px 0 0; font-size:20px; }.hn-about-head button { width:36px; height:36px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.25); border-radius:10px; color:white; background:rgba(255,255,255,.1); }
.hn-about-body { max-height: calc(min(720px,100dvh - 36px) - 74px); overflow-y:auto; display:grid; gap:12px; padding:16px; }.hn-about-body section { padding:13px; border:1px solid var(--hn-line); border-radius:13px; background:#fffdf8; }.hn-about-body h3 { margin:0 0 7px; font-size:12px; }.hn-about-body p,.hn-about-body li { color:var(--hn-ink-2); font-size:9px; line-height:1.65; }.hn-about-body p { margin:0; }.hn-about-body ul { margin:0; padding-left:18px; }.hn-about-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.hn-about-credit { color:white !important; border-color:transparent !important; background:var(--hn-blue) !important; }.hn-about-credit p { color:#e9f0f3; }
.hn-toast { position:fixed; z-index:120; left:50%; bottom:92px; transform:translateX(-50%); display:flex; align-items:center; gap:7px; padding:9px 13px; border-radius:11px; color:white; background:rgba(45,87,108,.95); box-shadow:0 8px 26px rgba(26,50,63,.25); font-size:10px; }

@media (max-width: 760px) {
  .hn-header { height:60px; }.hn-header-main { height:60px; padding:0 10px; }.hn-brand { height:50px; gap:8px; }.hn-brand-icon { width:38px; height:38px; border-radius:10px; }.hn-brand-icon img { width:73px; height:38px; }.hn-brand strong { font-size:17px; letter-spacing:.05em; }
  .hn-header-actions button { width:38px; padding:0; justify-content:center; }.hn-header-actions button span,.hn-lang { display:none; }
  .hn-map { height:calc(100dvh - 60px); }
  .hn-command { top:8px; left:8px; width:calc(100% - 16px); }.hn-search { height:43px; border-radius:13px; padding-left:11px; }.hn-search button { height:33px; padding:0 12px; }.hn-header-modes { width:100%; margin-top:6px; box-sizing:border-box; }.hn-header-modes button { min-width:0; flex:1; height:29px; padding:0 7px; }
  .hn-search-results { top:91px; }
  .hn-map-tools { top:91px; right:8px; }.hn-map-tools button { width:38px; height:38px; }
  .hn-scene-status { left:8px; right:8px; bottom:81px; width:max-content; max-width:calc(100% - 16px); }.hn-scene-status span { padding:7px 8px; }.hn-scene-status span:last-child { display:none; }
  .hn-legend { display:block; left:8px; right:auto; bottom:121px; width:172px; padding:7px 8px; border-radius:10px; }.hn-legend div { font-size:7px; }.hn-legend i { height:5px; margin:5px 0 3px; }.hn-legend small { font-size:6px; }
  .hn-map-attribution { right: 8px; bottom: 5px; font-size: 6px; }
  .hn-bottom-nav { position:fixed; left:7px; right:7px; bottom:calc(7px + env(safe-area-inset-bottom)); transform:none; height:62px; justify-content:space-around; padding:4px; border-radius:16px; }.hn-bottom-nav button { min-width:0; width:16.66%; height:52px; border-radius:11px; }.hn-bottom-nav button span { font-size:7px; }
  .hn-panel { position:fixed; z-index:60; top:auto; left:0; right:0; bottom:0; width:100%; max-height:70dvh; border-radius:20px 20px 0 0; padding-bottom:calc(72px + env(safe-area-inset-bottom)); }.hn-panel-head { height:61px; }.hn-panel-body { height:auto; max-height:calc(70dvh - 61px - 72px); padding:12px; }
  .hn-about-grid { grid-template-columns:1fr; }.hn-about { max-height:calc(100dvh - 20px); }.hn-about-body { max-height:calc(100dvh - 94px); }
  .hn-toast { bottom:82px; max-width:calc(100% - 24px); white-space:nowrap; }
}

@media print {
  .hn-header-actions,.hn-command,.hn-map-tools,.hn-bottom-nav,.hn-panel { display:none !important; }
  .hn-header { height:72px; }.hn-map { height:calc(100vh - 72px); }
}

/* AIR-TWIN NAV 2.0 — map-first interface */
.air-next { width: 100vw; height: 100dvh; overflow: hidden; background: var(--cream); }
.cm-topbar { height: 62px; position: relative; z-index: 60; display: grid; grid-template-columns: 250px minmax(320px,620px) 250px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 16px; border-bottom: 1px solid rgba(35,73,62,.16); background: rgba(255,254,250,.96); box-shadow: 0 2px 14px rgba(31,62,53,.06); }
.cm-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cm-logo { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: white; background: var(--deep); box-shadow: 0 5px 14px rgba(18,62,52,.16); }
.cm-brand strong,.cm-brand small { display: block; white-space: nowrap; }
.cm-brand strong { font-size: 14px; letter-spacing: .055em; }
.cm-brand small { margin-top: 2px; color: #71847d; font-size: 10px; }
.cm-mobile-menu { display: none; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; }
.cm-search-wrap { height: 40px; position: relative; display: grid; grid-template-columns: 20px 1fr 34px; align-items: center; gap: 6px; padding: 0 4px 0 12px; border: 1px solid #ccd7d1; border-radius: 13px; background: white; box-shadow: 0 5px 18px rgba(31,61,52,.1); }
.cm-search-wrap > svg { color: #698078; }
.cm-search-wrap input { width: 100%; height: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.cm-search-wrap > button { width: 31px; height: 31px; display: grid; place-items: center; border: 0; border-radius: 9px; background: #edf1ee; cursor: pointer; }
.cm-search-results { position: absolute; top: 47px; left: 0; right: 0; overflow: hidden; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: 0 12px 30px rgba(22,53,44,.18); }
.cm-search-results button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px; text-align: left; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.cm-search-results button:hover { background: #edf3ef; }
.cm-search-results span,.cm-search-results small { display: block; }
.cm-search-results span { font-size: 12px; font-weight: 700; }
.cm-search-results small { margin-top: 2px; color: #778983; font-size: 9px; font-weight: 400; }
.cm-search-results p { margin: 10px; color: #778983; font-size: 11px; }
.cm-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.cm-head-actions > button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.cm-data-badge { display: flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 8px; color: #805b18; background: #f7e9c6; font-size: 10px; font-weight: 700; }
.cm-layout { height: calc(100dvh - 62px); display: grid; grid-template-columns: 66px 342px minmax(0,1fr); transition: grid-template-columns .24s ease; }
.map-only .cm-layout { grid-template-columns: 66px 0 minmax(0,1fr); }
.cm-rail { position: relative; z-index: 40; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 8px 7px; color: #bcd2ca; background: var(--deep); }
.cm-rail-main { display: grid; gap: 3px; }
.cm-rail button { width: 52px; min-height: 48px; display: grid; place-items: center; align-content: center; gap: 2px; border: 0; border-radius: 10px; color: #a9c4bb; background: transparent; cursor: pointer; }
.cm-rail button span { font-size: 9px; }
.cm-rail button:hover,.cm-rail button.active { color: white; background: rgba(255,255,255,.12); }
.cm-rail button.active { box-shadow: inset 3px 0 #65c6a6; }
.cm-panel { z-index: 30; min-width: 0; overflow: hidden auto; border-right: 1px solid #cbd5cf; background: var(--cream); box-shadow: 8px 0 22px rgba(34,60,52,.08); opacity: 0; pointer-events: none; transition: opacity .18s; }
.cm-panel.open { opacity: 1; pointer-events: auto; }
.cm-panel-head { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 12px 15px 10px; border-bottom: 1px solid #d7ded9; background: rgba(255,254,250,.56); }
.cm-panel-head span { display: block; color: #74877f; font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.cm-panel-head h1 { margin: 3px 0 0; font-size: 18px; line-height: 1.1; }
.cm-panel-head button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; }
.cm-panel-body { display: grid; gap: 14px; padding: 14px 15px 20px; }
.cm-panel-body section { margin: 0; }
.cm-drag-handle { display: none; }
.cm-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 10px; background: #e5e9e5; }
.cm-segment button { height: 31px; border: 0; border-radius: 7px; color: #6b7d76; background: transparent; cursor: pointer; font-size: 10px; }
.cm-segment button.active { color: var(--ink); background: white; box-shadow: 0 2px 7px rgba(36,65,56,.1); font-weight: 700; }
.cm-route-inputs { position: relative; display: grid; gap: 7px; padding-right: 38px; }
.cm-route-inputs label { height: 43px; display: grid; grid-template-columns: 10px 35px 1fr; align-items: center; gap: 5px; padding: 0 10px; border: 1px solid #d6ddd9; border-radius: 10px; background: var(--card); }
.cm-route-inputs label i { width: 8px; height: 8px; border: 2px solid var(--blue); border-radius: 50%; }
.cm-route-inputs label i.end { border-color: var(--red); border-radius: 2px; }
.cm-route-inputs label span { color: #75867f; font-size: 9px; }
.cm-route-inputs input { min-width: 0; border: 0; outline: 0; background: transparent; font-size: 11px; }
.cm-swap { position: absolute; top: 27px; right: 0; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; }
.cm-inline-fields { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.cm-inline-fields > button { display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); font-size: 10px; }
.cm-travel { display: flex; gap: 3px; padding: 3px; border-radius: 9px; background: #e2e7e3; }
.cm-travel button { width: 31px; height: 29px; display: grid; place-items: center; border: 0; border-radius: 7px; color: #6d8078; background: transparent; cursor: pointer; }
.cm-travel button.active { color: white; background: var(--deep); }
.cm-compare-line { display: flex; align-items: center; justify-content: space-between; padding: 2px 1px; font-size: 10px; font-weight: 700; }
.cm-switch { width: 34px; height: 19px; flex: 0 0 auto; padding: 2px; border: 0; border-radius: 10px; background: #c9d1cc; cursor: pointer; }
.cm-switch b { display: block; width: 15px; height: 15px; border-radius: 50%; background: white; transition: transform .2s; box-shadow: 0 1px 3px rgba(20,45,37,.2); }
.cm-switch.on { background: var(--deep); }
.cm-switch.on b { transform: translateX(15px); }
.cm-section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cm-section-title b { font-size: 11px; }
.cm-section-title > span { color: #778983; font-size: 8px; }
.cm-route-pref { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.cm-route-pref button { min-height: 50px; padding: 7px 3px; border: 1px solid #d5ddd8; border-radius: 9px; background: var(--card); cursor: pointer; }
.cm-route-pref b,.cm-route-pref small { display: block; }
.cm-route-pref b { font-size: 9px; }
.cm-route-pref small { margin-top: 3px; color: #7b8c85; font-size: 8px; }
.cm-route-pref button.active { border-color: #346b5b; color: var(--deep); background: #e5f0eb; box-shadow: 0 0 0 1px #346b5b; }
.cm-route-result { padding: 11px; border: 1px solid #94c4b5; border-radius: 12px; background: var(--card); box-shadow: 0 4px 12px rgba(30,69,57,.07); }
.cm-result-head { display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 700; }
.cm-result-head span { display: flex; align-items: center; gap: 6px; }
.cm-result-head i { width: 17px; height: 4px; border-radius: 4px; background: #20af8d; }
.cm-result-head > b,.cm-tag { padding: 3px 6px; border-radius: 5px; color: #176550; background: #dcefe7; font-size: 8px; }
.cm-kpis { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 11px; }
.cm-kpis strong { padding-left: 8px; border-left: 1px solid #dfe5e1; font-size: 16px; }
.cm-kpis strong:first-child { padding-left: 0; border: 0; }
.cm-kpis small { display: block; margin-top: 1px; color: #7b8b85; font-size: 8px; font-weight: 400; }
.cm-kpis .safe { color: #168066; }
.cm-route-tags { display: flex; gap: 5px; margin-top: 9px; }
.cm-route-tags span { padding: 3px 5px; border-radius: 5px; color: #5c726a; background: #edf1ee; font-size: 8px; }
.cm-primary { height: 40px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 10px; color: white; background: var(--deep); cursor: pointer; box-shadow: 0 5px 13px rgba(18,62,52,.18); font-size: 11px; font-weight: 700; }
.cm-caveat,.cm-info { display: flex; align-items: flex-start; gap: 7px; margin: 0; padding: 9px; border-radius: 9px; color: #775923; background: #f7ecd0; font-size: 8px; line-height: 1.5; }
.cm-info { color: #3d5e53; background: #e5efea; }
.cm-caveat svg,.cm-info svg { flex: 0 0 auto; margin-top: 1px; }
.cm-stat-grid,.cm-detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; }
.cm-stat-grid article,.cm-detail-grid div { padding: 9px; border: 1px solid #d8dfda; border-radius: 9px; background: var(--card); }
.cm-stat-grid span,.cm-detail-grid span { display: block; color: #75877f; font-size: 8px; }
.cm-stat-grid b,.cm-detail-grid b { display: block; margin-top: 5px; font-size: 15px; }
.cm-stat-grid small { color: #71827c; font-size: 8px; }
.cm-scenario { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.cm-scenario button { min-height: 61px; padding: 7px; border: 1px solid #d7ded9; border-radius: 9px; background: var(--card); cursor: pointer; }
.cm-scenario span,.cm-scenario b,.cm-scenario small { display: block; }
.cm-scenario span { color: #74877f; font-size: 8px; }
.cm-scenario b { margin-top: 5px; font-size: 13px; }
.cm-scenario small { color: #7d8d87; font-size: 7px; }
.cm-scenario button.active { border-color: #579c86; color: #145c49; background: #e2f0ea; }
.cm-range { padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); }
.cm-range div { display: flex; justify-content: space-between; font-size: 9px; }
.cm-range input { width: 100%; margin-top: 6px; accent-color: var(--green); }
.cm-profile { display: grid; gap: 5px; }
.cm-profile > div { display: grid; grid-template-columns: 26px 1fr 32px; align-items: center; gap: 6px; font-size: 8px; }
.cm-profile i { height: 7px; overflow: hidden; border-radius: 5px; background: #e0e6e2; }
.cm-profile i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#77b7c5,#dfb95d,#cc6551); }
.cm-profile em { color: #6c7f77; font-style: normal; text-align: right; }
.cm-building-card { display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); }
.cm-building-card > span { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 10px; color: #27755f; background: #dcece5; }
.cm-building-card small,.cm-building-card p { color: #73867e; font-size: 8px; }
.cm-building-card h2 { margin: 3px 0; font-size: 13px; }
.cm-building-card p { margin: 0; }
.cm-detail-grid b { font-size: 11px; }
.cm-building-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cm-building-actions button { height: 34px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); cursor: pointer; font-size: 9px; }
.cm-layer-list { display: grid; gap: 6px; }
.cm-toggle-row { width: 100%; min-height: 49px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 8px; padding: 6px 9px; text-align: left; border: 1px solid #d9dfdb; border-radius: 10px; background: var(--card); cursor: pointer; }
.cm-layer-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #326d5b; background: #edf1ee; }
.cm-layer-copy b,.cm-layer-copy small { display: block; }
.cm-layer-copy b { font-size: 10px; }
.cm-layer-copy small { margin-top: 2px; color: #778983; font-size: 8px; }
.cm-mode-list { display: grid; gap: 6px; }
.cm-mode-list button { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 6px; padding: 8px 9px; text-align: left; border: 1px solid var(--line); border-radius: 9px; background: var(--card); cursor: pointer; }
.cm-mode-list button.active { border-color: #69aa95; background: #e3efe9; }
.cm-mode-list b,.cm-mode-list small { display: block; }
.cm-mode-list b { font-size: 10px; }
.cm-mode-list small { margin-top: 2px; color: #778983; font-size: 8px; }
.cm-basemaps > div:last-child { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.cm-basemaps button { padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); font-size: 8px; }
.cm-basemaps button.active { border-color: #5a9e88; }
.cm-basemaps i { height: 38px; display: block; margin-bottom: 4px; border-radius: 6px; background: #d9e3dc; }
.cm-basemaps i.gray { background: #aeb9b3; }.cm-basemaps i.dark { background: #2d4941; }
.cm-filter-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.cm-filter-chips button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 15px; color: #60766d; background: var(--card); font-size: 8px; }
.cm-filter-chips button.active { color: white; border-color: var(--deep); background: var(--deep); }
.cm-featured-route { padding: 12px; border: 1px solid #8dbdab; border-radius: 12px; background: var(--card); }
.cm-featured-route > div:first-child { display: flex; align-items: center; justify-content: space-between; font-size: 8px; }
.cm-featured-route h2 { margin: 9px 0 4px; font-size: 13px; }
.cm-featured-route p { margin: 0; color: #6d8179; font-size: 8px; line-height: 1.5; }
.cm-featured-route > button { width: 100%; height: 32px; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; border: 0; border-radius: 8px; color: white; background: var(--deep); font-size: 9px; }
.cm-route-list-item { width: 100%; display: grid; grid-template-columns: 35px 1fr 17px; align-items: center; gap: 8px; padding: 9px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; }
.cm-route-list-item > span { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 8px; color: #2c715c; background: #e3efe9; }
.cm-route-list-item small,.cm-route-list-item b,.cm-route-list-item p { display: block; }
.cm-route-list-item small { color: #7a8b84; font-size: 7px; }.cm-route-list-item b { margin-top: 2px; font-size: 10px; }.cm-route-list-item p { margin: 2px 0 0; color: #6e8179; font-size: 8px; }
.cm-route-list-item > svg { transform: rotate(-90deg); color: #7a8b84; }
.cm-pipeline { display: grid; }
.cm-pipeline > div { min-height: 52px; position: relative; display: grid; grid-template-columns: 29px 1fr; gap: 9px; }
.cm-pipeline > div:not(:last-child)::after { content:''; position:absolute; left:13px; top:28px; width:2px; height:25px; background:#cad5cf; }
.cm-pipeline i { width: 27px; height: 27px; z-index: 1; display: grid; place-items: center; border: 2px solid #b8c5be; border-radius: 50%; color: #64786f; background: var(--cream); font-size: 8px; font-style: normal; }
.cm-pipeline .done i { color: #17634f; border-color: #4aa287; background: #dcefe7; }
.cm-pipeline b,.cm-pipeline small { display: block; }.cm-pipeline b { font-size: 10px; }.cm-pipeline small { margin-top: 3px; color: #778983; font-size: 8px; }
.cm-source-list p { display: flex; justify-content: space-between; margin: 0; padding: 7px 0; border-bottom: 1px solid #dce2de; font-size: 8px; }.cm-source-list p:last-child { border: 0; }
.cm-map { min-width: 0; min-height: 0; position: relative; overflow: hidden; background: #dce7e1; }
.cm-map-status { position: absolute; z-index: 9; top: 14px; left: 15px; display: flex; gap: 3px; padding: 4px; border: 1px solid rgba(56,86,77,.2); border-radius: 12px; background: rgba(255,254,250,.9); box-shadow: 0 6px 20px rgba(31,62,53,.13); backdrop-filter: blur(12px); }
.cm-map-status span { display: flex; align-items: center; gap: 4px; padding: 6px 8px; color: #60766e; border-right: 1px solid #d8dfda; font-size: 9px; }.cm-map-status span:last-child { border: 0; }.cm-map-status svg { color: #27745e; }
.cm-view-modes { position: absolute; z-index: 9; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; padding: 4px; border: 1px solid rgba(56,86,77,.2); border-radius: 12px; background: rgba(255,254,250,.9); box-shadow: 0 6px 20px rgba(31,62,53,.13); backdrop-filter: blur(12px); }
.cm-view-modes button { height: 31px; display: flex; align-items: center; gap: 5px; padding: 0 10px; border: 0; border-radius: 8px; color: #647970; background: transparent; cursor: pointer; font-size: 9px; }.cm-view-modes button.active { color: white; background: var(--deep); }
.cm-map-tools { position: absolute; z-index: 10; top: 14px; right: 14px; display: grid; overflow: hidden; border: 1px solid rgba(56,86,77,.2); border-radius: 11px; background: rgba(255,254,250,.92); box-shadow: 0 7px 20px rgba(31,62,53,.14); }
.cm-map-tools button { width: 37px; height: 37px; display: grid; place-items: center; border: 0; border-bottom: 1px solid #dbe1dd; background: transparent; cursor: pointer; }.cm-map-tools button:last-child { border: 0; }.cm-map-tools button:hover,.cm-map-tools button.active { color: white; background: var(--deep); }
.cm-context-card { position: absolute; z-index: 9; left: 15px; bottom: 72px; display: flex; align-items: center; gap: 12px; padding: 8px 9px 8px 11px; border-radius: 11px; color: white; background: rgba(19,58,48,.9); box-shadow: 0 7px 22px rgba(20,52,43,.22); backdrop-filter: blur(10px); }
.cm-context-card > div { display: grid; grid-template-columns: 8px auto; column-gap: 7px; }.cm-context-card b { font-size: 10px; }.cm-context-card small { grid-column: 2; color: #bdd2ca; font-size: 8px; }
.cm-live { width: 7px; height: 7px; margin-top: 3px; border-radius: 50%; background: #61dfae; box-shadow: 0 0 0 4px rgba(97,223,174,.15); }
.cm-context-card button { height: 32px; display: flex; align-items: center; gap: 5px; padding: 0 9px; border: 0; border-radius: 8px; color: var(--ink); background: white; font-size: 9px; }
.cm-legend { position: absolute; z-index: 9; right: 15px; bottom: 72px; width: 238px; padding: 8px 10px; border-radius: 10px; background: rgba(255,254,250,.91); box-shadow: 0 6px 18px rgba(25,55,47,.14); backdrop-filter: blur(10px); }
.cm-legend div { display: flex; justify-content: space-between; color: #677c74; font-size: 8px; }.cm-legend b { color: var(--ink); }.cm-legend i { display:block; height:6px; margin:6px 0 3px; border-radius:4px; background:linear-gradient(90deg,#0d4fd8 0%,#14a6ff 20%,#f0f8ff 40%,#ffe633 58%,#ff6b0d 78%,#bf0508 100%); }.cm-legend small { display:inline-block; width:20%; color:#667a73; font-size:7px; }
.cm-legend i.population { background:linear-gradient(90deg,#389ed1 0%,#7dc7f5 25%,#f0f8ff 43%,#ffe34d 62%,#e03f29 100%); }
.cm-legend i.exposure { background:linear-gradient(90deg,#2e3847 0%,#0d4fd8 16%,#20a7ef 31%,#f0f8ff 45%,#ffe34d 62%,#ff8a22 80%,#ad0314 100%); }
.cm-timeline { position: absolute; z-index: 9; left: 50%; bottom: 13px; transform: translateX(-50%); width: min(520px,calc(100% - 30px)); height: 47px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 9px; padding: 0 7px; border: 1px solid rgba(56,86,77,.22); border-radius: 12px; background: rgba(255,254,250,.92); box-shadow: 0 8px 24px rgba(26,57,48,.16); backdrop-filter: blur(12px); }
.cm-timeline > button { height: 33px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 9px; border: 0; border-radius: 8px; color: white; background: var(--deep); font-size: 8px; }.cm-timeline > button:first-child { width: 33px; padding: 0; }
.cm-timeline > div { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; gap: 6px; color: #73867f; font-size: 8px; }.cm-timeline > div span:last-child { text-align:right; }.cm-timeline > div span.active { color: var(--ink); font-weight:700; }.cm-timeline > div i { height: 5px; overflow: hidden; border-radius: 4px; background: #d7dfda; }.cm-timeline > div i b { display:block; height:100%; border-radius:inherit; background:#27977a; transition:width .3s; }
.cm-mobile-fab { display: none; }
.cm-toast { position: fixed; z-index: 100; left: 50%; bottom: 76px; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 10px; color: white; background: rgba(18,62,52,.94); box-shadow: 0 8px 26px rgba(17,48,40,.24); font-size: 10px; }
.cm-backdrop { display: none; }
.air-next .map-tool,.air-next .map-compass { display: none; }

@media (max-width: 1120px) {
  .cm-topbar { grid-template-columns: 220px minmax(280px,1fr) auto; }.cm-data-badge { display:none; }
  .cm-layout { grid-template-columns: 62px 318px minmax(0,1fr); }.map-only .cm-layout { grid-template-columns:62px 0 minmax(0,1fr); }
  .cm-rail button { width:48px; }.cm-map-status span:last-child,.cm-legend { display:none; }
}

@media (max-width: 760px) {
  .cm-topbar { height: 56px; grid-template-columns: auto 1fr auto; gap: 7px; padding: 0 8px; }
  .cm-mobile-menu { display:grid; }.cm-logo,.cm-brand > div { display:none; }
  .cm-search-wrap { height:38px; grid-column:2; min-width:0; border-radius:11px; box-shadow:none; }.cm-search-wrap input { font-size:10px; }.cm-search-results { top:44px; left:-42px; right:-44px; }
  .cm-head-actions { grid-column:3; }.cm-head-actions > button { width:36px; height:36px; }.cm-data-badge { display:none; }
  .cm-layout,.map-only .cm-layout { height:calc(100dvh - 56px); display:block; }
  .cm-map { width:100%; height:100%; }
  .cm-rail { position:fixed; z-index:55; left:7px; right:7px; bottom:calc(7px + env(safe-area-inset-bottom)); height:57px; flex-direction:row; align-items:center; gap:0; padding:4px 6px; border-radius:14px; box-shadow:0 7px 24px rgba(18,52,42,.25); }
  .cm-rail-main { width:100%; display:flex; justify-content:space-around; }.cm-rail-main button:nth-child(4),.cm-rail-main button:nth-child(6),.cm-rail-main button:nth-child(7),.cm-rail-settings { display:none; }
  .cm-rail button { width:24%; min-height:47px; }.cm-rail button.active { box-shadow:none; background:rgba(255,255,255,.13); }
  .cm-panel { position:fixed; z-index:80; left:0; right:0; bottom:0; width:100%; max-height:76dvh; border:0; border-radius:18px 18px 0 0; box-shadow:0 -10px 32px rgba(15,46,37,.24); transform:translateY(105%); opacity:1; pointer-events:none; transition:transform .24s ease; }
  .cm-panel.open { transform:translateY(0); pointer-events:auto; }.cm-drag-handle { display:block; width:42px; height:4px; margin:7px auto 0; border-radius:3px; background:#c8d1cc; }.cm-panel-head { height:54px; padding:7px 12px 8px; }.cm-panel-head h1 { font-size:15px; }.cm-panel-head span { font-size:7px; }.cm-panel-head button { transform:rotate(-90deg); }
  .cm-panel-body { gap:11px; padding:11px 12px calc(17px + env(safe-area-inset-bottom)); }.cm-panel-body section { margin:0; }
  .cm-map-status { top:8px; left:8px; right:8px; width:max-content; max-width:calc(100% - 65px); }.cm-map-status span { padding:5px 6px; }.cm-map-status span:nth-child(3) { display:none; }
  .cm-view-modes { top:54px; left:8px; transform:none; }.cm-view-modes button { height:29px; padding:0 8px; }
  .cm-map-tools { top:8px; right:8px; }.cm-map-tools button:not(:nth-child(3)) { display:none; }.cm-map-tools button { border:0; }
  .cm-context-card { left:8px; bottom:128px; max-width:calc(100% - 16px); }.cm-context-card small { display:none; }
  .cm-legend { display:none; }.cm-timeline { bottom:72px; width:calc(100% - 16px); height:44px; }.cm-timeline > button:last-child span { display:none; }
  .cm-mobile-fab { position:absolute; z-index:10; right:9px; bottom:128px; display:flex; align-items:center; gap:5px; padding:9px 11px; border:0; border-radius:20px; color:white; background:var(--deep); box-shadow:0 6px 18px rgba(18,62,52,.25); font-size:9px; font-weight:700; }
  .cm-backdrop { display:block; position:fixed; z-index:70; inset:56px 0 0; border:0; background:rgba(8,31,25,.38); }.cm-toast { bottom:137px; max-width:calc(100% - 24px); white-space:nowrap; }
}

@media print {
  .cm-rail,.cm-panel,.cm-search-wrap,.cm-head-actions,.cm-map-tools,.cm-timeline,.cm-view-modes,.cm-mobile-fab { display:none !important; }
  .cm-topbar { grid-template-columns:1fr; }.cm-layout,.map-only .cm-layout { display:block; height:calc(100vh - 62px); }.cm-map { height:100%; }
}

/* AIR-TWIN NAV shell aligned with the current HEAL-NAV controls and spacing. */
.hn-app {
  --hn-header-height: 82px;
  --hn-blue: #527d94;
  --hn-blue-dark: #315c73;
  --hn-blue-soft: #dfe9ed;
  --hn-ink: #294a5d;
  --hn-ink-2: #617985;
  --hn-cream: #f7f3e9;
  --hn-line: rgba(61, 101, 122, .2);
}
.hn-header {
  position: relative;
  z-index: 40;
  box-sizing: border-box;
  height: var(--hn-header-height);
  display: grid;
  grid-template-columns: minmax(460px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--hn-line);
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 5px 22px rgba(34, 68, 86, .1);
  backdrop-filter: saturate(180%) blur(18px);
}
.hn-brand { height: auto; gap: 14px; }
.hn-brand-icon { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 13px; }
.hn-brand-icon img { width: 100%; height: 100%; display: block; object-fit: contain; }
.hn-brand h1 { min-width: 0; display: flex; align-items: baseline; margin: 0; color: var(--hn-ink); font-size: 29px; line-height: 1.08; white-space: nowrap; }
.hn-brand h1 span { color: var(--hn-blue-dark); font-weight: 900; letter-spacing: .015em; }
.hn-brand h1 em { overflow: hidden; color: var(--hn-ink); font-style: normal; font-weight: 800; text-overflow: ellipsis; }
.hn-header-modes { width: auto; margin: 0; padding: 4px; gap: 2px; border-color: rgba(61,101,122,.12); border-radius: 15px; background: #edf2f4; box-shadow: none; }
.hn-header-modes button { min-width: 76px; height: 35px; padding: 0 15px; border-radius: 12px; color: #839098; font-size: 13px; font-weight: 700; }
.hn-header-modes button:hover { color: var(--hn-blue-dark); background: rgba(82,125,148,.08); }
.hn-header-modes button.active { color: var(--hn-blue-dark); background: #fff; box-shadow: 0 2px 8px rgba(35,63,78,.15); }
.hn-header-actions { justify-self: end; gap: 8px; }
.hn-header-actions .hn-about-button { width: 70px; min-width: 70px; height: 34px; min-height: 34px; gap: 5px; padding: 8px 12px; border-radius: 11px; font-size: 11px; }
.hn-about-button > span { font-size: 13px; font-weight: 900; }
.hn-about-button b { font-weight: 500; }
.hn-language { width: 88px; height: 48px; display: flex; overflow: hidden; border: 1px solid var(--hn-line); border-radius: 12px; background: #fffdf8; }
.hn-language button { flex: 0 0 44px; width: 44px; min-width: 44px; padding: 8px 12px; border: 0; border-right: 1px solid var(--hn-line); color: var(--hn-ink); background: transparent; font-size: 11px; }
.hn-language button:last-child { border-right: 0; }
.hn-language button.active { color: #fff; background: var(--hn-blue); font-weight: 700; }

.hn-map { height: calc(100dvh - var(--hn-header-height)); }
.hn-command { top: 14px; left: 18px; width: min(470px, calc(100% - 36px)); }
.hn-search { min-height: 52px; height: 52px; grid-template-columns: 28px minmax(0,1fr) auto; padding: 5px 6px 5px 12px; border-color: rgba(61,101,122,.23); border-radius: 18px; background: rgba(255,255,255,.97); box-shadow: 0 8px 26px rgba(34,68,86,.17); }
.hn-search:focus-within { border-color: rgba(82,125,148,.62); box-shadow: 0 0 0 3px rgba(82,125,148,.12),0 9px 28px rgba(34,68,86,.17); }
.hn-search input { height: 40px; padding: 0 8px 0 2px; font-size: 14px; }
.hn-search button { min-width: 64px; min-height: 38px; height: 38px; padding: 7px 12px; border-radius: 13px; background: var(--hn-blue); font-size: 12px; }
.hn-quick-actions { display: flex; flex-wrap: nowrap; gap: 7px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.hn-quick-actions::-webkit-scrollbar { display: none; }
.hn-quick-actions button { min-height: 36px; height: 36px; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid rgba(61,101,122,.2); border-radius: 999px; color: var(--hn-ink); background: rgba(255,253,248,.96); box-shadow: 0 4px 14px rgba(34,68,86,.11); font-size: 12px; font-weight: 800; backdrop-filter: blur(10px); }
.hn-quick-actions button > span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; color: var(--hn-blue-dark); background: var(--hn-blue-soft); }
.hn-quick-actions button:hover { border-color: var(--hn-blue); background: #eaf0f3; }
.hn-quick-actions button.active { border-color: rgba(49,92,115,.45); color: #fff; background: var(--hn-blue); }
.hn-quick-actions button.active > span { color: #fff; background: rgba(255,255,255,.18); }
.hn-search-results { top: 101px; border-radius: 16px; }
.hn-map-tools { top: 132px; right: 18px; border-radius: 11px; background: rgba(255,253,248,.97); }
.hn-map-tools button { width: 38px; height: 38px; color: var(--hn-ink); }
.hn-map-tools button:hover { background: var(--hn-blue); }
.hn-scene-status { left: 18px; bottom: 30px; border-radius: 999px; }
.hn-scene-status span { padding: 8px 10px; }
.hn-legend { right: 18px; bottom: 30px; width: 260px; }
.hn-panel { top: 118px; left: 18px; bottom: 30px; }
.hn-bottom-nav { display: none !important; }
.hn-toast { bottom: 30px; }
.hn-mobile-modes { display: none; }
.hn-install-app { position: fixed; z-index: 1001; left: 18px; bottom: 36px; min-height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid rgba(49,92,115,.34); border-radius: 999px; color: #f7f3e9; background: var(--hn-blue-dark); box-shadow: 0 7px 22px rgba(34,68,86,.17); font-size: 11px; font-weight: 850; }
.hn-install-app > span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; background: rgba(247,243,233,.18); }
.hn-install-app:hover { background: #244b60; }
.hn-install-backdrop { position: fixed; z-index: 7000; inset: 0; display: grid; place-items: center; padding: 14px; background: rgba(25,41,50,.5); backdrop-filter: blur(2px); }
.hn-install-dialog { width: min(420px,calc(100vw - 28px)); overflow: hidden; border: 1px solid rgba(49,92,115,.2); border-radius: 22px; color: var(--hn-ink); background: #fffdf8; box-shadow: 0 24px 70px rgba(25,41,50,.32); }
.hn-install-head { display: flex; align-items: center; gap: 12px; padding: 16px 17px 13px; border-bottom: 1px solid rgba(49,92,115,.14); }
.hn-install-head > div { display: flex; align-items: center; gap: 10px; }
.hn-install-head span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--hn-blue); }
.hn-install-head h2 { margin: 0; font-size: 19px; }
.hn-install-head button { width: 34px; height: 34px; margin-left: auto; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--hn-ink); background: #e8eef1; }
.hn-install-body { padding: 16px 18px 18px; }
.hn-install-body p { margin: 0 0 9px; font-size: 14px; font-weight: 800; line-height: 1.65; }
.hn-install-body small { display: block; color: var(--hn-ink-2); font-size: 11px; line-height: 1.6; }
.hn-install-app ~ .hn-panel { z-index: 41; }
.hn-scene-status { left: 130px; }

@media (max-width: 768px) {
  .hn-app { --hn-header-height: 54px; }
  .hn-header { grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 8px 12px; }
  .hn-brand { gap: 0; }
  .hn-brand-icon { display: none; }
  .hn-brand h1 { font-size: 19px; }
  .hn-brand h1 em { display: none; }
  .hn-header > .hn-header-modes { display: none; }
  .hn-header-actions { gap: 4px; }
  .hn-header-actions .hn-about-button { width: 64px; min-width: 64px; height: 32px; min-height: 32px; padding: 5px 6px; justify-content: center; font-size: 10px; line-height: 1; white-space: nowrap; }
  .hn-header-actions .hn-about-button > span { display: inline; }
  .hn-about-button b { display: inline; font-size: 10px; line-height: 1; white-space: nowrap; }
  .hn-language { width: 64px; min-width: 64px; height: 32px; border-radius: 10px; white-space: nowrap; }
  .hn-language button { box-sizing: border-box; flex: 0 0 32px; width: 32px; min-width: 32px; height: 32px; padding: 4px 3px; font-size: 9px; line-height: 1; white-space: nowrap; }
  .hn-map { height: calc(100dvh - var(--hn-header-height)); }
  .hn-command { top: 9px; right: 9px; left: 9px; width: auto; }
  .hn-search { min-height: 48px; height: 48px; padding: 4px 5px 4px 10px; border-radius: 16px; }
  .hn-search input { height: 38px; font-size: 13px; }
  .hn-search button { min-width: 52px; min-height: 36px; height: 36px; padding: 6px 9px; font-size: 10px; }
  .hn-mobile-modes { display: flex; width: 100%; gap: 3px; margin-top: 7px; padding: 3px; border: 1px solid rgba(61,101,122,.12); border-radius: 13px; background: #edf2f4; }
  .hn-mobile-modes button { flex: 1; height: 30px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 10px; color: #839098; background: transparent; font-size: 10px; font-weight: 700; }
  .hn-mobile-modes button.active { color: var(--hn-blue-dark); background: #fff; box-shadow: 0 2px 8px rgba(35,63,78,.15); }
  .hn-quick-actions { gap: 6px; margin-top: 7px; }
  .hn-quick-actions button { flex: 1 0 auto; justify-content: center; min-height: 34px; height: 34px; padding: 6px 10px; font-size: 10px; }
  .hn-search-results { top: 134px; max-height: 42dvh; overflow-y: auto; }
  .hn-map-tools { top: 150px; right: 9px; }
  .hn-map-tools button { width: 36px; height: 36px; }
  .hn-scene-status { left: 108px; right: 9px; bottom: 20px; width: auto; max-width: none; }
  .hn-scene-status span { padding: 7px 8px; }
  .hn-scene-status span:last-child { display: none; }
  .hn-legend { left: 9px; right: auto; bottom: 66px; width: 172px; padding: 7px 8px; }
  .hn-panel { top: auto; bottom: 0; }
  .hn-toast { bottom: 20px; }
  .hn-install-app { left: 12px; bottom: 23px; min-height: 34px; padding: 6px 9px; font-size: 10px; }
}

@media (max-width: 360px) {
  .hn-header { padding-inline: 8px; }
  .hn-brand h1 { font-size: 15.5px; }
  .hn-header-actions { gap: 3px; }
  .hn-header-actions .hn-about-button { width: 54px; min-width: 54px; padding-inline: 5px; }
  .hn-about-button b { font-size: 9px; }
  .hn-language { width: 50px; min-width: 50px; }
  .hn-language button { flex-basis: 25px; width: 25px; min-width: 25px; font-size: 8px; }
}
