:root {
    --bg: #071433;
    --bg-2: #0b1d49;
    --surface: rgba(15, 37, 83, .78);
    --surface-soft: rgba(255, 255, 255, .07);
    --surface-strong: rgba(255, 255, 255, .12);
    --panel: var(--surface);
    --panel-strong: rgba(12, 31, 72, .94);
    --text: #f8fbff;
    --muted: #9fb8da;
    --line: rgba(126, 211, 255, .20);
    --shadow: 0 24px 64px rgba(0, 8, 31, .30);

    --blue: #36b7ef;
    --cyan: #6bdcff;
    --violet: #7aa7ff;
    --green: #5ee6b5;
    --orange: #f59e0b;
    --red: #fb7185;

    --一区: linear-gradient(135deg, #8fe7ff, #36b7ef);
    --二区: linear-gradient(135deg, #b7c7ff, #6d8cff);
    --三区: linear-gradient(135deg, #9ff4d0, #38d4aa);
    --特殊: linear-gradient(135deg, #ffd166, #fb7185);
}

/* ===== Data import management ===== */
.data-import-hero {
    min-height: 280px;
}

.data-import-metrics {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.data-import-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
    gap: 20px;
    margin-top: 22px;
    align-items: start;
}

.data-import-form-panel,
.data-import-guidance-panel {
    padding: 22px;
}

.data-import-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.data-import-form > label:not(.data-import-file-picker, .data-import-dry-run) {
    color: var(--muted);
    font-size: 12px;
}

.data-import-form select,
.data-import-history-actions select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(126, 211, 255, .24);
    border-radius: 10px;
    color: #ffffff;
    background: rgba(7, 20, 51, .78);
    font: inherit;
}

.data-import-help {
    min-height: 20px;
    color: #a9c3e5;
    font-size: 12px;
    line-height: 1.65;
}

.data-import-file-picker {
    display: grid;
    gap: 7px;
    min-height: 116px;
    padding: 24px;
    place-content: center;
    text-align: center;
    cursor: pointer;
    border: 1px dashed rgba(107, 220, 255, .46);
    border-radius: 14px;
    color: #e8f8ff;
    background: linear-gradient(135deg, rgba(54,183,239,.12), rgba(255,255,255,.04));
}

.data-import-file-picker:hover {
    border-color: rgba(107, 220, 255, .8);
    background: linear-gradient(135deg, rgba(54,183,239,.20), rgba(255,255,255,.06));
}

.data-import-file-picker span {
    color: var(--muted);
    font-size: 12px;
}

#importFiles {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.data-import-dry-run {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px;
    border: 1px solid rgba(126, 211, 255, .16);
    border-radius: 11px;
    background: rgba(255,255,255,.04);
    cursor: pointer;
}

.data-import-dry-run input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.data-import-dry-run span {
    display: grid;
    gap: 4px;
}

.data-import-dry-run small,
.data-import-guidance {
    color: var(--muted);
}

.data-import-guidance {
    display: grid;
    gap: 16px;
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.75;
}

.data-import-guidance strong {
    color: #dff7ff;
}

.data-import-message {
    min-height: 20px;
    color: var(--muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.data-import-message.is-error {
    color: #ffb4c0;
}

.data-import-message.is-success {
    color: var(--green);
}

.data-import-history-toolbar,
.data-import-history-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.data-import-history-actions select {
    width: 150px;
}

.data-import-table td {
    vertical-align: middle;
}

.data-import-file-cell {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.import-dry-run-tag {
    display: block;
    margin-top: 5px;
    color: var(--orange);
    font-size: 10px;
}

.import-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid rgba(255,255,255,.12);
}

.import-status-queued {
    color: #d8e8ff;
    background: rgba(122,167,255,.12);
}

.import-status-running {
    color: #c8f3ff;
    background: rgba(54,183,239,.15);
}

.import-status-succeeded {
    color: #caffec;
    background: rgba(94,230,181,.13);
}

.import-status-failed,
.import-status-cancelled {
    color: #ffd9df;
    background: rgba(251,113,133,.13);
}

.import-progress {
    width: 92px;
    height: 7px;
    margin-bottom: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
}

.import-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--green));
}

.import-job-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.import-job-action {
    padding: 6px 9px;
    border: 1px solid rgba(126,211,255,.22);
    border-radius: 8px;
    color: #dff7ff;
    background: rgba(54,183,239,.10);
    cursor: pointer;
}

.import-job-action.is-danger {
    color: #ffd9df;
    border-color: rgba(251,113,133,.24);
    background: rgba(251,113,133,.10);
}

.import-job-action:disabled {
    opacity: .55;
    cursor: wait;
}

.import-job-dialog {
    width: min(820px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 0;
    border: 1px solid rgba(126,211,255,.28);
    border-radius: 16px;
    color: var(--text);
    background: #0a1c47;
    box-shadow: 0 32px 90px rgba(0,0,0,.55);
}

.import-job-dialog::backdrop {
    background: rgba(0, 8, 31, .72);
    backdrop-filter: blur(6px);
}

.import-job-dialog-card {
    padding: 22px;
}

.import-job-detail-content {
    max-height: 60vh;
    overflow: auto;
    margin: 18px 0 0;
    padding: 16px;
    border: 1px solid rgba(126,211,255,.16);
    border-radius: 11px;
    color: #d7ebff;
    background: rgba(0,8,31,.46);
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .data-import-layout,
    .data-import-metrics {
        grid-template-columns: 1fr;
    }

    .data-import-history-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
            linear-gradient(115deg, rgba(44, 190, 232, .14) 0%, transparent 34%),
            linear-gradient(245deg, rgba(255, 255, 255, .08) 0%, transparent 28%),
            linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 42%, #10255b 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.page {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 26px;
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    min-height: 312px;
    border-radius: 18px;
    padding: 38px;
    color: #fff;
    border: 1px solid rgba(126, 211, 255, .26);
    background:
            repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 72px),
            repeating-linear-gradient(0deg, rgba(255,255,255,.026) 0 1px, transparent 1px 72px),
            linear-gradient(135deg, rgba(10, 31, 79, .96), rgba(11, 45, 104, .92) 48%, rgba(7, 20, 51, .98));
    box-shadow: 0 30px 90px rgba(0, 7, 28, .42), inset 0 1px 0 rgba(255,255,255,.12);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
            linear-gradient(115deg, transparent 0 58%, rgba(70, 201, 242, .18) 58.2%, transparent 70%),
            linear-gradient(135deg, rgba(255,255,255,.10), transparent 28%);
}

.hero::after {
    content: "";
    position: absolute;
    right: 34px;
    bottom: 34px;
    width: 160px;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(108, 217, 255, .95), transparent);
}

.hero-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
    position: relative;
    z-index: 1;
}

.title {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 0;
    text-shadow: 0 12px 40px rgba(0, 0, 0, .26);
}

.subtitle {
    margin: 0;
    max-width: 760px;
    line-height: 1.75;
    color: #c5d9f4;
    font-size: 15px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #dff7ff;
    background: rgba(7, 20, 51, .56);
    border: 1px solid rgba(126, 211, 255, .28);
    font-size: 13px;
    backdrop-filter: blur(12px);
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 26px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.metric {
    min-height: 114px;
    padding: 22px 20px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.055)), rgba(7, 20, 51, .64);
    border: 1px solid rgba(126, 211, 255, .18);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0, 8, 31, .22);
}

.metric-label {
    font-size: 13px;
    color: #94abc8;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0;
}

.metric-value-date {
    font-size: 22px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 22px;
    margin-top: 22px;
    align-items: start;
}

.panel {
    background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.06)), var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    border-radius: 16px;
}

.side-panel {
    padding: 22px;
    position: sticky;
    top: 20px;
}

.content-panel {
    padding: 18px;
}

.panel-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 16px;
}

.panel-desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
    letter-spacing: .5px;
}

.filter-label-spaced {
    margin-top: 14px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    border: 1px solid rgba(126, 211, 255, .22);
    border-radius: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,.075);
    color: #d9ecff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.chip:hover,
.chip.active {
    transform: translateY(-1px);
    color: #061b39;
    background: linear-gradient(135deg, #8fe7ff, #36b7ef);
    border-color: rgba(126, 211, 255, .62);
    box-shadow: 0 14px 32px rgba(18, 180, 235, .22);
}

.view-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.view-radio {
    position: relative;
}

.view-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.view-radio label {
    display: block;
    text-align: center;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    color: #c5d9f4;
    background: rgba(255,255,255,.065);
    border: 1px solid rgba(126, 211, 255, .18);
    transition: .2s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.view-radio input:checked + label {
    color: #061b39;
    border-color: rgba(126, 211, 255, .62);
    background: linear-gradient(135deg, #8fe7ff, #36b7ef);
    box-shadow: 0 14px 32px rgba(18, 180, 235, .20);
    transform: translateY(-1px);
}

.input-shell {
    position: relative;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(126, 211, 255, .40), rgba(255,255,255,.08));
    box-shadow:
            0 10px 24px rgba(0, 8, 31, .12),
            inset 0 1px 0 rgba(255,255,255,.35);
}

.input-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,.45), rgba(255,255,255,.08));
    -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: .8;
}

.input-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 11px;
    background: rgba(6, 20, 50, .82);
    backdrop-filter: blur(18px);
    padding: 0 14px;
    transition: .22s ease;
}

.input-shell:focus-within {
    box-shadow:
            0 0 0 4px rgba(68, 215, 255, .10),
            0 16px 36px rgba(18,180,235,.16);
}

.input-shell:focus-within .input-box {
    background: rgba(8, 28, 68, .96);
}

.input-icon {
    width: 18px;
    height: 18px;
    flex: none;
    color: #9ee7ff;
    opacity: .9;
}

.search,
.date-input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    padding: 14px 0;
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
}

.search::placeholder,
.date-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.search-tip {
    margin-top: 8px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
}

.date-filter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.date-range {
    display: grid;
    gap: 12px;
}

.date-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.date-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.date-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.query-btn,
.reset-btn {
    flex: 1;
    text-align: center;
    border: 1px solid rgba(126, 211, 255, .24);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: .2s ease;
}

.query-btn {
    color: #061b39;
    background: linear-gradient(135deg, #8fe7ff, #36b7ef);
    box-shadow: 0 14px 32px rgba(18, 180, 235, .22);
}

.query-btn:hover {
    transform: translateY(-1px);
}

.reset-btn {
    color: #d9ecff;
    background: rgba(255,255,255,.075);
}

.reset-btn:hover {
    background: rgba(255,255,255,.12);
}

.legend {
    display: grid;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,.065);
    border: 1px solid rgba(126, 211, 255, .18);
    border-radius: 12px;
    color: #c5d9f4;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--一区);
    flex: none;
}

.dot.二区 { background: var(--二区); }
.dot.三区 { background: var(--三区); }
.dot.特殊 { background: var(--特殊); }

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 8px 18px;
}

.toolbar-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    margin: 0;
}

.toolbar-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
}

.table-wrap {
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 14px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
}

table {
    width: 100%;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    min-width: 0;
}

thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    text-align: center;
    padding: 13px 8px;
    font-size: 12px;
    color: #c5d9f4;
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.055)), #0b1d49;
    border-bottom: 1px solid rgba(126, 211, 255, .20);
    white-space: nowrap;
    line-height: 1.25;
}

tbody td:first-child {
    text-align: center;
}

tbody td {
    text-align: right;
    padding: 12px 8px;
    color: #d9ecff;
    border-bottom: 1px solid rgba(126, 211, 255, .12);
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

tbody tr {
    transition: .18s ease;
}

tbody tr:hover {
    background: rgba(68, 215, 255, .07);
}

tbody tr.hidden {
    display: none;
}

.region-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0;
    background: var(--一区);
    box-shadow: 0 8px 20px rgba(37,99,235,.18);
}

.region-badge.二区 { background: var(--二区); box-shadow: 0 8px 20px rgba(124,58,237,.18); }
.region-badge.三区 { background: var(--三区); box-shadow: 0 8px 20px rgba(16,185,129,.18); }
.region-badge.特殊 { background: var(--特殊); box-shadow: 0 8px 20px rgba(245,158,11,.18); }

.province-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 11px;
    color: #061b39;
    background: linear-gradient(135deg, #f8fbff, #b7c7dd);
    border: 1px solid rgba(126, 211, 255, .30);
}

.kg-pill {
    display: inline-block;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: #d9ecff;
    font-weight: 700;
    font-size: 11px;
}

.num { font-weight: 700; }
.money { font-weight: 800; color: #ffffff; }
.money.avg { color: #9ee7ff; }

.delivery-flow-table {
    min-width: 0;
    width: 100%;
}

.delivery-flow-table .flow-col-employee { width: 17%; }
.delivery-flow-table .flow-col-station { width: 9%; }
.delivery-flow-table .flow-col-value { width: 7.2%; }
.delivery-flow-table .flow-col-ratio { width: 7.4%; }
.delivery-flow-table .flow-col-total { width: 8%; }

.delivery-flow-table thead th {
    padding: 9px 3px;
    font-size: 11px;
    white-space: normal;
    line-height: 1.18;
}

.delivery-flow-table tbody td {
    padding: 9px 3px;
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: 0;
}

.delivery-flow-table .num,
.delivery-flow-table .money {
    font-size: 11px;
}

.delivery-flow-table .name-cell {
    text-align: center;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.pickup-table-wrap {
    max-height: none;
    overflow-y: visible;
}

.pickup-data-table {
    min-width: 0;
    width: 100%;
}

.pickup-data-table .pickup-col-person { width: 22%; }
.pickup-data-table .pickup-col-source { width: 22%; }
.pickup-data-table .pickup-col-money { width: 7.2%; }
.pickup-data-table .pickup-col-pieces { width: 10%; }

.pickup-data-table thead th {
    padding: 8px 3px;
    font-size: 10px;
    white-space: normal;
    line-height: 1.16;
}

.pickup-data-table tbody td {
    padding: 8px 3px;
    font-size: 10px;
    line-height: 1.2;
}

.pickup-data-table .num,
.pickup-data-table .money {
    font-size: 10px;
}

.pickup-name-cell,
.pickup-source-cell {
    text-align: center;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 8px 0;
}

.page-btn,
.page-info {
    border: 1px solid rgba(126, 211, 255, .22);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 700;
}

.page-btn {
    color: #d9ecff;
    text-decoration: none;
    background: rgba(255,255,255,.075);
    transition: .2s ease;
}

.page-btn:hover {
    background: rgba(255,255,255,.12);
    transform: translateY(-1px);
}

.page-btn.disabled {
    opacity: .45;
    pointer-events: none;
}

.page-info {
    color: #9fb8da;
    background: rgba(255,255,255,.045);
}

.flow-name {
    display: inline;
    color: #ffffff;
    font-weight: 800;
}

.management-table th:first-child,
.management-table td:first-child {
    text-align: left;
    width: 30%;
}

.management-table th:nth-child(2),
.management-table td:nth-child(2) {
    width: 16%;
}

.management-table th:nth-child(3),
.management-table td:nth-child(3) {
    width: 20%;
}

.management-table th:nth-child(4),
.management-table td:nth-child(4),
.management-table th:nth-child(5),
.management-table td:nth-child(5) {
    width: 17%;
}

.empty {
    padding: 48px 20px;
    text-align: center;
    color: #9fb8da;
    font-size: 14px;
    display: none;
    background: rgba(255,255,255,.045);
    border-radius: 12px;
}

.empty-visible {
    display: block;
}

.footer-note {
    margin-top: 14px;
    color: #6f8db5;
    font-size: 12px;
    text-align: right;
}

@media (max-width: 1120px) {
    .layout { grid-template-columns: 1fr; }
    .side-panel { position: static; }
    .metrics { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}

@media (max-width: 720px) {
    .page { padding: 16px; }
    .hero { padding: 24px 20px; border-radius: 16px; }
    .hero-top { flex-direction: column; }
    .title { font-size: 28px; }
    .metrics { grid-template-columns: 1fr; }
    .toolbar { flex-direction: column; align-items: flex-start; }
}

.customer-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.customer-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #061b39;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .2px;
    background: linear-gradient(135deg, #f8fbff, #b7c7dd);
    border: 1px solid rgba(126, 211, 255, .30);
}

/* ===== Global Topbar ===== */
.page-topbar {
    margin-bottom: 18px;
}

.page-topbar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.topbar-account {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-account form {
    margin: 0;
}

.topbar-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.topbar-user small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.topbar-logout {
    background: rgba(255,255,255,.075);
    color: #d9ecff;
}

.topbar-logout:hover {
    background: rgba(255,255,255,.12);
}

.topbar-password {
    background: rgba(54, 183, 239, .12);
    color: #dff7ff;
}

.topbar-password:hover {
    background: rgba(54, 183, 239, .2);
}

/* ===== Current account password dialog ===== */
.password-dialog {
    width: min(440px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 18px;
    color: var(--text);
    background: transparent;
    box-shadow: 0 30px 90px rgba(0, 7, 28, .58);
}

.password-dialog::backdrop {
    background: rgba(1, 8, 28, .72);
    backdrop-filter: blur(5px);
}

.password-dialog-card {
    padding: 26px;
    border: 1px solid rgba(126, 211, 255, .28);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.055)), #0a1c45;
}

.password-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.password-dialog-header h2 {
    margin: 0 0 7px;
    font-size: 20px;
}

.password-dialog-header p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.password-dialog-close {
    width: 32px;
    height: 32px;
    padding: 0;
    flex: none;
    border: 1px solid rgba(126, 211, 255, .2);
    border-radius: 9px;
    color: #d9ecff;
    background: rgba(255,255,255,.06);
    font: inherit;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

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

.password-form label {
    margin-top: 5px;
    color: #d9ecff;
    font-size: 12px;
    font-weight: 700;
}

.password-form input {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid rgba(126, 211, 255, .24);
    border-radius: 10px;
    outline: none;
    color: #ffffff;
    background: rgba(255,255,255,.07);
    font: inherit;
}

.password-form input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(107, 220, 255, .12);
}

.password-form-message {
    min-height: 20px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.password-form-message.is-error {
    color: #ffb4c0;
}

.password-form-message.is-success {
    color: var(--green);
}

.password-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.password-dialog-actions button {
    min-width: 104px;
}

/* ===== Login ===== */
.login-page {
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-shell {
    width: min(440px, 100%);
}

.login-card {
    padding: 34px;
    border-radius: 20px;
    border: 1px solid rgba(126, 211, 255, .24);
    background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.055)), rgba(7, 20, 51, .9);
    box-shadow: 0 30px 90px rgba(0, 7, 28, .42);
    backdrop-filter: blur(18px);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}

.login-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.login-brand h1 {
    margin: 0 0 5px;
    font-size: 25px;
}

.login-brand p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

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

.login-form label {
    margin-top: 7px;
    color: #d9ecff;
    font-size: 13px;
    font-weight: 700;
}

.login-form input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: 11px;
    border: 1px solid rgba(126, 211, 255, .24);
    outline: none;
    background: rgba(255,255,255,.07);
    color: #ffffff;
    font: inherit;
}

.login-form input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(107, 220, 255, .12);
}

.login-form button {
    height: 48px;
    margin-top: 14px;
    border: 0;
    border-radius: 11px;
    color: #061b39;
    background: linear-gradient(135deg, #8fe7ff, #36b7ef);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.login-message {
    margin-bottom: 16px;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 13px;
}

.login-error {
    color: #ffd9df;
    background: rgba(251, 113, 133, .14);
    border: 1px solid rgba(251, 113, 133, .28);
}

.login-success {
    color: #caffec;
    background: rgba(94, 230, 181, .12);
    border: 1px solid rgba(94, 230, 181, .25);
}

/* ===== User management ===== */
.management-entry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.management-entry-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 132px;
    padding: 22px 24px;
    border-radius: 16px;
    border: 1px solid var(--line);
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(54,183,239,.16), rgba(255,255,255,.07)), var(--panel);
    box-shadow: var(--shadow);
}

.management-entry-card span:first-child {
    display: grid;
    gap: 6px;
}

.management-entry-card small {
    color: var(--muted);
}

.user-management-hero {
    min-height: 220px;
}

.user-management-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 20px;
    margin-top: 22px;
    align-items: start;
}

.user-form-panel {
    padding: 22px;
}

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

.admin-form > label,
.admin-form fieldset {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
}

.admin-form fieldset {
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.admin-form input,
.user-role-editor > input {
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid rgba(126, 211, 255, .22);
    background: rgba(255,255,255,.07);
    color: #ffffff;
    font: inherit;
}

.role-option {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 9px !important;
    color: #d9ecff !important;
}

.role-option input {
    width: 16px;
    height: 16px;
}

.role-option span {
    display: grid;
    gap: 2px;
}

.role-option small,
.form-help {
    color: var(--muted);
    font-size: 11px;
}

.form-help {
    margin: -5px 0 0;
    line-height: 1.5;
}

.admin-form-message {
    min-height: 20px;
    margin-top: 12px;
    color: var(--green);
    font-size: 12px;
}

.admin-form-message.is-error {
    color: #ffb4c0;
}

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

.user-admin-row {
    display: grid;
    grid-template-columns: minmax(210px, .7fr) minmax(320px, 1.3fr);
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(126, 211, 255, .16);
    border-radius: 12px;
    background: rgba(255,255,255,.045);
}

.user-admin-identity,
.user-role-editor {
    display: grid;
    gap: 8px;
    min-width: 0;
}

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

.user-admin-identity code {
    overflow-wrap: anywhere;
    color: #a9dfff;
    font-size: 11px;
}

.user-status.status-enabled {
    color: var(--green);
}

.user-status.status-disabled {
    color: var(--red);
}

.role-options-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.account-enabled-option {
    margin-left: auto;
    padding-left: 16px;
    border-left: 1px solid rgba(126, 211, 255, .2);
}

.account-enabled-option span {
    color: var(--green);
    font-weight: 700;
}

.account-enabled-option:has(input:not(:checked)) span {
    color: var(--red);
}

@media (max-width: 900px) {
    .management-entry-grid,
    .user-management-grid,
    .user-admin-row {
        grid-template-columns: 1fr;
    }

    .account-enabled-option {
        margin-left: 0;
    }
}

.topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(126, 211, 255, .28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: .2s ease;
    cursor: pointer;
    font: inherit;
}

.topbar-home {
    background: linear-gradient(135deg, rgba(9, 28, 70, .92), rgba(20, 73, 132, .82));
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(0, 9, 31, .28);
}

.topbar-home:hover {
    background: linear-gradient(135deg, rgba(12, 40, 96, .96), rgba(28, 96, 162, .88));
    transform: translateY(-1px);
}

.topbar-back {
    background: rgba(255,255,255,.075);
    color: #d9ecff;
    box-shadow: 0 16px 36px rgba(0, 9, 31, .22);
}

.topbar-back:hover {
    background: rgba(255,255,255,.12);
    transform: translateY(-1px);
}

.topbar-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.topbar-home-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.topbar-back-arrow {
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    flex: none;
}

.topbar-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .2px;
    line-height: 1;
}

@media (max-width: 720px) {
    .page-topbar-inner {
        gap: 8px;
    }

    .topbar-btn {
        height: 40px;
        padding: 0 13px;
        border-radius: 12px;
    }

    .topbar-label {
        font-size: 13px;
    }

    .topbar-icon-wrap,
    .topbar-home-icon {
        width: 24px;
        height: 24px;
    }
}


.topbar-home-current {
    opacity: .92;
    cursor: default;
    pointer-events: none;
}

/* =========================
   Summary / 数据分析页面通用
========================= */

.summary-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.summary-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.summary-side {
    position: sticky;
    top: 20px;
}

/* =========================
   Logo
========================= */

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    border: 1px solid rgba(126, 211, 255, .22);
}

/* =========================
   标签组件（区域 / 省份 / 公斤段）
========================= */

.region-badge,
.province-pill,
.kg-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

/* 公斤段 */
.kg-pill {
    color: #d9ecff;
    background: rgba(255,255,255,.10);
}

/* 省份 */
.province-pill {
    color: #061b39;
    background: linear-gradient(135deg, #f8fbff, #b7c7dd);
}

/* 区域 */
.region-badge {
    color: #fff;
    background: linear-gradient(135deg, #64748b, #475569);
}

.region-badge.一区 {
    background: var(--一区);
}

.region-badge.二区 {
    background: var(--二区);
}

.region-badge.三区 {
    background: var(--三区);
}

.region-badge.特殊 {
    background: var(--特殊);
}

/* =========================
   响应式
========================= */

@media (max-width: 1120px) {
    .summary-layout {
        grid-template-columns: 1fr;
    }

    .summary-side {
        position: static;
    }
}

@media (max-width: 768px) {
    .summary-shell {
        gap: 18px;
    }
}

/* =========================
   Entry 首页入口卡片
========================= */

.entry-section {
    margin-top: 24px;
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.entry-grid-home {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.entry-grid-delivery {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.entry-tile {
    display: block;
    text-decoration: none;
    color: #fff;
    padding: 26px 24px;
    min-height: 178px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(126, 211, 255, .18);
    box-shadow:
            inset 0 1px 0 rgba(255,255,255,.12),
            0 22px 54px rgba(0, 8, 31, .24);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    transition: .22s ease;
}

.entry-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 42%);
    pointer-events: none;
}

.entry-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 217, 255, .62);
    box-shadow:
            inset 0 1px 0 rgba(255,255,255,.14),
            0 28px 64px rgba(18, 180, 235, .18);
}

.tile-blue {
    background:
            linear-gradient(135deg, rgba(54,183,239,.22), rgba(10,31,79,.24)),
            linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.06));
}

.tile-purple {
    background:
            linear-gradient(135deg, rgba(122,167,255,.20), rgba(10,31,79,.24)),
            linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.06));
}

.tile-cyan {
    background:
            linear-gradient(135deg, rgba(107,220,255,.22), rgba(10,31,79,.24)),
            linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.06));
}

.tile-green {
    background:
            linear-gradient(135deg, rgba(94,230,181,.22), rgba(10,31,79,.24)),
            linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.06));
}

.entry-icon {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
}

.entry-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 24px rgba(0, 8, 31, .32));
}

.entry-name {
    position: relative;
    z-index: 1;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}

.entry-text {
    position: relative;
    z-index: 1;
    font-size: 14px;
    color: rgba(255,255,255,.85);
    line-height: 1.7;
}

@media (max-width: 1200px) {
    .entry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .entry-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   Delivery station map
========================= */

.map-page,
.map-page body {
    width: 100%;
    height: 100%;
    margin: 0;
}

.map-page {
    min-height: 100vh;
    overflow: hidden;
    background: #edf4fb;
}

.station-map-workbench {
    position: relative;
    min-height: 100vh;
}

.map-canvas-shell,
.map-page #map {
    width: 100%;
    height: 100vh;
}

.map-panel {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(390px, calc(100vw - 36px));
    max-height: calc(100vh - 36px);
    padding: 16px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(16, 42, 84, .16);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 20px 48px rgba(15, 23, 42, .22);
    backdrop-filter: blur(18px);
}

.map-nav {
    display: grid;
    grid-template-columns: 1fr 118px;
    gap: 10px;
}

.map-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid #d5e1ee;
    color: #1e3a5f;
    background: #f8fbff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    transition: .18s ease;
}

.map-nav-btn:hover {
    border-color: #9fc5ef;
    background: #eef7ff;
}

.map-nav-primary {
    color: #ffffff;
    border-color: #237bd1;
    background: linear-gradient(135deg, #1c78d0, #0f9fc8);
    box-shadow: 0 12px 24px rgba(20, 127, 198, .20);
}

.map-nav-primary:hover {
    color: #ffffff;
    border-color: #156ebd;
    background: linear-gradient(135deg, #166fbd, #0b92b8);
}

.map-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 2px;
}

.map-kicker {
    margin: 0 0 5px;
    color: #58708c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.map-heading h1 {
    margin: 0;
    color: #102a43;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.15;
}

.map-filter-note {
    margin: 7px 0 0;
    color: #58708c;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.map-live {
    flex: none;
    max-width: 138px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #0f4f6c;
    background: #e8f7fc;
    border: 1px solid #bee5f2;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
}

.map-search-row {
    display: grid;
    grid-template-columns: 1fr 64px;
    gap: 10px;
}

.map-search {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #cbd8e6;
    border-radius: 8px;
    outline: none;
    color: #102a43;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    background: #ffffff;
}

.map-search:focus {
    border-color: #37a2d7;
    box-shadow: 0 0 0 3px rgba(55, 162, 215, .14);
}

.map-search::placeholder {
    color: #8aa0b8;
    font-weight: 600;
}

.map-clear-btn {
    border: 1px solid #d5e1ee;
    border-radius: 8px;
    color: #33536f;
    background: #f8fbff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.map-clear-btn:hover {
    background: #eef7ff;
}

.map-count {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
}

.map-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.map-stats div {
    min-width: 0;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #dce8f4;
    background: #f7fbff;
}

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

.map-stats span {
    color: #6b7f95;
    font-size: 12px;
    font-weight: 700;
}

.map-stats strong {
    margin-top: 4px;
    color: #0f2f4f;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
}

.station-list {
    display: grid;
    gap: 8px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}

.station-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    padding: 11px 12px;
    border: 1px solid #dce8f4;
    border-radius: 8px;
    color: #102a43;
    background: #ffffff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: .18s ease;
}

.station-list-item:hover {
    border-color: #a8cdeb;
    background: #f4fbff;
}

.station-list-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.station-list-name {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    color: #102a43;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.station-list-main small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #71869c;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.station-volume {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 44px;
    padding: 6px 8px;
    border: 1px solid #bfe6f3;
    border-radius: 8px;
    color: #0f4f6c;
    background: linear-gradient(180deg, #effbff, #e4f6fb);
}

.station-volume span {
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #0f2f4f;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.station-volume small {
    margin-top: 3px;
    color: #58708c;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.station-list-empty {
    padding: 18px 12px;
    border: 1px dashed #cbd8e6;
    border-radius: 8px;
    color: #6b7f95;
    background: #f7fbff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.station-info {
    display: grid;
    gap: 5px;
    min-width: 220px;
    padding: 2px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #1e293b;
}

.station-info b {
    color: #102a43;
    font-size: 15px;
}

.station-info span {
    color: #33536f;
}

.station-info small {
    color: #64748b;
}

@media (max-width: 768px) {
    .map-page {
        overflow: auto;
    }

    .station-map-workbench {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        background: #edf4fb;
    }

    .map-panel {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        max-height: none;
        margin: 12px;
        order: 2;
    }

    .map-canvas-shell,
    .map-page #map {
        height: 50vh;
        min-height: 360px;
    }

    .station-list {
        max-height: 360px;
    }
}

@media (max-width: 460px) {
    .map-nav,
    .map-search-row {
        grid-template-columns: 1fr;
    }

    .map-heading {
        flex-direction: column;
        gap: 10px;
    }

    .map-live {
        max-width: 100%;
    }
}

/* =========================
   Home test workspace
========================= */

body.home-test-page {
    color: #eaf3ff;
    background:
            linear-gradient(115deg, rgba(44, 190, 232, .14) 0%, transparent 34%),
            linear-gradient(245deg, rgba(255, 255, 255, .08) 0%, transparent 28%),
            linear-gradient(180deg, #071433 0%, #0b1d49 42%, #10255b 100%);
    overflow-x: hidden;
}

.home-test-page .page {
    max-width: 1220px;
    width: 100%;
    padding: 26px;
}

.home-test-page .page-topbar {
    margin-bottom: 16px;
}

.home-test-page .page-topbar-inner {
    justify-content: space-between;
}

.home-test-page .topbar-home {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(9, 28, 70, .92), rgba(20, 73, 132, .82));
    border-color: rgba(126, 211, 255, .34);
    box-shadow: 0 16px 36px rgba(0, 9, 31, .28);
}

.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: stretch;
    min-width: 0;
    min-height: 312px;
    padding: 38px;
    overflow: hidden;
    border: 1px solid rgba(126, 211, 255, .26);
    border-radius: 18px;
    background:
            repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 72px),
            repeating-linear-gradient(0deg, rgba(255,255,255,.026) 0 1px, transparent 1px 72px),
            linear-gradient(135deg, rgba(10, 31, 79, .96), rgba(11, 45, 104, .92) 48%, rgba(7, 20, 51, .98));
    box-shadow:
            0 30px 90px rgba(0, 7, 28, .42),
            inset 0 1px 0 rgba(255,255,255,.12);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
            linear-gradient(115deg, transparent 0 58%, rgba(70, 201, 242, .18) 58.2%, transparent 70%),
            linear-gradient(135deg, rgba(255,255,255,.10), transparent 28%);
}

.home-hero::after {
    content: "";
    position: absolute;
    right: 320px;
    bottom: 34px;
    width: 160px;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(108, 217, 255, .95), transparent);
}

.home-hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 10px;
    border: 1px solid rgba(106, 211, 255, .38);
    border-radius: 999px;
    color: #9ee7ff;
    background: rgba(7, 20, 51, .56);
    font-size: 13px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.home-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #44d7ff;
    box-shadow: 0 0 0 4px rgba(68, 215, 255, .15), 0 0 18px rgba(68, 215, 255, .85);
}

.home-title {
    margin: 22px 0 12px;
    color: #ffffff;
    font-size: 46px;
    line-height: 1.15;
    font-weight: 800;
    text-shadow: 0 12px 40px rgba(0, 0, 0, .26);
}

.home-subtitle {
    max-width: 680px;
    margin: 0;
    color: #c5d9f4;
    font-size: 16px;
    line-height: 1.8;
}

.home-brand-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 100%;
    padding: 22px;
    border: 1px solid rgba(126, 211, 255, .28);
    border-radius: 16px;
    background:
            linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.065)),
            rgba(5, 17, 43, .54);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
    backdrop-filter: blur(18px);
}

.home-brand-logo {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    object-fit: contain;
    border: 1px solid rgba(126, 211, 255, .26);
    background: #091a43;
    box-shadow: 0 18px 36px rgba(0, 8, 31, .32);
}

.home-brand-name {
    margin-top: 42px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
}

.home-brand-meta {
    margin-top: 6px;
    color: #9fb8da;
    font-size: 13px;
}

.home-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.home-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 126px;
    padding: 18px;
    border: 1px solid rgba(126, 211, 255, .18);
    border-radius: 14px;
    background:
            linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.055)),
            rgba(7, 20, 51, .64);
    box-shadow: 0 18px 40px rgba(0, 8, 31, .22);
}

.home-stat-label,
.home-stat-note {
    color: #94abc8;
    font-size: 13px;
}

.home-stat-value {
    color: #ffffff;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
}

.home-stat-ok {
    color: #6ee7b7;
}

.home-workspace,
.home-info-block {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid rgba(126, 211, 255, .18);
    border-radius: 16px;
    background:
            linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.06)),
            rgba(7, 20, 51, .68);
    box-shadow: 0 22px 54px rgba(0, 8, 31, .24);
    backdrop-filter: blur(14px);
}

.home-section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.home-section-head h2,
.home-info-block h2 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.home-section-head p {
    margin: 6px 0 0;
    color: #9fb8da;
    font-size: 13px;
}

.home-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-module-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 116px;
    padding: 18px;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(126, 211, 255, .18);
    border-radius: 14px;
    background:
            linear-gradient(135deg, rgba(255,255,255,.115), rgba(255,255,255,.055)),
            rgba(10, 31, 79, .48);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home-module-card:hover {
    transform: translateY(-2px);
    border-color: rgba(108, 217, 255, .62);
    box-shadow: 0 18px 42px rgba(18, 180, 235, .18);
}

.home-module-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex: none;
}

.home-module-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 24px rgba(0, 8, 31, .32));
}

.home-module-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-module-content strong {
    color: #ffffff;
    font-size: 16px;
}

.home-module-content span {
    margin-top: 6px;
    color: #9fb8da;
    font-size: 13px;
    line-height: 1.5;
}

.home-module-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    color: #9ee7ff;
    background: rgba(68, 215, 255, .10);
    border: 1px solid rgba(126, 211, 255, .18);
    font-size: 13px;
    font-weight: 800;
}

.home-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 18px;
}

.home-scope-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.home-scope-list span {
    padding: 8px 11px;
    border: 1px solid rgba(126, 211, 255, .20);
    border-radius: 8px;
    color: #d9ecff;
    background: rgba(255,255,255,.065);
    font-size: 13px;
    font-weight: 700;
}

.home-info-text {
    margin: 14px 0 0;
    color: #b8cae2;
    font-size: 14px;
    line-height: 1.8;
}

@media (max-width: 980px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-brand-panel {
        min-height: 160px;
    }

    .home-overview,
    .home-module-grid,
    .home-bottom-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .home-test-page .page {
        max-width: 100vw;
        padding: 16px;
    }

    .home-hero,
    .home-stat,
    .home-workspace,
    .home-info-block {
        max-width: calc(100vw - 32px);
    }

    .home-hero {
        width: 100%;
        min-height: auto;
        padding: 24px 20px;
        grid-template-columns: minmax(0, 1fr);
    }

    .home-hero-copy,
    .home-brand-panel {
        width: calc(100vw - 74px);
        max-width: calc(100vw - 74px);
    }

    .home-title {
        font-size: 26px;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .home-subtitle {
        width: 100%;
        max-width: 100%;
        font-size: 15px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .home-brand-panel {
        max-width: 100%;
        padding: 20px;
    }

    .home-overview,
    .home-module-grid,
    .home-bottom-grid {
        grid-template-columns: 1fr;
    }

    .home-module-card {
        grid-template-columns: 50px minmax(0, 1fr);
        width: 100%;
        max-width: 100%;
    }

    .home-module-arrow {
        grid-column: 2;
        justify-self: start;
    }
}
