.quiz-weighting-page{--quiz-weighting-control-radius:.7rem;--quiz-weighting-inner-control-radius:.52rem;border:1px solid hsl(var(--foreground) / .12);background:linear-gradient(135deg, hsl(var(--card) / .94), hsl(var(--muted) / .78));box-shadow:0 22px 60px hsl(var(--foreground) / .08);border-radius:1rem;gap:1rem;margin-top:1.1rem;padding:1.15rem;display:grid}.quiz-weighting-header{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.quiz-weighting-toolbar{grid-template-columns:minmax(16rem,1fr) auto;align-items:center;gap:.75rem;display:grid}.quiz-weighting-header h2,.quiz-weighting-header p{margin:0}.quiz-weighting-header h2{font-size:1.35rem}.quiz-weighting-header p{color:var(--thai-muted-foreground);line-height:1.6}.quiz-weighting-toolbar-controls{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.45rem;display:flex}.quiz-weighting-header-actions{flex-wrap:nowrap;justify-content:flex-end;gap:.4rem;display:flex}.quiz-weighting-header-actions .quiz-secondary-button{border-radius:var(--quiz-weighting-control-radius);text-align:center;justify-content:center;align-items:center;gap:.35rem;min-width:auto;min-height:2.6rem;padding:.45rem .7rem;display:inline-flex}.quiz-weighting-header-actions .quiz-weighting-refresh-button{inline-size:2.6rem;min-width:2.6rem;padding-inline:0}:where(.quiz-weighting-header-actions .quiz-secondary-button,.quiz-weighting-layout-toggle button) svg{flex:none;display:block}.quiz-weighting-refresh-icon-wrap{transform-origin:50%;backface-visibility:hidden;will-change:transform;place-items:center;block-size:1rem;inline-size:1rem;display:inline-grid;transform:translateZ(0)}.quiz-weighting-refresh-icon-spinning{animation:.56s linear infinite quiz-weighting-refresh-spin}.quiz-weighting-refresh-icon{block-size:1rem;inline-size:1rem;display:block}@keyframes quiz-weighting-refresh-spin{to{transform:translateZ(0)rotate(360deg)}}.quiz-weighting-file-input{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.quiz-weighting-transfer-status{color:var(--thai-primary);margin:0;font-size:.9rem;font-weight:500;line-height:1.45}.quiz-weighting-search{min-width:min(24rem,100%);color:var(--thai-primary);font-weight:500;display:grid}.quiz-weighting-search input{border:1px solid hsl(var(--foreground) / .14);border-radius:var(--quiz-weighting-control-radius);background:hsl(var(--card) / .88);min-height:2.6rem;color:var(--thai-foreground);font:inherit;padding:.55rem .75rem;font-weight:400}.quiz-weighting-filters{flex-wrap:wrap;justify-content:flex-end;gap:.4rem;display:flex}.quiz-weighting-filters button,.quiz-weighting-layout-toggle button{border:1px solid hsl(var(--foreground) / .14);background:hsl(var(--card) / .84);min-height:2.6rem;color:var(--thai-primary);cursor:pointer;font:inherit;padding:.45rem .75rem;font-weight:500;transition:border-color .14s,background .14s,color .14s}.quiz-weighting-filters button{border-radius:var(--quiz-weighting-control-radius)}.quiz-weighting-layout-toggle{border:1px solid hsl(var(--foreground) / .14);border-radius:var(--quiz-weighting-control-radius);background:hsl(var(--card) / .84);align-items:center;min-height:2.6rem;padding:.18rem;display:inline-flex;overflow:hidden}.quiz-weighting-layout-toggle button{border-radius:var(--quiz-weighting-inner-control-radius);background:0 0;border:0;place-items:center;width:2.35rem;min-width:2.35rem;height:2.2rem;min-height:2.2rem;padding:0;line-height:0;display:inline-grid}.quiz-weighting-filters button[aria-pressed=true]{background:var(--thai-primary);color:var(--thai-primary-foreground)}.quiz-weighting-layout-toggle button[aria-pressed=true]{background:hsl(var(--primary) / .16);color:var(--thai-primary);box-shadow:inset 0 0 0 1px hsl(var(--primary) / .18)}.quiz-weighting-filters button:hover,.quiz-weighting-filters button:focus-visible,.quiz-weighting-layout-toggle button:hover,.quiz-weighting-layout-toggle button:focus-visible{border-color:hsl(var(--primary) / .32);background:hsl(var(--primary) / .1);color:var(--thai-primary);outline:none}.quiz-weighting-filters button[aria-pressed=true]:hover,.quiz-weighting-filters button[aria-pressed=true]:focus-visible{border-color:hsl(var(--primary) / .34);background:hsl(var(--primary) / .88);color:var(--thai-primary-foreground)}.quiz-weighting-table{isolation:isolate;scrollbar-gutter:stable;border:1px solid hsl(var(--primary) / .12);background:hsl(var(--card) / .62);border-radius:.9rem;position:relative}.quiz-weighting-table[data-table-layout=fixed]{overscroll-behavior:contain;scrollbar-color:hsl(var(--primary) / .42) transparent;scrollbar-width:thin;max-height:clamp(24rem,100vh - 20rem,42rem);overflow:auto}.quiz-weighting-table[data-table-layout=fixed]::-webkit-scrollbar{width:.45rem;height:.45rem}.quiz-weighting-table[data-table-layout=fixed]::-webkit-scrollbar-track{background:0 0}.quiz-weighting-table[data-table-layout=fixed]::-webkit-scrollbar-thumb{background:hsl(var(--primary) / .34);background-clip:padding-box;border:.12rem solid #0000;border-radius:999px}.quiz-weighting-table[data-table-layout=fixed]::-webkit-scrollbar-thumb:hover{background:hsl(var(--primary) / .52);background-clip:padding-box}.quiz-weighting-table[data-table-layout=fixed]::-webkit-scrollbar-corner{background:0 0}.quiz-weighting-table[data-table-layout=auto]{max-height:none;overflow:visible}.quiz-weighting-row{border-top:1px solid hsl(var(--foreground) / .08);min-width:58rem;min-height:4.5rem;color:var(--thai-foreground);grid-template-columns:minmax(5rem,.6fr) minmax(7rem,.75fr) minmax(7rem,.85fr) minmax(9rem,1fr) minmax(15rem,1.35fr) minmax(8rem,.8fr) 0;align-items:center;gap:.75rem;padding:.72rem .85rem;display:grid}.quiz-weighting-mobile-identity{display:none}.quiz-weighting-row:first-child{border-top:0}.quiz-weighting-row.quiz-weighting-row-head{border-top:0;border-bottom:1px solid hsl(var(--foreground) / .1);background:hsl(var(--muted) / .92);box-shadow:inset 0 -1px 0 hsl(var(--foreground) / .11), 0 1px 0 hsl(var(--foreground) / .08);color:var(--thai-muted-foreground);letter-spacing:.06em;text-transform:uppercase;font-size:.74rem;font-weight:500}.quiz-weighting-table .quiz-weighting-row.quiz-weighting-row-head{z-index:5;position:sticky;top:0}.quiz-weighting-column-header{min-width:0}.quiz-weighting-sort-button{max-width:100%;color:inherit;cursor:pointer;font:inherit;font-weight:inherit;letter-spacing:inherit;text-align:left;text-transform:inherit;background:0 0;border:0;align-items:center;gap:.35rem;padding:0;line-height:1.2;display:inline-flex}.quiz-weighting-sort-button span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.quiz-weighting-sort-button svg{opacity:.62;flex:none}.quiz-weighting-sort-button:hover,.quiz-weighting-sort-button:focus-visible,.quiz-weighting-sort-button[aria-pressed=true]{color:var(--thai-primary);outline:none}.quiz-weighting-sort-button:focus-visible{box-shadow:0 0 0 2px hsl(var(--primary) / .28);border-radius:.25rem}.quiz-weighting-thai{font-size:1.22rem;font-weight:500}.quiz-weighting-level-control{grid-template-columns:repeat(5,1.85rem) minmax(5.6rem,1fr);align-items:center;gap:.28rem;display:grid}.quiz-weighting-level-control button{border:1px solid hsl(var(--primary) / .14);background:hsl(var(--card) / .9);cursor:pointer;border-radius:999px;justify-content:center;align-items:center;width:1.85rem;height:1.85rem;transition:border-color .14s,background .14s;display:inline-flex}.quiz-weighting-level-control button span{background:hsl(var(--primary) / .24);border-radius:999px;width:.55rem;height:.55rem}.quiz-weighting-level-control button[aria-pressed=true]{border-color:var(--thai-primary);background:var(--thai-primary)}.quiz-weighting-level-control button:hover,.quiz-weighting-level-control button:focus-visible{border-color:hsl(var(--primary) / .38);background:hsl(var(--primary) / .12);outline:none}.quiz-weighting-level-control button[aria-pressed=true]:hover,.quiz-weighting-level-control button[aria-pressed=true]:focus-visible{border-color:hsl(var(--primary) / .5);background:hsl(var(--primary) / .88)}.quiz-weighting-level-control button[aria-pressed=true] span{background:var(--thai-background-raised)}.quiz-weighting-level-control strong{color:var(--thai-primary);font-size:.86rem;font-weight:500}.quiz-weighting-empty{color:var(--thai-muted-foreground);margin:0;padding:1rem;font-weight:500}@media (width<=1023.98px){.quiz-weighting-mobile-identity{z-index:3;box-sizing:content-box;background-color:hsl(var(--card));align-content:center;align-self:stretch;gap:.12rem;width:6.25rem;min-width:6.25rem;padding-left:.85rem;padding-right:1.5rem;display:grid;position:sticky;left:0}.quiz-weighting-mobile-identity>.quiz-weighting-word-listen{width:100%;min-width:0}.quiz-weighting-mobile-identity:after{content:"";pointer-events:none;background:#8080804d;width:1px;position:absolute;top:calc(-.72rem - 1px);bottom:-.72rem;right:.75rem}.quiz-weighting-row-head .quiz-weighting-mobile-identity{z-index:7;background-color:hsl(var(--muted))}.quiz-weighting-row-head .quiz-weighting-mobile-identity .quiz-weighting-sort-button{width:100%;min-width:0}.quiz-weighting-row-head .quiz-weighting-mobile-identity:after{top:-.72rem;bottom:calc(-.72rem - 1px)}.quiz-weighting-mobile-identity-thai{color:var(--thai-foreground);text-overflow:ellipsis;white-space:nowrap;font-size:1.16rem;font-weight:600;line-height:1.25;display:block;overflow:hidden}.quiz-weighting-mobile-identity-romanization{color:var(--thai-muted-foreground);text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;line-height:1.25;display:block;overflow:hidden}.quiz-weighting-thai,.quiz-weighting-romanization-cell{display:none}}.quiz-weighting-reset-dialog{z-index:61;border:1px solid hsl(var(--foreground) / .14);background:hsl(var(--card) / .98);width:min(30rem,100vw - 2rem);max-height:calc(100vh - 2rem);color:var(--thai-foreground);box-shadow:0 24px 80px #00000057, inset 0 1px 0 hsl(var(--foreground) / .05);border-radius:.9rem;gap:1.15rem;padding:1.35rem;display:grid;position:fixed;top:50%;left:50%;overflow:auto;transform:translate(-50%,-50%)}.quiz-weighting-reset-dialog-header{text-align:left;gap:.35rem;display:grid}.quiz-weighting-reset-dialog-header h2{color:var(--thai-foreground);font-size:1.1rem;font-weight:var(--thai-font-weight-heading);letter-spacing:0}.quiz-weighting-reset-dialog-header p{color:var(--thai-muted-foreground);font-size:.95rem;line-height:1.55}.quiz-weighting-reset-dialog-footer{flex-direction:row;justify-content:flex-end;align-items:center;gap:.6rem;margin-top:.15rem;display:flex}.quiz-weighting-reset-dialog-cancel,.quiz-weighting-reset-dialog-action{min-width:6.5rem;min-height:2.45rem;font-weight:var(--thai-font-weight-control);border-radius:.65rem;justify-content:center;align-items:center;padding:0 .9rem;line-height:1;display:inline-flex}.quiz-weighting-reset-dialog-cancel{border-color:hsl(var(--foreground) / .14);background:hsl(var(--card) / .72);color:var(--thai-foreground);margin-top:0}.quiz-weighting-reset-dialog-cancel:hover,.quiz-weighting-reset-dialog-cancel:focus-visible{border-color:hsl(var(--primary) / .3);background:hsl(var(--primary) / .1);color:var(--thai-primary)}.quiz-weighting-reset-dialog-action{border:1px solid hsl(var(--destructive) / .44);background:var(--thai-danger);color:hsl(var(--destructive-foreground));box-shadow:0 10px 24px hsl(var(--destructive) / .22)}.quiz-weighting-reset-dialog-action:hover,.quiz-weighting-reset-dialog-action:focus-visible{background:hsl(var(--destructive) / .9)}@media (width<=720px){.quiz-weighting-header,.quiz-weighting-toolbar{align-items:stretch}.quiz-weighting-toolbar{grid-template-columns:1fr}.quiz-weighting-toolbar-controls{justify-content:flex-start}.quiz-weighting-header-actions{flex-wrap:wrap;justify-content:flex-start;align-items:stretch}.quiz-weighting-header-actions .quiz-secondary-button{flex:auto}.quiz-weighting-header-actions .quiz-weighting-refresh-button{flex:0 0 2.6rem}.quiz-weighting-filters{justify-content:flex-start}.quiz-weighting-reset-dialog-footer{flex-direction:column-reverse;align-items:stretch}.quiz-weighting-reset-dialog-cancel,.quiz-weighting-reset-dialog-action{width:100%}}
