/* Reference-led revision: Urbanist, cool grey ground, white panels, yellow/coral signals. */
:root{--ground:#eef2f4;--surface:#fff;--raised:#f6f8f9;--text:#222527;--muted:#62696c;--faint:#62696c;--accent:#a0841c;--positive:#42494a;--negative:#a63a2d;--warning:#8c4c19;--border:#e7ecee;--control:#c8cfd2;--radius:24px;--sidebar:0px;--font:"Urbanist","PingFang SC","Microsoft YaHei",sans-serif}
body{background:var(--ground);color:var(--text);font-family:var(--font)}a{color:#74611c}h1{display:flex;align-items:center;gap:12px;font-size:30px;font-weight:500;letter-spacing:-.035em}.title-dot{width:9px;height:9px;border-radius:50%;background:#ffe171;margin-top:5px}.primary,.play-button{background:#222527}.primary:hover{background:#3c4245}.primary:disabled{background:#e6ebed;color:#5c6569}.secondary{background:#f2f5f6;color:#343b3e}.secondary:hover,.icon-button:hover{background:#e6ecef}.button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:#8d7119}.status{border-radius:999px}.status.neutral{background:#eef2f4;color:#505a5f}.status.warning{background:#fff0b5;color:#6d5714}.status.success{background:#e9eeee;color:#344345}.text-divider{color:#737b7f}
/* 1440px: 80px gutters + 1280px canvas, split into 12 columns with 11 × 16px gaps. */
.sidebar{position:absolute;left:0;right:0;top:0;bottom:auto;width:100%;min-height:84px;padding:22px 40px;display:flex;align-items:center;flex-direction:row;gap:24px;z-index:40;background:var(--ground);border:0;transform:none}.brand{padding:0;gap:10px;flex:none}.brand-mark{width:30px;height:32px;stroke:#222527;stroke-width:1.8}.brand strong{font-size:18px;letter-spacing:.02em}.brand span{font-size:10px;letter-spacing:.14em}.sidebar nav{display:flex;align-items:center;justify-content:center;gap:4px;flex:1}.nav-item{width:auto;display:flex;align-items:center;gap:7px;min-height:36px;margin:0;padding:8px 12px;border-radius:999px;font-size:13px;color:#62696c}.nav-item svg{width:16px;height:16px}.nav-item:hover{background:#e3e9ec}.nav-item.active{background:#fff;color:#222527;font-weight:500}.nav-caption{display:none}.sidebar-bottom{margin:0 0 0 auto;padding:0}.goal-label,.goal-date,.sidebar-bottom>p,.sidebar-bottom>.nav-item{display:none}.profile{padding:0;margin:0;gap:9px;border:0}.profile-initial{background:#ffe171;width:34px;height:34px}.profile strong{font-size:12px}.profile div>span{font-size:11px}.mobile-close,.mobile-bar{display:none}
.main{margin:0 auto;max-width:1360px;min-height:100vh;padding:100px 40px 116px}.preview-notice{max-width:none;margin:0 0 22px;padding:0;font-size:12px}.preview-notice .text-button{font-size:12px}.page-header{max-width:none;margin:0 0 24px}.page-header p{font-size:14px;margin-top:8px}.header-actions .secondary{background:white}
.day-overview{max-width:none;padding:24px 28px;background:white;border-radius:24px;margin:0 0 16px}.overview-cell{padding:0 28px}.overview-cell>span{font-size:13px}.overview-cell>div{margin-top:5px}.overview-cell strong{font-size:32px;line-height:1.15;font-weight:400;letter-spacing:-.05em}.overview-cell:first-child strong{font-size:42px}.overview-cell small{font-size:12px;line-height:1.5}.time-budget{max-width:none;margin:20px 4px 24px}.budget-track{height:7px;background:#e3e9ec}.budget-legend{gap:20px;font-size:12px}.budget-dot{border-radius:0}
.workspace-grid{max-width:none}.panel{padding:22px;background:white;border-radius:24px}.task-panel{grid-column:span 8}.right-column{grid-column:span 4}.tabs{border-color:#e7ecee}.tab.active:after{height:3px;background:#efcc4b;border-radius:3px}.task-row{min-height:70px;border-color:#eef1f3}.task-check{border-color:#b7c1c5}.task-check:checked{background:#ffe171;border-color:#f3d45b}.task-check:checked:after{border-color:#34352a}.task-row.done .task-label{color:#677176}.task-details{font-size:12px}.task-action{padding:6px 12px;font-size:13px;border-color:#e1e7e9}.task-action:hover{border-color:#9daeb5}.task-footnote{font-size:12px;padding-top:15px}
.context-panel{background:#ffed9b;padding:18px 22px;flex:none}.context-panel .panel-heading{margin-bottom:7px}.context-panel .icon-button{height:28px;width:28px}.context-panel p{font-size:14px;line-height:1.7}.context-panel small{font-size:12px;color:#655a30;display:block;margin:3px 0 13px}.context-panel .button{min-height:34px;padding:8px 14px;font-size:13px}
.mastery-panel,.risk-panel{padding-top:18px;padding-bottom:18px}.mastery-content{gap:18px;margin:12px 0 10px}.mastery-content>div:first-child{width:120px;max-width:43%}.legend-row{font-size:12px;min-height:25px;padding:3px 0}.small-tabs{gap:20px;margin-top:10px}.small-tabs button{font-size:12px}.small-tabs button.active{color:#222527;border-color:#222527}.panel-caption{font-size:12px}.risk-row{font-size:13px;margin-top:10px;gap:10px}.risk-row span:last-child{font-size:12px;text-align:right}.risk-row span.warning-text{color:#9b4b25}.risk-panel>p{font-size:12px;margin:10px 0 5px}.risk-panel .text-button{font-size:13px}
.week-panel{grid-column:span 8}.feedback-panel{grid-column:span 4;gap:14px}.chart-key{font-size:12px;gap:20px}.key-plan{background:#e3e8ea}.key-actual{background:#b09224}.feedback-shortcuts .primary{background:#ffe171;color:#222527}.submission-state{font-size:12px;color:var(--muted)}.page-footer{max-width:none;font-size:12px;margin:22px 4px 0}
.player-dock{left:0;padding:14px 40px;border-color:#e6ecef}.player-inner{max-width:1280px;gap:24px;min-height:44px}.player-label{gap:11px;min-width:140px}.player-current strong{font-size:22px}.player-current{min-width:130px}.play-button{width:42px;height:42px}.repeat-button.active{color:#564a17;background:#fff2b3}.gap-button{font-size:12px;color:#4a565d;gap:7px}.gap-button svg{width:16px;height:16px}.player-hint{font-size:12px}
dialog{border-radius:24px;color:#222527;max-height:calc(100dvh - 40px)}dialog::backdrop{background:#202c3555}.dialog-body{font-size:16px}.dialog-note{line-height:1.8}.info-well{background:#f1f5f7;line-height:1.9}.field input,.field select,.field textarea{border-color:#c8cfd2}.field select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%2362696c' fill='none'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:34px}.mode-option.selected{background:#fff4c7;border-color:#c2a34a}.upload-picker{background:#f8fafb}.quiz-option:hover{background:#f5f7f8}.quiz-option.correct{border-color:#a98b21;background:#fff3b9;color:#353012}.quiz-option.wrong{border-color:#c95845;background:#fff0eb;color:#6c2b22}.playlist-row.current strong{color:#8d7119}
.flash-audio-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:9px;font-size:13px;color:var(--muted);margin:-4px 0 12px}.mute-toggle{background:#f1f5f7}.mute-toggle[aria-pressed="true"]{background:#ffe5df;color:#8e352a}.flash-stage{background:#f4f7f8;border-radius:20px}.flash-stage.is-flipped{background:#fff5cd}.flash-word{font-size:40px}.flash-sentence{font-size:20px;line-height:1.7}.flash-source{line-height:1.8}.flash-stage .text-button{margin-top:15px;font-size:13px}.flash-top{font-size:12px}
.context-meta{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin-bottom:16px}.context-sentence{padding:23px;background:#f2f5f7;border-radius:18px;font-size:23px;line-height:1.65;margin:12px 0 20px}.context-sentence mark{background:#ffe171;padding:1px 4px;border-radius:4px;color:#222527}.context-prompt{font-size:16px;margin-bottom:12px}.context-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.context-options .quiz-option{margin:0;display:flex;align-items:center;gap:12px}.context-options .quiz-option>span{font-size:13px;color:var(--muted)}.quiz-option.selected{border-color:#9daeb7;background:#eef3f5}.confidence-label{font-size:14px;margin:22px 0 10px}.confidence-options{display:flex;gap:10px}.confidence-options .selected{background:#fff0b0;color:#4f451d;outline:1px solid #ccb254}.context-answer{margin-top:20px;padding:18px;border-radius:16px;background:#fff7d9;font-size:15px;line-height:1.9}.context-answer.needs-review{background:#fff0eb}.context-answer p{margin-top:8px}.context-answer small{display:block;color:var(--muted);margin-top:10px;line-height:1.8}.context-answer .text-button{margin-top:12px}.context-record-sentence{font-size:15px;padding:12px 0 0}.context-record-sentence small{font-size:12px}.toast{left:50%;bottom:95px;background:#222527}
@media(max-width:1240px){.sidebar{padding-left:28px;padding-right:28px;gap:18px}.nav-item{padding:8px 9px;font-size:12px}.nav-item svg{display:none}.profile div{display:none}.main{padding-left:28px;padding-right:28px}.player-hint{display:none}.player-inner{gap:20px}.overview-cell{padding:0 20px}.panel{padding:20px}.context-panel{padding:17px 20px}.mastery-content{gap:12px}.mastery-content>div:first-child{width:105px}.risk-row{font-size:12px}.risk-row span:last-child{max-width:155px}.task-label{font-size:14px}}
@media(max-width:1000px){
 .sidebar{position:fixed;left:0;right:auto;top:0;bottom:0;width:258px;min-height:100dvh;padding:28px 18px 0;display:flex;align-items:stretch;flex-direction:column;gap:0;transform:translateX(-100%);background:#fff}.sidebar.open{transform:translateX(0)}.brand{padding:0 8px 24px;gap:10px}.brand strong{font-size:18px}.brand span{font-size:10px}.mobile-close{display:inline-flex;margin-left:auto}.sidebar nav{display:block;flex:none}.nav-caption{display:block;font-size:12px;color:var(--muted);margin:25px 12px 9px}.nav-item{width:100%;justify-content:flex-start;min-height:44px;padding:10px 13px;font-size:14px;border-radius:10px;margin:3px 0}.nav-item svg{display:block;width:17px;height:17px}.nav-item.active{background:#fff3bb}.sidebar-bottom{margin:auto 0 0;padding:32px 12px 0}.goal-label{display:block;font-size:12px;color:var(--muted)}.goal-date{display:block;font-size:25px;margin:6px 0}.sidebar-bottom>p{display:block;font-size:12px;color:var(--muted);margin-bottom:18px}.sidebar-bottom>.nav-item{display:flex;padding-left:0}.profile{padding:20px 0;margin-top:12px;border-top:1px solid var(--border)}.profile div{display:block}.mobile-bar{display:flex;height:60px;align-items:center;justify-content:space-between;padding:0 20px;background:var(--ground)}.mobile-bar>span{font-size:14px;font-weight:500}.main{padding-top:14px}.mastery-content>div:first-child{width:100px}.mastery-content{gap:9px}.mastery-legend .legend-row{font-size:11px}.overview-cell{padding:0 16px}.day-overview{padding:22px}.task-panel .secondary-text{font-size:12px}.context-panel p{font-size:13px}.panel-heading h2{font-size:15px}.mastery-panel .panel-heading .text-button{font-size:12px}.player-dock{padding-left:28px;padding-right:28px}.player-inner{gap:16px}.player-current #player-meaning{display:none}
}
@media(min-width:641px) and (max-width:800px){.workspace-grid{grid-template-columns:repeat(12,minmax(0,1fr))}.task-panel{grid-column:span 7}.right-column{grid-column:span 5;display:flex}.week-panel{grid-column:span 7}.feedback-panel{grid-column:span 5}.task-row{min-height:78px;gap:9px;grid-template-columns:20px minmax(0,1fr) auto}.task-panel .panel-heading{align-items:flex-start;gap:8px}.task-panel .secondary-text{font-size:11px;max-width:120px;text-align:right}.task-action{padding:6px 9px}.tabs{gap:21px}.day-overview{padding:20px}.overview-cell{padding:0 14px}.overview-cell>span{font-size:12px}.overview-cell small{font-size:11px}.task-details{font-size:11px}.right-column .panel{padding:18px}.risk-row{font-size:12px}.risk-row span:last-child{font-size:11px}.risk-panel .panel-heading{gap:6px}.risk-panel .status{padding:3px 6px;font-size:11px}.feedback-shortcuts{flex-direction:column}}
@media(max-width:640px){
 .mobile-bar{height:58px;padding:0 13px}.main{padding:9px 16px 158px}.preview-notice{font-size:11px;margin-bottom:19px}.preview-notice>span{align-items:flex-start;line-height:1.7;gap:6px}.preview-mark{margin-top:6px}.preview-notice>.text-button{display:none}.page-header{align-items:flex-start;gap:10px;margin-bottom:20px}h1{font-size:26px}.title-dot{width:7px;height:7px;margin-top:3px}.page-header p{font-size:12px;line-height:1.9}.page-header p #study-date{display:block}.page-header p .text-divider{display:none}.header-actions{padding-top:2px}.header-actions>.secondary{display:none}.header-actions .primary{min-height:38px;font-size:12px;padding:10px 13px}
 .day-overview{grid-template-columns:1fr 1fr;gap:20px 0;padding:21px;border-radius:22px;margin-bottom:18px}.overview-cell{padding:0 0 0 19px}.overview-cell:first-child,.overview-cell:nth-child(3){padding-left:0;padding-right:12px}.overview-cell:nth-child(2){border:0}.overview-cell>span{font-size:12px}.overview-cell strong{font-size:30px}.overview-cell:first-child strong{font-size:38px}.overview-cell small{font-size:11px;margin-top:4px}.unit{font-size:12px}.time-budget{margin:0 2px 20px}.budget-top{gap:8px;align-items:flex-start}.budget-top h2{font-size:12px;max-width:145px;line-height:1.7}.budget-top .text-button{font-size:11px;gap:0}.budget-top .text-divider{margin:0 4px}.budget-top .inline-icon{width:13px}.budget-legend{gap:6px 12px;font-size:11px;margin-top:9px}.budget-dot{width:5px;height:5px}
 .workspace-grid{grid-template-columns:1fr}.task-panel,.right-column,.week-panel,.feedback-panel{grid-column:1}.right-column{display:flex}.panel{border-radius:22px;padding:18px}.panel-heading h2{font-size:16px}.task-panel .panel-heading{align-items:center}.task-panel .secondary-text{max-width:none;font-size:11px}.task-row{min-height:80px;gap:9px}.task-label{font-size:14px}.task-details{font-size:12px;gap:6px}.task-details span+span:before{margin-right:6px}.task-action{font-size:12px;min-height:44px;min-width:44px;padding:6px 9px}.tabs{gap:26px;margin-top:10px}.tab{min-height:44px;font-size:13px;padding-top:10px}.task-footnote{font-size:12px}.context-panel{padding:20px}.context-panel p{font-size:14px}.context-panel small{font-size:12px}.context-panel .button{min-height:40px;font-size:13px}.mastery-content{gap:25px;margin:17px 0}.mastery-content>div:first-child{width:140px;max-width:44%}.mastery-legend .legend-row{font-size:14px;min-height:34px}.legend-row b{font-size:15px}.small-tabs button{font-size:13px;min-height:40px}.mastery-panel .panel-heading .text-button{font-size:13px}.risk-row{font-size:14px;margin-top:13px}.risk-row span:last-child{font-size:12px;max-width:180px}.risk-panel .panel-heading .status{font-size:12px}.risk-panel>p{font-size:12px;margin-top:13px}.feedback-panel>p{font-size:14px}.feedback-shortcuts{flex-direction:column}.week-chart{height:180px}.page-footer{font-size:11px;align-items:flex-start;margin:20px 2px 0}.page-footer>span{max-width:185px}.page-footer .text-button{font-size:12px}
 .player-dock{padding:10px 16px 12px}.player-inner{display:grid;grid-template-columns:1fr auto;gap:4px 10px;min-height:98px}.player-label{grid-row:1;grid-column:1;min-width:0;gap:5px}.player-label>svg{display:none}.player-label>div{display:flex;align-items:center;gap:7px}.player-label strong{display:inline;font-size:11px;margin:0}.player-label .text-button{font-size:11px;display:inline}.player-current{grid-row:2;grid-column:1;min-width:0;gap:9px}.player-current strong{font-size:22px}.player-current>span{font-size:12px}.player-current #player-meaning{display:inline;max-width:85px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-current #player-position{display:none}.player-controls{grid-row:1/3;grid-column:2;gap:1px}.player-controls .icon-button{width:32px;height:44px}.previous-button{display:none}.play-button{width:42px;height:42px;margin-right:4px}.rate-label select{font-size:12px;padding:8px 2px;min-height:44px}.repeat-button{background:transparent!important}.gap-button{grid-row:3;grid-column:1/3;justify-self:start;min-height:20px;font-size:11px;color:var(--muted);gap:6px}.gap-button svg{width:13px;height:13px}.player-hint{display:none}.toast{bottom:142px;font-size:13px;width:max-content}
 .dialog-header{padding:16px 18px}.dialog-header h2{font-size:17px}.dialog-body{padding:19px 18px 23px}.field-row{grid-template-columns:1fr;gap:0}.field input,.field select,.field textarea{font-size:16px}.flash-stage{padding:20px 15px}.flash-word{font-size:36px}.flash-sentence{font-size:19px}.flash-controls{gap:6px}.flash-controls .button{font-size:13px;padding:11px 9px;min-height:44px}.flash-audio-toolbar{font-size:12px}.mute-toggle{height:44px;width:44px}.form-actions{flex-wrap:wrap}.form-actions .button{flex:1;min-height:44px}.context-sentence{padding:20px;font-size:21px}.context-options{gap:8px}.context-options .quiz-option{font-size:14px;padding:12px 10px;gap:8px;min-height:48px}.confidence-options{gap:8px}.confidence-options .button{font-size:13px;padding:10px 13px;min-height:44px}.context-meta{font-size:11px}.context-answer{padding:16px;font-size:14px}.context-prompt{font-size:15px}
}

/* Readable labels, content-sized task panel, and a compact phone overview. */
.brand span{font-size:12px;letter-spacing:0}.task-list{flex:0}.task-panel{align-self:start}.task-row{min-height:76px}
.legend-row,.small-tabs button,.panel-caption,.risk-row,.risk-row span:last-child,.budget-legend,.chart-key{font-size:13px}
@media(max-width:1000px){.brand span{font-size:12px}.mastery-legend .legend-row{font-size:13px}.risk-row,.risk-row span:last-child{font-size:12px}}
@media(max-width:640px){.header-copy{display:none}.page-header p #study-date{display:inline}.page-header p{font-size:13px}.day-overview{padding:18px 20px;gap:12px 0}.overview-cell>span{font-size:13px}.overview-cell small{font-size:12px}.overview-cell strong{font-size:28px}.overview-cell:first-child strong{font-size:34px}.budget-top h2,.budget-top .text-button{font-size:12px}.budget-legend{font-size:12px}.task-row{min-height:80px}.mastery-legend .legend-row,.risk-row{font-size:14px}.risk-row span:last-child{font-size:12px}.small-tabs button,.chart-key,.panel-caption{font-size:13px}.context-panel small{font-size:12px}.page-footer{font-size:12px}}

@media(max-width:640px){.preview-notice{font-size:12px}.budget-legend{font-size:13px}.task-details{font-size:13px}.player-label strong,.player-label .text-button,.gap-button{font-size:12px}.page-footer{font-size:13px}}
