/* COGO_HOME_CHARACTERS_R4 — keep existing home grid and the full avatar. */
html body #main .sh-workspace-r2 .challenge-hero9.cg-week-r3{padding:0!important;gap:0;display:block!important;border-color:#e0e7ee;background:none!important;overflow:hidden;isolation:isolate;}
html body #main .sh-workspace-r2 .gw-layout-r4{--gw-bg:#edf7f4;--gw-end:#edf3fd;--gw-accent:#427d76;--gw-ink:#304d52;--gw-muted:#627d85;--gw-line:#c5dedb;position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,32%);grid-template-rows:auto minmax(0,1fr) auto auto;gap:16px 20px;padding:22px 24px;height:100%;box-sizing:border-box;color:var(--gw-ink);background:linear-gradient(125deg,var(--gw-bg),var(--gw-end));}
html body #main .gw-layout-r4[data-gw-theme=sky]{--gw-bg:#eef6ff;--gw-end:#eaf6f7;--gw-accent:#416d9e;--gw-ink:#304d70;--gw-muted:#667f99;--gw-line:#c9daeb;}
html body #main .gw-layout-r4[data-gw-theme=peach]{--gw-bg:#fff2e9;--gw-end:#fbf0f5;--gw-accent:#9b6651;--gw-ink:#694f49;--gw-muted:#94776e;--gw-line:#e8d3c8;}
html body #main .gw-layout-r4[data-gw-theme=lilac]{--gw-bg:#f1edff;--gw-end:#edf2ff;--gw-accent:#7460a3;--gw-ink:#50496d;--gw-muted:#7d7396;--gw-line:#d8d0e9;}
html body #main .gw-layout-r4[data-gw-theme=rose]{--gw-bg:#fff0f6;--gw-end:#f9f0ec;--gw-accent:#a0627d;--gw-ink:#704c60;--gw-muted:#987486;--gw-line:#ecd3dd;}
html body #main .gw-layout-r4[data-gw-theme=butter]{--gw-bg:#fcf7e7;--gw-end:#eff5eb;--gw-accent:#877348;--gw-ink:#605c43;--gw-muted:#888164;--gw-line:#dedbc0;}
html body #main .sh-workspace-r2 .gw-layout-r4 .gw-heading-r3{grid-column:1/-1;min-width:0;align-items:center;gap:10px;}
html body #main .sh-workspace-r2 .gw-layout-r4 .hero-kicker9{color:var(--gw-muted);font-size:9px;letter-spacing:.12em;}
html body #main .sh-workspace-r2 .gw-layout-r4 h2{font-size:clamp(17px,1.35vw,25px);color:var(--gw-ink);line-height:1.4;}
html body #main .gw-history-button-r4{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:34px;padding:7px 10px;border:1px solid var(--gw-line);border-radius:11px;background:#ffffff85;color:var(--gw-ink);font:600 11px/1.3 inherit;font-size:11px;white-space:nowrap;box-shadow:0 2px 3px #1e364605;cursor:pointer;transition:background .18s,border-color .18s;}
html body #main .gw-history-button-r4 svg{width:15px;height:15px;}
html body #main .gw-history-button-r4:hover{background:#fff;border-color:var(--gw-accent);}
html body #main .gw-story-r4{grid-column:1;grid-row:2;align-self:center;min-width:0;}
html body #main .sh-workspace-r2 .gw-story-r4 .gw-range-r3{display:inline-block;font-size:10px;line-height:1.4;border:0;background:#ffffff70;color:var(--gw-muted);padding:4px 8px;}
html body #main .gw-story-r4 h3{font-size:clamp(20px,1.6vw,31px);line-height:1.5;letter-spacing:-.055em;margin:10px 0 5px;font-weight:750;color:var(--gw-ink);word-break:keep-all;}
html body #main .sh-workspace-r2 .gw-story-r4 p{display:block;margin:0;font-size:12px;line-height:1.7;color:var(--gw-muted);word-break:keep-all;}
html body #main .gw-art-r4{position:relative;grid-column:2;grid-row:2/4;align-self:stretch;display:grid;place-items:center;min-height:0;min-width:0;margin:0;isolation:isolate;}
html body #main .gw-art-r4 img{position:absolute;width:100%;height:100%;max-height:285px;object-fit:contain;object-position:center;z-index:1;filter:drop-shadow(0 9px 7px #17293e08);animation:gw-arrive-r4 .4s ease-out;}
html body #main .gw-orbit-r4{position:absolute;width:100%;aspect-ratio:1;max-height:100%;border-radius:50%;background:#ffffff4d;border:1px solid #ffffff8a;transform:rotate(-12deg);}
html body #main .gw-orbit-r4:before,html body #main .gw-orbit-r4:after{content:'';position:absolute;width:12px;height:12px;background:var(--gw-accent);opacity:.18;border-radius:4px;top:9%;left:12%;transform:rotate(30deg);}
html body #main .gw-orbit-r4:after{top:auto;left:auto;bottom:8%;right:5%;width:8px;height:8px;}
html body #main [data-gw-motif=steps] .gw-orbit-r4{border-radius:35% 50% 30% 50%;background:repeating-linear-gradient(0deg,#ffffff12 0 24px,#ffffff50 24px 26px);}
html body #main [data-gw-motif=stars] .gw-orbit-r4{background:radial-gradient(circle,#ffffffb0 1px,transparent 2px) 0 0/20px 20px;border-style:dashed;}
html body #main [data-gw-motif=garden] .gw-orbit-r4{border-radius:50% 50% 30% 30%;background:linear-gradient(155deg,#ffffff75,#ffffff10);}
html body #main [data-gw-motif=ribbons] .gw-orbit-r4{border-radius:28%;transform:rotate(12deg);background:repeating-linear-gradient(135deg,#ffffff15 0 20px,#ffffff40 20px 24px);}
html body #main [data-gw-motif=tiles] .gw-orbit-r4{border-radius:30%;background:linear-gradient(90deg,#ffffff50 1px,transparent 1px) 0 0/24px 24px,linear-gradient(#ffffff50 1px,transparent 1px) 0 0/24px 24px;}
html body #main .gw-art-fallback-r4{display:none;font-size:30px;letter-spacing:-.08em;color:var(--gw-accent);font-weight:900;text-align:center;z-index:2;}
html body #main .gw-art-fallback-r4>span{display:block;font-size:11px;letter-spacing:0;font-weight:500;margin-top:5px;}
html body #main .gw-art-r4.is-failed>img{display:none;}
html body #main .gw-art-r4.is-failed>.gw-art-fallback-r4{display:block;}
html body #main .sh-workspace-r2 .gw-layout-r4 .gw-days-r3{grid-column:1;grid-row:3;gap:7px;align-items:start;}
html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3{gap:7px;min-width:0;color:var(--gw-muted);}
html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3>span{font-size:11px;}
html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3>i{width:clamp(28px,2.7vw,43px);height:clamp(28px,2.7vw,43px);border-radius:13px;border-color:var(--gw-line);background:#ffffff65;}
html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3.is-active>i{background:var(--gw-accent);border-color:var(--gw-accent);}
html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3.is-today>i{outline-color:var(--gw-accent);outline-offset:3px;}
html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3>i>b{background:var(--gw-accent);}
html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3 svg{width:19px;height:19px;}
.gw-today-r4{display:block;font-size:9px;font-weight:750;line-height:1.2;}
.gw-special-r4{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:2px;min-height:15px;min-width:0;width:100%;}
.gw-event-r4{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;line-height:1.6;font-weight:600;border-radius:5px;padding:0 4px;background:#ece8fb;color:#736096;}
.gw-event-r4.is-holiday{color:#b86064;background:#fff0ef;}
.gw-event-r4.is-join{color:#527ba6;background:#eaf3ff;}
.gw-extra-r4{font-size:8px;line-height:1.3;color:var(--gw-muted);}
html body #main .sh-workspace-r2 .gw-layout-r4 .gw-bottom-r3{grid-column:1/-1;grid-row:4;border-top:1px solid var(--gw-line);padding-top:10px;min-width:0;gap:10px;}
html body #main .sh-workspace-r2 .gw-layout-r4 .gw-bottom-r3 p,html body #main .sh-workspace-r2 .gw-layout-r4 .gw-bottom-r3>span{color:var(--gw-muted);font-size:10px;}
html body #main .sh-workspace-r2 .gw-layout-r4 .gw-bottom-r3 b{color:var(--gw-accent);font-size:14px;}
/* Subject buttons keep icons and labels inside one consistent touch target. */
html body #main .sh-workspace-r2 .home-subject-block9.gw-subjects-r4{display:flex;flex-direction:column;gap:8px;min-height:0;}
html body #main .sh-workspace-r2 .gw-subjects-r4>header{flex:none;min-height:22px;display:flex;align-items:center;justify-content:space-between;gap:8px;}
html body #main .sh-workspace-r2 .gw-subjects-r4 h2{font-size:14px;line-height:1.4;margin:0;}
html body #main .sh-workspace-r2 .gw-subjects-r4 .home-subjects9{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;flex:1;min-height:0;}
html body #main .sh-workspace-r2 .gw-subjects-r4 .home-subjects9>button{position:relative;display:flex!important;flex-direction:row!important;justify-content:center;align-items:center;gap:8px;min-width:0;min-height:44px;height:100%;padding:8px 5px!important;border:1px solid var(--border,#e7eaf0);border-radius:13px;background:var(--surface,#fff);box-shadow:0 2px 4px #28385003;transform:none;overflow:visible;transition:border-color .16s,background .16s,box-shadow .16s;}
html body #main .sh-workspace-r2 .gw-subjects-r4 .home-subjects9>button:hover{border-color:var(--subject-color,#7086b3);background:var(--subject-tint,#f0f4ff);box-shadow:0 3px 8px #28385006;}
html body #main .sh-workspace-r2 .gw-subjects-r4 .home-subjects9>button>.gw-subject-icon-r4{position:static!important;display:grid;place-items:center;transform:none!important;inset:auto!important;width:30px;height:30px;flex:0 0 30px;margin:0;padding:0;border-radius:9px;background:var(--subject-tint,#f0f4ff);color:var(--subject-color,#5972a8);}
html body #main .sh-workspace-r2 .gw-subjects-r4 .gw-subject-icon-r4 svg{width:19px!important;height:19px!important;display:block!important;position:static!important;transform:none!important;margin:0!important;}
html body #main .sh-workspace-r2 .gw-subjects-r4 .home-subjects9 b{font-size:12px;line-height:1.35;font-weight:650;white-space:nowrap;}
html body #main .sh-workspace-r2 .gw-subjects-r4 .home-subjects9>button:after{display:none;}
/* Dedicated native dialog keeps focus trapping and Escape behavior. */
html body dialog.gw-history-dialog-r4{--gw-accent:#527f91;--gw-ink:#334958;--gw-muted:#798b99;--gw-line:#dce6eb;position:fixed;inset:0;width:min(740px,calc(100vw - 32px));max-width:740px;max-height:calc(100dvh - 40px);box-sizing:border-box;margin:auto;padding:30px;border:1px solid #e0e7ec;border-radius:24px;background:#fbfcfe;color:var(--gw-ink);box-shadow:0 28px 90px #13223b33;overflow:auto;}
html body dialog.gw-history-dialog-r4::backdrop{background:#17263880;backdrop-filter:blur(4px);}
.gw-history-close-r4{position:absolute;right:16px;top:16px;border:1px solid #e5e9ed;border-radius:10px;background:#fff;color:#7b8998;width:34px;height:34px;display:grid;place-items:center;cursor:pointer;}
.gw-history-close-r4 svg{width:18px;height:18px;}
.gw-history-intro-r4>span{font-size:9px;letter-spacing:.13em;color:var(--gw-muted);font-weight:700;}
.gw-history-intro-r4 h2{font-size:25px;line-height:1.4;letter-spacing:-.045em;margin:8px 40px 6px 0;color:var(--gw-ink);}
.gw-history-intro-r4 p{font-size:12px;line-height:1.7;color:var(--gw-muted);margin:0;}
.gw-history-nav-r4{display:flex;align-items:center;justify-content:space-between;margin:24px 0 14px;padding:14px;border-radius:16px;background:linear-gradient(120deg,#edf5f4,#eff2fc);}
.gw-history-nav-r4>div{text-align:center;}
.gw-history-nav-r4 strong{display:block;font-size:17px;font-variant-numeric:tabular-nums;letter-spacing:-.04em;color:var(--gw-ink);}
.gw-history-nav-r4 small{display:block;font-size:10px;margin-top:3px;color:var(--gw-muted);}
.gw-history-nav-r4>button{display:grid;place-items:center;width:36px;height:36px;border:1px solid #dce6eb;background:#fff;border-radius:11px;color:var(--gw-ink);cursor:pointer;}
.gw-history-nav-r4 svg{width:18px;height:18px;}
.gw-history-tools-r4{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.gw-history-tools-r4 label{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--gw-muted);margin-right:auto;}
.gw-history-tools-r4 input,.gw-history-tools-r4>button,.gw-calendar-status-r4 button{min-height:34px;border:1px solid var(--gw-line);border-radius:9px;background:#fff;color:var(--gw-ink);font:inherit;font-size:11px;padding:6px 10px;}
.gw-calendar-status-r4{font-size:11px;color:var(--gw-muted);margin-top:8px;}
.gw-calendar-status-r4:empty{display:none;}
.gw-history-dialog-r4 button:disabled,.gw-history-dialog-r4 input:disabled{opacity:.38;cursor:default;}
html body .gw-history-calendar-r4.gw-days-r3{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:24px 0 20px;}
.gw-history-calendar-r4 .gw-day-r3{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;text-align:center;color:var(--gw-muted);}
.gw-history-calendar-r4 .gw-day-r3>span{font-size:12px;font-weight:600;}
.gw-history-calendar-r4 .gw-day-r3>i{width:42px;height:42px;border:1px dashed #cadbe1;background:#f1f6f9;border-radius:14px;display:grid;place-items:center;font-style:normal;color:#fff;}
.gw-history-calendar-r4 .gw-day-r3>i>em{width:5px;height:5px;border-radius:50%;background:#bfced5;}
.gw-history-calendar-r4 .gw-day-r3>i>b{width:8px;height:8px;border-radius:50%;background:var(--gw-accent);}
.gw-history-calendar-r4 .gw-day-r3.is-active>i{background:var(--gw-accent);border-color:var(--gw-accent);}
.gw-history-calendar-r4 .gw-day-r3.is-today>i{outline:2px solid #7ea7b0;outline-offset:3px;}
.gw-history-calendar-r4 .gw-day-r3.is-future{opacity:.55;}
.gw-history-calendar-r4 .gw-day-r3>small{font-size:11px;line-height:1.4;min-height:29px;}
.gw-history-calendar-r4 .gw-day-r3 svg{width:20px;height:20px;}
.gw-history-calendar-r4 .gw-special-r4{min-height:28px;align-content:flex-start;}
.gw-history-calendar-r4 .gw-event-r4{white-space:normal;overflow:visible;font-size:9px;word-break:keep-all;}
.gw-daily-count-r4{font-size:9px;line-height:1.5;color:var(--gw-muted);}
.gw-history-stats-r4{display:grid;grid-template-columns:repeat(3,1fr);padding:18px 0;border-top:1px solid var(--gw-line);border-bottom:1px solid var(--gw-line);}
.gw-history-stats-r4>div{text-align:center;}
.gw-history-stats-r4>div+div{border-left:1px solid var(--gw-line);}
.gw-history-stats-r4 span{display:block;font-size:11px;color:var(--gw-muted);margin-bottom:6px;}
.gw-history-stats-r4 strong{font-size:24px;color:var(--gw-ink);letter-spacing:-.04em;}
.gw-history-stats-r4 strong small{font-size:11px;font-weight:500;margin-left:3px;color:var(--gw-muted);}
.gw-history-message-r4{font-size:12px;line-height:1.7;text-align:center;color:var(--gw-muted);margin:17px 0;}
.gw-history-footer-r4{display:flex;flex-direction:column;align-items:center;gap:9px;}
.gw-history-footer-r4>div{display:flex;gap:6px;}
.gw-history-footer-r4 small{font-size:9px;line-height:1.6;color:var(--gw-muted);text-align:center;}
.gw-history-footer-r4 a{color:inherit;text-decoration:underline;text-underline-offset:2px;}
html body :is(.gw-history-dialog-r4,.gw-subjects-r4,.gw-layout-r4) :is(button,input,a):focus-visible{outline:3px solid #7198d4;outline-offset:3px;}
@keyframes gw-arrive-r4{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:translateY(0);}}
@media(min-width:1024px) and (min-height:650px) and (max-height:850px){
 html body #main .sh-workspace-r2 .gw-layout-r4{padding:15px 18px;gap:10px 12px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 h2{font-size:18px;}
 html body #main .gw-story-r4 h3{font-size:22px;margin:6px 0 3px;}
 html body #main .gw-story-r4 p{font-size:10px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3{gap:5px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3>i{width:30px;height:30px;border-radius:10px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-bottom-r3{padding-top:7px;}
 html body #main .sh-workspace-r2 .gw-subjects-r4{gap:6px;}
}
@media(min-width:1024px) and (max-width:1399px){
 html body #main .sh-workspace-r2 .gw-subjects-r4 .home-subjects9>button{gap:4px;}
 html body #main .sh-workspace-r2 .gw-subjects-r4 .home-subjects9>button>.gw-subject-icon-r4{width:24px;height:24px;flex-basis:24px;border-radius:7px;}
 html body #main .sh-workspace-r2 .gw-subjects-r4 .home-subjects9 b{font-size:10px;}
 html body #main .sh-workspace-r2 .gw-subjects-r4 .gw-subject-icon-r4 svg{width:17px!important;height:17px!important;}
 html body #main .gw-layout-r4{grid-template-columns:minmax(0,1fr) minmax(85px,28%);}
}
@media(min-width:1024px) and (max-width:1199px){
 html body #main .sh-workspace-r2 .gw-subjects-r4 .home-subjects9{gap:4px;}
 html body #main .sh-workspace-r2 .gw-subjects-r4 .home-subjects9>button{flex-direction:column!important;gap:3px;padding:5px 2px!important;}
 html body #main .sh-workspace-r2 .gw-subjects-r4 .home-subjects9>button>.gw-subject-icon-r4{width:21px;height:21px;flex-basis:21px;}
 html body #main .gw-story-r4 h3{font-size:20px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-days-r3{gap:4px;}
 html body #main .gw-history-button-r4{padding:5px 7px;font-size:10px;gap:4px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 h2{font-size:16px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-bottom-r3 p{font-size:9px;}
}
@media(min-width:1024px) and (min-height:650px) and (max-height:710px){
 html body #main .sh-workspace-r2 .gw-layout-r4{padding:10px 14px;gap:6px 10px;grid-template-rows:auto minmax(0,1fr) auto;}
 html body #main .gw-story-r4{grid-column:1;grid-row:2;align-self:start;}
 html body #main .gw-story-r4 h3,html body #main .sh-workspace-r2 .gw-story-r4 p{display:none;}
 html body #main .sh-workspace-r2 .gw-story-r4 .gw-range-r3{font-size:9px;padding:0;background:none;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-days-r3{grid-row:2;align-self:end;padding-top:22px;}
 html body #main .gw-art-r4{grid-row:2;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-bottom-r3{grid-row:3;padding-top:5px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3{gap:3px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3>span{font-size:9px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3>i{width:26px;height:26px;border-radius:9px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3>small{font-size:9px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-bottom-r3 p{display:none;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-bottom-r3{justify-content:flex-start;}
 html body #main .gw-history-button-r4{min-height:30px;padding:4px 7px;}
 .gw-layout-r4 .gw-special-r4{min-height:13px;}
}
@media(max-width:1023px),(max-height:649px){
 html body #main .sh-workspace-r2 .gw-layout-r4{min-height:300px;height:auto;grid-template-rows:auto minmax(80px,1fr) auto auto;}
 html body #main .sh-workspace-r2 .home-subject-block9.gw-subjects-r4{gap:12px;}
 html body #main .sh-workspace-r2 .gw-subjects-r4 .home-subjects9>button{min-height:62px;}
}
@media(max-width:760px){
 html body #main .sh-workspace-r2 .gw-layout-r4{padding:17px;grid-template-columns:minmax(0,1fr) 32%;gap:15px 12px;min-height:330px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 h2{font-size:18px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .hero-kicker9{font-size:8px;}
 html body #main .gw-history-button-r4{min-height:34px;padding:6px;font-size:10px;}
 html body #main .gw-history-button-r4 svg{display:none;}
 html body #main .gw-story-r4 h3{font-size:21px;}
 html body #main .sh-workspace-r2 .gw-story-r4 p{font-size:10px;}
 html body #main .gw-art-r4{grid-row:2;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-days-r3{grid-column:1/-1;gap:6px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-bottom-r3{gap:4px;}
 html body #main .sh-workspace-r2 .gw-subjects-r4 .home-subjects9{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
 html body #main .sh-workspace-r2 .gw-subjects-r4 .home-subjects9>button{flex-direction:column!important;gap:7px;padding:10px 5px!important;min-height:78px;}
 html body #main .sh-workspace-r2 .gw-subjects-r4 .home-subjects9>button>.gw-subject-icon-r4{width:29px;height:29px;flex-basis:29px;}
 html body #main .sh-workspace-r2 .gw-subjects-r4 .home-subjects9 b{font-size:11px;}
 html body dialog.gw-history-dialog-r4{padding:22px 16px;border-radius:20px;width:calc(100vw - 20px);max-height:calc(100dvh - 24px);}
 .gw-history-intro-r4 h2{font-size:22px;}
 .gw-history-nav-r4{padding:10px;gap:5px;}
 .gw-history-nav-r4 strong{font-size:14px;}
 .gw-history-nav-r4>button{width:30px;height:32px;flex:none;}
 .gw-history-tools-r4 label{flex-basis:100%;}
 html body .gw-history-calendar-r4.gw-days-r3{gap:4px;}
 .gw-history-calendar-r4 .gw-day-r3>i{width:30px;height:34px;border-radius:10px;}
 .gw-history-calendar-r4 .gw-day-r3>span{font-size:11px;}
 .gw-history-calendar-r4 .gw-day-r3>small{font-size:10px;}
 .gw-history-calendar-r4 .gw-event-r4{font-size:8px;padding:1px 2px;}
 .gw-daily-count-r4{font-size:8px;}
 .gw-history-stats-r4 strong{font-size:22px;}
}
html[data-theme=dark] body #main .sh-workspace-r2 .gw-layout-r4{--gw-bg:#243647;--gw-end:#26343d;--gw-ink:#e1e9ef;--gw-muted:#b0c1cd;--gw-accent:#83b8ba;--gw-line:#425a65;}
html[data-theme=dark] body #main .gw-layout-r4[data-gw-theme=peach],html[data-theme=dark] body #main .gw-layout-r4[data-gw-theme=butter]{--gw-bg:#383334;--gw-end:#34372e;--gw-accent:#d7b988;}
html[data-theme=dark] body #main .gw-layout-r4[data-gw-theme=lilac],html[data-theme=dark] body #main .gw-layout-r4[data-gw-theme=rose]{--gw-bg:#333347;--gw-end:#3c303e;--gw-accent:#c2a6d9;}
html[data-theme=dark] body #main .gw-history-button-r4{background:#ffffff0a;color:var(--gw-ink);}
html[data-theme=dark] body #main .gw-history-button-r4:hover{background:#ffffff18;}
html[data-theme=dark] body #main .gw-orbit-r4{background-color:#ffffff05;border-color:#ffffff18;}
html[data-theme=dark] body #main .sh-workspace-r2 .gw-story-r4 .gw-range-r3{background:#ffffff0a;}
html[data-theme=dark] body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3>i{background:#ffffff0a;}
html[data-theme=dark] body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3.is-active>i{background:var(--gw-accent);color:#243647;}
html[data-theme=dark] body #main .sh-workspace-r2 .gw-subjects-r4 .home-subjects9>button{background:#242f40;border-color:#3d4859;}
html[data-theme=dark] body #main .sh-workspace-r2 .gw-subjects-r4 .home-subjects9>button:hover{background:#303c50;border-color:#7f8fab;}
html[data-theme=dark] body #main .sh-workspace-r2 .gw-subjects-r4 .home-subjects9>button>.gw-subject-icon-r4{background:#ffffff0c;color:#bdc9e4;}
html[data-theme=dark] body dialog.gw-history-dialog-r4{--gw-ink:#e0e9f0;--gw-muted:#a6b8c8;--gw-line:#405162;--gw-accent:#8cafbc;background:#233043;border-color:#425369;}
html[data-theme=dark] body .gw-history-nav-r4{background:linear-gradient(120deg,#2c4049,#303a50);}
html[data-theme=dark] body :is(.gw-history-close-r4,.gw-history-nav-r4>button,.gw-history-tools-r4 input,.gw-history-tools-r4>button,.gw-calendar-status-r4 button){background:#2d3b4d;color:#cfdae5;border-color:#485b6e;color-scheme:dark;}
html[data-theme=dark] body .gw-history-calendar-r4 .gw-day-r3>i{background:#2d3e50;border-color:#587180;}
html[data-theme=dark] body .gw-history-calendar-r4 .gw-day-r3.is-active>i{background:#6b939d;}
html[data-theme=dark] body .gw-event-r4{background:#4c425f;color:#ddcfee;}
html[data-theme=dark] body .gw-event-r4.is-holiday{background:#583d46;color:#f2bdc0;}
html[data-theme=dark] body .gw-event-r4.is-join{background:#334e68;color:#bcdcf7;}
@media(prefers-reduced-motion:reduce){html body #main .gw-art-r4 img{animation:none;}html body #main :is(.gw-history-button-r4,.gw-subjects-r4 button){transition:none;}}
/* Fit the card itself, including short desktop windows and long site footers. */
html body #main .sh-workspace-r2 .gw-layout-r4 .gw-heading-r3 .hero-kicker9{display:block;line-height:1.35;margin:0;}
html body #main .sh-workspace-r2 .gw-layout-r4 .gw-heading-r3 h2{margin:4px 0 0!important;line-height:1.35!important;padding:0;}
html body #main .sh-workspace-r2 .gw-layout-r4 .gw-bottom-r3 p{margin:0!important;line-height:1.5!important;}
html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3>small{position:relative;line-height:1.3;min-height:25px;}
@media(min-width:1024px) and (min-height:650px){html body #main .sh-workspace-r2 .challenge-hero9.cg-week-r3{container:gw-week / size;}}
@container gw-week (max-height:310px){
 html body #main .sh-workspace-r2 .gw-layout-r4{padding:12px 16px;gap:9px 12px;grid-template-rows:auto minmax(0,1fr) auto;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-heading-r3 .hero-kicker9{display:none;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-heading-r3 h2{font-size:18px;margin:0!important;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-story-r4{grid-column:1;grid-row:2;align-self:start;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-story-r4 h3,html body #main .sh-workspace-r2 .gw-layout-r4 .gw-story-r4 p{display:none;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-story-r4 .gw-range-r3{font-size:10px;padding:0;background:none;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-days-r3{grid-row:2;align-self:end;padding-top:22px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-art-r4{grid-row:2;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-bottom-r3{grid-row:3;padding-top:7px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3{gap:5px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3>i{width:30px;height:30px;border-radius:10px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-bottom-r3 p{display:none;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-bottom-r3{justify-content:flex-start;}
}
@container gw-week (max-height:210px){
 html body #main .sh-workspace-r2 .gw-layout-r4{padding:9px 13px;gap:6px 10px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-heading-r3 h2{font-size:16px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-history-button-r4{min-height:28px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3{gap:3px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3>span{font-size:9px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3>i{width:25px;height:25px;border-radius:9px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3>small{font-size:9px;min-height:23px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-bottom-r3{padding-top:5px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-bottom-r3 b{font-size:12px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-days-r3{padding-top:19px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-special-r4{min-height:13px;}
}
@container gw-week (max-height:190px){
 html body #main .sh-workspace-r2 .gw-layout-r4{padding:8px 12px;gap:5px 10px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-story-r4{display:none;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-days-r3{padding-top:0;align-self:center;gap:4px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3{gap:2px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3>span{font-size:9px;line-height:1.2;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3>i{width:21px;height:21px;border-radius:7px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3 svg{width:14px;height:14px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-day-r3>small{min-height:12px;font-size:9px;line-height:1.3;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-today-r4{display:none;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-special-r4{min-height:12px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-event-r4{font-size:8px;line-height:1.4;padding:0 2px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-bottom-r3{padding-top:4px;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-bottom-r3>span{font-size:9px;line-height:1.3;}
 html body #main .sh-workspace-r2 .gw-layout-r4 .gw-bottom-r3 b{font-size:11px;line-height:1.3;}
}
