.collection-center{max-width:1200px;margin:0 auto}.collection-storage{border:1px solid var(--line);border-radius:999px;padding:.55rem .9rem;color:var(--muted);font-size:.85rem;white-space:nowrap}.collection-tabs{overflow-x:auto}.collection-pane{margin-top:1rem}.collection-toolbar,.collection-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1.5rem}.collection-filters{display:flex;flex-wrap:wrap;gap:.8rem;flex:1}.collection-filters .field{min-width:130px;flex:1}.collection-filters select,.collection-filters input{width:100%}.collection-table-wrap{overflow:auto}.collection-table{border-collapse:collapse;width:100%;font-size:.9rem;min-width:900px}.collection-table th,.collection-table td{padding:1rem .65rem;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}.collection-table th{color:var(--muted);font-size:.8rem;white-space:nowrap}.collection-table th button{font:inherit;background:none;border:0;color:inherit;cursor:pointer;padding:0}.collection-table td:nth-child(2){min-width:230px;max-width:370px}.collection-table td:nth-child(6),.collection-table td:nth-child(7){max-width:170px;overflow-wrap:anywhere}.collection-edit-button{color:var(--accent);background:none;border:1px solid var(--line);border-radius:9px;padding:7px;cursor:pointer}.collection-edit-button svg{display:block;width:18px;height:18px}.collection-badge{display:inline-block;font-size:.7rem;color:var(--accent);margin-top:.35rem}.collection-actions{display:flex;gap:.8rem;align-items:center;flex-wrap:wrap}.collection-dialog{color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:1.5rem;width:min(660px,calc(100vw - 32px));max-height:90dvh;overflow:auto;box-shadow:0 24px 80px #0007}.collection-dialog::backdrop{background:#0009;backdrop-filter:blur(5px)}.collection-dialog header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.collection-dialog header h2{margin:0;font-size:1.25rem}.collection-dialog textarea{width:100%;box-sizing:border-box}.collection-dialog fieldset{border:1px solid var(--line);border-radius:12px;padding:1rem;margin:1rem 0}.collection-reasons{display:flex;gap:.6rem;flex-wrap:wrap}.collection-reasons label,.collect-reason-menu label{display:flex;align-items:center;gap:.4rem;font-size:.9rem}.collection-reasons input,.collect-reason-menu input{width:17px;height:17px;min-height:0;margin:0;padding:0}.collection-delete{color:#ef8c8c!important}.collection-dialog [role=status]{color:var(--accent)}.collection-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:1rem;margin:1.3rem 0}.collection-metric{padding:1.25rem;border:1px solid var(--line);border-radius:14px;background:var(--bg);display:flex;flex-direction:column;gap:.4rem}.collection-metric strong{font-size:1.7rem;color:var(--accent);font-weight:500}.collection-metric span,.collection-metric small{color:var(--muted)}.collection-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin:2rem 0}.collection-bar{margin:1rem 0}.collection-bar button{font:inherit;background:none;border:0;color:var(--text);padding:0;cursor:pointer;text-align:left;width:100%;display:flex;justify-content:space-between;gap:1rem}.collection-bar-track{height:10px;background:var(--line);border-radius:8px;overflow:hidden;margin:.6rem 0}.collection-bar-fill{height:100%;background:var(--accent);border-radius:8px}.collection-bar small{color:var(--muted)}.collection-level-row{display:grid;grid-template-columns:70px 1fr 85px;gap:.5rem;align-items:center;margin:.7rem 0;font-size:.85rem}.collection-level-row progress{width:100%;height:12px;accent-color:var(--accent)}.collection-level-row[data-band=middle] progress{accent-color:#4788ca}.collection-level-row[data-band=hard] progress{accent-color:#de747e}.collection-recommendation{border:1px solid var(--line);padding:1rem;border-radius:14px;margin-top:1.2rem}.collection-empty{padding:2.5rem;text-align:center;color:var(--muted)}.collect-reason-menu{position:relative;margin-left:auto;font-size:.85rem}.collect-reason-menu summary{cursor:pointer;list-style:none;padding:.4rem .75rem;border:1px solid var(--line);border-radius:8px;color:var(--accent)}.collect-reason-menu summary:after{content:' \25BE'}.collect-reason-menu>div{position:absolute;z-index:20;right:0;top:calc(100% + 5px);background:var(--surface);padding:1rem;display:grid;gap:.6rem;width:230px;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 35px #0006}.collection-sync-notice{position:fixed;bottom:1rem;left:50%;transform:translateX(-50%);z-index:200;background:var(--surface);border:1px solid var(--line);padding:1rem;border-radius:12px;max-width:90vw}.collection-sync-notice button{margin-left:1rem}.collection-stacked{display:flex;height:20px;border-radius:6px;overflow:hidden;background:var(--line);margin:.6rem 0}.collection-stacked span{height:100%}.collection-legend{display:flex;gap:1rem;font-size:.8rem;color:var(--muted);flex-wrap:wrap}.collection-legend i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:4px}
@media(max-width:760px){.collection-toolbar,.collection-section-title,.collection-center .member-center-heading{align-items:stretch;flex-direction:column}.collection-stats-grid{grid-template-columns:1fr;gap:1rem}.collection-dialog{padding:1rem}.collect-reason-menu>div{right:-30px}.collection-storage{align-self:flex-start}.collection-toolbar>.button{align-self:flex-end}}

.collection-category-picker{min-width:0}.collection-filters .field:has(.collection-category-picker){flex-basis:230px}.collection-center .public-category-row{min-width:0}.collection-center .category-picker-summary{max-width:100%}

.quiz-unit-heading:has(.collect-reason-menu){flex-wrap:wrap}
.quiz-unit-heading .collect-reason-menu{margin-right:0;flex:0 1 auto;min-width:0}
.collect-reason-menu summary{white-space:nowrap}
.collect-reason-menu>div{transform-origin:top center}

.collect-reason-menu.has-saved-reasons>summary{background:color-mix(in srgb,var(--accent) 18%,var(--surface));border-color:var(--accent);font-weight:650;box-shadow:inset 3px 0 0 var(--accent)}

#collection-edit-save{margin-left:auto}#collection-edit-save:disabled{opacity:.4;cursor:not-allowed}.collection-table mjx-container,#collection-edit-summary mjx-container{max-width:100%;overflow-x:auto;overflow-y:hidden}

.collection-tab-bar{display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--line);margin-bottom:20px}
.collection-tab-bar>.collection-tabs{flex:none;margin:0;border-bottom:0}
.collection-tab-status{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;flex:1;min-width:0;padding:8px 0}
.collection-tab-status>#collection-status{margin:0;overflow-wrap:anywhere}
@media(max-width:760px){.collection-tab-bar{display:block;border-bottom:0;margin-bottom:16px}.collection-tab-bar>.collection-tabs{border-bottom:1px solid var(--line)}.collection-tab-status{padding:12px 0 0}}

.collection-tab-status{opacity:1;transition:opacity .35s ease}.collection-tab-status.is-fading{opacity:0}.collection-tab-status[hidden]{display:none}@media(prefers-reduced-motion:reduce){.collection-tab-status{transition:none}}

.collection-item-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;overflow-wrap:anywhere}

.collection-filters .collection-min-wrong{flex:0 0 auto;min-width:0;width:max-content}.collection-min-wrong>span{white-space:nowrap}.collection-min-wrong>input{box-sizing:border-box;width:0;min-width:100%;padding-inline:4px}#collection-edit-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;overflow-wrap:normal;word-break:normal;line-height:1.6}#collection-edit-summary .collection-summary-word{display:inline-block;white-space:nowrap}

.collection-filters .collection-auto-select{flex:0 0 auto;min-width:0;align-items:flex-start}.collection-filters .collection-auto-select select{width:auto}

.collection-summary-button{display:block;position:relative;width:100%;border:0;background:none;color:inherit;font:inherit;line-height:1.6;text-align:left;padding:0;cursor:pointer}.collection-summary-button:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:4px}.collection-summary-button:hover{color:var(--accent)}.collection-summary-button .collection-item-summary{overflow-wrap:normal;word-break:normal}.collection-summary-more{position:absolute;right:0;bottom:0;display:inline-flex;gap:4px;align-items:center;padding-left:12px;background:var(--surface);color:var(--accent);height:1.6em}.collection-summary-more[hidden]{display:none}.collection-summary-more svg{width:22px;height:22px;border:0;border-radius:6px;padding:2px;box-sizing:border-box}.collection-summary-button:hover .collection-summary-more svg{background:var(--glow)}
.collection-preview-dialog{width:min(880px,calc(100vw - 32px));height:min(720px,85dvh);max-height:85dvh;box-sizing:border-box;padding:0;overflow:hidden}.collection-preview-dialog[open]{display:flex;flex-direction:column}.collection-preview-dialog .collection-preview-heading{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;flex:none;padding:10px 20px;margin:0;border-bottom:1px solid var(--line)}.collection-preview-heading h2{text-align:center;margin:0;font-size:1.1rem}#collection-preview-ids{display:flex;flex-wrap:wrap;gap:6px;font-size:.8rem;color:var(--accent)}#collection-preview-ids span{border:1px solid var(--line);border-radius:6px;padding:4px 7px}.collection-preview-stats{flex:none;padding:12px 20px;line-height:1.7;font-size:.85rem;color:var(--muted);border-bottom:1px solid var(--line);background:var(--bg)}.collection-preview-content{flex:1;min-height:0;overflow:auto;padding:20px;overscroll-behavior:contain}.collection-preview-part+ .collection-preview-part{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.collection-preview-part h3{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:.95rem;margin:0 0 14px;color:var(--muted)}.collection-preview-tag{padding:3px 8px;border-radius:999px;background:var(--glow);color:var(--accent);font-size:.75rem}.collection-preview-content img{max-width:100%;height:auto}.collection-preview-content .quiz-rich{line-height:1.8;overflow-wrap:anywhere}.collection-preview-content mjx-container{max-width:100%;overflow-x:auto;overflow-y:hidden}@media(max-width:520px){.collection-preview-dialog .collection-preview-heading{padding:12px;gap:8px}.collection-preview-stats{padding:10px 12px}.collection-preview-content{padding:16px 12px}.collection-preview-heading h2{font-size:1rem}}
.collection-preview-categories{flex:none;min-width:0;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.6;font-size:.8rem;color:var(--muted);padding:8px 20px;border-bottom:1px solid var(--line)}@media(max-width:520px){.collection-preview-categories{padding:8px 12px}}

.collection-preview-category-label{font-weight:600;color:var(--text);margin-right:8px}

.collect-reason-menu{width:max-content;max-width:100%}.collect-reason-menu>div{width:max-content;box-sizing:border-box;padding:.7rem 1.4rem;gap:.55rem;overflow:visible}.collect-reason-menu>div label{white-space:nowrap;overflow:visible}.collect-reason-menu>div label>span{overflow:visible;text-overflow:clip;white-space:nowrap}.collect-reason-menu>div label>input{flex:none}.collect-reason-menu .collect-apply-following{border-top:1px solid var(--line);padding-top:.65rem;margin-top:.15rem}.collect-reason-menu [role=status]{overflow-wrap:anywhere;font-size:.8rem}
.collection-peek-answer{display:inline-flex;align-items:center;gap:7px;margin-top:12px;padding:7px 12px;border:1px solid var(--line);border-radius:999px;background:var(--glow);color:var(--accent);font:inherit;font-size:.8rem;cursor:pointer;transition:background .15s,transform .15s}.collection-peek-answer svg{width:21px;height:21px;flex:none}.collection-peek-answer:hover{background:color-mix(in srgb,var(--accent) 18%,var(--surface));transform:translateY(-1px)}.collection-peek-answer:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.collection-preview-answer{margin-top:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--glow)}.collection-answer-label{display:block;font-size:.75rem;color:var(--accent);font-weight:600;margin-bottom:5px}.collection-preview-answer .quiz-rich>:first-child{margin-top:0}.collection-preview-answer .quiz-rich>:last-child{margin-bottom:0}@media(prefers-reduced-motion:reduce){.collection-peek-answer{transition:none}.collection-peek-answer:hover{transform:none}}
.collection-solution-label{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}

.collection-achievement-hero{display:flex;align-items:center;gap:22px;padding:26px;border:1px solid color-mix(in srgb,var(--accent) 40%,var(--line));border-radius:18px;background:linear-gradient(120deg,var(--glow),var(--surface));margin-bottom:26px}.collection-achievement-icon{display:grid;place-items:center;width:70px;height:70px;flex:none;border-radius:20px;background:var(--surface);color:var(--accent);box-shadow:0 5px 18px #0001}.collection-achievement-icon svg{width:44px;height:44px}.collection-achievement-hero h3{font-size:1.3rem;margin:5px 0}.collection-achievement-hero p{margin:0}.collection-achievement-eyebrow{font-size:.8rem;color:var(--accent);letter-spacing:.06em}.collection-achievement-total{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto;white-space:nowrap;color:var(--accent)}.collection-achievement-total strong{font-size:3rem;line-height:1.2;font-weight:650}.collection-achievement-total span{font-size:.9rem}.collection-strength-section{margin:26px 0}.collection-strength-section>h3{font-size:1rem;margin-bottom:12px}.collection-strength-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.collection-strength-card{padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--bg)}.collection-strength-card-head{display:flex;align-items:center;gap:10px}.collection-strength-card h4{font-size:1rem;margin:0}.collection-strength-rank{display:grid;place-items:center;flex:none;width:30px;height:30px;font-size:.75rem;color:var(--accent);background:var(--glow);border-radius:9px}.collection-strength-count{display:flex;align-items:baseline;gap:8px;margin:18px 0 10px}.collection-strength-count strong{font-size:2.1rem;line-height:1;color:var(--accent)}.collection-strength-count span{font-size:.8rem;color:var(--muted)}.collection-strength-card progress{display:block;appearance:none;width:100%;height:9px;border:0;border-radius:999px;overflow:hidden;background:var(--line);accent-color:var(--accent)}.collection-strength-card progress::-webkit-progress-bar{background:var(--line);border-radius:999px}.collection-strength-card progress::-webkit-progress-value{background:linear-gradient(90deg,#66b8a6,var(--accent));border-radius:999px}.collection-strength-card progress::-moz-progress-bar{background:var(--accent)}.collection-strength-card .hint{font-size:.75rem;margin:10px 0 0}.collection-strength-empty{padding:20px;border:1px dashed var(--line);border-radius:14px;color:var(--muted);margin:0}@media(max-width:600px){.collection-achievement-hero{flex-wrap:wrap;padding:20px;gap:14px}.collection-achievement-icon{width:50px;height:50px;border-radius:14px}.collection-achievement-icon svg{width:34px;height:34px}.collection-achievement-hero h3{font-size:1.1rem}.collection-achievement-total{flex-direction:row;align-items:baseline;gap:10px;width:100%;margin-left:0}.collection-achievement-total strong{font-size:2.5rem}.collection-strength-grid{grid-template-columns:1fr}}
.collection-category-tail{display:block;min-width:0;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;direction:rtl;text-align:left}.collection-category-tail bdi{direction:ltr}.collection-bar button>strong{flex:none}#collection-level-title{display:flex;min-width:0;gap:4px;align-items:baseline}.collection-difficulty-suffix{flex:none}
.collection-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.collection-stats-grid>section{min-width:0}@media(max-width:760px){.collection-stats-grid{grid-template-columns:1fr}}

.collection-bar button{display:block;box-sizing:border-box;padding:12px;border:1px solid transparent;border-radius:12px;transition:background .18s,border-color .18s,box-shadow .18s}.collection-bar-heading{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;min-width:0}.collection-bar-heading>strong{flex:none}.collection-bar-track,.collection-bar-fill{display:block}.collection-bar button[aria-pressed=true]{background:var(--glow);border-color:color-mix(in srgb,var(--accent) 45%,var(--line));box-shadow:inset 3px 0 0 var(--accent)}.collection-bar button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.collection-bar button:active{background:color-mix(in srgb,var(--accent) 16%,var(--surface))}@media(hover:hover){.collection-bar button:hover{background:color-mix(in srgb,var(--accent) 10%,var(--surface));border-color:var(--accent);box-shadow:0 4px 14px #0002}}@media(prefers-reduced-motion:reduce){.collection-bar button{transition:none}}
.collection-analysis-section{margin:28px 0;border-top:1px solid var(--line);padding-top:22px}.collection-analysis-section>h3{font-size:1rem}.collection-chart-scroll{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain}.collection-learning-chart{display:block;width:100%;min-width:600px;max-height:320px;color:var(--muted)}.collection-chart-grid{stroke:var(--line);stroke-dasharray:4 4}.collection-chart-axis{fill:var(--muted);font:11px sans-serif}.collection-chart-line{stroke:var(--accent);stroke-width:3;stroke-linejoin:round;stroke-linecap:round}.collection-chart-dot{fill:var(--accent);stroke:var(--surface);stroke-width:2}.collection-chart-dot:focus{outline:none;stroke:var(--text);stroke-width:4}.collection-chart-volume{fill:#4788ca}.collection-analysis-data{font-size:.85rem;margin:16px 0}.collection-analysis-data summary{cursor:pointer;color:var(--accent)}.collection-analysis-data table{border-collapse:collapse;width:100%;margin-top:12px}.collection-analysis-data td,.collection-analysis-data th{padding:8px;text-align:left;border-bottom:1px solid var(--line)}.collection-heatmap-table{width:100%;min-width:560px;border-collapse:separate;border-spacing:6px;table-layout:fixed}.collection-heatmap-table th{font-weight:500;font-size:.8rem;text-align:left;padding:5px}.collection-heatmap-table th:first-child{width:35%}.collection-heatmap-table td{text-align:center}.collection-heat-cell{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;padding:12px 7px;border:1px solid var(--line);border-radius:10px;background:color-mix(in srgb,#de747e calc(var(--heat)*100%),var(--surface));color:var(--text);font:inherit;cursor:pointer}.collection-heat-cell strong{font-size:1.1rem}.collection-heat-cell span,.collection-heat-cell small{font-size:.72rem}.collection-heat-cell small{color:var(--muted)}.collection-heat-cell:hover{border-color:var(--accent)}.collection-heat-cell:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.collection-heat-cell[data-sample=small]{border-style:dashed}.collection-breakthrough-summary{display:flex;gap:14px;align-items:baseline;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--glow);margin-bottom:14px}.collection-breakthrough-summary strong{font-size:1.8rem;color:var(--accent)}.collection-breakthrough-summary span{color:var(--muted);font-size:.85rem}.collection-breakthrough-card{display:flex;align-items:center;flex-wrap:wrap;gap:12px;width:100%;padding:14px;margin:8px 0;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:12px;text-align:left;font:inherit;cursor:pointer}.collection-breakthrough-card:hover,.collection-breakthrough-card:focus-visible{border-color:var(--accent);outline:0;background:var(--glow)}.collection-breakthrough-star{color:var(--accent);font-size:1.4rem}.collection-breakthrough-card>span:not(.collection-breakthrough-star){font-size:.8rem;color:var(--muted)}.collection-breakthrough-card small{margin-left:auto;color:var(--muted)}@media(max-width:600px){.collection-breakthrough-summary{flex-wrap:wrap}.collection-breakthrough-card small{margin-left:0}}
.collection-stats-grid{row-gap:12px}.collection-stats-grid>section:first-child{display:contents}.collection-weakness-heading{grid-column:1;grid-row:1}.collection-weakness-heading h3{margin-top:0}.collection-weakness-heading p{margin-bottom:0}#collection-weakness{grid-column:1;grid-row:2;min-width:0}#collection-weakness .collection-bar{margin:0 0 12px}#collection-weakness .collection-bar:last-child{margin-bottom:0}.collection-stats-grid>.collection-difficulty-panel{grid-column:2;grid-row:2;display:flex;flex-direction:column;min-width:0}.collection-difficulty-panel #collection-level-title{margin:0 0 10px;line-height:1.4}.collection-difficulty-panel .collection-stacked{height:14px;margin:4px 0 8px}.collection-difficulty-panel .collection-legend{font-size:.75rem;gap:8px}.collection-difficulty-panel .collection-level-row{font-size:.78rem;line-height:1.3;margin:5px 0;grid-template-columns:62px minmax(0,1fr) 82px}.collection-difficulty-panel .collection-level-row progress{height:9px}.collection-difficulty-panel #collection-recommend{display:flex;flex-direction:column;justify-content:flex-end;flex:1;margin-top:10px}.collection-difficulty-panel .collection-recommendation{margin:0;padding:12px}.collection-difficulty-panel .collection-recommendation p{margin:0 0 8px;font-size:.85rem}.collection-difficulty-panel .collection-recommendation .button{min-height:36px;padding:8px 12px;font-size:.8rem}.collection-heatmap-table{border-spacing:3px}.collection-heat-cell{padding:5px 7px;gap:1px;line-height:1.2}.collection-heat-cell strong{font-size:1rem}.collection-heat-cell span,.collection-heat-cell small{font-size:.7rem}@media(max-width:760px){.collection-stats-grid>.collection-difficulty-panel{grid-column:1;grid-row:3;margin-top:12px}.collection-difficulty-panel #collection-recommend{flex:none}}
.collection-difficulty-panel #collection-difficulty{display:flex;flex-direction:column;flex:1;min-height:0;justify-content:flex-start;gap:10px}.collection-difficulty-panel .collection-stacked{height:30px;flex:none;margin:4px 0 0}.collection-difficulty-panel .collection-legend{font-size:.82rem;gap:12px;line-height:1.6}.collection-difficulty-panel .collection-level-row{font-size:.85rem;line-height:1.5;margin:0;padding:6px 0;gap:8px;grid-template-columns:66px minmax(0,1fr) 92px}.collection-difficulty-panel .collection-level-row progress{height:20px}.collection-difficulty-panel #collection-recommend{flex:1;justify-content:flex-end;margin-top:14px}.collection-difficulty-panel .collection-recommendation{padding:18px}.collection-difficulty-panel .collection-recommendation p{font-size:.9rem;margin-bottom:12px}.collection-difficulty-panel .collection-recommendation .button{display:flex;align-items:center;justify-content:center;min-height:54px;box-sizing:border-box;padding:14px 18px;font-size:.95rem;width:100%;text-align:center}.collection-difficulty-panel:has(.collection-level-row:nth-child(n+7)) #collection-difficulty{gap:5px}.collection-difficulty-panel:has(.collection-level-row:nth-child(n+7)) .collection-level-row{padding:2px 0}.collection-difficulty-panel:has(.collection-level-row:nth-child(n+7)) .collection-level-row progress{height:14px}@media(max-width:760px){.collection-difficulty-panel #collection-difficulty,.collection-difficulty-panel #collection-recommend{flex:none}.collection-difficulty-panel .collection-level-row{grid-template-columns:60px minmax(0,1fr) 84px;font-size:.8rem}}
.collection-learning-chart{width:100%;height:180px;min-height:160px;max-height:none}.collection-chart-axis{font-size:14px}.collection-chart-line{stroke-width:3.5}.collection-chart-dot{r:7px;stroke-width:2.5}@media(max-width:600px){.collection-learning-chart{height:160px;min-height:160px}}
.collection-flash-retry{margin-left:16px;font-size:.85rem;vertical-align:middle}
/* Gentle moving highlights in the weakness statistics only. */
#collect-panel-stats .collection-bar-fill,
#collect-panel-stats .collection-stacked>span,
#collect-panel-stats .collection-heat-cell,
#collect-panel-stats .collection-level-meter{position:relative;overflow:hidden;isolation:isolate}
#collect-panel-stats .collection-bar-fill::after,
#collect-panel-stats .collection-stacked>span::after,
#collect-panel-stats .collection-heat-cell::after,
#collect-panel-stats .collection-level-shine::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 25%,#fff2 42%,#fff3 50%,#fff2 58%,transparent 75%);transform:translateX(-120%);animation:collection-flow-light 15s linear infinite}
#collect-panel-stats .collection-bar:nth-child(2n) .collection-bar-fill::after,
#collect-panel-stats .collection-heatmap-table tr:nth-child(2n) .collection-heat-cell::after{animation-delay:-1.3s}
#collect-panel-stats .collection-heatmap-table td:nth-child(3n) .collection-heat-cell::after{animation-delay:-2.6s}
#collect-panel-stats .collection-heat-cell>*{position:relative;z-index:1}
.collection-level-meter{display:block;height:12px;border-radius:6px}
.collection-level-meter progress{display:block;height:12px!important;margin:0}
.collection-level-shine{position:absolute;left:0;top:0;height:100%;border-radius:6px;overflow:hidden;pointer-events:none}
.collection-chart-shine{pointer-events:none}
@keyframes collection-flow-light{from{transform:translateX(-120%)}to{transform:translateX(120%)}}
/* Keep the requested decorative flow visible independently of layout motion preferences. */

/* Error rate: cool blue/teal to warm yellow/orange/red. */
.collection-heat-cell{background:var(--heat-color);color:var(--heat-ink);border-color:color-mix(in srgb,var(--heat-color) 65%,var(--text))}.collection-heat-cell small{color:inherit;opacity:.85}.collection-heat-scale{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:10px 3px 12px;color:var(--muted);font-size:.75rem}.collection-heat-scale-bar{display:block;width:180px;max-width:35vw;height:9px;border-radius:99px;background:linear-gradient(90deg,#2a5b99,#2d8b99,#edc457,#e5813a,#b83340)}

.collection-answer-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.collection-answer-heading .quiz-bug-link{display:inline-flex;color:var(--muted);padding:4px;border-radius:6px}.collection-answer-heading .quiz-bug-link:hover{color:var(--accent);background:var(--glow)}

.collection-preview-controls{display:flex;align-items:center;gap:10px;flex:none}#collection-preview-actions{display:inline-flex;align-items:center}#collection-preview-actions:empty{display:none}#collection-preview-actions .quiz-bug-link{display:inline-flex;align-items:center;justify-content:center;padding:4px;border-radius:6px;color:var(--muted)}#collection-preview-actions .quiz-bug-link:hover{color:var(--accent);background:var(--glow)}

/* Avoid field input sizing stretching notebook category rows. */
.collection-category-picker .category-picker-node input[type=checkbox]{min-height:0;height:16px;padding:0;margin:0}

.collection-breakthrough-controls{display:flex;justify-content:center;align-items:center;gap:12px;margin:8px 0 12px}.collection-breakthrough-expand{display:grid;place-items:center;width:40px;height:34px;border:0;border-radius:10px;background:var(--glow);color:var(--accent);cursor:pointer}.collection-breakthrough-expand:hover{background:color-mix(in srgb,var(--accent) 20%,var(--surface))}.collection-breakthrough-expand svg{width:22px;height:22px}

/* Compact breakthrough rows without scaling their text or symbols. */
.collection-breakthrough-card{padding:max(0px,calc(9px - .462rem)) 14px;margin:4px 0;row-gap:6px}

@media(max-width:760px){.collection-preview-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:min(calc(50dvh + 360px),92.5dvh);max-height:92.5dvh}}

.collection-strength-card-head h4{min-width:0;flex:1}.collection-stat-empty{display:flex;flex-direction:column;gap:10px;padding:18px;color:var(--muted)}.collection-stat-empty .collection-category-tail{flex:none;width:100%}





/* Align notebook headings with the first row of the browse pane. */
.collection-pane .collection-section-title{align-items:flex-start;margin-top:0}
.collection-pane>.member-kicker,.collection-section-title>div>.member-kicker{margin-top:0}
.collection-pane>h2,.collection-section-title>div>h2{font-size:1.2rem;font-weight:550;line-height:1.65;margin:0 0 14px}

/* Match the complete heading copy to the review pane, including nested text. */
.collection-pane .collection-section-title{margin-bottom:0}
.collection-pane>.member-kicker,.collection-section-title>div>.member-kicker{color:var(--muted);font-size:.87rem;font-weight:400;letter-spacing:normal;line-height:1.65;margin:0 0 1em}
.collection-pane>h2,.collection-section-title>div>h2{font-size:1.2rem;font-weight:550;letter-spacing:normal;line-height:1.65;margin:0 0 14px}
.collection-section-title>div>p:not(.member-kicker),.collection-pane>h2+p,.collection-pane>#collection-summary{color:var(--muted);font-size:.87rem;font-weight:400;letter-spacing:normal;line-height:1.65;margin:1em 0}

@media(max-width:760px){#collect-panel-strengths .collection-section-title>.field{flex-direction:row;flex-wrap:wrap;align-items:center;max-width:100%}#collect-panel-strengths .collection-section-title>.field>span{flex:none;white-space:nowrap}#collection-strength-months{width:auto;max-width:100%}}

.collection-heatmap-section{border-top:0;margin-top:0;padding-top:0}.collection-heatmap-section>h3{margin-top:0}

.collection-learning-section{border-top:0;margin-top:0;padding-top:0}.collection-learning-section>h3{margin-top:0}

/* Unified notebook editor and three-line note previews. */
.collection-note-button .collection-item-summary{white-space:pre-wrap}.collection-table td:nth-child(7){min-width:180px;max-width:260px}
.collection-preview-dialog [hidden]{display:none!important}.collection-preview-dialog .has-notebook-editor{display:flex;flex-wrap:wrap;gap:8px}.has-notebook-editor .collection-preview-controls{margin-left:auto}
.notebook-editor-bar,.notebook-editor-actions{display:flex;align-items:center;gap:6px}.notebook-editor-tabs{display:flex;gap:3px}.notebook-editor-tabs button{border:1px solid transparent;background:transparent;color:var(--muted);padding:8px 10px;border-radius:8px;white-space:nowrap;font:inherit;font-size:.85rem;cursor:pointer}.notebook-editor-tabs [aria-selected=true]{background:var(--glow);color:var(--accent);border-color:var(--accent)}
.notebook-icon,.collection-collapse-answer{display:grid;place-items:center;width:34px;height:34px;padding:6px;border:1px solid var(--line);background:transparent;color:var(--accent);border-radius:8px;cursor:pointer}.notebook-icon svg,.collection-collapse-answer svg{width:21px;height:21px}.notebook-icon:disabled{opacity:.3;cursor:default}.notebook-editor-panels{flex:1;min-height:0;overflow:auto;padding:20px;margin:0}.notebook-editor-panels .collection-reasons{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.notebook-editor-panels textarea{min-height:240px;resize:vertical}.notebook-editor-status{font-size:.85rem}
.notebook-doodle-tools{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-bottom:12px}.notebook-doodle-tools input[type=color]{width:38px;height:34px;padding:2px}.notebook-doodle-tools input[type=range]{width:85px;padding:0}.notebook-doodle-tools label{display:flex;align-items:center;gap:5px}.notebook-doodle-tools input[type=checkbox]{width:18px;height:18px;min-height:0}.notebook-doodle-tools .button{padding:7px 10px;font-size:.8rem}.notebook-doodle-frame{width:100%;background:#fff;border:1px solid var(--line);box-sizing:border-box;overflow:hidden}.notebook-doodle-frame canvas{touch-action:none}.collection-collapse-answer{margin-left:auto}.collection-answer-heading .quiz-bug-link{margin-left:0}
@media(max-width:620px){.notebook-editor-bar{flex:1 0 100%;flex-wrap:wrap;justify-content:space-between;order:2}.notebook-editor-tabs button{padding:8px;font-size:.8rem}.notebook-editor-panels{padding:16px 12px}.notebook-icon{width:32px;height:32px}}

/* Let editing panels use all available dialog space. */
.notebook-editor-panels .collection-reasons{flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px 20px}
.notebook-editor-panels[data-panel="2"],.notebook-editor-panels[data-panel="3"]{display:flex;flex-direction:column;overflow:hidden;padding:12px;box-sizing:border-box}
#notebook-notes-panel,#notebook-drawing-panel{display:flex;flex-direction:column;flex:1;min-height:0}
#notebook-notes-panel .field{flex:1;min-height:0;margin:0;gap:0}
#notebook-notes-panel textarea{flex:1;height:100%;min-height:0;resize:none;box-sizing:border-box}
.notebook-editor-status{flex:none;margin:8px 0 0}.notebook-editor-status:empty{display:none}
.notebook-doodle-tools{flex:none;margin-bottom:10px}.notebook-doodle-frame{flex:1;min-height:0;position:relative}
.notebook-doodle-frame .canvas-container{position:absolute!important;left:0;top:0}

.notebook-tool-group{display:flex;flex-wrap:wrap;gap:4px}.notebook-doodle-tools .notebook-tool-icon{display:grid;place-items:center;width:34px;height:34px;padding:6px}.notebook-tool-icon svg,.notebook-fill-tool svg{width:21px;height:21px}.notebook-tool-icon[aria-pressed=true]{background:var(--glow);border-color:var(--accent);color:var(--accent)}.notebook-tool-select{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;opacity:0;pointer-events:none}.notebook-doodle-tools .notebook-fill-tool{gap:4px}.collection-preview-part h3 .collection-child-bug{margin-left:auto;flex:none}

/* Stroke size/color preview and a tapered stroke-width control. */
.notebook-doodle-tools .notebook-stroke-picker,.notebook-doodle-tools .notebook-fill-picker{position:relative;display:grid;place-items:center;width:36px;height:36px;flex:none;cursor:pointer;border:1px solid var(--line);border-radius:8px;box-sizing:border-box}
.notebook-stroke-dot{width:var(--stroke-dot);height:var(--stroke-dot);border-radius:50%;background:var(--stroke-color);box-shadow:0 0 0 1px var(--text)}
.notebook-doodle-tools .notebook-stroke-picker input[type=color],.notebook-doodle-tools .notebook-fill-picker input[type=color]{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}
.notebook-stroke-picker:focus-within,.notebook-fill-picker:focus-within{outline:2px solid var(--accent);outline-offset:2px}.notebook-fill-picker svg{width:27px;height:27px;pointer-events:none;color:var(--text)}
.notebook-stroke-width{position:relative;width:calc(100px * 2 / 3);height:36px;display:flex;align-items:center;flex:none}
.notebook-doodle-tools .notebook-stroke-taper{position:absolute;left:7px;top:7px;width:calc(100% - 14px);height:22px;pointer-events:none;overflow:visible;fill:var(--stroke-color);stroke:var(--text);stroke-width:.8;stroke-linejoin:round}
.notebook-doodle-tools .notebook-stroke-width input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:36px;min-height:0;margin:0;padding:0;border:0;background:transparent;position:relative;cursor:ew-resize;box-shadow:none}
.notebook-stroke-width input::-webkit-slider-runnable-track{height:20px;background:transparent;border:0}.notebook-stroke-width input::-moz-range-track{height:20px;background:transparent;border:0}
.notebook-stroke-width input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:12px;height:28px;margin-top:-4px;border:2px solid var(--accent);border-radius:4px;background:var(--surface);box-shadow:0 1px 4px var(--shadow)}.notebook-stroke-width input::-moz-range-thumb{width:8px;height:24px;border:2px solid var(--accent);border-radius:4px;background:var(--surface)}
/* Compact, borderless drawing tools. */
.notebook-doodle-tools .notebook-tool-icon,.notebook-doodle-tools .notebook-tool-icon[aria-pressed=true],.notebook-doodle-tools .notebook-stroke-picker,.notebook-doodle-tools .notebook-fill-picker{border:0;box-shadow:none;background:transparent}
.notebook-doodle-tools .notebook-tool-icon[aria-pressed=true]{color:var(--accent);background:var(--glow)}
@media(max-width:620px){
 .notebook-doodle-tools{gap:3px;margin-bottom:8px}.notebook-tool-group{gap:2px}
 .notebook-doodle-tools .notebook-tool-icon{width:29px;height:29px;padding:5px}.notebook-tool-icon svg,.notebook-fill-tool svg{width:19px;height:19px}
 .notebook-doodle-tools .notebook-stroke-picker,.notebook-doodle-tools .notebook-fill-picker{width:30px;height:30px}.notebook-fill-picker svg{width:23px;height:23px}.notebook-stroke-dot{transform:scale(.85)}
 .notebook-stroke-width{width:calc(82px * 2 / 3);height:30px}.notebook-doodle-tools .notebook-stroke-width input[type=range]{height:30px}.notebook-doodle-tools .notebook-stroke-taper{top:6px;height:18px}
 .notebook-doodle-tools .notebook-fill-tool{gap:3px}.notebook-doodle-tools input[type=checkbox]{width:16px;height:16px}
}
.notebook-note-tools{display:flex;flex:none;flex-wrap:wrap;gap:5px;padding:6px;border:1px solid var(--line);border-radius:8px 8px 0 0;background:var(--surface)}.notebook-note-tools button,.notebook-note-tools select{width:auto;min-height:30px;padding:4px 9px;font:inherit;font-size:.85rem;border:1px solid var(--line);border-radius:4px;color:var(--text);background:var(--bg);cursor:pointer}.notebook-note-tools .ql-bold{font-weight:bold}.notebook-note-tools .ql-italic{font-style:italic}.notebook-note-tools .ql-underline{text-decoration:underline}.notebook-note-tools .ql-active{background:var(--accent);color:var(--bg)}.notebook-note-editor{display:flex;flex-direction:column;flex:1;min-height:0;border:1px solid var(--line);border-top:0;border-radius:0 0 8px 8px;background:var(--bg);color:var(--text);font-family:inherit;font-size:12pt}.notebook-note-editor .ql-editor{flex:1;min-height:0;height:100%;overflow:auto;line-height:1.5;padding:12px}.notebook-note-editor .ql-editor p{margin:0;color:inherit;line-height:inherit}


.notebook-note-tools button svg{display:block;width:19px;height:19px}.notebook-note-tools .ql-align,.notebook-note-tools .ql-clean{padding:5px 8px}

.notebook-color-popup{position:fixed;z-index:10;width:218px;box-sizing:border-box;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);box-shadow:0 8px 24px var(--shadow)}.notebook-color-heading{display:flex;align-items:center;gap:8px;margin-bottom:10px}.notebook-color-heading strong{font-size:.8rem;font-weight:500}.notebook-color-close{margin-left:auto;padding:0;width:22px;height:22px;border:0;background:transparent;color:var(--muted);font-size:20px;cursor:pointer}.notebook-color-palette{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.notebook-color-swatch{width:100%;height:28px;min-height:0;padding:0;border:1px solid var(--line);border-radius:5px;cursor:pointer}.notebook-color-swatch[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:1px}.notebook-color-hex{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:.75rem}.notebook-color-hex input{flex:1;min-width:0;width:100%;padding:5px;font:inherit}

.notebook-color-heading{position:relative;display:block;height:58px}.notebook-color-heading strong{position:absolute;left:calc(var(--color-title-x) - 11px);top:0;transform:translateX(-50%);white-space:nowrap}.notebook-color-close{position:absolute;right:0;top:-3px}.notebook-color-modes{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:center;gap:10px}.notebook-color-modes button{display:grid;place-items:center;width:28px;height:28px;border:0;padding:4px;background:transparent;color:var(--muted);cursor:pointer;border-radius:5px}.notebook-color-modes svg{width:20px;height:20px}.notebook-color-modes [aria-pressed=true]{color:var(--accent);background:var(--glow)}.notebook-color-spectrum{height:128px;position:relative;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent);touch-action:none;cursor:crosshair}.notebook-color-marker{position:absolute;width:10px;height:10px;border:2px solid #fff;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #333;pointer-events:none}.notebook-color-hue{width:100%;min-height:0;height:18px;padding:0;margin:10px 0 0;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red);border:0}.notebook-rgb-row{display:flex;align-items:center;gap:6px;margin:8px 0;font-size:.8rem}.notebook-rgb-row input[type=range]{width:110px;min-height:0;padding:0}.notebook-rgb-row input[type=number]{width:48px;min-width:0;padding:3px}
/* Color popup header and visible hue distribution. */
.notebook-color-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;height:auto;min-height:28px;margin-bottom:10px}
.notebook-color-heading strong{position:static;transform:none;flex:none}
.notebook-color-modes{position:static;display:flex;align-items:center;justify-content:center;flex:1;gap:6px}
.notebook-color-close{position:static;margin-left:0;flex:none}
.notebook-color-popup input.notebook-color-hue{appearance:none;-webkit-appearance:none;display:block;width:100%;height:24px;min-height:0;border:0;padding:0;background:transparent;cursor:ew-resize}
.notebook-color-hue::-webkit-slider-runnable-track{height:12px;border-radius:6px;border:1px solid var(--line);background:linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00)}
.notebook-color-hue::-moz-range-track{height:12px;border-radius:6px;border:1px solid var(--line);background:linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00)}
.notebook-color-hue::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:18px;height:18px;margin-top:-4px;border:2px solid #fff;border-radius:50%;background:transparent;box-shadow:0 0 0 1px #555}
.notebook-color-hue::-moz-range-thumb{width:14px;height:14px;border:2px solid #fff;border-radius:50%;background:transparent;box-shadow:0 0 0 1px #555}
/* One shared centerline, including the standard frontend close button. */
.notebook-color-popup .notebook-color-heading{display:grid;grid-template-columns:minmax(0,1fr) auto 34px;align-items:center;gap:4px;min-height:34px;height:34px}
.notebook-color-popup .notebook-color-heading strong{display:flex;align-items:center;position:static;height:34px;margin:0;line-height:1;transform:none}
.notebook-color-popup .notebook-color-modes{position:static;display:flex;align-items:center;height:34px;gap:4px}
.notebook-color-popup .notebook-color-close{position:static;align-self:center;right:auto;top:auto;transform:none}

.notebook-text-styles{display:flex;align-items:center;gap:4px}.notebook-text-styles[hidden]{display:none}.notebook-doodle-tools .notebook-text-style{width:29px;height:29px;min-height:0;padding:4px;border:0;background:transparent;font-size:16px}.notebook-text-style svg{display:block;width:22px;height:22px;pointer-events:none}.notebook-text-style[aria-pressed=true]{color:var(--accent);background:var(--glow)}

.notebook-drawing-select{max-width:100px;min-height:30px;padding:4px;font:inherit;font-size:.8rem}.notebook-doodle-tools .notebook-fill-tool{border:0;background:transparent;color:var(--accent);padding:6px;width:34px;height:34px;cursor:pointer}

.notebook-drawing-menu{position:relative;flex:none}.notebook-drawing-menu .notebook-drawing-trigger{list-style:none;display:flex;align-items:center;gap:2px;height:34px;padding:3px 5px;box-sizing:border-box;color:var(--accent);background:transparent;border:0;border-radius:6px;cursor:pointer}.notebook-drawing-menu .notebook-drawing-trigger::-webkit-details-marker{display:none}.notebook-drawing-menu .notebook-drawing-trigger svg{width:21px;height:21px}.notebook-drawing-menu .notebook-drawing-trigger svg+svg{width:13px;height:13px}.notebook-drawing-menu .notebook-drawing-trigger:hover,.notebook-drawing-menu[open] .notebook-drawing-trigger{background:var(--glow)}.notebook-drawing-choices{position:absolute;left:0;top:calc(100% + 5px);z-index:5;display:grid;grid-template-columns:repeat(3,34px);gap:5px;padding:7px;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:0 6px 20px var(--shadow)}.notebook-shape-choice{display:grid;place-items:center;width:34px;height:34px;min-height:0;padding:6px;border:0;border-radius:5px;background:transparent;color:var(--text);cursor:pointer}.notebook-shape-choice svg{width:22px;height:22px}.notebook-shape-choice:hover,.notebook-shape-choice[aria-pressed=true]{background:var(--glow);color:var(--accent)}.notebook-drawing-menu .notebook-drawing-trigger:focus-visible,.notebook-shape-choice:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media(max-width:620px){.notebook-drawing-menu .notebook-drawing-trigger{height:29px;padding:3px}.notebook-drawing-menu .notebook-drawing-trigger svg{width:19px;height:19px}}

.notebook-tool-group{align-items:center}.notebook-drawing-menu{height:34px;align-self:center;margin:0;padding:0;line-height:1}
.notebook-doodle-tools .notebook-drawing-trigger{display:flex;align-items:center;justify-content:center;height:34px;min-height:34px;padding:3px 5px;margin:0;border:0;background:transparent;color:var(--accent);line-height:1;box-sizing:border-box}
.notebook-drawing-choices{top:100%;margin:0;border-top-left-radius:0}.notebook-drawing-choices[hidden]{display:none}
@media(max-width:620px){.notebook-drawing-menu{height:29px}.notebook-doodle-tools .notebook-drawing-trigger{height:29px;min-height:29px;padding:3px}}
.notebook-doodle-tools .notebook-tool-icon{box-sizing:border-box;height:34px;min-height:34px;max-height:34px}
@media(max-width:620px){.notebook-doodle-tools .notebook-tool-icon{height:29px;min-height:29px;max-height:29px}}
.notebook-drawing-menu{display:flex;align-items:center}.notebook-doodle-tools .notebook-drawing-use{display:grid;place-items:center;box-sizing:border-box;width:32px;height:34px;min-height:34px;padding:5px;margin:0;border:0;border-radius:6px 0 0 6px;background:transparent;color:var(--accent);cursor:pointer}.notebook-drawing-use svg{width:21px;height:21px}.notebook-doodle-tools .notebook-drawing-trigger{width:18px;padding:2px;border-radius:0 6px 6px 0}.notebook-drawing-trigger svg{width:13px!important;height:13px!important}.notebook-drawing-use:hover,.notebook-drawing-use[aria-pressed=true]{background:var(--glow)}@media(max-width:620px){.notebook-doodle-tools .notebook-drawing-use{width:29px;height:29px;min-height:29px}.notebook-drawing-use svg{width:19px;height:19px}}

.notebook-doodle-tools .notebook-fill-picker svg{width:21px;height:21px}@media(max-width:620px){.notebook-doodle-tools .notebook-fill-picker svg{width:19px;height:19px}}

.notebook-color-popup{width:280px;max-width:calc(100vw - 24px)}
.notebook-rgb-row input[type=range]{appearance:none;-webkit-appearance:none;flex:1;width:0;height:24px;margin:0;background:transparent;border:0;accent-color:var(--rgb-channel)}
.notebook-rgb-row input[type=range]::-webkit-slider-runnable-track{height:10px;border-radius:5px;border:1px solid var(--line);background:linear-gradient(to right,#000,var(--rgb-channel))}
.notebook-rgb-row input[type=range]::-moz-range-track{height:10px;border-radius:5px;border:1px solid var(--line);background:linear-gradient(to right,#000,var(--rgb-channel))}
.notebook-rgb-row input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:18px;height:18px;margin-top:-5px;border:2px solid var(--surface);border-radius:50%;background:var(--rgb-channel);box-shadow:0 0 0 1px var(--rgb-channel)}
.notebook-rgb-row input[type=range]::-moz-range-thumb{width:14px;height:14px;border:2px solid var(--surface);border-radius:50%;background:var(--rgb-channel);box-shadow:0 0 0 1px var(--rgb-channel)}

.notebook-text-menu .notebook-text-styles{gap:0}.notebook-text-menu .notebook-drawing-choices{left:0}.notebook-text-menu>button{border-radius:6px 0 0 6px}.notebook-text-menu .notebook-text-style{width:34px;height:34px;padding:6px;border-radius:5px}.notebook-text-menu .notebook-text-style:hover{background:var(--glow);color:var(--accent)}

/* Drawing tools share the selection button's interaction feedback. */
body .notebook-doodle-tools :is(button,.notebook-stroke-picker,.notebook-fill-picker){background:transparent;border:0;box-shadow:none;transform:none;transition:background .2s,transform .2s;}
body .notebook-doodle-tools button:is(.notebook-tool-icon,.notebook-drawing-trigger,.notebook-drawing-use,.notebook-shape-choice,.notebook-text-style){color:var(--text);}
body .notebook-doodle-tools button:is(.notebook-tool-icon,.notebook-drawing-trigger,.notebook-drawing-use,.notebook-shape-choice,.notebook-text-style)[aria-pressed=true],body .notebook-doodle-tools [open]>.notebook-drawing-trigger{color:var(--accent);background:var(--glow);}
body .notebook-doodle-tools :is(button,.notebook-stroke-picker,.notebook-fill-picker):not(:disabled):not([aria-disabled=true]):is(:hover,:focus-visible){transform:translateY(-2px);box-shadow:0 4px 14px var(--shadow),0 0 14px var(--glow);}
body .notebook-doodle-tools button:is(.notebook-tool-icon,.notebook-drawing-trigger,.notebook-drawing-use,.notebook-shape-choice,.notebook-text-style):not(:disabled):not([aria-disabled=true]):is(:hover,:focus-visible){color:var(--text);background:transparent;}
body .notebook-doodle-tools button:is(.notebook-tool-icon,.notebook-drawing-trigger,.notebook-drawing-use,.notebook-shape-choice,.notebook-text-style)[aria-pressed=true]:not(:disabled):is(:hover,:focus-visible),body .notebook-doodle-tools [open]>.notebook-drawing-trigger:is(:hover,:focus-visible){color:var(--accent);background:var(--glow);}
body .notebook-doodle-tools :is(.notebook-stroke-picker,.notebook-fill-picker):focus-within{box-shadow:0 4px 14px var(--shadow),0 0 14px var(--glow);}
@media(prefers-reduced-motion:reduce){body .notebook-doodle-tools :is(button,.notebook-stroke-picker,.notebook-fill-picker):is(:hover,:focus-visible){transform:none;}}

.notebook-color-hex .notebook-color-eyedropper{display:grid;place-items:center;flex:none;width:28px;height:28px;min-height:0;padding:4px;border:0;border-radius:5px;color:var(--text);background:transparent;cursor:pointer}.notebook-color-eyedropper svg{width:20px;height:20px}.notebook-color-hex .notebook-color-eyedropper[hidden]{display:none}.notebook-color-eyedropper:disabled{opacity:.4;cursor:not-allowed}.notebook-color-eyedropper:not(:disabled):hover{background:var(--glow);color:var(--accent)}

#collection-export-form .field.is-disabled{opacity:.45}#collection-export-form .category-picker-body{max-width:min(520px,calc(100vw - 32px))}

.notebook-record-picker{max-width:140px;min-width:0;padding:6px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font:inherit;font-size:.8rem}

.notebook-editor-panels[data-panel="1"]{padding-top:12px}.notebook-editor-panels[data-panel="1"] fieldset:first-child{margin-top:0}
.collection-doodle-status{display:grid;place-items:center;width:36px;height:36px;padding:7px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--muted);cursor:pointer}.collection-doodle-status svg{width:22px;height:22px}.collection-doodle-status[data-has-doodle="true"]{color:var(--accent);background:var(--glow);border-color:var(--accent)}.collection-doodle-status[data-has-doodle="false"]{border-style:dashed}.collection-doodle-status:hover,.collection-doodle-status:focus-visible{color:var(--accent);border-color:var(--accent);outline-offset:3px}
@media(max-width:620px){.has-notebook-editor>.notebook-record-picker{flex:0 0 auto}}

.collection-doodle-status,.collection-doodle-status[data-has-doodle="true"],.collection-doodle-status[data-has-doodle="false"]{border:0}

.collection-export-action{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.collection-export-quota-hint{font-size:.85rem;color:var(--muted)}.collection-export-quota-hint[hidden]{display:none}#collection-export-form [type=submit]:disabled{opacity:.5;cursor:not-allowed}

.collection-export-action .monthly-usage-notice{margin:0;font-size:.85rem;white-space:nowrap}

.collection-preview-stats{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:20px;row-gap:4px}.collection-preview-first-date{flex:none;white-space:nowrap}.collection-preview-usage{margin-left:auto;text-align:right;max-width:100%}

.collection-preview-stats.has-wrapped-usage .collection-preview-usage{margin-left:0;text-align:left}

.collection-preview-usage{display:flex;flex-wrap:wrap;justify-content:flex-end;column-gap:1em;row-gap:0}.collection-preview-total,.collection-preview-personal{white-space:nowrap}.collection-preview-stats.has-wrapped-usage .collection-preview-usage{justify-content:flex-start}

/* Reduce notebook columns in priority order using the list's available width. */
#collect-panel-browse .collection-table-wrap{container-type:inline-size;container-name:notebook-list}
#collect-panel-browse .collection-table{width:100%;min-width:0}
#collect-panel-browse .collection-table td:nth-child(2){min-width:clamp(120px,26cqw,230px)}
#collect-panel-browse .collection-table td:nth-child(7){min-width:clamp(100px,23cqw,180px)}
@container notebook-list (max-width:1000px){#collect-panel-browse .collection-table :is(th,td):nth-child(3){display:none}}
@container notebook-list (max-width:900px){#collect-panel-browse .collection-table :is(th,td):nth-child(4){display:none}}
@container notebook-list (max-width:800px){#collect-panel-browse .collection-table :is(th,td):nth-child(5){display:none}}
@container notebook-list (max-width:700px){#collect-panel-browse .collection-table :is(th,td):nth-child(6){display:none}}

@container notebook-list (max-width:560px){#collect-panel-browse .collection-table :is(th,td):nth-child(7){display:none}}
@container notebook-list (max-width:440px){#collect-panel-browse .collection-table :is(th,td):nth-child(8){display:none}}
@container notebook-list (max-width:560px){
 #collect-panel-browse .collection-table{table-layout:fixed}
 #collect-panel-browse .collection-table :is(th,td){padding:.75rem .4rem;overflow-wrap:anywhere}
 #collect-panel-browse .collection-table :is(th,td):nth-child(1){width:70px}
 #collect-panel-browse .collection-table :is(th,td):nth-child(8){width:42px}
 #collect-panel-browse .collection-table td:nth-child(2){min-width:0;max-width:none}
 #collect-panel-browse .collection-summary-button .collection-item-summary{overflow-wrap:anywhere}
}

.collection-preview-total,.collection-preview-personal{display:inline-grid;grid-template-columns:max-content max-content max-content;column-gap:.3em;align-items:baseline}
.collection-preview-usage.has-wrapped-personal .collection-preview-personal{grid-template-columns:var(--stats-before-width) max-content max-content}
.collection-preview-usage.has-wrapped-personal .collection-preview-personal .collection-preview-before-slash{text-align:right}
.collection-preview-usage.has-wrapped-personal{justify-content:flex-start}

@media(max-width:620px){
 #collect-panel-browse{padding-left:calc(20px * 2 / 3);padding-right:calc(20px * 2 / 3)}
 #collect-panel-browse .collection-table tr>:first-child{padding-left:0}
 #collect-panel-browse .collection-table tr>:last-child{padding-right:0}
}
@container notebook-list (max-width:700px){#collect-panel-browse .collection-table tr>:nth-child(8){padding-right:0}}
@container notebook-list (max-width:440px){#collect-panel-browse .collection-table tr>:nth-child(2){padding-right:0}}

.collection-export-progress{font-size:.85rem;color:var(--accent);cursor:pointer;transition:opacity .4s}.collection-export-progress[hidden]{display:none}.collection-export-progress.is-fading{opacity:0}

.collection-export-more{grid-column:1/-1;display:flex;justify-content:center;align-items:center}.collection-export-expand{display:inline-flex;align-items:center;gap:.6rem;border:0;background:transparent;color:var(--accent);font:inherit;padding:.65rem 1rem;border-radius:8px}.collection-export-expand:hover{background:var(--glow)}.collection-export-expand svg{width:22px;height:22px}.collection-export-options{grid-column:1/-1;margin:0}.collection-export-more[hidden],.collection-export-options[hidden]{display:none}

.collection-export-action #collection-export-count{margin:0;font-size:.85rem}

.collection-add-title-row{display:flex;align-items:baseline;flex-wrap:wrap;gap:.4rem 1rem;min-width:0}#collection-add-form p[role=status]:empty{display:none}

/* Keep record selection beside the content tab on every screen. */

.notebook-editor-tabs{align-items:center;flex-wrap:wrap}
.notebook-record-id,.notebook-editor-tabs .notebook-record-picker{box-sizing:border-box;flex:none;width:auto;max-width:100%;margin:0 6px 0 2px;padding:7px 10px;border:1px solid var(--line);border-radius:6px;background:var(--glow);color:var(--accent);font:inherit;font-size:.85rem;line-height:1.5;white-space:nowrap}
.notebook-record-id{font-weight:600}
.collection-child-actions{display:inline-flex;align-items:center;gap:6px;margin-left:auto;flex:none}
.collection-child-actions .quiz-bug-link{display:inline-flex;align-items:center;justify-content:center;padding:4px;border-radius:6px;color:var(--muted)}
.collection-child-actions .quiz-bug-link:hover,.collection-child-actions .quiz-bug-link:focus-visible{color:var(--accent);background:var(--glow)}
.collection-child-actions .quiz-edit-link{color:var(--accent)}
@media(max-width:620px){.has-notebook-editor .notebook-editor-bar{min-width:0;gap:8px;justify-content:flex-start}.notebook-editor-tabs{min-width:0;gap:3px}.notebook-editor-tabs .notebook-record-picker,.notebook-record-id{padding:6px 8px;margin-right:2px}}

.collection-toolbar>.collection-share{flex:none;min-width:0}.collection-share select{width:auto;max-width:100%}.collection-share>span:first-child{white-space:nowrap}
@media(max-width:760px){.collection-toolbar>.collection-share{align-self:flex-end;max-width:100%}}

.notebook-editor-record:empty{display:none}
@media(max-width:820px){
 .collection-preview-dialog .has-notebook-editor{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 8px;align-items:center}
 .has-notebook-editor .notebook-editor-record{display:flex;align-items:center;gap:6px;min-width:0;grid-area:1/1}
 .notebook-editor-record #notebook-tab-0{border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-size:.8rem;padding:6px;white-space:nowrap;cursor:pointer}
 .notebook-editor-record #notebook-tab-0[aria-selected=true]{background:var(--glow);color:var(--accent);border-color:var(--accent)}
 .notebook-editor-record:has(.notebook-record-picker) .notebook-record-id{display:none}
 .notebook-editor-record .notebook-record-picker{max-width:none}
 .has-notebook-editor .collection-preview-controls{grid-area:1/2;margin:0;justify-self:end}
 .has-notebook-editor .notebook-editor-bar{grid-area:2/1/3/-1;display:flex;flex-wrap:nowrap;justify-content:space-between;width:100%;gap:4px}
 .has-notebook-editor .notebook-editor-tabs{flex-wrap:nowrap;gap:0}
 .has-notebook-editor .notebook-editor-actions{flex:none;gap:5px}
}

.notebook-note-editor .ql-editor sup,.notebook-note-editor .ql-editor sub{font-size:.75em;line-height:0;position:relative;vertical-align:baseline}
.notebook-note-editor .ql-editor sup{top:-.5em}
.notebook-note-editor .ql-editor sub{bottom:-.25em}
/* Quill can put an explicit point size directly on the script element. */
.notebook-note-editor .ql-editor sup[style*="font-size"],.notebook-note-editor .ql-editor sub[style*="font-size"]{zoom:.75}

.notebook-note-tools button:disabled{opacity:.35;cursor:default}
.notebook-note-editor .ql-editor table{border-collapse:collapse;width:100%;margin:.5em 0}
.notebook-note-editor .ql-editor td{border:1px solid var(--line);padding:4px 8px;min-width:3em}
.notebook-note-editor .ql-editor .ql-code-block-container{background:var(--surface);color:var(--text);padding:.5em;font-family:monospace}



/* Notebook header actions use the same feedback as its edit/report icons. */
.collection-preview-dialog .collection-preview-controls .qb-close{display:inline-flex;align-items:center;justify-content:center;padding:4px;border:0;border-radius:6px;box-shadow:none;background:transparent!important;color:var(--muted)!important;cursor:pointer}
.collection-preview-dialog .collection-preview-controls .qb-close:hover:not(:disabled),
.collection-preview-dialog .collection-preview-controls .qb-close:focus-visible,
.collection-preview-dialog .notebook-editor-tabs button:hover:not(:disabled),
.collection-preview-dialog .notebook-editor-tabs button:focus-visible,
.collection-preview-dialog .notebook-editor-record #notebook-tab-0:hover:not(:disabled),
.collection-preview-dialog .notebook-editor-record #notebook-tab-0:focus-visible,
.collection-preview-dialog .notebook-editor-actions .notebook-icon:hover:not(:disabled),
.collection-preview-dialog .notebook-editor-actions .notebook-icon:focus-visible{background:var(--glow);color:var(--accent)}
.collection-preview-dialog .notebook-editor-tabs button[aria-selected=true]:hover:not(:disabled),
.collection-preview-dialog .notebook-editor-record #notebook-tab-0[aria-selected=true]:hover:not(:disabled){background:var(--surface2)}

/* Override the shared close control's global important hover colors. */
body .collection-preview-dialog .collection-preview-controls .qb-close:hover,
body .collection-preview-dialog .collection-preview-controls .qb-close:focus-visible{background:var(--glow)!important;color:var(--accent)!important}

.collection-preview-navigation{display:inline-flex;align-items:center;gap:2px}
.collection-preview-navigation .quiz-bug-link{display:inline-flex;align-items:center;justify-content:center;padding:4px;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer}
.collection-preview-navigation .quiz-bug-link:hover:not(:disabled),.collection-preview-navigation .quiz-bug-link:focus-visible{color:var(--accent);background:var(--glow)}
.collection-preview-navigation .quiz-bug-link:disabled{opacity:.3;cursor:default}

/* Reserve stable header slots while navigating between notebook records. */
.collection-preview-dialog .has-notebook-editor{align-items:center}
.collection-preview-dialog .notebook-record-id,.collection-preview-dialog .notebook-record-picker{box-sizing:border-box;height:42px;display:inline-flex;align-items:center}
.collection-preview-dialog .notebook-record-id{width:9ch;min-width:9ch}
.collection-preview-dialog .notebook-record-picker{width:calc(10ch + 2.5rem);min-width:calc(10ch + 2.5rem);max-width:none;flex:none}
.collection-preview-dialog .collection-preview-controls{align-self:center}
@media(min-width:821px){.collection-preview-dialog .has-notebook-editor{display:grid;grid-template-columns:minmax(0,1fr) auto}.has-notebook-editor .notebook-editor-bar{grid-column:1;grid-row:1}.has-notebook-editor .collection-preview-controls{grid-column:2;grid-row:1}}

@media(min-width:821px){.has-notebook-editor .notebook-editor-bar,.has-notebook-editor .notebook-editor-tabs{flex-wrap:nowrap}}

.notebook-doodle-tools input.notebook-doodle-zoom{box-sizing:border-box;flex:0 0 90.6667px;width:90.6667px;min-width:90.6667px;height:34px;min-height:0;margin:0;padding:0;border:0;background:transparent;accent-color:var(--accent);cursor:ew-resize}
@media(max-width:620px){.notebook-doodle-tools input.notebook-doodle-zoom{flex-basis:77.3333px;width:77.3333px;min-width:77.3333px;height:29px}}

/* Wrap controls only when their actual content no longer fits. */
.collection-toolbar:has(>#collection-filters){display:block}
#collection-filters{align-items:flex-end}
#collection-filters>.collection-share{margin-left:auto;flex:0 0 auto;min-width:0}
.quiz-unit-heading:has(.collect-reason-menu){gap:.5rem;justify-content:flex-start}
.quiz-unit-heading:has(.collect-reason-menu)>h2{flex:0 0 auto;white-space:nowrap}
.quiz-unit-heading:has(.collect-reason-menu)>.collect-reason-menu{margin-left:auto}
.quiz-unit-heading:has(.collect-reason-menu)>.quiz-bug-link{flex:0 0 auto}

/* Keep late edit/report actions from moving the notebook navigation. */
.collection-preview-dialog .has-notebook-editor #collection-preview-actions{display:inline-flex;flex:none;width:calc(64px + .35rem);justify-content:flex-end}
@media(max-width:820px){.collection-preview-dialog .notebook-editor-record .notebook-record-picker{flex:none}.collection-preview-dialog .notebook-editor-record #notebook-tab-0{flex:none}}

.collection-child-pending>.quiz-rich{min-height:10rem}

.notebook-record-menu{position:fixed;z-index:10;box-sizing:border-box;overflow-y:auto;max-width:calc(100vw - 16px);padding:4px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--text);box-shadow:0 6px 20px #0003}.notebook-record-menu[hidden]{display:none}.notebook-record-menu>[role=option]{display:block;box-sizing:border-box;width:100%;border:0;border-radius:3px;padding:7px 10px;background:transparent;color:inherit;font:inherit;text-align:left;white-space:nowrap;cursor:pointer}.notebook-record-menu>[role=option]:hover,.notebook-record-menu>[role=option].is-active{background:var(--glow);color:var(--accent)}.notebook-record-menu>[role=option]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}

/* Center reason menus on the complete question heading, independent of side actions. */
.quiz-unit-heading:has(>.collect-reason-menu){display:grid;grid-template-columns:minmax(max-content,1fr) auto minmax(max-content,1fr);align-items:center;gap:.5rem}
.quiz-unit-heading:has(>.collect-reason-menu)>:is(h2,h3){grid-column:1;grid-row:1;justify-self:start;min-width:0;margin:0}
.quiz-unit-heading:has(>.collect-reason-menu)>.collect-reason-menu{grid-column:2;grid-row:1;justify-self:center;margin-inline:0}
.quiz-unit-heading:has(>.collect-reason-menu)>:is(.quiz-item-actions,.quiz-bug-link){grid-column:3;grid-row:1;justify-self:end}
.quiz-unit-heading>.collect-reason-menu>div{left:50%;right:auto;transform:translateX(-50%);max-width:calc(100vw - 32px)}
.quiz-unit-heading.is-reason-wrapped:has(>.collect-reason-menu){grid-template-columns:minmax(0,1fr) auto}
.quiz-unit-heading.is-reason-wrapped:has(>.collect-reason-menu)>.collect-reason-menu{grid-column:1/-1;grid-row:2}
.quiz-unit-heading.is-reason-wrapped:has(>.collect-reason-menu)>:is(.quiz-item-actions,.quiz-bug-link){grid-column:2}
@media(max-width:760px){
 .quiz-unit-heading:has(>.collect-reason-menu){gap:4px}
 .quiz-unit-heading>.quiz-item-actions{gap:0!important;margin-right:-5px}
 .quiz-unit-heading>.quiz-bug-link{margin-right:-5px}
 .quiz-unit-heading .quiz-bug-link{box-sizing:border-box;width:32px;min-height:36px;margin-left:0;padding:5px}
}

/* The toolbar swatch fits its button at every zoom. */
.notebook-stroke-dot{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:90%;max-height:90%;flex:none;box-shadow:none;pointer-events:none}

/* Mixed paint remains editable, without suggesting a representative object value. */
.qbank-paint-mixed{position:relative!important}
.qbank-paint-mixed:not(input)::after{content:"混合";position:absolute;inset:0;display:grid;place-items:center;font-size:11px;line-height:1;white-space:nowrap;pointer-events:none;color:inherit}
.qbank-paint-mixed>svg,.qbank-paint-mixed>.proof-color-dot,.qbank-paint-mixed>.notebook-stroke-dot{visibility:hidden}
.qbank-paint-mixed input[type=range]::-webkit-slider-thumb{opacity:0}
.qbank-paint-mixed input[type=range]::-moz-range-thumb{opacity:0}
