:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;--bg: #ffffff;--text-primary: #222;--text-secondary: #555;--muted-text: #888;--primary-color: #4f46e5;--primary-hover: #4338ca;--card-bg: #ffffff;--input-bg: #ffffff;--border-color: #e5e7eb}html[data-theme=dark]{--bg: #1a1a1a;--text-primary: #e5e7eb;--text-secondary: #b3b3b3;--muted-text: #9ca3af;--primary-color: #646cff;--primary-hover: #535bf2;--card-bg: #262626;--input-bg: #2a2a2a;--border-color: #404040}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;color:var(--text-primary);background:var(--bg)}#root{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}h1{font-size:clamp(1.75rem,3.2vw + 1rem,3.2rem);line-height:1.1;margin-bottom:.5em}h2{font-size:2em;margin-top:1.5em;margin-bottom:.5em}.app-container{text-align:left}.header-bar{display:flex;align-items:center;gap:1.25rem;margin-bottom:1rem}.logo{height:96px;width:auto}html[data-theme=dark] .logo{background:#fff;padding:8px;border-radius:8px}@media (max-width: 768px){.header-bar{flex-direction:column;align-items:center;text-align:center}.logo{height:72px}}.main-layout{display:grid;grid-template-columns:1fr 350px;gap:2rem;align-items:start}.main-content{flex:1;min-width:0}.sidebar{width:auto}@media (max-width: 1024px){.main-layout{grid-template-columns:1fr}.sidebar{width:100%}}.tabs{display:flex;gap:1rem;margin-bottom:2rem;border-bottom:2px solid var(--border-color)}.tab-button{padding:1rem 2rem;background:transparent;border:none;color:var(--text-secondary);cursor:pointer;font-size:1.1rem;font-weight:500;transition:all .3s;border-bottom:3px solid transparent}.tab-button:hover{color:var(--text-primary);background:transparent;transform:none;box-shadow:none}.tab-button.active{color:var(--primary-color);border-bottom-color:var(--primary-color);background:transparent}.card{background:var(--card-bg);border-radius:8px;padding:2rem;margin-bottom:2rem;box-shadow:0 2px 8px #0000001f;border:1px solid var(--border-color)}@media (max-width: 640px){#root,.card{padding:1rem}}.form-group{margin-bottom:1.5rem}label{display:block;margin-bottom:.5rem;font-weight:500;color:var(--text-primary)}input[type=text],input[type=number],select,textarea{width:100%;padding:.75rem;border:1px solid var(--border-color);border-radius:4px;background:var(--input-bg);color:var(--text-primary);font-size:1rem;transition:border-color .2s}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #646cff1a}button{padding:.75rem 1.5rem;background:var(--primary-color);color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:1rem;font-weight:500;transition:all .2s}button:hover{background:var(--primary-hover);transform:translateY(-1px);box-shadow:0 4px 8px #646cff4d}button:active{transform:translateY(0)}button:disabled{background:#555;cursor:not-allowed;transform:none;box-shadow:none;opacity:.6}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;background:transparent;color:var(--text-primary);border:1px solid var(--border-color);border-radius:8px;box-shadow:none;transform:none}.icon-button:hover{background:var(--input-bg);box-shadow:none;transform:none}.icon-button:active{transform:scale(.98)}.icon-button span{font-size:1.15rem;line-height:1}.button-group{display:flex;gap:1rem;margin-top:1rem;flex-wrap:wrap}.string-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1rem;margin-top:1rem}.string-item{background:var(--input-bg);border:2px solid var(--border-color);border-radius:8px;padding:1rem;cursor:pointer;transition:all .2s}.string-item:hover{border-color:var(--primary-color);transform:translateY(-2px);box-shadow:0 4px 12px #646cff33}.string-item.selected{border-color:var(--primary-color);background:#646cff1a;box-shadow:0 0 0 3px #646cff1a}.string-text{font-weight:600;margin-bottom:.5rem;word-break:break-word}.string-meta{font-size:.875rem;color:var(--text-secondary)}.results-container{margin-top:2rem}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:2rem}.stat-card{background:var(--input-bg);border-radius:8px;padding:1.5rem;text-align:center;border:1px solid var(--border-color)}.stat-label{font-size:.875rem;color:var(--text-secondary);margin-bottom:.5rem;text-transform:uppercase;letter-spacing:.5px;font-weight:600}.stat-value{font-size:2rem;font-weight:700;color:var(--text-primary)}.error-message{background:#ef444426;color:#fca5a5;border:1px solid rgba(239,68,68,.3);padding:1rem;border-radius:6px;margin-bottom:1rem}.success-message{background:#22c55e26;color:#86efac;border:1px solid rgba(34,197,94,.3);padding:1rem;border-radius:6px;margin-bottom:1rem}.loading{text-align:center;padding:2rem;color:var(--text-secondary);font-style:italic}.popular-string-button{padding:.5rem 1rem;background:var(--input-bg);border:1px solid var(--border-color);border-radius:20px;cursor:pointer;font-size:.9rem;transition:all .2s;color:var(--text-primary);font-weight:400}.popular-string-button:hover{border-color:var(--primary-color);background:#646cff1a;transform:translateY(-1px);box-shadow:0 2px 8px #646cff33}.popular-string-button.active{background:var(--primary-color);border-color:var(--primary-color);color:#fff}input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:40px;background:transparent;cursor:pointer;position:relative}input[type=range]::-webkit-slider-track{width:100%;height:8px;background:var(--border-color);border-radius:4px}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:24px;height:24px;border-radius:50%;background:var(--primary-color);cursor:pointer;border:3px solid white;box-shadow:0 2px 8px #0000004d;margin-top:-8px}input[type=range]::-moz-range-track{width:100%;height:8px;background:var(--border-color);border-radius:4px}input[type=range]::-moz-range-thumb{width:24px;height:24px;border-radius:50%;background:var(--primary-color);cursor:pointer;border:3px solid white;box-shadow:0 2px 8px #0000004d}input[type=range]:focus::-webkit-slider-thumb{box-shadow:0 0 0 3px #646cff4d}input[type=range]:focus::-moz-range-thumb{box-shadow:0 0 0 3px #646cff4d}input[type=range]:disabled{opacity:.5;cursor:not-allowed}.leaderboard-card{background:var(--card-bg);border-radius:8px;padding:1.5rem;box-shadow:0 2px 8px #0000001f;border:1px solid var(--border-color)}.stats-summary{display:grid;grid-template-columns:1fr;gap:.5rem;margin-bottom:.5rem}@media (min-width: 640px){.stats-summary{grid-template-columns:repeat(3,1fr)}}.stat-box{background:var(--input-bg);border:1px solid var(--border-color);border-radius:6px;padding:.6rem;text-align:center;display:flex;flex-direction:column;justify-content:center;min-height:68px}.stat-box .stat-label{font-size:.68rem;color:var(--muted-text);margin-bottom:.25rem;text-transform:uppercase;letter-spacing:.3px;font-weight:600;line-height:1.15;display:-webkit-box;-webkit-box-orient:vertical;line-clamp:2;-webkit-line-clamp:2;overflow:hidden;min-height:2.3em}.stat-box .stat-value{font-size:1.1rem;font-weight:700;color:var(--primary-color)}@media (min-width: 900px){.main-layout{align-items:stretch}}.predictions-table{display:flex;flex-direction:column;gap:.75rem}.prediction-row{background:var(--input-bg);border:1px solid var(--border-color);border-radius:6px;padding:.75rem;transition:all .2s}.prediction-row:hover{border-color:var(--primary-color);transform:translate(2px)}.prediction-text{font-size:.875rem;font-weight:600;margin-bottom:.5rem;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.prediction-stats{display:flex;justify-content:space-between;gap:.5rem;font-size:.75rem}.stat-item{display:flex;flex-direction:column;gap:.125rem;flex:1}.stat-item-label{color:var(--muted-text);font-size:.65rem;text-transform:uppercase;letter-spacing:.3px}.stat-item-value{color:var(--text-primary)}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light;color:var(--text-primary, #222);background-color:var(--bg, #ffffff);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}#root{max-width:1280px;margin:0 auto;padding:2rem;width:100%}html[data-theme=dark]{color-scheme:dark}
