:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#0f172a;background-color:#0b1120}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at top,#1e293b 0,#020617 55%);display:flex;align-items:center;justify-content:center}.tool-root{width:100%;padding:24px;display:flex;justify-content:center}.tool-card{width:100%;max-width:600px;height:640px;max-height:100vh;display:flex;flex-direction:column;background:#0f172af2;border-radius:24px;padding:32px;box-shadow:0 24px 60px #00000080,0 0 0 1px #94a3b826;color:#e5e7eb;position:relative;overflow:hidden}.tool-header{text-align:center;margin-bottom:20px;flex-shrink:0}.tool-header h1{margin:0 0 8px;font-size:.9rem;text-transform:uppercase;letter-spacing:.1em;color:#9ca3af;font-weight:600;opacity:.8;line-height:1.6;white-space:pre-line}.tool-progress-wrapper{position:relative;width:100%;height:4px;background:#33415580;border-radius:999px;overflow:hidden;margin-top:12px}.tool-progress-bar{height:100%;background:linear-gradient(90deg,#38bdf8,#818cf8);transition:width .4s ease-out}.tool-main{flex:1;display:flex;flex-direction:column;justify-content:flex-start;position:relative;overflow-y:auto;padding:0 4px 20px;scrollbar-width:none}.tool-main::-webkit-scrollbar{display:none}.tool-step-title{font-size:1.8rem;font-weight:700;text-align:center;margin-bottom:16px;line-height:1.3;color:#f8fafc;margin-top:auto}.tool-description{font-size:1.1rem;line-height:1.6;color:#cbd5e1;text-align:center;margin-bottom:24px;max-width:90%;margin-left:auto;margin-right:auto;white-space:pre-line}.tool-content-wrapper{display:flex;flex-direction:column;height:100%;width:100%}.tool-center-layout{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;width:100%;min-height:350px}.tool-center-layout .tool-step-title{margin-top:0;margin-bottom:24px}.tool-center-layout .tool-description{margin-bottom:0}.tool-result-preview{background:#0f172a;border:1px solid rgba(148,163,184,.2);border-radius:12px;padding:18px 20px;margin-bottom:24px;text-align:left;color:#e2e8f0;font-family:inherit;font-size:1rem;line-height:1.6;white-space:pre-wrap;box-shadow:inset 0 2px 4px #0000004d}.tool-instruction-card{background:#1e293b99;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:20px 24px;margin-bottom:24px;text-align:left;width:100%}.tool-instruction-header{font-weight:600;color:#f1f5f9;margin-bottom:14px;font-size:1rem;text-align:center}.tool-instruction-list{margin:0;padding:0;list-style:none;counter-reset:step-counter}.tool-instruction-item{position:relative;padding-left:36px;margin-bottom:12px;color:#cbd5e1;font-size:.95rem;line-height:1.5}.tool-instruction-item:last-child{margin-bottom:0}.tool-instruction-item:before{counter-increment:step-counter;content:counter(step-counter);position:absolute;left:0;top:-1px;width:24px;height:24px;background:#38bdf826;color:#38bdf8;border-radius:50%;font-size:.8rem;font-weight:700;display:flex;align-items:center;justify-content:center}.tool-textarea{width:100%;resize:none;height:180px;margin-bottom:auto;border-radius:16px;border:1px solid rgba(148,163,184,.3);font-family:inherit;padding:16px;font-size:1.05rem;line-height:1.6;background:#1e293b80;color:#f1f5f9;outline:none;transition:all .2s ease}.tool-textarea:focus{border-color:#38bdf8;background:#1e293bcc;box-shadow:0 0 0 2px #38bdf833}.tool-textarea::-moz-placeholder{color:#64748b;opacity:.7}.tool-textarea::placeholder{color:#64748b;opacity:.7}.tool-fixed-mic-container{flex-shrink:0;padding-bottom:16px;position:relative;z-index:10}.tool-mic-hero{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:12px;background:#38bdf81a;border:1px solid rgba(56,189,248,.3);border-radius:16px;color:#38bdf8;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .2s ease}.tool-mic-hero:hover{background:#38bdf833;transform:translateY(-1px)}.tool-mic-hero:active{transform:scale(.98)}.tool-mic-hero.recording{background:#ef444426;border-color:#ef444480;color:#f87171;animation:pulse-border 2s infinite}.tool-scale-wrapper{margin-top:20px;padding:0 10px;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;margin-bottom:auto}.tool-scale-label{font-size:1rem;color:#cbd5e1;margin-bottom:16px}.tool-scale-input{width:100%;height:24px;border-radius:12px;accent-color:#818cf8;cursor:pointer;touch-action:none}.tool-scale-value{margin-top:12px;font-size:1.5rem;font-weight:700;color:#818cf8}.tool-branch-options{display:flex;flex-direction:column;gap:16px;margin-top:20px;width:100%;margin-bottom:auto}.tool-branch-btn{padding:20px;background:#1e293b99;border:1px solid rgba(56,189,248,.3);border-radius:16px;color:#f1f5f9;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .2s ease;text-align:left;position:relative;overflow:hidden}.tool-branch-btn:hover{background:#38bdf826;border-color:#38bdf8;transform:translateY(-2px)}.tool-branch-btn.secondary{border-color:#94a3b84d;color:#cbd5e1}.tool-branch-btn.secondary:hover{background:#94a3b826;border-color:#94a3b8}.tool-footer{margin-top:0;display:flex;justify-content:center;gap:12px;min-height:60px;align-items:flex-end;flex-shrink:0;padding-bottom:10px}.tool-button{border-radius:12px;padding:14px 32px;font-size:1rem;border:none;cursor:pointer;font-weight:600;transition:all .2s;min-width:120px}.tool-button.primary{background:linear-gradient(135deg,#38bdf8,#818cf8);color:#fff;box-shadow:0 4px 12px #818cf84d}.tool-button.primary:hover{transform:translateY(-1px);box-shadow:0 6px 16px #818cf866}.tool-button.ghost{background:transparent;color:#94a3b8}.tool-button.ghost:hover{color:#e2e8f0;background:#ffffff0d}.tool-button:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}.premium-gradient-title{font-size:2.5rem;font-weight:800;text-align:center;background:linear-gradient(to right,#38bdf8,#818cf8,#c084fc);-webkit-background-clip:text;background-clip:text;color:transparent;margin-top:auto}.tool-summary{text-align:center;width:100%;margin-bottom:auto}@media (max-width: 640px){.tool-card{height:auto;min-height:560px}.premium-gradient-title{font-size:2rem}}@keyframes pulse-border{0%{box-shadow:0 0 #ef444466}70%{box-shadow:0 0 0 6px #ef444400}to{box-shadow:0 0 #ef444400}}
