.portal,
.landing {
    --portal-ink: #1f2937;
    --portal-muted: #5b6473;
    --portal-surface: #ffffff;
    --portal-accent: #d32f2f;
    --portal-accent-2: #153355;
    --portal-accent-3: #b71c1c;
    --portal-line: rgba(31, 41, 55, 0.1);
    --portal-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --portal-glow: 0 15px 35px rgba(211, 47, 47, 0.2);
}

.eps-full {
    margin-bottom: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.eps-full > .container,
.eps-full > .container-fluid {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.eps-full main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.eps-full .landing,
.eps-full .portal {
    flex: 1 0 auto;
}

.eps-full .footer {
    position: relative !important;
    margin-top: auto;
}

.portal {
    font-family: "Space Grotesk", "Segoe UI", Tahoma, sans-serif;
    color: var(--portal-ink);
    padding: 1.75rem 0 2.75rem;
    background: radial-gradient(circle at top left, #f2f6fb 0%, #eef4f7 45%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.landing {
    font-family: "Space Grotesk", "Segoe UI", Tahoma, sans-serif;
    color: var(--portal-ink);
    padding: 2rem 0 1.5rem;
    background: radial-gradient(circle at top, #f2f6fb 0%, #eef4f7 45%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing::before,
.landing::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    opacity: 0.14;
    z-index: 0;
}

.landing::before {
    width: 300px;
    height: 300px;
    background: var(--portal-accent);
    top: -140px;
    left: -120px;
}

.landing::after {
    width: 260px;
    height: 260px;
    background: var(--portal-accent-2);
    bottom: -150px;
    right: -120px;
}

.landing-wrap {
    width: min(1480px, 100%);
    margin: 0 auto;
    padding: 0 clamp(0.75rem, 2.2vw, 1.75rem);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.landing-art {
    background: rgba(255, 255, 255, 0.82);
    border-radius: 24px;
    padding: 1.75rem;
    border: 1px solid var(--portal-line);
    box-shadow: var(--portal-shadow);
    display: grid;
    gap: 1.3rem;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--portal-accent-2);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.landing-logo {
    width: 42px;
    height: 42px;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
    box-shadow: none;
}

.landing-title {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: clamp(2rem, 3.6vw, 3.1rem);
    line-height: 1.1;
    margin: 0;
}

.landing-copy {
    color: var(--portal-muted);
    font-size: 1rem;
    margin: 0;
}

.landing-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.landing-stat {
    background: #fff;
    border: 1px solid var(--portal-line);
    border-radius: 14px;
    padding: 0.85rem;
    text-align: center;
}

.landing-stat-value {
    font-weight: 700;
    font-size: 1.05rem;
}

.landing-stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--portal-muted);
}

.landing-image-wrap {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--portal-line);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.landing-image {
    width: 100%;
    height: auto;
    display: block;
}

.landing-card {
    background: #fff;
    border-radius: 24px;
    padding: 1.75rem;
    border: 1px solid var(--portal-line);
    box-shadow: var(--portal-shadow);
}

.landing-card-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.landing-card-subtitle {
    color: var(--portal-muted);
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
}

.landing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.landing-list li {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    color: var(--portal-muted);
    font-size: 0.95rem;
}

.landing-list i {
    color: var(--portal-accent);
}

.landing-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: linear-gradient(135deg, var(--portal-accent) 0%, #153355 100%);
    color: #fff;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--portal-glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-login-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(211, 47, 47, 0.35);
}

.landing-help {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--portal-muted);
}

.portal::before,
.portal::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    opacity: 0.15;
    z-index: 0;
}

.portal::before {
    width: 320px;
    height: 320px;
    background: var(--portal-accent);
    top: -120px;
    right: -120px;
}

.portal::after {
    width: 260px;
    height: 260px;
    background: var(--portal-accent-2);
    bottom: -160px;
    left: -120px;
}

.portal-inner {
    position: relative;
    z-index: 1;
    width: min(1600px, 100%);
    margin: 0 auto;
    padding: 0 clamp(0.75rem, 1.8vw, 1.5rem);
}

.portal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: portal-rise 0.6s ease both;
}

.portal-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--portal-accent-2);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.portal-title {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.05;
    margin-bottom: 0.75rem;
}

.portal-subtitle {
    color: var(--portal-muted);
    font-size: 1rem;
    max-width: 36rem;
    margin-bottom: 1.5rem;
}

.portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.portal-button {
    border: none;
    background: linear-gradient(135deg, var(--portal-accent) 0%, #153355 100%);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: var(--portal-glow);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(211, 47, 47, 0.35);
    color: #fff;
}

.portal-button.secondary {
    background: transparent;
    color: var(--portal-accent-2);
    border: 1px solid var(--portal-accent-2);
    box-shadow: none;
}

.portal-button.secondary:hover {
    background: rgba(15, 76, 92, 0.08);
    color: var(--portal-accent-2);
}

.hero-card {
    background: linear-gradient(150deg, #ffffff 0%, #f2f6fb 100%);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(211, 47, 47, 0.15);
    box-shadow: var(--portal-shadow);
}

.identity {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.identity-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--portal-accent) 0%, #153355 100%);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

.identity-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.identity-meta {
    color: var(--portal-muted);
    font-size: 0.85rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.stat-tile {
    border-radius: 14px;
    padding: 0.8rem;
    background: #fff;
    border: 1px solid var(--portal-line);
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--portal-muted);
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.portal-alerts {
    background: var(--portal-surface);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--portal-line);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
    margin-bottom: 1.5rem;
    animation: portal-rise 0.6s ease both;
}

.alert-ticker {
    display: flex;
    gap: 1rem;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--portal-line);
    background: rgba(21, 51, 85, 0.03);
    padding: 0.75rem;
    position: relative;
}

.alert-track {
    display: flex;
    gap: 0.9rem;
    align-items: stretch;
    width: max-content;
    animation: alert-scroll 28s linear infinite;
}

.alert-ticker:hover .alert-track {
    animation-play-state: paused;
}

.alert-banner {
    min-width: clamp(240px, 28vw, 380px);
    background: #fff;
    border-radius: 14px;
    border: 1px solid #153355;
    padding: 0.85rem 1rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    position: relative;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: alert-flicker 3.6s ease-in-out infinite;
}

.alert-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

.alert-banner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 4px;
    border-radius: 999px;
    background: green;
    opacity: 0.65;
}

.alert-banner.tone-info::before {
    background: var(--portal-accent-2);
}

.alert-banner.tone-warn::before,
.alert-banner.tone-alert::before {
    background: var(--portal-accent);
}

.alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--portal-accent) 0%, #153355 100%);
    color: var(--portal-surface);
    flex-shrink: 0;
}

.alert-banner.tone-warn .alert-icon,
.alert-banner.tone-alert .alert-icon {
    background: linear-gradient(135deg, var(--portal-accent) 0%, #153355 100%);
    color: var(--portal-surface);
}

.alert-body {
    display: grid;
    gap: 0.25rem;
}

.alert-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.alert-meta {
    font-size: 0.78rem;
    color: var(--portal-muted);
}

.alert-note {
    font-size: 0.82rem;
    color: var(--portal-muted);
}

.alert-action {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--portal-accent-2);
}

.alert-banner:nth-child(2n) {
    animation-delay: 0.4s;
}

.alert-banner:nth-child(3n) {
    animation-delay: 0.8s;
}

.portal-panel {
    background: var(--portal-surface);
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid var(--portal-line);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
    position: relative;
    animation: portal-rise 0.6s ease both;
}

.portal-panel:nth-child(2) { animation-delay: 0.08s; }
.portal-panel:nth-child(3) { animation-delay: 0.16s; }
.portal-panel:nth-child(4) { animation-delay: 0.24s; }

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.panel-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.panel-tag {
    background: #153355;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.subject-list {
    display: grid;
    gap: 0.75rem;
}

.subject-ticker {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.subject-card {
    border-radius: 14px;
    padding: 0.9rem;
    border: 1px solid var(--portal-line);
    background: #fff;
    display: grid;
    gap: 0.3rem;
}

.subject-title {
    font-weight: 600;
}

.subject-meta {
    font-size: 0.85rem;
    color: var(--portal-muted);
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--portal-accent) 0%, #153355 100%);
    color: white;
    font-weight: 600;
}

.notification-ticker {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.notification-track {
    display: grid;
    gap: 0.9rem;
}

.notification-track.is-scrolling {
    animation: notification-scroll 20s linear infinite;
}

.notification-ticker.is-scrolling:hover .notification-track.is-scrolling {
    animation-play-state: paused;
}

.notification-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
}

.notification-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--portal-accent) 0%, #153355 100%);
    color: var(--portal-accent-2);
}

.notification-icon.tone-good {
    background: rgba(16, 185, 129, 0.18);
    color: #0f766e;
}

.notification-icon.tone-warn {
    background: rgba(211, 47, 47, 0.2);
    color: #b71c1c;
}

.notification-icon.tone-alert {
    background: linear-gradient(135deg, var(--portal-accent) 0%, #153355 100%);
    color: white;
}

.notification-icon.tone-info {
    background: rgba(21, 51, 85, 0.15);
    color: var(--portal-accent-2);
}

.notification-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.notification-time {
    font-size: 0.8rem;
    color: var(--portal-muted);
}

.quick-actions {
    display: grid;
    gap: 0.6rem;
}

.quick-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--portal-line);
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}

.quick-action span {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.quick-action small {
    color: var(--portal-muted);
    font-size: 0.75rem;
}

.role-highlight {
    border-left: 4px solid var(--portal-accent-3);
    padding-left: 1rem;
    margin-top: 1rem;
    color: var(--portal-muted);
    font-size: 0.9rem;
}

.role-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.role-ticker {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.role-track {
    display: grid;
    gap: 0.7rem;
}

.role-track.is-scrolling {
    animation: role-scroll 24s linear infinite;
}

.role-ticker.is-scrolling:hover .role-track.is-scrolling {
    animation-play-state: paused;
}

.role-list li {
    background: #fff;
    border: 1px solid var(--portal-line);
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    font-size: 0.9rem;
    color: var(--portal-muted);
}

.role-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.role-metric {
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--portal-line);
    padding: 0.6rem;
    text-align: center;
}

.role-metric-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.role-metric-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--portal-muted);
}

@media (max-width: 575px) {
    .role-metrics {
        grid-template-columns: 1fr;
    }
}

@keyframes portal-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes alert-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes alert-flicker {
    0%,
    100% {
        box-shadow: 0 12px 25px rgba(15, 23, 42, 0.06);
    }
    50% {
        box-shadow: 0 16px 32px rgba(211, 47, 47, 0.18);
    }
}

@keyframes notification-scroll {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%);
    }
}

@keyframes role-scroll {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%);
    }
}

@media (max-width: 991px) {
    .portal-hero {
        grid-template-columns: 1fr;
    }

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

    .landing-wrap {
        grid-template-columns: 1fr;
    }

    .landing-card {
        order: -1;
    }

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

    .landing {
        align-items: flex-start;
        justify-content: flex-start;
    }
}

@media (max-width: 575px) {
    .portal {
        padding: 1.25rem 0 2.25rem;
    }

    .portal-alerts {
        padding: 1.25rem;
    }

    .alert-ticker {
        overflow-x: auto;
    }

    .alert-track {
        animation: none;
        width: auto;
    }

    .alert-banner {
        min-width: 220px;
    }

    .landing {
        padding: 1.75rem 0 1.25rem;
    }

    .portal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .portal-inner {
        padding: 0 0.65rem;
    }

    .landing-wrap {
        padding: 0 0.65rem;
    }

    .landing-art,
    .landing-card {
        padding: 1.25rem;
    }

    .landing-stats {
        grid-template-columns: 1fr;
    }
}
.hero-panel {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(135deg, #fdfbff, #e8f1ff);
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 8px 30px rgba(21, 51, 85, 0.08);
    margin-bottom: 1.5rem;
}

.hero-content {
    max-width: 60%;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    color: #0d2440;
    margin-bottom: 0.25rem;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    color: #5b6473;
    margin-bottom: 1rem;
}

.hero-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-chip {
    background: #fff;
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    color: #1f3d8a;
    border: 1px solid rgba(21, 51, 85, 0.2);
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    align-items: center;
}

.btn-pill {
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(21, 51, 85, 0.15);
}

.hero-secondary {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    color: #0d2440;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-card {
    padding: 1.25rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(21, 51, 85, 0.08);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.info-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #5b6473;
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.table-card {
    background: #fdfbff;
    border: none;
}
