
.alerts-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 201, 40, .18), transparent 390px),
        radial-gradient(circle at 96% 18%, rgba(255, 235, 152, .26), transparent 360px),
        var(--nyam-cream);
}
.alerts-wrap {
    width: min(1160px, calc(100% - 32px));
    margin: 30px auto 92px;
}
.alerts-hero {
    position: relative;
    overflow: hidden;
    padding: 34px 36px;
    border: 1px solid rgba(245, 185, 0, .22);
    border-radius: 30px;
    background: linear-gradient(135deg, #FFF0A2 0%, #FFF7D2 48%, #FFFFFF 100%);
    box-shadow: 0 18px 55px rgba(58, 48, 10, .08);
}
.alerts-hero::after {
    content: "🔔";
    position: absolute;
    right: 38px;
    top: 50%;
    transform: translateY(-50%) rotate(9deg);
    font-size: 92px;
    opacity: .13;
}
.alerts-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    color: #725C0D;
    font-size: 11px;
    font-weight: 950;
}
.alerts-hero h1 {
    margin: 16px 0 8px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.08;
    letter-spacing: -2px;
}
.alerts-hero p {
    max-width: 610px;
    margin: 0;
    color: #685F49;
    font-size: 13px;
    line-height: 1.75;
}
.alerts-layout {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}
.alerts-main,
.alerts-side { min-width: 0; }
.alert-panel {
    padding: 24px;
    border: 1px solid var(--nyam-line);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(25, 26, 29, .045);
}
.alert-panel + .alert-panel { margin-top: 15px; }
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 17px;
}
.panel-title { min-width: 0; }
.panel-title h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -.8px;
}
.panel-title p {
    margin: 5px 0 0;
    color: var(--nyam-muted);
    font-size: 11px;
    line-height: 1.55;
}
.location-count {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #FFF5C7;
    color: #765F08;
    font-size: 11px;
    font-weight: 950;
}
.add-location {
    width: 100%;
    min-height: 56px;
    margin-top: 14px;
    border: 1.5px dashed #D8BB42;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: #FFFBEA;
    color: #6A560C;
    font-size: 13px;
    font-weight: 950;
    transition: .18s ease;
}
.add-location:hover {
    transform: translateY(-1px);
    border-color: var(--nyam-yellow-deep);
    background: #FFF4BE;
}
.add-location:disabled {
    cursor: not-allowed;
    opacity: .48;
    transform: none;
}
.location-list { display: grid; gap: 11px; }
.location-card {
    position: relative;
    padding: 17px;
    border: 1px solid #ECEAE4;
    border-radius: 20px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFEFA 100%);
    transition: .18s ease;
}
.location-card:hover {
    transform: translateY(-1px);
    border-color: #E4D185;
    box-shadow: 0 10px 28px rgba(25,26,29,.06);
}
.location-card.disabled {
    opacity: .58;
    background: #F8F8F6;
}
.location-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.location-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #FFF1A8;
    font-size: 24px;
    border: 1px solid rgba(245,185,0,.2);
}
.location-meta {
    min-width: 0;
    flex: 1;
}
.location-name-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 84px;
}
.location-name {
    margin: 0;
    font-size: 15px;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.location-radius {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    background: #FFF6D0;
    color: #765D07;
    font-size: 9px;
    font-weight: 950;
}
.location-address {
    margin-top: 5px;
    color: #727780;
    font-size: 11px;
    line-height: 1.55;
}
.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.location-tag {
    padding: 6px 8px;
    border-radius: 999px;
    background: #F4F5F6;
    color: #5E636C;
    font-size: 9px;
    font-weight: 850;
}
.location-tag.favorite {
    background: #FFEDEF;
    color: #BF3342;
}
.location-tag.all {
    background: #EAF8ED;
    color: #238240;
}
.location-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 5px;
}
.mini-action {
    width: 36px;
    height: 36px;
    border: 1px solid #ECEAE4;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff;
    font-size: 15px;
}
.mini-action:hover { background: #FFF6CE; }
.card-toggle-row {
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid #F0EEE8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.card-toggle-copy strong {
    display: block;
    font-size: 10px;
    font-weight: 950;
}
.card-toggle-copy span {
    display: block;
    margin-top: 2px;
    color: #8A8E95;
    font-size: 9px;
}
.nyam-switch {
    position: relative;
    width: 46px;
    height: 27px;
    flex: 0 0 auto;
    border: 0;
    padding: 0;
    border-radius: 999px;
    background: #DADDE1;
    transition: .18s ease;
}
.nyam-switch::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 7px rgba(0,0,0,.18);
    transition: .18s ease;
}
.nyam-switch.on { background: var(--nyam-yellow); }
.nyam-switch.on::after { transform: translateX(19px); }
.settings-list { display: grid; gap: 2px; }
.setting-row {
    min-height: 67px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F0EEE8;
}
.setting-row:last-child { border-bottom: 0; }
.setting-copy { min-width: 0; }
.setting-copy strong {
    display: block;
    font-size: 12px;
    font-weight: 950;
}
.setting-copy span {
    display: block;
    margin-top: 4px;
    color: #858A92;
    font-size: 10px;
    line-height: 1.45;
}
.side-tip {
    margin-top: 13px;
    padding: 14px;
    border-radius: 17px;
    background: #FFF7D8;
    color: #695D36;
    font-size: 10px;
    line-height: 1.65;
}
.side-tip strong { color: #4D431F; }
.alert-empty {
    min-height: 280px;
    display: grid;
    place-items: center;
    padding: 28px;
    text-align: center;
}
.alert-empty-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 13px;
    display: grid;
    place-items: center;
    border-radius: 27px;
    background: #FFF1A9;
    font-size: 42px;
    transform: rotate(-5deg);
}
.alert-empty strong {
    display: block;
    font-size: 15px;
    font-weight: 950;
}
.alert-empty p {
    margin: 8px auto 0;
    max-width: 330px;
    color: var(--nyam-muted);
    font-size: 11px;
    line-height: 1.65;
}
.login-gate {
    min-height: 400px;
    display: grid;
    place-items: center;
    padding: 36px 18px;
    text-align: center;
}
.login-gate-art {
    width: 116px;
    height: 92px;
    margin: 0 auto 15px;
    object-fit: contain;
}
.login-gate h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -1px;
}
.login-gate p {
    margin: 9px 0 18px;
    color: var(--nyam-muted);
    font-size: 12px;
    line-height: 1.65;
}
.gate-button {
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--nyam-yellow-deep);
    border-radius: 14px;
    background: var(--nyam-yellow);
    color: var(--nyam-ink);
    font-size: 12px;
    font-weight: 950;
}
.location-editor-backdrop {
    position: fixed;
    inset: 0;
    z-index: 700;
    display: none;
    place-items: center;
    padding: 18px;
    background: rgba(17,19,23,.56);
    backdrop-filter: blur(7px);
}
.location-editor-backdrop.show { display: grid; }
.location-editor {
    width: min(1040px, 100%);
    max-height: min(890px, calc(100vh - 36px));
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(370px, .92fr);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 32px 100px rgba(0,0,0,.3);
}
.editor-map-pane {
    position: relative;
    min-height: 650px;
    background: #F0EFE9;
}
#alertEditorMap {
    width: 100%;
    height: 100%;
}
.editor-center-pin {
    position: absolute;
    z-index: 14;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -88%);
    pointer-events: none;
    font-size: 48px;
    line-height: 1;
    filter: drop-shadow(0 5px 8px rgba(0,0,0,.28));
}
.editor-map-top {
    position: absolute;
    z-index: 15;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}
.editor-search {
    min-width: 0;
    flex: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px 0 14px;
    border: 1px solid rgba(23,26,33,.08);
    border-radius: 15px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 10px 28px rgba(0,0,0,.11);
}
.editor-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--nyam-ink);
    font-size: 12px;
    font-weight: 750;
}
.editor-search button,
.editor-location-btn {
    min-height: 36px;
    padding: 0 11px;
    border: 0;
    border-radius: 11px;
    background: var(--nyam-yellow);
    color: var(--nyam-ink);
    font-size: 10px;
    font-weight: 950;
}
.editor-location-btn {
    width: 48px;
    min-height: 48px;
    padding: 0;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,.11);
    font-size: 19px;
}
.editor-map-hint {
    position: absolute;
    z-index: 15;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    max-width: calc(100% - 30px);
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(23,26,33,.88);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}
.editor-form-pane {
    min-width: 0;
    overflow-y: auto;
    padding: 25px;
}
.editor-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}
.editor-form-head h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -1px;
}
.editor-form-head p {
    margin: 5px 0 0;
    color: var(--nyam-muted);
    font-size: 10px;
    line-height: 1.55;
}
.editor-close {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 12px;
    background: #F1F2F4;
    color: #5D626A;
    font-size: 18px;
}
.form-section {
    padding: 17px 0;
    border-top: 1px solid #F0EEE8;
}
.form-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}
.form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 950;
}
.form-label span {
    color: #979BA1;
    font-size: 9px;
    font-weight: 750;
}
.preset-row,
.radius-row,
.category-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.preset-btn,
.radius-btn,
.category-pick {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #E3E5E8;
    border-radius: 12px;
    background: #fff;
    color: #555A62;
    font-size: 10px;
    font-weight: 850;
}
.preset-btn.active,
.radius-btn.active,
.category-pick.active {
    border-color: var(--nyam-yellow-deep);
    background: var(--nyam-yellow);
    color: var(--nyam-ink);
}
.field-input {
    width: 100%;
    height: 47px;
    padding: 0 13px;
    border: 1px solid #E2E4E7;
    border-radius: 13px;
    outline: 0;
    background: #FAFAFA;
    color: var(--nyam-ink);
    font-size: 12px;
    font-weight: 750;
}
.field-input:focus {
    border-color: var(--nyam-yellow-deep);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,201,40,.12);
}
.selected-address {
    margin-top: 9px;
    padding: 11px 12px;
    border-radius: 13px;
    background: #F7F8F9;
    color: #666B73;
    font-size: 10px;
    line-height: 1.55;
}
.selected-address strong {
    display: block;
    color: #363A41;
    margin-bottom: 3px;
}
.category-note {
    margin-top: 8px;
    color: #8B8F96;
    font-size: 9px;
    line-height: 1.55;
}
.favorite-filter {
    min-height: 57px;
    padding: 11px 13px;
    border: 1px solid #ECEAE5;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #FFFDF8;
}
.favorite-filter strong {
    display: block;
    font-size: 11px;
}
.favorite-filter span {
    display: block;
    margin-top: 3px;
    color: #898D94;
    font-size: 9px;
}
.match-summary {
    margin-top: 11px;
    padding: 12px;
    border-radius: 14px;
    background: #FFF5C8;
    color: #665718;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.6;
}
.editor-footer {
    position: sticky;
    bottom: -25px;
    margin: 8px -25px -25px;
    padding: 14px 25px max(14px, env(safe-area-inset-bottom));
    display: flex;
    gap: 8px;
    border-top: 1px solid #EEECE6;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
}
.editor-delete {
    min-height: 49px;
    padding: 0 15px;
    border: 1px solid #FFD5D8;
    border-radius: 14px;
    background: #FFF5F6;
    color: #CB3D48;
    font-size: 11px;
    font-weight: 950;
}
.editor-save {
    min-height: 49px;
    flex: 1;
    border: 1px solid var(--nyam-yellow-deep);
    border-radius: 14px;
    background: var(--nyam-yellow);
    color: var(--nyam-ink);
    font-size: 12px;
    font-weight: 950;
}
.editor-save:disabled {
    opacity: .5;
    cursor: wait;
}
@media (max-width: 900px) {
    .alerts-wrap {
        width: min(100% - 24px, 720px);
        margin-top: 18px;
    }
    .alerts-hero {
        padding: 26px 21px;
        border-radius: 24px;
    }
    .alerts-hero::after {
        right: 12px;
        font-size: 64px;
    }
    .alerts-layout { grid-template-columns: 1fr; }
    .alerts-side { order: -1; }
    .alert-panel {
        padding: 19px;
        border-radius: 22px;
    }
    .location-editor-backdrop {
        align-items: end;
        padding: 0;
    }
    .location-editor {
        width: 100%;
        max-height: 94vh;
        grid-template-columns: 1fr;
        grid-template-rows: 40vh minmax(0, 1fr);
        border-radius: 26px 26px 0 0;
    }
    .editor-map-pane { min-height: 0; }
    .editor-form-pane { padding: 20px 17px; }
    .editor-footer {
        bottom: -20px;
        margin: 8px -17px -20px;
        padding-left: 17px;
        padding-right: 17px;
    }
}
@media (max-width: 520px) {
    .alerts-wrap { width: calc(100% - 20px); }
    .alerts-hero h1 { letter-spacing: -1.4px; }
    .location-card { padding: 14px; }
    .location-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }
    .location-name-line { padding-right: 76px; }
    .editor-map-top {
        left: 10px;
        right: 10px;
        top: 10px;
    }
    .editor-map-hint { bottom: 10px; }
}
