:root {
    --ink: #10213a;
    --muted: #61718a;
    --line: #dce4ee;
    --paper: #ffffff;
    --canvas: #edf2f7;
    --navy: #123d70;
    --navy-deep: #09274b;
    --mint: #0f9f78;
    --mint-soft: #e8f8f2;
    --red: #d82c44;
    --shadow: 0 24px 70px rgba(26, 49, 79, 0.14);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        linear-gradient(rgba(18, 61, 112, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 61, 112, 0.025) 1px, transparent 1px),
        var(--canvas);
    background-size: 28px 28px;
    font-family: "Aptos", "Trebuchet MS", sans-serif;
}

.page-glow {
    position: fixed;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    filter: blur(12px);
    pointer-events: none;
}

.page-glow-left { left: -230px; top: 12%; background: rgba(15, 159, 120, 0.13); }
.page-glow-right { right: -260px; bottom: -100px; background: rgba(18, 61, 112, 0.15); }

.portal-shell {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 0 24px;
}

.brand-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    color: white;
    background: linear-gradient(145deg, var(--red), #ae1731);
    box-shadow: 0 10px 25px rgba(216, 44, 68, 0.25);
    font: 800 23px/1 Georgia, serif;
}

.brand-bar strong,
.brand-bar span { display: block; }
.brand-bar strong { font-size: 17px; letter-spacing: -0.02em; }
.brand-bar > div:nth-child(2) span { margin-top: 2px; color: var(--muted); font-size: 12px; }

.secure-label {
    margin-left: auto;
    padding: 8px 12px;
    border: 1px solid #bfe7da;
    border-radius: 999px;
    color: #087757;
    background: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    font-weight: 700;
}

.secure-label span {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--mint);
}

.state-card {
    width: min(680px, 100%);
    margin: 7vh auto 0;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid rgba(199, 211, 225, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.state-card-center { text-align: center; }
.state-card h1, .notices-heading h1 { margin: 8px 0 10px; font: 700 clamp(27px, 4vw, 42px)/1.08 Georgia, serif; letter-spacing: -0.035em; }
.state-card p, .notices-heading p { color: var(--muted); }

.loader {
    width: 42px;
    height: 42px;
    margin: 0 auto 20px;
    border: 4px solid #dce8f2;
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.security-icon, .error-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    font-size: 22px;
    font-weight: 800;
}

.security-icon { color: #087757; background: var(--mint-soft); }
.error-icon { margin: 0 auto; color: #b51d37; background: #ffedf0; }

.eyebrow {
    margin: 22px 0 0;
    color: var(--mint) !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.lead { max-width: 540px; font-size: 16px; line-height: 1.55; }

.recipient-summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 28px 0;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f7f9fc;
}

.recipient-summary span { font-weight: 700; }
.recipient-summary strong { color: var(--navy); }

label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 800; }
.code-input-wrap { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }

input, button { font: inherit; }

input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #bdcad9;
    border-radius: 12px;
    color: var(--ink);
    background: white;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-align: center;
    outline: none;
}

input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(18, 61, 112, 0.1); }

button {
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--navy), var(--navy-deep));
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(18, 61, 112, 0.18);
}

button:disabled { cursor: wait; opacity: 0.65; }
.form-message { min-height: 20px; margin: 9px 0 0; color: var(--red) !important; font-size: 13px; font-weight: 700; }

.privacy-note {
    display: grid;
    gap: 3px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}
.privacy-note strong { color: var(--ink); }

.notices-view { padding: 24px 0 42px; }
.notices-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.notices-heading .eyebrow { margin-top: 0; }
.notices-heading p:last-child { margin: 0; }
.notice-count { flex: 0 0 auto; padding: 10px 14px; border: 1px solid #b9d3eb; border-radius: 999px; color: var(--navy); background: #eef6fd; font-size: 13px; font-weight: 800; }

.notice-list { display: grid; gap: 14px; }

.notice-card {
    overflow: hidden;
    border: 1px solid #ccd8e6;
    border-radius: 17px;
    background: var(--paper);
    box-shadow: 0 12px 35px rgba(32, 57, 87, 0.08);
}

.notice-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    color: white;
    background: linear-gradient(100deg, var(--navy-deep), var(--navy));
}

.notice-card-head strong { font-size: 13px; }
.notice-card-head span { font-size: 11px; opacity: 0.78; }
.notice-grid { display: grid; grid-template-columns: 1.1fr 0.85fr 0.9fr 1.25fr 1.35fr 1fr 0.9fr; }
.notice-field { min-width: 0; padding: 16px 14px; border-right: 1px solid #e3e9f0; }
.notice-field:last-child { border-right: 0; }
.notice-field span { display: block; margin-bottom: 6px; color: #718097; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.notice-field strong { display: block; overflow: hidden; color: #18263b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.notice-contacts { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 16px; border-top: 1px solid #e3e9f0; background: #f8fafc; color: var(--muted); font-size: 12px; }
.notice-contacts strong { color: var(--ink); }

.support-strip { margin-top: 18px; padding: 16px 18px; border: 1px solid #cde5dc; border-radius: 14px; background: rgba(232, 248, 242, 0.8); }
.support-strip strong, .support-strip span { display: block; }
.support-strip span { margin-top: 3px; color: #4f6e64; font-size: 12px; }

footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 32px; color: #748297; font-size: 11px; }
[hidden] { display: none !important; }

@media (max-width: 920px) {
    .notice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .notice-field { border-bottom: 1px solid #e3e9f0; }
}

@media (max-width: 620px) {
    .portal-shell { width: min(100% - 20px, 1180px); padding-top: 16px; }
    .secure-label { padding: 7px 9px; font-size: 10px; }
    .state-card { margin-top: 3vh; padding: 26px 20px; border-radius: 19px; }
    .recipient-summary, .notices-heading { align-items: flex-start; flex-direction: column; }
    .code-input-wrap { grid-template-columns: 1fr; }
    .notice-grid { grid-template-columns: 1fr; }
    .notice-field { border-right: 0; }
    footer { flex-direction: column; }
}
