/* A calm, focused study desk. Scoped to refreshed student and teacher areas. */
#dash{--ink:#153d36;--green:#14695b;--muted:#54736b;padding:38px!important;max-width:1240px;margin:0 auto;background:#f8faf6!important;border:1px solid #e0e9df!important;border-radius:30px!important;box-shadow:0 24px 65px #254b3a0d!important}
#dash .study-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px;font-size:12px;letter-spacing:2px;font-weight:700;color:#5c7667}
#dash .study-top button{font-size:13px;padding:9px 16px;letter-spacing:0;box-shadow:none}
#dash .study-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:28px;background:#163f36;color:#fff;border-radius:24px;padding:34px 38px;overflow:hidden}
#dash .study-hero:after{content:'';position:absolute;width:280px;height:280px;border:1px solid #e6e8ae21;right:-65px;top:-130px;border-radius:50%;box-shadow:0 0 0 30px #e6e8ae09,0 0 0 60px #e6e8ae06}
#dash .study-eyebrow{color:#dbdba5;font-size:12px;letter-spacing:2px;font-weight:700;margin:0 0 12px}
#dash #hello{color:#fff;font-size:34px;line-height:1.4;margin:0 0 10px;letter-spacing:-1px}
#dash .study-hero p:last-child{font-size:15px;color:#d2e3d9;margin:0;line-height:1.8}
#dash .hero-mark{flex:none;width:100px;height:100px;position:relative;z-index:1;border:1px solid #cddca840;border-radius:50%;display:grid;place-items:center;font-size:37px;color:#e9e2ac;font-family:Georgia,serif;font-style:italic;transform:rotate(-12deg)}
#dash #kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:0;background:transparent;margin:26px 0 32px;border-bottom:1px solid #dce5da;padding-bottom:26px}
#dash #kpis .card{padding:0 22px;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;border-right:1px solid #dde6da!important}
#dash #kpis .card:first-child{padding-left:2px}#dash #kpis .card:last-child{border:0!important}
#dash #kpis .muted{font-size:13px;color:#526e61}#dash #kpis .kpi{font-size:26px;font-weight:700;color:#153d36;line-height:1.5;margin-top:5px}
#dash .study-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:18px}#dash .study-section-title h3{font-size:20px;margin:0;color:#153d36}#dash .study-section-title span{font-size:12px;color:#526e61}
#dash .study-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
#dash .study-card{font:inherit;text-align:left;position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:255px;padding:25px;border-radius:22px;border:1px solid #dbe5d9;background:#fff;color:#153d36;cursor:pointer;transition:transform .18s,box-shadow .18s}
#dash .study-card:hover{transform:translateY(-4px);box-shadow:0 14px 25px #193f3610}#dash .study-card:focus-visible{outline:3px solid #947b28;outline-offset:4px}
#dash .study-card:nth-child(2){background:#eff4e4;border-color:#e0e8d0}#dash .study-card:nth-child(3){background:#f4eee0;border-color:#e9dfcb}
#dash .study-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#e8f1eb;margin-bottom:22px;color:#276650}#dash .study-icon svg{width:28px;height:28px}#dash .study-card:nth-child(2) .study-icon{background:#e0e9cd}#dash .study-card:nth-child(3) .study-icon{background:#ebe0c5;color:#806521}
#dash .study-card .step-number{position:absolute;right:25px;top:28px;color:#7c887a;font-size:12px;letter-spacing:1px}
#dash .study-card b{font-size:21px;font-weight:750;margin-bottom:9px}#dash .study-card small{font-size:13px;line-height:1.7;color:#52665a;max-width:240px}
#dash .study-card .card-link{font-size:13px;font-weight:700;margin-top:auto;padding-top:24px;display:flex;justify-content:space-between;width:100%;gap:10px}
/* v257：复习卡下方「待学 N 个新词」小字（待学与到期分开显示） */
#dash .study-card .study-pending-new{font-size:12px;font-weight:700;color:#7c887a;margin-top:6px;letter-spacing:.2px}
#dash .study-footer{text-align:center;font-size:12px;letter-spacing:1px;color:#65796b;margin:27px 0 0}
#dash .study-section-title .checkin-entry{font-size:12px;padding:8px 14px;border-radius:999px;margin-left:14px;white-space:nowrap;flex-shrink:0;background:#e7f4ef;color:#14695b;border:1px solid #cfe4dc}
#teacherMaterials{max-width:1240px;margin:auto;padding:34px!important}#teacherMaterials h2{font-size:30px!important;margin:25px 0 12px!important}#teacherMaterials .nav .btn{font-size:14px;padding:11px 18px}
.library-intro{font-size:14px;color:#527068;line-height:1.8;margin:0 0 24px}.library-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.library-toolbar select{flex:1;min-width:135px;font-size:13px;padding:11px 12px;border-radius:12px}.library-search{flex:2;min-width:235px;display:flex;align-items:center;gap:10px;padding:0 14px;border:1px solid #d5e3df;border-radius:12px;background:#fff;font-size:12px;color:#516e63}.library-search input{width:100%;font-size:13px;border:0;background:transparent;padding:12px 0;outline:0}.library-search:focus-within{outline:2px solid #367363;outline-offset:2px}.library-count{font-size:12px;color:#5c766b;margin:18px 0 12px}
.library-file{background:white;border:1px solid #dbe7e0;border-radius:17px;margin:0 0 12px;overflow:hidden}.library-file>summary{display:flex;align-items:center;gap:16px;padding:21px;cursor:pointer;list-style:none}.library-file>summary::-webkit-details-marker{display:none}.file-icon{width:46px;height:51px;display:grid;place-items:center;border-radius:12px;background:#edf3e8;color:#356a50;flex-shrink:0}.file-icon svg{width:27px;height:27px}.file-info{flex:1;min-width:0}.file-info b{font-size:17px;overflow-wrap:anywhere}.file-info small{display:block;font-size:12px;color:#5b766a;margin-top:7px}.file-state{font-size:11px;background:#f1f3ed;color:#596859;border-radius:20px;padding:6px 10px;white-space:nowrap}.file-state.assigned{background:#e7f3ea;color:#286449}.file-chevron{font-size:20px;transition:transform .2s}.library-file[open] .file-chevron{transform:rotate(180deg)}.file-content{padding:0 21px 15px}.file-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid #e6ede6;padding:16px 0}.file-actions>span{font-size:12px;color:#587567;flex:1;min-width:150px}.file-actions .btn,.file-passage .btn{font-size:12px;padding:9px 13px;box-shadow:none;border-radius:10px}.file-passage{display:flex;align-items:flex-start;gap:15px;padding:16px 0;border-top:1px solid #e9eeea}.passage-number{color:#688578;font-size:12px;padding-top:3px}.passage-info{flex:1;min-width:0}.passage-info>b{font-size:14px;overflow-wrap:anywhere}.passage-info>small{display:block;font-size:11px;color:#687e71;margin-top:4px}.grant-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.grant-list>span{font-size:11px;color:#3d6b54;padding:4px 8px;border-radius:8px;background:#eef5ed}.grant-list button{border:0;background:transparent;color:#9a493b;font-size:15px;cursor:pointer;padding:0 0 0 9px}.grant-list>small{font-size:11px;color:#6b7f70}.library-empty{padding:35px;background:#f4f7f0;text-align:center;border-radius:16px}.library-empty h3{font-size:19px}.library-empty p{font-size:13px;color:#5e7364}#libraryFormArea{margin-top:25px}#libraryFormArea[hidden]{display:none!important}#libraryFormArea .card{box-shadow:none;font-size:14px}#libraryFormArea .card h3{font-size:23px}#libraryFormArea .card p{font-size:14px}
.xsd-dialog{border:1px solid #d9e6dd;border-radius:22px;box-shadow:0 30px 90px #142b3340;padding:26px;max-width:600px;width:calc(100% - 36px);max-height:85vh;overflow:auto;color:#173c32}.xsd-dialog::backdrop{background:#17372f66;backdrop-filter:blur(3px)}.xsd-dialog h3{font-size:23px;margin:0 0 15px}.xsd-dialog label{display:block;font-size:13px;margin:12px 0}.xsd-dialog input,.xsd-dialog select{font-size:14px;padding:11px;margin-top:6px}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.dialog-footer .btn{font-size:14px;padding:11px 18px}.assign-select-all{margin-top:18px;border-bottom:1px solid #e0e9df}.assign-pieces{max-height:270px;overflow:auto}.assign-pieces label,.assign-select-all label{display:flex;align-items:center;gap:10px}.xsd-dialog input[type=checkbox]{width:17px;height:17px;flex-shrink:0;accent-color:#246c52;margin:0}.dialog-error{color:#a3372c;font-size:13px;min-height:18px}
#paperSetup h2{font-size:30px}.paper-format{margin-bottom:25px;padding-bottom:15px;border-bottom:1px solid #dce8df}.paper-format select{margin-top:8px}.paper-format p{font-size:14px}.vocab-table{width:100%;border-collapse:collapse;font-size:15px}.vocab-table th,.vocab-table td{padding:10px 14px;text-align:left;border:1px solid #dae3dc}.vocab-table th{background:#f0f5ed}.answer-line{display:inline-block;min-width:180px;width:38%;border-bottom:1px solid #69786f;margin-left:25px}.question{break-inside:avoid}.vocab-table tr{break-inside:avoid}#paper .nav{flex-wrap:wrap}#paper .nav .btn{font-size:14px;padding:12px 17px}
@media(max-width:700px){#dash{padding:21px!important;border-radius:22px!important}#dash .study-top{font-size:10px;margin-bottom:20px}#dash .study-hero{padding:24px;gap:10px}#dash #hello{font-size:26px}#dash .study-hero p:last-child{font-size:13px}#dash .hero-mark{width:65px;height:65px;font-size:26px}#dash #kpis{margin:22px 0;padding-bottom:20px}#dash #kpis .card{padding:0 10px}#dash #kpis .muted{font-size:11px}#dash #kpis .kpi{font-size:22px}#dash .study-grid{grid-template-columns:1fr;gap:12px}#dash .study-card{min-height:165px;padding:21px 22px 21px 86px}#dash .study-icon{position:absolute;top:22px;left:20px;width:45px;height:45px}#dash .study-card b{font-size:19px;margin-bottom:7px}#dash .study-card small{max-width:none;font-size:12px;padding-right:10px}#dash .study-card .step-number{top:auto;bottom:23px;font-size:11px}#dash .study-card .card-link{padding-top:18px;padding-right:30px;font-size:12px}#dash .study-section-title h3{font-size:18px}#dash .study-section-title span{font-size:11px}#dash .study-footer{font-size:11px;margin-top:23px}#teacherMaterials{padding:22px!important}#teacherMaterials h2{font-size:25px!important}.library-toolbar{gap:8px}.library-search{flex-basis:100%}.library-toolbar select{min-width:90px;font-size:12px;padding:10px 6px}.library-file>summary{padding:16px 13px;gap:11px;flex-wrap:wrap}.file-info b{font-size:15px}.file-info small{font-size:11px}.file-state{font-size:10px}.file-icon{width:37px;height:43px}.file-chevron{font-size:17px}.file-content{padding:0 14px 8px}.file-passage{gap:10px}.passage-info>b{font-size:13px}.file-actions>span{flex-basis:100%}.file-actions .btn{flex:1}.xsd-dialog{padding:22px}.vocab-table th,.vocab-table td{font-size:13px;padding:8px}.answer-line{min-width:110px}}
@media print{.no-print,#paperGradePanel{display:none!important}.vocab-table thead{display:table-header-group}.paper{box-shadow:none!important;border:0!important;padding:0!important}.paper h2{font-size:24px}#paper{padding:0!important;max-width:none!important;border:0!important;box-shadow:none!important}.question{margin-bottom:20px!important}.vocab-table th{background:white}.vocab-table th,.vocab-table td{color:#000}}
@media(prefers-reduced-motion:reduce){#dash .study-card,.file-chevron{transition:none}#dash .study-card:hover{transform:none}}

.library-search>span{white-space:nowrap;flex-shrink:0}

@media(max-width:440px){#dash .hero-mark{display:none}}
