@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/brand/montserrat-normal-latin.woff2') format('woff2');
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/brand/montserrat-normal-latin-ext.woff2') format('woff2');
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/brand/montserrat-italic-latin.woff2') format('woff2');
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/brand/montserrat-italic-latin-ext.woff2') format('woff2');
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    flex: none;
}
:root {
    --ink: #4a4a49;
    --muted: #626261;
    --green: #116f3d;
    --green-dark: #0b542e;
    --yellow: #fec923;
    --lime: var(--yellow);
    --paper: #f3f3f3;
    --border: #dededb;
    --danger: #a02d32;
    --amber: #946316;
    --radius: 12px;
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a,
input,
select,
textarea {
    outline-offset: 4px;
}
button {
    cursor: pointer;
}
button:disabled {
    opacity: 0.55;
    cursor: wait;
}
a {
    color: var(--green);
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1 {
    font-size: clamp(27px, 3vw, 36px);
    letter-spacing: -1.2px;
    font-weight: 650;
    line-height: 1.2;
}
h2 {
    font-size: 20px;
    letter-spacing: -0.45px;
}
h3 {
    font-size: 16px;
}
p {
    line-height: 1.6;
}
small,
.small {
    font-size: 12px;
    line-height: 1.6;
}
.muted {
    color: var(--muted);
}
.mono {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-size: 10px;
    font-weight: 750;
    color: var(--muted);
    margin-bottom: 12px;
}
.brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    color: inherit;
    text-decoration: none;
    flex-shrink: 0;
}
.brand-logo {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
}
.topbar-logo {
    display: none;
}
.brand small {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.4;
    color: white;
}
.skip-link {
    position: fixed;
    left: 16px;
    top: -60px;
    z-index: 100;
    background: white;
    padding: 12px;
}
.skip-link:focus {
    top: 16px;
}
.boot {
    min-height: 100vh;
    display: grid;
    place-content: center;
    gap: 20px;
    text-align: center;
}
.boot .brand-logo {
    margin: auto;
}
.shell {
    display: grid;
    grid-template-columns: 238px 1fr;
    min-height: 100vh;
}
.sidebar {
    background: #142e29;
    color: #e4eee8;
    padding: 34px 24px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.sidebar .brand {
    color: white;
}
.sidebar .brand small {
    color: #9fb7a9;
}
.nav-label {
    font-size: 9px;
    letter-spacing: 1.8px;
    font-weight: 750;
    color: #97b0a3;
    margin: 20px 12px 10px;
}
.sidebar nav {
    display: grid;
    gap: 5px;
}
.nav-item {
    border: 0;
    background: none;
    color: #b7cbc0;
    text-decoration: none;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 550;
}
.nav-item svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}
.nav-item:hover {
    background: #ffffff09;
    color: white;
}
.nav-item.active {
    background: #2b493e;
    color: var(--lime);
}
.sidebar-bottom {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #ffffff18;
    font-size: 11px;
    color: #94ad9f;
}
.sidebar-bottom strong {
    display: block;
    color: #d8e8dc;
    font-size: 12px;
    margin-bottom: 5px;
}
.main {
    min-width: 0;
}
.topbar {
    height: 80px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 42px;
    background: #ffffff90;
    gap: 12px;
}
.breadcrumb {
    font-size: 12px;
    color: var(--muted);
}
.top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.avatar {
    height: 34px;
    width: 34px;
    border-radius: 50%;
    background: #e0e9d7;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
}
.account-email {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}
.content {
    max-width: 1510px;
    margin: auto;
    padding: 36px 42px 54px;
}
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}
.page-heading h1 {
    margin: 0 0 8px;
}
.page-heading p {
    margin: 0;
    font-size: 13px;
}
.actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border);
    background: white;
    padding: 11px 17px;
    border-radius: 9px;
    color: var(--ink);
    text-decoration: none;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    min-height: 42px;
}
.btn:hover {
    background: #f0f5ed;
    border-color: #b6c5b5;
}
.btn.primary {
    background: var(--green);
    border-color: var(--green);
    color: white;
}
.btn.primary:hover {
    background: var(--green-dark);
}
.btn.danger {
    color: var(--danger);
    border-color: #efc9c8;
}
.btn.quiet {
    border-color: transparent;
    background: transparent;
    padding: 8px;
}
.btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}
.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}
.metric {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 21px 23px;
    position: relative;
}
.metric-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 550;
}
.metric-value {
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 12px 0 8px;
    font-weight: 600;
}
.metric-note {
    font-size: 11px;
    color: var(--muted);
}
.metric-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #71937c;
    width: 18px;
    height: 18px;
}
.columns {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
    gap: 22px;
}
.panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 22px;
}
.panel-head {
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #edf0e9;
}
.panel-head h2 {
    margin: 0;
    font-size: 16px;
}
.panel-body {
    padding: 24px;
}
.panel-head small {
    color: var(--muted);
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 650;
    padding: 5px 9px;
    background: #eef1eb;
    color: #637166;
    white-space: nowrap;
}
.badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}
.badge.good {
    color: #2a7753;
    background: #e9f4e9;
}
.badge.warn {
    color: #95661e;
    background: #fff4d9;
}
.badge.bad {
    color: #a4373a;
    background: #fbeceb;
}
.table-wrap {
    overflow-x: auto;
}
table {
    border-collapse: collapse;
    width: 100%;
    text-align: left;
    font-size: 12px;
}
th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--muted);
    font-weight: 550;
    background: #fafbf7;
}
th,
td {
    padding: 16px 23px;
    border-bottom: 1px solid #edf0e9;
    vertical-align: middle;
}
tr:last-child td {
    border-bottom: 0;
}
.device-name {
    display: flex;
    gap: 11px;
    align-items: center;
}
.device-glyph {
    width: 33px;
    height: 37px;
    border-radius: 8px;
    background: #edf2e6;
    display: grid;
    place-items: center;
    color: #5c815d;
}
.device-name strong {
    font-size: 12px;
    display: block;
    margin-bottom: 4px;
}
.device-name small {
    color: var(--muted);
    font-size: 10px;
}
.text-button {
    border: 0;
    background: none;
    padding: 0;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}
.text-button:hover strong {
    text-decoration: underline;
}
.filters {
    padding: 15px 24px;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}
.filters input {
    max-width: 320px;
}
.empty {
    padding: 52px 24px;
    text-align: center;
}
.empty .empty-symbol {
    color: #71937c;
    display: block;
    font-size: 32px;
    margin-bottom: 18px;
}
.empty h3 {
    font-size: 16px;
    margin-bottom: 8px;
}
.empty p {
    font-size: 13px;
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto 20px;
}
.notice {
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid #dce5ca;
    background: #f3f7e9;
    color: #566846;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 22px;
}
.notice.warn {
    background: #fff7e4;
    border-color: #efdfb5;
    color: #80601f;
}
.notice.error {
    background: #fff0ef;
    border-color: #f0cecb;
    color: var(--danger);
}
.notice.info {
    background: #eef4f7;
    border-color: #d4e3e9;
    color: #466370;
}
.details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px;
}
.detail-item span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 7px;
}
.detail-item strong {
    font-size: 13px;
    font-weight: 550;
    overflow-wrap: anywhere;
}
.status-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0e9;
    font-size: 12px;
}
.status-line:last-child {
    border-bottom: 0;
}
.progress {
    height: 6px;
    background: #edf1e6;
    border-radius: 8px;
    overflow: hidden;
    margin: 16px 0;
}
.progress i {
    display: block;
    height: 100%;
    background: var(--green);
}
.plan-price {
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -1px;
    margin: 16px 0 6px;
}
.plan-price small {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0;
    font-weight: 400;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.map {
    height: 380px;
    position: relative;
    overflow: hidden;
    background: #e8ede2;
    touch-action: none;
    border-radius: 0 0 var(--radius) var(--radius);
}
.map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(#c9d5c780 1px, transparent 1px),
        linear-gradient(90deg, #c9d5c780 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.map-tile {
    position: absolute;
    width: 256px;
    height: 256px;
    user-select: none;
    pointer-events: none;
}
.map-marker {
    position: absolute;
    z-index: 2;
    border: 3px solid white;
    background: var(--green);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 1px 6px #0003;
    transform: translate(-50%, -50%);
    padding: 0;
}
.map-marker.stale {
    background: #9b742e;
}
.map-popup {
    position: absolute;
    z-index: 5;
    width: 260px;
    max-width: calc(100% - 16px);
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 20px #0003;
    display: grid;
    gap: 9px;
    overflow-wrap: anywhere;
}
.map-popup[hidden] {
    display: none;
}
.map-marker span {
    position: absolute;
    top: 23px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: white;
    border-radius: 5px;
    padding: 3px 7px;
    font-size: 10px;
    box-shadow: 0 1px 4px #0002;
}
.map-controls {
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 4;
    display: grid;
    gap: 5px;
}
.map-controls button {
    background: white;
    border: 1px solid var(--border);
    width: 34px;
    height: 34px;
    border-radius: 7px;
    font-size: 20px;
}
.map-info {
    position: absolute;
    left: 15px;
    bottom: 30px;
    right: 65px;
    z-index: 4;
    background: #fffffff2;
    padding: 10px 13px;
    border-radius: 8px;
    font-size: 11px;
    max-width: 400px;
}
.map-attribution {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 4;
    background: #fffffff0;
    padding: 4px 8px;
    font-size: 9px;
}
.map-message {
    position: absolute;
    left: 0;
    right: 0;
    top: 45%;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}
.map-legend {
    display: flex;
    gap: 18px;
    padding: 12px 24px;
    font-size: 10px;
    background: #fafbf7;
    color: var(--muted);
}
.map-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    margin-right: 5px;
}
.map-dot.stale {
    background: #9b742e;
}
.footer {
    font-size: 10px;
    color: #839085;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.field {
    display: grid;
    gap: 7px;
    font-size: 12px;
    color: var(--ink);
}
.field.full {
    grid-column: 1/-1;
}
.field label {
    font-weight: 600;
}
.field small {
    color: var(--muted);
    font-size: 10px;
}
input,
select,
textarea {
    border: 1px solid #cfdacc;
    border-radius: 8px;
    padding: 11px 12px;
    background: white;
    color: var(--ink);
    width: 100%;
    font-size: 13px;
    min-height: 42px;
}
input:focus,
select:focus,
textarea:focus {
    border-color: var(--green);
    outline: 2px solid #b9d8bd;
}
textarea {
    resize: vertical;
    min-height: 85px;
}
.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.checkbox input {
    width: 16px;
    min-height: 16px;
    accent-color: var(--green);
}
form .actions {
    margin-top: 22px;
}
.form-error {
    color: var(--danger);
    font-size: 12px;
    line-height: 1.5;
    margin-top: 15px;
}
.auth {
    display: grid;
    grid-template-columns: minmax(380px, 1.05fr) 1fr;
    min-height: 100vh;
    background: white;
}
.auth-story {
    background: #142e29;
    color: white;
    padding: 50px 70px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.auth-story::after {
    content: '';
    width: 800px;
    height: 800px;
    border: 1px solid #ffffff09;
    position: absolute;
    bottom: -490px;
    left: -250px;
    border-radius: 50%;
    box-shadow:
        0 0 0 60px #ffffff03,
        0 0 0 120px #ffffff03,
        0 0 0 180px #ffffff03;
    pointer-events: none;
}
.auth-story .brand {
    color: white;
}
.auth-story .brand small {
    color: #b7ccba;
}
.auth-copy {
    margin: auto 0;
    position: relative;
    z-index: 1;
    padding: 70px 0;
}
.auth-copy .eyebrow {
    color: var(--lime);
}
.auth-copy h1 {
    font-size: clamp(38px, 4vw, 59px);
    font-weight: 500;
    letter-spacing: -2px;
    max-width: 560px;
    line-height: 1.08;
}
.auth-copy h1 em {
    font-style: normal;
    color: var(--lime);
}
.auth-copy p {
    max-width: 400px;
    color: #b6cabd;
    font-size: 14px;
    margin: 26px 0;
}
.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #e1eadf;
    margin: 16px 0;
}
.auth-feature svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: var(--lime);
    stroke-width: 1.5;
}
.auth-bottom {
    font-size: 10px;
    color: #8da994;
    position: relative;
    z-index: 1;
}
.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}
.auth-card {
    width: 100%;
    max-width: 390px;
}
.auth-card h2 {
    font-size: 29px;
    letter-spacing: -1px;
    margin-bottom: 12px;
}
.auth-card > p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 30px;
}
.auth-card form {
    display: grid;
    gap: 17px;
}
.auth-card form .actions {
    margin-top: 0;
}
.auth-card .btn.primary {
    width: 100%;
}
.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 11px;
    margin: 20px 0;
}
.auth-meta {
    font-size: 10px;
    color: #879486;
    line-height: 1.8;
    margin-top: 35px;
}
.link-button {
    border: 0;
    background: none;
    color: var(--green);
    font: inherit;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 13px 22px;
    background: var(--green-dark);
    color: white;
    border-radius: 10px;
    font-size: 12px;
    box-shadow: 0 5px 20px #0002;
    z-index: 100;
    max-width: 90vw;
}
.toast.error {
    background: #8b3234;
}
dialog {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    width: min(550px, calc(100% - 32px));
    max-height: 90vh;
    color: var(--ink);
    box-shadow: 0 20px 100px #0003;
}
dialog::backdrop {
    background: #10271db3;
}
dialog h2 {
    font-size: 22px;
    margin-bottom: 10px;
}
dialog p {
    font-size: 12px;
    color: var(--muted);
}
dialog .dialog-close {
    float: right;
}
.code-display {
    display: block;
    background: #f1f5ed;
    padding: 14px;
    border-radius: 8px;
    word-break: break-all;
    font:
        13px ui-monospace,
        monospace;
    margin: 12px 0;
}
.menu-toggle {
    display: none;
}
.loading {
    padding: 55px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}
.loading::before {
    content: '';
    display: block;
    width: 26px;
    height: 26px;
    border: 3px solid var(--border);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 18px;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
@media (max-width: 1100px) {
    .content {
        padding: 28px;
    }
    .topbar {
        padding: 0 28px;
    }
    .columns {
        grid-template-columns: 1fr;
    }
    .auth-story {
        padding: 40px;
    }
    .shell {
        grid-template-columns: 205px 1fr;
    }
    .sidebar {
        padding: 28px 16px;
    }
    .metrics {
        gap: 10px;
    }
    .metric {
        padding: 18px;
    }
    .metric-value {
        font-size: 29px;
    }
}
@media (max-width: 760px) {
    .shell {
        display: block;
    }
    .sidebar {
        position: fixed;
        z-index: 20;
        width: 238px;
        left: -238px;
        transition: left 0.2s;
        box-shadow: 0 0 40px #0003;
    }
    .shell.menu-open .sidebar {
        left: 0;
    }
    .topbar {
        height: 66px;
        padding: 0 18px;
    }
    .menu-toggle {
        display: inline-flex;
    }
    .account-email {
        display: none;
    }
    .content {
        padding: 25px 18px;
    }
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .metric {
        padding: 18px;
    }
    .metric-value {
        font-size: 29px;
    }
    .metric-icon {
        display: none;
    }
    .columns {
        gap: 0;
    }
    .details,
    .form-grid {
        grid-template-columns: 1fr;
    }
    .field.full {
        grid-column: auto;
    }
    .panel-head,
    .panel-body {
        padding: 19px;
    }
    .filters {
        padding: 14px 19px;
        flex-wrap: wrap;
    }
    .filters input {
        max-width: none;
    }
    th,
    td {
        padding: 14px 18px;
    }
    .auth {
        display: block;
    }
    .auth-story {
        padding: 25px 30px;
        min-height: 200px;
    }
    .auth-copy {
        padding: 35px 0 10px;
    }
    .auth-copy h1 {
        font-size: 32px;
        max-width: 400px;
    }
    .auth-copy p,
    .auth-feature,
    .auth-bottom {
        display: none;
    }
    .auth-main {
        padding: 35px 25px;
    }
    .auth-card {
        max-width: 460px;
    }
    .map {
        height: 340px;
    }
    .footer {
        line-height: 1.7;
    }
    .top-actions {
        gap: 7px;
    }
    .panel-head .actions {
        gap: 5px;
    }
    .map-info {
        max-width: 240px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

.map.has-background {
    background: #d5d6d7;
}
.map-backgrounds {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
    display: flex;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--border);
    background: #fffffff5;
    border-radius: 9px;
    box-shadow: 0 1px 5px #0001;
}
.map-backgrounds .btn {
    padding: 7px 12px;
    min-height: 32px;
    border-radius: 6px;
    font-size: 11px;
}
.map-backgrounds [aria-pressed='true'] {
    background: var(--green);
    color: white;
}
.map-attribution {
    max-width: 100%;
    line-height: 1.45;
}
.satellite-background .map-info {
    bottom: 48px;
    max-width: 510px;
}
@media (max-width: 760px) {
    .satellite-background .map-info {
        bottom: 68px;
        right: 15px;
        max-width: 100%;
        font-size: 10px;
    }
    .satellite-background .map-attribution {
        font-size: 8px;
    }
}

/* Fortron institutional palette and typography from tech.fortron.ag. */
.boot {
    background: var(--green);
    color: white;
}
.boot .brand-logo {
    width: 280px;
}
.sidebar {
    background: var(--green);
    color: white;
    border-right: 1px solid #ffffff1a;
}
.sidebar .brand {
    margin: 3px 0 9px;
}
.sidebar .brand small {
    color: white;
}
.nav-label {
    color: #e5eddf;
    font-weight: 700;
    font-size: 10px;
}
.nav-item {
    color: #fff;
    font-size: 12px;
    border-radius: 12px;
    padding: 13px 14px;
    line-height: 1.4;
}
.nav-item:hover {
    background: #ffffff16;
    color: white;
}
.nav-item.active {
    background: var(--yellow);
    color: #353535;
    font-weight: 700;
}
.sidebar-bottom {
    border-color: #ffffff38;
    color: #e5eddf;
}
.sidebar-bottom strong {
    color: white;
}
.topbar {
    background: var(--green);
    color: white;
    border-color: #ffffff26;
}
.topbar .breadcrumb,
.topbar .account-email {
    color: white;
}
.topbar .badge {
    background: var(--yellow);
    color: #353535;
}
.topbar .avatar {
    background: #fff;
    color: var(--green);
}
.topbar .btn.quiet {
    color: white;
}
.topbar .btn.quiet:hover {
    background: #ffffff16;
}
.content {
    padding-top: 36px;
}
.page-heading h1 {
    font-style: italic;
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 1.2;
}
.eyebrow {
    font-weight: 700;
    letter-spacing: 1px;
}
.panel,
.metric {
    border-radius: 12px;
}
.panel-head h2 {
    font-weight: 650;
    letter-spacing: -0.4px;
}
.metric-value {
    font-weight: 600;
    color: var(--green);
}
.metric-icon {
    color: var(--green);
}
.btn {
    border-radius: 100px;
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    max-width: 100%;
}
.btn.primary {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #353535;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: normal;
    text-align: center;
}
.btn.primary:hover {
    background: #fdc72c;
    border-color: #fdc72c;
    color: #353535;
}
.btn.quiet {
    padding: 9px 12px;
}
.btn:focus-visible,
a:focus-visible {
    outline: 3px solid var(--green);
}
.sidebar a:focus-visible,
.topbar button:focus-visible {
    outline-color: var(--yellow);
}
.auth {
    background: #fdfdfd;
}
.auth-story {
    background: #353535;
    padding: 44px 60px;
}
.auth-story::after {
    display: none;
}
.auth-story .brand {
    background: var(--green);
    margin: -44px -60px 0;
    padding: 35px 60px;
    align-self: stretch;
}
.auth-story .brand-logo {
    width: 245px;
}
.auth-story .brand small {
    color: white;
}
.auth-copy .eyebrow {
    color: var(--yellow);
}
.auth-copy h1 {
    font-style: italic;
    font-weight: 400;
    font-size: clamp(38px, 4vw, 59px);
    letter-spacing: -1.7px;
    line-height: 1.15;
}
.auth-copy h1 em {
    font-style: italic;
    font-weight: 800;
    color: var(--yellow);
}
.auth-copy p {
    color: #eee;
    font-size: 14px;
}
.auth-feature {
    color: white;
}
.auth-feature svg {
    stroke: var(--yellow);
}
.auth-bottom {
    color: #dededb;
}
.auth-card h2 {
    font-style: italic;
    font-weight: 600;
    letter-spacing: -0.9px;
}
.auth-meta {
    color: #626261;
}
.notice {
    border-radius: 12px;
}
.notice.info {
    background: #edf5ee;
    border-color: #d1dfd1;
    color: #36523d;
}
.filters {
    background: #fdfdfd;
}
th {
    background: #f3f3f3;
    color: #626261;
}
.device-glyph {
    color: var(--green);
    background: #edf4ed;
}
input,
select,
textarea {
    border-color: #d2d2ce;
    border-radius: 6px;
}
input:focus,
select:focus,
textarea:focus {
    border-color: var(--green);
    outline-color: #bad3c2;
}
.toast {
    background: var(--green);
    border-radius: 12px;
}
.map-backgrounds .btn {
    border-radius: 6px;
    text-transform: none;
    letter-spacing: 0;
    padding: 7px 12px;
    min-height: 32px;
}
@media (max-width: 1100px) {
    .auth-story {
        padding: 36px;
    }
    .auth-story .brand {
        margin: -36px -36px 0;
        padding: 28px 36px;
    }
}
@media (max-width: 760px) {
    .content {
        padding-top: 25px;
    }
    .topbar .btn {
        padding: 9px 10px;
    }
    .auth-story {
        padding: 0 25px 24px;
        background: #353535;
    }
    .auth-story .brand {
        margin: 0 -25px;
        padding: 24px 25px;
    }
    .auth-story .brand-logo {
        width: 195px;
    }
    .auth-copy {
        padding-top: 28px;
    }
    .auth-copy h1 {
        font-size: 31px;
        letter-spacing: -0.8px;
        max-width: 400px;
    }
    .auth-main {
        padding: 34px 25px;
    }
    .page-heading h1 {
        font-size: 29px;
    }
    .btn.primary {
        font-size: 10px;
    }
    .sidebar .brand-logo {
        width: 190px;
    }
}

@media (max-width: 760px) {
    .topbar-logo {
        display: block;
        width: 125px;
        height: auto;
    }
    .topbar .breadcrumb,
    .topbar .avatar {
        display: none;
    }
    .topbar .menu-toggle {
        font-size: 0;
        width: 42px;
        height: 42px;
        padding: 10px;
    }
    .topbar .menu-toggle svg {
        width: 20px;
        height: 20px;
    }
    .topbar .actions {
        gap: 10px;
    }
}

@media (max-width: 760px) {
    .topbar {
        gap: 8px;
    }
    .topbar > .actions {
        flex-wrap: nowrap;
        flex: 0 0 auto;
        gap: 8px;
    }
    .topbar-logo {
        width: 110px;
        flex-shrink: 0;
    }
    .topbar .top-actions {
        gap: 5px;
        flex-wrap: nowrap;
        flex: 0 0 auto;
    }
    .topbar .badge {
        font-size: 9px;
        padding: 5px 8px;
        gap: 4px;
    }
}
