@charset "UTF-8";
:root{--paper:#f3f5eb;--cream:#fffcf4;--ink:#293c30;--muted:#62705c;--green:#55765b;--deep:#3b5b42;--sage:#e5ebda;--line:#e0e5d5;--gold:#d9b779;--gold-bg:#fff3dc;--shadow:0 8px 32px #34472d06;--radius:24px;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-size:16px;line-height:1.6;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #9b7535;outline-offset:3px}a{color:var(--deep)}button{color:inherit}h1,h2,h3,p{margin:0}h1,h2,h3,.brand-title{font-family:"Hiragino Maru Gothic ProN","Yuanti SC","PingFang SC",sans-serif;letter-spacing:.02em}h1{font-size:30px;line-height:1.3}h2{font-size:21px;line-height:1.45}h3{font-size:17px}small,.muted{color:var(--muted)}small{font-size:13px}svg.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon.large{width:30px;height:30px}button svg{vertical-align:middle}button{border:0;background:none}button.primary,.primary-link{background:var(--green);color:var(--cream);border:1px solid var(--green);border-radius:14px;min-height:46px;padding:10px 19px;display:inline-flex;gap:8px;align-items:center;justify-content:center;font-weight:600;text-decoration:none}button.primary:hover{background:var(--deep)}button.secondary{background:var(--sage);border-radius:14px;min-height:44px;padding:9px 16px;color:var(--deep);display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600}button.ghost{min-height:44px;padding:8px 12px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--deep)}button.ghost:hover{background:var(--sage)}button.danger{color:#984634}button.icon-button{width:44px;height:44px;display:inline-grid;place-items:center;border-radius:12px;flex-shrink:0}button.icon-button:hover{background:var(--sage)}button.text-link{color:var(--deep);text-decoration:underline;text-underline-offset:4px;padding:10px 3px;min-height:44px}hr{border:0;border-top:1px solid var(--line);margin:20px 0}.skip-link{position:fixed;top:-70px;left:20px;z-index:100;background:var(--cream);padding:10px}.skip-link:focus{top:12px}
.shell{max-width:1480px;margin:0 auto;display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}.sidebar{padding:34px 24px;border-right:1px solid var(--line);position:sticky;top:0;height:100vh;display:flex;flex-direction:column;background:#eef1e4}.brand{display:flex;align-items:center;gap:10px}.brand img{width:43px;height:43px}.brand-title{font-size:21px;font-weight:750}.brand small{display:block;font-size:11px;letter-spacing:.08em}.side-nav{display:grid;gap:10px;margin-top:46px}.nav-btn{display:flex;gap:13px;align-items:center;padding:14px 17px;border-radius:16px;min-height:52px;color:var(--muted);text-align:left;font-weight:600}.nav-btn.active{background:var(--green);color:var(--cream)}.nav-btn:not(.active):hover{background:var(--sage)}.side-note{margin-top:auto;padding:24px 10px;color:var(--muted);font-size:13px;line-height:1.9}.side-note svg{margin-bottom:10px}.main-wrap{min-width:0;padding:30px 42px 28px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.eyebrow{font-size:12px;letter-spacing:.1em;color:var(--muted);margin-bottom:4px}.mobile-brand{display:none}.profile-caption{font-size:14px;color:var(--muted);margin-top:5px}.top-actions{display:flex;gap:8px;align-items:center}.save-dot{font-size:12px;color:var(--muted);white-space:nowrap}.save-dot:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--green);margin-right:7px}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}.page-heading p{margin-top:7px;color:var(--muted);font-size:14px}.date-picker{display:flex;align-items:center;gap:4px}.date-picker input{width:145px;background:transparent;border:0;padding:6px;color:var(--ink);font-size:14px;min-height:44px}.hero{border-radius:28px;min-height:222px;background:#faf8ef url('assets/reading-bear.png') right 53%/auto 320px no-repeat;position:relative;overflow:hidden;border:1px solid #e9e9d9;margin-bottom:22px}.hero-copy{padding:34px 30px;position:relative;width:62%;z-index:1}.hero h2{font-size:29px;line-height:1.65;letter-spacing:.03em}.hero p{color:var(--muted);font-size:14px;margin-top:10px;max-width:260px}.hero-tag{font-size:11px;letter-spacing:.16em;color:var(--green);margin-bottom:7px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:22px;align-items:start}.column{display:grid;gap:22px;min-width:0}.panel{border:1px solid var(--line);background:var(--cream);border-radius:var(--radius);padding:23px;box-shadow:var(--shadow);min-width:0}.section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.section-head h2{display:flex;align-items:center;gap:9px}.section-head small{font-size:12px}.summary{display:grid;grid-template-columns:1fr 1fr;padding:18px 0;border:1px solid var(--line);border-radius:20px;background:var(--cream);margin-bottom:20px}.summary-item{display:flex;align-items:center;gap:14px;padding:0 25px}.summary-item+div{border-left:1px solid var(--line)}.summary-item .circle{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--sage);color:var(--green)}.summary-label{font-size:13px;color:var(--muted)}.summary strong{font-size:29px;line-height:1.2;margin-right:6px;font-variant-numeric:tabular-nums}.summary small{font-size:13px}.next-task{padding:22px;background:var(--sage);border-radius:22px;display:flex;gap:14px;align-items:center;border:1px solid #d7dfc9}.next-task .star{font-size:29px;color:var(--green);flex-shrink:0}.next-task .grow{min-width:0}.next-task h3{margin:4px 0;overflow-wrap:anywhere}.next-task p{font-size:12px;color:var(--muted)}.next-task .primary{padding:9px 14px;white-space:nowrap;margin-left:auto}.grow{flex:1}.task-list{display:grid;gap:9px}.task-row{display:flex;align-items:center;gap:11px;padding:14px 12px;background:#fffef9;border:1px solid var(--line);border-radius:15px}.subject{border-radius:12px;width:44px;height:44px;display:grid;place-items:center;font-weight:650;font-size:14px;flex-shrink:0}.subject.cn{background:#e4ebd8;color:#42613a}.subject.math{background:#e0ebed;color:#3d6476}.subject.en{background:#e9e4f0;color:#6c5789}.task-title{font-size:16px;font-weight:600;overflow-wrap:anywhere}.task-title.done{color:var(--muted)}.task-detail-button{text-align:left;min-width:0;padding:0;flex:1}.task-meta{font-size:12px;color:var(--muted);margin-top:3px}.check-btn{border:1.5px solid #adb99f;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;padding:0;flex-shrink:0}.check-hit{min-width:44px;min-height:44px;display:grid;place-items:center;padding:0}.check-btn.checked{background:var(--green);border-color:var(--green);color:white}.check-btn svg{width:17px;height:17px}.status{font-size:12px;color:var(--muted);white-space:nowrap}.badge{display:inline-block;border-radius:7px;padding:2px 7px;background:var(--gold-bg);color:#785724;font-size:12px}.badge.green{background:var(--sage);color:var(--deep)}.attention{background:var(--gold-bg);border-color:#eeddbb}.attention .section-head h2{color:#775729}.attention-item{display:block;text-align:left;width:100%;padding:13px 0;border-bottom:1px solid #ecdfc3;min-height:44px}.attention-item:last-child{border-bottom:0}.attention-item strong{font-size:15px;display:block;margin-bottom:3px;overflow-wrap:anywhere}.attention-item small{color:#7b684b}.review-item{padding:14px 0;border-bottom:1px solid var(--line)}.review-item:last-child{border-bottom:0}.review-title{display:flex;align-items:flex-start;gap:10px}.review-item p{font-size:13px;color:var(--muted);margin-top:5px}.review-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.review-actions button{font-size:13px;padding:8px 11px;min-height:44px}.empty{text-align:center;padding:28px 12px;color:var(--muted)}.empty .empty-icon{color:#829775;display:block;margin:0 auto 10px}.empty p{font-size:14px;margin:6px auto 15px;max-width:300px}.empty strong{font-size:17px;font-weight:600;color:var(--ink)}.gentle-note{font-size:13px;color:var(--muted);display:flex;gap:10px;align-items:center;padding:0 8px}.footer{font-size:12px;text-align:center;color:var(--muted);margin-top:30px}.bottom-nav{display:none}.filter-bar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:18px 0}.filter{padding:8px 16px;border-radius:12px;min-height:44px;background:var(--cream);border:1px solid var(--line);font-size:14px}.filter.active{background:var(--green);color:white;border-color:var(--green)}.search{flex:1;min-width:180px}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.source-list,.record-list{display:grid;gap:15px}.source-card .source-preview{white-space:pre-wrap;max-height:85px;overflow:hidden;color:var(--muted);font-size:14px;margin:10px 0}.source-card .source-footer{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}.record-card h3{overflow-wrap:anywhere}.record-card .record-title{display:flex;gap:12px;align-items:center}.record-card .record-text{font-size:14px;color:var(--muted);margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere}.record-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.source-title{overflow-wrap:anywhere}.templates{display:flex;flex-wrap:wrap;gap:8px}.template{padding:10px 14px;border:1px dashed #b8c7a8;border-radius:13px;background:#f5f6ed;min-height:44px;font-size:14px}.count-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0}.count-card{padding:18px;border-radius:18px;background:var(--sage);text-align:center}.count-card strong{display:block;font-size:30px}.count-card small{font-size:13px}.progress-track{height:8px;background:var(--sage);border-radius:9px;overflow:hidden;margin-top:9px}.progress-fill{height:100%;background:var(--green);border-radius:9px}.subject-stat{margin:20px 0}.subject-stat>div:first-child{display:flex;justify-content:space-between}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.data-actions{display:grid;gap:12px;margin:20px 0}.help-copy{font-size:14px;color:var(--muted);line-height:1.9}.mini-label{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}.child .shell{display:block;max-width:860px}.child .hero h2{font-size:30px}.child .main-wrap{padding-top:28px}.child .task-row{padding:20px 16px}.child .task-title{font-size:21px}.child .task-list{gap:13px}.child-number{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--sage);font-weight:700}.child .next-task{margin:20px 0}.child .task-meta{font-size:14px}.overdue{margin-bottom:20px;background:#f9eedc;border:1px solid #e7d5b5;border-radius:16px;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px}
dialog{padding:0;border:1px solid var(--line);border-radius:24px;width:min(650px,calc(100% - 32px));max-height:90dvh;color:var(--ink);background:var(--cream);box-shadow:0 24px 100px #24392930}dialog::backdrop{background:#26352762;backdrop-filter:blur(3px)}.dialog-header{padding:21px 25px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;background:var(--cream);z-index:2;border-bottom:1px solid var(--line)}.dialog-header h2{font-size:21px}.dialog-body{padding:22px 25px 28px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.full{grid-column:1/-1}label.field{display:block;font-size:14px;font-weight:600}input,select,textarea{display:block;width:100%;padding:11px 12px;border:1px solid #c9d2be;border-radius:11px;color:var(--ink);background:#fffef9;margin-top:6px;min-height:46px;min-width:0}textarea{resize:vertical;min-height:88px;line-height:1.7}input[type=checkbox]{width:19px;min-height:19px;margin:0;accent-color:var(--green)}input[type=file]{font-size:13px;padding:9px}input::placeholder,textarea::placeholder{color:#7a8273;font-weight:400}.field small{font-weight:400;display:block;margin-top:5px;font-size:12px}.check-label{display:flex;align-items:center;gap:9px;min-height:44px;font-size:14px}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px;flex-wrap:wrap}.form-actions .danger{margin-right:auto}.form-error{color:#923e29;font-size:14px;margin-top:12px;white-space:pre-wrap}.form-section-title{font-size:15px;margin:23px 0 13px;font-weight:700}.hint-box{padding:15px 17px;border-radius:14px;background:var(--sage);font-size:14px;line-height:1.9;margin-bottom:17px}.images{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}.attachment{position:relative;max-width:110px}.attachment img{width:98px;height:78px;object-fit:cover;border-radius:11px;border:1px solid var(--line)}.attachment small{display:block;max-width:98px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:11px}.attachment .remove-image{position:absolute;right:0;top:0;width:30px;height:30px;background:var(--cream);border-radius:50%;box-shadow:0 2px 4px #0002}.image-preview{max-width:100%;max-height:65vh;object-fit:contain;display:block;margin:auto}.plain-text{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);font-size:14px}.split-row{display:grid;grid-template-columns:90px minmax(0,1fr) 40px;gap:8px;align-items:center;margin-bottom:10px}.split-row input,.split-row select{margin:0}.inline-box{border:1px solid var(--line);padding:14px;border-radius:13px;margin:15px 0}.history-row{padding:10px 0;font-size:13px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:10px}.info-list{padding-left:20px;margin:10px 0;color:var(--muted);font-size:14px}.info-list li{margin:7px 0}.loading{padding:25vh 20px;text-align:center;color:var(--green)}#toast{position:fixed;z-index:100;bottom:28px;left:50%;transform:translateX(-50%);display:none;align-items:center;gap:20px;background:var(--deep);color:white;box-shadow:0 8px 30px #20352830;padding:13px 20px;border-radius:16px;max-width:calc(100% - 30px);font-size:14px}#toast.visible{display:flex}#toast button{color:#fff1c7;white-space:nowrap;text-decoration:underline;min-height:36px}.image-preview-link{display:block}.draft-warning{color:#805c24;font-size:13px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1250px){.hero{background-size:auto 365px;min-height:242px}.hero-copy{padding:38px}.hero h2{font-size:32px}}
@media(max-width:1100px){.shell{grid-template-columns:205px minmax(0,1fr)}.sidebar{padding:30px 18px}.brand-title{font-size:18px}.main-wrap{padding:25px}.dashboard-grid{grid-template-columns:minmax(0,1fr)}.dashboard-grid>.column:last-child{grid-template-columns:1fr 1fr}.dashboard-grid>.column:last-child>.gentle-note{grid-column:1/-1}.hero{background-size:auto 300px}.settings-grid{grid-template-columns:1fr}}
@media(max-width:700px){:root{font-size:16px}.shell{display:block}.sidebar{display:none}.main-wrap{padding:21px 17px 110px}.mobile-brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:750;letter-spacing:.03em}.mobile-brand img{width:34px;height:34px}.desktop-title{display:none}.profile-caption{font-size:12px;padding-left:44px;margin-top:2px}.topbar{margin-bottom:22px;gap:6px}.top-actions .save-dot{display:none}.top-actions button{font-size:12px;padding:8px 11px;gap:5px;min-height:42px}.top-actions svg{width:17px;height:17px}.page-heading{align-items:center;margin-bottom:17px}.page-heading h1{font-size:24px}.page-heading p{font-size:12px;max-width:230px}.date-picker{gap:0}.date-picker input{width:123px;font-size:12px;padding:3px}.date-picker button{width:30px;min-width:30px}.hero{min-height:184px;background-size:auto 227px;background-position:right 54%;border-radius:22px;margin-bottom:16px}.hero-copy{padding:25px 19px;width:67%}.hero h2{font-size:23px;line-height:1.7;letter-spacing:0}.hero p{font-size:12px;max-width:180px;margin-top:9px}.hero-tag{font-size:10px;margin-bottom:5px;letter-spacing:.07em}.summary{margin-bottom:16px;padding:15px 0}.summary-item{padding:0 15px;gap:10px}.summary-item .circle{width:38px;height:38px}.summary-label{font-size:12px}.summary strong{font-size:26px}.summary small{font-size:12px}.dashboard-grid{gap:16px}.column{gap:16px}.dashboard-grid>.column:last-child{grid-template-columns:1fr}.panel{padding:18px;border-radius:21px}.section-head{margin-bottom:14px}.section-head h2{font-size:19px}.section-head button{font-size:13px;padding:7px 9px}.next-task{padding:17px;gap:10px;border-radius:20px}.next-task .star{font-size:24px}.next-task h3{font-size:16px}.next-task .primary{padding:9px 10px;font-size:12px;min-height:42px}.next-task p{font-size:11px}.task-row{padding:11px 9px;gap:9px}.subject{width:39px;height:39px;font-size:13px;border-radius:11px}.task-title{font-size:15px}.task-meta{font-size:11px}.status{font-size:11px}.check-hit{min-width:36px}.bottom-nav{position:fixed;z-index:10;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);background:#fffdf6f5;border-top:1px solid var(--line);padding:8px 10px max(8px,env(safe-area-inset-bottom));backdrop-filter:blur(14px)}.bottom-nav button{display:flex;align-items:center;justify-content:center;gap:3px;flex-direction:column;font-size:11px;color:var(--muted);min-height:54px}.bottom-nav button.active{color:var(--deep);font-weight:700}.bottom-nav .nav-icon{display:grid;place-items:center;width:49px;height:29px;border-radius:12px}.bottom-nav button.active .nav-icon{background:var(--sage)}.bottom-nav svg{width:21px;height:21px}.filter-bar{gap:6px}.filter{padding:8px 12px;font-size:13px}.search{min-width:100%;order:2}.toolbar .primary,.toolbar .secondary{font-size:13px;padding:10px 12px}.count-grid{gap:8px}.count-card{padding:14px 8px}.count-card strong{font-size:26px}.count-card small{font-size:11px}.child .main-wrap{padding:23px 17px 35px}.child .hero h2{font-size:24px}.child .task-title{font-size:19px}.child .task-meta{font-size:12px}.child .profile-caption{padding-left:0}.child .mobile-brand{font-size:21px}.child .task-row{padding:17px 11px}.child-number{width:26px;height:26px}.footer{margin-top:25px;font-size:11px}dialog{width:calc(100% - 18px);border-radius:20px;max-height:92dvh}.dialog-header{padding:15px 18px}.dialog-body{padding:18px}.form-grid{gap:14px}.form-actions button{font-size:14px}.split-row{grid-template-columns:77px minmax(0,1fr) 32px;gap:5px}.split-row select{padding:10px 6px}#toast{bottom:94px;font-size:13px;padding:12px 16px;gap:12px}.child #toast{bottom:20px}.overdue{font-size:12px;padding:12px}.eyebrow{font-size:10px}}
@media(max-width:700px){.page-heading{flex-wrap:wrap;row-gap:5px}.page-heading>div:first-child{flex-shrink:0}.date-picker{margin-left:auto}.check-hit{min-width:44px}.profile-caption{max-width:235px;overflow-wrap:anywhere}.hero-copy{width:62%}.hero h2{font-size:22px}.hero p{max-width:160px}}
@media(max-width:370px){.mobile-brand{font-size:19px;gap:7px}.top-actions button{padding:7px}.main-wrap{padding-left:12px;padding-right:12px}.hero h2{font-size:21px}.hero-copy{padding-left:16px}.hero p{max-width:140px}.next-task .star{display:none}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,color .15s}.hero-copy{animation:arrive .4s ease-out}@keyframes arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}}

.study-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px}.subject.other{background:#e8e1f2;color:#62537c}.dict-session{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 0;border-bottom:1px solid var(--line,#e0e5da)}.dict-session:last-child{border-bottom:0}.dict-session h3{margin:6px 0}.dict-session p{margin:8px 0;color:var(--muted,#687568)}.dict-session>div{min-width:0;overflow-wrap:anywhere}.dict-session .study-toolbar{margin:0;flex-shrink:0}.word-preview{display:flex;gap:7px;flex-wrap:wrap}.word-chip{display:inline-block;padding:5px 10px;border-radius:9px;background:#f1efe5}.word-chip.wrong{background:#f7e3dc;color:#914d3d}.word-chip.correct{background:#e0ebd8;color:#40633b}.dict-grade-row{display:grid;grid-template-columns:80px 1fr 1.5fr;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #e0e5da}.copy-task-choice{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #e0e5da}.copy-task-choice input{width:20px;height:20px;flex-shrink:0}.copy-task-choice span{overflow-wrap:anywhere}@media(max-width:600px){.dict-session{align-items:flex-start;flex-direction:column}.dict-grade-row{grid-template-columns:1fr 1fr}.dict-grade-row>strong{grid-column:1/-1}.dict-grade-row input,.dict-grade-row select{min-width:0;width:100%}.brand-title{font-size:19px}.study-toolbar button{white-space:normal}}

/* Dialogs keep actions reachable on narrow screens and while the keyboard is open. */
dialog[open]{display:flex;flex-direction:column;overflow:hidden;max-height:calc(var(--dialog-height,100dvh) - 24px)}.dialog-header{flex:0 0 auto}.dialog-body{overflow:auto;overscroll-behavior:contain;min-height:0;scroll-padding-bottom:100px}.dialog-body form{min-width:0}.dialog-body .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dialog-body input,.dialog-body select,.dialog-body textarea{max-width:100%}.dialog-body .dialog-submit-actions{position:sticky;bottom:-1px;background:var(--cream);padding:12px 0 calc(12px + env(safe-area-inset-bottom));z-index:3;border-top:1px solid var(--line)}.grade-choices{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:6px;min-width:0}.grade-choices legend{font-size:13px;margin-bottom:8px}.grade-choices label{position:relative;cursor:pointer}.grade-choices input{position:absolute;opacity:0;width:1px;min-height:1px;height:1px;margin:0}.grade-choices span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #c9d2be;border-radius:12px;background:#fffef9;font-size:14px}.grade-choices input:checked+span{background:var(--green);color:white;border-color:var(--green)}.grade-choices input[value=wrong]:checked+span{background:#975a43;border-color:#975a43}.grade-choices input:focus-visible+span{outline:3px solid #b69957;outline-offset:2px}.dict-grade-row{grid-template-columns:minmax(60px,.5fr) minmax(220px,1.5fr) minmax(100px,1fr)}
@media(max-width:700px){dialog[open]{position:fixed;inset:auto 0 auto;margin:0 auto;top:calc(var(--dialog-top,0px) + 8px);width:calc(100% - 16px);max-width:none;max-height:calc(var(--dialog-height,100dvh) - 16px);border-radius:18px}.dialog-header{padding:12px 16px}.dialog-header h2{font-size:20px;overflow-wrap:anywhere}.dialog-body{padding:16px;padding-bottom:0}.dialog-body .form-grid{grid-template-columns:minmax(0,1fr)}.dialog-body input,.dialog-body select,.dialog-body textarea{font-size:16px}.dialog-body .dialog-submit-actions{margin-top:18px}.dialog-body .dialog-submit-actions>button{flex:1;min-height:48px}.dict-grade-row{grid-template-columns:minmax(0,1fr);gap:12px}.dict-grade-row>strong{grid-column:auto;font-size:19px}.grade-choices label{flex:1}.grade-choices span{padding:10px 8px}body:has(dialog[open]){overflow:hidden}.dialog-body .reward-daily-top{grid-template-columns:1fr}}
/* Dictation record management: readable filters and wrapping mobile actions. */
.dict-search{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,190px);gap:12px;padding:0 0 18px;border-bottom:1px solid var(--line)}
.dict-search .study-toolbar{grid-column:1/-1;margin:0}
.dict-record-actions{max-width:240px}
@media(max-width:600px){.dict-search{grid-template-columns:1fr}.dict-record-actions{max-width:none;width:100%;gap:8px}}
.task-points-card{margin-bottom:20px}.task-points-total{color:var(--green);margin:12px 0}.task-points-total strong{font-size:32px;font-variant-numeric:tabular-nums}.task-points-card .help-copy{margin:10px 0}.task-point-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.task-point-row span{min-width:0;overflow-wrap:anywhere}.task-point-row small{display:block}.task-point-row strong{white-space:nowrap;font-size:14px}.source-point-row{grid-template-columns:80px minmax(0,1fr) 80px 40px}@media(max-width:600px){.source-point-row{grid-template-columns:80px minmax(0,1fr) 40px}.source-point-row>label:nth-child(3){grid-column:1/3;grid-row:2}.source-point-row>button{grid-column:3;grid-row:1}}
