.f15asp-root,
.f15asp-root * {
    box-sizing: border-box;
}

.f15asp-root {
    --f15asp-text: #1f2933;
    --f15asp-muted: #5f6b76;
    --f15asp-border: #d9e0e6;
    --f15asp-panel: #ffffff;
    --f15asp-soft: #f6f8fa;
    --f15asp-primary: #0066FF;
    --f15asp-primary-dark: #0052CC;
    --f15asp-scale: #2f9f78;
    --f15asp-wait: #3f83c5;
    --f15asp-kill: #dc5a5a;
    --f15asp-focus: #0066FF;
    max-width: 1480px;
    margin: 0 auto 64px;
    color: var(--f15asp-text);
    font: inherit;
}

.f15asp-root h2,
.f15asp-root h3,
.f15asp-root h4,
.f15asp-root p {
    margin-top: 0;
}

.f15asp-root h2 {
    margin-bottom: 8px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
}

.f15asp-root h3 {
    margin-bottom: 8px;
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.15;
}

.f15asp-root h4 {
    margin: 26px 0 12px;
    font-size: 18px;
}

.f15asp-section-head,
.f15asp-chart-head,
.f15asp-results-toolbar,
.f15asp-chart-foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.f15asp-card-kicker {
    margin-bottom: 8px;
    color: var(--f15asp-primary-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.f15asp-hidden {
    display: none !important;
}

.f15asp-privacy-note,
.f15asp-info-note,
.f15asp-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 14px;
    padding: 9px 13px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.f15asp-privacy-note,
.f15asp-info-note {
    background: #F2F7FF;
    border: 1px solid #C9DCFF;
    border-left: 4px solid var(--f15asp-primary);
    color: #15345F;
}

.f15asp-alert-error {
    background: #fff4f4;
    border: 1px solid #f1c4c4;
    border-left: 4px solid var(--f15asp-kill);
    color: #7f2424;
}

.f15asp-alert p {
    margin: 0;
}

.f15asp-card {
    margin-top: 14px;
    padding: 26px;
    background: var(--f15asp-panel);
    border: 1px solid var(--f15asp-border);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 102, 255, .07);
}

.f15asp-upload-card {
    padding: 54px 28px;
    text-align: center;
}

.f15asp-upload-card p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.f15asp-upload-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: #EAF2FF;
    color: var(--f15asp-primary);
    font-size: 42px;
    line-height: 1;
}

.f15asp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #b9c5d0;
    border-radius: 8px;
    background: #fff;
    color: #1f3a56;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}

.f15asp-button:hover {
    border-color: #7f91a3;
    background: #f8fafc;
}

.f15asp-button:focus-visible,
.f15asp-root input:focus-visible,
.f15asp-root select:focus-visible {
    outline: 3px solid rgba(0, 102, 255, .22);
    outline-offset: 2px;
}

.f15asp-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.f15asp-button-primary {
    border-color: var(--f15asp-primary);
    background: var(--f15asp-primary);
    color: #fff;
}

.f15asp-button-primary:hover {
    border-color: var(--f15asp-primary-dark);
    background: var(--f15asp-primary-dark);
    color: #fff;
}

.f15asp-button-large {
    min-height: 48px;
    padding: 12px 22px;
    font-size: 16px;
}

.f15asp-help {
    margin-bottom: 0;
    color: var(--f15asp-muted);
    font-size: 13px;
    line-height: 1.5;
}

.f15asp-section-head {
    margin-top: 24px;
}

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

.f15asp-actions-end {
    justify-content: flex-end;
    margin-top: 22px;
}

.f15asp-map-grid,
.f15asp-control-grid,
.f15asp-summary-grid,
.f15asp-selected-grid {
    display: grid;
    gap: 16px;
}

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

.f15asp-control-grid {
    grid-template-columns: repeat(4, minmax(200px, 1fr));
}

.f15asp-field-wide {
    grid-column: span 2;
}

.f15asp-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.f15asp-field label {
    font-size: 14px;
    font-weight: 750;
}

.f15asp-field label span[aria-hidden="true"] {
    color: var(--f15asp-kill);
}

.f15asp-root input[type="text"],
.f15asp-root input[type="search"],
.f15asp-root input[type="number"],
.f15asp-root select {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #cbd6e0;
    border-radius: 9px;
    background: #fff;
    color: var(--f15asp-text);
    font: inherit;
    font-size: 15px;
    line-height: 1.2;
    box-shadow: none;
}

.f15asp-root select {
    padding-right: 34px;
}

.f15asp-money-input {
    display: flex;
    align-items: center;
    min-height: 46px;
    border: 1px solid #cbd6e0;
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
}

.f15asp-money-input span {
    flex: 0 0 auto;
    padding-left: 12px;
    color: var(--f15asp-muted);
    font-weight: 700;
}

.f15asp-money-input input {
    min-height: 44px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    outline: 0 !important;
}

.f15asp-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.f15asp-presets button {
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #cbd6e0;
    border-radius: 999px;
    background: #fff;
    color: var(--f15asp-muted);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.f15asp-presets button:hover,
.f15asp-presets button.is-active {
    border-color: var(--f15asp-primary);
    background: #EAF2FF;
    color: var(--f15asp-primary-dark);
}

.f15asp-table-wrap {
    overflow: auto;
    border: 1px solid var(--f15asp-border);
    border-radius: 11px;
    background: #fff;
}

.f15asp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--f15asp-text);
    font-size: 14px;
}

.f15asp-table th,
.f15asp-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #e7ebef;
    text-align: left;
    vertical-align: top;
}

.f15asp-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f4f6f8;
    font-weight: 750;
    white-space: nowrap;
}

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

.f15asp-table tbody tr:nth-child(even) td {
    background: #fafbfc;
}

.f15asp-table tbody tr.is-selected td {
    background: #edf9f4 !important;
}

.f15asp-preview-wrap .f15asp-table {
    min-width: 820px;
}

.f15asp-summary-grid {
    grid-template-columns: repeat(7, minmax(130px, 1fr));
    margin-top: 18px;
}

.f15asp-summary-card {
    min-height: 118px;
    padding: 17px;
    border: 1px solid var(--f15asp-border);
    border-top: 4px solid #cdd5dc;
    border-radius: 13px;
    background: #fff;
}

.f15asp-summary-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--f15asp-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.f15asp-summary-card strong {
    display: block;
    font-size: 28px;
    line-height: 1.1;
}

.f15asp-summary-card small {
    display: block;
    margin-top: 8px;
    color: var(--f15asp-muted);
    line-height: 1.4;
}

.f15asp-summary-all { border-top-color: #26323e; }
.f15asp-summary-scale { border-top-color: var(--f15asp-scale); }
.f15asp-summary-wait { border-top-color: var(--f15asp-wait); }
.f15asp-summary-kill { border-top-color: var(--f15asp-kill); }

.f15asp-chart-card {
    padding-bottom: 20px;
}

.f15asp-chart-head h3 {
    margin-bottom: 4px;
}

.f15asp-chart-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 4px;
    color: var(--f15asp-muted);
    font-size: 13px;
    font-weight: 700;
}

.f15asp-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.f15asp-chart-legend i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.f15asp-chart-legend .is-scale { background: var(--f15asp-scale); }
.f15asp-chart-legend .is-wait { background: var(--f15asp-wait); }
.f15asp-chart-legend .is-kill { background: var(--f15asp-kill); }

.f15asp-status-strip {
    display: flex;
    height: 32px;
    margin: 20px 0 12px;
    overflow: hidden;
    border-radius: 8px;
    background: #eef2f4;
}

.f15asp-status-strip span {
    width: 0;
    transition: width .2s ease;
}

.f15asp-status-strip .scale { background: var(--f15asp-scale); }
.f15asp-status-strip .wait { background: var(--f15asp-wait); }
.f15asp-status-strip .kill { background: var(--f15asp-kill); }

.f15asp-chart-wrap {
    position: relative;
    width: 100%;
    height: 540px;
}

.f15asp-chart-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.f15asp-chart-tooltip {
    position: absolute;
    z-index: 20;
    max-width: 340px;
    padding: 11px 13px;
    border: 1px solid #27333f;
    border-radius: 9px;
    background: rgba(25, 35, 45, .96);
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    pointer-events: none;
}

.f15asp-chart-tooltip strong {
    display: block;
    margin-bottom: 3px;
}

.f15asp-chart-foot {
    margin-top: 10px;
    color: var(--f15asp-muted);
    font-size: 12px;
}

.f15asp-selected-card h3 {
    margin-bottom: 2px;
}

.f15asp-selected-grid {
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    margin-top: 18px;
}

.f15asp-selected-grid > div {
    padding: 13px;
    border-radius: 10px;
    background: var(--f15asp-soft);
}

.f15asp-selected-grid span {
    display: block;
    margin-bottom: 5px;
    color: var(--f15asp-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.f15asp-results-toolbar {
    position: sticky;
    top: 8px;
    z-index: 15;
    margin: -26px -26px 18px;
    padding: 22px 26px 18px;
    border-bottom: 1px solid var(--f15asp-border);
    border-radius: 16px 16px 0 0;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(8px);
}

.f15asp-results-toolbar h3 {
    margin-bottom: 3px;
}

.f15asp-toolbar-controls {
    display: grid;
    grid-template-columns: minmax(210px, 1.25fr) repeat(4, minmax(150px, 1fr)) auto;
    gap: 8px;
    width: min(100%, 1040px);
}

.f15asp-toolbar-controls .f15asp-button {
    min-height: 46px;
}

.f15asp-table-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid var(--f15asp-border);
    border-radius: 10px;
    background: var(--f15asp-soft);
}

.f15asp-checkbox-option,
.f15asp-page-size-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3c4752;
    font-size: 13px;
    font-weight: 700;
}

.f15asp-checkbox-option input {
    width: 17px;
    height: 17px;
}

.f15asp-page-size-label select {
    width: auto;
    min-width: 82px;
    min-height: 36px;
}

.f15asp-results-table-wrap {
    max-height: 700px;
}

.f15asp-results-table {
    min-width: 1740px;
}

.f15asp-results-table th:nth-child(1),
.f15asp-results-table td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 5;
    width: 78px;
    min-width: 78px;
    max-width: 78px;
}

.f15asp-results-table th:nth-child(2),
.f15asp-results-table td:nth-child(2) {
    position: sticky;
    left: 78px;
    z-index: 5;
    width: 92px;
    min-width: 92px;
    max-width: 92px;
}

.f15asp-results-table th:nth-child(3),
.f15asp-results-table td:nth-child(3) {
    position: sticky;
    left: 170px;
    z-index: 5;
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    box-shadow: 1px 0 0 var(--f15asp-border);
}

.f15asp-results-table thead th:nth-child(1),
.f15asp-results-table thead th:nth-child(2),
.f15asp-results-table thead th:nth-child(3) {
    z-index: 8;
    background: #f4f6f8;
}

.f15asp-results-table tbody tr:nth-child(odd) > td:nth-child(1),
.f15asp-results-table tbody tr:nth-child(odd) > td:nth-child(2),
.f15asp-results-table tbody tr:nth-child(odd) > td:nth-child(3) {
    background: #fff;
}

.f15asp-results-table tbody tr:nth-child(even) > td:nth-child(1),
.f15asp-results-table tbody tr:nth-child(even) > td:nth-child(2),
.f15asp-results-table tbody tr:nth-child(even) > td:nth-child(3) {
    background: #fafbfc;
}

.f15asp-results-table tbody tr.is-selected > td:nth-child(1),
.f15asp-results-table tbody tr.is-selected > td:nth-child(2),
.f15asp-results-table tbody tr.is-selected > td:nth-child(3) {
    background: #edf9f4 !important;
}

.f15asp-results-table th[data-sort] {
    cursor: pointer;
    user-select: none;
}

.f15asp-results-table th[data-sort]:hover {
    color: var(--f15asp-focus);
}

.f15asp-results-table th small {
    color: var(--f15asp-muted);
    font-size: 11px;
    font-weight: 600;
}

.f15asp-point-id {
    display: inline-flex;
    min-width: 48px;
    justify-content: center;
    padding: 4px 7px;
    border-radius: 999px;
    background: #edf1f5;
    color: #334152;
    font-size: 11px;
    font-weight: 800;
}

.f15asp-status-pill {
    display: inline-block;
    min-width: 56px;
    padding: 5px 9px;
    border-radius: 999px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.f15asp-status-pill.scale {
    border: 1px solid #9cd2be;
    background: #e6f5ef;
    color: #176c50;
}

.f15asp-status-pill.wait {
    border: 1px solid #a9c8e8;
    background: #eaf2fb;
    color: #245d98;
}

.f15asp-status-pill.kill {
    border: 1px solid #efb2b2;
    background: #fdecec;
    color: #9d2b2b;
}

.f15asp-row-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #1168ad;
    font: inherit;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.f15asp-row-link:hover {
    text-decoration: underline;
}

.f15asp-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.f15asp-page-buttons {
    display: flex;
    gap: 6px;
}

.f15asp-page-buttons .f15asp-button,
.f15asp-pagination > .f15asp-button {
    min-width: 42px;
    min-height: 40px;
    padding: 8px 11px;
}

.f15asp-page-buttons .is-current {
    border-color: #2479b8;
    background: #2479b8;
    color: #fff;
}

.f15asp-page-ellipsis {
    align-self: center;
    padding: 0 2px;
    color: var(--f15asp-muted);
}

.f15asp-model-note code {
    padding: 2px 5px;
    border-radius: 5px;
    background: #f0f3f6;
}

.f15asp-duplicate-note {
    padding: 12px;
    border: 1px solid #e2c98b;
    background: #fff8e6;
}

@media (max-width: 1280px) {
    .f15asp-map-grid,
    .f15asp-control-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .f15asp-summary-grid {
        grid-template-columns: repeat(4, minmax(140px, 1fr));
    }

    .f15asp-selected-grid {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }

    .f15asp-results-toolbar {
        flex-direction: column;
    }

    .f15asp-toolbar-controls {
        width: 100%;
        grid-template-columns: repeat(3, minmax(170px, 1fr));
    }
}

@media (max-width: 760px) {
    .f15asp-section-head,
    .f15asp-chart-head,
    .f15asp-results-toolbar,
    .f15asp-chart-foot {
        flex-direction: column;
    }

    .f15asp-card {
        padding: 18px;
        border-radius: 12px;
    }

    .f15asp-upload-card {
        padding: 40px 18px;
    }

    .f15asp-map-grid,
    .f15asp-control-grid,
    .f15asp-summary-grid,
    .f15asp-selected-grid {
        grid-template-columns: 1fr;
    }

    .f15asp-field-wide {
        grid-column: span 1;
    }

    .f15asp-toolbar-controls {
        grid-template-columns: 1fr;
    }

    .f15asp-results-toolbar {
        position: static;
        margin: -18px -18px 16px;
        padding: 18px;
        border-radius: 12px 12px 0 0;
    }

    .f15asp-table-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .f15asp-chart-wrap {
        height: 430px;
    }

    .f15asp-results-table th:nth-child(1),
    .f15asp-results-table td:nth-child(1) {
        width: 72px;
        min-width: 72px;
        max-width: 72px;
    }

    .f15asp-results-table th:nth-child(2),
    .f15asp-results-table td:nth-child(2) {
        left: 72px;
        width: 82px;
        min-width: 82px;
        max-width: 82px;
    }

    .f15asp-results-table th:nth-child(3),
    .f15asp-results-table td:nth-child(3) {
        left: 154px;
        width: 250px;
        min-width: 250px;
        max-width: 250px;
    }
}
