:root {
    --ink: #172830;
    --navy: #18333f;
    --navy-soft: #274956;
    --fog: #edf2f2;
    --paper: #f9fbfa;
    --steel: #4a7280;
    --amber: #b8751c;
    --red: #a83e46;
    --green: #28735b;
    --line: #ccd7d8;
    --muted: #5f7076;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--fog);
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

button,
a,
input,
select {
    outline-offset: 4px;
}

:focus-visible {
    outline: 3px solid var(--amber);
}

[hidden] {
    display: none !important;
}

.fleet-shell {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    min-height: 100vh;
}

.fleet-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 30px 24px;
    color: #eef5f3;
    background: var(--navy);
}

.fleet-brand {
    display: inline-flex;
    flex-direction: column;
    margin-bottom: 48px;
    text-decoration: none;
}

.fleet-brand strong {
    font-size: 30px;
    font-weight: 650;
    letter-spacing: -1px;
}

.fleet-brand span {
    margin-top: 2px;
    color: #a9c0c4;
    font-size: 15px;
}

.fleet-nav {
    display: grid;
    gap: 6px;
}

.fleet-nav a {
    padding: 10px 0;
    color: #c6d7d9;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.fleet-nav a:hover {
    color: #fff;
    border-color: #6c8b94;
}

.fleet-sidebar__footer {
    margin-top: auto;
    padding-top: 32px;
    color: #a9c0c4;
    font-size: 13px;
    line-height: 1.6;
}

.fleet-sidebar__footer a {
    display: inline-block;
    margin-top: 8px;
    color: #eef5f3;
}

.fleet-main {
    width: 100%;
    min-width: 0;
    max-width: 1540px;
    padding: 24px 38px 56px;
}

.fleet-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
    border-bottom: 1px solid var(--line);
}

.fleet-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin: 36px 0 28px;
}

.fleet-heading h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -1.6px;
    line-height: 1.05;
}

.fleet-heading p {
    max-width: 58ch;
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.fleet-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.fleet-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 17px;
    color: #fff;
    background: var(--navy);
    border: 1px solid var(--navy);
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.fleet-button:hover {
    background: var(--navy-soft);
}

.fleet-button--quiet {
    color: var(--navy);
    background: transparent;
    border-color: var(--line);
}

.fleet-button--quiet:hover {
    background: #fff;
}

.fleet-button--small {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 13px;
}

.fleet-button--danger {
    color: var(--red);
    background: transparent;
    border-color: #d8bfc1;
}

.fleet-flashes {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.fleet-flash {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: var(--paper);
    border-left: 4px solid var(--green);
}

.fleet-flash--error {
    border-color: var(--red);
}

.fleet-flash button {
    padding: 0 4px;
    color: var(--muted);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.fleet-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    color: #55380e;
    background: #f5e8cf;
    border-left: 4px solid var(--amber);
}

.fleet-notice--healthy {
    color: #164b3b;
    background: #dcece5;
    border-color: var(--green);
}

.fleet-notice strong {
    font-weight: 650;
}

.fleet-notice span {
    color: inherit;
    opacity: .8;
}

.fleet-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 30px 0 42px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.fleet-metric {
    padding: 0 22px;
    border-right: 1px solid var(--line);
}

.fleet-metric:first-child {
    padding-left: 0;
}

.fleet-metric:last-child {
    border-right: 0;
}

.fleet-metric span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 14px;
}

.fleet-metric strong {
    font-size: clamp(23px, 2.5vw, 32px);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.fleet-metric small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.fleet-section {
    min-width: 0;
    margin-top: 44px;
    scroll-margin-top: 20px;
}

.fleet-section__heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 16px;
}

.fleet-section h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -.5px;
}

.fleet-section__heading p,
.fleet-section__note {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.fleet-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    background: var(--paper);
    border-top: 2px solid var(--navy);
}

.fleet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.fleet-table th {
    padding: 13px 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.fleet-table td {
    padding: 16px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #e1e7e7;
}

.fleet-table tbody tr:last-child td {
    border-bottom: 0;
}

.fleet-table tbody tr:hover {
    background: #f1f5f4;
}

.fleet-table strong,
.fleet-table small {
    display: block;
}

.fleet-table small {
    margin-top: 5px;
    color: var(--muted);
}

.fleet-id {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.fleet-table td:nth-child(3) .fleet-id {
    white-space: nowrap;
}

.fleet-country {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 7px 8px;
    color: var(--navy);
    font-weight: 700;
    background: #e0e9e9;
    border-radius: 3px;
}

.fleet-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.fleet-status::before {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    content: "";
}

.fleet-status--warning::before {
    background: var(--amber);
}

.fleet-status--danger::before {
    background: var(--red);
}

.fleet-status--muted::before {
    background: #8a999d;
}

.fleet-filters {
    display: flex;
    gap: 10px;
}

.fleet-filters input {
    width: min(280px, 32vw);
}

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

.fleet-field label {
    color: var(--muted);
    font-size: 14px;
}

.fleet-field input,
.fleet-field select,
.fleet-filters input,
.fleet-filters select {
    min-height: 42px;
    padding: 9px 11px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.fleet-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.fleet-action {
    padding: 22px;
    background: var(--paper);
    border-left: 3px solid var(--steel);
}

.fleet-action h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.fleet-action p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.55;
}

.fleet-action form {
    display: grid;
    gap: 14px;
}

.fleet-budget {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 26px;
    background: var(--paper);
}

.fleet-budget form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.fleet-budget .fleet-button {
    justify-self: start;
}

.budget-gauge {
    position: relative;
    text-align: center;
}

.budget-gauge svg {
    display: block;
    width: 100%;
    max-width: 220px;
    margin: auto;
}

.budget-gauge__track,
.budget-gauge__value {
    fill: none;
    stroke-width: 12;
}

.budget-gauge__track {
    stroke: #dce5e4;
}

.budget-gauge__value {
    stroke: var(--steel);
    stroke-linecap: round;
}

.budget-gauge__value.is-over {
    stroke: var(--red);
}

.budget-gauge__reading {
    position: absolute;
    top: 43px;
    left: 50%;
    transform: translateX(-50%);
}

.budget-gauge__reading strong,
.budget-gauge__reading span {
    display: block;
}

.budget-gauge__reading strong {
    font-size: 30px;
    font-weight: 600;
}

.budget-gauge__reading span {
    color: var(--muted);
    font-size: 13px;
}

.budget-gauge p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.fleet-incidents {
    display: grid;
    gap: 12px;
}

.fleet-incident {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    padding: 18px 20px;
    background: #f8eeee;
    border-left: 3px solid var(--red);
}

.fleet-incident h3 {
    margin: 0 0 7px;
    font-size: 16px;
}

.fleet-incident p {
    max-width: 100ch;
    margin: 0;
    color: #6b5154;
    line-height: 1.55;
}

.fleet-incident small {
    display: block;
    margin-top: 9px;
    color: var(--muted);
}

.fleet-empty {
    padding: 24px;
    color: var(--muted);
    background: var(--paper);
    border-left: 3px solid var(--line);
}

.fleet-command {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--steel);
}

@media (max-width: 1050px) {
    .fleet-shell {
        grid-template-columns: 1fr;
    }

    .fleet-sidebar {
        min-height: auto;
        padding: 18px 24px;
    }

    .fleet-brand {
        margin-bottom: 16px;
    }

    .fleet-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }

    .fleet-nav a {
        padding: 5px 0;
    }

    .fleet-sidebar__footer {
        display: none;
    }

    .fleet-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 22px;
    }

    .fleet-metric:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 720px) {
    .fleet-main {
        padding: 18px 18px 40px;
    }

    .fleet-heading,
    .fleet-section__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .fleet-metrics,
    .fleet-action-grid,
    .fleet-budget,
    .fleet-budget form {
        grid-template-columns: 1fr;
    }

    .fleet-metric {
        padding: 0 0 16px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .fleet-metric:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .fleet-filters,
    .fleet-filters input {
        width: 100%;
    }

    .fleet-filters {
        flex-direction: column;
    }

    .fleet-incident {
        grid-template-columns: 1fr;
    }
}


.fleet-session {
    display: flex;
    align-items: center;
    gap: 18px;
}

.fleet-session form {
    margin: 0;
}

.fleet-session button {
    padding: 3px 0;
    color: var(--navy);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
}

.fleet-session button:hover {
    border-color: var(--navy);
}

.public-body {
    color: #f3f6f3;
    background: #132b35;
}

.public-frame {
    display: flex;
    flex-direction: column;
    width: min(100%, 1800px);
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding: 30px clamp(22px, 4vw, 68px) 54px;
}

.public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.public-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #f3f6f3;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -.03em;
    text-decoration: none;
    border: 1px solid #557079;
    border-radius: 50%;
}

.public-mark:hover {
    border-color: #d4a054;
}

.public-access {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #b7c8cb;
    font-size: 14px;
}

.public-access > span {
    width: 7px;
    height: 7px;
    background: #83ad96;
    border-radius: 50%;
}

.public-hero {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: clamp(40px, 7vw, 120px);
    align-items: center;
    padding: 70px 0 40px;
}

.public-name h1 {
    margin: 0;
    color: #f3f6f3;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: clamp(72px, 11.5vw, 176px);
    font-weight: 400;
    letter-spacing: -.065em;
    line-height: .84;
}

.public-entry {
    max-width: 420px;
    padding-left: clamp(24px, 3vw, 48px);
    border-left: 1px solid #49636c;
}

.public-entry h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 550;
    letter-spacing: -.035em;
}

.public-entry > p {
    margin: 12px 0 30px;
    color: #b7c8cb;
    line-height: 1.6;
}

.public-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 52px;
    padding: 13px 24px;
    color: #132b35;
    background: #d4a054;
    border: 1px solid #d4a054;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

.public-action:hover {
    color: #132b35;
    background: #edbc76;
    border-color: #edbc76;
}

.public-hero--login .public-name h1 {
    font-size: clamp(68px, 10vw, 150px);
}

.public-error {
    margin: 0 0 22px;
    padding: 13px 15px;
    color: #f5dddd;
    background: #493239;
    border-left: 3px solid #d88783;
    font-size: 14px;
    line-height: 1.5;
}

.public-form {
    display: grid;
    gap: 20px;
}

.public-field {
    display: grid;
    gap: 8px;
}

.public-field label {
    color: #c7d4d6;
    font-size: 14px;
}

.public-field input {
    width: 100%;
    min-height: 50px;
    padding: 11px 13px;
    color: #f3f6f3;
    background: #1b3944;
    border: 1px solid #557079;
    border-radius: 3px;
}

.public-field input:focus {
    border-color: #d4a054;
}

.public-form .public-action {
    margin-top: 4px;
}

.public-back {
    display: inline-block;
    margin-top: 26px;
    color: #b7c8cb;
    font-size: 14px;
    text-underline-offset: 4px;
}

.public-back:hover {
    color: #f3f6f3;
}

@media (max-width: 820px) {
    .public-frame {
        padding-bottom: 36px;
    }

    .public-hero {
        grid-template-columns: 1fr;
        gap: 52px;
        align-content: center;
        padding: 56px 0 30px;
    }

    .public-name h1 {
        font-size: clamp(64px, 19vw, 112px);
    }

    .public-hero--login .public-name h1 {
        font-size: clamp(60px, 17vw, 96px);
    }

    .public-entry {
        max-width: 520px;
    }
}

@media (max-width: 480px) {
    .public-access {
        font-size: 12px;
    }

    .public-entry {
        padding-left: 20px;
    }

    .public-action {
        width: 100%;
    }
}

