/* Homepage analytics: visible only to authenticated students after session verification. */
#home-dashboard[hidden],
#dashboard-reset-confirmation[hidden],
#dashboard-reset[hidden]{display:none!important}

.home-dashboard.dashboard-page{
    min-height:0;
    padding:0 0 44px;
    background:#f4f9f7;
    border-bottom:1px solid #dce9e5;
}
.home-dashboard .dashboard-header{display:block;padding:34px 0 20px}
.home-dashboard .dashboard-header h2{
    margin:5px 0 0;
    color:#173b36;
    font-size:clamp(25px,3vw,36px);
    line-height:1.2;
    letter-spacing:-.7px;
}
.home-dashboard .dashboard-header p{
    margin-top:8px;
    color:#617a73;
    font-size:13px;
}
.home-dashboard .dashboard-content{padding-bottom:6px}
.dashboard-account-settings{
    width:calc(100% - 40px);
    max-width:1440px;
    margin:14px auto 0;
    box-sizing:border-box;
}
.dashboard-settings-disclosure{
    width:min(100%,620px);
    margin-left:auto;
    border:1px solid #d9e5e1;
    background:#fff;
    border-radius:12px;
    color:#526b64;
}
.dashboard-settings-disclosure summary{
    padding:13px 18px;
    cursor:pointer;
    font-size:12px;
    font-weight:600;
    list-style-position:inside;
}
.dashboard-settings-disclosure summary:focus-visible,
.dashboard-settings-disclosure button:focus-visible,
.dashboard-settings-disclosure input:focus-visible{
    outline:3px solid #deac54;
    outline-offset:2px;
}
.dashboard-settings-inner{
    padding:0 18px 18px;
    border-top:1px solid #edf1ef;
}
.dashboard-settings-inner p{
    margin:15px 0 12px;
    line-height:1.65;
    color:#6b7c77;
    font-size:12px;
}
.dashboard-settings-inner .dashboard-reset{
    width:auto;
    min-width:180px;
    padding:0 15px;
    margin:2px 0 0;
    font-size:12px;
}
.dashboard-reset-confirmation{
    margin-top:14px;
    padding:16px;
    background:#fff7f5;
    border:1px solid #e9cfc9;
    border-radius:10px;
}
.dashboard-reset-confirmation label{
    display:block;
    color:#753e37;
    font-size:12px;
    line-height:1.5;
    margin-bottom:10px;
}
.dashboard-reset-confirmation input{
    width:min(100%,280px);
    height:38px;
    border:1px solid #b9c9c4;
    border-radius:8px;
    padding:8px 12px;
    font:500 13px Poppins,sans-serif;
}
.dashboard-reset-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}
.dashboard-reset-actions button{
    border-radius:8px;
    padding:9px 14px;
    font:600 12px Poppins,sans-serif;
    cursor:pointer;
}
.dashboard-reset-confirm{background:#a14235;color:white;border:1px solid #a14235}
.dashboard-reset-confirm:disabled{opacity:.4;cursor:not-allowed}
.dashboard-reset-cancel{border:1px solid #c4d1cd;background:#fff;color:#49625b}
@media(max-width:760px){
    .home-dashboard .dashboard-header{padding:26px 0 18px}
    .dashboard-account-settings{width:calc(100% - 28px)}
}
@media(max-width:480px){
    .dashboard-account-settings{width:calc(100% - 22px)}
}

/* Avoid a white flash for users who prefer the site's dark theme. */
html.lexlogica-dark-mode:not(.lexlogica-home-inverted) .home-dashboard.dashboard-page{
    background:#101b1a;
    border-bottom-color:#2a403b;
}
html.lexlogica-dark-mode:not(.lexlogica-home-inverted) .home-dashboard .dashboard-header h2{color:#d9eee7}
html.lexlogica-dark-mode:not(.lexlogica-home-inverted) .home-dashboard .dashboard-header p{color:#a8bdb6}
html.lexlogica-dark-mode:not(.lexlogica-home-inverted) .dashboard-settings-disclosure{
    background:#1a2926;
    color:#d1e4dc;
    border-color:#39524a;
}
html.lexlogica-dark-mode:not(.lexlogica-home-inverted) .dashboard-settings-inner{border-color:#39524a}
html.lexlogica-dark-mode:not(.lexlogica-home-inverted) .dashboard-settings-inner p{color:#aebfb9}
html.lexlogica-dark-mode:not(.lexlogica-home-inverted) .dashboard-reset-confirmation{
    background:#382422;
    border-color:#784b43;
}
html.lexlogica-dark-mode:not(.lexlogica-home-inverted) .dashboard-reset-confirmation label{color:#f5d1ca}

/* Guest visitors see the complete public homepage layout. Private charts
   stay empty until an authenticated account supplies actual practice data. */
.home-dashboard.is-guest .dashboard-account-settings[hidden]{display:none!important}
.home-dashboard.is-guest .dashboard-kpi>strong{
    color:#718b84;
}
.home-dashboard.is-guest .dashboard-empty-chart .dashboard-empty-state,
.home-dashboard.is-guest .dashboard-skill-groups .dashboard-empty-state{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:96px;
    padding:18px;
    color:#789088;
    background:#f8fbfa;
    border:1px dashed #d8e8e2;
    border-radius:11px;
    text-align:center;
    font-size:12px;
    line-height:1.65;
}
.home-dashboard.is-guest .dashboard-filter-group button:disabled{
    opacity:.48;
    cursor:not-allowed;
}
.home-dashboard.is-guest .sg-goal-entry input:disabled,
.home-dashboard.is-guest .sg-goal-entry button:disabled{
    opacity:.64;
    cursor:not-allowed;
}
.home-dashboard.is-guest .sg-priority-item .sg-priority-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

/* Progressive disclosure: real analytics and detailed reports remain available
   but no longer compete with the three immediate practice priorities. */
.home-progress-example[hidden]{display:none!important}
.home-dashboard .home-disclosure{
    margin:0 0 14px;
    background:#fff;
    border:1px solid #dce8e5;
    border-radius:16px;
    overflow:hidden;
}
.home-disclosure-summary{
    padding:17px 20px;
    display:flex;
    align-items:center;
    gap:13px;
    list-style:none;
    cursor:pointer;
    transition:background-color .18s ease;
}
.home-disclosure-summary::-webkit-details-marker{display:none}
.home-disclosure-summary:hover{background:#f5faf8}
.home-disclosure-icon{
    width:38px;height:38px;display:grid;place-items:center;flex-shrink:0;
    border:1px solid #d0e6dd;border-radius:10px;color:#0e7367;background:#eff8f4;
    font-weight:800;font-size:19px;
}
.home-disclosure-title{display:grid;gap:3px;min-width:0;flex:1}
.home-disclosure-title strong{font-size:15px;color:#173b36;line-height:1.4}
.home-disclosure-title small{font-size:10px;color:#718781;line-height:1.5}
.home-disclosure-toggle{
    color:#0e7367;font-size:11px;font-weight:700;white-space:nowrap;
}
.home-disclosure-toggle span{font-size:15px;display:inline-block;transition:transform .2s}
.home-disclosure[open] .home-disclosure-toggle span{transform:rotate(180deg)}
.home-disclosure-content{padding:0 16px 18px}
.home-disclosure[open] .home-disclosure-summary{border-bottom:1px solid #e7efec;margin-bottom:16px}
.home-progress-example{
    background:#f2f8f5;border:1px solid #d7e7e0;border-radius:11px;
    padding:13px 15px;margin:0 0 13px;display:grid;gap:5px;
}
.home-progress-example>strong{font-size:10px;letter-spacing:.03em;color:#0b796b}
.home-progress-example>span{font-size:13px;color:#294943;font-weight:700}
.home-progress-example p{font-size:11px;color:#6c8079;line-height:1.6;margin:0}
.home-dashboard .home-disclosure .dashboard-chart-grid{margin-bottom:14px}
.home-dashboard .home-disclosure .dashboard-subtopic-panel{margin-bottom:0}
.home-disclosure summary:focus-visible{
    outline:3px solid #deac54;outline-offset:-3px;border-radius:10px;
}
html.lexlogica-dark-mode:not(.lexlogica-home-inverted) .home-dashboard .home-disclosure{
    background:#1a2926;border-color:#36534b;
}
html.lexlogica-dark-mode:not(.lexlogica-home-inverted) .home-disclosure-summary:hover{background:#253c35}
html.lexlogica-dark-mode:not(.lexlogica-home-inverted) .home-disclosure-title strong{color:#dcebe5}
html.lexlogica-dark-mode:not(.lexlogica-home-inverted) .home-disclosure-title small{color:#a8c0b6}
html.lexlogica-dark-mode:not(.lexlogica-home-inverted) .home-disclosure[open] .home-disclosure-summary{border-color:#36534b}
html.lexlogica-dark-mode:not(.lexlogica-home-inverted) .home-progress-example{background:#233831;border-color:#36534b}
html.lexlogica-dark-mode:not(.lexlogica-home-inverted) .home-progress-example>span{color:#dbede5}
@media(max-width:640px){
    .home-disclosure-summary{padding:14px;gap:9px}
    .home-disclosure-icon{width:32px;height:32px}
    .home-disclosure-title strong{font-size:13px}
    .home-disclosure-title small{font-size:9px}
    .home-disclosure-toggle{font-size:0}
    .home-disclosure-toggle span{font-size:19px}
    .home-disclosure-content{padding:0 10px 12px}
}
