:root{
    --portal-navy:#07101f;
    --portal-navy-2:#0d1b2d;
    --portal-panel:#ffffff;
    --portal-bg:#edf1f4;
    --portal-line:#c8d1d9;
    --portal-line-soft:#dce3e8;
    --portal-text:#10263b;
    --portal-muted:#667b8d;
    --portal-blue:#174f7f;
    --portal-blue-dark:#103d64;
    --portal-blue-soft:#e8f0f6;
    --portal-green:#26714a;
    --portal-green-soft:#e5f1e9;
    --portal-amber:#9a6405;
    --portal-amber-soft:#fff2d5;
    --portal-red:#9b3636;
    --portal-red-soft:#f8e7e7;
    --portal-grey:#687785;
    --portal-grey-soft:#eef1f3;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    background:var(--portal-bg);
    color:var(--portal-text);
    font-family:
        Arial,
        Helvetica,
        system-ui,
        sans-serif;
}

.portal-topbar{
    height:68px;
    position:sticky;
    top:0;
    z-index:80;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 24px;
    background:var(--portal-navy);
    border-bottom:1px solid rgba(255,255,255,.12);
    color:#fff;
}

.portal-brand{
    display:flex;
    align-items:center;
    gap:13px;
    min-width:0;
    color:#fff;
    text-decoration:none;
}

.portal-brand-mark{
    width:36px;
    height:36px;
    border:2px solid #fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:none;
}

.portal-brand-mark::after{
    content:"";
    width:4px;
    height:19px;
    border-radius:4px;
    background:#fff;
}

.portal-brand-copy{
    min-width:0;
}

.portal-brand-name{
    font-size:13px;
    line-height:1.1;
    font-weight:800;
    letter-spacing:.13em;
}

.portal-brand-subtitle{
    margin-top:4px;
    color:#9eb4c8;
    font-size:10px;
    letter-spacing:.025em;
    white-space:nowrap;
}

.portal-user{
    display:flex;
    align-items:center;
    gap:14px;
}

.portal-install{
    min-height:38px;
    padding:0 14px;
    border:1px solid #3372b3;
    border-radius:3px;
    background:#1f66ad;
    color:#fff;
    font-size:11px;
    font-weight:700;
    cursor:pointer;
}

.portal-user-copy{
    text-align:right;
}

.portal-user-name{
    font-size:11px;
    font-weight:800;
    letter-spacing:.02em;
}

.portal-user-role{
    margin-top:3px;
    color:#9eb4c8;
    font-size:8px;
    letter-spacing:.17em;
    text-transform:uppercase;
}

.portal-menu-button{
    display:none;
    width:42px;
    height:42px;
    border:1px solid rgba(255,255,255,.22);
    border-radius:3px;
    background:transparent;
    color:#fff;
    font-size:19px;
}

.portal-frame{
    min-height:calc(100vh - 68px);
    display:flex;
}

.portal-sidebar{
    width:270px;
    flex:none;
    display:flex;
    flex-direction:column;
    background:#fff;
    border-right:1px solid var(--portal-line);
}

.portal-nav{
    padding:18px 0;
}

.portal-nav-group{
    padding:14px 18px 6px;
    color:#8695a2;
    font-size:8px;
    line-height:1;
    font-weight:800;
    letter-spacing:.16em;
    text-transform:uppercase;
}

.portal-nav-link{
    position:relative;
    min-height:43px;
    padding:0 18px 0 21px;
    display:flex;
    align-items:center;
    border-left:3px solid transparent;
    color:#42596e;
    text-decoration:none;
    font-size:11px;
    font-weight:600;
}

.portal-nav-link:hover{
    background:#f2f5f7;
    color:#0c2943;
}

.portal-nav-link.active{
    border-left-color:#18578d;
    background:#e8f0f7;
    color:#104c7c;
    font-weight:800;
}

.portal-nav-link small{
    margin-left:auto;
    color:#8796a3;
    font-size:8px;
}

.portal-sidebar-footer{
    margin-top:auto;
    padding:15px 18px;
    border-top:1px solid var(--portal-line-soft);
}

.portal-signout{
    width:100%;
    min-height:40px;
    padding:0;
    border:0;
    background:transparent;
    color:#596f81;
    text-align:left;
    font-size:11px;
    font-weight:700;
    cursor:pointer;
}

.portal-signout:hover{
    color:#963737;
}

.portal-mobile-menu{
    display:none;
    position:fixed;
    top:68px;
    left:0;
    right:0;
    z-index:90;
    background:#fff;
    border-bottom:1px solid var(--portal-line);
    box-shadow:0 8px 18px rgba(8,25,42,.13);
}

.portal-mobile-menu.open{
    display:block;
}

.portal-main{
    min-width:0;
    flex:1;
}

.portal-mobile-bottom{
    display:none;
}


/* ==========================================================
   PROFESSIONAL DASHBOARD
   ========================================================== */

.av-portal{
    width:min(1320px, calc(100% - 54px));
    margin:0 auto;
    padding:34px 0 64px;
}

.av-page-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:28px;
    padding-bottom:22px;
    border-bottom:1px solid var(--portal-line);
}

.av-kicker{
    display:block;
    color:#176199;
    font-size:9px;
    font-weight:800;
    letter-spacing:.16em;
    text-transform:uppercase;
}

.av-page-head h1{
    margin:7px 0 5px;
    color:#10253a;
    font-size:29px;
    line-height:1.15;
    font-weight:700;
}

.av-page-head p{
    margin:0;
    color:var(--portal-muted);
    font-size:12px;
}

.av-identity{
    min-width:260px;
    padding:12px 15px;
    background:#fff;
    border:1px solid var(--portal-line);
}

.av-identity-row{
    display:flex;
    justify-content:space-between;
    gap:15px;
    padding:4px 0;
    font-size:10px;
}

.av-identity-row span{
    color:#708395;
}

.av-identity-row strong{
    color:#132b40;
    font-weight:800;
    text-align:right;
}

.av-status{
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-height:25px;
    padding:0 9px;
    border:1px solid;
    border-radius:2px;
    font-size:9px;
    font-weight:800;
    letter-spacing:.06em;
    text-transform:uppercase;
}

.av-status::before{
    content:"";
    width:6px;
    height:6px;
    border-radius:50%;
    background:currentColor;
}

.av-status.active,
.av-status.pass{
    border-color:#80a990;
    background:var(--portal-green-soft);
    color:var(--portal-green);
}

.av-status.progress,
.av-status.attention{
    border-color:#d5b260;
    background:var(--portal-amber-soft);
    color:var(--portal-amber);
}

.av-status.hold,
.av-status.critical{
    border-color:#c98c8c;
    background:var(--portal-red-soft);
    color:var(--portal-red);
}

.av-status.neutral{
    border-color:#b9c3cb;
    background:var(--portal-grey-soft);
    color:var(--portal-grey);
}


/* CURRENT ACTIVITY */

.av-current{
    margin-top:22px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 230px;
    background:#fff;
    border:1px solid var(--portal-line);
    border-left:5px solid #b77b07;
}

.av-current-copy{
    padding:25px 28px;
}

.av-current-copy h2{
    margin:7px 0 8px;
    color:#0d2740;
    font-size:23px;
    font-weight:700;
}

.av-current-copy p{
    max-width:780px;
    margin:0;
    color:#5d7385;
    font-size:12px;
    line-height:1.6;
}

.av-current-meta{
    margin-top:15px;
    display:flex;
    flex-wrap:wrap;
    gap:8px 18px;
    color:#597083;
    font-size:10px;
}

.av-primary-action{
    min-width:160px;
    min-height:43px;
    margin-top:18px;
    padding:0 17px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--portal-blue-dark);
    border-radius:2px;
    background:var(--portal-blue-dark);
    color:#fff;
    text-decoration:none;
    font-size:10px;
    font-weight:800;
    letter-spacing:.025em;
}

.av-current-state{
    padding:24px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    border-left:1px solid var(--portal-line-soft);
    background:#f8fafb;
}

.av-current-state span{
    color:#718494;
    font-size:8px;
    font-weight:800;
    letter-spacing:.14em;
    text-transform:uppercase;
}

.av-current-state strong{
    margin-top:7px;
    color:#0e2c46;
    font-size:18px;
}

.av-current-state small{
    margin-top:6px;
    color:#697f90;
    font-size:9px;
    line-height:1.45;
}


/* METRICS */

.av-metrics{
    margin-top:18px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    background:#fff;
    border:1px solid var(--portal-line);
}

.av-metric{
    min-height:91px;
    padding:16px 18px;
    border-right:1px solid var(--portal-line-soft);
}

.av-metric:last-child{
    border-right:0;
}

.av-metric span{
    display:block;
    color:#718494;
    font-size:8px;
    font-weight:800;
    letter-spacing:.09em;
    text-transform:uppercase;
}

.av-metric strong{
    display:block;
    margin-top:7px;
    color:#0a2742;
    font-size:23px;
    font-weight:700;
}

.av-metric small{
    display:block;
    margin-top:4px;
    color:#81909b;
    font-size:8px;
}


/* READINESS STRIP */

.av-readiness{
    margin-top:18px;
    min-height:83px;
    padding:16px 20px;
    display:flex;
    align-items:center;
    gap:18px;
    background:#fff;
    border:1px solid var(--portal-line);
}

.av-readiness-main{
    flex:1;
}

.av-readiness-main strong{
    display:block;
    margin-top:4px;
    font-size:15px;
}

.av-readiness-main p{
    margin:5px 0 0;
    color:#637989;
    font-size:10px;
}

.av-readiness-actions{
    display:flex;
    gap:8px;
}

.av-secondary-action{
    min-height:38px;
    padding:0 13px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #9baeba;
    background:#fff;
    color:#173b59;
    text-decoration:none;
    font-size:9px;
    font-weight:800;
}


/* LOWER GRID */

.av-grid{
    margin-top:18px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:18px;
    align-items:start;
}

.av-panel{
    background:#fff;
    border:1px solid var(--portal-line);
}

.av-panel-head{
    min-height:60px;
    padding:13px 18px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    background:#e4eaee;
    border-bottom:1px solid var(--portal-line);
}

.av-panel-head strong{
    margin-top:3px;
    font-size:12px;
}

.av-priority-row{
    min-height:78px;
    padding:13px 17px;
    display:grid;
    grid-template-columns:35px minmax(0,1fr) 82px;
    gap:12px;
    align-items:center;
    border-bottom:1px solid var(--portal-line-soft);
}

.av-priority-row:last-child{
    border-bottom:0;
}

.av-rank{
    width:28px;
    height:28px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #acbac5;
    color:#17364f;
    font-size:11px;
    font-weight:800;
}

.av-priority-main .domain{
    display:flex;
    align-items:center;
    gap:7px;
}

.av-priority-main .domain strong{
    font-size:9px;
}

.av-priority-main .domain span{
    color:#6b8090;
    font-size:9px;
}

.av-priority-main h3{
    margin:5px 0 4px;
    font-size:12px;
    font-weight:700;
}

.av-priority-main small{
    color:#768898;
    font-size:8px;
}

.av-score{
    text-align:right;
    color:#102a42;
    font-size:19px;
    font-weight:800;
}


/* QUICK ACTIONS */

.av-actions{
    background:#fff;
    border:1px solid var(--portal-line);
}

.av-action-link{
    min-height:57px;
    padding:11px 17px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border-bottom:1px solid var(--portal-line-soft);
    color:#15364f;
    text-decoration:none;
}

.av-action-link:last-child{
    border-bottom:0;
}

.av-action-link div{
    display:flex;
    flex-direction:column;
}

.av-action-link strong{
    font-size:10px;
}

.av-action-link span{
    margin-top:3px;
    color:#748797;
    font-size:8px;
}

.av-action-link b{
    color:#6c8293;
    font-size:13px;
}


/* ADMIN */

.av-admin-summary{
    margin-top:20px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    background:#fff;
    border:1px solid var(--portal-line);
}

.av-admin-summary>div{
    min-height:84px;
    padding:15px 18px;
    border-right:1px solid var(--portal-line-soft);
}

.av-admin-summary>div:last-child{
    border-right:0;
}

.av-admin-summary span{
    color:#718494;
    font-size:8px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.av-admin-summary strong{
    display:block;
    margin-top:6px;
    font-size:23px;
}

.av-table-wrap{
    margin-top:18px;
    overflow:auto;
    background:#fff;
    border:1px solid var(--portal-line);
}

.av-table{
    width:100%;
    border-collapse:collapse;
    min-width:980px;
}

.av-table th{
    padding:11px 14px;
    background:#e4eaee;
    border-bottom:1px solid var(--portal-line);
    color:#607485;
    text-align:left;
    font-size:8px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.av-table td{
    padding:15px 14px;
    border-bottom:1px solid var(--portal-line-soft);
    vertical-align:middle;
    font-size:10px;
}

.av-table tbody tr:last-child td{
    border-bottom:0;
}

.av-student-name{
    color:#102a42;
    font-size:12px;
    font-weight:800;
    text-decoration:none;
}

.av-student-user{
    display:block;
    margin-top:4px;
    color:#748797;
    font-size:8px;
}

.av-cell-main{
    display:block;
    font-weight:700;
}

.av-cell-sub{
    display:block;
    margin-top:3px;
    color:#758797;
    font-size:8px;
}

.av-row-actions{
    display:flex;
    gap:6px;
}

.av-row-actions a{
    min-height:31px;
    padding:0 9px;
    display:inline-flex;
    align-items:center;
    border:1px solid #9dabb6;
    color:#17496f;
    text-decoration:none;
    font-size:8px;
    font-weight:800;
}

.av-note{
    margin-top:18px;
    padding:13px 16px;
    border-left:3px solid #8399a9;
    background:#f8fafb;
    color:#667b8c;
    font-size:9px;
    line-height:1.55;
}

.av-note strong{
    color:#314b60;
}


/* LOGIN POLISH */

body:not(:has(.portal-frame)) .portal-topbar{
    position:relative;
}


/* MOBILE */

@media(max-width:1023px){

    .portal-sidebar{
        display:none;
    }

    .portal-menu-button{
        display:flex;
        align-items:center;
        justify-content:center;
    }

    .portal-user-copy{
        display:none;
    }

    .portal-install{
        display:none;
    }

    .portal-mobile-bottom{
        position:fixed;
        left:0;
        right:0;
        bottom:0;
        z-index:80;
        height:62px;
        display:grid;
        background:#fff;
        border-top:1px solid var(--portal-line);
    }

    .portal-mobile-bottom.student{
        grid-template-columns:repeat(4,1fr);
    }

    .portal-mobile-bottom.admin{
        grid-template-columns:repeat(2,1fr);
    }

    .portal-mobile-bottom a{
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:3px;
        color:#667b8c;
        text-decoration:none;
        font-size:8px;
        font-weight:700;
    }

    .portal-mobile-bottom a.active{
        color:#145486;
        background:#edf3f7;
    }

    .portal-main{
        padding-bottom:64px;
    }

    .av-portal{
        width:min(100% - 28px, 1320px);
        padding-top:24px;
    }

    .av-page-head{
        align-items:flex-start;
        flex-direction:column;
    }

    .av-identity{
        width:100%;
    }

    .av-current{
        grid-template-columns:1fr;
    }

    .av-current-state{
        border-left:0;
        border-top:1px solid var(--portal-line-soft);
    }

    .av-metrics,
    .av-admin-summary{
        grid-template-columns:1fr 1fr;
    }

    .av-metric:nth-child(2),
    .av-admin-summary>div:nth-child(2){
        border-right:0;
    }

    .av-metric:nth-child(-n+2),
    .av-admin-summary>div:nth-child(-n+2){
        border-bottom:1px solid var(--portal-line-soft);
    }

    .av-grid{
        grid-template-columns:1fr;
    }

    .av-readiness{
        align-items:flex-start;
        flex-direction:column;
    }

    .av-readiness-actions{
        width:100%;
    }

    .av-readiness-actions a{
        flex:1;
    }
}

@media(max-width:620px){

    .portal-topbar{
        height:62px;
        padding:0 14px;
    }

    .portal-brand-subtitle{
        max-width:220px;
        overflow:hidden;
        text-overflow:ellipsis;
    }

    .portal-mobile-menu{
        top:62px;
    }

    .av-page-head h1{
        font-size:24px;
    }

    .av-current-copy{
        padding:20px;
    }

    .av-current-copy h2{
        font-size:19px;
    }

    .av-metrics,
    .av-admin-summary{
        grid-template-columns:1fr;
    }

    .av-metric,
    .av-admin-summary>div{
        min-height:72px;
        border-right:0;
        border-bottom:1px solid var(--portal-line-soft);
    }

    .av-metric:last-child,
    .av-admin-summary>div:last-child{
        border-bottom:0;
    }

    .av-priority-row{
        grid-template-columns:31px 1fr;
    }

    .av-score{
        grid-column:2;
        text-align:left;
    }
}


/* A12-A1.1 TYPOGRAPHY START */

/*
 * ==========================================================
 * PROFESSIONAL READABILITY SCALE
 * ==========================================================
 */

body{
    font-size:14px;
    line-height:1.5;
}


/* TOP BAR */

.portal-brand-name{
    font-size:15px;
}

.portal-brand-subtitle{
    margin-top:5px;
    font-size:11px;
}

.portal-user-name{
    font-size:13px;
}

.portal-user-role{
    font-size:9px;
}

.portal-install{
    min-height:41px;
    padding:0 16px;
    font-size:12px;
}


/* SIDEBAR */

.portal-sidebar{
    width:285px;
}

.portal-nav-group{
    padding:17px 21px 8px;
    font-size:10px;
    letter-spacing:.14em;
}

.portal-nav-link{
    min-height:48px;
    padding-left:23px;
    padding-right:20px;
    font-size:13px;
    line-height:1.3;
}

.portal-signout{
    min-height:45px;
    font-size:13px;
}


/* PAGE TITLES */

.av-portal{
    width:min(
        1380px,
        calc(100% - 56px)
    );
}

.av-kicker{
    font-size:11px;
    letter-spacing:.13em;
}

.av-page-head h1{
    margin-top:8px;
    font-size:32px;
}

.av-page-head p{
    font-size:14px;
    line-height:1.55;
}


/* CANDIDATE / PROGRAM BOX */

.av-identity{
    min-width:285px;
    padding:15px 18px;
}

.av-identity-row{
    padding:5px 0;
    font-size:12px;
}

.av-status{
    min-height:28px;
    padding:0 10px;
    font-size:10px;
}


/* CURRENT ACTIVITY */

.av-current-copy{
    padding:28px 31px;
}

.av-current-copy h2{
    margin:9px 0 10px;
    font-size:27px;
}

.av-current-copy p{
    font-size:14px;
    line-height:1.65;
}

.av-current-meta{
    margin-top:18px;
    gap:10px 22px;
    font-size:12px;
}

.av-primary-action{
    min-width:175px;
    min-height:46px;
    padding:0 19px;
    font-size:12px;
}

.av-current-state{
    padding:26px;
}

.av-current-state span{
    font-size:10px;
}

.av-current-state strong{
    font-size:19px;
}

.av-current-state small{
    margin-top:8px;
    font-size:11px;
    line-height:1.55;
}


/* SUMMARY METRICS */

.av-metric{
    min-height:101px;
    padding:19px 20px;
}

.av-metric span{
    font-size:10px;
}

.av-metric strong{
    margin-top:8px;
    font-size:27px;
}

.av-metric small{
    margin-top:5px;
    font-size:10px;
}


/* READINESS */

.av-readiness{
    min-height:94px;
    padding:19px 22px;
}

.av-readiness-main strong{
    margin-top:5px;
    font-size:17px;
}

.av-readiness-main p{
    margin-top:6px;
    font-size:12px;
    line-height:1.55;
}

.av-secondary-action{
    min-height:42px;
    padding:0 15px;
    font-size:11px;
}


/* PANELS */

.av-panel-head{
    min-height:66px;
    padding:15px 19px;
}

.av-panel-head strong{
    margin-top:4px;
    font-size:14px;
}


/* PRIORITY COMPETENCIES */

.av-priority-row{
    min-height:91px;
    padding:16px 18px;
    grid-template-columns:38px minmax(0,1fr) 90px;
}

.av-rank{
    width:31px;
    height:31px;
    font-size:12px;
}

.av-priority-main .domain strong{
    font-size:10px;
}

.av-priority-main .domain span{
    font-size:10px;
}

.av-priority-main h3{
    margin:6px 0 5px;
    font-size:14px;
}

.av-priority-main small{
    font-size:10px;
    line-height:1.45;
}

.av-score{
    font-size:22px;
}


/* TRAINING SERVICES */

.av-action-link{
    min-height:66px;
    padding:13px 18px;
}

.av-action-link strong{
    font-size:12px;
}

.av-action-link span{
    margin-top:4px;
    font-size:10px;
    line-height:1.4;
}

.av-action-link b{
    font-size:16px;
}


/* ADMIN DASHBOARD */

.av-admin-summary>div{
    min-height:96px;
    padding:18px 20px;
}

.av-admin-summary span{
    font-size:10px;
}

.av-admin-summary strong{
    margin-top:7px;
    font-size:26px;
}

.av-table th{
    padding:13px 15px;
    font-size:10px;
}

.av-table td{
    padding:17px 15px;
    font-size:12px;
}

.av-student-name{
    font-size:13px;
}

.av-student-user{
    margin-top:4px;
    font-size:10px;
}

.av-cell-main{
    font-size:12px;
}

.av-cell-sub{
    margin-top:5px;
    font-size:10px;
    line-height:1.4;
}

.av-row-actions a{
    min-height:35px;
    padding:0 11px;
    font-size:10px;
}

.av-note{
    padding:15px 18px;
    font-size:11px;
    line-height:1.6;
}


/*
 * ==========================================================
 * LOGIN PAGE
 *
 * Removes dependence on Tailwind for authentication layout.
 * ==========================================================
 */

main > section:has(form[action="/login"]){
    min-height:calc(100vh - 68px);
    display:grid;
    grid-template-columns:
        minmax(0,1.08fr)
        minmax(480px,.92fr);
    background:#fff;
}


/* LOGIN — LEFT SIDE */

main > section:has(form[action="/login"])
> div:first-child{
    display:flex !important;
    flex-direction:column;
    justify-content:center;
    padding:70px 8vw;
    background:#07101f;
    color:#fff;
}

main > section:has(form[action="/login"])
> div:first-child
> div{
    max-width:670px;
}

main > section:has(form[action="/login"])
> div:first-child p:first-child{
    margin:0 0 22px;
    color:#66a5dc;
    font-size:12px;
    font-weight:800;
    letter-spacing:.16em;
    text-transform:uppercase;
}

main > section:has(form[action="/login"])
> div:first-child h1{
    max-width:650px;
    margin:0;
    color:#fff;
    font-size:52px;
    line-height:1.08;
    font-weight:700;
    letter-spacing:-.025em;
}

main > section:has(form[action="/login"])
> div:first-child h1 + p{
    max-width:610px;
    margin:27px 0 0;
    color:#a9b9c8;
    font-size:17px;
    line-height:1.75;
}


/* LOGIN — RIGHT SIDE */

main > section:has(form[action="/login"])
> div:last-child{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:55px;
    background:#fff;
}

main > section:has(form[action="/login"])
> div:last-child
> div{
    width:100%;
    max-width:460px;
}


/*
 * Hide the old mobile title block on desktop.
 */

main > section:has(form[action="/login"])
> div:last-child
> div
> div:first-child{
    display:none;
}


main > section:has(form[action="/login"])
> div:last-child
> div
> p{
    margin:0;
    color:#60758a;
    font-size:11px;
    font-weight:800;
    letter-spacing:.14em;
    text-transform:uppercase;
}

main > section:has(form[action="/login"])
> div:last-child
> div
> h2{
    margin:10px 0 0;
    color:#10263b;
    font-size:34px;
    line-height:1.15;
}

main > section:has(form[action="/login"])
form{
    margin-top:30px;
}

main > section:has(form[action="/login"])
form > div{
    margin-bottom:22px;
}

main > section:has(form[action="/login"])
label{
    display:block;
    color:#263d52;
    font-size:13px;
    font-weight:700;
}

main > section:has(form[action="/login"])
input[type="text"],
main > section:has(form[action="/login"])
input[type="password"]{
    width:100%;
    min-height:50px;
    margin-top:8px;
    padding:10px 13px;
    border:1px solid #9fafbb;
    border-radius:2px;
    background:#fff;
    color:#10263b;
    font:inherit;
    font-size:15px;
    outline:none;
}

main > section:has(form[action="/login"])
input[type="text"]:focus,
main > section:has(form[action="/login"])
input[type="password"]:focus{
    border-color:#175583;
    box-shadow:
        0 0 0 3px
        rgba(23,85,131,.12);
}

main > section:has(form[action="/login"])
button[type="submit"]{
    width:100%;
    min-height:52px;
    margin-top:5px;
    border:1px solid #07101f;
    border-radius:2px;
    background:#07101f;
    color:#fff;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
}

main > section:has(form[action="/login"])
button[type="submit"]:hover{
    background:#123f65;
    border-color:#123f65;
}


/* INVALID LOGIN */

main > section:has(form[action="/login"])
form ~ *,
main > section:has(form[action="/login"])
.alert{
    font-size:12px;
}


/*
 * ==========================================================
 * MOBILE READABILITY
 * ==========================================================
 */

@media(max-width:1023px){

    .portal-nav-link{
        min-height:50px;
        font-size:14px;
    }

    main > section:has(form[action="/login"]){
        grid-template-columns:1fr;
    }

    main > section:has(form[action="/login"])
    > div:first-child{
        display:none !important;
    }

    main > section:has(form[action="/login"])
    > div:last-child{
        min-height:calc(100vh - 62px);
        padding:38px 24px;
    }

    main > section:has(form[action="/login"])
    > div:last-child
    > div
    > div:first-child{
        display:block;
        margin-bottom:30px;
    }

    main > section:has(form[action="/login"])
    > div:last-child
    > div
    > div:first-child p{
        color:#176199;
        font-size:11px;
    }

    main > section:has(form[action="/login"])
    > div:last-child
    > div
    > div:first-child h1{
        margin-top:8px;
        font-size:28px;
    }
}


@media(max-width:620px){

    body{
        font-size:15px;
    }

    .portal-brand-name{
        font-size:14px;
    }

    .portal-brand-subtitle{
        font-size:10px;
    }

    .av-portal{
        width:calc(100% - 24px);
    }

    .av-kicker{
        font-size:10px;
    }

    .av-page-head h1{
        font-size:26px;
    }

    .av-page-head p{
        font-size:13px;
    }

    .av-current-copy h2{
        font-size:22px;
    }

    .av-current-copy p{
        font-size:13px;
    }

    .av-priority-main h3{
        font-size:13px;
    }
}

/* A12-A1.1 TYPOGRAPHY END */


/* A12-A2.1 FIXED SIDEBAR START */


/*
 * Desktop application sidebar:
 * - stays directly below the fixed top bar
 * - always fills the remaining viewport height
 * - navigation can scroll independently if ever required
 * - Sign out always remains visible
 */

@media(min-width:1024px){

    .portal-frame{
        align-items:flex-start;
    }

    .portal-sidebar{
        position:sticky;
        top:68px;

        height:calc(100vh - 68px);
        min-height:calc(100vh - 68px);
        max-height:calc(100vh - 68px);

        align-self:flex-start;

        display:flex;
        flex-direction:column;

        overflow:hidden;

        background:#fff;
        border-right:1px solid var(--portal-line);
    }


    .portal-nav{
        flex:1 1 auto;
        min-height:0;

        padding:18px 0;

        overflow-y:auto;
        overflow-x:hidden;

        scrollbar-width:thin;
        scrollbar-color:
            #c7d0d7
            transparent;
    }


    .portal-nav::-webkit-scrollbar{
        width:6px;
    }

    .portal-nav::-webkit-scrollbar-track{
        background:transparent;
    }

    .portal-nav::-webkit-scrollbar-thumb{
        background:#c7d0d7;
        border-radius:5px;
    }


    .portal-sidebar-footer{
        flex:0 0 auto;

        margin-top:0;

        padding:14px 20px 16px;

        background:#fff;

        border-top:1px solid
            var(--portal-line-soft);
    }


    .portal-signout{
        width:100%;
        min-height:44px;

        display:flex;
        align-items:center;

        padding:0 4px;

        font-size:13px;
        font-weight:700;
    }


    /*
     * Main content scrolls normally while
     * navigation remains anchored.
     */

    .portal-main{
        min-height:calc(100vh - 68px);
    }
}


/* A12-A2.1 FIXED SIDEBAR END */


/* A12-A3 FINAL POLISH START */


/* ==========================================================
   VIEWPORT / OVERFLOW PROTECTION
   ========================================================== */

html{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
}

body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;

    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    text-rendering:optimizeLegibility;
}

.portal-topbar,
.portal-frame,
.portal-main,
.av-portal{
    min-width:0;
    max-width:100%;
}

.portal-main{
    overflow-x:hidden;
}


/* ==========================================================
   TOP BAR — PREVENT NAME CLIPPING
   ========================================================== */

.portal-topbar{
    gap:20px;
}

.portal-brand{
    flex:1 1 auto;
    min-width:0;
}

.portal-user{
    flex:0 1 auto;
    min-width:0;
    max-width:440px;
}

.portal-user-copy{
    min-width:0;
    max-width:245px;
}

.portal-user-name{
    max-width:245px;

    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.portal-user-role{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}


/* ==========================================================
   CONTENT WIDTH / GRID SAFETY
   ========================================================== */

.av-page-head > *,
.av-current > *,
.av-grid > *,
.av-readiness > *,
.av-table-wrap{
    min-width:0;
}

.av-current-copy p,
.av-readiness-main p,
.av-priority-main h3,
.av-priority-main small{
    overflow-wrap:anywhere;
}

.av-table-wrap{
    max-width:100%;
}


/* ==========================================================
   PROFESSIONAL INTERACTION STATES
   ========================================================== */

a,
button,
input{
    transition:
        border-color .12s ease,
        background-color .12s ease,
        color .12s ease,
        box-shadow .12s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible{
    outline:3px solid
        rgba(30,101,158,.28);

    outline-offset:2px;
}

.portal-nav-link:focus-visible{
    outline-offset:-3px;
}

.av-primary-action:hover,
.portal-install:hover{
    background:#0d3456;
    border-color:#0d3456;
}

.av-secondary-action:hover,
.av-row-actions a:hover{
    background:#edf3f7;
    border-color:#6289a8;
}

.portal-signout:hover{
    background:#fff4f4;
}


/* ==========================================================
   STATUS PRESENTATION
   ========================================================== */

.av-status{
    white-space:nowrap;
}

.av-status.hold,
.av-status.critical{
    font-weight:800;
}

.av-note{
    border-radius:1px;
}


/* ==========================================================
   DESKTOP APPLICATION WIDTH
   ========================================================== */

@media(min-width:1024px){

    .portal-main{
        width:calc(100% - 285px);
    }

    .portal-sidebar{
        width:285px;
    }
}


/*
 * Slightly narrower desktops:
 * preserve readable content without crushing header.
 */

@media(min-width:1024px) and (max-width:1250px){

    .portal-sidebar{
        width:255px;
    }

    .portal-main{
        width:calc(100% - 255px);
    }

    .portal-brand-subtitle{
        display:none;
    }

    .portal-user-copy{
        max-width:190px;
    }

    .portal-user-name{
        max-width:190px;
    }

    .av-portal{
        width:calc(100% - 34px);
    }
}


/* ==========================================================
   TABLET
   ========================================================== */

@media(max-width:1023px){

    .portal-user{
        max-width:none;
    }

    .portal-brand-subtitle{
        display:block;
    }

    .portal-main{
        width:100%;
    }
}


/* ==========================================================
   PHONE
   ========================================================== */

@media(max-width:620px){

    .portal-topbar{
        gap:10px;
    }

    .portal-brand-name{
        letter-spacing:.08em;
    }

    .portal-brand-subtitle{
        display:none;
    }

    .av-readiness-actions{
        flex-direction:column;
    }

    .av-readiness-actions a{
        width:100%;
    }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media(prefers-reduced-motion:reduce){

    *,
    *::before,
    *::after{
        scroll-behavior:auto !important;
        transition:none !important;
    }
}


/* A12-A3 FINAL POLISH END */


/* A12-A3.7 PROFESSIONAL NAVIGATION SCALE START */


/* ----------------------------------------------------------
   DESKTOP SIDEBAR WIDTH
   ---------------------------------------------------------- */

@media(min-width:1251px){

    .portal-sidebar{
        width:310px !important;
    }

    .portal-main{
        width:calc(100% - 310px) !important;
    }
}


/*
 * Slightly narrower desktop.
 */

@media(min-width:1024px) and (max-width:1250px){

    .portal-sidebar{
        width:280px !important;
    }

    .portal-main{
        width:calc(100% - 280px) !important;
    }
}


/* ----------------------------------------------------------
   NAVIGATION GROUP LABELS
   ---------------------------------------------------------- */

.portal-nav-group{
    padding:
        24px
        25px
        9px !important;

    color:#74879a !important;

    font-size:11px !important;
    font-weight:750 !important;

    line-height:1.2 !important;

    letter-spacing:.12em !important;

    text-transform:uppercase;
}


/* First group should not waste excessive top space */

.portal-nav-group:first-child{
    padding-top:21px !important;
}


/* ----------------------------------------------------------
   PRIMARY NAVIGATION LINKS
   ---------------------------------------------------------- */

.portal-nav-link{
    min-height:54px !important;

    padding:
        0
        24px !important;

    display:flex !important;
    align-items:center !important;

    color:#203d55 !important;

    font-size:15px !important;
    font-weight:550 !important;

    line-height:1.35 !important;

    letter-spacing:-.01em;

    border-left:
        3px solid
        transparent !important;

    transition:
        background-color .14s ease,
        color .14s ease,
        border-color .14s ease;
}


.portal-nav-link:hover{
    background:#f3f7fa !important;

    color:#0e4169 !important;
}


/*
 * Active navigation should be obvious,
 * but still restrained and professional.
 */

.portal-nav-link.active{
    background:#e8f1f8 !important;

    border-left-color:#176aa5 !important;

    color:#083e67 !important;

    font-weight:700 !important;
}


/* ----------------------------------------------------------
   SIDEBAR FOOTER / SIGN OUT
   ---------------------------------------------------------- */

.portal-sidebar-footer{
    padding:
        15px
        20px
        18px !important;
}


.portal-signout{
    min-height:48px !important;

    width:100% !important;

    padding:
        0
        7px !important;

    color:#334f64 !important;

    font-size:14px !important;
    font-weight:600 !important;

    line-height:1.3 !important;

    border-radius:6px;
}


.portal-signout:hover{
    color:#8a2730 !important;

    background:#fff3f3 !important;
}


/* ----------------------------------------------------------
   NAVIGATION AREA BREATHING ROOM
   ---------------------------------------------------------- */

.portal-nav{
    padding-bottom:16px;
}


/* ----------------------------------------------------------
   ACCESSIBILITY
   ---------------------------------------------------------- */

.portal-nav-link:focus-visible,
.portal-signout:focus-visible{
    outline:
        3px solid
        rgba(24,105,163,.22);

    outline-offset:-3px;
}


/* ----------------------------------------------------------
   PHONE/TABLET
   Desktop enlargement must not create oversized mobile nav.
   ---------------------------------------------------------- */

@media(max-width:1023px){

    .portal-nav-link{
        min-height:50px !important;

        padding-left:20px !important;
        padding-right:20px !important;

        font-size:14px !important;
    }

    .portal-nav-group{
        padding-left:20px !important;
        padding-right:20px !important;

        font-size:10px !important;
    }
}


/* A12-A3.7 PROFESSIONAL NAVIGATION SCALE END */
