body.portal-site {
    --portal-ink: #12272c;
    --portal-muted: #aab8b5;
    --portal-paper: #fbfaf6;
    --portal-line: #e6e8e1;
    min-height: 100vh;
    color: var(--portal-ink);
    background-color: #12272c;
    background-image: radial-gradient(ellipse at 76% 45%, #29484a 0, #1a3438 32%, transparent 65%);
    border-top: 0;
}
.portal-site .public-brand {
    width: min(1180px, 100%);
    min-height: 92px;
    margin: 0 auto;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ffffff1a;
}
.portal-site .public-brand img { display: block; width: 154px; max-height: 58px; }
.portal-site .public-brand > span {
    color: #c0ccbf;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}
.portal-site .public-content {
    width: min(1180px, 100%);
    max-width: none;
    margin: 0 auto;
    padding: 40px 24px 64px;
}
.portal-shell {
    min-height: min(690px, calc(100vh - 200px));
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
    align-items: center;
    gap: clamp(52px, 8vw, 112px);
}
.portal-story { color: #f7f5eb; padding: 26px 0 26px 18px; }
.portal-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 28px;
    color: #c6d5c9;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.7px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #c6dc78; box-shadow: 0 0 0 4px #c6dc7826; }
.portal-story h1 {
    max-width: 620px;
    margin: 0 0 22px;
    color: #fbfaf4;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 6.2vw, 76px);
    font-weight: 400;
    line-height: .99;
    letter-spacing: -2.4px;
}
.portal-story h1 em { color: #c6dc78; font-weight: 400; }
.portal-lede { max-width: 460px; margin: 0; color: #d2dcd7; font-size: 17px; line-height: 1.7; }
.setup-steps { display: grid; gap: 0; max-width: 470px; margin: 38px 0 0; padding: 0; list-style: none; }
.setup-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 17px 0; border-top: 1px solid #ffffff25; }
.setup-steps li > span { padding-top: 1px; color: #c6dc78; font-size: 11px; font-weight: 700; letter-spacing: .8px; }
.setup-steps strong { display: block; margin: 0 0 4px; color: #f7f5eb; font-size: 13px; font-weight: 650; }
.setup-steps small { color: #d0dad4; font-size: 12px; }
.portal-help { display: flex; align-items: flex-start; gap: 13px; max-width: 470px; margin-top: 30px; color: #d3ddd8; }
.portal-help p { margin: 0; font-size: 12px; line-height: 1.65; }
.portal-help strong { color: #f7f5eb; font-weight: 650; }
.help-icon { flex: 0 0 23px; width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid #ffffff54; border-radius: 50%; color: #d5e19b; font-size: 12px; font-weight: 700; }
.portal-card {
    width: 100%;
    padding: clamp(28px, 4vw, 44px);
    color: var(--portal-ink);
    background: var(--portal-paper);
    border: 1px solid #ffffffa8;
    border-radius: 14px;
    box-shadow: 0 28px 90px #07161866;
}
.secure-mark { width: 43px; height: 43px; display: grid; place-items: center; margin: 0 0 27px; border-radius: 12px; color: #233e39; background: #e9efdb; }
.secure-mark svg { width: 23px; height: 23px; }
.portal-card .eyebrow { margin: 0 0 9px; color: #55705c; font-size: 9px; letter-spacing: 1.55px; }
.portal-card h2 { margin: 0 0 11px; color: #142b30; font-size: 25px; font-weight: 650; letter-spacing: -.7px; }
.card-copy { margin: 0; color: #667572; font-size: 13px; line-height: 1.7; }
.one-time-note { display: flex; gap: 12px; align-items: flex-start; margin: 24px 0 2px; padding: 15px; background: #f0f2eb; border-radius: 8px; }
.one-time-note > span { color: #6d8152; font-size: 18px; line-height: 1.1; }
.one-time-note p { margin: 0; color: #667572; font-size: 11px; line-height: 1.6; }
.one-time-note strong { color: #263e38; font-size: 12px; }
.portal-site .btn-primary { color: #152629; background: #c6dc78; border-color: #c6dc78; }
.portal-site .btn-primary:hover { background: #d1e58c; border-color: #d1e58c; }
.portal-site .btn-wide { min-height: 52px; margin-top: 21px; border-radius: 7px; font-size: 13px; }
.portal-site .btn-wide span { margin-left: auto; font-size: 17px; }
.portal-form-help { min-height: 19px; margin: 13px 0 0; color: #7c8985; font-size: 11px; text-align: center; }
.portal-site button:disabled { color: #60706a; background: #d7ddd1; border-color: #d7ddd1; opacity: 1; }
.portal-site .public-footer { width: min(1180px, 100%); margin: 0 auto; padding: 18px 24px 26px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #ffffff1a; color: #aab8b5; font-size: 10px; }
.portal-site .public-footer span:first-child { color: #e8ebe1; font-weight: 700; letter-spacing: .5px; }
.credential-card label { margin: 20px 0 7px; color: #394d49; }
.credential-wrap { position: relative; }
.credential-wrap .form-control { min-height: 48px; padding: 11px 72px 11px 13px; border-color: #d8ddd5; border-radius: 7px; background: #fff; font-size: 14px; }
.credential-wrap .credential { color: #1a3134; font-family: "SFMono-Regular", Consolas, monospace; }
.copy-button { position: absolute; top: 7px; right: 7px; min-width: 54px; min-height: 34px; padding: 5px 9px; border: 0; border-radius: 5px; color: #345048; background: #edf1e7; font-size: 10px; font-weight: 700; }
.copy-button:hover { background: #e2e9d7; }
.password-note { display: flex; gap: 9px; align-items: center; margin: 12px 0 0; color: #786442; font-size: 11px; }
.password-note span { display: grid; flex: 0 0 17px; width: 17px; height: 17px; place-items: center; border-radius: 50%; color: #66522f; background: #f1e7cc; font-size: 10px; font-weight: 800; }
.portal-link-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.portal-link-row a { color: #486354; font-size: 11px; font-weight: 650; }
.mobile-setup { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--portal-line); }
.mobile-setup summary { cursor: pointer; color: #324a43; font-size: 12px; font-weight: 700; }
.mobile-setup ol { margin: 13px 0 0; padding-left: 19px; color: #687570; font-size: 11px; line-height: 1.75; }
.mobile-setup li { padding-left: 3px; margin: 5px 0; }
.portal-card-foot { margin: 23px 0 0; padding-top: 17px; border-top: 1px solid var(--portal-line); color: #7a8580; font-size: 10px; line-height: 1.6; }
.secure-mark-muted { color: #81604c; background: #f3eae2; }
.portal-shell-invalid .portal-card { align-self: center; }
.portal-site :focus-visible { outline: 3px solid #8b5d35; outline-offset: 3px; }
@media(max-width:850px) {
    .portal-site .public-content { padding: 25px 22px 44px; }
    .portal-shell { min-height: auto; grid-template-columns: 1fr; gap: 35px; }
    .portal-card { grid-row: 1; }
    .portal-story { grid-row: 2; }
    .portal-story { padding: 20px 3px 0; }
    .portal-story h1 { font-size: clamp(48px, 10vw, 68px); }
    .portal-lede { font-size: 15px; }
    .setup-steps { margin-top: 26px; }
    .portal-help { margin-top: 23px; }
    .portal-card { max-width: 600px; margin: 0 auto; }
}
@media(max-width:550px) {
    .portal-site .public-brand { min-height: 76px; padding: 16px 20px; }
    .portal-site .public-brand img { width: 128px; max-height: 46px; }
    .portal-site .public-brand > span { font-size: 8px; letter-spacing: 1.2px; }
    .portal-site .public-content { padding: 16px 17px 36px; }
    .portal-shell { gap: 25px; }
    .portal-story { padding-top: 18px; }
    .portal-kicker { margin-bottom: 20px; font-size: 9px; }
    .portal-story h1 { margin-bottom: 15px; font-size: 48px; letter-spacing: -1.5px; }
    .portal-card { padding: 27px 22px; border-radius: 11px; }
    .portal-card h2 { font-size: 22px; }
    .portal-link-row { flex-direction: column; gap: 11px; }
    .portal-site .public-footer { padding: 16px 20px 22px; flex-direction: column; gap: 4px; }
}
@media(prefers-reduced-motion:no-preference) {
    .portal-story,.portal-card { animation: portal-arrive .45s ease-out both; }
    .portal-card { animation-delay: .08s; }
    @keyframes portal-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
