*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{font-size:17px}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#0f1117;color:#e8e9ed;line-height:1.7;min-height:100vh}#root{min-height:100vh}.group-select{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2.5rem;background:radial-gradient(ellipse at 20% 50%,rgba(99,102,241,.15) 0%,transparent 50%),radial-gradient(ellipse at 80% 20%,rgba(139,92,246,.1) 0%,transparent 50%),#0f1117}.group-select__title{font-size:2.6rem;font-weight:700;background:linear-gradient(135deg,#818cf8,#a78bfa,#c084fc);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:.75rem;text-align:center;letter-spacing:-.03em}.group-select__subtitle{font-size:1.15rem;color:#9ca3af;margin-bottom:3rem;text-align:center;max-width:580px;line-height:1.7}.group-select__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.25rem;max-width:1060px;width:100%}.group-card{background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:1.75rem;cursor:pointer;transition:all .3s ease;display:flex;flex-direction:column;gap:.85rem;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.group-card:hover{border-color:#818cf880;background:#ffffff14;box-shadow:0 8px 32px #6366f126;transform:translateY(-4px)}.group-card__number{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:14px;background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;font-size:1.2rem;font-weight:700}.group-card__event{font-size:1.15rem;font-weight:600;color:#f3f4f6;line-height:1.45}.group-card__model{display:inline-flex;align-items:center;gap:.5rem;font-size:.95rem;color:#9ca3af}.group-card__model-dot{width:11px;height:11px;border-radius:50%;display:inline-block}.workspace{display:flex;flex-direction:column;min-height:100vh;background:#0f1117}.header{background:#11131bd9;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.08);padding:.85rem 2rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;position:sticky;top:0;z-index:100}.header__left{display:flex;align-items:center;gap:1.25rem}.header__title{font-size:1.3rem;font-weight:700;background:linear-gradient(135deg,#818cf8,#a78bfa);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;white-space:nowrap}.header__group-info{display:flex;align-items:center;gap:.75rem;font-size:1rem;color:#9ca3af}.header__group-badge{background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;padding:.25rem .7rem;border-radius:8px;font-size:.9rem;font-weight:600}.header__right{display:flex;align-items:center;gap:.75rem}.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.7rem 1.3rem;border-radius:12px;border:none;cursor:pointer;font-family:inherit;font-size:.95rem;font-weight:500;transition:all .2s ease;white-space:nowrap}.btn:disabled{opacity:.4;cursor:not-allowed}.btn-primary{background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff}.btn-primary:hover:not(:disabled){box-shadow:0 4px 16px #6366f166}.btn-secondary{background:#ffffff12;color:#d1d5db;border:1px solid rgba(255,255,255,.12)}.btn-secondary:hover:not(:disabled){background:#ffffff1f;border-color:#fff3}.btn-accent{background:linear-gradient(135deg,#f59e0b,#f97316);color:#fff}.btn-accent:hover:not(:disabled){box-shadow:0 4px 16px #f59e0b59}.btn-send{background:linear-gradient(135deg,#10b981,#059669);color:#fff;padding:.95rem 2.5rem;font-size:1.1rem;font-weight:600;border-radius:14px}.btn-send:hover:not(:disabled){box-shadow:0 4px 20px #10b98159}.main-layout{display:flex;flex:1;overflow:hidden}.sidebar{width:220px;min-width:220px;background:#11131b99;border-right:1px solid rgba(255,255,255,.06);padding:1.25rem 0;display:flex;flex-direction:column;gap:.25rem}.stage-tab{display:flex;align-items:center;gap:.85rem;padding:1.1rem 1.5rem;cursor:pointer;border:none;background:none;font-family:inherit;font-size:1.05rem;font-weight:500;color:#6b7280;text-align:left;transition:all .2s ease;border-left:3px solid transparent;width:100%}.stage-tab:hover{background:#ffffff0a;color:#d1d5db}.stage-tab--active{background:#6366f11a;color:#a5b4fc;border-left-color:#818cf8;font-weight:600}.stage-tab__icon{font-size:1.3rem}.content{flex:1;overflow-y:auto;padding:2rem 2.5rem;display:flex;flex-direction:column;gap:1.5rem}.content__actions{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;color:#d1d5db}.model-selector{display:flex;flex-wrap:wrap;gap:.5rem}.model-btn{display:inline-flex;align-items:center;gap:.5rem;padding:.65rem 1.1rem;border-radius:12px;border:1px solid rgba(255,255,255,.1);background:#ffffff0a;cursor:pointer;font-family:inherit;font-size:.95rem;font-weight:500;color:#9ca3af;transition:all .2s ease}.model-btn:hover{border-color:#fff3;background:#ffffff12}.model-btn--active{border-color:var(--model-color, #818CF8);background:color-mix(in srgb,var(--model-color, #818CF8) 12%,transparent);color:#f3f4f6;font-weight:600;box-shadow:0 0 12px color-mix(in srgb,var(--model-color, #818CF8) 20%,transparent)}.model-btn__dot{width:10px;height:10px;border-radius:50%}.model-btn__primary{font-size:.7rem;background:linear-gradient(135deg,#f59e0b,#f97316);color:#fff;padding:.1rem .45rem;border-radius:5px;font-weight:600}.prompt-editor{display:flex;flex-direction:column;gap:.85rem}.prompt-editor__textarea{width:100%;min-height:220px;padding:1.15rem 1.25rem;border:1px solid rgba(255,255,255,.1);border-radius:16px;font-family:inherit;font-size:1.02rem;line-height:1.7;color:#e8e9ed;background:#ffffff0a;resize:vertical;transition:all .2s ease}.prompt-editor__textarea:focus{outline:none;border-color:#818cf880;box-shadow:0 0 0 3px #6366f11a;background:#ffffff0f}.prompt-editor__textarea::placeholder{color:#4b5563}.prompt-editor__footer{display:flex;align-items:center;justify-content:space-between;gap:1rem}.prompt-editor__char-count{font-size:.9rem;color:#6b7280}.prompt-editor__char-count--warning{color:#ef4444;font-weight:600}.response-view{background:#ffffff08;border:1px solid rgba(255,255,255,.08);border-radius:18px;overflow:hidden}.response-view__header{display:flex;align-items:center;justify-content:space-between;padding:.85rem 1.25rem;background:#ffffff0a;border-bottom:1px solid rgba(255,255,255,.06)}.response-view__model{display:flex;align-items:center;gap:.5rem;font-weight:600;font-size:1rem;color:#d1d5db}.response-view__time{font-size:.9rem;color:#6b7280}.response-view__body{padding:1.5rem;font-size:1.02rem;line-height:1.8;max-height:65vh;overflow-y:auto;color:#d1d5db}.response-view__body h1,.response-view__body h2,.response-view__body h3{margin-top:1.5rem;margin-bottom:.6rem;color:#f3f4f6}.response-view__body h1{font-size:1.45rem}.response-view__body h2{font-size:1.25rem}.response-view__body h3{font-size:1.1rem}.response-view__body p{margin-bottom:.85rem}.response-view__body ul,.response-view__body ol{margin-bottom:.85rem;padding-left:1.75rem}.response-view__body li{margin-bottom:.35rem}.response-view__body table{width:100%;border-collapse:collapse;margin-bottom:1.25rem;font-size:.95rem}.response-view__body th,.response-view__body td{border:1px solid rgba(255,255,255,.08);padding:.6rem .85rem;text-align:left}.response-view__body th{background:#ffffff0d;font-weight:600;color:#a5b4fc}.response-view__body strong{font-weight:600;color:#f3f4f6}.response-view__body blockquote{border-left:3px solid #818CF8;padding-left:1.25rem;margin:1rem 0;color:#9ca3af}.response-view__body code{background:#ffffff14;padding:.15rem .4rem;border-radius:5px;font-size:.9em}.response-view__empty{padding:4rem 2rem;text-align:center;color:#4b5563;font-size:1.1rem;line-height:1.7}.loading-dots{display:inline-flex;gap:6px;align-items:center;padding:1.25rem}.loading-dots__dot{width:9px;height:9px;border-radius:50%;background:#818cf8;animation:loadingPulse 1.4s infinite ease-in-out both}.loading-dots__dot:nth-child(1){animation-delay:-.32s}.loading-dots__dot:nth-child(2){animation-delay:-.16s}@keyframes loadingPulse{0%,80%,to{transform:scale(.4);opacity:.4}40%{transform:scale(1);opacity:1}}.error-message{padding:1.1rem 1.5rem;background:#ef44441a;border:1px solid rgba(239,68,68,.25);border-radius:14px;color:#fca5a5;font-size:1rem;display:flex;align-items:flex-start;gap:.5rem;line-height:1.6}.compare-mode{display:flex;flex-direction:column;gap:1.5rem;color:#9ca3af}.compare-mode__models{display:flex;flex-wrap:wrap;gap:.5rem}.compare-checkbox{display:inline-flex;align-items:center;gap:.5rem;padding:.55rem .95rem;border-radius:10px;border:1px solid rgba(255,255,255,.1);background:#ffffff0a;cursor:pointer;font-family:inherit;font-size:.95rem;color:#9ca3af;transition:all .2s ease;-webkit-user-select:none;user-select:none}.compare-checkbox:hover{border-color:#fff3}.compare-checkbox--checked{border-color:var(--model-color, #818CF8);background:color-mix(in srgb,var(--model-color, #818CF8) 10%,transparent);color:#d1d5db}.compare-checkbox input{accent-color:var(--model-color, #818CF8);width:17px;height:17px}.compare-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(350px,1fr));gap:1.25rem}.compare-column{border:1px solid rgba(255,255,255,.08);border-radius:18px;overflow:hidden;background:#ffffff08}.compare-column__header{display:flex;align-items:center;justify-content:space-between;padding:.85rem 1.15rem;border-bottom:1px solid rgba(255,255,255,.06);font-weight:600;font-size:1rem;color:#d1d5db}.compare-column__body{padding:1.15rem;font-size:1rem;line-height:1.7;max-height:55vh;overflow-y:auto;color:#d1d5db}.history-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:200;display:flex;justify-content:center;align-items:flex-start;padding:2.5rem;overflow-y:auto}.history-panel{background:#1a1d27;border:1px solid rgba(255,255,255,.1);border-radius:22px;width:100%;max-width:860px;max-height:85vh;overflow-y:auto;box-shadow:0 24px 64px #00000080}.history-panel__header{display:flex;align-items:center;justify-content:space-between;padding:1.5rem 1.75rem;border-bottom:1px solid rgba(255,255,255,.08);position:sticky;top:0;background:#1a1d27;z-index:1;border-radius:22px 22px 0 0}.history-panel__title{font-size:1.3rem;font-weight:700;color:#f3f4f6}.history-panel__body{padding:1.25rem 1.75rem}.history-entry{border:1px solid rgba(255,255,255,.08);border-radius:14px;margin-bottom:.85rem;overflow:hidden;transition:all .15s ease}.history-entry__header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.15rem;cursor:pointer;background:#ffffff08;gap:.85rem}.history-entry__header:hover{background:#ffffff0f}.history-entry__meta{display:flex;align-items:center;gap:.85rem;flex-wrap:wrap;flex:1;min-width:0}.history-entry__stage{font-size:.82rem;font-weight:600;background:#6366f126;color:#a5b4fc;padding:.2rem .55rem;border-radius:6px;white-space:nowrap}.history-entry__model{font-size:.9rem;font-weight:500;color:#9ca3af;white-space:nowrap}.history-entry__preview{font-size:.9rem;color:#4b5563;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.history-entry__toggle{font-size:.85rem;color:#4b5563;white-space:nowrap}.history-entry__body{padding:1.15rem;border-top:1px solid rgba(255,255,255,.06)}.history-entry__prompt{background:#ffffff0a;padding:.85rem 1.15rem;border-radius:10px;margin-bottom:.85rem;font-size:.95rem;white-space:pre-wrap;color:#9ca3af;max-height:200px;overflow-y:auto}.history-entry__response{font-size:.95rem;line-height:1.7;max-height:300px;overflow-y:auto;color:#d1d5db}.history-empty{text-align:center;padding:3.5rem;color:#4b5563;font-size:1.1rem}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#ffffff1f;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#fff3}@media(max-width:900px){.sidebar{width:65px;min-width:65px}.stage-tab__name{display:none}.stage-tab{justify-content:center;padding:1.1rem .5rem}.content{padding:1.25rem}.header__title{font-size:1.1rem}.compare-results{grid-template-columns:1fr}}@media(max-width:600px){html{font-size:16px}.group-select{padding:1.5rem}.group-select__grid{grid-template-columns:1fr}.header{padding:.65rem 1rem}.model-selector{gap:.35rem}.model-btn{padding:.5rem .8rem;font-size:.9rem}.content{padding:1rem}}
