:root {
    color-scheme: dark;
    --bg: #050505;
    --text: #f8fafc;
    --muted: #a1a1aa;
    --green: #22c55e;
    --amber: #f59e0b;
    --red: #ef4444;
    --unknown: #38bdf8;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    min-height: 100dvh;
    overflow: hidden;
}

.marketing-site {
    display: none;
}

body.is-public-web {
    overflow-x: hidden;
    overflow-y: auto;
    background: #080a0d;
}

body.is-public-web.marketing-effects-ready .marketing-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 720ms ease,
        transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

body.is-public-web.marketing-effects-ready .marketing-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.is-public-web.marketing-effects-ready .marketing-features .marketing-section-heading.marketing-reveal {
    opacity: 1;
    transform: none;
}

.is-public-web .marketing-site {
    display: block;
    min-height: 100dvh;
    color: #f8fafc;
}

html.auth-booting .is-public-web .marketing-site {
    display: none;
}

.is-public-web .screen,
.is-public-web .auth-gate {
    display: none !important;
}

.marketing-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 8;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.marketing-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.marketing-brand img {
    width: 34px;
    height: 34px;
    border-radius: 7px;
}

.marketing-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.marketing-nav a {
    color: rgba(248, 250, 252, 0.82);
    font-size: 14px;
    font-weight: 720;
    text-decoration: none;
}

.marketing-nav a:hover {
    color: #ffffff;
}

.language-select {
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 4px;
    background: rgba(5, 8, 12, 0.72);
    color: #f8fafc;
    padding: 0 28px 0 10px;
    font: inherit;
    font-size: 13px;
}

.marketing-hero {
    position: relative;
    height: calc(100svh - 112px);
    min-height: 560px;
    max-height: 780px;
    display: grid;
    align-items: center;
    overflow: hidden;
}

.marketing-hero-image,
.marketing-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.marketing-hero-image {
    object-fit: cover;
    object-position: center;
}

.marketing-hero-shade {
    background: rgba(5, 7, 10, 0.58);
}

.marketing-hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    margin: 42px auto 0;
}

.marketing-kicker,
.marketing-section-heading > p,
.marketing-download p {
    margin: 0 0 14px;
    color: #5ee7a1;
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
}

.marketing-hero h1 {
    max-width: 660px;
    margin: 0;
    color: #ffffff;
    font-size: 92px;
    font-weight: 950;
    line-height: 0.98;
    letter-spacing: 0;
}

.marketing-lead {
    max-width: 580px;
    margin: 26px 0 0;
    color: rgba(248, 250, 252, 0.82);
    font-size: 21px;
    line-height: 1.65;
}

.marketing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.marketing-actions a,
.marketing-actions button,
.marketing-download > button,
.marketing-download-actions > a,
.marketing-download-actions > button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 0 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.marketing-primary,
.marketing-download > button,
.marketing-test-button,
.marketing-install-action {
    border: 1px solid #22c55e;
    background: #15803d;
}

.marketing-test-button {
    appearance: none;
    cursor: pointer;
    font-family: inherit;
}

.marketing-secondary {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(5, 8, 12, 0.64);
}

.marketing-platform-note {
    margin: 14px 0 0;
    color: rgba(203, 213, 225, 0.72);
    font-size: 12px;
    line-height: 1.5;
}

.marketing-ios-action,
.marketing-ios-platform-note,
.marketing-ios-browser-notice {
    display: none !important;
}

body.is-ios-device .platform-android-only {
    display: none !important;
}

body.is-ios-device:not(.is-ios-inapp-browser) .marketing-ios-safari-action,
body.is-ios-inapp-browser .marketing-ios-inapp-action {
    display: inline-flex !important;
}

body.is-ios-device .marketing-ios-platform-note {
    display: block !important;
}

.marketing-features {
    padding: 96px max(24px, calc((100vw - 1180px) / 2));
    background: #f4f7f8;
    color: #101418;
}

.marketing-section-heading {
    max-width: 760px;
}

.marketing-section-heading h2,
.marketing-download h2 {
    margin: 0;
    font-size: 44px;
    line-height: 1.2;
    letter-spacing: 0;
}

.marketing-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    margin-top: 64px;
}

.marketing-feature-grid article {
    min-width: 0;
    border-top: 2px solid #1f2937;
    padding-top: 20px;
}

.marketing-feature-grid article > span {
    color: #0284c7;
    font-size: 12px;
    font-weight: 900;
}

.marketing-feature-grid h3 {
    margin: 24px 0 12px;
    font-size: 21px;
    line-height: 1.35;
}

.marketing-feature-grid p {
    margin: 0;
    color: #4b5563;
    line-height: 1.75;
}

.marketing-flow {
    padding: 92px max(24px, calc((100vw - 1180px) / 2));
    background: #ffffff;
    color: #101418;
}

.marketing-flow .marketing-section-heading > p {
    color: #047857;
}

.marketing-flow-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 52px 0 0;
    padding: 0;
    list-style: none;
    background: rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(15, 23, 42, 0.14);
}

.marketing-flow-list li {
    min-width: 0;
    display: grid;
    gap: 28px;
    align-content: start;
    padding: 24px;
    background: #ffffff;
}

.marketing-flow-list li > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(3, 105, 161, 0.24);
    border-radius: 50%;
    color: #0369a1;
    font-size: 13px;
    font-weight: 950;
}

.marketing-flow-list h3 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.35;
}

.marketing-flow-list p {
    margin: 0;
    color: #4b5563;
    line-height: 1.72;
}

.marketing-moments,
.marketing-trust {
    padding: 92px max(24px, calc((100vw - 1180px) / 2));
}

.marketing-moments {
    background: #101418;
    color: #f8fafc;
}

.marketing-moment-grid,
.marketing-trust-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 46px;
}

.marketing-moment-grid article,
.marketing-trust-list article {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 22px;
}

.marketing-moment-grid article:nth-child(1) {
    border-top: 3px solid #38bdf8;
}

.marketing-moment-grid article:nth-child(2) {
    border-top: 3px solid #22c55e;
}

.marketing-moment-grid article:nth-child(3) {
    border-top: 3px solid #f59e0b;
}

.marketing-moment-grid h3,
.marketing-trust-list h3 {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.35;
}

.marketing-moment-grid p,
.marketing-trust-list p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.75;
}

.marketing-preview {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.64fr);
    align-items: center;
    gap: 64px;
    padding: 96px max(24px, calc((100vw - 1180px) / 2));
    background: #eef3f1;
    color: #101418;
}

.marketing-preview-copy > p:first-child {
    margin: 0 0 14px;
    color: #047857;
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
}

.marketing-preview-copy h2 {
    max-width: 680px;
    margin: 0;
    font-size: 42px;
    line-height: 1.22;
}

.marketing-preview-copy > p:last-child {
    max-width: 620px;
    margin: 22px 0 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.8;
}

.marketing-phone-preview {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0)),
        #d8e2dd;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
    transform: translateY(var(--phone-shift, 0));
    transition: transform 180ms linear;
}

.marketing-map-lines {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(55deg, transparent 0 45%, rgba(87, 83, 78, 0.28) 45% 47%, transparent 47%),
        linear-gradient(135deg, transparent 0 52%, rgba(87, 83, 78, 0.24) 52% 54%, transparent 54%),
        linear-gradient(90deg, transparent 0 62%, rgba(34, 197, 94, 0.22) 62% 78%, transparent 78%),
        repeating-linear-gradient(0deg, transparent 0 58px, rgba(15, 23, 42, 0.08) 58px 60px),
        repeating-linear-gradient(90deg, transparent 0 74px, rgba(15, 23, 42, 0.07) 74px 76px);
}

.marketing-friend-pin {
    position: absolute;
    top: 42%;
    left: 50%;
    display: grid;
    justify-items: center;
    gap: 7px;
    transform: translate(-50%, -50%);
    color: #064e3b;
    font-size: 14px;
    font-weight: 900;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.marketing-friend-pin img {
    width: 62px;
    height: 62px;
    border: 3px solid #86efac;
    border-radius: 50%;
    background: #07111a;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22), 0 12px 34px rgba(15, 23, 42, 0.26);
}

.marketing-friend-panel {
    position: absolute;
    right: 22px;
    bottom: 24px;
    left: 22px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid rgba(14, 165, 233, 0.38);
    border-radius: 4px;
    background: rgba(8, 47, 73, 0.88);
    color: #e0f2fe;
}

.marketing-friend-panel img {
    width: 46px;
    height: 46px;
    border: 2px solid rgba(125, 211, 252, 0.7);
    border-radius: 50%;
    background: #07111a;
}

.marketing-friend-panel strong,
.marketing-friend-panel span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketing-friend-panel strong {
    color: #ffffff;
    font-weight: 900;
}

.marketing-friend-panel span {
    color: #bae6fd;
    font-size: 13px;
    font-weight: 750;
}

.marketing-friend-panel b {
    padding: 8px 12px;
    border: 1px solid rgba(34, 197, 94, 0.62);
    border-radius: 3px;
    background: rgba(21, 128, 61, 0.82);
    color: #dcfce7;
    font-size: 13px;
    line-height: 1;
}

.marketing-trust {
    background: #f8fafc;
    color: #101418;
}

.marketing-status {
    padding: 92px max(24px, calc((100vw - 1180px) / 2));
    background: #111827;
    color: #f8fafc;
}

.marketing-status .marketing-section-heading > p {
    color: #7dd3fc;
}

.marketing-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 46px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.18);
}

.marketing-status-grid article {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 220px;
    padding: 22px;
    background: #0f172a;
}

.marketing-status-grid strong {
    color: #e0f2fe;
    font-size: 13px;
    font-weight: 900;
}

.marketing-status-grid span {
    color: #ffffff;
    font-size: 24px;
    font-weight: 950;
    line-height: 1.25;
}

.marketing-status-grid .marketing-status-detail {
    margin-top: -6px;
    color: #86efac;
    font-size: 17px;
    line-height: 1.35;
}

.marketing-status-grid p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.72;
}

.marketing-trust .marketing-section-heading > p {
    color: #0284c7;
}

.marketing-trust-list article {
    border-color: rgba(15, 23, 42, 0.14);
    background: #ffffff;
}

.marketing-trust-list p {
    color: #475569;
}

.marketing-trust-list a {
    color: #0369a1;
    font-weight: 850;
    text-underline-offset: 3px;
}

.marketing-faq {
    padding: 92px max(24px, calc((100vw - 1180px) / 2));
    background: #ffffff;
    color: #101418;
}

.marketing-faq .marketing-section-heading > p {
    color: #047857;
}

.marketing-faq-list {
    margin-top: 42px;
    border-top: 1px solid rgba(15, 23, 42, 0.18);
}

.marketing-faq-list details {
    border-bottom: 1px solid rgba(15, 23, 42, 0.18);
}

.marketing-faq-list summary {
    padding: 24px 4px;
    color: #111827;
    font-size: 19px;
    font-weight: 880;
    line-height: 1.45;
    cursor: pointer;
}

.marketing-faq-list summary::marker {
    color: #059669;
}

.marketing-faq-list p {
    max-width: 850px;
    margin: -4px 0 24px;
    padding: 0 28px 0 4px;
    color: #475569;
    font-size: 16px;
    line-height: 1.8;
}

.marketing-install {
    padding: 92px max(24px, calc((100vw - 1180px) / 2));
    background: #edf2f7;
    color: #101418;
}

.marketing-install .marketing-section-heading > p {
    color: #047857;
}

.marketing-install-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 46px;
}

.marketing-install-grid article {
    min-width: 0;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-top: 3px solid #16a34a;
    border-radius: 6px;
    background: #ffffff;
}

.marketing-install-grid article:nth-child(2) {
    border-top-color: #0284c7;
}

.marketing-install-grid article:nth-child(3) {
    border-top-color: #f97316;
}

.marketing-install-label {
    margin: 0 0 20px;
    color: #15803d;
    font-size: 12px;
    font-weight: 900;
}

.marketing-install-label.is-blue {
    color: #0369a1;
}

.marketing-install-label.is-coral {
    color: #c2410c;
}

.marketing-install-grid h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 23px;
    line-height: 1.4;
}

.marketing-install-grid article > p:not(.marketing-install-label) {
    margin: 0;
    color: #475569;
    line-height: 1.72;
}

.marketing-install-grid ol {
    display: grid;
    gap: 10px;
    margin: 24px 0 28px;
    padding-left: 22px;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

.marketing-install-action,
.marketing-install-state {
    width: 100%;
    min-height: 46px;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
}

.marketing-install-state {
    border: 1px solid rgba(194, 65, 12, 0.24);
    background: #fff7ed;
    color: #9a3412;
}

.marketing-ios-browser-notice {
    gap: 8px;
    margin: 22px 0 0;
    padding: 16px;
    border: 1px solid rgba(194, 65, 12, 0.28);
    border-radius: 4px;
    background: #fff7ed;
}

.marketing-ios-browser-notice strong {
    color: #9a3412;
    font-size: 15px;
    line-height: 1.45;
}

.marketing-install-grid article .marketing-ios-browser-notice p {
    margin: 0;
    color: #7c2d12;
    font-size: 14px;
    line-height: 1.65;
}

body.is-ios-inapp-browser .marketing-ios-browser-notice {
    display: grid !important;
}

body.is-ios-device .marketing-install-grid {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
}

body.is-ios-device .marketing-ios-download-action {
    border-color: #22c55e;
    background: #15803d;
}

.marketing-download {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 48px;
    padding: 86px max(24px, calc((100vw - 1180px) / 2));
    background: #0b1116;
}

.marketing-download > div {
    max-width: 760px;
}

.marketing-download > button {
    min-width: 190px;
}

.marketing-download-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.marketing-tester-note {
    display: block;
    margin-top: 18px;
    color: #a7b4c2;
    font-size: 15px;
    line-height: 1.65;
}

.marketing-footer {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 28px max(24px, calc((100vw - 1180px) / 2));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #070a0d;
    color: #94a3b8;
    font-size: 13px;
}

.marketing-footer strong {
    color: #ffffff;
}

.marketing-footer a {
    color: #cbd5e1;
    text-decoration: none;
}

html.has-native-map,
html.has-native-map body.has-native-live-map,
html.has-native-map body.has-native-live-map .screen {
    background: transparent;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.noscript-summary {
    position: fixed;
    inset: 24px;
    z-index: 50;
    display: grid;
    align-content: center;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1px;
    background: #050505;
    color: #ffffff;
    padding: 24px;
    line-height: 1.55;
}

.noscript-summary h1,
.noscript-summary p {
    margin: 0;
}

.screen {
    position: relative;
    min-height: 100dvh;
    padding:
        max(18px, env(safe-area-inset-top))
        max(16px, env(safe-area-inset-right))
        max(18px, env(safe-area-inset-bottom))
        max(16px, env(safe-area-inset-left));
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 20px;
    overflow: hidden;
}

.summary {
    position: relative;
    z-index: 2;
    text-align: center;
}

.has-navigation .summary {
    isolation: isolate;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.98),
        0 0 14px rgba(0, 0, 0, 0.86);
}

.has-navigation .summary::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -48px;
    right: -22px;
    bottom: -20px;
    left: -22px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(2, 6, 8, 0.96) 0%,
        rgba(2, 6, 8, 0.88) 62%,
        rgba(2, 6, 8, 0.68) 82%,
        rgba(2, 6, 8, 0) 100%
    );
}

.live-map {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    filter: saturate(0.78) contrast(1.06) brightness(0.78);
    perspective: none;
    transition: opacity 260ms ease, filter 260ms ease;
    --live-map-scale: 1;
}

body:not(.modal-open):not(.auth-required) .live-map {
    pointer-events: auto;
    touch-action: none;
}

.live-map-canvas {
    width: 100%;
    height: 100%;
    transform: scale(var(--live-map-scale, 1));
    transform-origin: 50% 50%;
    transition: transform 900ms cubic-bezier(0.2, 0.72, 0.2, 1);
    will-change: transform;
}

.has-native-live-map .live-map-canvas {
    visibility: hidden;
}

.has-live-map .live-map {
    opacity: 0.48;
}

.has-navigation.is-navigation-app .live-map {
    inset: 0;
    opacity: 0.68;
    filter: saturate(0.94) contrast(1.08) brightness(0.86);
    perspective: none;
}

.map-theme-dark .live-map {
    filter: saturate(0.72) contrast(1.16) brightness(0.5);
}

.map-theme-dark.has-navigation.is-navigation-app .live-map {
    filter: saturate(0.82) contrast(1.18) brightness(0.58);
}

.has-navigation.is-navigation-app .live-map-canvas {
    transform: scale(var(--live-map-scale, 1.36));
    transform-origin: 50% 50%;
}

.live-map::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 38%, rgba(5, 5, 5, 0.08), rgba(5, 5, 5, 0.58) 72%),
        linear-gradient(to bottom, rgba(5, 5, 5, 0.58), rgba(5, 5, 5, 0.12) 34%, rgba(5, 5, 5, 0.72));
}

.live-map-marker {
    position: relative;
    width: 58px;
    height: 58px;
}

.live-map-marker img,
.live-map-marker strong {
    position: absolute;
    top: 0;
    left: 2px;
    box-sizing: border-box;
    width: 54px;
    height: 54px;
    border: 3px solid #bae6fd;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.22), 0 8px 24px rgba(0, 0, 0, 0.38);
}

.live-map-marker img {
    object-fit: cover;
}

.live-map-marker strong {
    display: grid;
    place-items: center;
    background: rgba(8, 47, 73, 0.94);
    color: #e0f2fe;
    font-size: 22px;
    font-weight: 900;
}

.live-map-marker > span {
    position: absolute;
    top: 57px;
    left: 50%;
    max-width: 112px;
    overflow: hidden;
    padding: 2px 10px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(2, 6, 23, 0.82) 0 30%, rgba(2, 6, 23, 0.5) 52%, transparent 76%);
    color: #bae6fd;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px #020617, 0 0 5px #020617, 0 0 9px rgba(2, 6, 23, 0.92);
    white-space: nowrap;
    pointer-events: none;
}

.live-map-marker-status {
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 2px;
    transform: translateX(-50%);
    pointer-events: none;
}

.live-map-marker em {
    min-width: 48px;
    max-width: 150px;
    overflow: hidden;
    padding: 2px 10px;
    border: 0;
    background: radial-gradient(ellipse at center, rgba(2, 6, 23, 0.86) 0 28%, rgba(2, 6, 23, 0.56) 52%, transparent 78%);
    color: #e0f2fe;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.3;
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px #020617, 0 0 5px #020617, 0 0 9px rgba(2, 6, 23, 0.94);
    white-space: nowrap;
}

.live-map-marker em.is-battery-ok {
    color: #dcfce7;
}

.live-map-marker em.is-battery-mid {
    color: #fef3c7;
}

.live-map-marker em.is-battery-low {
    color: #fee2e2;
}

.live-map-marker em.is-stay {
    color: #dcfce7;
}

.live-map-marker em.is-speed {
    color: #e0f2fe;
}

.charging-icon {
    display: inline-block;
    margin-left: 3px;
    color: #fde047;
    font-size: 11px;
    line-height: 1;
    vertical-align: -1px;
}

.live-route-marker {
    display: grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border: 2px solid rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    background: var(--route-marker-color, #f59e0b);
    color: #ffffff;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.36);
}

.compass {
    appearance: none;
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    left: 16px;
    z-index: 4;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1px;
    background: rgba(24, 24, 27, 0.72);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    color: inherit;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.compass:active {
    background: rgba(39, 39, 42, 0.88);
}

.compass-arrow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 15px;
    height: 30px;
    background: linear-gradient(to bottom, var(--red) 0 50%, #ffffff 50% 100%);
    clip-path: polygon(50% 0, 72% 50%, 50% 100%, 28% 50%);
    filter: drop-shadow(0 0 1px #ffffff);
    transform: translate(-50%, -50%) rotate(var(--heading, 0deg));
    transform-origin: 50% 50%;
    transition: transform 180ms linear;
}

.compass-value {
    position: absolute;
    top: 4px;
    left: 5px;
    min-width: 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-align: left;
}

.place {
    min-height: 1.5em;
    margin: 0 auto;
    max-width: min(72vw, 520px);
    color: var(--text);
    font-size: clamp(15px, 3.8vw, 20px);
    line-height: 1.35;
}

.top-indicators {
    appearance: none;
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    z-index: 10;
    display: flex;
    flex-direction: row;
    gap: 7px;
    align-items: center;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.top-indicator {
    position: relative;
    display: block;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--unknown);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
    isolation: isolate;
    line-height: 0;
}

.top-indicator::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.top-indicator.green {
    background: var(--green);
}

.top-indicator.green::after {
    opacity: 1;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.7) 0 18%, rgba(34, 197, 94, 0.34) 34%, transparent 70%);
}

.top-indicator.amber {
    background: var(--amber);
}

.top-indicator.amber::after {
    opacity: 1;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.68) 0 18%, rgba(245, 158, 11, 0.32) 34%, transparent 70%);
}

.top-indicator.red {
    background: var(--red);
}

.top-indicator.red::after {
    opacity: 1;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.68) 0 18%, rgba(239, 68, 68, 0.32) 34%, transparent 70%);
}

.top-indicator.blink.red {
    animation: indicator-permission-blink 0.68s ease-in-out infinite;
}

@keyframes indicator-permission-blink {
    0%, 38%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    58% {
        opacity: 0.28;
        transform: scale(0.78);
    }
}

.speed {
    margin-top: 12px;
    font-size: clamp(52px, 18vw, 96px);
    font-weight: 800;
    line-height: 1;
}

body:not(.has-navigation) .speed {
    display: none;
}

.is-stationary:not(.has-navigation) .speed {
    margin-top: 0;
    font-size: 0;
}

.intersection {
    margin-top: 14px;
    color: #e5e7eb;
    font-size: clamp(19px, 5vw, 30px);
    font-weight: 650;
    line-height: 1.25;
}

.intersection.navigation-summary {
    display: grid;
    justify-items: center;
    gap: 3px;
    font-size: clamp(15px, 4.1vw, 24px);
    line-height: 1.18;
}

.intersection.navigation-summary > span {
    display: block;
    max-width: min(calc(100vw - 32px), 620px);
    overflow-wrap: anywhere;
    text-align: center;
    white-space: normal;
}

.intersection.navigation-summary .navigation-primary {
    width: min(calc(100vw - 32px), 620px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}

.intersection.navigation-summary .navigation-instruction {
    min-width: 0;
    max-width: calc(100% - 46px);
    color: #f0fdf4;
    font-size: clamp(20px, 5.2vw, 30px);
    font-weight: 900;
    overflow-wrap: anywhere;
    text-align: left;
}

.navigation-maneuver-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 1em;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #f0fdf4;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.intersection.navigation-summary > span:not(.navigation-primary) {
    color: #dcfce7;
    font-size: clamp(13px, 3.6vw, 18px);
    font-weight: 800;
}

.intersection.navigation-summary .navigation-toll-fare {
    margin-top: 2px;
    color: #fef3c7;
}

@media (max-width: 420px) {
    .intersection.navigation-summary .navigation-primary {
        gap: 8px;
    }

    .navigation-maneuver-icon {
        flex-basis: 30px;
        width: 30px;
        font-size: 28px;
    }

    .intersection.navigation-summary .navigation-instruction {
        max-width: calc(100% - 38px);
    }
}

.navigation-time-toggle {
    appearance: none;
    display: block;
    max-width: min(90vw, 620px);
    overflow: hidden;
    border: 0;
    padding: 0;
    background: transparent;
    color: #dcfce7;
    font: inherit;
    font-size: clamp(13px, 3.6vw, 18px);
    font-weight: 800;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drive-view {
    position: relative;
    z-index: 2;
    min-height: 0;
    display: block;
    pointer-events: none;
}

.route-panel {
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 128px);
    width: min(30vw, 210px);
    max-height: none;
    min-height: 0;
    overflow: hidden;
}

.route-intersections-hidden .route-panel {
    display: none;
}

.route-line {
    position: relative;
    width: 100%;
    height: 100%;
    padding-left: 8px;
}

.route-line::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 16px;
    width: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.route-section {
    position: absolute;
    left: 0;
    right: 0;
    min-height: 0;
    display: grid;
    gap: 10px;
    overflow: hidden;
}

.route-future {
    top: 0;
    bottom: calc(50% + 34px);
    align-content: end;
    padding-left: 8px;
}

.route-current {
    top: 50%;
    padding-left: 8px;
    transform: translateY(-50%);
}

.route-past {
    top: calc(50% + 34px);
    bottom: 0;
    align-content: start;
    padding-left: 8px;
}

.route-item {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-columns: 19px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.route-dot {
    width: 19px;
    height: 19px;
    border: 3px solid #6b7280;
    border-radius: 50%;
    background: var(--bg);
    z-index: 1;
}

.route-item.active .route-dot {
    border-color: #ffffff;
    background: var(--green);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.65);
}

.route-item.passed .route-dot {
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.28);
}

.route-item.passed .route-name,
.route-item.passed .route-distance {
    color: rgba(229, 231, 235, 0.58);
}

.route-text {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.route-name {
    overflow: hidden;
    color: #e5e7eb;
    font-size: clamp(13px, 3.2vw, 16px);
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-distance {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.has-navigation .route-name,
.has-navigation .route-distance {
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 1),
        0 0 8px rgba(0, 0, 0, 0.96);
}

.has-navigation .route-line::before {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
}

.signal-wrap {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.signal-bars {
    width: min(94vw, 760px);
    min-height: 300px;
    max-height: 560px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: clamp(12px, 4vw, 28px);
    contain: layout;
    overflow: visible;
}

.signal-column {
    min-width: 72px;
    max-width: 160px;
    flex: 1 1 0;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 10px;
    overflow: visible;
}

@media (max-width: 700px) {
    :root {
        --mobile-signal-stack-width: clamp(148px, 42vw, 188px);
    }

    .drive-view {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        align-items: stretch;
    }

    .route-panel {
        position: fixed;
        left: max(16px, env(safe-area-inset-left));
        top: var(--route-panel-top, calc(max(18px, env(safe-area-inset-top)) + 300px));
        bottom: var(--route-panel-bottom, calc(max(18px, env(safe-area-inset-bottom)) + 112px));
        width: min(28vw, 170px);
        height: auto;
        z-index: 5;
    }

    .route-line::before {
        bottom: 0;
    }

    .route-section {
        gap: 2px;
    }

    .route-future {
        bottom: calc(50% + 14px);
    }

    .route-current {
        min-height: 22px;
    }

    .route-past {
        top: calc(50% + 14px);
    }

    .route-item {
        min-height: var(--route-item-step, 16px);
        grid-template-columns: 14px minmax(0, 1fr);
        gap: 5px;
    }

    .route-dot {
        width: 14px;
        height: 14px;
        border-width: 2px;
    }

    .route-text {
        display: flex;
        align-items: baseline;
        gap: 4px;
    }

    .route-name {
        font-size: clamp(10px, 2.8vw, 12px);
        line-height: 1;
    }

    .route-distance {
        flex: 0 0 auto;
        font-size: 9.5px;
        line-height: 1;
    }

    .signal-wrap {
        position: fixed;
        top: calc(var(--route-panel-top, calc(max(18px, env(safe-area-inset-top)) + 300px)) + 12px);
        right: max(16px, env(safe-area-inset-right));
        bottom: auto;
        z-index: 2;
        width: var(--mobile-signal-stack-width);
        height: calc(var(--route-panel-height, 420px) - 12px);
        justify-content: flex-end;
        pointer-events: none;
    }

    .signal-bars {
        width: auto;
        height: 100%;
        min-height: 0;
        max-height: none;
        gap: clamp(5px, 1.7vw, 7px);
    }

    .signal-column {
        position: relative;
        min-width: 28px;
        max-width: 72px;
        height: 100%;
        grid-template-rows: minmax(0, 1fr);
        gap: 0;
    }

    .signal-column .signal-bar {
        height: calc(100% - 18px);
        margin-top: 18px;
    }

    .signal-label {
        position: absolute;
        left: 50%;
        top: -12px;
        transform: translateX(-50%);
        width: max-content;
        max-width: 78px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .has-navigation .navigation-banner {
        left: max(16px, env(safe-area-inset-left));
        right: calc(max(16px, env(safe-area-inset-right)) + var(--mobile-signal-stack-width) + 12px);
        width: auto;
        max-width: none;
    }

    .has-navigation .navigation-banner span {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

}

@media (min-width: 701px) {
    :root {
        --mobile-signal-stack-width: 188px;
    }

    .signal-wrap {
        position: fixed;
        top: calc(var(--route-panel-top, calc(max(18px, env(safe-area-inset-top)) + 300px)) + 12px);
        right: max(16px, env(safe-area-inset-right));
        bottom: auto;
        z-index: 2;
        width: var(--mobile-signal-stack-width);
        height: calc(var(--route-panel-height, 420px) - 12px);
        justify-content: flex-end;
        pointer-events: none;
    }

    .signal-bars {
        width: auto;
        height: 100%;
        min-height: 0;
        max-height: none;
        gap: clamp(5px, 1.7vw, 7px);
    }

    .signal-column {
        position: relative;
        min-width: 28px;
        max-width: 72px;
        height: 100%;
        grid-template-rows: minmax(0, 1fr);
        gap: 0;
    }

    .signal-column .signal-bar {
        height: calc(100% - 18px);
        margin-top: 18px;
    }

    .signal-label {
        position: absolute;
        left: 50%;
        top: -12px;
        transform: translateX(-50%);
        width: max-content;
        max-width: 78px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .has-navigation .navigation-banner {
        right: calc(max(16px, env(safe-area-inset-right)) + var(--mobile-signal-stack-width) + 12px);
        width: auto;
        max-width: none;
    }
}

.signal-label {
    min-height: 1.4em;
    color: var(--muted);
    text-align: center;
    font-size: clamp(13px, 3.2vw, 19px);
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.signal-column.green .signal-label {
    color: #86efac;
}

.signal-column.amber .signal-label {
    color: #fcd34d;
}

.signal-column.red .signal-label {
    color: #fca5a5;
}

.signal-bar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1px;
    background: #18181b;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: paint;
}

.segment {
    width: 100%;
    will-change: height;
    transition: height 180ms linear, background-color 180ms ease;
}

.segment.green {
    background: var(--green);
}

.segment.amber {
    background: var(--amber);
}

.segment.red {
    background: var(--red);
}

.segment.unknown {
    background: var(--unknown);
}

.segment.gray {
    background: #64748b;
}

.segment.passed {
    background: #9ca3af;
}

.modal-open .segment,
.modal-open .arrival-line {
    transition: none;
}

.arrival-line {
    position: absolute;
    left: -24px;
    right: -24px;
    top: 36.36%;
    height: 8px;
    background: #ffffff;
    transform: translateY(-50%);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.45);
    transition: top 180ms linear;
}

.status {
    position: absolute;
    left: max(16px, env(safe-area-inset-left));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 3;
    max-width: min(72vw, 560px);
    color: var(--red);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    white-space: pre-line;
}

.status[hidden] {
    display: none;
}

.permission-hint {
    position: absolute;
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 78px);
    z-index: 3;
    max-width: min(76vw, 520px);
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1px;
    background: rgba(24, 24, 27, 0.86);
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.permission-hint[hidden] {
    display: none;
}

.pwa-install-hint {
    position: fixed;
    left: max(16px, env(safe-area-inset-left));
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 78px);
    z-index: 11;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(76vw, 560px);
    padding: 9px 10px;
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 1px;
    background: rgba(8, 47, 73, 0.78);
    color: #e0f2fe;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.pwa-install-hint[hidden] {
    display: none;
}

.pwa-install-hint button {
    appearance: none;
    flex: 0 0 auto;
    min-width: 52px;
    height: 30px;
    border: 1px solid rgba(186, 230, 253, 0.72);
    border-radius: 1px;
    background: rgba(125, 211, 252, 0.18);
    color: #e0f2fe;
    font-size: 12px;
    font-weight: 850;
}

.pwa-install-hint button[hidden] {
    display: none;
}

.auth-gate {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    overflow-y: auto;
    padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
    background: #050505;
}

.auth-gate[hidden] {
    display: none;
}

.auth-panel {
    width: min(100%, 430px);
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1px;
    background: #111113;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.46);
}

.auth-brand {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.auth-brand img {
    width: 54px;
    height: 54px;
    border-radius: 8px;
}

.auth-brand h2,
.auth-brand p,
.auth-verify-panel p {
    margin: 0;
}

.auth-brand h2 {
    color: #f8fafc;
    font-size: 24px;
    font-weight: 900;
}

.auth-brand p,
.auth-verify-panel p {
    margin-top: 3px;
    color: #a1a1aa;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.auth-mode {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 14px;
}

.auth-mode-button {
    appearance: none;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.07);
    color: #a1a1aa;
    font-size: 13px;
    font-weight: 850;
}

.auth-mode-button.active {
    border-color: rgba(34, 197, 94, 0.58);
    background: rgba(20, 83, 45, 0.48);
    color: #dcfce7;
}

.auth-form,
.auth-verify-panel {
    display: grid;
    gap: 12px;
}

.auth-form[hidden],
.auth-verify-panel[hidden],
.profile-settings[hidden] {
    display: none;
}

.auth-age-confirm {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 750;
}

.auth-age-confirm input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #22c55e;
}

.auth-secondary-actions,
.profile-settings-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.auth-link-button {
    appearance: none;
    justify-self: center;
    border: 0;
    background: transparent;
    color: #a7f3d0;
    font-size: 13px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.phone-code-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.phone-code-field .field-action {
    min-width: 118px;
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid rgba(34, 197, 94, 0.58);
    border-radius: 1px;
    background: rgba(20, 83, 45, 0.48);
    color: #dcfce7;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.phone-code-field .field-action:disabled {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #a1a1aa;
}

.account-home-link {
    display: block;
    width: 100%;
    margin-top: 20px;
    text-align: center;
    text-decoration: none;
}

.account-main {
    width: min(100% - 32px, 520px);
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    align-content: center;
    gap: 18px;
}

.account-brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 10px;
    color: #f8fafc;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
}

.account-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.account-verification {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: #111214;
}

.account-verification-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border: 1px solid rgba(245, 158, 11, 0.58);
    border-radius: 50%;
    color: #fcd34d;
    font-size: 22px;
    font-weight: 900;
}

body[data-verification-tone="green"] .account-verification-icon {
    border-color: rgba(34, 197, 94, 0.7);
    color: #86efac;
}

body[data-verification-tone="red"] .account-verification-icon {
    border-color: rgba(239, 68, 68, 0.7);
    color: #fca5a5;
}

.account-verification-eyebrow {
    margin: 0 0 6px;
    color: #86efac;
    font-size: 12px;
    font-weight: 850;
}

.account-verification h1 {
    margin: 0;
}

.account-verification .auth-message {
    margin: 12px 0 0;
}

@media (max-width: 520px) {
    .account-verification {
        padding: 24px 20px;
    }
}

.auth-message,
.profile-settings-message {
    min-height: 1.4em;
    color: var(--amber);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
}

.auth-message[data-tone="red"],
.profile-settings-message[data-tone="red"] {
    color: var(--red);
}

.auth-message[data-tone="green"],
.profile-settings-message[data-tone="green"] {
    color: var(--green);
}

html.auth-booting .screen,
body.auth-booting .screen,
.auth-required .screen {
    visibility: hidden;
}

.has-permission-hint .pwa-install-hint {
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 124px);
}

.bottom-actions {
    position: fixed;
    left: max(16px, env(safe-area-inset-left));
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 34px);
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: bottom 160ms ease;
}

.about-button,
.icon-button,
.friend-button,
.contact-button,
.navigation-clear-button,
.app-install-button {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}

.about-button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 1px;
    font-size: 18px;
    font-weight: 800;
}

.icon-button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 1px;
    font-size: 16px;
    font-weight: 800;
}

.app-install-button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-color: rgba(56, 189, 248, 0.46);
    border-radius: 1px;
    background: rgba(8, 47, 73, 0.44);
    color: #bae6fd;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.navigation-clear-button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-color: rgba(248, 113, 113, 0.46);
    border-radius: 1px;
    background: rgba(127, 29, 29, 0.38);
    color: #fecaca;
    font-size: 24px;
    font-weight: 850;
    line-height: 1;
}

.navigation-clear-button[hidden] {
    display: none;
}

.has-navigation .contact-button {
    min-width: 70px;
    padding-inline: 10px;
}

.app-install-button img {
    width: 22px;
    height: 22px;
    display: block;
}

.app-install-button[hidden],
.is-native-android-app .app-install-button,
.is-native-android-app .pwa-install-hint,
.is-app-shell .app-install-button,
.is-app-shell .pwa-install-hint {
    display: none;
}

.contact-button {
    min-width: 78px;
    height: 34px;
    border-radius: 1px;
    padding: 0 13px;
    font-size: 13px;
    font-weight: 800;
}

.friend-button {
    min-width: 54px;
    height: 34px;
    border-color: rgba(125, 211, 252, 0.34);
    border-radius: 1px;
    background: rgba(8, 47, 73, 0.38);
    color: #bae6fd;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 850;
}

body.signals-disabled:not(.has-navigation) .route-panel,
body.signals-disabled:not(.has-navigation) .signal-wrap {
    display: none;
}

body.signals-disabled:not(.has-navigation) .drive-view {
    pointer-events: none;
}

.navigation-banner {
    position: fixed;
    left: max(16px, env(safe-area-inset-left));
    right: auto;
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 78px);
    z-index: 13;
    width: min(326px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid rgba(34, 197, 94, 0.32);
    border-radius: 1px;
    background: rgba(5, 46, 22, 0.74);
    color: #dcfce7;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
}

.navigation-banner[hidden] {
    display: none;
}

.navigation-banner strong,
.navigation-banner span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navigation-banner strong {
    color: #f0fdf4;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
    white-space: pre-line;
}

.navigation-banner span {
    margin-top: 2px;
    color: #bbf7d0;
    font-size: 12px;
    font-weight: 750;
}

.navigation-banner button {
    appearance: none;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.1);
    color: #ecfdf5;
    font-size: 20px;
    line-height: 1;
}

.has-navigation .live-map {
    opacity: 0.62;
}

.friend-follow-panel {
    position: fixed;
    left: 50%;
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 78px);
    z-index: 13;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 30px minmax(72px, auto);
    grid-template-rows: 44px auto;
    align-items: center;
    gap: 5px 8px;
    box-sizing: border-box;
    width: min(430px, calc(100vw - 44px));
    padding: 10px 11px;
    border: 1px solid rgba(125, 211, 252, 0.34);
    border-radius: 1px;
    background: rgba(8, 47, 73, 0.78);
    color: #e0f2fe;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
    transform: translateX(-50%);
}

.friend-follow-panel[hidden] {
    display: none;
}

.friend-follow-photo {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(125, 211, 252, 0.66);
    border-radius: 50%;
    background: rgba(8, 47, 73, 0.92) center / cover no-repeat;
    color: #e0f2fe;
    font-size: 17px;
    font-weight: 900;
}

.friend-follow-photo.has-photo {
    color: transparent;
}

.friend-follow-photo.is-default-avatar,
.friend-avatar.is-default-avatar,
.friend-map-marker img.is-default-avatar {
    filter: grayscale(1);
    opacity: 0.82;
}

.friend-follow-identity {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.friend-follow-identity strong,
.friend-follow-identity span,
.friend-follow-panel #friendFollowMeta {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-follow-identity strong {
    color: #f0f9ff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
}

.friend-follow-identity span {
    color: #bae6fd;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
}

.friend-follow-panel #friendFollowMeta {
    grid-column: 1 / span 2;
    grid-row: 2;
    color: #bae6fd;
    font-size: 12px;
    font-weight: 750;
}

.friend-follow-panel #friendFollowClose {
    appearance: none;
    grid-column: 3;
    grid-row: 1 / span 2;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.1);
    color: #ecfeff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.friend-follow-panel #friendFollowClose[hidden] {
    display: none;
}

.friend-follow-panel.is-navigating {
    grid-template-columns: 44px minmax(0, 1fr) minmax(72px, auto);
}

.friend-follow-panel.is-navigating .friend-navigate-button,
.friend-follow-panel.is-navigating .friend-wake-button {
    grid-column: 3;
}

.friend-follow-panel .friend-navigate-button {
    grid-column: 4;
    grid-row: 1 / span 2;
    width: auto;
    min-width: 72px;
    max-width: 92px;
    height: 32px;
    border-color: rgba(34, 197, 94, 0.58);
    background: rgba(21, 128, 61, 0.58);
    padding: 0 10px;
    color: #dcfce7;
    font-size: 12px;
}

.friend-follow-panel.is-offline {
    border-color: rgba(161, 161, 170, 0.44);
    background: rgba(39, 39, 42, 0.86);
    color: #e4e4e7;
}

.friend-follow-panel.is-connected {
    border-color: rgba(34, 197, 94, 0.58);
}

.friend-follow-panel.is-offline .friend-follow-photo {
    border-color: rgba(161, 161, 170, 0.7);
    filter: grayscale(1);
    opacity: 0.74;
}

.friend-follow-panel.is-offline .friend-follow-identity span,
.friend-follow-panel.is-offline #friendFollowMeta {
    color: #d4d4d8;
}

.friend-follow-panel.is-sharing-off {
    border-color: rgba(248, 113, 113, 0.42);
}

.friend-follow-panel.is-sharing-off #friendFollowMeta {
    color: #fca5a5;
}

.friend-follow-panel.is-stale:not(.is-offline) {
    border-color: rgba(251, 191, 36, 0.5);
}

.friend-follow-panel.is-stale:not(.is-offline) #friendFollowMeta {
    color: #fde68a;
}

.friend-follow-panel.is-offline .friend-navigate-button {
    grid-row: 1;
}

.friend-follow-panel .friend-wake-button {
    grid-column: 4;
    grid-row: 2;
    width: auto;
    min-width: 72px;
    max-width: 92px;
    height: 28px;
    border: 1px solid rgba(250, 204, 21, 0.52);
    border-radius: 1px;
    background: rgba(161, 98, 7, 0.6);
    padding: 0 8px;
    color: #fef9c3;
    font-size: 11px;
    font-weight: 850;
}

.friend-follow-panel .friend-wake-button[hidden] {
    display: none;
}

.map-follow-button {
    appearance: none;
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 84px);
    z-index: 13;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(56, 189, 248, 0.62);
    border-radius: 50%;
    background: rgba(8, 47, 73, 0.88);
    color: #e0f2fe;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.map-follow-button[hidden] {
    display: none;
}

.has-friend-follow .map-follow-button {
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 190px);
}

.admin-button {
    appearance: none;
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 34px);
    z-index: 12;
    min-width: 78px;
    height: 34px;
    border: 1px solid rgba(56, 189, 248, 0.64);
    border-radius: 1px;
    background: rgba(8, 47, 73, 0.66);
    color: #bae6fd;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
}

.admin-button[hidden] {
    display: none;
}

body.is-admin-modal-open .admin-button {
    display: none !important;
}

.admin-button:active {
    background: rgba(14, 116, 144, 0.62);
}

.has-error-status .bottom-actions {
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 36px);
}

.about-button:active,
.icon-button:active,
.contact-button:active,
.navigation-clear-button:active,
.app-install-button:active {
    background: rgba(255, 255, 255, 0.16);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding:
        max(16px, env(safe-area-inset-top))
        max(16px, env(safe-area-inset-right))
        max(16px, env(safe-area-inset-bottom))
        max(16px, env(safe-area-inset-left));
}

.modal[hidden] {
    display: none;
}

body.is-public-web.modal-open {
    overflow: hidden;
}

.tester-modal {
    z-index: 40;
}

.tester-modal-panel {
    width: min(100%, 520px);
    max-height: calc(100dvh - 44px);
    border-radius: 8px;
    overflow: hidden;
}

.tester-form {
    max-height: calc(100dvh - 116px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.tester-intro,
.tester-friend-note {
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.6;
    white-space: normal;
}

.tester-form .form-field small {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
    white-space: normal;
}

.tester-friend-note {
    border-left: 3px solid #22c55e;
    padding: 9px 11px;
    background: rgba(34, 197, 94, 0.1);
}

.tester-check {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    color: #e5e7eb;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
}

.tester-check input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: #22c55e;
}

.tester-check a {
    color: #7dd3fc;
}

.tester-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#adminModal.modal {
    place-items: center;
    padding: 30px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
}

.modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: #111113;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

#settingsModal .modal-panel {
    max-height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

#settingsModal .settings-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

#adminTextModal .modal-panel {
    width: min(100%, 640px);
    max-height: calc(100dvh - 44px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#adminTextBody {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    white-space: pre-wrap;
    -webkit-overflow-scrolling: touch;
}

.compass-modal-panel {
    width: min(100%, 360px);
}

.admin-modal-panel {
    position: relative;
    width: calc(100vw - 60px);
    height: calc(100dvh - 60px);
    max-width: none;
    max-height: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1px;
    background: #111113;
    display: block;
    overflow: hidden;
}

.admin-modal-panel .modal-header {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    width: 34px;
    height: 0;
    min-height: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    pointer-events: none;
}

.admin-modal-panel .modal-close {
    pointer-events: auto;
}

.admin-modal-panel .modal-header h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.modal-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 18px 18px 10px;
}

.modal-header h2 {
    margin: 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1.25;
}

.modal-close {
    appearance: none;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
}

.modal-body {
    display: grid;
    gap: 12px;
    padding: 0 18px 20px;
    white-space: pre-line;
}

.admin-body {
    position: absolute;
    inset: 0 !important;
    display: block;
    min-height: 0;
    padding: 0 !important;
    overflow: hidden;
}

.admin-summary {
    position: absolute;
    left: 10px;
    top: 10px;
    right: auto;
    z-index: 7;
    width: max-content;
    max-width: calc(100% - 330px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1px;
    background: rgba(17, 17, 19, 0.58);
    color: #e5e7eb;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-summary[data-tone="green"] {
    color: #86efac;
}

.admin-summary[data-tone="red"] {
    color: #fca5a5;
}

.admin-user-list {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 0;
    overflow: auto;
    padding: 10px;
}

.admin-empty {
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.admin-layout {
    position: absolute;
    inset: 10px;
    min-height: 0;
    height: auto;
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 12px;
    padding: 0;
    box-sizing: border-box;
}

.admin-user-pane,
.admin-map-pane {
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1px;
    background: rgba(17, 17, 19, 0.44);
}

.admin-user-pane {
    position: relative;
    z-index: 2;
    width: auto;
    display: grid;
    grid-template-rows: auto auto minmax(126px, 0.65fr) auto minmax(120px, 0.8fr) minmax(0, 1.35fr) auto;
    overflow: hidden;
    background: rgba(17, 17, 19, 0.92);
}

.admin-api-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 7px;
    min-height: 0;
    padding: 9px 10px 10px;
    border-block: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.12);
}

.admin-api-heading,
.admin-api-heading > div {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.admin-api-heading {
    justify-content: space-between;
}

.admin-api-heading strong {
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
}

.admin-api-heading span {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-api-refresh {
    appearance: none;
    min-height: 26px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 10px;
    font-weight: 900;
    padding: 0 8px;
}

.admin-api-panel .admin-status-list {
    min-height: 0;
    overflow: auto;
}

.admin-pane-title {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.admin-user-select {
    color-scheme: light;
    width: calc(100% - 20px);
    margin: 10px 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1px;
    background: #f8fafc;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 10px;
}

.admin-user-select option {
    background: #ffffff;
    color: #111827;
}

.admin-user-select[hidden] {
    display: none;
}

.admin-user-option {
    appearance: none;
    width: 100%;
    display: grid;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    padding: 12px;
    text-align: left;
    cursor: pointer;
}

.admin-user-option.active {
    border-color: rgba(56, 189, 248, 0.62);
    background: rgba(8, 47, 73, 0.42);
}

.admin-user-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1px;
    color: #e5e7eb;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.admin-badge.donor {
    border-color: rgba(245, 158, 11, 0.42);
    background: rgba(120, 53, 15, 0.34);
    color: #fde68a;
}

.admin-badge.online {
    border-color: rgba(34, 197, 94, 0.48);
    background: rgba(20, 83, 45, 0.36);
    color: #bbf7d0;
}

.admin-badge.collecting {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(8, 47, 73, 0.38);
    color: #bae6fd;
}

.admin-badge.app-admin {
    border-color: rgba(56, 189, 248, 0.56);
    background: rgba(8, 47, 73, 0.42);
    color: #bae6fd;
}

.admin-badge.blocked {
    border-color: rgba(248, 113, 113, 0.48);
    background: rgba(127, 29, 29, 0.34);
    color: #fecaca;
}

.admin-user-controls {
    display: grid;
    gap: 9px;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.16);
    overflow: auto;
}

.admin-user-controls[hidden] {
    display: none;
}

.admin-control-title {
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
}

.admin-control-field {
    display: grid;
    gap: 5px;
}

.admin-control-field span,
.admin-toggle-field span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.admin-control-field input,
.admin-control-field select {
    color-scheme: dark;
    min-width: 0;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 12px;
    font-weight: 780;
    padding: 8px 9px;
}

.admin-toggle-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-toggle-field input {
    width: 16px;
    height: 16px;
}

.admin-control-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
}

.admin-control-actions.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-control-button {
    appearance: none;
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
}

.admin-control-button.danger {
    border-color: rgba(248, 113, 113, 0.48);
    background: rgba(127, 29, 29, 0.24);
    color: #fecaca;
}

.admin-control-button.primary {
    border-color: rgba(52, 211, 153, 0.52);
    background: rgba(6, 95, 70, 0.32);
    color: #d1fae5;
}

.admin-control-button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.admin-user-detail,
.admin-status-list {
    display: grid;
    gap: 6px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.05);
    color: #d4d4d8;
    font-size: 11px;
    font-weight: 760;
    line-height: 1.38;
}

.admin-user-detail div,
.admin-status-row {
    display: grid;
    grid-template-columns: minmax(76px, auto) minmax(0, 1fr);
    gap: 7px;
    min-width: 0;
}

.admin-status-row[data-admin-detail-body] {
    cursor: pointer;
}

.admin-status-row[data-admin-detail-body]:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.7);
    outline-offset: 2px;
}

.admin-user-detail span,
.admin-status-row span:first-child {
    color: var(--muted);
    font-weight: 900;
}

.admin-user-detail strong,
.admin-status-row strong {
    overflow: hidden;
    color: #f4f4f5;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-status-row[data-tone="green"] strong {
    color: #86efac;
}

.admin-status-row[data-tone="amber"] strong {
    color: #fcd34d;
}

.admin-status-row[data-tone="red"] strong {
    color: #fca5a5;
}

.admin-control-message {
    min-height: 1.35em;
    color: var(--amber);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
}

.admin-control-message[data-tone="green"] {
    color: #86efac;
}

.admin-control-message[data-tone="red"] {
    color: #fca5a5;
}

.admin-map-pane {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0;
    transform: translate3d(0, 0, 0);
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 19, 0.44);
}

.admin-map-frame {
    position: absolute;
    inset: 0 !important;
    z-index: 0;
    overflow: hidden;
    background: #050505;
}

.admin-map {
    position: absolute;
    inset: 0 !important;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #050505;
}

.admin-map-tools {
    position: absolute;
    top: 10px;
    right: 52px;
    z-index: 8;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
    justify-content: flex-end;
    max-width: 100%;
}

.admin-refresh-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1px;
    background: rgba(17, 17, 19, 0.48);
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.admin-refresh-toggle input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #22c55e;
}

.admin-refresh-toggle.active {
    border-color: rgba(34, 197, 94, 0.64);
    background: rgba(20, 83, 45, 0.58);
    color: #bbf7d0;
}

.admin-map-tool {
    appearance: none;
    min-width: 42px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1px;
    background: rgba(17, 17, 19, 0.48);
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 850;
}

.admin-map-tool.active {
    border-color: rgba(56, 189, 248, 0.72);
    background: rgba(8, 47, 73, 0.64);
    color: #bae6fd;
}

.admin-range-control {
    position: absolute;
    right: 10px;
    bottom: 54px;
    z-index: 7;
    display: none;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1px;
    background: rgba(17, 17, 19, 0.56);
    color: #e5e7eb;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.admin-range-control span {
    color: #a1a1aa;
    font-weight: 900;
}

.admin-range-control select {
    color-scheme: dark;
    width: 78px;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #f4f4f5;
    font: inherit;
    font-weight: 900;
}

.admin-location-meta {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    overflow: hidden;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1px;
    background: rgba(17, 17, 19, 0.56);
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-map-marker {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--marker-color, #38bdf8);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.36);
}

.admin-map-info {
    display: grid;
    gap: 4px;
    max-width: 240px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1px;
    background: rgba(17, 17, 19, 0.94);
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 760;
    line-height: 1.35;
}

.admin-map-info strong {
    color: #ffffff;
    font-size: 13px;
}

.admin-user-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: baseline;
}

.admin-user-head strong {
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.admin-user-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 10px;
    margin: 0;
}

.admin-user-meta div {
    min-width: 0;
}

.admin-user-meta dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.admin-user-meta dd {
    overflow: hidden;
    margin: 2px 0 0;
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 760;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-body p {
    margin: 0;
    color: #d4d4d8;
    font-size: 14px;
    line-height: 1.55;
}

.policy-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: #7dd3fc;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    text-underline-offset: 3px;
}

.source-link-panel {
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 6px;
    background: rgba(8, 47, 73, 0.32);
}

.source-link-panel strong {
    color: #f8fafc;
    font-size: 13px;
    font-weight: 900;
}

.source-link-panel a {
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-underline-offset: 3px;
}

.app-version-panel {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.42);
}

.app-version-row {
    display: grid;
    grid-template-columns: minmax(72px, max-content) minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    min-width: 0;
}

.app-version-row span {
    color: #a1a1aa;
    font-size: 12px;
    font-weight: 850;
}

.app-version-row strong {
    min-width: 0;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.app-version-message {
    color: #cbd5e1 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.app-version-panel[data-status="outdated"] .app-version-message {
    color: #fbbf24 !important;
}

.app-version-check-button {
    justify-self: start;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(56, 189, 248, 0.44);
    border-radius: 4px;
    background: rgba(8, 47, 73, 0.46);
    color: #e0f2fe;
    font-size: 12px;
    font-weight: 900;
}

.privacy-page {
    min-height: 100%;
    overflow-y: auto;
    background: #050505;
    color: #f8fafc;
}

.privacy-main {
    width: min(100% - 32px, 860px);
    margin: 0 auto;
    padding: 40px 0 64px;
}

.privacy-main h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.25;
}

.privacy-main h2 {
    margin: 32px 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.privacy-main p,
.privacy-main li,
.privacy-main th,
.privacy-main td {
    color: #d4d4d8;
    font-size: 14px;
    line-height: 1.7;
}

.privacy-main ul {
    margin: 8px 0 0;
    padding-left: 22px;
}

.privacy-main table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}

.privacy-main th,
.privacy-main td {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    text-align: left;
    vertical-align: top;
}

.privacy-main th {
    color: #f8fafc;
}

.privacy-main a {
    color: #7dd3fc;
    text-underline-offset: 3px;
}

.privacy-main .privacy-action-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(56, 189, 248, 0.42);
    border-radius: 1px;
    background: rgba(8, 47, 73, 0.72);
    color: #e0f2fe;
    font-weight: 850;
    text-decoration: none;
}

.privacy-lead,
.privacy-updated {
    margin: 10px 0 0;
}

.privacy-updated {
    color: #a1a1aa;
}

@media (max-width: 640px) {
    .privacy-main {
        width: min(100% - 24px, 860px);
        padding-top: 24px;
    }

    .privacy-main h1 {
        font-size: 24px;
    }

    .privacy-main table,
    .privacy-main tbody,
    .privacy-main tr {
        display: block;
    }

    .privacy-main thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
    }

    .privacy-main tr {
        border: 1px solid rgba(255, 255, 255, 0.16);
    }

    .privacy-main tr + tr {
        margin-top: 12px;
    }

    .privacy-main td {
        display: grid;
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
        border: 0;
    }

    .privacy-main td + td {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .privacy-main td::before {
        color: #f8fafc;
        font-weight: 800;
        content: attr(data-label);
    }
}

.calibration-meter {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.calibration-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #38bdf8);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 180ms linear;
    will-change: transform;
}

.calibration-percent {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    text-align: right;
}

.settings-body {
    gap: 18px;
}

.setting-group {
    display: grid;
    gap: 8px;
    width: 100%;
}

.setting-label {
    justify-self: start;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.app-language-setting select {
    width: 100%;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1px;
    background: #202225;
    padding: 0 10px;
    color: var(--text);
    font: inherit;
    font-size: 14px;
}

.location-share-setting {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
}

.location-share-setting input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #22c55e;
}

.location-share-setting span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.location-share-setting strong {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 850;
}

.location-share-setting small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.map-theme-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.map-theme-button {
    appearance: none;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.08);
    color: #d4d4d8;
    font: inherit;
    font-size: 14px;
    font-weight: 850;
}

.map-theme-button.active {
    border-color: rgba(56, 189, 248, 0.7);
    background: rgba(3, 105, 161, 0.5);
    color: #f0f9ff;
}

.indicator-help {
    display: grid;
    gap: 12px;
    margin: 0;
}

.indicator-help div {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
}

.indicator-help dt {
    color: var(--text);
    font-size: 14px;
    font-weight: 850;
}

.indicator-help dd {
    margin: 0;
    color: #d4d4d8;
    font-size: 13px;
    line-height: 1.45;
}

.contact-form,
.friend-form {
    gap: 14px;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field span {
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 800;
}

.form-field select,
.form-field input,
.form-field textarea {
    color-scheme: dark;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font: inherit;
    font-size: 14px;
}

.form-field input {
    height: 38px;
    padding: 0 10px;
}

.form-field input[type="file"] {
    height: auto;
    padding: 9px 10px;
}

.form-field select {
    padding: 10px 12px;
}

.form-field select option {
    background: #18181b;
    color: var(--text);
}

.form-field select option:checked {
    background: #27272a;
    color: var(--text);
}

.form-field textarea {
    resize: vertical;
    min-height: 130px;
    padding: 12px;
    line-height: 1.45;
}

.contact-message {
    min-height: 1.4em;
    color: var(--amber);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
    white-space: pre-line;
}

.friend-modal-panel {
    width: min(100%, 620px);
    max-height: calc(100vh - 44px);
    max-height: calc(100dvh - 44px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.friend-body {
    min-height: 0;
    overflow-y: auto;
    display: grid;
    gap: 14px;
    -webkit-overflow-scrolling: touch;
}

.friend-form {
    display: grid;
    gap: 10px;
}

.friend-consent-note {
    margin: 0;
    color: #d4d4d8;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.friend-form h3,
.friend-section h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 900;
}

.friend-signed-in {
    display: grid;
    gap: 14px;
}

.friend-profile {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.friend-profile-identity,
.friend-row-identity {
    min-width: 0;
    height: 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.friend-profile img,
.friend-row-with-photo img,
.friend-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.friend-profile img,
.friend-row-with-photo img {
    object-fit: cover;
}

.friend-avatar {
    display: grid;
    place-items: center;
    border: 2px solid rgba(125, 211, 252, 0.58);
    background: rgba(8, 47, 73, 0.92);
    object-fit: cover;
    color: #e0f2fe;
    font-size: 17px;
    font-weight: 900;
}

.friend-profile-identity strong,
.friend-row strong {
    display: block;
    overflow: hidden;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-profile-identity span,
.friend-row small,
.friend-empty {
    color: #a1a1aa;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
}

.friend-list {
    display: grid;
    gap: 12px;
}

.friend-section {
    display: grid;
    gap: 8px;
}

.friend-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.friend-row-with-photo {
    grid-template-columns: 46px minmax(0, 1fr) auto;
}

.friend-row-outgoing {
    grid-template-columns: minmax(0, 1fr) auto;
}

.friend-row-with-photo.is-offline,
.friend-row-with-photo.is-sharing-off {
    border-color: rgba(161, 161, 170, 0.2);
    background: rgba(63, 63, 70, 0.22);
}

.friend-row-with-photo.is-connected {
    border-color: rgba(34, 197, 94, 0.34);
    background: rgba(20, 83, 45, 0.16);
}

.friend-row-with-photo.is-offline > img,
.friend-row-with-photo.is-offline > .friend-avatar,
.friend-row-with-photo.is-sharing-off > img,
.friend-row-with-photo.is-sharing-off > .friend-avatar {
    filter: grayscale(1);
    opacity: 0.66;
}

.friend-row-with-photo.is-offline .friend-row-identity strong,
.friend-row-with-photo.is-sharing-off .friend-row-identity strong {
    color: #d4d4d8;
}

.friend-row-with-photo.is-sharing-off .friend-row-identity small {
    color: #fca5a5;
}

.friend-row-with-photo.is-stale {
    border-color: rgba(251, 191, 36, 0.34);
    background: rgba(120, 53, 15, 0.18);
}

.friend-row-with-photo.is-stale > img,
.friend-row-with-photo.is-stale > .friend-avatar {
    border-color: rgba(251, 191, 36, 0.7);
}

.friend-row-with-photo.is-stale .friend-row-identity small {
    color: #fde68a;
}

.friend-row-identity small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.friend-row-actions small {
    color: #a1a1aa;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.friend-row button {
    appearance: none;
    min-width: 42px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 850;
}

.friend-row button:disabled,
.friend-follow-panel button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.friend-message {
    min-height: 1.4em;
    color: var(--amber);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
    white-space: pre-line;
}

.profile-settings-header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.profile-settings-identity {
    min-width: 0;
    height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.profile-settings-identity strong,
.profile-settings-identity span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-settings-identity strong {
    color: #f8fafc;
    font-size: 14px;
    line-height: 1.35;
}

.profile-settings-header img {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(125, 211, 252, 0.58);
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.profile-photo-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.profile-photo-field .form-field,
.profile-photo-field input[type="file"] {
    min-width: 0;
}

.email-settings {
    display: grid;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.email-settings-status {
    min-height: 1.4em;
    margin: 0;
    color: #a1a1aa;
    font-size: 12px;
    line-height: 1.45;
}

.email-settings .modal-action {
    justify-self: start;
    width: auto;
    min-width: 138px;
}

.email-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.password-settings {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.password-settings[hidden],
.email-settings-actions .modal-action[hidden],
.password-settings > .modal-action[hidden] {
    display: none;
}

.password-settings > .modal-action {
    justify-self: start;
    width: auto;
    min-width: 138px;
    margin-top: 0;
}

.password-change-form {
    display: grid;
    gap: 12px;
}

.password-change-form[hidden] {
    display: none;
}

@media (max-width: 390px) {
    .phone-code-field {
        grid-template-columns: 1fr;
    }

    .phone-code-field .field-action {
        width: 100%;
    }
}

.profile-photo-remove {
    justify-self: end;
    align-self: end;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(248, 113, 113, 0.54);
    border-radius: 1px;
    background: rgba(69, 10, 10, 0.28);
    color: #fecaca;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.profile-photo-remove:disabled {
    opacity: 0.42;
    cursor: default;
}

.profile-settings-identity span {
    min-width: 0;
    overflow: hidden;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .marketing-header {
        width: calc(100% - 32px);
        height: 64px;
    }

    .marketing-nav {
        gap: 10px;
    }

    .marketing-nav a:not([href="#download"]) {
        display: none;
    }

    .marketing-hero {
        height: calc(100svh - 112px);
        min-height: 560px;
    }

    .marketing-hero-image {
        object-position: 62% center;
    }

    .marketing-hero-shade {
        background: rgba(5, 7, 10, 0.64);
    }

    .marketing-hero-content {
        width: calc(100% - 40px);
        align-self: end;
        margin: 0 auto 38px;
    }

    .marketing-hero h1 {
        font-size: 58px;
    }

    .marketing-lead {
        font-size: 17px;
    }

    .marketing-section-heading h2,
    .marketing-download h2 {
        font-size: 32px;
    }

    .marketing-feature-grid {
        grid-template-columns: 1fr;
        gap: 38px;
        margin-top: 48px;
    }

    .marketing-features,
    .marketing-flow,
    .marketing-moments,
    .marketing-preview,
    .marketing-status,
    .marketing-trust,
    .marketing-faq,
    .marketing-install {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .marketing-moment-grid,
    .marketing-trust-list {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 34px;
    }

    .marketing-flow-list {
        grid-template-columns: 1fr;
        margin-top: 34px;
    }

    .marketing-flow-list li {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 16px;
        padding: 20px;
    }

    .marketing-status-grid,
    .marketing-install-grid {
        grid-template-columns: 1fr;
        margin-top: 34px;
    }

    .marketing-install-grid article {
        min-height: 0;
    }

    .marketing-status-grid article {
        min-height: 0;
    }

    .marketing-faq-list {
        margin-top: 30px;
    }

    .marketing-faq-list summary {
        padding: 20px 2px;
        font-size: 17px;
    }

    .marketing-preview {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .marketing-preview-copy h2 {
        font-size: 32px;
    }

    .marketing-phone-preview {
        min-height: 430px;
        border-radius: 18px;
    }

    .marketing-friend-panel {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .marketing-friend-panel b {
        grid-column: 1 / -1;
        justify-self: stretch;
        text-align: center;
    }

    .marketing-download {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 30px;
        padding-top: 68px;
        padding-bottom: 68px;
    }

    .marketing-download-actions {
        justify-content: flex-start;
    }

    .marketing-download > button,
    .marketing-download-actions > a,
    .marketing-download-actions > button {
        width: 100%;
    }

    .marketing-footer {
        flex-wrap: wrap;
        gap: 10px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.is-public-web.marketing-effects-ready .marketing-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .marketing-phone-preview {
        transform: none !important;
        transition: none;
    }
}

.friend-map-marker {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 3px;
    transform: translate(-50%, -50%);
}

.friend-map-marker img,
.friend-map-marker strong {
    width: 36px;
    height: 36px;
    border: 2px solid #bae6fd;
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.friend-map-marker img {
    object-fit: cover;
}

.friend-map-marker strong {
    display: grid;
    place-items: center;
    background: rgba(8, 47, 73, 0.92);
    color: #e0f2fe;
    font-size: 16px;
    font-weight: 900;
}

.friend-map-marker > span {
    max-width: 92px;
    overflow: hidden;
    padding: 2px 9px;
    background: radial-gradient(ellipse at center, rgba(2, 6, 23, 0.82) 0 30%, rgba(2, 6, 23, 0.5) 52%, transparent 76%);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.25;
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px #020617, 0 0 5px #020617, 0 0 9px rgba(2, 6, 23, 0.92);
    white-space: nowrap;
}

.friend-marker-status {
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 2px;
    transform: translateX(-50%);
    pointer-events: none;
}

.friend-map-marker em {
    min-width: 44px;
    max-width: 150px;
    overflow: hidden;
    padding: 2px 10px;
    border: 0;
    background: radial-gradient(ellipse at center, rgba(2, 6, 23, 0.86) 0 28%, rgba(2, 6, 23, 0.56) 52%, transparent 78%);
    color: #e0f2fe;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px #020617, 0 0 5px #020617, 0 0 9px rgba(2, 6, 23, 0.94);
    white-space: nowrap;
}

.friend-map-marker em.is-speed {
    color: #e0f2fe;
}

.friend-map-marker em.is-battery-ok {
    color: #dcfce7;
}

.friend-map-marker em.is-battery-mid {
    color: #fef3c7;
}

.friend-map-marker em.is-battery-low {
    color: #fee2e2;
}

.friend-map-marker em.is-stay {
    color: #dcfce7;
}

.friend-map-marker.following img,
.friend-map-marker.following strong {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.24), 0 8px 22px rgba(0, 0, 0, 0.32);
}

.friend-map-marker.stale:not(.offline) img,
.friend-map-marker.stale:not(.offline) strong {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.22), 0 8px 22px rgba(0, 0, 0, 0.32);
}

.friend-map-marker.offline img,
.friend-map-marker.offline strong {
    border-color: #a1a1aa;
    filter: grayscale(1);
    opacity: 0.72;
    box-shadow: 0 0 0 3px rgba(113, 113, 122, 0.2), 0 8px 22px rgba(0, 0, 0, 0.32);
}

.friend-map-marker.offline > span {
    color: #d4d4d8;
}

.friend-map-marker b {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 5px;
    border: 1px solid rgba(161, 161, 170, 0.48);
    border-radius: 1px;
    background: rgba(39, 39, 42, 0.9);
    color: #e4e4e7;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
}

.is-browser-admin .live-map,
.is-browser-admin .summary,
.is-browser-admin .drive-view,
.is-browser-admin .top-indicators,
.is-browser-admin .navigation-banner,
.is-browser-admin .permission-hint,
.is-browser-admin .pwa-install-hint,
.is-browser-admin .friend-follow-panel,
.is-browser-admin .status {
    display: none !important;
}

@media (max-width: 640px) {
    .bottom-actions {
        left: max(16px, env(safe-area-inset-left));
        gap: 6px;
    }

    .admin-button {
        right: max(16px, env(safe-area-inset-right));
    }

    .signal-wrap {
        right: max(16px, env(safe-area-inset-right));
    }

    .friend-follow-panel {
        left: 50%;
        bottom: calc(max(18px, env(safe-area-inset-bottom)) + 76px);
        width: min(430px, calc(100vw - 32px));
    }

    .has-navigation .friend-follow-panel {
        left: max(16px, env(safe-area-inset-left));
        right: calc(max(16px, env(safe-area-inset-right)) + var(--mobile-signal-stack-width) + 4px);
        width: auto;
        max-width: 430px;
        transform: none;
    }

    .friend-button {
        min-width: 48px;
        padding-inline: 8px;
    }

    .contact-button {
        min-width: 68px;
        padding-inline: 9px;
    }

    .friend-profile {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .friend-profile img {
        width: 42px;
        height: 42px;
    }

    .friend-profile-identity {
        height: 42px;
    }

}

.modal-action {
    appearance: none;
    width: 100%;
    margin-top: 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    padding: 13px 16px;
}

.modal-action:active {
    background: rgba(255, 255, 255, 0.16);
}

.navigation-confirm-panel,
.navigation-mode-panel {
    max-width: min(92vw, 360px);
}

.app-dialog-modal {
    z-index: 110;
}

.required-update-modal {
    z-index: 180;
}

.required-update-panel {
    max-width: min(92vw, 380px);
    border-radius: 8px;
}

.required-update-body {
    gap: 16px;
}

.required-update-body p {
    margin: 0;
    color: #e5e7eb;
    font-size: 14px;
    line-height: 1.6;
}

.required-update-body .modal-action {
    margin-top: 0;
}

.app-dialog-panel {
    max-width: min(92vw, 380px);
    border-radius: 8px;
}

.app-dialog-body {
    gap: 16px;
}

.app-dialog-message {
    margin: 0;
    color: #e5e7eb;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
}

.app-dialog-input-field[hidden],
.app-dialog-actions .modal-action[hidden] {
    display: none;
}

.app-dialog-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.app-dialog-actions.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.app-dialog-actions .modal-action {
    min-height: 48px;
    margin-top: 0;
}

.navigation-confirm-actions,
.navigation-mode-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.navigation-confirm-actions .modal-action,
.navigation-mode-actions .modal-action {
    margin-top: 0;
}

.navigation-mode-option {
    min-height: 64px;
    font-size: 17px;
}

.modal-action.secondary {
    color: #e5e7eb;
}

.modal-action.danger {
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(127, 29, 29, 0.36);
    color: #fecaca;
}

.intersection-visibility-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.candidate-source-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.candidate-source-button,
.intersection-visibility-button {
    appearance: none;
    min-width: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.08);
    color: #d4d4d8;
    font-size: 14px;
    font-weight: 850;
}

.candidate-source-button.active,
.intersection-visibility-button.active {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.18);
    color: var(--text);
}

@media (max-width: 820px) and (pointer: coarse) {
    #adminModal.modal {
        place-items: stretch;
        padding: 0;
    }

    .admin-modal-panel {
        width: 100vw;
        height: 100dvh;
        border: 0;
    }

    .admin-modal-panel .modal-header {
        position: absolute;
        top: calc(env(safe-area-inset-top, 0px) + 25px);
        right: 8px;
        z-index: 32;
        width: 34px;
        height: 0;
        padding: 0;
        overflow: visible;
    }

    .admin-modal-panel .modal-close {
        width: 34px;
        height: 34px;
        font-size: 20px;
        background: rgba(17, 17, 19, 0.36);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    }

    .admin-body {
        padding: 0;
    }

    .admin-layout {
        position: absolute;
        inset: 0;
        display: block;
        height: 100%;
        padding: 0;
    }

    .admin-user-pane {
        position: absolute;
        top: calc(env(safe-area-inset-top, 0px) + 25px);
        bottom: auto;
        left: 8px;
        right: 210px;
        z-index: 12;
        display: block;
        width: auto;
        max-width: none;
        min-width: 0;
        height: 34px;
        min-height: 0;
        border: 0;
        background: transparent;
        pointer-events: none;
    }

    .admin-pane-title,
    .admin-api-panel,
    .admin-user-list,
    .admin-user-controls {
        display: none !important;
    }

    .admin-user-select {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: 34px;
        margin: 0;
        padding: 0 24px 0 9px;
        font-size: 12px;
        line-height: 34px;
        pointer-events: auto;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
    }

    .admin-map-pane {
        position: absolute !important;
        inset: 0 !important;
        width: auto;
        height: auto;
        border: 0;
    }

    .admin-summary {
        display: none !important;
    }

    .admin-map-tools {
        top: calc(env(safe-area-inset-top, 0px) + 25px);
        right: 46px;
        width: 160px;
        max-width: none;
        display: flex;
        flex-wrap: nowrap;
        gap: 2px;
        justify-content: flex-end;
    }

    .admin-refresh-toggle {
        width: 32px;
        flex: 0 0 32px;
        min-width: 32px;
        height: 34px;
        padding: 0;
    }

    .admin-refresh-toggle input {
        width: 18px;
        height: 18px;
    }

    .admin-refresh-toggle span {
        display: none;
    }

    .admin-map-tool {
        width: 30px;
        flex: 0 0 30px;
        min-width: 30px;
        height: 34px;
        padding: 0;
        font-size: 10.5px;
    }

    .admin-location-meta {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .admin-range-control {
        display: inline-flex;
        right: 10px;
        bottom: 56px;
    }

    .candidate-source-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.is-native-android-app #adminModal.modal {
    place-items: stretch;
    padding: 0;
}

.is-native-android-app .admin-modal-panel {
    width: 100vw;
    height: 100dvh;
    border: 0;
}

.is-native-android-app .admin-modal-panel .modal-header {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 25px);
    right: 8px;
    z-index: 32;
    width: 34px;
    height: 0;
    padding: 0;
    overflow: visible;
}

.is-native-android-app .admin-modal-panel .modal-close {
    width: 34px;
    height: 34px;
    font-size: 20px;
    background: rgba(17, 17, 19, 0.36);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.is-native-android-app .admin-body,
.is-native-android-app .admin-layout {
    padding: 0;
}

.is-native-android-app .admin-layout {
    position: absolute;
    inset: 0;
    display: block;
    height: 100%;
}

.is-native-android-app .admin-user-pane {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 25px);
    bottom: auto;
    left: 8px;
    right: 210px;
    z-index: 12;
    display: block;
    width: auto;
    max-width: none;
    min-width: 0;
    height: 34px;
    min-height: 0;
    border: 0;
    background: transparent;
    pointer-events: none;
}

.is-native-android-app .admin-pane-title,
.is-native-android-app .admin-api-panel,
.is-native-android-app .admin-user-list,
.is-native-android-app .admin-user-controls {
    display: none !important;
}

.is-native-android-app .admin-user-select {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 34px;
    margin: 0;
    padding: 0 24px 0 9px;
    font-size: 12px;
    line-height: 34px;
    pointer-events: auto;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.is-native-android-app .admin-map-pane {
    position: absolute !important;
    inset: 0 !important;
    width: auto;
    height: auto;
    border: 0;
    background: #050505;
}

.is-native-android-app .admin-summary {
    display: none !important;
}

.is-native-android-app .admin-map-tools {
    top: calc(env(safe-area-inset-top, 0px) + 25px);
    right: 46px;
    width: 160px;
    max-width: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    justify-content: flex-end;
}

.is-native-android-app .admin-refresh-toggle {
    width: 32px;
    flex: 0 0 32px;
    min-width: 32px;
    height: 34px;
    padding: 0;
}

.is-native-android-app .admin-refresh-toggle input {
    width: 18px;
    height: 18px;
}

.is-native-android-app .admin-refresh-toggle span {
    display: none;
}

.is-native-android-app .admin-map-tool {
    width: 30px;
    flex: 0 0 30px;
    min-width: 30px;
    height: 34px;
    padding: 0;
    font-size: 10.5px;
}

.is-native-android-app .admin-location-meta {
    left: 10px;
    right: 10px;
    bottom: 10px;
}

.is-native-android-app .admin-range-control {
    display: inline-flex;
    right: 10px;
    bottom: 56px;
}

body.is-admin-compact-layout .admin-modal-panel {
    --admin-mobile-edge: 8px;
    --admin-mobile-top: calc(env(safe-area-inset-top, 0px) + 25px);
    --admin-mobile-close-width: 34px;
    --admin-mobile-tools-width: 160px;
    --admin-mobile-row-gap: 4px;
}

body.is-admin-compact-layout #adminModal.modal {
    place-items: stretch;
    padding: 0;
}

body.is-admin-compact-layout .admin-layout {
    position: absolute;
    inset: 0;
    display: block;
    height: 100%;
    padding: 0;
}

body.is-admin-compact-layout .admin-modal-panel .modal-header {
    top: var(--admin-mobile-top) !important;
    right: var(--admin-mobile-edge) !important;
    z-index: 32;
    width: var(--admin-mobile-close-width);
}

body.is-admin-compact-layout .admin-modal-panel .modal-close {
    width: 34px;
    height: 34px;
    font-size: 20px;
    background: rgba(17, 17, 19, 0.36);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

body.is-admin-compact-layout .admin-user-pane {
    position: absolute;
    top: var(--admin-mobile-top);
    bottom: auto;
    left: var(--admin-mobile-edge);
    right: calc(var(--admin-mobile-edge) + var(--admin-mobile-close-width) + var(--admin-mobile-row-gap) + var(--admin-mobile-tools-width) + var(--admin-mobile-row-gap));
    z-index: 31;
    display: block;
    width: auto;
    max-width: none;
    min-width: 0;
    height: 34px;
    min-height: 0;
    border: 0;
    background: transparent;
    pointer-events: none;
}

body.is-admin-compact-layout .admin-pane-title,
body.is-admin-compact-layout .admin-api-panel,
body.is-admin-compact-layout .admin-user-list,
body.is-admin-compact-layout .admin-user-controls {
    display: none !important;
}

body.is-admin-compact-layout .admin-user-select {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 24px 0 9px;
    font-size: 12px;
    line-height: 34px;
    pointer-events: auto;
}

body.is-admin-compact-layout .admin-map-pane {
    position: absolute !important;
    inset: 0 !important;
    width: auto;
    height: auto;
    border: 0;
}

body.is-admin-compact-layout .admin-map-tools {
    top: var(--admin-mobile-top);
    right: calc(var(--admin-mobile-edge) + var(--admin-mobile-close-width) + var(--admin-mobile-row-gap));
    z-index: 30;
    width: var(--admin-mobile-tools-width);
    max-width: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    justify-content: flex-end;
}

body.is-admin-compact-layout .admin-refresh-toggle {
    width: 32px;
    flex: 0 0 32px;
    min-width: 32px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
}

body.is-admin-compact-layout .admin-refresh-toggle input {
    width: 18px;
    height: 18px;
}

body.is-admin-compact-layout .admin-refresh-toggle span {
    display: none;
}

body.is-admin-compact-layout .admin-map-tool {
    width: 30px;
    flex: 0 0 30px;
    min-width: 30px;
    height: 34px;
    padding: 0;
    font-size: 10.5px;
}

body.is-admin-compact-layout .admin-summary {
    display: none !important;
}

body.is-admin-compact-layout .admin-location-meta {
    left: var(--admin-mobile-edge);
    right: var(--admin-mobile-edge);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    z-index: 24;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.25;
    cursor: pointer;
}

body.is-admin-compact-layout .admin-range-control {
    display: inline-flex;
    right: var(--admin-mobile-edge);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 48px);
}

html.has-native-admin-map #adminModal .modal-backdrop,
html.has-native-admin-map #adminModal .admin-modal-panel,
html.has-native-admin-map #adminModal .admin-body,
html.has-native-admin-map #adminModal .admin-layout,
html.has-native-admin-map #adminModal .admin-map-pane,
html.has-native-admin-map #adminModal .admin-map-frame,
html.has-native-admin-map #adminModal .admin-map {
    background: transparent;
}

html.has-native-admin-map #adminModal .admin-map {
    touch-action: none;
}

html.has-native-admin-map body > .screen {
    visibility: hidden;
}

html.has-native-admin-map #adminModal .admin-map > * {
    visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .top-indicator {
        animation: none;
    }

    .segment,
    .arrival-line {
        transition: none;
    }
}
