body:has(.home-dashboard) .topbar {background:#0d2331;color:#e6f5fa;border-color:#254453}
body:has(.home-dashboard) .topbar .crumb {display:none}
body:has(.home-dashboard) .topbar .pill {background:#193946;color:#c4f3ef;border-color:#41606b}
body:has(.home-dashboard) .topbar .logout {background:#15303d;color:#e4f6f8;border-color:#466370}
body:has(.home-dashboard) #study-search {background:#1c3545;border-color:#537282;color:#c5e7ef}
body:has(.home-dashboard) #study-search input {color:#fff}
body:has(.home-dashboard) #study-search input::placeholder {color:#c1d4df}
body:has(.home-dashboard) .main {background:linear-gradient(135deg,#f8fbfd,#e8f1f7)}
body:has(.home-dashboard) .content {max-width:1600px!important;padding:clamp(14px,2vw,26px)}
.home-dashboard {display:grid;grid-template-columns:minmax(0,2.35fr) minmax(270px,1fr);gap:clamp(14px,1.5vw,24px);color:#0b2334}
.home-dashboard-main,.home-dashboard-side {display:grid;align-content:start;gap:16px;min-width:0}
.home-dashboard .study-hero {margin:0;min-height:300px}
.home-dashboard .study-hero h1 {font-size:clamp(1.9rem,3.2vw,3.3rem)}
.home-dashboard .study-hero h1 em:empty {display:none}
.home-dashboard .study-hero p {color:#70f2e8;font-size:clamp(1rem,2vw,1.65rem);font-weight:760;margin-bottom:1rem}
.home-hero-links {display:flex;flex-wrap:wrap;gap:.55rem 1rem;margin:0 0 1rem}
.home-hero-links span {display:inline-flex;align-items:center;gap:.4rem;font-size:.78rem}
.home-dashboard svg {flex:none}
.home-hero-links svg,.home-dashboard .study-hero button svg {width:18px;height:18px}
.home-hero-links svg {color:#7af7f3}
.home-actions,.home-rooms {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.home-actions a,.home-room,.home-panel,.home-recent,.home-specialties {background:#f9fcfe;border:1px solid #c7d9e3;border-radius:14px;box-shadow:0 5px 14px #163c5410}
.home-actions a {display:flex;align-items:center;gap:.55rem;color:#0b2334;padding:.7rem;text-decoration:none;min-width:0}
.home-actions a:first-child {background:#c1faf3;border-color:#a2e4dd}
.home-actions strong,.home-actions small {display:block}
.home-actions strong {font-size:.88rem;line-height:1.2}
.home-actions small {font-size:.72rem;color:#355365;margin-top:.3rem}
.home-symbol {display:inline-grid;place-items:center;width:2.25rem;height:2.25rem;flex:none;border-radius:.75rem;background:#d7f0f3;color:#076b77}
.home-block-title {display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin:0 0 .65rem}
.home-block-title h2 {display:flex;align-items:center;gap:.45rem;margin:0;color:#0b2334;font-size:clamp(.95rem,1.5vw,1.25rem);line-height:1.2}
.home-block-title svg {color:#087782}
.home-block-title a {font-size:.78rem;color:#145274;font-weight:750;text-decoration:none;text-align:right}
.home-specialties {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding:7px}
.home-specialties .specialty-tile {display:grid;justify-items:center;align-content:center;gap:.35rem;min-height:78px;padding:.4rem;border:1px solid #d1dfe7;border-radius:10px;background:var(--tile,#e8f3fb);color:var(--icon,#056c94);text-decoration:none;text-align:center}
.specialty-tile strong {font-size:.75rem;line-height:1.2;color:#102536}
.specialty-tile.tone-1 {--tile:#f8eceb;--icon:#a73852}
.specialty-tile.tone-2 {--tile:#faf3e5;--icon:#8a5601}
.specialty-tile.tone-3 {--tile:#faebf2;--icon:#a22165}
.specialty-tile.tone-4 {--tile:#e8f6f1;--icon:#087264}
.specialty-tile.tone-5 {--tile:#f0edfb;--icon:#6540a4}
.home-panel {padding:clamp(12px,1.35vw,20px)}
.home-panel p {margin:.45rem 0;color:#314e62;font-size:.9rem}
.home-course-progress {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px}
.home-ring {display:grid;place-items:center;width:78px;aspect-ratio:1;border-radius:50%;background:conic-gradient(#007983 var(--progress),#d9e7ee 0)}
.home-ring strong {display:grid;place-items:center;width:61px;aspect-ratio:1;border-radius:50%;background:#f9fcfe;color:#102838}
.home-course-progress progress {width:100%;accent-color:#007b83;height:.7rem}
.home-full-action {display:flex!important;align-items:center;justify-content:center;gap:.5rem;text-decoration:none;margin-top:.7rem}
.home-full-action svg {width:16px;height:16px}
.home-week {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;gap:.2rem}
.home-week div {display:grid;justify-items:center;gap:.15rem}
.home-week span {display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1px solid #b9ced9;color:#587388}
.home-week span.done {background:#007b83;color:#fff;border-color:#007b83}
.home-week small {font-size:.73rem}
.home-side-links {display:grid;grid-template-columns:1fr 1fr;gap:7px}
.home-side-links a,.home-side-links button,.home-recent button {display:flex;align-items:center;gap:.4rem;padding:.55rem;background:#edf5f9;color:#11324a;border:1px solid #cbdde8;border-radius:8px;text-align:left;text-decoration:none;font-size:.77rem;font-weight:720}
.home-side-links svg,.home-recent svg {width:17px;height:17px;color:#076b77}
.home-summary,.home-empty {font-size:.82rem}
.home-recent {display:grid;padding:5px;gap:4px}
.home-recent button {display:grid;grid-template-columns:auto minmax(0,1fr) auto;width:100%;background:#f6fafc}
.home-recent span {display:inline-flex;align-items:center;gap:.3rem}
.home-rooms {grid-template-columns:repeat(3,minmax(0,1fr))}
.home-rooms .home-room {display:grid;justify-items:start;align-content:start;grid-template-rows:auto auto minmax(2.4em,auto) auto 1fr;gap:.38rem;min-width:0;padding:clamp(10px,1.2vw,18px);text-align:left;color:#0b2334;overflow-wrap:break-word;line-height:1.2}
.home-room strong {font-size:clamp(.89rem,1.2vw,1.05rem)}
.home-room span:not(.home-symbol),.home-room small {font-size:.82rem;color:#355365}
.home-room .room-open {display:inline-flex;align-items:center;gap:.3rem;margin-top:.3rem;color:#087782!important;font-weight:750}
.room-open svg {width:16px;height:16px}
.home-dashboard a:hover,.home-dashboard button:hover {border-color:#07969e}
.home-dashboard :focus-visible {outline:2px solid #00838c;outline-offset:3px}
@media(max-width:1080px){.home-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.home-specialties{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:980px){.home-dashboard{grid-template-columns:1fr}.home-dashboard-side{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.home-specialties{grid-template-columns:repeat(3,minmax(0,1fr))}.home-dashboard-side,.home-rooms{grid-template-columns:1fr}.home-rooms .home-room{grid-template-rows:auto}.home-dashboard .study-hero{min-height:235px}.home-recent span{font-size:0}.home-hero-links{gap:.25rem}.home-hero-links span{font-size:.72rem}}
@media(min-width:981px){
 .home-dashboard .study-hero {padding:clamp(18px,2vw,30px);min-height:285px}
 .home-dashboard .study-hero h1 {font-size:clamp(1.8rem,2.8vw,3.1rem)}
 .home-dashboard .study-hero p {font-size:clamp(1rem,1.55vw,1.4rem)}
}
