/* ============================================================
   PRACTICE ANALYTICS DASHBOARD
   ============================================================ */

.dashboard-page{
    min-height:calc(100vh - 92px);
    padding-bottom:72px;
    background:#f7faf9;
}
.dashboard-header,
.dashboard-content{
    width:calc(100% - 40px);
    max-width:1440px;
    margin:0 auto;
    box-sizing:border-box;
}
.dashboard-header{
    padding:48px 0 28px;
}
.dashboard-header h1{
    margin:2px 0 0;
    color:#173b36;
    font-size:38px;
    line-height:1.15;
    letter-spacing:-1.2px;
}
.dashboard-header p{
    max-width:780px;
    margin:9px 0 0;
    color:#6b7d79;
    font-size:13px;
    line-height:1.65;
}
.page-eyebrow,
.panel-eyebrow{
    color:#0e7367;
    font-size:9px;
    font-weight:800;
    letter-spacing:.13em;
}

.dashboard-kpis{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    margin-bottom:14px;
}
.dashboard-kpi,
.dashboard-panel{
    border:1px solid #dce8e5;
    background:#fff;
    border-radius:16px;
    box-sizing:border-box;
}
.dashboard-kpi{
    min-height:112px;
    padding:18px 20px;
}
.dashboard-kpi>span{
    display:block;
    color:#647a75;
    font-size:10px;
    font-weight:700;
}
.dashboard-kpi>strong{
    display:block;
    margin:5px 0 1px;
    color:#0b6f64;
    font-size:32px;
    line-height:1.05;
    letter-spacing:-1px;
}
.dashboard-kpi>small{
    color:#95a39f;
    font-size:8px;
}

.dashboard-chart-grid{
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
    gap:14px;
    margin-bottom:14px;
}
.dashboard-panel{
    min-width:0;
    padding:20px;
}
.dashboard-panel-heading{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:16px;
}
.dashboard-panel-heading h2{
    margin:3px 0 0;
    color:#173b36;
    font-size:17px;
    line-height:1.25;
}
.dashboard-panel-heading p{
    margin:4px 0 0;
    color:#8a9895;
    font-size:8px;
}
.dashboard-legend{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    padding-top:3px;
    color:#71817d;
    font-size:8px;
    font-weight:600;
}
.dashboard-legend span{
    display:flex;
    align-items:center;
    gap:5px;
}
.dashboard-legend i{
    width:8px;
    height:8px;
    border-radius:3px;
}
.dashboard-legend .is-correct{background:#168276}
.dashboard-legend .is-incorrect{background:#c97262}

.dashboard-empty-chart{
    display:grid;
    place-items:center;
    min-height:210px;
    color:#94a29f;
    font-size:9px;
}

/* Seven-day stacked activity chart */
.seven-day-chart{
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    align-items:end;
    gap:12px;
    min-height:220px;
    padding:8px 4px 0;
}
.activity-day{
    display:flex;
    min-width:0;
    height:210px;
    flex-direction:column;
    align-items:center;
    justify-content:flex-end;
    gap:6px;
}
.activity-count{
    min-height:14px;
    color:#526b65;
    font-size:8px;
    font-weight:700;
}
.activity-bar-track{
    display:flex;
    width:min(100%,42px);
    height:156px;
    flex-direction:column;
    justify-content:flex-end;
    border-radius:7px 7px 3px 3px;
    background:#f1f5f4;
    overflow:hidden;
}
.activity-segment{
    width:100%;
    transition:height .25s ease;
}
.activity-segment.correct{background:#168276}
.activity-segment.incorrect{background:#c97262}
.activity-day-label{
    color:#81918d;
    font-size:8px;
    font-weight:600;
}
.activity-day.is-today .activity-day-label{
    color:#0e7367;
    font-weight:800;
}

/* Practice trend */
.practice-score-current{
    min-width:54px;
    padding:7px 10px;
    border:1px solid #cde3de;
    border-radius:10px;
    background:#eff8f6;
    color:#0e7367;
    font-size:20px;
    line-height:1;
    text-align:center;
}
.practice-score-chart{
    min-height:220px;
}
.practice-score-chart svg{
    display:block;
    width:100%;
    height:220px;
    overflow:visible;
}
.trend-grid{
    stroke:#e7efed;
    stroke-width:1;
}
.trend-label{
    fill:#93a19e;
    font-size:9px;
    font-family:"Poppins",sans-serif;
}
.trend-area{
    fill:rgba(14,115,103,.07);
}
.trend-line{
    fill:none;
    stroke:#0e7367;
    stroke-width:2.4;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.trend-dot{
    fill:#0e7367;
}

/* Subtopic table */
.dashboard-subtopic-panel{
    margin-bottom:14px;
}
.dashboard-table-heading{
    align-items:center;
}
.dashboard-filter-group{
    display:flex;
    padding:3px;
    border:1px solid #dce7e4;
    border-radius:10px;
    background:#f5f9f8;
}
.dashboard-filter-group button{
    min-width:54px;
    height:28px;
    padding:0 9px;
    border:0;
    border-radius:7px;
    background:transparent;
    color:#71817d;
    font:700 8px "Poppins",sans-serif;
    cursor:pointer;
}
.dashboard-filter-group button.is-active{
    background:#fff;
    color:#0e7367;
    box-shadow:0 1px 4px rgba(30,70,64,.08);
}
.dashboard-table-wrap{
    width:100%;
    overflow:auto;
    border:1px solid #e1eae8;
    border-radius:12px;
}
.dashboard-subtopic-table{
    width:100%;
    min-width:700px;
    border-collapse:collapse;
    table-layout:fixed;
}
.dashboard-subtopic-table th{
    padding:10px 12px;
    border-bottom:1px solid #dde8e5;
    background:#f4f9f7;
    color:#687d78;
    font-size:8px;
    font-weight:800;
    text-align:left;
    letter-spacing:.04em;
}
.dashboard-subtopic-table td{
    padding:9px 12px;
    border-bottom:1px solid #edf2f0;
    color:#536864;
    font-size:9px;
    line-height:1.35;
}
.dashboard-subtopic-table tbody tr:last-child td{
    border-bottom:0;
}
.dashboard-subtopic-table tbody tr:hover{
    background:#fbfdfc;
}
.dashboard-subtopic-table th:nth-child(1),
.dashboard-subtopic-table td:nth-child(1){width:82px}
.dashboard-subtopic-table th:nth-child(3),
.dashboard-subtopic-table th:nth-child(4),
.dashboard-subtopic-table th:nth-child(5){width:110px}
.dashboard-subtopic-table .is-number{
    text-align:right;
}
.subtopic-section-chip{
    display:inline-flex;
    align-items:center;
    height:22px;
    padding:0 7px;
    border-radius:999px;
    background:#eef7f5;
    color:#356c63;
    font-size:7.5px;
    font-weight:800;
}
.subtopic-name{
    color:#264c45;
    font-weight:650;
}
.performance-value{
    font-weight:800;
}
.dashboard-table-empty{
    height:100px;
    text-align:center!important;
    color:#96a39f!important;
}
.dashboard-benchmark-note{
    margin:9px 2px 0;
    color:#8c9a96;
    font-size:7.5px;
    line-height:1.5;
}

/* Derived insight panels */
.dashboard-insight-grid{
    display:grid;
    grid-template-columns:1.1fr .9fr .72fr;
    gap:14px;
}
.priority-list{
    display:flex;
    flex-direction:column;
    gap:7px;
}
.priority-item{
    display:grid;
    grid-template-columns:30px minmax(0,1fr);
    gap:10px;
    align-items:start;
    padding:10px 11px;
    border:1px solid #e2ebe9;
    border-radius:11px;
    background:#fbfdfc;
}
.priority-rank{
    display:grid;
    place-items:center;
    width:28px;
    height:28px;
    border-radius:9px;
    background:#eaf5f2;
    color:#0e7367;
    font-size:10px;
    font-weight:800;
}
.priority-item strong{
    display:block;
    color:#285149;
    font-size:9px;
}
.priority-item p{
    margin:3px 0 0;
    color:#7b8986;
    font-size:7.5px;
    line-height:1.45;
}
.priority-meta{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
    margin-top:5px;
}
.priority-meta span{
    padding:3px 6px;
    border-radius:999px;
    background:#f0f5f4;
    color:#6f817d;
    font-size:6.8px;
    font-weight:700;
}

.difficulty-profile{
    display:flex;
    flex-direction:column;
    gap:13px;
}
.difficulty-row{
    display:grid;
    grid-template-columns:60px minmax(0,1fr) 45px;
    gap:9px;
    align-items:center;
}
.difficulty-row>strong{
    color:#355a53;
    font-size:9px;
}
.difficulty-track{
    height:9px;
    overflow:hidden;
    border-radius:999px;
    background:#edf3f1;
}
.difficulty-fill{
    height:100%;
    border-radius:inherit;
    background:#0e7367;
}
.difficulty-value{
    text-align:right;
    color:#526864;
    font-size:8px;
    font-weight:800;
}
.difficulty-row small{
    grid-column:2/4;
    margin-top:-5px;
    color:#9aa6a3;
    font-size:6.8px;
}
.dashboard-empty-state{
    padding:24px 8px;
    color:#94a29f;
    font-size:8.5px;
    line-height:1.5;
    text-align:center;
}

.dashboard-muted{
    margin:0;
    color:#71817d;
    font-size:8.5px;
    line-height:1.55;
}
.dashboard-reset,
.dashboard-logout{
    width:100%;
    height:34px;
    margin-top:10px;
    border-radius:9px;
    font:700 8px "Poppins",sans-serif;
    cursor:pointer;
}
.dashboard-reset{
    border:1px solid #d78a7c;
    background:#fff;
    color:#b85b4b;
}
.dashboard-reset:hover{
    background:#fff6f4;
}
.dashboard-logout{
    border:1px solid #d8e4e1;
    background:#f8fbfa;
    color:#56716b;
}
.dashboard-logout:hover{
    border-color:#9bbab4;
}
.dashboard-reset:disabled,
.dashboard-logout:disabled{
    opacity:.55;
    cursor:wait;
}
.dashboard-data-note{
    margin-top:12px;
    padding:9px 11px;
    border:1px solid #eadfbd;
    border-radius:10px;
    background:#fffaf0;
    color:#836f3f;
    font-size:8px;
    line-height:1.45;
}

@media(max-width:1100px){
    .dashboard-chart-grid{grid-template-columns:1fr}
    .dashboard-insight-grid{grid-template-columns:1fr 1fr}
    .dashboard-account-panel{grid-column:1/-1}
}
@media(max-width:760px){
    .dashboard-header,.dashboard-content{width:calc(100% - 28px)}
    .dashboard-header{padding:38px 0 22px}
    .dashboard-header h1{font-size:32px}
    .dashboard-kpis{grid-template-columns:1fr}
    .dashboard-insight-grid{grid-template-columns:1fr}
    .dashboard-account-panel{grid-column:auto}
    .dashboard-table-heading{align-items:flex-start;flex-direction:column}
    .dashboard-panel{padding:16px}
    .seven-day-chart{gap:6px}
}
@media(max-width:480px){
    .dashboard-header,.dashboard-content{width:calc(100% - 22px)}
    .dashboard-panel-heading{flex-direction:column}
    .dashboard-legend{padding-top:0}
    .activity-bar-track{width:30px}
}


/* Labeled 7-day activity chart */
.seven-day-chart{
    position:relative;
    display:block;
    min-height:220px;
    padding:8px 8px 0 38px;
}
.activity-bars{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    align-items:end;
    gap:12px;
    min-height:210px;
}
.activity-scale{
    position:absolute;
    inset:0 auto 0 0;
    width:30px;
    z-index:3;
}
.activity-scale span{
    position:absolute;
    right:5px;
    transform:translateY(50%);
    color:#91a09c;
    font-size:7px;
    font-weight:600;
}
.activity-grid-line{
    position:absolute;
    z-index:1;
    left:38px;
    right:8px;
    border-top:1px solid #e8efed;
}
.activity-axis-title{
    position:absolute;
    left:-15px;
    top:104px;
    transform:rotate(-90deg);
    color:#9aa6a3;
    font-size:7px;
    font-weight:600;
    letter-spacing:.03em;
}
.activity-day{
    position:relative;
    z-index:2;
}
.activity-count{
    color:#48655f;
    font-size:8px;
    font-weight:800;
}

/* Mock-test score history */
.dashboard-mock-legend .is-composite{background:#0e7367}
.dashboard-mock-legend .is-rw{background:#6c82a3}
.dashboard-mock-legend .is-math{background:#b57a4a}
.mock-performance-chart{
    min-height:245px;
}
.mock-performance-chart svg{
    display:block;
    width:100%;
    height:245px;
    overflow:visible;
}
.mock-grid{
    stroke:#e7efed;
    stroke-width:1;
}
.mock-axis-label,
.mock-axis-title,
.mock-x-label{
    fill:#91a09c;
    font-family:"Poppins",sans-serif;
}
.mock-axis-label{
    font-size:8px;
}
.mock-axis-title{
    font-size:7px;
    font-weight:700;
}
.mock-x-label{
    font-size:7px;
}
.mock-x-label.is-complete{
    fill:#4f6963;
    font-weight:700;
}
.mock-series{
    fill:none;
    stroke-width:2.2;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.mock-series.is-composite{stroke:#0e7367}
.mock-series.is-rw{stroke:#6c82a3}
.mock-series.is-math{stroke:#b57a4a}
.mock-dot{
    stroke:#fff;
    stroke-width:1.7;
}
.mock-dot.is-composite{fill:#0e7367}
.mock-dot.is-rw{fill:#6c82a3}
.mock-dot.is-math{fill:#b57a4a}
.mock-empty-dot{
    fill:#dce6e3;
}

@media(max-width:760px){
    .activity-bars{gap:6px}
    .seven-day-chart{padding-left:34px}
    .activity-grid-line{left:34px}
}


/* Make mock-test chart labels easier to read without changing chart geometry. */
.dashboard-mock-legend{
    font-size:10px!important;
    gap:12px!important;
}
.dashboard-mock-legend i{
    width:9px!important;
    height:9px!important;
}
.mock-axis-label{
    font-size:9px!important;
    font-weight:600;
}
.mock-axis-title{
    font-size:9px!important;
    font-weight:800!important;
}
.mock-x-label{
    font-size:9px!important;
    font-weight:600;
}
.mock-x-label.is-complete{
    font-weight:800!important;
}


/* Make mock performance the dominant chart. */
.dashboard-chart-grid{
    grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr)!important;
}
.dashboard-trend-panel{
    padding:22px 24px!important;
}
.mock-performance-chart{
    min-height:330px!important;
}
.mock-performance-chart svg{
    height:330px!important;
}

/* Compact, wider recommendation area; difficulty panel retired. */
.dashboard-insight-grid{
    grid-template-columns:minmax(0,1fr) 300px!important;
    align-items:start!important;
}
.dashboard-priority-panel{
    padding:18px 20px!important;
}
.dashboard-priority-panel .dashboard-panel-heading{
    align-items:center;
    margin-bottom:11px!important;
}
.priority-method{
    max-width:330px;
    color:#899995;
    font-size:7.5px;
    line-height:1.4;
    text-align:right;
}
.priority-list{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:9px!important;
}
.priority-item{
    display:block!important;
    min-height:0!important;
    padding:11px 12px!important;
}
.priority-rank{
    width:auto!important;
    height:auto!important;
    margin-bottom:6px;
    display:inline-flex!important;
    padding:3px 7px;
    border-radius:999px!important;
    font-size:7px!important;
}
.priority-item strong{
    font-size:9px!important;
    line-height:1.35;
}
.priority-item p{
    margin-top:4px!important;
    font-size:7.2px!important;
    line-height:1.4!important;
}
.priority-meta{
    margin-top:6px!important;
}
.priority-meta span{
    padding:2px 5px!important;
    font-size:6.5px!important;
}
.dashboard-account-panel{
    padding:18px!important;
}
.dashboard-account-panel .dashboard-panel-heading{
    margin-bottom:10px!important;
}
@media(max-width:1100px){
    .dashboard-chart-grid{grid-template-columns:1fr!important}
    .dashboard-insight-grid{grid-template-columns:1fr!important}
    .priority-list{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:760px){
    .priority-method{text-align:left;max-width:none}
    .priority-list{grid-template-columns:1fr!important}
    .mock-performance-chart,
    .mock-performance-chart svg{min-height:280px!important;height:280px!important}
}


/* Final dashboard layout cleanup */
.dashboard-chart-grid{
    grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;
    align-items:stretch!important;
}
.dashboard-activity-panel,
.dashboard-trend-panel{
    min-height:0!important;
    padding:18px 20px!important;
}
.dashboard-activity-panel .dashboard-panel-heading,
.dashboard-trend-panel .dashboard-panel-heading{
    margin-bottom:10px!important;
}

.dashboard-chart-empty-state{
    min-height:150px!important;
    height:150px!important;
    display:flex!important;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:10px 18px!important;
    box-sizing:border-box;
    text-align:center;
    color:#879793;
}
.dashboard-chart-empty-state>strong{
    color:#47625c;
    font-size:10px;
}
.dashboard-chart-empty-state>span{
    margin-top:4px;
    font-size:7.5px;
    line-height:1.4;
}
.empty-day-strip,
.mock-empty-slots{
    display:grid;
    width:min(100%,560px);
    margin-top:13px;
    gap:7px;
}
.empty-day-strip{
    grid-template-columns:repeat(7,minmax(0,1fr));
}
.mock-empty-slots{
    grid-template-columns:repeat(8,minmax(0,1fr));
}
.empty-day-strip>div,
.mock-empty-slots>div{
    padding:6px 3px;
    border:1px solid #e1eae8;
    border-radius:7px;
    background:#f8fbfa;
}
.empty-day-strip b,
.mock-empty-slots b{
    display:block;
    color:#6f817d;
    font-size:8px;
}
.empty-day-strip small,
.mock-empty-slots small{
    display:block;
    margin-top:2px;
    color:#9aa6a3;
    font-size:6.5px;
}
.empty-day-strip .is-today{
    border-color:#afd2ca;
    background:#eef8f5;
}
.empty-day-strip .is-today small{
    color:#0e7367;
    font-weight:800;
}

.seven-day-chart{
    min-height:185px!important;
    height:185px!important;
    padding:5px 8px 0 38px!important;
}
.activity-bars{
    min-height:175px!important;
}
.activity-day{
    height:175px!important;
}
.activity-bar-track{
    height:132px!important;
}
.activity-axis-title{
    top:83px!important;
}
.activity-scale span{
    font-size:7.5px!important;
}

.mock-performance-chart{
    min-height:220px!important;
    height:220px!important;
}
.mock-performance-chart svg{
    height:220px!important;
}

/* Bottom cards: same height on desktop */
.dashboard-insight-grid{
    grid-template-columns:minmax(0,1fr) 300px!important;
    align-items:stretch!important;
}
.dashboard-priority-panel,
.dashboard-account-panel{
    height:174px!important;
    min-height:174px!important;
    box-sizing:border-box;
}
.dashboard-priority-panel{
    overflow:hidden;
}
.dashboard-priority-panel .dashboard-panel-heading{
    margin-bottom:8px!important;
}
.dashboard-priority-panel .dashboard-empty-state{
    padding:18px 10px!important;
}
.priority-item{
    padding:8px 10px!important;
}
.priority-item p{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.dashboard-account-panel .dashboard-muted{
    font-size:7.5px!important;
    line-height:1.4!important;
}
.dashboard-reset,
.dashboard-logout{
    height:29px!important;
    margin-top:7px!important;
}

@media(max-width:1100px){
    .dashboard-chart-grid{grid-template-columns:1fr!important}
    .dashboard-priority-panel,
    .dashboard-account-panel{
        height:auto!important;
        min-height:0!important;
    }
}


/* Unified university-style dashboard surfaces */
.dashboard-kpi,
.dashboard-panel{
    border:1px solid var(--ll-border,#dbe4e2)!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 4px 14px rgba(15,23,42,.045)!important;
}
.dashboard-kpi:hover,
.dashboard-panel:hover{
    border-color:#cbdad6;
}
.priority-item,
.dashboard-table-wrap,
.dashboard-filter-group{
    border-color:#dbe4e2!important;
    box-shadow:0 2px 6px rgba(15,23,42,.028)!important;
}
.dashboard-filter-group button,
.dashboard-reset,
.dashboard-logout{
    border-radius:9px!important;
    box-shadow:0 2px 5px rgba(15,23,42,.03)!important;
}
.dashboard-filter-group button:hover,
.dashboard-reset:hover,
.dashboard-logout:hover{
    transform:translateY(-1px);
    box-shadow:0 4px 9px rgba(15,23,42,.045)!important;
}


/* ============================================================
   NESTED SKILL PERFORMANCE — QUESTION BANK HIERARCHY
   ============================================================ */
.dashboard-subtopic-panel{
    margin-bottom:14px;
}
.dashboard-skill-groups{
    display:flex;
    flex-direction:column;
    gap:18px;
}
.dashboard-section-skill-group{
    display:flex;
    flex-direction:column;
    gap:9px;
}
.dashboard-section-skill-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:0 2px;
}
.dashboard-section-skill-head small{
    color:#8b9995;
    font-size:7.5px;
    line-height:1.35;
}
.dashboard-domain-skill-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:start;
    gap:14px;
}
.dashboard-domain-skill-group{
    overflow:hidden;
    border:1px solid #cfe0dc;
    border-radius:16px;
    background:linear-gradient(180deg,#f9fcfb 0%,#f3f8f7 100%);
    box-shadow:0 2px 7px rgba(15,23,42,.025);
}
.dashboard-domain-skill-head{
    min-height:76px;
    padding:14px 16px 13px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border-bottom:1px solid #d8e7e3;
    background:rgba(255,255,255,.38);
}
.dashboard-domain-skill-head>div{
    min-width:0;
}
.dashboard-domain-skill-head span{
    display:block;
    margin-bottom:3px;
    color:#0f766e;
    font-size:8px;
    font-weight:800;
    letter-spacing:1.15px;
}
.dashboard-domain-skill-head strong{
    display:block;
    color:#173f39;
    font-size:15px;
    font-weight:650;
    line-height:1.3;
}
.dashboard-domain-skill-head small{
    flex:0 0 auto;
    color:#7b8c87;
    font-size:7.5px;
    font-weight:700;
    white-space:nowrap;
}
.dashboard-domain-subtopics{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    padding:13px 14px 14px;
    background:rgba(255,255,255,.5);
}
.dashboard-subtopic-card{
    min-width:0;
    padding:11px 12px;
    border:1px solid #d3e1de;
    border-radius:10px;
    background:rgba(255,255,255,.94);
    box-shadow:0 1px 3px rgba(15,23,42,.025);
}
.dashboard-subtopic-card-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
}
.dashboard-subtopic-card-head strong{
    min-width:0;
    color:#294d46;
    font-size:9.5px;
    font-weight:700;
    line-height:1.35;
}
.dashboard-subtopic-card-head>span{
    flex:0 0 auto;
    color:#8b9995;
    font-size:6.8px;
    font-weight:700;
    white-space:nowrap;
}
.dashboard-subtopic-metrics{
    display:flex;
    flex-wrap:wrap;
    gap:5px 10px;
    margin-top:7px;
}
.dashboard-subtopic-metrics span{
    color:#7a8a86;
    font-size:7px;
    font-weight:600;
}
.dashboard-subtopic-metrics b{
    margin-left:3px;
    font-size:7.5px;
    font-weight:800;
}
.dashboard-subtopic-card p{
    margin:8px 0 0;
    padding-top:8px;
    border-top:1px solid #edf2f0;
    color:#74837f;
    font-size:7.4px;
    line-height:1.5;
}
.dashboard-account-panel-standalone{
    width:min(100%,300px);
    height:auto!important;
    min-height:0!important;
    margin-left:auto;
    box-sizing:border-box;
}
@media(max-width:900px){
    .dashboard-domain-skill-grid{
        grid-template-columns:1fr;
    }
}
@media(max-width:620px){
    .dashboard-domain-subtopics{
        grid-template-columns:1fr;
        padding:11px 12px 12px;
    }
    .dashboard-domain-skill-head{
        min-height:68px;
        padding:12px 14px;
    }
    .dashboard-section-skill-head{
        align-items:flex-start;
        flex-direction:column;
        gap:5px;
    }
    .dashboard-account-panel-standalone{
        width:100%;
    }
}


/* ============================================================
   DASHBOARD HEADER ACCOUNT + UNIVERSITY-STYLE SKILL SEVERITY
   ============================================================ */
.dashboard-header{
    display:grid;
    grid-template-columns:minmax(0,1fr) 300px;
    align-items:start;
    gap:24px;
}
.dashboard-header-copy{
    min-width:0;
}
.dashboard-account-panel-top{
    width:300px;
    justify-self:end;
    align-self:start;
    padding:14px 15px!important;
    border-radius:14px!important;
}
.dashboard-account-panel-top .dashboard-panel-heading{
    margin-bottom:7px!important;
}
.dashboard-account-panel-top .dashboard-panel-heading h2{
    font-size:14px!important;
}
.dashboard-account-panel-top .dashboard-muted{
    margin:0 0 9px!important;
    font-size:7.5px!important;
    line-height:1.4!important;
}
.dashboard-account-actions{
    display:grid;
    grid-template-columns:minmax(0,1fr) 82px;
    gap:7px;
}
.dashboard-account-panel-top .dashboard-reset,
.dashboard-account-panel-top .dashboard-logout{
    width:100%;
    height:30px!important;
    margin:0!important;
    padding:0 9px;
}
.dashboard-account-panel-top .dashboard-reset{
    border-color:#dcc1bc;
    background:#fcf8f7;
    color:#8b4d4a;
}
.dashboard-account-panel-top .dashboard-logout{
    border-color:#d7e1de;
    background:#f7faf9;
    color:#587368;
}

/* No-data skills stay neutral. */
.dashboard-subtopic-card.severity-neutral{
    border-color:#d8e1df;
    background:#fbfcfb;
}
.dashboard-subtopic-card.severity-neutral .dashboard-subtopic-card-head strong{
    color:#53615f;
}

/* On-track: muted green, matching the university SAT label palette. */
.dashboard-subtopic-card.severity-strong{
    border-color:#cfe2db;
    background:#f7fbf9;
}
.dashboard-subtopic-card.severity-strong .dashboard-subtopic-card-head strong{
    color:#326958;
}
.dashboard-subtopic-card.severity-strong p{
    border-top-color:#e2ece8;
}

/* Mild weakness: olive/amber rather than bright yellow. */
.dashboard-subtopic-card.severity-watch{
    border-color:#e8e4d5;
    background:#fcfbf6;
}
.dashboard-subtopic-card.severity-watch .dashboard-subtopic-card-head strong{
    color:#7b7047;
}
.dashboard-subtopic-card.severity-watch p{
    border-top-color:#eeeadd;
}

/* Clear weakness: warm brown-red transition. */
.dashboard-subtopic-card.severity-weak{
    border-color:#eadfd4;
    background:#fcfaf7;
}
.dashboard-subtopic-card.severity-weak .dashboard-subtopic-card-head strong{
    color:#8a6245;
}
.dashboard-subtopic-card.severity-weak p{
    border-top-color:#efe5dc;
}

/* Worst skills: muted university red, never neon. */
.dashboard-subtopic-card.severity-critical{
    border-color:#ead8d6;
    background:#fcf8f7;
}
.dashboard-subtopic-card.severity-critical .dashboard-subtopic-card-head strong{
    color:#8b4d4a;
}
.dashboard-subtopic-card.severity-critical p{
    border-top-color:#efdfdd;
}
.dashboard-subtopic-card.severity-watch,
.dashboard-subtopic-card.severity-weak,
.dashboard-subtopic-card.severity-critical{
    box-shadow:none;
}

@media(max-width:900px){
    .dashboard-header{
        grid-template-columns:1fr;
        gap:14px;
    }
    .dashboard-account-panel-top{
        width:min(100%,420px);
        justify-self:start;
    }
}
@media(max-width:520px){
    .dashboard-account-panel-top{
        width:100%;
    }
    .dashboard-account-actions{
        grid-template-columns:1fr;
    }
}

/* Personalized study guide entry */
.dashboard-study-guide-card{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:14px;background:#f0f8f5;border-color:#cce3db}
.dashboard-study-guide-card h2{font-size:18px;color:#164e43;margin:7px 0 6px}
.dashboard-study-guide-card p{font-size:11px;color:#648078;line-height:1.6;margin:0}
.dashboard-guide-link{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:#0e756a;color:white!important;padding:12px 16px;font-size:11px;font-weight:750;white-space:nowrap;text-decoration:none}
html.lexlogica-dark-mode .dashboard-study-guide-card{background:#1d342e;border-color:#355a4d}
html.lexlogica-dark-mode .dashboard-study-guide-card h2{color:#d9f3ea}
@media(max-width:650px){.dashboard-study-guide-card{flex-direction:column;align-items:flex-start}.dashboard-guide-link{width:100%;box-sizing:border-box}}
