/* MW4 Study HQ: scoped responsive theme, does not alter HSK or Korean course pages. */
.mw4-study-hub{display:grid;gap:17px;min-width:0;margin:0 0 24px;scroll-margin-top:74px}
.msh-header{padding:clamp(20px,3.5vw,32px);border-radius:20px;color:#f8fffc;background:linear-gradient(112deg,#163246,#214d49 60%,#315a3d)}
.msh-header h2{font-size:clamp(1.4rem,2.9vw,2.3rem);line-height:1.2;margin:9px 0}
.msh-header p{line-height:1.65;max-width:70ch;color:#dae9e7}
.msh-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:17px}
.msh-stat-grid span{border:1px solid #d6ede74a;border-radius:13px;display:flex;flex-direction:column;gap:5px;padding:12px;background:#ffffff11;min-width:0}
.msh-stat-grid strong{font-size:clamp(1.14rem,2.3vw,1.58rem);line-height:1.2}
.msh-stat-grid small{color:#e1efec;font-size:.78rem;line-height:1.3}
.msh-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.mw4-study-hub button{font:inherit}
.msh-progress{height:10px;border-radius:999px;overflow:hidden;background:rgba(75,133,114,.15);margin:13px 0 20px}
.msh-progress span{display:block;height:100%;background:#29896f;transition:width .2s}
.msh-question{background:rgba(88,154,136,.065);padding:17px;border-radius:12px;border:1px solid rgba(88,154,136,.14)}
.msh-question small{color:var(--muted,#667a6c)}
.msh-question p{font-weight:800;font-size:clamp(1.27rem,2.9vw,1.95rem);margin:13px 0 5px;overflow-wrap:anywhere}
.msh-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:13px}
.msh-choices button,.msh-actions button,.msh-routes button{padding:12px 13px;border:1px solid var(--line,#cbdcd5);border-radius:11px;min-height:46px;color:var(--ink,#233c35);background:var(--surface,#fff);cursor:pointer;text-align:left;overflow-wrap:anywhere}
.msh-choices button:focus-visible,.msh-actions button:focus-visible,.msh-routes button:focus-visible{outline:3px solid #3a9b80;outline-offset:2px}
.msh-choices button:hover,.msh-routes button:hover,.msh-actions button:hover{border-color:#328a72;background:rgba(57,132,111,.055)}
.msh-feedback{min-height:21px;font-size:.86rem;color:var(--muted,#697c75);margin-top:14px}
.msh-result{display:flex;align-items:center;gap:16px;padding:20px 12px}
.msh-result strong{font-size:clamp(2rem,4vw,3rem);color:var(--green,#238169)}
.msh-result p{line-height:1.5}
.msh-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;margin:20px 0 14px}
.msh-bar-item{display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:space-between;min-width:0}
.msh-bar-item>span,.msh-bar-item small{font-size:.68rem;color:var(--muted,#60756c)}
.msh-bar-item>div{height:104px;width:100%;max-width:33px;display:flex;align-items:flex-end;justify-content:center;border-radius:9px;background:rgba(80,140,122,.09);overflow:hidden}
.msh-bar-item i{display:block;width:100%;background:rgba(112,143,138,.3);border-radius:6px 6px 0 0}
.msh-bar-item i.recorded{background:linear-gradient(#62bda0,#24846c)}
.msh-routes{display:grid;gap:8px;margin-top:9px}
.msh-routes button{font-weight:600;font-size:.9rem}
.msh-review{border:1px solid var(--line,#cddcd3);padding:18px;border-radius:14px;background:rgba(97,141,122,.055)}
.msh-review small{color:var(--muted,#667a6c)}
.msh-review strong{font-size:clamp(1.22rem,2.6vw,1.55rem);overflow-wrap:anywhere}
.msh-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:17px}
.msh-actions button:last-child{background:#237d66;border-color:#237d66;color:white}
.msh-policy summary{cursor:pointer;font-weight:700}
.msh-policy p{line-height:1.6}
@media(max-width:800px){.msh-grid{grid-template-columns:1fr}.msh-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.msh-choices{grid-template-columns:1fr}.msh-week{gap:4px}.msh-bar-item>div{height:82px}.msh-stat-grid{gap:7px}.msh-stat-grid span{padding:10px}}
@media(prefers-reduced-motion:reduce){.msh-progress span{transition:none}}

/* Accessible, spaced-repetition grading for daily mistakes */
.msh-grade{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}
.msh-grade button{cursor:pointer;font:inherit;min-height:43px;border-radius:10px;padding:9px 8px;background:var(--surface,#fff);color:var(--ink,#273e35);border:1px solid var(--line,#cbdcd5)}
.msh-grade button:first-child{border-color:#b17466}.msh-grade button:last-child{border-color:#4c9c73}
.msh-grade button:hover,.msh-grade button:focus-visible{outline-offset:3px;border-color:var(--green,#24836c)}
@media(max-width:650px){.msh-grade{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Recall-first practice and keyboard accessibility */
.msh-review-label{display:block;font-weight:700;font-size:.88rem;margin:12px 0 7px}
.msh-review-entry{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap}
.msh-review-entry input{flex:1 1 180px;min-width:0;min-height:45px;font:inherit;border:1px solid var(--line,#cbdcd5);border-radius:10px;background:var(--surface,#fff);color:var(--ink,#233c35);padding:9px 12px}
.msh-review-entry button{font:inherit;border-radius:10px;border:1px solid #247f69;background:#247f69;color:white;padding:9px 14px;min-height:45px;cursor:pointer}
.msh-review-entry button:focus-visible,.msh-review-entry input:focus-visible{outline:3px solid #43a58d;outline-offset:2px}
.msh-hotkeys{font-size:.75rem;margin:6px 0 0}
@media(max-width:430px){.msh-review-entry{flex-direction:column}.msh-review-entry input,.msh-review-entry button{width:100%}}

/* Evidence-based learning insight panel */
.msh-insights{min-width:0;scroll-margin-top:72px}
.msh-insights-summary{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}
.msh-insights-summary>div{flex:1 1 170px;display:grid;gap:4px;padding:14px;border-radius:12px;background:rgba(72,139,111,.08);border:1px solid var(--line,#cbdcd5)}
.msh-insights-summary strong{font-size:clamp(1.06rem,2.4vw,1.4rem);overflow-wrap:anywhere}
.msh-insights-summary small{color:var(--muted,#63766c)}
.msh-insights-note{line-height:1.6}
.msh-diagnostics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0 20px}
.msh-diagnostic{min-width:0;border:1px solid var(--line,#cbdcd5);border-radius:12px;display:grid;gap:5px;padding:12px}
.msh-diagnostic span{font-size:.89rem;font-weight:650}
.msh-diagnostic strong{font-size:1.02rem}
.msh-diagnostic small{font-size:.77rem;color:var(--muted,#65786e)}
.msh-insights h4{font-size:1.05rem;margin:18px 0 10px}
.msh-plan{display:grid;gap:9px}
.msh-plan-step{display:flex;gap:12px;align-items:center;padding:13px;border:1px solid var(--line,#cbdcd5);border-radius:12px;min-width:0}
.msh-plan-time{flex:0 0 60px;font-size:.83rem;font-weight:800;color:var(--green,#25836b)}
.msh-plan-step>div{flex:1;min-width:0}
.msh-plan-step strong{font-size:.95rem}
.msh-plan-step p{font-size:.8rem;line-height:1.4;color:var(--muted,#67776d);margin:4px 0 0}
.msh-plan-step button{border:1px solid var(--green,#25836b);background:transparent;color:var(--green,#25836b);border-radius:10px;padding:9px;cursor:pointer;font:inherit;min-height:40px}
.msh-plan-step button:focus-visible{outline:3px solid var(--green,#25836b);outline-offset:2px}
@media(max-width:760px){.msh-diagnostics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:490px){.msh-diagnostics{grid-template-columns:1fr}.msh-plan-step{flex-wrap:wrap}.msh-plan-step button{width:100%}}

/* Targeted MW4 practice rounds: six independent language directions. */
.msh-drill{scroll-margin-top:72px;min-width:0}
.msh-drill-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 16px}
.msh-drill-groups button{border-radius:11px;border:1px solid var(--line,#cbdcd5);background:var(--surface,#fff);color:var(--ink,#203a31);min-height:45px;padding:10px 9px;font:inherit;cursor:pointer;text-align:center;line-height:1.35}
.msh-drill-groups button[aria-pressed=true]{background:#237e66;color:#fff;border-color:#237e66;font-weight:700}
.msh-drill-groups button:focus-visible,.msh-drill-next:focus-visible{outline:3px solid #46a98c;outline-offset:2px}
.msh-drill-question{border-radius:12px;padding:14px 16px;background:rgba(78,148,126,.07);border:1px solid rgba(78,148,126,.17)}
.msh-drill-question small{color:var(--muted,#687970)}
.msh-drill-question p{font-size:clamp(1.3rem,3vw,1.9rem);font-weight:750;margin:8px 0 2px;overflow-wrap:anywhere}
.msh-drill-choices button[disabled]{cursor:default;opacity:1}
.msh-drill-choices button.msh-correct{background:#e0f5e8;border-color:#2c9960;color:#134e34}
.msh-drill-choices button.msh-incorrect{background:#fff0ed;border-color:#b45645;color:#7b291d}
.msh-drill-feedback{margin:12px 0;line-height:1.6;overflow-wrap:anywhere}
.msh-drill-next{font:inherit;border-radius:10px;background:#237e66;color:#fff;padding:10px 16px;border:0;cursor:pointer;min-height:45px}
@media(max-width:660px){.msh-drill-groups{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:375px){.msh-drill-groups{grid-template-columns:1fr}}

/* Direct diagnostic-to-drill action and per-direction training records. */
.msh-diagnostic button{font:inherit;font-size:.84rem;border-radius:9px;border:1px solid var(--green,#25836b);color:var(--green,#25836b);background:transparent;cursor:pointer;padding:8px 10px;min-height:40px;text-align:center}
.msh-diagnostic button:focus-visible{outline:3px solid #43a58d;outline-offset:2px}
.msh-diagnostic button:hover{background:rgba(37,131,107,.08)}
.msh-drill-groups button small{display:block;font-size:.72rem;font-weight:500;margin-top:4px;opacity:.86}
.msh-drill-groups button[aria-pressed=true] small{color:inherit}

/* Distinguish an overdue SRS remediation round from normal MW4 drills. */
.msh-review-priority{margin:12px 0;padding:10px 12px;border:1px solid rgba(37,131,107,.32);background:rgba(37,131,107,.08);border-radius:10px;font-size:.88rem;line-height:1.5}
.msh-diagnostic button[data-hub="weak-drill"]{font-weight:700;background:rgba(37,131,107,.07)}
.msh-diagnostic button[data-hub="weak-drill"]:hover{background:rgba(37,131,107,.16)}

/* Rolling SRS due-card calendar: measured queue only, no invented proficiency. */
.msh-review-calendar{margin:17px 0 20px;padding:12px 0;border-top:1px solid var(--line,#cbdcd5);border-bottom:1px solid var(--line,#cbdcd5)}
.msh-review-calendar-head{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px}
.msh-review-calendar-head h4{margin:0 0 12px}
.msh-review-calendar-head small{color:var(--muted,#65786e);font-size:.78rem}
.msh-review-windows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}
.msh-review-window{min-width:0}
.msh-review-window>div:first-child{display:flex;justify-content:space-between;gap:6px;margin-bottom:7px;font-size:.85rem}
.msh-review-window strong{font-weight:650}
.msh-review-window>div:first-child span{font-variant-numeric:tabular-nums;color:var(--muted,#65786e);white-space:nowrap}
.msh-review-bar{height:7px;border-radius:6px;background:rgba(90,139,116,.12);overflow:hidden}
.msh-review-bar>span{display:block;height:100%;border-radius:6px;background:var(--green,#25836b)}
.msh-review-calendar-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:13px 0 5px}
.msh-review-calendar-footer p{margin:0;line-height:1.5;font-size:.87rem}
.msh-review-calendar-footer button{border:1px solid var(--green,#25836b);border-radius:9px;background:var(--green,#25836b);color:white;padding:10px 13px;font:inherit;min-height:42px;cursor:pointer}
.msh-review-calendar-footer button:focus-visible{outline:3px solid #43a58d;outline-offset:2px}
.msh-review-calendar>.mw4-hint{font-size:.77rem;margin:11px 0 0}
@media(max-width:460px){.msh-review-windows{grid-template-columns:1fr}.msh-review-calendar-footer button{width:100%}}

/* Prioritized, per-language SRS review queue in seven-day calendar. */
.msh-review-group-title{font-size:.94rem;margin:19px 0 4px}
.msh-review-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:11px 0}
.msh-review-group{min-width:0;display:flex;flex-direction:column;gap:10px;justify-content:space-between;padding:12px;border:1px solid var(--line,#cbdcd5);border-radius:11px}
.msh-review-group>div{display:grid;gap:5px}
.msh-review-group strong{font-size:.91rem;line-height:1.4}
.msh-review-group small{font-size:.76rem;color:var(--muted,#65786e);line-height:1.5;font-variant-numeric:tabular-nums}
.msh-review-group-due{border-color:rgba(37,131,107,.6);background:rgba(37,131,107,.055)}
.msh-review-group button{font:inherit;font-size:.83rem;min-height:40px;text-align:center;border:1px solid var(--green,#25836b);border-radius:9px;padding:8px;color:var(--green,#25836b);background:transparent;cursor:pointer}
.msh-review-group-due button{background:var(--green,#25836b);color:white}
.msh-review-group button:focus-visible{outline:3px solid #43a58d;outline-offset:2px}
@media(max-width:530px){.msh-review-groups{grid-template-columns:1fr}}

/* Make the guided daily-quiz shortcut land below sticky site navigation. */
.msh-daily{scroll-margin-top:72px}

/* Evidence-backed progress for the guided MW4 15-minute routine. */
.msh-plan-observed{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:7px 14px;margin:9px 0 12px;font-size:.85rem}
.msh-plan-observed strong{font-variant-numeric:tabular-nums}
.msh-plan-observed small{font-size:.76rem;color:var(--muted,#65786e);line-height:1.5}
.msh-plan-complete{border-color:rgba(37,131,107,.55);background:rgba(37,131,107,.065)}
.msh-plan-done{display:block;margin-top:7px;font-weight:650;font-size:.77rem;color:var(--green,#25836b)}

/* Measured SRS activity, separate from suggested minutes and due-card totals. */
.msh-srs-activity{border-top:1px solid var(--line,#cbdcd5);padding-top:12px;margin-top:14px}
.msh-srs-activity h4{margin:0 0 11px;font-size:.96rem}
.msh-srs-activity-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.msh-srs-activity-grid>div{display:grid;gap:4px;min-width:0;border:1px solid var(--line,#cbdcd5);border-radius:10px;padding:10px}
.msh-srs-activity-grid strong{font-size:1.3rem;font-variant-numeric:tabular-nums}
.msh-srs-activity-grid small{font-size:.76rem;line-height:1.4;color:var(--muted,#65786e)}
.msh-srs-activity>.mw4-hint{font-size:.78rem;line-height:1.55;margin:10px 0}
@media(max-width:640px){.msh-srs-activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Seven-day SRS review activity chart from saved, real review events. */
.msh-review-trend{margin:16px 0;padding:12px 0;border-top:1px solid var(--line,#cbdcd5)}
.msh-review-trend-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;margin-bottom:12px}
.msh-review-trend-head h5{font-size:.9rem;margin:0}
.msh-review-trend-head span{font-size:.8rem;color:var(--muted,#65786e)}
.msh-review-trend-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;align-items:end}
.msh-review-trend-day{min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;font-variant-numeric:tabular-nums}
.msh-review-trend-bar{width:min(100%,34px);height:84px;display:flex;flex-direction:column-reverse;overflow:hidden;border-radius:7px 7px 3px 3px;background:rgba(90,139,116,.1)}
.msh-review-trend-remembered{display:block;background:var(--green,#25836b);flex-shrink:0}
.msh-review-trend-again{display:block;background:#c58b42;flex-shrink:0}
.msh-review-trend-day small{font-size:.71rem;white-space:nowrap;color:var(--muted,#65786e)}
.msh-review-trend-day strong{font-size:.82rem}
.msh-review-trend-legend{display:flex;align-items:center;gap:6px 9px;flex-wrap:wrap;font-size:.76rem;margin:12px 0 7px}
.msh-review-trend-key{width:10px;height:10px;border-radius:2px;display:inline-block}
.msh-review-trend-key.remembered{background:var(--green,#25836b)}
.msh-review-trend-key.again{background:#c58b42}
.msh-review-trend>.mw4-hint{margin:7px 0 0;font-size:.75rem;line-height:1.5}
@media(max-width:440px){.msh-review-trend-bars{gap:3px}.msh-review-trend-day small{font-size:.63rem}.msh-review-trend-bar{width:min(100%,27px);height:72px}}

/* Next SRS card countdown updates without a page reload. */
#msh-next-due-live{display:inline-block;margin-left:5px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--green,#25836b)}
@media(max-width:520px){#msh-next-due-live{display:block;margin:3px 0 0}}


/* 14-day SRS evidence comparison: two rolling seven-day periods. */
.msh-fortnight{border-top:1px solid var(--line,#cbdcd5);margin:16px 0;padding:15px 0 2px}
.msh-fortnight h5{margin:0 0 12px;font-size:.92rem}
.msh-fortnight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.msh-fortnight-card{display:grid;align-content:start;gap:6px;min-width:0;padding:13px;border:1px solid var(--line,#cbdcd5);border-radius:12px;background:rgba(72,139,111,.055)}
.msh-fortnight-card>strong{font-size:.92rem}
.msh-fortnight-card>small{font-size:.76rem;line-height:1.5;color:var(--muted,#65786e)}
.msh-fortnight-card p{margin:2px 0;font-size:.85rem}
.msh-fortnight-card p b{font-size:1.26rem;font-variant-numeric:tabular-nums}
.msh-fortnight-meter{display:flex;width:100%;height:12px;overflow:hidden;border-radius:6px;background:rgba(90,139,116,.12)}
.msh-fortnight-meter span{display:block;height:100%;flex-shrink:0}
.msh-fortnight-remembered{background:var(--green,#25836b)}
.msh-fortnight-again{background:#c58b42}
.msh-fortnight-comparison{font-size:.85rem;font-weight:650;line-height:1.5;margin:12px 0 7px}
.msh-fortnight>.mw4-hint{font-size:.76rem;line-height:1.5;margin:0 0 12px}
@media(max-width:440px){.msh-fortnight-grid{grid-template-columns:1fr}}


/* Read-only rolling 30-day SRS activity calendar. */
.msh-month30{border-top:1px solid var(--line,#cbdcd5);margin:16px 0;padding:15px 0 2px;min-width:0}
.msh-month30-head{display:flex;align-items:baseline;justify-content:space-between;gap:7px 13px;flex-wrap:wrap;margin-bottom:12px}
.msh-month30-head h5{margin:0;font-size:.92rem}
.msh-month30-head small{font-size:.79rem;color:var(--muted,#65786e)}
.msh-month30-stats{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:11px}
.msh-month30-stats span{display:flex;gap:5px;align-items:baseline;border:1px solid var(--line,#cbdcd5);padding:8px 9px;border-radius:9px;font-size:.77rem;line-height:1.4}
.msh-month30-stats strong{font-size:.98rem;font-variant-numeric:tabular-nums}
.msh-month30-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px}
.msh-month30-day{display:grid;place-items:center;gap:2px;min-width:0;min-height:48px;padding:4px 2px;border:1px solid var(--line,#cbdcd5);border-radius:8px;line-height:1.2;background:rgba(90,139,116,.075)}
.msh-month30-day span{font-size:.88rem;font-weight:750;font-variant-numeric:tabular-nums}
.msh-month30-day small{font-size:.66rem;white-space:nowrap}
.msh-month30-level-0{color:var(--muted,#65786e)}
.msh-month30-level-1,.msh-month30-swatch.level-1{background:#dcf3e9;color:#234f3c}
.msh-month30-level-2,.msh-month30-swatch.level-2{background:#83c5a9;color:#123e2a}
.msh-month30-level-3,.msh-month30-swatch.level-3{background:#216d57;color:#fff;border-color:#216d57}
.msh-month30-legend{display:flex;flex-wrap:wrap;align-items:center;gap:5px 7px;font-size:.75rem;margin:12px 0 7px}
.msh-month30-swatch{display:inline-block;height:12px;width:12px;border:1px solid var(--line,#cbdcd5);border-radius:3px;background:rgba(90,139,116,.075)}
.msh-month30>.mw4-hint{font-size:.75rem;line-height:1.55;margin:6px 0 12px}
@media(max-width:560px){.msh-month30-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.msh-month30-day{min-height:46px}}
@media(max-width:370px){.msh-month30-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}


/* SRS 30-day weekly summaries and accessible day-by-day ledger. */
.msh-month30-weeks{margin:16px 0 13px;padding:13px 0;border-top:1px solid var(--line,#cbdcd5)}
.msh-month30-weeks h6{font-size:.88rem;margin:0 0 12px}
.msh-month30-week-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.msh-month30-week{border:1px solid var(--line,#cbdcd5);padding:10px;border-radius:10px;min-width:0}
.msh-month30-week-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 8px}
.msh-month30-week-top strong{font-size:.82rem}
.msh-month30-week-top span{font-size:.75rem;color:var(--muted,#65786e)}
.msh-month30-week-track{height:10px;border-radius:99px;overflow:hidden;background:rgba(90,139,116,.12);margin:9px 0}
.msh-month30-week-track span{display:block;height:100%;border-radius:99px;background:#2a8665}
.msh-month30-week small{font-size:.74rem;line-height:1.5;display:block}
.msh-month30-weeks .mw4-hint{font-size:.75rem;line-height:1.5;margin:10px 0 0}
.msh-month30-details{border:1px solid var(--line,#cbdcd5);border-radius:10px;margin:12px 0;padding:0}
.msh-month30-details summary{padding:12px 14px;cursor:pointer;font-weight:650;font-size:.85rem}
.msh-month30-details summary:focus-visible{outline:2px solid #2a8665;outline-offset:2px}
.msh-month30-details[open] summary{border-bottom:1px solid var(--line,#cbdcd5)}
.msh-month30-table-wrap{max-height:350px;overflow:auto;overscroll-behavior:contain}
.msh-month30-details table{width:100%;border-collapse:collapse;font-size:.79rem;font-variant-numeric:tabular-nums}
.msh-month30-details caption{text-align:left;padding:9px 12px;font-size:.73rem;color:var(--muted,#65786e)}
.msh-month30-details th,.msh-month30-details td{text-align:left;padding:8px 12px;border-bottom:1px solid var(--line,#cbdcd5)}
.msh-month30-details thead th{position:sticky;top:0;background:var(--surface,#fff);z-index:1}
.msh-month30-details tbody th{font-weight:500}
@media(max-width:560px){.msh-month30-week-list{grid-template-columns:minmax(0,1fr)}.msh-month30-details th,.msh-month30-details td{padding:8px 7px}}


/* Local-only SRS CSV export and day-by-day filter controls. */
.msh-month30-export{display:flex;align-items:center;flex-wrap:wrap;gap:7px 13px;margin:5px 0 15px}
.msh-month30-export button{border:1px solid #2a8665;background:#e2f4ea;color:#1e4c35;border-radius:8px;padding:9px 12px;cursor:pointer;font-weight:650;font-size:.82rem}
.msh-month30-export button:hover{background:#c7e8d8}
.msh-month30-export button:focus-visible{outline:2px solid #2a8665;outline-offset:3px}
.msh-month30-export small{font-size:.72rem;color:var(--muted,#65786e);line-height:1.45}
.msh-month30-filter{display:flex;align-items:center;flex-wrap:wrap;gap:8px 11px;padding:10px 12px;border-bottom:1px solid var(--line,#cbdcd5)}
.msh-month30-filter label{font-size:.81rem;font-weight:600}
.msh-month30-filter select{min-width:150px;max-width:100%;padding:7px 26px 7px 8px;border:1px solid var(--line,#cbdcd5);border-radius:7px;background:var(--surface,#fff);color:inherit;font:inherit;font-size:.81rem}
.msh-month30-filter select:focus-visible{outline:2px solid #2a8665;outline-offset:2px}
.msh-month30-filter-status{font-size:.76rem;color:var(--muted,#65786e)}
.msh-month30-details tr[hidden]{display:none!important}
@media(max-width:440px){.msh-month30-export{align-items:stretch}.msh-month30-export button{width:100%}.msh-month30-filter select{flex:1}}


/* Keyboard-accessible, read-only daily drill-down from the SRS 30-day calendar. */
button.msh-month30-day{font:inherit;cursor:pointer;text-align:center;appearance:none;touch-action:manipulation}
button.msh-month30-day:hover{border-color:#237a59;filter:brightness(.96)}
button.msh-month30-day:focus-visible{outline:3px solid #167f73;outline-offset:2px}
button.msh-month30-day[aria-pressed='true']{outline:3px solid #167f73;outline-offset:1px;box-shadow:0 0 0 2px rgba(255,255,255,.8) inset}
.msh-month30-details tr.msh-month30-row-selected{background:rgba(45,138,97,.14)}
.msh-month30-details tr.msh-month30-row-selected:focus-visible{outline:2px solid #167f73;outline-offset:-2px}
.msh-month30-instruction{margin:8px 0 0;font-size:.73rem}
@media(prefers-reduced-motion:reduce){button.msh-month30-day{scroll-behavior:auto}}


/* Read-only SRS due dates on seven local civil days, not recorded review activity. */
.msh-due-days{margin:14px 0;padding:14px 0 8px;border-top:1px solid var(--line,#cbdcd5)}
.msh-due-days h5{font-size:.88rem;margin:0 0 10px}
.msh-due-day-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}
.msh-due-day{min-width:0;display:grid;align-content:start;gap:5px;border:1px solid var(--line,#cbdcd5);border-radius:9px;padding:9px 7px;background:rgba(44,128,93,.035)}
.msh-due-day strong{font-size:.72rem;line-height:1.5}
.msh-due-day span{font-size:.79rem;font-variant-numeric:tabular-nums}
.msh-due-day-track{height:8px;border-radius:10px;background:rgba(90,139,116,.13);overflow:hidden}
.msh-due-day-track i{display:block;height:100%;background:var(--green,#25836b);border-radius:10px}
.msh-due-days>.mw4-hint{font-size:.75rem;line-height:1.55;margin:10px 0 3px}
@media(max-width:640px){.msh-due-day-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}}
@media(max-width:360px){.msh-due-day-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Explicit Shift-key hints for hands-on SRS review (keyboard or screen reader). */
.msh-review-hotkeys{font-size:.75rem;line-height:1.55;margin:7px 0 10px;color:var(--muted,#65786e)}


/* Optional, read-only direction filter for due SRS error cards. */
.msh-review-direction-control{display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px;margin:10px 0 14px;padding:11px;border:1px solid var(--line,#cbdcd5);border-radius:10px;background:rgba(57,131,102,.05)}
.msh-review-direction-control label{font-size:.8rem;font-weight:650}
.msh-review-direction-control select{max-width:100%;min-width:180px;flex:1 1 230px;padding:8px 10px;border-radius:8px;border:1px solid var(--line,#cbdcd5);background:var(--surface,#fff);color:var(--ink,#223)}
.msh-review-direction-control select:focus-visible{outline:3px solid var(--green,#25836b);outline-offset:2px}
.msh-review-direction-control small{flex-basis:100%;font-size:.73rem;line-height:1.45;color:var(--muted,#65786e)}
@media(max-width:440px){.msh-review-direction-control{align-items:stretch;flex-direction:column}.msh-review-direction-control select{width:100%;min-width:0;flex:auto}}

/* Read-only, per-tab SRS review position indicator. */
.msh-review-position{margin:0 0 12px;font-size:.81rem;font-weight:650;color:var(--green,#25836b);font-variant-numeric:tabular-nums}


/* A direct, optional route from the forecast into the exact due SRS deck. */
.msh-review-group .msh-review-group-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:stretch}
.msh-review-group .msh-review-group-actions>button{flex:1 1 145px;min-width:0}
.msh-review-group-due .msh-review-group-actions>.msh-review-group-srs{background:transparent;color:var(--green,#25836b);border:1px solid var(--green,#25836b)}
.msh-review-group .msh-review-group-actions>.msh-review-group-srs:hover{background:rgba(37,131,107,.12)}
@media(max-width:390px){.msh-review-group .msh-review-group-actions{flex-direction:column}.msh-review-group .msh-review-group-actions>button{width:100%;flex:auto}}


/* Two-step protection for removing an SRS mistake card: no modal or data write on the first click. */
.msh-actions .msh-review-remove-armed{border:2px solid #a35626;color:#8b4015;background:rgba(163,86,38,.08);font-weight:700}
.msh-actions .msh-review-remove-cancel{border:1px solid var(--green,#25836b);background:transparent;color:var(--green,#25836b);font-weight:650}
.msh-review-remove-warning{font-size:.77rem;line-height:1.55;margin:8px 0 12px}
.msh-actions .msh-review-remove-armed:focus-visible,.msh-actions .msh-review-remove-cancel:focus-visible{outline:3px solid #278d73;outline-offset:2px}

/* Undo for the most recently removed SRS card, available only in this tab. */
.msh-review-undo{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;margin-top:11px;padding:10px 12px;border:1px solid var(--line,#cbdcd5);border-radius:10px;background:rgba(37,131,107,.045)}
.msh-review-undo button{min-height:40px;border:1px solid var(--green,#25836b);border-radius:9px;padding:8px 12px;color:var(--green,#25836b);background:transparent;cursor:pointer;font:inherit;font-weight:650}
.msh-review-undo button:focus-visible{outline:3px solid #278d73;outline-offset:2px}
.msh-review-undo small{color:var(--muted,#65786e);font-size:.76rem;line-height:1.5}


/* Read-only SRS card list CSV; retains chosen direction and includes future cards. */
.msh-review-direction-control .msh-export-cards{flex:0 1 auto;min-height:39px;padding:8px 12px;border-radius:9px;border:1px solid var(--green,#25836b);color:var(--green,#25836b);background:transparent;font:inherit;font-size:.81rem;font-weight:650;cursor:pointer}
.msh-review-direction-control .msh-export-cards:hover:not(:disabled){background:rgba(37,131,107,.1)}
.msh-review-direction-control .msh-export-cards:focus-visible{outline:3px solid var(--green,#25836b);outline-offset:2px}
.msh-review-direction-control .msh-export-cards:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:440px){.msh-review-direction-control .msh-export-cards{width:100%;flex:auto}}
