:root {
    color-scheme: dark;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "Segoe UI",
        sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at top,
            #18202f 0,
            #090b10 40%,
            #050609 100%
        );
    color: #f7f8fb;
    min-height: 100vh;
}

.app {
    width: min(100%, 920px);
    margin: 0 auto;
    padding:
        max(24px, env(safe-area-inset-top))
        20px
        max(30px, env(safe-area-inset-bottom));
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 46px;
}

.brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.subtitle {
    margin-top: 4px;
    color: #9aa4b2;
    font-size: 13px;
}

.status {
    padding: 8px 12px;
    border: 1px solid #263040;
    border-radius: 999px;
    color: #9ef0bd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero {
    margin-bottom: 36px;
}

.eyebrow {
    color: #9aa4b2;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero h1 {
    margin: 8px 0 8px;
    font-size: clamp(38px, 10vw, 64px);
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0 0 24px;
    color: #abb3bf;
}

.voice-button {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 18px;
    background: #202735;
    color: white;
    font-size: 17px;
    font-weight: 700;
    opacity: 0.75;
}

.hero small {
    display: block;
    margin-top: 10px;
    color: #6f7886;
}

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

.card {
    min-height: 150px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 22px;
    background: rgba(255,255,255,.045);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.card span {
    display: block;
    margin-bottom: 18px;
    font-size: 25px;
}

.card strong {
    display: block;
    font-size: 17px;
}

.card p {
    margin: 7px 0 0;
    color: #8f98a5;
    font-size: 13px;
    line-height: 1.4;
}

@media (min-width: 700px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.notification-button {
    width: 100%;
    min-height: 54px;
    margin-top: 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: rgba(255,255,255,.07);
    color: #f7f8fb;
    font-size: 16px;
    font-weight: 700;
}

.notification-button:disabled {
    opacity: .7;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        max(28px, env(safe-area-inset-top))
        22px
        max(28px, env(safe-area-inset-bottom));
}

.login-card {
    width: min(100%, 420px);
    padding: 30px 24px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 28px;
    background: rgba(255,255,255,.045);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.login-logo {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border: 2px solid #bed2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
}

.login-brand {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .18em;
}

.login-subtitle {
    text-align: center;
    margin: 8px 0 30px;
    color: #8f98a5;
}

.login-card label {
    display: block;
    margin: 16px 0 7px;
    font-size: 13px;
    color: #abb3bf;
}

.login-card input {
    width: 100%;
    height: 54px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 15px;
    background: rgba(0,0,0,.24);
    color: white;
    font-size: 16px;
    outline: none;
}

.login-card input:focus {
    border-color: #9ebcff;
}

.login-button {
    width: 100%;
    height: 56px;
    margin-top: 24px;
    border: 0;
    border-radius: 16px;
    background: #eef3ff;
    color: #10131a;
    font-size: 16px;
    font-weight: 800;
}

.login-error {
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,80,80,.12);
    color: #ffb2b2;
    font-size: 13px;
}

.login-security {
    margin-top: 20px;
    text-align: center;
    color: #697382;
    font-size: 12px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-button {
    height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 999px;
    background: transparent;
    color: #8993a1;
    font-size: 11px;
}

/* NEXO_V05_ALERTS_START */

.alerts-panel {
    margin-top: 34px;
    padding: 22px;
    border:
        1px solid
        rgba(255,255,255,.07);
    border-radius: 24px;
    background:
        rgba(255,255,255,.035);
}

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

.section-eyebrow {
    margin-bottom: 5px;
    color: #7f8997;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    font-size: 25px;
    letter-spacing: -.025em;
}

.alerts-updated {
    color: #707a88;
    font-size: 11px;
    text-align: right;
}

.alerts-metrics {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 18px;
}

.metric-card {
    min-width: 0;
    padding: 13px;
    border:
        1px solid
        rgba(255,255,255,.055);
    border-radius: 16px;
    background:
        rgba(255,255,255,.035);
}

.metric-card span {
    display: block;
    margin-bottom: 6px;
    color: #788290;
    font-size: 11px;
}

.metric-card strong {
    display: block;
    font-size: 24px;
}

.alerts-list {
    display: grid;
    gap: 9px;
}

.alert-item {
    padding: 15px;
    border:
        1px solid
        rgba(255,255,255,.06);
    border-radius: 17px;
    background:
        rgba(0,0,0,.14);
}

.alert-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.alert-meta {
    color: #87919e;
    font-size: 11px;
}

.alert-status {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.alert-status.sent {
    background:
        rgba(81,200,125,.12);
    color: #9ee6b8;
}

.alert-status.pending {
    background:
        rgba(241,194,84,.12);
    color: #f1d68d;
}

.alert-status.error {
    background:
        rgba(255,91,91,.12);
    color: #ffaaaa;
}

.alert-title {
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 750;
}

.alert-body {
    color: #9ba4b0;
    font-size: 13px;
    line-height: 1.45;
}

.alerts-loading,
.alerts-empty,
.alerts-error {
    padding: 20px 10px;
    text-align: center;
    color: #737d8a;
    font-size: 13px;
}

.alerts-error {
    color: #ffaaaa;
}

@media (max-width: 620px) {

    .alerts-panel {
        padding: 17px;
    }

    .alerts-metrics {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .section-heading {
        align-items: flex-start;
    }
}

/* NEXO_V05_ALERTS_END */

