/* A consistent spacing scale for the unit study workspace. */
.ordered-page{--study-border:#e2e8f0;--study-muted:#7b879a}
.ordered-page main{padding:36px 40px 48px}
.ordered-page .topbar{margin-bottom:30px;gap:24px}
.ordered-page .topbar h1{font-size:32px;line-height:1.3;letter-spacing:-.8px}
.ordered-page .topbar p{font-size:13px;margin-top:9px}
.ordered-page .top-actions{gap:8px}
.ordered-page .top-actions>.status{display:none}
.ordered-page .time-chip,.ordered-page .membership-chip{min-width:100px;padding:9px 12px;border-radius:12px}
.ordered-page .reward-chip{padding:9px 12px;border-radius:12px}
#ordered{max-width:1320px;margin:0 auto}
.ordered-panel{border:1px solid var(--study-border);border-radius:18px;background:white;box-shadow:0 4px 18px #14233b03;overflow:hidden}
.ordered-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:24px 26px}
.ordered-toolbar label{display:grid;gap:11px;min-width:0;font-size:12px;color:#758298;font-weight:500}
.ordered-toolbar select{width:100%;min-width:0;height:46px;padding:0 14px;border:1px solid var(--study-border);border-radius:9px;background:#fafbfd;color:#24344d;font-size:14px;outline:none}
.ordered-toolbar select:focus{border-color:#7e9dcc;box-shadow:0 0 0 3px #3678ed12}
.ordered-panel-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 26px;border-top:1px solid #edf0f5;background:#fdfefe}
.ordered-check{display:flex;align-items:center;gap:9px;font-size:13px;color:#5c6a80;cursor:pointer;white-space:nowrap}
.ordered-check input{width:16px;height:16px;accent-color:var(--blue);margin:0}
.ordered-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.ordered-actions button{height:44px;min-width:100px;padding:0 20px;border-radius:9px;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:20px}
.ordered-actions .next{background:#244a77;color:white;border:1px solid #244a77;box-shadow:0 3px 7px #244a7712}
.ordered-actions .next:hover{background:#1a3c64}
.ordered-actions .secondary{background:white;color:#5a6b82;border:1px solid var(--study-border)}
.ordered-actions button:disabled{opacity:.45;cursor:default;box-shadow:none}
.ordered-tools{margin:0;flex-wrap:nowrap;gap:10px}
.ordered-tools .next{min-width:174px}
.ordered-section-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:32px 0 0}
.ordered-section-head h2{font-size:21px;font-weight:650;margin:0;letter-spacing:-.3px;color:#21364f}
.ordered-section-head #orderedCount{font-size:12px;color:var(--study-muted);margin:8px 0 0;letter-spacing:.2px}
.ordered-status{display:flex;align-items:center;gap:10px;max-width:45%}
.ordered-save{font-size:12px;line-height:1.6;color:#819189;margin:0;text-align:right}
.ordered-version{font-size:11px;color:#929dab;line-height:1.6;margin:10px 0 20px}
.ordered-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.ordered-word{position:relative;display:flex;flex-direction:column;padding:18px 20px 17px;border:1px solid var(--study-border);border-radius:13px;background:white;break-inside:avoid;min-width:0;transition:border-color .16s,box-shadow .16s}
.ordered-word:hover{border-color:#b8c9df;box-shadow:0 4px 15px #243a5310}
.ordered-word-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;min-height:24px}
.ordered-number{font-size:11px;font-weight:600;color:#a0adbd;font-variant-numeric:tabular-nums;letter-spacing:.7px}
.ordered-mark.secondary{border:0;background:transparent;box-shadow:none;min-width:64px;padding:4px 0 4px 10px;font-size:11px;color:#8493a7;text-align:right;border-radius:4px;line-height:18px}
.ordered-mark.secondary:hover{color:#bc813d;background:#fcf7ef}
.ordered-word.is-wrong{border-color:#ebd8ba;background:#fffdf8}
.ordered-word.is-wrong .ordered-mark{color:#b48a4e}
.ordered-content{flex:1;min-width:0;overflow-wrap:anywhere;display:flex;flex-direction:column;align-items:flex-start}
.ordered-content b{font-family:Georgia,'Times New Roman','Microsoft YaHei UI',serif;font-size:24px;line-height:1.25;font-weight:600;color:#213a57;letter-spacing:-.4px}
.ordered-content p{margin:12px 0 0;font-size:13px;line-height:1.7;color:#647184;white-space:pre-line}
.ordered-content small{display:block;color:#9aa5b3;font-size:12px;line-height:1.5;margin-top:6px}
.ordered-content details{margin-top:16px;width:100%;font-size:12px}
.ordered-content summary{cursor:pointer;color:#6a86a8;list-style:none;display:flex;align-items:center;justify-content:space-between}
.ordered-content summary::after{content:'＋';font-size:14px;color:#a3b2c3}
.ordered-content details[open] summary::after{content:'－'}
.ordered-content details p{font-size:14px}
.ordered-quiz{max-width:800px;margin:0 auto;padding:36px 44px;background:white;border:1px solid var(--study-border);border-radius:18px}
#orderedPosition{font-size:12px;color:var(--study-muted)}
.ordered-quiz h2{font-size:38px;line-height:1.4;overflow-wrap:anywhere;font-weight:650;margin:30px 0;color:#203a58}
.ordered-quiz input{display:block;width:100%;height:58px;padding:14px 18px;border:1px solid var(--study-border);border-radius:10px;font-size:22px;margin:12px 0;outline:none;background:#fafbfd}
.ordered-quiz input:focus{border-color:#80a2c9;box-shadow:0 0 0 3px #3678ed10}
.ordered-quiz label{display:block;font-size:13px;color:var(--study-muted)}
#orderedResponse{min-height:96px;font-size:14px;line-height:1.8;color:#6d7b8e}
.ordered-answer{font-size:24px;color:#37628c}
.ordered-quiz>.ordered-actions:last-child{padding-top:24px;border-top:1px solid #edf0f5;justify-content:space-between;margin-top:30px}
.ordered-quiz .answers{gap:14px}
.ordered-quiz .answer{min-height:60px;border-radius:10px;font-size:14px}
@media(min-width:1600px){.ordered-page main{padding:42px 56px}.ordered-list{gap:20px}.ordered-word{padding:22px 24px}}
@media(max-width:1200px){.ordered-page main{padding:28px}.ordered-toolbar{gap:16px;padding:22px}.ordered-panel-footer{padding:18px 22px}.ordered-list{grid-template-columns:repeat(2,minmax(0,1fr))}.ordered-tools .next{min-width:140px}.ordered-actions button{padding:0 16px;min-width:90px}}
@media(max-width:900px){.ordered-page .topbar{flex-wrap:wrap}.ordered-page .top-actions{margin:0}.ordered-panel-footer{flex-wrap:wrap}.ordered-tools{width:100%;display:grid;grid-template-columns:1fr 1fr 1.6fr}.ordered-tools button{min-width:0}.ordered-toolbar{gap:12px}}
@media(max-width:720px){.ordered-page main{padding:24px 18px 36px}.ordered-page .topbar{margin-bottom:24px;gap:18px}.ordered-page .topbar h1{font-size:28px}.ordered-page .top-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ordered-page .reward-chip{grid-column:auto;min-width:0;width:100%;padding:10px 7px;justify-content:center}.ordered-page .reward-chip .coin{display:none}.ordered-page .time-chip,.ordered-page .membership-chip{min-width:0;width:100%;padding:10px 6px;text-align:center}.ordered-page .top-actions b{font-size:14px}.ordered-page .top-actions span{font-size:10px}.ordered-page .top-actions small{font-size:9px}.ordered-toolbar{grid-template-columns:1fr 1fr;gap:20px 14px;padding:22px 18px}.ordered-toolbar label:first-child{grid-column:1/-1}.ordered-toolbar select{height:45px;padding:0 9px;font-size:12px}.ordered-toolbar label{gap:9px}.ordered-panel-footer{padding:17px 18px;gap:18px}.ordered-check{font-size:12px}.ordered-tools{grid-template-columns:1fr 1fr;gap:10px}.ordered-tools .next{grid-column:1/-1;grid-row:1;height:46px}.ordered-tools .secondary{height:38px;font-size:12px}.ordered-section-head{margin-top:28px;gap:12px}.ordered-section-head h2{font-size:19px}.ordered-status{max-width:36%}.ordered-save{font-size:10px}.ordered-version{font-size:10px;margin-bottom:16px}.ordered-list{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.ordered-word{padding:13px 12px 16px;border-radius:11px}.ordered-word-head{margin-bottom:8px;gap:4px}.ordered-mark.secondary{font-size:10px;min-width:0;padding:3px 0 3px 4px}.ordered-content b{font-size:20px}.ordered-content small{font-size:10px}.ordered-content p{font-size:12px;line-height:1.65;margin-top:10px}.ordered-content details{margin-top:14px;font-size:11px}.ordered-quiz{padding:24px 20px}.ordered-quiz h2{font-size:29px;margin:25px 0}.ordered-quiz .ordered-actions{gap:10px}.ordered-quiz .ordered-actions button{flex:1;min-width:0;padding:0 10px;font-size:12px}.ordered-quiz .answers{grid-template-columns:1fr}.ordered-quiz .answer{min-height:54px}}
@media(max-width:350px){.ordered-list{grid-template-columns:1fr}.ordered-toolbar{grid-template-columns:1fr}.ordered-toolbar label:first-child{grid-column:auto}}
@media print{body{background:white!important}.sidebar,.topbar,.ordered-panel,.ordered-actions,.ordered-status,.ordered-mark,#orderedVersion,.page:not(#ordered){display:none!important}#appView,main,#ordered{display:block!important;margin:0!important;padding:0!important;width:100%!important}.ordered-section-head{margin-top:0;margin-bottom:15px}#orderedList{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px}#orderedQuiz{display:none!important}.ordered-word{border:1px solid #bbb;box-shadow:none;padding:8px 12px}.ordered-word-head{margin-bottom:4px}.ordered-content details summary{font-size:0;border-bottom:1px solid #999;height:25px}.ordered-content details p{display:none}.ordered-content b{font-size:16px}.ordered-content p{font-size:12px}}

.ordered-view-tabs{display:inline-flex;gap:4px;padding:5px;margin-top:26px;background:#e9eef5;border-radius:11px}
.ordered-view-tabs button{padding:10px 20px;border:0;background:transparent;border-radius:8px;color:#687a90;font-size:13px}
.ordered-view-tabs button.active{background:white;color:#244a77;box-shadow:0 2px 6px #13233b0b;font-weight:600}
.ordered-view-tabs+.ordered-section-head{margin-top:24px}
.worksheet-note{font-size:12px;line-height:1.8;color:#7b879a;margin:0 0 16px}
.worksheet-scroll{overflow-x:auto;border:1px solid #d8e0ea;border-radius:12px;background:white}
.worksheet-table{width:100%;min-width:840px;border-collapse:collapse;table-layout:fixed;color:#26384f}
.worksheet-table col{width:33.333%}.worksheet-table caption{text-align:left;padding:18px 20px;background:#fff;font-size:13px;color:#7b879a;border-bottom:1px solid #d8e0ea}
.worksheet-table th{padding:18px 14px;background:#f8fafc;font-size:14px;font-weight:500;line-height:1.6;text-align:center;border-right:1px solid #d8e0ea;border-bottom:1px solid #d8e0ea}
.worksheet-table th span{display:block;font-size:19px;font-weight:650;margin-top:5px;color:#244a77}
.worksheet-table td{padding:16px 18px;vertical-align:top;border-right:1px solid #d8e0ea;border-bottom:1px solid #edf0f4;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.worksheet-table td:last-child,.worksheet-table th:last-child{border-right:0}.worksheet-table tr:last-child td{border-bottom:0}
.worksheet-cell{display:flex;gap:10px}.worksheet-number{color:#8b98a9;min-width:24px;font-size:12px;padding-top:2px;font-variant-numeric:tabular-nums}
.worksheet-cell>div{min-width:0;flex:1}.worksheet-cell strong{font-size:17px;font-weight:600}.worksheet-phonetic{font-size:12px;color:#8c99ab}.worksheet-meaning{margin-top:4px;color:#66778c}
.worksheet-answer input{display:block;width:100%;height:32px;margin-top:8px;padding:2px 4px;border:0;border-bottom:1px solid #aebccb;background:transparent;border-radius:0;outline:none;color:#244a77;font-size:15px}.worksheet-answer input:focus{background:#f3f7fc;border-color:#3678ed}
.worksheet-print-line{display:none}
@media(max-width:720px){.ordered-view-tabs{display:flex}.ordered-view-tabs button{flex:1;padding:11px 8px}.worksheet-note{font-size:11px}.worksheet-scroll{border-radius:10px}}
@media print{.ordered-view-tabs,.worksheet-note{display:none!important}body.ordered-sheet-view #orderedList{display:none!important}body.ordered-sheet-view #orderedWorksheet{display:block!important}.worksheet-scroll{overflow:visible;border-radius:0;border:1px solid #888}.worksheet-table{min-width:0;width:100%;font-size:10pt}.worksheet-table thead{display:table-header-group}.worksheet-table tr{break-inside:avoid}.worksheet-table td{padding:7px 9px;font-size:10pt;border-color:#aaa}.worksheet-table th{padding:8px;font-size:10pt;background:white}.worksheet-table th span{font-size:12pt}.worksheet-cell{gap:5px}.worksheet-cell strong{font-size:11pt}.worksheet-phonetic{font-size:9pt}.worksheet-number{min-width:15px;font-size:9pt}.worksheet-answer input{display:none}.worksheet-print-line{display:block;height:26px;border-bottom:1px solid #666}.worksheet-table caption{padding:8px}.ordered-sheet-view .ordered-section-head,.ordered-sheet-view #orderedVersion{display:none!important}}

[hidden]{display:none!important}
.numbered-pagination{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:18px 0;padding:10px 0;scroll-margin-top:20px}
.pagination-summary{color:#8a97a8;font-size:12px;white-space:nowrap}.numbered-pagination nav{display:flex;align-items:center;gap:6px}.numbered-pagination button{border:1px solid #e1e7ef;background:white;border-radius:8px;min-width:34px;height:34px;padding:0 9px;color:#667991;font-size:13px}.numbered-pagination button[aria-current="page"]{background:#244a77;border-color:#244a77;color:white}.numbered-pagination button:disabled{opacity:.35;cursor:default}.numbered-pagination nav>span{color:#9ba6b4;font-size:12px}.worksheet-table td{padding:10px 14px}.worksheet-table th{padding:12px 14px}
@media(max-width:720px){.numbered-pagination{gap:8px;flex-wrap:wrap}.numbered-pagination button{min-width:30px;height:32px;padding:0 7px}.numbered-pagination nav{gap:4px}}
@media print{.numbered-pagination{display:none!important}}

@media screen and (min-width:901px){.ordered-sheet-view main{padding-top:24px;padding-bottom:24px}.ordered-sheet-view .topbar{margin-bottom:18px}.ordered-sheet-view .ordered-toolbar{padding:16px 22px;gap:20px}.ordered-sheet-view .ordered-toolbar label{gap:7px}.ordered-sheet-view .ordered-toolbar select{height:38px}.ordered-sheet-view .ordered-panel-footer{padding:12px 22px}.ordered-sheet-view .ordered-tools button{height:38px}.ordered-sheet-view .ordered-view-tabs{margin-top:16px}.ordered-sheet-view .ordered-view-tabs+.ordered-section-head{margin-top:16px}.ordered-sheet-view .ordered-version{margin:6px 0 8px}.ordered-sheet-view .numbered-pagination{margin:8px 0;padding:5px 0}.ordered-sheet-view .worksheet-note{margin-bottom:10px;font-size:11px}.ordered-sheet-view .worksheet-table caption{display:none}.ordered-sheet-view .worksheet-table th{padding:8px 12px;font-size:12px}.ordered-sheet-view .worksheet-table th span{font-size:16px;margin-top:2px}.ordered-sheet-view .worksheet-table td{padding:8px 14px;line-height:1.5}.ordered-sheet-view .worksheet-answer input{height:24px;margin-top:4px}.ordered-sheet-view .worksheet-meaning{margin-top:3px}}
