.container{position:relative;max-width:1100px;width:min(92vw,1100px);margin:24px auto;text-align:center}.session{display:flex;align-items:center;gap:8px;color:var(--text)}.session .status{font-weight:600;font-size:.95rem;color:var(--muted)}.session .btn{font-size:1rem}.session .user-session{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.session .user-avatar{object-fit:cover}.session .user-avatar,.session .user-avatar-fallback{width:32px;height:32px;border-radius:999px;border:1px solid hsl(var(--border))}.session .user-avatar-fallback{display:inline-flex;align-items:center;justify-content:center;font-weight:700;background:var(--panel);background:color-mix(in hsl,var(--panel) 70%,transparent)}.session .user-name{font-weight:600}.session .btn.ghost{background:transparent}.login{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;margin:16px auto;width:min(100%,320px)}.login p{margin:0;color:var(--muted);text-align:center}.login input{width:100%;padding:8px 12px;border:1px solid hsl(var(--border));border-radius:8px;background:var(--panel);color:var(--text)}.login .btn{width:100%}.error{margin:0;color:hsl(var(--magenta));font-weight:600;text-align:center}.buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:16px 0}.trade-container.quantity-view{gap:40px;margin:16px 0 24px}.trade-container.quantity-view.manual{margin-bottom:12px}.eval-side{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;width:auto;max-width:100%}.eval-side .slot-container{gap:8px;width:auto}.eval-side .slot-name{min-height:2.5em}.quantity-view .slot{cursor:default}.eval-side.selectable{cursor:pointer}.eval-side.selectable:focus-visible{outline:2px solid hsl(var(--electric-blue));outline-offset:6px}.eval-side.selectable .slots .slot{cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease}.eval-side.selectable.active .slots .slot{border-color:hsl(var(--electric-blue));box-shadow:0 0 0 2px hsl(var(--electric-blue)/.25)}.quantity-picker{display:flex;flex-direction:column;gap:6px;align-items:center;width:100%;max-width:520px;margin:0 auto}.quantity-picker .quantity-label,.quantity-picker label{font-weight:600;font-size:.9rem}.quantity-picker select{width:100%;padding:8px 12px;border-radius:8px;border:1px solid hsl(var(--border));background:var(--bg);color:var(--text);font-family:var(--font-fredoka,"Fredoka"),ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial}.quantity-buttons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:42px;gap:6px;width:100%}.quantity-options{display:contents}.quantity-reset{font-weight:600}.quantity-button{display:inline-flex;align-items:center;justify-content:center;width:100%;padding:0 4px;border-radius:10px;border:1px solid hsl(var(--border));background:var(--panel);color:var(--text);font-weight:600;font-size:.85rem;font-family:var(--font-fredoka,"Fredoka"),ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;transition:transform .12s ease,filter .2s ease,background .15s ease,color .15s ease,border-color .15s ease}.quantity-button:focus-visible:not(:disabled),.quantity-button:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.05)}.quantity-button.active{background:hsl(var(--magenta)/.16);color:var(--text);border-color:hsl(var(--magenta))}.quantity-button:disabled{opacity:.55;cursor:not-allowed}.quantity-view{gap:40px}.quantity-view .eval-side{width:auto;max-width:100%}.quantity-slots{display:grid;grid-template-columns:repeat(4,minmax(70px,120px));gap:12px;justify-content:center}.quantity-slots .slot{width:100%;max-width:120px;aspect-ratio:1;border-radius:8px}.quantity-slots .slot .slot-image{max-width:100%;max-height:100%}.quantity-slots .slot .plus{width:clamp(20px,18%,32px);height:clamp(20px,18%,32px)}.slot.filled{position:relative}.slot.partial .slot-image{opacity:.75}.slot-quantity{position:absolute;bottom:6px;right:6px;padding:3px 7px;border-radius:999px;background:hsl(var(--electric-blue)/.9);color:#fff;font-size:.7rem;font-weight:600;box-shadow:0 2px 6px hsl(var(--electric-blue)/.35)}.slot.overflow .slot-quantity{background:hsl(var(--magenta)/.9)}.quantity-picker select option{background:var(--panel);color:var(--text)}.quantity-picker select:disabled{opacity:.6;cursor:not-allowed}.comparison-note{font-size:.9rem;color:hsl(var(--text)/.85);margin-top:12px}.manual-note{margin-top:0}.btn-link{background:none;border:none;color:hsl(var(--electric-blue));cursor:pointer;font-weight:600;padding:0}.btn-link:focus-visible,.btn-link:hover{text-decoration:underline}.quantity-badge{position:absolute;bottom:8px;right:8px;padding:4px 8px;border-radius:999px;background:hsl(var(--electric-blue)/.9);color:#fff;font-size:.75rem;font-weight:600;box-shadow:0 2px 6px hsl(var(--electric-blue)/.35)}.history-list{list-style:none;padding:0;margin:0}.history-item{margin-bottom:24px}.history-item.selected{box-shadow:0 0 0 2px hsl(var(--magenta));border-radius:8px}.history-card{background:hsl(from var(--panel) h s l/1);border:1px solid hsl(var(--border));border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:16px;position:relative}.history-card.legacy{gap:12px}.history-delete{position:absolute;top:32px;right:12px;min-width:auto;padding:6px 12px}.history-saving{font-size:.9rem;color:hsl(var(--electric-blue));font-weight:600}.history-quantity-view{gap:24px;flex-wrap:wrap;justify-content:center;margin:0 0 24px}.history-side{flex:1 1 260px}.history-side h2{font-size:1.1rem}.history-side .slot-name{min-height:auto}.history-summary{display:flex;flex-direction:column;gap:16px;align-items:stretch}.history-summary.recheck-summary{justify-content:center;align-items:center}@media (min-width:768px){.history-summary{flex-direction:row;align-items:flex-start;justify-content:space-between}.history-summary.recheck-summary{flex-direction:column}}.history-result-group{display:flex;flex-direction:column;gap:4px}.history-outcome{align-items:flex-start;gap:6px}.history-result-columns{display:flex;flex-direction:column;gap:16px}@media (min-width:768px){.history-result-columns{flex-direction:row;align-items:center;gap:24px}}.history-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:hsl(var(--text)/.6)}.history-label,.history-value{font-weight:600}.history-result-group.updated .history-value{color:hsl(var(--electric-blue))}.history-date{font-size:.85rem;color:hsl(var(--text)/.7)}.history-meta{display:flex;flex-direction:column;gap:8px;align-items:flex-start}@media (min-width:768px){.history-meta{align-items:flex-end}}.history-timestamps{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:.85rem;color:hsl(var(--text)/.7)}.history-timestamps time{color:inherit}.history-user{font-size:.8rem;font-weight:600;color:hsl(var(--text)/.7)}.history-dot{color:hsl(var(--text)/.45)}.history-relative{font-size:.75rem;color:hsl(var(--text)/.55)}.history-legacy-note{font-size:.9rem;color:hsl(var(--text)/.75);margin:0}.history-actions{display:flex;justify-content:flex-start;gap:12px;flex-wrap:wrap;margin-top:16px}.history-actions .sort-dropdown{min-width:200px;max-width:320px}.history-actions .btn{min-width:160px}.retrain{margin:16px 0}.history{margin-top:40px}.history-controls,.recheck-actions{display:flex;justify-content:flex-end;margin-bottom:16px}.recheck-actions{gap:12px}.history-controls .search{width:100%;max-width:320px}.progress{margin-top:8px}.progress progress{width:100%;height:16px}.container>.categories{display:flex;gap:8px;justify-content:center;margin-bottom:16px}.container>.categories .btn{padding:6px 12px;font-family:var(--font-fredoka,"Fredoka"),sans-serif}.container>.categories .btn.active{background:var(--panel);box-shadow:inset 0 0 8px hsl(var(--magenta))}.table-wrap{overflow-x:auto;background:var(--panel);border:1px solid hsl(var(--border));border-radius:16px}.stats-section{display:flex;flex-direction:column;gap:16px;margin:24px 0}.stats-actions{display:flex;justify-content:flex-end}.stats-table-wrapper{overflow-x:auto}.stats-table{width:100%;border-collapse:collapse;background:var(--panel);border-radius:12px;overflow:hidden}.stats-table td,.stats-table th{padding:12px 16px;border-bottom:1px solid hsl(var(--border))}.stats-table thead th{font-weight:600;font-size:.9rem;color:var(--muted)}.stats-table td,.stats-table thead th:not(:first-child){text-align:right}.stats-table td{font-variant-numeric:tabular-nums}.stats-table tbody th{text-align:left;font-weight:600;color:var(--text)}.stats-table tbody tr:last-child td,.stats-table tbody tr:last-child th{border-bottom:none}.stats-empty{margin:0;color:var(--muted)}.value-table{width:100%;border-collapse:collapse;font-size:.95rem}.value-table td,.value-table th{padding:12px 16px;text-align:left}.value-table thead{background:var(--panel);background:color-mix(in hsl,var(--panel) 80%,transparent)}.value-table tbody tr{border-top:1px solid hsl(var(--border))}.value-table tbody tr:hover{background:var(--panel);background:color-mix(in hsl,var(--panel) 90%,transparent)}.value-table input{width:80px;padding:6px 8px;border:1px solid hsl(var(--border));border-radius:6px;background:var(--panel);color:var(--text)}.history-change{display:inline-flex;align-items:center;gap:4px;font-variant-numeric:tabular-nums;font-size:.75rem}.history-change svg{width:14px;height:14px}.change-up{color:#16a34a}.change-down{color:#dc2626}.pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:16px;flex-wrap:wrap}.pagination .btn[disabled]{opacity:.6;cursor:not-allowed}.recheck-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);display:flex;justify-content:center;align-items:center;overflow-y:auto;padding:calc(var(--nav-height, 72px) + 48px) 16px 24px;z-index:50}@media (min-width:768px){.recheck-overlay{padding-top:calc(var(--nav-height, 72px) + 56px)}}.recheck-panel{position:relative;padding:24px;border-radius:8px;border:1px solid hsl(var(--border));background:hsl(from var(--panel) h s l/1);box-shadow:0 4px 8px rgba(0,0,0,.15);max-height:calc(100vh - var(--nav-height, 72px) - 48px);overflow-y:auto}.recheck-panel .close-btn{position:absolute;top:8px;right:8px;background:none;border:none;color:var(--text);font-family:var(--font-fredoka,"Fredoka"),sans-serif;font-weight:700;font-size:1.25rem;line-height:1;cursor:pointer}.config label{display:block;margin:8px 0}.config input{margin-left:8px;padding:6px 8px;border:1px solid hsl(var(--border));border-radius:6px;background:var(--panel);color:var(--text)}.deferred-section{text-align:left}.deferred-actions{display:flex;justify-content:flex-end;margin-bottom:12px}.deferred-layout{display:flex;flex-direction:column;gap:16px}@media (min-width:900px){.deferred-layout{flex-direction:row;align-items:flex-start}}.deferred-list-column{flex:1 1 320px}.deferred-list{list-style:none;margin:0;padding:0;gap:12px}.deferred-item,.deferred-list{display:flex;flex-direction:column}.deferred-item{background:hsl(from var(--panel) h s l/1);border:1px solid hsl(var(--border));border-radius:12px;padding:12px;gap:10px}.deferred-item.selected{border-color:hsl(var(--magenta));box-shadow:0 0 0 2px hsl(var(--magenta)/.25)}.deferred-item-header{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.deferred-item-actions{display:flex;gap:8px}.deferred-meta{font-size:.85rem;color:hsl(var(--muted))}.deferred-bundles{display:flex;flex-direction:column;gap:12px}@media (min-width:600px){.deferred-bundles{flex-direction:row;gap:24px}}.deferred-bundle{flex:1 1 0;display:flex;flex-direction:column;gap:6px}.deferred-bundle h3{margin:0;font-size:1rem}.deferred-bundle ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}.deferred-bundle li{font-size:.9rem;color:hsl(var(--text)/.85)}.deferred-detail{flex:1 1 0;display:flex;flex-direction:column;gap:12px}.deferred-empty,.deferred-placeholder{text-align:center;color:hsl(var(--muted));margin:24px 0}.test-section{display:flex;flex-direction:column;gap:24px;margin-top:24px}.test-config{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;align-items:flex-end}.test-config-group{display:flex;flex-wrap:wrap;gap:12px}.test-config-group label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:.85rem;text-align:left}.test-config-group input[type=number]{padding:6px 10px;border:1px solid hsl(var(--border));border-radius:8px;background:var(--panel);color:var(--text);width:120px}.test-config-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.test-columns{display:grid;gap:24px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.test-side{background:color-mix(in hsl,var(--panel) 85%,transparent);border:1px solid hsl(var(--border));border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:16px;align-items:center}.test-side .side-title{margin:0;font-size:1.25rem}.test-totals{display:flex;flex-wrap:wrap;justify-content:center;gap:16px}.test-totals .metric{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:90px}.test-totals .metric span{font-size:.75rem;letter-spacing:.05em;text-transform:uppercase;color:hsl(var(--muted))}.test-totals .metric strong{font-size:1.15rem}.test-totals .metric-value{display:flex;align-items:center;gap:4px}.test-side-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.test-diff{text-align:center;font-weight:600}.slot-details{display:flex;flex-direction:column;gap:2px;font-size:.8rem;color:hsl(var(--muted));text-align:center}.slot-details span{display:inline-flex;justify-content:center;align-items:center;gap:4px}@media (max-width:640px){.test-columns{grid-template-columns:1fr}}