.location-archive-trigger {
    color: #b42318;
    border-color: #f5c7c2;
    background: #fffafa;
}

.location-archive-trigger:hover {
    color: #912018;
    border-color: #ef9a91;
    background: #fff1f0;
}

.location-archived-row {
    color: #64748b;
    background: linear-gradient(90deg, rgba(248, 250, 252, .9), rgba(255, 255, 255, .65));
}

.location-archived-row td:first-child {
    box-shadow: inset 3px 0 0 #94a3b8;
}

.location-row-actions {
    align-items: center;
    flex-wrap: wrap;
}

.location-archive-switcher {
    display: inline-flex;
    gap: 5px;
    margin: 0 16px 14px;
    padding: 5px;
    border: 1px solid #dce6f4;
    border-radius: 13px;
    background: #f1f5f9;
}

.location-archive-switcher a {
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 38px;
    padding: 0 9px 0 12px;
    color: #64748b;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 750;
    transition: .15s ease;
}

.location-archive-switcher a > span {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.location-archive-switcher .icon {
    width: 15px;
    height: 15px;
}

.location-archive-switcher a > strong {
    display: grid;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    color: #526076;
    background: #e2e8f0;
    font-size: 9px;
}

.location-archive-switcher a:hover {
    color: #1d4ed8;
    background: rgba(255, 255, 255, .72);
}

.location-archive-switcher a.is-active {
    color: #1d4ed8;
    background: #fff;
    box-shadow: 0 6px 16px rgba(22, 48, 85, .09);
}

.location-archive-switcher a.is-active > strong {
    color: #1d4ed8;
    background: #dbeafe;
}

.location-archive-backdrop {
    overflow: hidden;
    padding: 24px;
    background: rgba(15, 23, 42, .62);
    backdrop-filter: blur(10px);
}

.location-archive-modal,
.location-restore-modal {
    display: flex;
    flex-direction: column;
    width: min(920px, 100%);
    max-height: min(900px, calc(100vh - 48px));
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(15, 23, 42, .28);
}

.location-archive-modal {
    height: min(900px, calc(100dvh - 48px));
}

.location-restore-modal {
    width: min(680px, 100%);
    height: auto;
}

.location-archive-header {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 40px;
    gap: 16px;
    align-items: start;
    flex: 0 0 auto;
    padding: 26px 28px 24px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 0%, rgba(255, 255, 255, .18), transparent 34%),
        linear-gradient(135deg, #9f2318, #dc3e31 62%, #f06b5e);
}

.location-archive-header.is-restore {
    background:
        radial-gradient(circle at 85% 0%, rgba(255, 255, 255, .18), transparent 34%),
        linear-gradient(135deg, #164e63, #087c91 62%, #16a5b8);
}

.location-archive-symbol {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 16px;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.location-archive-symbol .icon {
    width: 25px;
    height: 25px;
}

.location-archive-kicker {
    display: block;
    margin: 1px 0 5px;
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.location-archive-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(21px, 3vw, 28px);
    letter-spacing: -.035em;
}

.location-archive-header p {
    max-width: 650px;
    margin: 7px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    line-height: 1.55;
}

.location-archive-header .icon-button {
    color: #fff;
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .12);
}

.location-archive-scroll {
    min-height: 0;
    flex: 1 1 auto;
    padding: 24px 28px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.location-archive-blocker {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 15px 16px;
    color: #7a2e0e;
    border: 1px solid #fed7aa;
    border-radius: 15px;
    background: #fff7ed;
}

.location-archive-blocker > span {
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #c2410c;
    border-radius: 10px;
    background: #ffedd5;
}

.location-archive-blocker strong,
.location-archive-blocker p {
    display: block;
    margin: 0;
}

.location-last-warning {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 14px 16px;
    color: #174a78;
    border: 1px solid #bfdbfe;
    border-radius: 15px;
    background: #eff6ff;
}

.location-last-warning > span {
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #dbeafe;
}

.location-last-warning strong,
.location-last-warning p {
    display: block;
    margin: 0;
}

.location-last-warning p {
    margin-top: 3px;
    color: #35658f;
    font-size: 12px;
    line-height: 1.5;
}

.location-archive-blocker p {
    margin-top: 3px;
    color: #9a3412;
    font-size: 13px;
    line-height: 1.5;
}

.location-archive-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.location-archive-stats article {
    display: flex;
    gap: 11px;
    align-items: center;
    min-width: 0;
    padding: 14px;
    border: 1px solid #e6edf5;
    border-radius: 15px;
    background: linear-gradient(145deg, #fff, #f8fafc);
}

.location-archive-stats article > span {
    display: grid;
    flex: 0 0 auto;
    width: 35px;
    height: 35px;
    place-items: center;
    color: #315fbe;
    border-radius: 11px;
    background: #edf4ff;
}

.location-archive-stats strong,
.location-archive-stats small {
    display: block;
}

.location-archive-stats strong {
    color: #0f172a;
    font-size: 18px;
    line-height: 1;
}

.location-archive-stats small {
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.25;
}

.location-archive-impact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.location-archive-impact-grid section {
    padding: 17px 18px;
    border: 1px solid;
    border-radius: 16px;
}

.location-archive-impact-grid .is-disabled {
    border-color: #fecaca;
    background: #fff7f7;
}

.location-archive-impact-grid .is-safe {
    border-color: #bbf7d0;
    background: #f3fff7;
}

.location-archive-impact-grid strong {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #172033;
    font-size: 13px;
}

.location-archive-impact-grid .icon {
    width: 18px;
    height: 18px;
}

.location-archive-impact-grid ul {
    display: grid;
    gap: 7px;
    margin: 12px 0 0;
    padding-left: 18px;
    color: #526076;
    font-size: 12px;
    line-height: 1.42;
}

.location-archive-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8edf4;
}

.location-archive-form .full {
    grid-column: 1 / -1;
}

.location-confirm-name {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #f8fafc;
}

.location-confirm-name label strong {
    color: #b42318;
}

.location-confirm-name.is-valid {
    border-color: #86d5a2;
    background: #f2fff6;
}

.location-archive-acknowledge {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    border: 1px solid #dce4ee;
    border-radius: 15px;
    background: #fff;
}

.location-archive-acknowledge > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.location-archive-acknowledge > span:nth-of-type(1) {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: transparent;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    background: #f8fafc;
}

.location-archive-acknowledge input:checked + span {
    color: #fff;
    border-color: #15803d;
    background: #15803d;
}

.location-archive-acknowledge strong,
.location-archive-acknowledge small {
    display: block;
}

.location-archive-acknowledge strong {
    color: #172033;
    font-size: 13px;
}

.location-archive-acknowledge small {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.45;
}

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

.location-destructive-button {
    border-color: #b42318;
    background: linear-gradient(135deg, #c42b20, #9f2018);
    box-shadow: 0 8px 22px rgba(180, 35, 24, .22);
}

.location-destructive-button:disabled {
    cursor: not-allowed;
    opacity: .42;
    box-shadow: none;
}

.location-danger-zone {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 26px;
    padding: 24px 28px;
    border-color: #f3cbc7;
    background: linear-gradient(135deg, #fff, #fff9f8);
}

.location-danger-copy {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.location-danger-icon {
    display: grid;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #b42318;
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #fff1f0;
}

.location-danger-zone h2 {
    margin: 3px 0 5px;
    color: #172033;
    font-size: 17px;
}

.location-danger-zone p {
    max-width: 690px;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.location-restore-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.location-restore-meta > div {
    padding: 13px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #f8fafc;
}

.location-restore-meta .full {
    grid-column: 1 / -1;
}

.location-restore-meta span,
.location-restore-meta strong {
    display: block;
}

.location-restore-meta span {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.location-restore-meta strong {
    margin-top: 4px;
    color: #172033;
    font-size: 13px;
}

.location-restore-notice {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin: 14px 0;
    padding: 14px;
    color: #155e75;
    border: 1px solid #bae6fd;
    border-radius: 14px;
    background: #f0f9ff;
}

.location-restore-notice p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .location-archive-switcher {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: calc(100% - 28px);
        margin-right: 14px;
        margin-left: 14px;
    }

    .location-archive-switcher a {
        justify-content: space-between;
    }

    .location-archive-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .location-archive-modal,
    .location-restore-modal {
        width: 100%;
        max-height: 94vh;
        border-radius: 24px 24px 0 0;
    }

    .location-archive-modal {
        height: 94dvh;
    }

    .location-archive-header {
        grid-template-columns: 44px minmax(0, 1fr) 34px;
        gap: 11px;
        padding: 20px 18px;
    }

    .location-archive-symbol {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .location-archive-scroll {
        padding: 18px;
    }

    .location-archive-stats,
    .location-archive-impact-grid,
    .location-archive-form,
    .location-restore-meta {
        grid-template-columns: 1fr;
    }

    .location-archive-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .location-archive-form .full,
    .location-restore-meta .full {
        grid-column: auto;
    }

    .location-danger-zone {
        align-items: stretch;
        flex-direction: column;
        padding: 20px;
    }

    .location-archive-actions {
        position: sticky;
        bottom: -18px;
        padding: 12px 0 2px;
        background: rgba(255, 255, 255, .96);
    }

    .location-archive-actions .button {
        flex: 1;
    }
}

@media (max-width: 430px) {
    .location-archive-stats {
        grid-template-columns: 1fr;
    }
}
