﻿@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&family=Roboto+Slab:wght@400;500;600;700&display=swap');

:root {
    --navy: #0a1a32;
    --navy-soft: #17304f;
    --blue: #286697;
    --blue-pale: #e9f2f8;
    --gold: #d5ad40;
    --ink: #1c2c3e;
    --muted: #647386;
    --line: #dce5ec;
    --paper: #fff;
    --canvas: #f5f8fa;
    font-family: Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-width { width: min(100% - 48px, 1180px); margin-inline: auto; }

.utility-bar { background: var(--navy); color: #d8e6ef; font-size: 12px; }
.utility-inner { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.utility-bar a { color: #f4f7fa; }
.brand-header {
    background-color: #dfedf6;
    background-image: radial-gradient(circle at 15% 20%, #fff9 0 1px, transparent 2px), radial-gradient(circle at 85% 70%, #fff8 0 1px, transparent 2px), linear-gradient(95deg, #d5e9f4, #edf5fa 55%, #dcebf5);
    background-size: 82px 82px, 116px 116px, auto;
    border-bottom: 1px solid #cddde8;
}
.brand-inner { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-link { display: flex; align-items: center; gap: 17px; color: var(--navy); }
.brand-link:hover { text-decoration: none; }
.brand-logo { width: 104px; height: auto; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; gap: 4px; }
.brand-copy strong { font: 700 clamp(21px, 2.5vw, 29px)/1.14 'Roboto Slab', Georgia, serif; letter-spacing: -.03em; }
.brand-copy > span { color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.brand-location { color: #426079; font-size: 13px; white-space: nowrap; }
.site-nav { background: var(--navy); color: #fff; }
.nav-inner, .nav-links { display: flex; align-items: stretch; }
.nav-inner { justify-content: space-between; gap: 20px; }
.nav-links { flex-wrap: wrap; }
.nav-links a, .nav-logout { display: inline-flex; align-items: center; min-height: 47px; padding: 0 21px; color: #fff; font-size: 13px; font-weight: 600; border-left: 1px solid #ffffff20; }
.nav-links a:last-child { border-right: 1px solid #ffffff20; }
.nav-links a:hover, .nav-links a.is-active, .nav-logout:hover { background: #203b5c; text-decoration: none; }
.nav-links a.is-active { box-shadow: inset 0 -3px var(--gold); }
.nav-inner form { margin: 0; }
.nav-logout { gap: 11px; border: 0; background: none; }

.site-footer { margin-top: auto; background: var(--navy); color: #c7d4e2; font-size: 12px; }
.footer-inner { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.auth-stage { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 540px); max-width: 1440px; width: 100%; margin: 0 auto; background: var(--paper); }
.auth-visual { position: relative; min-height: 620px; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; }
.auth-visual::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('iicc-centre.jpg') center/cover no-repeat; }
.auth-visual::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #08162a05 28%, #071626e8 100%); }
.auth-visual-content { padding: 46px clamp(30px, 5vw, 74px) 52px; max-width: 680px; }
.auth-visual .eyebrow { color: #e7c363; }
.auth-visual h2 { font: 600 clamp(30px, 3.7vw, 50px)/1.12 'Roboto Slab', Georgia, serif; letter-spacing: -.04em; margin: 0 0 15px; }
.auth-visual p:last-child { max-width: 440px; margin: 0; color: #e6ebf1; line-height: 1.65; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px clamp(26px, 4vw, 68px); }
.auth-form-wrap { width: min(100%, 425px); }
.eyebrow { margin: 0 0 13px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.heading { font: 600 clamp(29px, 3.2vw, 39px)/1.16 'Roboto Slab', Georgia, serif; letter-spacing: -.04em; color: var(--navy); margin: 0; }
.subheading { color: var(--muted); line-height: 1.65; margin: 12px 0 0; font-size: 14px; }
.auth-intro { margin-bottom: 30px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 19px; }
.field label { font-size: 13px; font-weight: 700; color: #2b3b4f; }
.field input, .field select { width: 100%; min-height: 48px; border: 1px solid #cbd8e3; border-radius: 4px; background: #fff; color: var(--ink); padding: 11px 14px; outline: none; }
.field input:focus, .field select:focus, .role-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #28669725; }
.field input::placeholder { color: #9caab6; }
.field-error { color: #ab3030; font-size: 12px; }
.check { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; margin: 0 0 24px; }
.check input { width: 16px; height: 16px; accent-color: var(--blue); }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 47px; border: 1px solid var(--navy); border-radius: 4px; background: var(--navy); color: #fff; padding: 11px 19px; font-weight: 700; font-size: 14px; transition: background .18s, border-color .18s; }
.btn:hover { color: #fff; background: #1d4268; border-color: #1d4268; text-decoration: none; }
.btn:focus-visible, a:focus-visible, .nav-logout:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-secondary { background: #fff; color: var(--navy); border-color: #b8c9d7; }
.btn-secondary:hover { color: var(--navy); background: #edf4f8; border-color: var(--navy); }
.btn-small { min-height: 37px; padding: 7px 13px; font-size: 12px; }
.full { width: 100%; }
.auth-footer { padding-top: 24px; margin: 27px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }
.auth-footer a { font-weight: 700; }

.page-main { flex: 1; padding: 39px 0 72px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-head .subheading { max-width: 600px; }
.dashboard-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; padding: 38px 43px; margin-bottom: 27px; min-height: 207px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dashboard-hero::before { content: ''; position: absolute; z-index: -2; inset: 0; background: url('iicc-centre.jpg') center 55%/cover no-repeat; opacity: .4; }
.dashboard-hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #0a1a32f5, #0a1a32c9 55%, #0a1a3270); }
.dashboard-hero .eyebrow { color: #e7c363; }
.dashboard-hero .heading { color: #fff; }
.dashboard-hero p:last-child { margin: 12px 0 0; color: #e0e8ef; }
.role-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; background: #edf4f9; color: #1e5578; border-radius: 3px; font-size: 12px; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.role-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.role-badge.admin { background: #fff3cf; color: #69500c; }
.dashboard-hero .role-badge { background: #fff; color: var(--navy); }
.dashboard-hero .role-badge.admin { background: #fff2c9; color: #69500c; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.section-title { font: 600 21px/1.25 'Roboto Slab', Georgia, serif; letter-spacing: -.025em; color: var(--navy); margin: 0; }
.section-note { color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.card { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 4px 16px #0a1a3208; }
.card-pad { padding: 25px 27px; }
.stat-card { border-top: 3px solid var(--blue); }
.stat-card:nth-child(2) { border-top-color: var(--gold); }
.stat-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.stat-value { color: var(--navy); font: 600 38px/1.1 'Roboto Slab', Georgia, serif; margin: 13px 0 6px; }
.muted { color: var(--muted); }
.card .muted { font-size: 13px; line-height: 1.6; }
.action-card .section-title { margin-bottom: 9px; }
.action-card p { margin: 0 0 16px; }
.account-card { max-width: 750px; }
.account-row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding: 14px 0; font-size: 14px; }
.account-row:first-of-type { margin-top: 16px; }
.account-row > span:first-child { color: var(--muted); }
.account-row > strong { text-align: right; overflow-wrap: anywhere; }
.alert { padding: 13px 16px; margin-bottom: 18px; border-left: 3px solid; font-size: 13px; }
.alert-success { color: #246042; border-color: #45966a; background: #edf8f0; }
.alert-error { color: #923030; border-color: #c85454; background: #fff0f0; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; text-align: left; }
.table th { background: #e9f2f8; color: var(--navy); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 15px 20px; }
.table td { border-top: 1px solid #e7edf2; padding: 15px 20px; font-size: 13px; }
.table tr:first-child td { border-top: 0; }
.role-form { display: flex; gap: 8px; align-items: center; }
.role-form select { min-width: 98px; border: 1px solid #cbd8e3; border-radius: 4px; padding: 8px; background: #fff; color: var(--ink); outline: none; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.pagination-actions { display: flex; gap: 8px; }
.pagination a, .pagination span { display: inline-block; border: 1px solid #cbd8e3; padding: 7px 11px; color: var(--blue); }
.pagination span { color: #99a6b3; }

@media (max-width: 900px) {
    .brand-location { display: none; }
    .auth-stage { grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr); }
    .auth-visual-content { padding: 35px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid .action-card { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .site-width { width: min(100% - 32px, 1180px); }
    .utility-bar { font-size: 10px; }
    .brand-inner { min-height: 82px; }
    .brand-logo { width: 68px; }
    .brand-link { gap: 10px; }
    .brand-copy strong { font-size: clamp(15px, 4vw, 20px); }
    .brand-copy > span { font-size: 10px; letter-spacing: .09em; }
    .nav-inner { gap: 4px; }
    .nav-links a, .nav-logout { min-height: 44px; padding: 0 11px; font-size: 12px; }
    .auth-stage { display: flex; flex-direction: column; }
    .auth-visual { min-height: 205px; }
    .auth-visual-content { padding: 26px 24px; }
    .auth-visual h2 { font-size: 25px; margin-bottom: 7px; }
    .auth-visual p:last-child { font-size: 12px; }
    .auth-panel { padding: 38px 24px 47px; }
    .footer-inner { flex-wrap: wrap; padding-block: 15px; min-height: 0; }
    .page-main { padding: 28px 0 50px; }
    .page-head { align-items: flex-start; flex-direction: column; }
    .dashboard-hero { padding: 29px 25px; align-items: flex-start; flex-direction: column; }
    .grid { grid-template-columns: 1fr; }
    .grid .action-card { grid-column: auto; }
    .card-pad { padding: 22px; }
    .role-form { flex-wrap: wrap; }
}

@media (max-width: 390px) {
    .utility-inner span { display: none; }
    .utility-inner { justify-content: flex-end; }
    .brand-copy strong { font-size: 15px; }
    .nav-links a, .nav-logout { padding-inline: 8px; font-size: 11px; }
}

/* ABS login */
.abs-login-page { background: #eef3f0; }
.abs-login-page .site-shell { min-height: 100svh; }
.abs-login { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100svh; padding: 40px 20px 24px; background: radial-gradient(circle at 50% 10%, #fff 0, #eef3f0 58%); }
.abs-login-card { width: min(100%, 470px); padding: clamp(28px, 5vw, 44px); border: 1px solid #dde7e0; border-radius: 14px; background: #fff; box-shadow: 0 20px 60px #163c2a12; }
.abs-login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 38px; }
.abs-logo { display: inline-flex; align-items: center; justify-content: center; width: 57px; height: 57px; flex: 0 0 57px; border-radius: 12px; background: #174b3b; color: #fff; font-size: 21px; font-weight: 700; letter-spacing: -.11em; padding-right: 4px; }
.abs-logo span { color: #e9c778; letter-spacing: 0; }
.abs-brand-name { display: flex; flex-direction: column; color: #18372c; font-size: 19px; font-weight: 700; line-height: 1.2; }
.abs-brand-name span { margin-top: 3px; color: #6a7a70; font-size: 12px; font-weight: 500; letter-spacing: .025em; }
.abs-login-intro { margin-bottom: 28px; }
.abs-login-intro h1 { margin: 0; color: #173529; font: 600 clamp(27px, 5vw, 32px)/1.2 'Roboto Slab', Georgia, serif; letter-spacing: -.035em; }
.abs-login-intro p { margin: 10px 0 0; color: #6d7b73; font-size: 14px; line-height: 1.6; }
.abs-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.abs-field label { color: #283e33; font-size: 13px; font-weight: 700; }
.abs-field input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #d3ded6; border-radius: 7px; outline: none; color: #173529; background: #fff; transition: border-color .18s, box-shadow .18s; }
.abs-field input::placeholder { color: #9ba9a0; }
.abs-field input:focus { border-color: #28765f; box-shadow: 0 0 0 4px #28765f1b; }
.abs-field input[aria-invalid="true"] { border-color: #b84c4c; }
.abs-field-error { color: #a33d3d; font-size: 12px; line-height: 1.4; }
.abs-remember { display: inline-flex; align-items: center; gap: 9px; margin: 1px 0 25px; color: #576a5f; font-size: 13px; cursor: pointer; }
.abs-remember input { width: 16px; height: 16px; margin: 0; accent-color: #174b3b; }
.abs-submit { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; min-height: 51px; padding: 11px 18px; border: 1px solid #174b3b; border-radius: 7px; background: #174b3b; color: #fff; font-size: 14px; font-weight: 700; transition: background .18s, border-color .18s; }
.abs-submit:hover { background: #246b52; border-color: #246b52; }
.abs-submit:focus-visible, .abs-login a:focus-visible, .abs-remember input:focus-visible { outline: 3px solid #d0a850; outline-offset: 3px; }
.abs-submit span { font-size: 20px; line-height: 1; }
.abs-register-prompt { margin: 27px 0 0; padding-top: 23px; border-top: 1px solid #edf1ed; color: #6b7a72; font-size: 13px; text-align: center; }
.abs-register-prompt a { color: #195a45; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.abs-login-bottom { margin: 23px 0 0; color: #90a097; font-size: 11px; letter-spacing: .04em; }

@media (max-width: 520px) {
    .abs-login { justify-content: flex-start; padding: 20px 14px; }
    .abs-login-card { padding: 28px 22px; border-radius: 11px; }
    .abs-login-brand { margin-bottom: 32px; }
    .abs-login-intro h1 { font-size: 27px; }
}

/* Scholarship portal login */
.portal-login-page { background: #fff; }
.portal-login-page .site-shell, .portal-dashboard-page .site-shell { min-height: 100svh; }
.portal-login { flex: 1; display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.portal-login-story { position: relative; display: grid; place-items: center; overflow: hidden; padding: 48px 36px; color: #fff; background: linear-gradient(155deg, #0a1a32, #102e50 75%, #16446c); isolation: isolate; }
.portal-login-story::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: radial-gradient(#b8d9ed 1px, transparent 1px); background-size: 19px 19px; mask-image: linear-gradient(90deg, #0008, #0003); }
.portal-login-story::after { content: ''; position: absolute; width: 310px; height: 310px; right: -130px; bottom: -165px; border: 42px solid #d5ad401c; border-radius: 50%; }
.portal-login-story-inner { width: min(100%, 470px); text-align: center; }
.portal-login-emblem { width: 105px; height: 105px; display: grid; place-items: center; margin: 0 auto 22px; padding: 14px; border: 4px solid #d5ad40; border-radius: 50%; background: #fff; box-shadow: 0 12px 35px #0003; }
.portal-login-emblem img { width: 100%; height: auto; }
.portal-login-overline { display: table; margin: 0 auto 20px; padding-bottom: 10px; border-bottom: 1px solid #d5ad40; color: #f4d681; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.portal-login-story h1 { margin: 0; font: 700 clamp(28px, 3vw, 42px)/1.16 'Roboto Slab', Georgia, serif; letter-spacing: -.035em; }
.portal-login-location { margin: 13px 0 21px; color: #f5d47a; font-size: 13px; font-weight: 700; }
.portal-login-description { max-width: 395px; margin: 0 auto; color: #e0ebf2; font-size: 14px; line-height: 1.65; }
.portal-login-highlights { display: flex; gap: 10px; justify-content: center; margin-top: 25px; }
.portal-login-highlights > span { min-height: 50px; display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid #ffffff32; border-radius: 9px; background: #ffffff0d; font-size: 11px; font-weight: 600; text-align: left; }
.portal-login-highlights > span span { color: #f5d47a; font-size: 18px; }
.portal-login-story-footer { margin: 35px 0 0; color: #bacbd9; font-size: 11px; }
.portal-login-panel { display: grid; place-items: center; padding: 48px 32px; background: radial-gradient(circle at 90% 0, #f8f4e7, transparent 34%), #fff; }
.portal-login-form-wrap { width: min(100%, 390px); }
.portal-login-kicker { margin: 0 0 8px; color: #a47f23; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.portal-login-form-wrap h2 { margin: 0; color: #0a1a32; font: 700 clamp(25px, 2.4vw, 32px)/1.18 'Roboto Slab', Georgia, serif; letter-spacing: -.035em; }
.portal-login-subtitle { margin: 10px 0 28px; color: #677789; font-size: 13px; line-height: 1.5; }
.portal-login-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.portal-login-field label { color: #23344b; font-size: 12px; font-weight: 700; }
.portal-login-input-wrap { position: relative; }
.portal-login-input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #66829b; font-size: 16px; font-weight: 700; pointer-events: none; }
.portal-login-input-wrap input { width: 100%; height: 45px; padding: 10px 14px 10px 42px; border: 1px solid #d8e1e8; border-radius: 7px; background: #fafbfc; color: #182c41; outline: none; }
.portal-login-input-wrap input:focus { border-color: #286697; background: #fff; box-shadow: 0 0 0 3px #28669720; }
.portal-login-input-wrap input[aria-invalid="true"] { border-color: #bb3c45; }
.portal-login-input-wrap input::placeholder { color: #9ba7b3; }
.portal-login-error { color: #a92f3d; font-size: 12px; }
.portal-login-options { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 6px 0 18px; font-size: 11px; }
.portal-login-remember { display: flex; align-items: center; gap: 7px; color: #283b50; font-weight: 700; cursor: pointer; }
.portal-login-remember input { margin: 0; accent-color: #0a1a32; }
.portal-login-protected { color: #778696; }
.portal-login-submit { display: flex; justify-content: center; align-items: center; gap: 9px; width: 100%; height: 46px; border: 1px solid #0a1a32; border-radius: 7px; background: #0a1a32; color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 9px 18px #0a1a3226; }
.portal-login-submit:hover { background: #173b60; border-color: #173b60; }
.portal-login-submit:focus-visible, .portal-login-remember input:focus-visible { outline: 3px solid #d5ad40; outline-offset: 3px; }
.portal-login-register { margin: 22px 0 0; color: #647587; font-size: 12px; text-align: center; }
.portal-login-register a, .portal-login-home { color: #205c8c; font-weight: 700; }
.portal-login-home { display: table; margin: 17px auto 0; font-size: 12px; }
.portal-login-copyright { margin: 29px 0 0; color: #9ba7b0; font-size: 11px; text-align: center; }

/* Scholarship portal dashboard */
.portal-dashboard-page { background: #f7f8fa; }
.portal-dashboard { flex: 1; display: grid; grid-template-columns: 246px minmax(0, 1fr); min-height: 100svh; }
.portal-sidebar { display: flex; flex-direction: column; min-width: 0; background: #0a1a32; color: #fff; }
.portal-sidebar-brand { min-height: 74px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #ffffff1b; color: #fff; }
.portal-sidebar-brand:hover { color: #fff; text-decoration: none; }
.portal-sidebar-logo { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border: 2px solid #d5ad40; border-radius: 50%; background: #fff; padding: 5px; }
.portal-sidebar-logo img { width: 100%; }
.portal-sidebar-brand strong, .portal-sidebar-brand small { display: block; }
.portal-sidebar-brand strong { color: #f5d47a; font-size: 13px; line-height: 1.2; }
.portal-sidebar-brand small { margin-top: 3px; color: #b8c9da; font-size: 10px; }
.portal-sidebar-nav { padding: 16px 10px; }
.portal-nav-label { margin: 20px 10px 9px; color: #91a7bb; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.portal-nav-link { display: flex; align-items: center; gap: 12px; min-height: 39px; margin-bottom: 4px; padding: 9px 11px; border-radius: 7px; color: #e2eaf1; font-size: 12px; font-weight: 600; }
.portal-nav-link > span { width: 18px; color: #d5ad40; font-size: 18px; text-align: center; }
.portal-nav-link:hover { background: #ffffff18; color: #fff; text-decoration: none; }
.portal-nav-link.is-active { background: #d5ad40; color: #0a1a32; box-shadow: 0 4px 12px #0002; }
.portal-nav-link.is-active > span { color: #0a1a32; }
.portal-sidebar-footer { margin-top: auto; padding: 16px; border-top: 1px solid #ffffff1b; color: #a3b4c4; font-size: 10px; }
.portal-dashboard-content { min-width: 0; }
.portal-dashboard-topbar { min-height: 74px; display: flex; align-items: center; gap: 20px; padding: 12px clamp(20px, 3vw, 36px); border-bottom: 1px solid #e3e8ec; background: #fff; }
.portal-topbar-title { color: #20364e; font-size: 14px; font-weight: 700; }
.portal-topbar-identity { display: none; }
.portal-topbar-user { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.portal-user-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #0a1a32; color: #e4bf59; font-size: 14px; font-weight: 700; }
.portal-topbar-user strong, .portal-topbar-user small { display: block; }
.portal-topbar-user strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #172c42; font-size: 11px; }
.portal-topbar-user small { color: #748497; font-size: 10px; }
.portal-topbar-user form { margin-left: 12px; }
.portal-topbar-user button { padding: 7px 10px; border: 1px solid #dbe3e9; border-radius: 5px; background: #fff; color: #314b63; font-size: 11px; font-weight: 700; }
.portal-topbar-user button:hover { border-color: #0a1a32; }
.portal-dashboard-main { width: min(100%, 1500px); margin: 0 auto; padding: 30px clamp(20px, 3vw, 38px) 60px; }
.portal-dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.portal-breadcrumb { margin: 0 0 5px; color: #8190a0; font-size: 11px; }
.portal-breadcrumb strong { color: #a47f23; }
.portal-dashboard-heading h1 { margin: 0; color: #0a1a32; font: 700 clamp(23px, 2.4vw, 30px)/1.2 'Roboto Slab', Georgia, serif; letter-spacing: -.03em; }
.portal-dashboard-intro { margin: 7px 0 0; color: #738396; font-size: 12px; }
.portal-dashboard-date { flex: 0 0 auto; padding: 10px 13px; border: 1px solid #d9e3e9; border-radius: 6px; background: #fff; color: #30485e; font-size: 11px; font-weight: 700; }
.portal-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.portal-stat-card { position: relative; overflow: hidden; min-height: 135px; display: flex; flex-direction: column; align-items: flex-start; padding: 18px; border: 1px solid #e1e7eb; border-radius: 10px; background: #fff; box-shadow: 0 5px 15px #0a1a3208; }
.portal-stat-card::after { content: ''; position: absolute; top: -38px; right: -30px; width: 105px; height: 105px; border-radius: 50%; background: #dbeaf5; opacity: .5; }
.portal-stat-card:nth-child(2)::after { background: #f6edce; }
.portal-stat-card:nth-child(3)::after { background: #e9e4f3; }
.portal-stat-icon { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 8px; font-size: 20px; }
.portal-stat-icon-blue { background: #e8f1f7; color: #24628d; }
.portal-stat-icon-gold { background: #faf2d9; color: #9d7819; }
.portal-stat-icon-violet { background: #eeeaf7; color: #6f5ba4; }
.portal-stat-card strong { color: #0a1a32; font-size: 24px; line-height: 1; }
.portal-stat-card > span:last-child { margin-top: 6px; color: #687b8f; font-size: 11px; }
.portal-dashboard-panels, .portal-member-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.portal-dashboard-panel { min-width: 0; padding: 20px; border: 1px solid #e1e7eb; border-radius: 10px; background: #fff; box-shadow: 0 5px 15px #0a1a3208; }
.portal-panel-heading h2 { margin: 0; color: #0a1a32; font: 700 16px/1.3 'Roboto Slab', Georgia, serif; }
.portal-panel-heading p { margin: 5px 0 0; color: #8090a0; font-size: 11px; }
.portal-role-chart { width: min(230px, 70%); aspect-ratio: 1; display: grid; place-items: center; margin: 25px auto 23px; border-radius: 50%; background: conic-gradient(#0a1a32 0 var(--admin-share), #d5ad40 var(--admin-share) 100%); }
.portal-role-chart > div { width: 63%; height: 63%; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: #fff; }
.portal-role-chart strong { color: #0a1a32; font-size: 32px; line-height: 1; }
.portal-role-chart span { margin-top: 4px; color: #77889a; font-size: 11px; }
.portal-chart-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; color: #52677b; font-size: 11px; }
.portal-chart-legend > span { display: flex; align-items: center; gap: 5px; }
.portal-chart-legend i { width: 8px; height: 8px; border-radius: 50%; }
.portal-legend-admin { background: #0a1a32; }
.portal-legend-member { background: #d5ad40; }
.portal-chart-legend strong { margin-left: 3px; color: #20374d; }
.portal-quick-panel { display: flex; flex-direction: column; }
.portal-quick-content { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 22px 0 8px; }
.portal-quick-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 13px; background: #e9f2f8; color: #286697; font-size: 29px; }
.portal-quick-content h3 { margin: 18px 0 7px; color: #0a1a32; font-size: 18px; }
.portal-quick-content p { max-width: 310px; margin: 0 0 18px; color: #708193; font-size: 12px; line-height: 1.6; }
.portal-quick-link { display: inline-flex; align-items: center; gap: 9px; padding: 10px 13px; border-radius: 6px; background: #0a1a32; color: #fff; font-size: 12px; font-weight: 700; }
.portal-quick-link:hover { background: #1c4569; color: #fff; text-decoration: none; }
.portal-account-row { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid #e8edf1; color: #718396; font-size: 12px; }
.portal-account-row:first-of-type { margin-top: 18px; }
.portal-account-row:last-child { border-bottom: 0; }
.portal-account-row strong { color: #19324b; overflow-wrap: anywhere; text-align: right; }
@media (max-width: 900px) {
    .portal-login { grid-template-columns: 45% 55%; }
    .portal-login-highlights { flex-wrap: wrap; }
    .portal-dashboard { grid-template-columns: 205px minmax(0, 1fr); }
    .portal-dashboard-panels, .portal-member-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .portal-login { display: flex; flex-direction: column; }
    .portal-login-story { padding: 32px 20px; }
    .portal-login-emblem { width: 72px; height: 72px; margin-bottom: 15px; }
    .portal-login-story h1 { font-size: 26px; }
    .portal-login-description, .portal-login-story-footer, .portal-login-highlights { display: none; }
    .portal-login-location { margin-bottom: 0; }
    .portal-login-panel { flex: 1; padding: 42px 24px; }
    .portal-dashboard { display: flex; flex-direction: column; }
    .portal-sidebar { display: contents; }
    .portal-sidebar-brand, .portal-sidebar-footer { display: none; }
    .portal-sidebar-nav { order: 1; display: flex; gap: 5px; overflow-x: auto; padding: 8px 14px; border-bottom: 1px solid #e2e7ec; background: #0a1a32; }
    .portal-nav-label { display: none; }
    .portal-nav-link { flex: 0 0 auto; margin: 0; padding: 8px 11px; }
    .portal-dashboard-content { display: contents; }
    .portal-dashboard-topbar { order: 0; min-height: 62px; padding: 10px 16px; }
    .portal-dashboard-main { order: 2; }
    .portal-topbar-identity { display: flex; align-items: center; gap: 7px; color: #0a1a32; font-size: 12px; font-weight: 700; }
    .portal-topbar-identity img { width: 32px; }
    .portal-topbar-title, .portal-topbar-user > span:nth-child(2) { display: none; }
    .portal-topbar-user form { margin-left: 0; }
    .portal-dashboard-heading { align-items: flex-start; }
    .portal-dashboard-date { display: none; }
    .portal-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
    .portal-stat-grid { grid-template-columns: 1fr; }
    .portal-stat-card { min-height: 115px; }
    .portal-login-protected { display: none; }
}
