:root {
    --home-sidebar: clamp(340px, 31vw, 410px);
    --home-ink: #153443;
    --home-muted: #6c8290;
    --home-line: #dce7ec;
    --home-teal: #1ca6a2;
    --home-cyan: #4db6e8;
}

body.portal-home-page {
    min-width: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--home-ink);
    background:
        radial-gradient(circle at 94% 2%, rgba(77, 182, 232, .10), transparent 30rem),
        linear-gradient(180deg, #f3f8fa 0%, #eef4f7 36rem, #f6f8fa 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.portal-home-page .home-shell {
    min-height: 100vh;
    width: 100%;
    padding: 0;
    display: block;
}

body.portal-home-page .home-card {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--home-sidebar) minmax(0, 1fr);
    background: transparent;
    overflow: visible;
}

body.portal-home-page .home-brand {
    position: fixed;
    z-index: 2;
    inset: 0 auto 0 0;
    width: var(--home-sidebar);
    min-height: 100vh;
    padding: 25px 25px 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    color: #e7f4f7;
    background:
        radial-gradient(circle at 8% 1%, rgba(77, 182, 232, .20), transparent 29%),
        radial-gradient(circle at 100% 82%, rgba(85, 214, 190, .12), transparent 34%),
        linear-gradient(165deg, #102f3e 0%, #092632 48%, #071d28 100%);
    border-right: 1px solid rgba(100, 210, 216, .15);
    box-shadow: 18px 0 45px rgba(8, 30, 42, .12);
}

body.portal-home-page .home-brand::before {
    content: "";
    position: absolute;
    top: -92px;
    right: -82px;
    width: 205px;
    height: 205px;
    border: 1px solid rgba(112, 215, 219, .13);
    border-radius: 50%;
    box-shadow: 0 0 0 27px rgba(112, 215, 219, .025), 0 0 0 54px rgba(112, 215, 219, .016);
    pointer-events: none;
}

.home-brand-heading {
    position: relative;
    z-index: 1;
    padding: 0 2px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.home-brand-heading a { display: inline-flex; }
body.portal-home-page .home-brand-heading .home-logo {
    width: 166px;
    height: 57px;
    max-height: none;
    margin: 0;
    padding: 3px 0;
    display: block;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 3px 7px rgba(0, 0, 0, .18));
}
.home-brand-heading span {
    color: #86a7b3;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .17em;
    text-transform: uppercase;
}

body.portal-home-page .home-brand-content {
    position: relative;
    z-index: 1;
    max-width: none;
    margin: auto 0;
    padding: 27px 0 22px;
    display: block;
    text-align: left;
}
body.portal-home-page .home-kicker {
    display: block;
    margin: 0 0 8px;
    color: #65d8dd;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.home-brand-content h2 {
    max-width: 345px;
    margin: 0;
    color: #fff;
    font-size: clamp(27px, 2.7vw, 37px);
    line-height: 1.09;
    letter-spacing: -.035em;
}
body.portal-home-page .home-brand-text {
    max-width: 345px;
    margin: 13px 0 0;
    color: #b8cdd5;
    font-size: 12px;
    line-height: 1.6;
    opacity: 1;
}

.home-brand-features {
    margin-top: 24px;
    display: grid;
    gap: 7px;
}
.home-brand-features article {
    min-width: 0;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 11px;
}
.home-brand-feature-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64d8ca;
    background: rgba(95, 214, 197, .10);
    border-radius: 9px;
}
.home-brand-feature-icon svg { width: 17px; height: 17px; stroke: currentColor; }
.home-brand-features strong { display: block; color: #f5fbfc; font-size: 10px; }
.home-brand-features small { display: block; margin-top: 2px; color: #86a7b3; font-size: 8px; }

.home-brand-guide {
    position: relative;
    z-index: 1;
    padding: 14px 15px;
    color: #a8c0c8;
    background: rgba(3, 21, 29, .28);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
}
.home-brand-guide span {
    display: block;
    margin-bottom: 5px;
    color: #58d0c0;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.home-brand-guide strong { display: block; margin-bottom: 4px; color: #f3fafb; font-size: 11px; }
.home-brand-guide p { margin: 0; font-size: 9px; line-height: 1.5; }
body.portal-home-page .home-meta {
    position: relative;
    z-index: 1;
    inset: auto;
    margin: 12px 0 0;
    color: #75939e;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    opacity: 1;
    text-align: center;
}

body.portal-home-page .home-content {
    grid-column: 2;
    min-width: 0;
    min-height: 100vh;
    padding: 32px clamp(24px, 4.5vw, 68px) 42px;
    display: flex;
    align-items: stretch;
}
.home-content-inner {
    width: min(1120px, 100%);
    min-height: calc(100vh - 74px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-hero {
    position: relative;
    min-height: clamp(500px, 64vh, 650px);
    padding: clamp(34px, 5vw, 56px);
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        radial-gradient(circle at 88% 5%, rgba(77, 182, 232, .24), transparent 24rem),
        linear-gradient(135deg, #123e54 0%, #0d2c3b 55%, #092532 100%);
    border-radius: 21px;
    box-shadow: 0 18px 45px rgba(9, 37, 50, .14);
}
.home-hero::after {
    content: "";
    position: absolute;
    right: -74px;
    bottom: -148px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(112, 215, 219, .14);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgba(112, 215, 219, .03), 0 0 0 70px rgba(112, 215, 219, .02);
    pointer-events: none;
}
.home-hero-inner { position: relative; z-index: 1; max-width: 820px; }
.home-hero-kicker {
    display: block;
    margin-bottom: 9px;
    color: #65d8dd;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}
body.portal-home-page .home-title {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.06;
    letter-spacing: -.045em;
    text-align: left;
}
body.portal-home-page .home-subtitle {
    width: auto;
    max-width: 720px;
    margin: 17px 0 0;
    color: #bfd2d9;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}

body.portal-home-page .home-actions {
    width: auto;
    margin-top: 31px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
body.portal-home-page .main-action,
body.portal-home-page .secondary-action {
    min-width: 178px;
    min-height: 50px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}
body.portal-home-page .main-action {
    color: #073039;
    background: linear-gradient(135deg, #78ead4, #58c8dc);
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(65, 196, 197, .18);
}
body.portal-home-page .main-action:hover { color: #073039; filter: saturate(1.07); transform: translateY(-1px); }
body.portal-home-page .secondary-action {
    color: #e6f5f7;
    background: rgba(255, 255, 255, .065);
    border: 1px solid rgba(255, 255, 255, .15);
}
body.portal-home-page .secondary-action:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .24); }
body.portal-home-page .icon { width: 17px; height: 17px; stroke: currentColor; }

.home-flow {
    position: relative;
    z-index: 1;
    margin: -46px 18px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.home-flow article {
    min-width: 0;
    min-height: 112px;
    padding: 20px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid var(--home-line);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 58, 72, .07);
}
.home-flow-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #176b7e;
    background: #e7f5f7;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 900;
}
.home-flow strong { display: block; margin-top: 2px; color: #173c4b; font-size: 12px; }
.home-flow p { margin: 5px 0 0; color: var(--home-muted); font-size: 10px; line-height: 1.5; }

.home-help { margin: 22px 0 0; color: #7d929b; font-size: 9px; text-align: center; }

@media (max-width: 930px) {
    :root { --home-sidebar: 100%; }
    body.portal-home-page .home-card { grid-template-columns: 1fr; }
    body.portal-home-page .home-brand {
        position: relative;
        inset: auto;
        width: 100%;
        min-height: auto;
        padding: 20px 23px 24px;
        box-shadow: 0 16px 38px rgba(8, 30, 42, .13);
    }
    .home-brand-heading { padding-bottom: 12px; }
    body.portal-home-page .home-brand-heading .home-logo { width: 143px; height: 48px; }
    body.portal-home-page .home-brand-content { margin: 0; padding: 23px 0 0; }
    .home-brand-content h2 { max-width: 650px; font-size: clamp(27px, 5.5vw, 36px); }
    body.portal-home-page .home-brand-text { max-width: 680px; }
    .home-brand-features,
    .home-brand-guide,
    body.portal-home-page .home-meta { display: none; }
    body.portal-home-page .home-content { grid-column: 1; min-height: auto; padding: 28px 20px 36px; }
    .home-content-inner { min-height: 0; display: block; }
    .home-hero { min-height: 0; display: block; }
}

@media (max-width: 720px) {
    .home-flow { margin: -12px 10px 18px; grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    body.portal-home-page .home-brand { padding: 16px 17px 20px; }
    .home-brand-heading { flex-direction: row; align-items: center; justify-content: space-between; }
    body.portal-home-page .home-brand-heading .home-logo { width: 127px; height: 42px; }
    .home-brand-content h2 { font-size: 26px; }
    body.portal-home-page .home-brand-text { margin-top: 10px; font-size: 11px; }
    body.portal-home-page .home-content { padding: 20px 12px 28px; }
    .home-hero { padding: 29px 21px 38px; border-radius: 17px; }
    body.portal-home-page .home-title { font-size: 34px; }
    body.portal-home-page .home-subtitle { font-size: 12px; }
    body.portal-home-page .home-actions { display: grid; }
    body.portal-home-page .main-action,
    body.portal-home-page .secondary-action { width: 100%; }
    .home-flow { margin-left: 7px; margin-right: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    body.portal-home-page .main-action { transition: none; }
}
