.exp-ms-wrap{width:100%}.exp-ms-control{position:relative;width:100%}.exp-ms-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.5rem;text-align:left;cursor:pointer;background-image:none;padding:.46rem .7rem;font-size:.83rem}.exp-ms-trigger:disabled{cursor:not-allowed;opacity:.6}.exp-ms-trigger-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.exp-ms-dropdown{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:40;background:var(--tt-bg-surface, #ffffff);border:1px solid var(--tt-border-strong);border-radius:var(--tt-radius-md);box-shadow:0 12px 28px #0f172a24;overflow:hidden}.exp-ms-search-row{position:relative;display:flex;align-items:center;padding:.45rem .55rem;border-bottom:1px solid var(--tt-border);background:var(--tt-bg-subtle, #f8fafc)}.exp-ms-search-icon{position:absolute;left:.95rem;color:var(--tt-text-muted);pointer-events:none}.exp-ms-search-input{width:100%;padding:.36rem 1.75rem .36rem 1.85rem!important;font-size:.82rem}.exp-ms-search-clear{position:absolute;right:.9rem;display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;color:var(--tt-text-muted);cursor:pointer;padding:.15rem}.exp-ms-options{max-height:260px;overflow-y:auto;padding:.3rem;display:flex;flex-direction:column;gap:.15rem}.exp-ms-option{display:flex;align-items:flex-start;gap:.5rem;width:100%;text-align:left;padding:.45rem .55rem;border:none;border-radius:6px;background:transparent;color:var(--tt-text-main, #0f172a);font-family:inherit;font-size:.83rem;line-height:1.38;cursor:pointer}.exp-ms-option:hover{background:var(--tt-bg-subtle, #f1f5f9)}.exp-ms-option.selected{background:var(--tt-primary-soft, rgba(37, 99, 235, .08));color:var(--tt-primary-text, #1d4ed8);font-weight:600}.exp-ms-checkbox{margin-top:.18rem;flex-shrink:0;accent-color:var(--tt-primary, #2563eb)}.exp-ms-option-text{flex:1;min-width:0}.exp-ms-empty{padding:.75rem;text-align:center;font-size:.82rem;color:var(--tt-text-muted)}.exp-ms-selected-list{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.4rem;margin-top:.48rem}.exp-ms-selected-chip{display:inline-flex;align-items:center;gap:.4rem;max-width:100%;padding:.3rem .55rem;border-radius:7px;background:var(--tt-primary-soft, #eff6ff);border:1px solid var(--tt-primary-border, #bfdbfe);color:var(--tt-primary-text, #1d4ed8);font-size:.79rem;line-height:1.35}.exp-ms-selected-chip.compact{padding:.2rem .5rem;font-size:.76rem;font-weight:700;white-space:nowrap}.exp-ms-selected-text{min-width:0}.exp-ms-remove-btn{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border:none;background:transparent;color:var(--tt-primary-text, #1d4ed8);cursor:pointer;padding:.1rem;border-radius:4px}.exp-ms-remove-btn:hover{background:var(--tt-primary-soft, rgba(37, 99, 235, .14))}.exp-ms-clear-all-btn{align-self:center;border:1px solid var(--tt-border-strong);background:var(--tt-bg-surface, #ffffff);color:var(--tt-text-main, #0f172a);font-family:inherit;font-size:.78rem;font-weight:700;padding:.3rem .65rem;border-radius:7px;cursor:pointer}.exp-ms-clear-all-btn:hover{background:var(--tt-danger-soft, #fef2f2);border-color:var(--tt-danger, #fca5a5);color:var(--tt-danger, #b91c1c)}.sm-page{min-height:100vh;background:var(--tt-bg-page);color:var(--tt-text-main)}.sm-header{padding:.9rem 1.5rem;background:var(--tt-bg-dark);border-bottom:1px solid var(--tt-bg-dark-border);color:var(--tt-text-inverse);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem 1rem}.sm-header-title{margin:0;font-size:1.08rem;font-weight:700;display:flex;align-items:center;gap:.55rem}.sm-header-sub{font-size:.82rem;color:var(--tt-text-inverse-muted)}.sm-header-pill{background:#ffffff1f;color:var(--tt-text-inverse);padding:.3rem .7rem;border-radius:999px;font-size:.8rem;font-weight:600}.sm-header-pill.muted{color:var(--tt-text-inverse-muted)}.sm-container{max-width:1140px;margin:0 auto;padding:1.25rem 1.25rem 2.5rem;display:grid;gap:1rem}.sm-setup-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,1fr);gap:1rem;align-items:start}.sm-panel{background:var(--tt-bg-surface);border:1px solid var(--tt-border);border-radius:12px;padding:1.1rem 1.2rem;display:grid;gap:.9rem;box-shadow:var(--tt-shadow-xs)}.sm-panel.sm-panel-invalid{border-color:var(--tt-danger)}.sm-required-badge{display:inline-flex;align-items:center;margin-left:.5rem;padding:.12rem .5rem;border-radius:999px;font-size:.7rem;font-weight:700;text-transform:none;letter-spacing:0;background:var(--tt-danger-soft);border:1px solid var(--tt-danger);color:var(--tt-danger)}.sm-validation-banner{display:flex;align-items:flex-start;gap:.5rem;padding:.6rem .75rem;border-radius:9px;background:var(--tt-danger-soft);border:1px solid var(--tt-danger);color:var(--tt-danger);font-size:.82rem;font-weight:600;line-height:1.4}.sm-validation-banner svg{flex-shrink:0;margin-top:.12rem}.sm-panel-title{margin:0;font-size:.84rem;text-transform:uppercase;letter-spacing:.04em;color:var(--tt-text-muted)}.sm-filter-bar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:.65rem;padding:.75rem .85rem;background:var(--tt-bg-subtle);border:1px solid var(--tt-border);border-radius:10px}.sm-filter-expectations{grid-column:1 / -1}.sm-group-box{background:var(--tt-bg-subtle);border:1px solid var(--tt-border);border-radius:10px;padding:.75rem .85rem;display:grid;gap:.5rem}.sm-group-head{display:flex;justify-content:space-between;align-items:center;gap:.5rem}.sm-group-head h3{margin:0;font-size:.84rem;color:var(--tt-text-main)}.sm-genre-list{display:grid;gap:.35rem}.sm-genre-item{display:flex;align-items:flex-start;justify-content:space-between;gap:.6rem;padding:.5rem .6rem;border-radius:8px;border:1px solid transparent;background:var(--tt-bg-surface);color:var(--tt-text-main);cursor:pointer;transition:background-color .14s ease,border-color .14s ease}.sm-genre-item:hover{border-color:var(--tt-border-strong)}.sm-genre-item input[type=checkbox]{margin:.16rem 0 0;width:15px;height:15px;flex-shrink:0;accent-color:var(--tt-primary);cursor:pointer}.sm-genre-item.selected{background:var(--tt-primary-soft);border-color:var(--tt-primary-border);color:var(--tt-text-main)}.sm-genre-tags{display:flex;gap:.3rem;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0}.sm-grade-tag{font-size:.7rem;font-weight:700;color:var(--tt-text-muted);background:var(--tt-bg-subtle);border:1px solid var(--tt-border);padding:.12rem .45rem;border-radius:5px;white-space:nowrap}.sm-exp-tag{font-size:.7rem;font-weight:700;color:var(--tt-primary-text);background:var(--tt-primary-soft);border:1px solid var(--tt-primary-border);padding:.12rem .45rem;border-radius:5px;white-space:nowrap}.sm-preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.sm-preset-card{text-align:left;padding:.65rem .75rem;border-radius:9px;border:1.5px solid var(--tt-border);background:var(--tt-bg-subtle);color:var(--tt-text-main);cursor:pointer;display:grid;gap:.2rem;transition:border-color .14s ease,background-color .14s ease}.sm-preset-card.active{border-color:var(--tt-primary);background:var(--tt-primary-soft);color:var(--tt-primary-text)}.sm-preset-card strong{font-size:.88rem;color:var(--tt-text-main)}.sm-preset-card.active strong{color:var(--tt-primary-text)}.sm-preset-card span{font-size:.74rem;color:var(--tt-text-muted);line-height:1.35}.sm-settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.85rem 1rem}.sm-setup-grid .sm-settings-grid{grid-template-columns:1fr;gap:.75rem}.sm-setting-field{display:grid;align-content:start;gap:.3rem;min-width:0}.sm-setting-field .tt-select{width:100%;min-width:0;max-width:100%;padding:.48rem .68rem;font-size:.84rem;text-overflow:ellipsis}.sm-setting-field label{font-size:.78rem;font-weight:700;color:var(--tt-text-body)}.sm-check-row{display:flex;align-items:center;gap:.55rem;font-size:.85rem;line-height:1.4;color:var(--tt-text-body);cursor:pointer}.sm-check-row input[type=checkbox]{margin:0;width:15px;height:15px;flex-shrink:0;accent-color:var(--tt-primary);cursor:pointer}.sm-share-banner{font-size:.82rem;padding:.55rem .7rem;border-radius:8px;background:var(--tt-primary-soft);border:1px solid var(--tt-primary-border);color:var(--tt-primary-text);word-break:break-all}.sm-share-head{display:flex;justify-content:space-between;align-items:center;gap:.5rem}.sm-share-row{display:flex;align-items:center;gap:.5rem}.sm-share-input{flex:1;min-width:0;font-size:.8rem;color:var(--tt-text-body);background:var(--tt-bg-subtle)}.sm-saved-badge{font-size:.72rem;font-weight:700;padding:.14rem .5rem;border-radius:999px;background:var(--tt-success-soft);color:var(--tt-success);border:1px solid var(--tt-success)}.sm-unsaved-badge{font-size:.72rem;font-weight:700;padding:.14rem .5rem;border-radius:999px;background:var(--tt-warning-soft);color:var(--tt-warning);border:1px solid var(--tt-warning)}.sm-unsaved-note{font-size:.78rem;color:var(--tt-warning);font-weight:600}.sm-summary-row{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.55rem .75rem;border-radius:8px;background:var(--tt-bg-subtle);border:1px solid var(--tt-border);font-size:.86rem}.sm-game .problem-card{background:var(--tt-bg-surface);border:1px solid var(--tt-border);border-radius:12px;overflow:hidden;box-shadow:var(--tt-shadow-sm)}.sm-game .problem-head{padding:1rem 1.25rem .75rem;border-bottom:1px solid var(--tt-border)}.sm-game .problem-head h2{margin:0 0 .25rem;font-size:1.12rem;color:var(--tt-text-main)}.sm-game .problem-head p{margin:0;color:var(--tt-text-muted);font-size:.9rem}.sm-game .steps-strip{display:flex;flex-wrap:wrap;gap:.35rem;padding:.7rem 1.25rem;background:var(--tt-bg-subtle);border-bottom:1px solid var(--tt-border)}.sm-game .step-pill{font-size:.74rem;font-weight:600;padding:.22rem .55rem;border-radius:999px;border:1px solid var(--tt-border-strong);background:var(--tt-bg-surface);color:var(--tt-text-muted)}.sm-game .step-pill.current{border-color:var(--tt-primary);background:var(--tt-primary-soft);color:var(--tt-primary-text)}.sm-game .step-pill.done{border-color:var(--tt-success);background:var(--tt-success-soft);color:var(--tt-success)}.sm-game .body-prompt{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:1.85rem;font-weight:800;letter-spacing:.03em;padding:.85rem 1.25rem .25rem;text-align:center;color:var(--tt-text-main)}.sm-game .work-area{position:relative;padding:1.75rem 1.25rem;display:flex;justify-content:center;align-items:flex-start;min-height:240px;overflow-x:auto;color:var(--tt-text-main)}.sm-game .overlay-svg{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none;overflow:visible;z-index:6}.sm-game .grid,.sm-game .alg-stack{position:relative;z-index:2}.sm-game .grid{display:inline-grid;gap:5px 7px;align-items:center;align-content:start;justify-items:center;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:1.6rem;color:var(--tt-text-main)}.sm-game .cell{min-width:1.6em;min-height:1.75em;display:flex;align-items:center;justify-content:center;gap:3px;white-space:nowrap;padding:0 2px}.sm-game .cell.carry,.sm-game .cell.borrow{font-size:1rem;min-height:2.35rem}.sm-game .cell.borrow input{color:var(--tt-warning)}.sm-game .cell.lbl{font-family:system-ui,sans-serif;font-size:.8rem;font-weight:800;color:var(--tt-text-muted);justify-self:end}.sm-game .cell.ul{border-bottom:2.5px solid var(--tt-text-main)}.sm-game .cell.ol{border-top:2.5px solid var(--tt-text-main)}.sm-game .cell.br{border-right:2.5px solid var(--tt-text-main);border-top-right-radius:12px;padding-right:6px}.sm-game .grid.grid-division{column-gap:0;row-gap:4px}.sm-game .grid.grid-division .cell{padding:0 5px;min-height:2.35rem;justify-self:stretch}.sm-game .grid.grid-division .cell.quot{align-items:flex-end;min-height:0;padding:0 5px 2px}.sm-game .grid.grid-division .cell.dividend{min-height:0;padding:6px 5px 3px}.sm-game .grid.grid-division .cell.dividend:first-child{padding-right:16px;justify-content:flex-end}.sm-game .grid.grid-division .cell.ul{padding-bottom:5px}.sm-game .cell.lb{position:relative}.sm-game .div-bracket{position:absolute;left:-12px;top:-2.5px;width:13px;height:calc(100% + 2.5px);pointer-events:none;overflow:visible;color:var(--tt-text-main)}.sm-game .alg-stack{display:flex;flex-direction:column;align-items:stretch;gap:.3rem;width:100%;max-width:520px}.sm-game .alg-arrow{text-align:center;font-size:.85rem;line-height:1;color:var(--tt-text-muted);font-weight:700;-webkit-user-select:none;user-select:none}.sm-game .alg-arrow.row-hidden{display:none}.sm-game .alg-card{border:1.5px solid var(--tt-border-strong);border-radius:10px;background:var(--tt-bg-subtle);padding:.55rem .9rem .65rem}.sm-game .alg-card.row-hidden{display:none}.sm-game .alg-card.active{border-color:var(--tt-primary-border);background:var(--tt-primary-soft);box-shadow:var(--tt-shadow-xs)}.sm-game .alg-card.done{border-color:var(--tt-success);background:var(--tt-success-soft)}.sm-game .alg-card-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.45rem}.sm-game .alg-card-title{font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--tt-text-muted)}.sm-game .alg-card.active .alg-card-title{color:var(--tt-primary-text)}.sm-game .alg-card.done .alg-card-title{color:var(--tt-success)}.sm-game .alg-card-status{font-size:.68rem;font-weight:700;padding:.1rem .45rem;border-radius:999px}.sm-game .alg-card.active .alg-card-status{background:var(--tt-primary-soft);color:var(--tt-primary-text);border:1px solid var(--tt-primary-border)}.sm-game .alg-card.done .alg-card-status{background:var(--tt-success-soft);color:var(--tt-success);border:1px solid var(--tt-success)}.sm-game .alg-card-body{display:grid;gap:4px 0;align-items:center;justify-items:center;justify-content:center;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:1.5rem;color:var(--tt-text-main)}.sm-game .alg-card-body .cell{min-height:2.2rem;padding:0 4px}.sm-game .alg-card-body .cell.ctx{font-size:1.28rem;color:var(--tt-text-body);padding-bottom:6px;margin-bottom:3px;border-bottom:1.5px dashed var(--tt-border-strong);justify-self:stretch}.sm-game .alg-card.active .alg-card-body .cell.ctx{border-bottom-color:var(--tt-primary-border)}.sm-game .alg-card.done .alg-card-body .cell.ctx{border-bottom-color:var(--tt-success);color:var(--tt-text-muted)}.sm-game .cell.area{border:1.5px solid var(--tt-border-strong);padding:.35rem .6rem;justify-self:stretch}.sm-game .cell.area.head{background:var(--tt-bg-subtle);font-weight:700}.sm-game .cell.area input{font-size:1.15rem}.sm-game .area-with-sum{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;gap:2.25rem}.sm-game .addition-panel{display:flex;flex-direction:column;align-items:center;padding:.75rem 1.1rem 1rem;border:1.5px solid var(--tt-border);border-radius:10px;background:var(--tt-bg-subtle)}.sm-game .addition-panel-title{font-family:system-ui,sans-serif;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--tt-text-muted);margin-bottom:.55rem}.sm-game .cell.barcell{min-height:.5em;justify-self:stretch}.sm-game .hr{grid-column:1 / -1;justify-self:stretch;border-top:3px solid var(--tt-text-main);margin:2px 0}.sm-game .fbar{width:100%;min-width:1.6em;border-top:2.5px solid var(--tt-text-main)}.sm-game .struck{text-decoration:line-through;text-decoration-thickness:2px;color:var(--tt-text-muted)!important}.sm-game .grid input,.sm-game .alg-card-body input{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:1.3rem;font-weight:600;text-align:center;height:2.25rem;min-width:2.25rem;border:2px solid var(--tt-border-strong);border-radius:6px;background:var(--tt-bg-surface);color:var(--tt-text-main);padding:0;outline:none;transition:all .12s ease}.sm-game .grid input.sup,.sm-game .alg-card-body input.sup{align-self:flex-start;font-size:.95rem;height:1.65rem}.sm-game .cell.row-hidden,.sm-game .hr.row-hidden{display:none}.sm-game .cell.cell-hidden{visibility:hidden}.sm-game .cell.row-reveal,.sm-game .alg-card.row-reveal{animation:sm-reveal .3s ease}@keyframes sm-reveal{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.sm-game .grid input:disabled,.sm-game .alg-card-body input:disabled{background:var(--tt-bg-subtle);border-style:dashed;border-color:var(--tt-border-strong);color:var(--tt-text-muted)}.sm-game .cell.future input{opacity:.55}.sm-game .cell.active input:not(.ok){border-color:var(--tt-primary-ink);box-shadow:0 0 0 3px var(--tt-focus-ring)}.sm-game .grid input.ok,.sm-game .alg-card-body input.ok{border-color:var(--tt-success);background:var(--tt-success-soft);color:var(--tt-success);font-weight:700}.sm-game .grid input.prefilled,.sm-game .alg-card-body input.prefilled{border-color:var(--tt-border-strong);background:var(--tt-bg-subtle);color:var(--tt-text-muted);font-style:italic;font-weight:600}.sm-game .grid input.bad,.sm-game .alg-card-body input.bad{border-color:var(--tt-danger);background:var(--tt-danger-soft);color:var(--tt-danger);animation:sm-shake .3s}@keyframes sm-shake{0%,to{transform:translate(0)}25%{transform:translate(-4px)}75%{transform:translate(4px)}}.sm-game .hint-box{margin:0 1.25rem 1rem;padding:.75rem .95rem;border-radius:8px;background:var(--tt-warning-soft);border:1px solid var(--tt-warning);color:var(--tt-text-main);font-size:.9rem;line-height:1.5}.sm-game .hint-box.muted{background:var(--tt-bg-subtle);border-color:var(--tt-border);color:var(--tt-text-muted)}.sm-game .hint-box.success{background:var(--tt-success-soft);border-color:var(--tt-success);color:var(--tt-success);font-weight:600}.sm-game .hint-title{font-weight:800;color:var(--tt-warning);margin-bottom:.15rem}.sm-game .controls{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem;padding:.85rem 1.25rem;border-top:1px solid var(--tt-border);background:var(--tt-bg-subtle)}.sm-game .controls .group{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.sm-game .meta{font-size:.82rem;color:var(--tt-text-muted);font-weight:600}@media(max-width:900px){.sm-setup-grid,.sm-filter-bar,.sm-preset-grid{grid-template-columns:1fr}}
