:root {
  color-scheme: light;
  --paper: #f6f7f3;
  --paper-strong: #ffffff;
  --ink: #163029;
  --muted: #68756f;
  --line: rgba(22, 48, 41, .12);
  --glass: rgba(250, 251, 247, .88);
  --glass-strong: rgba(255, 255, 255, .96);
  --accent: #0b6e4f;
  --accent-hover: #07573e;
  --accent-soft: #dff0e8;
  --gold: #d7a72f;
  --danger: #b8403a;
  --shadow: 0 18px 55px rgba(24, 42, 36, .16);
  --shadow-small: 0 8px 24px rgba(24, 42, 36, .12);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

html.dark {
  color-scheme: dark;
  --paper: #111815;
  --paper-strong: #18211d;
  --ink: #eff7f2;
  --muted: #98a7a0;
  --line: rgba(235, 247, 240, .12);
  --glass: rgba(17, 24, 21, .88);
  --glass-strong: rgba(24, 33, 29, .97);
  --accent: #54c497;
  --accent-hover: #6dd3a9;
  --accent-soft: #173b2e;
  --gold: #efc65c;
  --danger: #ff8178;
  --shadow: 0 22px 60px rgba(0, 0, 0, .36);
  --shadow-small: 0 8px 24px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 2px; }
[hidden] { display: none !important; }

.app-shell, #map { position: fixed; inset: 0; }
#map { z-index: 0; background: #d9ded8; }
.leaflet-control-attribution { border-radius: 8px 0 0; background: color-mix(in srgb, var(--paper-strong) 78%, transparent) !important; color: var(--muted); font-size: 9px; }
.leaflet-control-attribution a { color: var(--accent); }
.map-shade { position: fixed; inset: 0 0 auto; height: 150px; pointer-events: none; background: linear-gradient(180deg, rgba(13, 31, 25, .2), transparent); z-index: 400; }

.topbar {
  position: fixed;
  z-index: 800;
  top: max(18px, env(safe-area-inset-top));
  left: 22px;
  right: 22px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(280px, 560px) minmax(180px, 1fr);
  align-items: center;
  gap: 18px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.brand {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 14px 9px 10px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 17px;
  background: var(--glass);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(18px) saturate(1.2);
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  position: relative;
}
.brand-mark::before, .brand-mark::after, .brand-mark span::before, .brand-mark span::after {
  content: "";
  position: absolute;
  background: var(--paper);
  border-radius: 9px;
}
.brand-mark::before { width: 3px; height: 10px; left: 18px; top: 4px; }
.brand-mark::after { width: 3px; height: 10px; left: 18px; bottom: 4px; }
.brand-mark span::before { width: 10px; height: 3px; left: 4px; top: 18px; }
.brand-mark span::after { width: 10px; height: 3px; right: 4px; top: 18px; }
.brand strong { display: block; font-size: 15px; letter-spacing: -.02em; }
.brand small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; margin-top: 2px; }
.brand small i { width: 6px; height: 6px; border-radius: 50%; background: #d59e31; box-shadow: 0 0 0 3px rgba(213, 158, 49, .14); }
.brand small i.online { background: #25a36f; box-shadow: 0 0 0 3px rgba(37, 163, 111, .14); }

.search-wrap {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px 0 17px;
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 17px;
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.3);
  position: relative;
}
.search-wrap > svg { width: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-wrap input::placeholder { color: color-mix(in srgb, var(--muted) 78%, transparent); }
.search-clear { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.search-clear:hover { background: var(--accent-soft); color: var(--accent); }
.search-results {
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  max-height: min(420px, 58vh);
  overflow: auto;
  padding: 8px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}
.search-result {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.search-result:hover { background: var(--accent-soft); }
.result-index { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: var(--paper); color: var(--accent); font-size: 11px; font-weight: 800; }
.search-result strong { display: block; font-size: 13px; }
.search-result small { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; margin-top: 3px; }
.search-message { padding: 18px; color: var(--muted); font-size: 13px; text-align: center; }

.top-actions { justify-self: end; display: flex; gap: 8px; }
.nav-button {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 14px;
  background: var(--glass);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(18px);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.nav-button:hover { background: var(--glass-strong); transform: translateY(-1px); }
.nav-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav-button b { min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 6px; background: var(--accent); color: #fff; font-size: 9px; }

.map-tools {
  position: fixed;
  z-index: 700;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  display: flex;
  flex-direction: column;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 15px;
  background: var(--glass);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(18px);
}
.map-button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-size: 21px; font-weight: 400; }
.map-button:hover { background: var(--accent-soft); color: var(--accent); }
.map-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tool-divider { height: 1px; margin: 4px 5px; background: var(--line); }
.layers-menu {
  position: absolute;
  left: 56px;
  top: 34px;
  width: 258px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}
.layers-menu button {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr 18px;
  gap: 11px;
  align-items: center;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.layers-menu button:hover, .layers-menu button.active { background: var(--accent-soft); }
.layers-menu button > span:nth-child(2) strong { display: block; font-size: 12px; }
.layers-menu button > span:nth-child(2) small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.layers-menu button i { color: var(--accent); font-style: normal; opacity: 0; }
.layers-menu button.active i { opacity: 1; }
.layer-swatch { width: 40px; height: 34px; border-radius: 9px; border: 1px solid var(--line); }
.layer-swatch.road { background: #e9e4d8; }
.layer-swatch.satellite { background: #586655; }
.layer-swatch.light { background: #dce6e0; }
.layer-swatch.earth { background: #445e6d; }

.target {
  position: fixed;
  z-index: 500;
  left: 50%;
  top: calc(50% - 48px);
  width: 50px;
  height: 50px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.target::before, .target::after { content: ""; position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(10, 40, 31, .3); }
.target::before { width: 2px; height: 50px; left: 24px; top: 0; }
.target::after { width: 50px; height: 2px; left: 0; top: 24px; }
.target-ring { position: absolute; inset: 12px; border: 2px solid var(--accent); border-radius: 50%; background: rgba(255, 255, 255, .68); box-shadow: 0 3px 12px rgba(10, 40, 31, .2); }
.target-dot { position: absolute; width: 6px; height: 6px; left: 22px; top: 22px; border-radius: 50%; background: var(--accent); }

.location-card {
  position: fixed;
  z-index: 650;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  width: min(680px, calc(100vw - 44px));
  transform: translateX(-50%);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 24px;
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(1.25);
}
.card-handle { display: none; width: 34px; height: 4px; margin: -8px auto 12px; border-radius: 4px; background: var(--line); }
.selection-head { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.eyebrow { margin: 0; color: var(--muted); font-size: 9px; line-height: 1; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.selection-head .eyebrow { display: flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #d59e31; }
.status-dot.saved { background: #21a16c; box-shadow: 0 0 0 4px rgba(33, 161, 108, .12); }
.status-dot.changed { background: #e89542; }
.selection-head h2 { margin: 8px 0 4px; font-size: clamp(22px, 3vw, 31px); line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.selection-head > div > p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.favorite-current { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); cursor: pointer; }
.favorite-current:hover, .favorite-current.active { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.favorite-current svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.favorite-current.active svg { fill: currentColor; }

.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 17px 0 11px; }
.metric-row label { min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb, var(--paper) 76%, transparent); }
.metric-row label > span:first-child { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 700; }
.metric-input { display: flex; align-items: baseline; }
.metric-input input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0; background: transparent; color: var(--ink); font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.metric-input b { color: var(--muted); font-size: 9px; }

.lock-button {
  width: 100%;
  min-height: 59px;
  display: grid;
  grid-template-columns: 36px 1fr 22px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 9px 22px color-mix(in srgb, var(--accent) 25%, transparent);
  transition: transform .18s ease, background .18s ease;
}
.lock-button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.lock-button:active { transform: translateY(1px); }
.lock-button[disabled] { opacity: .62; cursor: wait; }
.lock-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .14); }
.lock-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lock-button strong, .lock-button small { display: block; }
.lock-button strong { font-size: 13px; }
.lock-button small { margin-top: 2px; color: rgba(255, 255, 255, .72); font-size: 9px; font-weight: 500; }
.lock-button .arrow { justify-self: end; font-size: 18px; }

.panel-backdrop { position: fixed; inset: 0; z-index: 899; background: rgba(8, 18, 14, .3); backdrop-filter: blur(3px); }
.side-panel {
  position: fixed;
  z-index: 900;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 94vw);
  padding: max(28px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--paper-strong);
  box-shadow: -24px 0 70px rgba(12, 31, 24, .2);
  transform: translateX(104%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.side-panel.open { transform: translateX(0); }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.panel-header h2 { margin: 8px 0 0; font-size: 27px; letter-spacing: -.04em; }
.panel-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--muted); font-size: 24px; cursor: pointer; }
.panel-close:hover { color: var(--ink); }

.favorites-list { display: grid; gap: 9px; }
.favorite-item { display: grid; grid-template-columns: 41px minmax(0, 1fr) auto 34px; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); cursor: pointer; }
.favorite-item:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.favorite-pin { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 16px; }
.favorite-info { min-width: 0; }
.favorite-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.favorite-info small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.favorite-lock { border: 0; border-radius: 8px; padding: 8px 9px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 700; cursor: pointer; }
.favorite-lock:hover { background: var(--accent); color: #fff; }
.favorite-delete { width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.favorite-delete:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.empty-state { max-width: 240px; margin: 16vh auto 0; text-align: center; color: var(--muted); }
.empty-icon { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 17px; border: 1px solid var(--line); border-radius: 19px; background: var(--paper); color: var(--gold); font-size: 28px; }
.empty-state h3 { margin: 0 0 7px; color: var(--ink); font-size: 15px; }
.empty-state p { margin: 0; font-size: 11px; line-height: 1.7; }

.device-section { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.device-section select { width: 100%; cursor: pointer; }
.device-add-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 9px; }
.device-add-row .secondary-button { white-space: nowrap; }
.device-section p { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
#device-status { padding: 9px 10px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
#generate-pair { margin-top: 3px; margin-bottom: 9px; }
.code-card button:disabled { opacity: .5; cursor: not-allowed; }
.settings-panel > .primary-button:disabled { opacity: .5; cursor: not-allowed; }

.setup-status { display: grid; grid-template-columns: 31px 1fr; gap: 12px; margin: 20px 0 12px; }
.setup-status > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; }
.setup-status strong { display: block; font-size: 13px; }
.setup-status p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.code-card { position: relative; padding: 12px 64px 12px 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.code-card small { display: block; color: var(--muted); font-size: 9px; }
.code-card code { display: block; margin-top: 5px; overflow: hidden; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.code-card button { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); border: 0; border-radius: 9px; padding: 7px 10px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 700; cursor: pointer; }
.primary-button, .secondary-button { min-height: 46px; border-radius: 13px; padding: 0 17px; font-weight: 750; font-size: 12px; cursor: pointer; }
.primary-button { border: 0; background: var(--accent); color: #fff; }
.primary-button:hover { background: var(--accent-hover); }
.secondary-button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.wide { width: 100%; }
.settings-panel > .primary-button { margin-top: 8px; }
.settings-divider { height: 1px; margin: 24px 0 8px; background: var(--line); }
.setting-row { width: 100%; min-height: 49px; display: flex; align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 12px; font-weight: 650; }
.setting-row.danger { color: var(--danger); }
.setting-row[hidden] { display: none; }
.switch { width: 38px; height: 22px; padding: 3px; border-radius: 11px; background: #c5ccc8; transition: background .2s; }
.switch::after { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.22); transition: transform .2s; }
.setting-row.on .switch { background: var(--accent); }
.setting-row.on .switch::after { transform: translateX(16px); }
.license-note { margin: 22px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }

.login-screen, .dialog-backdrop { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; background: #e8ece7; }
html.dark .login-screen, html.dark .dialog-backdrop { background: #0b100e; }
.login-card, .dialog { width: min(410px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: var(--paper-strong); box-shadow: var(--shadow); }
.brand-mark-large { width: 49px; height: 49px; margin-bottom: 28px; }
.login-card h1, .dialog h2 { margin: 10px 0 8px; font-size: 28px; letter-spacing: -.04em; }
.login-copy, .dialog-copy { margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.field-label { display: block; margin: 0 0 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.login-field { display: flex; align-items: center; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.login-field input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; padding: 0 10px; background: transparent; color: var(--ink); }
.icon-button.compact { height: 34px; padding: 0 10px; border: 0; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 700; cursor: pointer; }
.form-error { min-height: 16px; margin: 7px 0; color: var(--danger); font-size: 10px; }
.security-note { margin: 13px 0 0; color: var(--muted); font-size: 9px; text-align: center; }
.dialog-backdrop { background: rgba(7, 18, 14, .44); backdrop-filter: blur(7px); }
.dialog { width: min(390px, 100%); }
.text-input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 13px; padding: 0 13px; background: var(--paper); color: var(--ink); outline: 0; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 9px; margin-top: 18px; }

.toast {
  position: fixed;
  z-index: 1500;
  top: max(82px, calc(env(safe-area-inset-top) + 70px));
  left: 50%;
  max-width: min(90vw, 420px);
  transform: translate(-50%, -14px);
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: rgba(16, 35, 29, .94);
  box-shadow: var(--shadow-small);
  color: #fff;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.locked-marker { position: relative; width: 27px; height: 35px; }
.locked-marker::before { content: ""; position: absolute; width: 27px; height: 27px; border: 3px solid #fff; border-radius: 50% 50% 50% 0; background: var(--accent); box-shadow: 0 5px 13px rgba(0,0,0,.25); transform: rotate(-45deg); }
.locked-marker::after { content: ""; position: absolute; width: 7px; height: 7px; left: 10px; top: 10px; border-radius: 50%; background: #fff; }

@media (max-width: 820px) {
  .topbar {
    top: max(10px, env(safe-area-inset-top));
    left: 11px;
    right: 11px;
    grid-template-columns: 46px 1fr auto;
    gap: 8px;
  }
  .brand { width: 46px; height: 46px; padding: 4px; border-radius: 14px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand > div:last-child { display: none; }
  .search-wrap { height: 46px; border-radius: 14px; padding-left: 13px; }
  .search-wrap input { font-size: 12px; }
  .search-results { top: 53px; }
  .nav-button { width: 46px; height: 46px; justify-content: center; padding: 0; }
  .nav-button span, .nav-button b, #favorites-button { display: none; }
  .map-tools { left: 11px; top: 105px; transform: none; }
  .layers-menu { left: 52px; top: 36px; width: 240px; }
  .target { top: 42%; }
  .location-card {
    bottom: 0;
    width: 100%;
    padding: 17px 15px max(15px, env(safe-area-inset-bottom));
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 23px 23px 0 0;
  }
  .card-handle { display: block; }
  .selection-head h2 { font-size: 23px; }
  .metric-row { margin-top: 13px; }
}

@media (max-width: 480px) {
  .selection-head h2 { font-size: 21px; }
  .selection-head > div > p:last-child { max-width: 255px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .metric-row label { padding: 8px; }
  .metric-row label > span:first-child { font-size: 8px; }
  .metric-input input { font-size: 13px; }
  .side-panel { width: 100%; padding-left: 19px; padding-right: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

