.footer{z-index:20;flex-shrink:0}.input-container{cursor:text;background:#fff;border:1px solid #eaecef;border-radius:24px;flex-direction:column;margin-top:4px;padding:8px 12px;transition:border-color .2s cubic-bezier(.16,1,.3,1),box-shadow .2s cubic-bezier(.16,1,.3,1);display:flex;position:relative;box-shadow:0 1px 2px #0000000a}.input-container:focus-within{border-color:#cbd5e1;box-shadow:0 1px 3px #0000000f}.input-wrapper{flex-direction:column;align-items:flex-end;width:100%;margin-bottom:6px;display:flex}.input-wrapper textarea{color:#0f172a;resize:none;background-color:#0000;border:none;outline:none;width:100%;min-height:42px;max-height:100px;padding:4px 0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,sans-serif;font-size:15px;line-height:1.7;overflow-y:auto}.input-wrapper textarea::placeholder{color:#94a3b8;font-weight:400}.action-row{justify-content:space-between;align-items:center;display:flex}.action-left{align-items:center;display:flex}.btn-generate{color:#fff;cursor:pointer;background:#4f46e5;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;margin-left:8px;padding:0;transition:transform .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1),background .15s cubic-bezier(.16,1,.3,1);display:flex;position:relative;box-shadow:0 1px 4px #4f46e533}.btn-generate .btn-icon{width:16px;height:16px;transition:transform .15s cubic-bezier(.16,1,.3,1)}.btn-generate:hover{background:#4338ca;transform:scale(1.05);box-shadow:0 2px 10px #4f46e54d}.btn-generate:hover .btn-icon{transform:scale(1.1)}.btn-generate:active{transform:scale(.95);box-shadow:0 1px 3px #4f46e526}.btn-generate:disabled{box-shadow:none;cursor:not-allowed;background:#cbd5e1;transform:none}.btn-generate:disabled .btn-icon{opacity:.4}.btn-template{color:#475569;white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #eaecef;border-radius:9999px;align-items:center;gap:5px;height:32px;padding:0 14px;font-size:13px;font-weight:500;transition:color .15s cubic-bezier(.16,1,.3,1),background .15s cubic-bezier(.16,1,.3,1),border-color .15s cubic-bezier(.16,1,.3,1);display:flex}.btn-template .btn-icon{background-color:currentColor;flex-shrink:0;width:14px;height:14px;display:inline-block;-webkit-mask:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000000'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M9.663%2017h4.673M12%203v1m6.364%201.636l-.707.707M21%2012h-1M4%2012H3m3.343-5.657l-.707-.707m2.828%209.9a5%205%200%20117.072%200l-.548.547A3.374%203.374%200%200014%2018.469V19a2%202%200%2011-4%200v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z'/%3e%3c/svg%3e") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000000'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M9.663%2017h4.673M12%203v1m6.364%201.636l-.707.707M21%2012h-1M4%2012H3m3.343-5.657l-.707-.707m2.828%209.9a5%205%200%20117.072%200l-.548.547A3.374%203.374%200%200014%2018.469V19a2%202%200%2011-4%200v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z'/%3e%3c/svg%3e") 50%/contain no-repeat}.btn-template:hover{color:#4f46e5;background:#eef2ff;border-color:#4f46e540}.btn-template:active{transform:scale(.97)}.template-popover{z-index:10;background:#fff;border:1px solid #eaecef;border-radius:12px;min-width:260px;padding:6px;position:absolute;bottom:calc(100% + 10px);left:0;box-shadow:0 8px 24px #00000014}.template-popover:before{content:"";filter:drop-shadow(0 1px 1px #0000000a);border:6px solid #0000;border-top-color:#fff;width:0;height:0;position:absolute;top:100%;left:45px}.template-popover.show{animation:.15s cubic-bezier(.16,1,.3,1) popoverIn;display:block}.popover-list{max-height:260px;overflow-y:auto}.popover-item{color:#334155;cursor:pointer;border-radius:8px;padding:8px 10px;font-size:13px;line-height:1.4;transition:background-color .15s,color .15s}.popover-item:hover{color:#4f46e5;background-color:#eef2ff}.ai-disclaimer{text-align:center;color:#94a3b8;-webkit-user-select:none;user-select:none;margin-top:8px;font-size:12px}@keyframes popoverIn{0%{opacity:0;transform:translateY(4px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}@media (width<=900px){.input-container{padding:8px}.btn-generate{width:32px;height:32px}.btn-template{height:30px;padding:0 12px}.btn-template:hover{color:#475569;background:#fff;border-color:#eaecef}.template-popover{min-width:220px;left:8px}.template-popover:before{left:20px}.popover-list::-webkit-scrollbar{width:2px}.ai-disclaimer{color:#64748b}}.prd-loading{color:#64748b;letter-spacing:.1px;align-items:center;gap:8px;padding:12px 0;font-size:15px;display:flex}.prd-loading-dot{border:1.5px solid #cbd5e1;border-top-color:#4f46e5;border-radius:50%;flex-shrink:0;width:1em;height:1em;animation:.7s linear infinite prd-loading-spin}@keyframes prd-loading-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.error-state{flex:1;justify-content:center;align-items:center;display:flex}.error-state-inner{text-align:center;max-width:360px}.error-icon{justify-content:center;align-items:center;width:48px;height:48px;margin:0 auto 12px;display:flex}.error-icon img{opacity:.7;width:44px;height:44px}.error-title{color:#1e293b;margin-top:0;margin-bottom:4px;font-size:15px;font-weight:500}.error-desc{color:#64748b;margin-bottom:12px;font-size:13px;line-height:1.5}.error-retry-hint{color:#94a3b8;margin-top:8px;font-size:12px}.retry-btn{color:#fff;cursor:pointer;background:#4f46e5;border:none;border-radius:8px;padding:9px 22px;font-size:13px;font-weight:500;transition:background .15s cubic-bezier(.16,1,.3,1),transform .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1);box-shadow:0 1px 4px #4f46e52e}.retry-btn:hover{background:#4338ca;box-shadow:0 2px 10px #4f46e547}.retry-btn:active{transform:scale(.97)}.dynamic-nav{white-space:nowrap;scroll-behavior:smooth;flex-shrink:0;gap:4px;padding-top:8px;padding-bottom:8px;display:flex;overflow-x:auto}.dynamic-nav:before,.dynamic-nav:after{content:"";flex:1;min-width:0}.dynamic-nav a{color:#64748b;cursor:pointer;background-color:#0000;border-radius:9999px;flex-shrink:0;padding:5px 14px;font-size:13px;font-weight:500;text-decoration:none;transition:color .15s cubic-bezier(.16,1,.3,1),background-color .15s cubic-bezier(.16,1,.3,1);display:inline-block}.dynamic-nav a:hover{color:#1e293b;background-color:#f1f5f9}.dynamic-nav a.active{color:#4f46e5;background-color:#dbeafe}.dynamic-nav a.disabled{pointer-events:none;cursor:default;opacity:.5}@media (width<=900px){.dynamic-nav{padding:8px 16px}.dynamic-nav a{padding:4px 12px;font-size:11px}}.back-to-top{z-index:10;color:#64748b;cursor:pointer;opacity:.55;background:#fff;border:1px solid #eaecef;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;font-size:16px;transition:opacity .15s cubic-bezier(.16,1,.3,1),color .15s cubic-bezier(.16,1,.3,1),background .15s cubic-bezier(.16,1,.3,1),border-color .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1),transform .15s cubic-bezier(.16,1,.3,1);display:flex;position:absolute;bottom:24px;right:32px;box-shadow:0 1px 2px #0000000a}.back-to-top:hover{opacity:1;color:#1e293b;border-color:#cbd5e1;transform:translateY(-1px);box-shadow:0 1px 3px #0000000f}@media (width<=900px){.back-to-top{bottom:20px;right:16px}}.step-nav{flex-shrink:0;justify-content:center;align-items:center;gap:0;padding:8px 0 6px;display:flex}.step-nav-item-wrapper{align-items:center;display:flex}.step-connector-line{background:#e2e8f0;border-radius:1px;width:60px;height:1.5px;margin:0 4px;display:block;position:relative;overflow:hidden}.step-connector-line:after{content:"";border-radius:inherit;transform-origin:0;background:#4f46e5;transition:transform .4s cubic-bezier(.16,1,.3,1);position:absolute;inset:0;transform:scaleX(0)}.step-connector-line.connector-both-done:after{transform:scaleX(1)}.step-connector-line.connector-left-done:after{transform:scaleX(.5)}.step-connector-line.connector-left-error:after{background:#ef4444;transform:scaleX(.5)}.step-connector-line.connector-left-done.connector-right-error:after{background:linear-gradient(90deg,#4f46e5 50%,#ef4444 50%);transform:scaleX(1)}.step-connector-line:not(.connector-left-done).connector-right-error:after{transform-origin:100%;background:#ef4444;transform:scaleX(.5)}.step-btn{color:#94a3b8;white-space:nowrap;cursor:default;-webkit-user-select:none;user-select:none;background:#fff;border:1px solid #e2e8f0;border-radius:9999px;align-items:center;gap:5px;height:28px;padding:0 12px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,sans-serif;font-size:12px;font-weight:500;transition:color .15s cubic-bezier(.16,1,.3,1),background .15s cubic-bezier(.16,1,.3,1),border-color .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1);display:flex}.step-btn:not(:disabled){pointer-events:auto}.step-num{color:#94a3b8;background:#f1f5f9;border-radius:50%;justify-content:center;align-items:center;width:15px;height:15px;font-size:10px;font-weight:600;transition:inherit;display:inline-flex}.step-label-text{transition:inherit}.step-btn:disabled{opacity:.65;cursor:not-allowed}.step-btn.step-running{color:#fff;cursor:pointer;background:#4f46e5;border-color:#4f46e5;animation:2s ease-in-out infinite step-pulse;box-shadow:0 0 0 2px #4f46e540}.step-btn.step-running .step-num{color:#fff;background:#ffffff38}.step-btn.step-done{color:#4f46e5;cursor:pointer;background:#eef2ff;border-color:#4f46e5}.step-btn.step-done .step-num{color:#fff;background:#4f46e5}.step-btn.step-done:hover{background:#e6eafa;box-shadow:0 1px 4px #4f46e51f}.step-btn.step-done.step-active{color:#fff;background:#4f46e5;border-color:#4f46e5;box-shadow:0 1px 6px #4f46e538}.step-btn.step-done.step-active .step-num{color:#fff;background:#ffffff38}.step-btn.step-error{color:#ef4444;cursor:pointer;background:#fef2f2;border-color:#ef4444}.step-btn.step-error .step-num{color:#fff;background:#ef4444}.step-btn.step-error:hover{background:#fde8e8;box-shadow:0 1px 4px #ef44441f}.step-btn.step-error.step-active{color:#fff;background:#ef4444;border-color:#ef4444;box-shadow:0 1px 6px #ef444438}.step-btn.step-error.step-active .step-num{color:#fff;background:#ffffff38}@keyframes step-pulse{0%,to{box-shadow:0 0 #4f46e580}50%{box-shadow:0 0 0 6px #4f46e500}}@media (width<=900px){.step-nav{padding:4px 8px 8px}.step-btn{gap:3px;height:26px;padding:0 10px;font-size:11px}.step-num{width:13px;height:13px;font-size:9px}.step-connector-line{width:28px;margin:0 3px}}.main-section{flex-direction:column;flex:1;min-height:0;display:flex}.result-wrapper{flex-direction:column;flex:1;display:flex;position:relative;overflow:hidden}.result-area{flex-direction:column;flex:1;padding:0 16px;display:flex;overflow:hidden}.result-area .placeholder{color:#94a3b8;text-align:center;-webkit-user-select:none;user-select:none;flex-direction:column;justify-content:center;align-items:center;gap:8px;margin:auto;display:flex}.placeholder-icon{opacity:.55;width:48px;height:48px}.placeholder-text{color:#94a3b8;font-size:13px;font-weight:500;line-height:1.7}.step-content-wrapper{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.fade-in{animation:.25s ease-out content-fade-in}@keyframes content-fade-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.prd-content{white-space:pre-wrap;color:#334155;flex:1;font-size:15px;line-height:1.85;overflow-y:auto}.prd-content strong,.prd-content b{color:#0f172a;font-weight:600}.prd-content::-webkit-scrollbar{width:4px}.prd-content::-webkit-scrollbar-track{background-color:#0000}.prd-content::-webkit-scrollbar-thumb{background-color:#0000000f;border-radius:10px}.prd-content::-webkit-scrollbar-thumb:hover{background-color:#0000001f}.quote-bar{z-index:5;color:#475569;background:#f1f5f9;border:1px solid #eaecef;border-radius:8px;flex-shrink:0;align-items:center;gap:8px;padding:8px 12px;font-size:13px;display:flex;position:relative}.quote-icon{flex-shrink:0;height:16px}.quote-icon img{width:16px;display:block}.quote-text{text-align:left;flex:1;min-width:0;display:flex}.quote-prefix,.quote-suffix{white-space:nowrap;flex-shrink:0}.quote-input-wrapper{min-width:0;display:flex;position:relative}.quote-input-wrapper.is-truncated:before{content:"";z-index:1;height:8px;position:absolute;top:100%;left:0;right:0}.quote-input{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.quote-tooltip{z-index:10;color:#fff;opacity:0;pointer-events:none;background:#1e293b;border-radius:12px;max-width:360px;padding:0;transition:opacity .15s cubic-bezier(.16,1,.3,1);position:absolute;top:calc(100% + 8px);left:50%;overflow:visible;transform:translate(-50%);box-shadow:0 4px 12px #0000000f}.quote-tooltip:after{content:"";clip-path:polygon(50% 0%,0% 60%,100% 60%);background:#1e293b;width:10px;height:10px;position:absolute;top:-6px;left:50%;transform:translate(-50%)}.quote-tooltip-inner{max-height:120px;padding:5px 12px;font-size:12px;font-weight:400;line-height:1.45;display:block;overflow-y:auto}.quote-tooltip-inner::-webkit-scrollbar{width:3px}.quote-tooltip-inner::-webkit-scrollbar-track{background-color:#0000}.quote-tooltip-inner::-webkit-scrollbar-thumb{background-color:#ffffff59;border-radius:10px}.quote-input-wrapper.is-truncated:hover .quote-tooltip{opacity:1;pointer-events:auto}.copy-btn,.scroll-to-bottom-btn{z-index:10;color:#64748b;cursor:pointer;opacity:.6;background:#fff;border:1px solid #eaecef;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;transition:opacity .15s cubic-bezier(.16,1,.3,1),color .15s cubic-bezier(.16,1,.3,1),background .15s cubic-bezier(.16,1,.3,1),border-color .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1),transform .15s cubic-bezier(.16,1,.3,1);display:flex;position:absolute;right:32px;box-shadow:0 1px 2px #0000000a}.copy-btn{bottom:72px}.scroll-to-bottom-btn{bottom:24px}.copy-btn:hover,.scroll-to-bottom-btn:hover{opacity:1;color:#1e293b;border-color:#cbd5e1;transform:translateY(-1px);box-shadow:0 1px 3px #0000000f}.copy-btn.copied{opacity:1;color:#10b981;background:#ecfdf5;border-color:#10b98140}.prd-content.is-generating:after{content:"";vertical-align:text-bottom;background-color:#4f46e5;border-radius:1px;width:2px;height:19px;margin-left:1px;animation:.8s step-end infinite blink;display:inline-block}@keyframes blink{0%,to{opacity:1}50%{opacity:.15}}@media (width<=900px){.main-section{box-shadow:none;border:none;border-radius:0}.result-area{padding:0}.placeholder-icon{width:40px;height:40px}.placeholder-text{font-size:13px}.prd-content{padding:0 12px}.copy-btn{bottom:80px;right:16px}.scroll-to-bottom-btn{bottom:20px;right:16px}.quote-tooltip{width:auto;max-width:none;left:0;right:0;transform:none}.quote-tooltip-inner{max-height:80px}}html{-webkit-text-size-adjust:100%;line-height:1.15}body{margin:0}main{display:block}h1{margin:.67em 0;font-size:2em}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace;font-size:1em}a{background-color:#0000}abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:100%;line-height:1.15}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner{border-style:none;padding:0}[type=button]::-moz-focus-inner{border-style:none;padding:0}[type=reset]::-moz-focus-inner{border-style:none;padding:0}[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring{outline:1px dotted buttontext}[type=button]:-moz-focusring{outline:1px dotted buttontext}[type=reset]:-moz-focusring{outline:1px dotted buttontext}[type=submit]:-moz-focusring{outline:1px dotted buttontext}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;white-space:normal;max-width:100%;padding:0;display:table}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button{height:auto}[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template,[hidden]{display:none}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}::selection{color:inherit;background-color:#4f46e51f}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#fafbfc;justify-content:center;align-items:center;height:100dvh;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,sans-serif;display:flex;overflow:hidden}#root{justify-content:center;align-items:center;width:100%;max-width:800px;height:100%;display:flex}.app{flex-direction:column;width:100%;max-width:800px;height:100%;padding:0 16px;display:flex}.header{flex-shrink:0;align-items:flex-end;gap:10px;padding-top:24px;padding-bottom:12px;display:flex}.header h1{color:#0f172a;letter-spacing:-.3px;align-items:center;gap:6px;margin:0;font-size:16px;font-weight:600;display:flex}.header-icon{opacity:.85;flex-shrink:0;width:18px;height:18px}.header .subtitle{color:#64748b;letter-spacing:-.1px;font-size:13px;font-weight:400}@media (width<=900px){.app{padding:0 12px}.header{flex-direction:column;align-items:flex-start;gap:2px;padding-top:12px;padding-bottom:8px}.header h1{font-size:15px}.header .subtitle{font-size:12px;line-height:1.4}}.input-wrapper textarea::-webkit-scrollbar{width:4px}.popover-list::-webkit-scrollbar{width:4px}.dynamic-nav::-webkit-scrollbar{height:3px}.dynamic-nav::-webkit-scrollbar-track{background-color:#0000}.popover-list::-webkit-scrollbar-track{background-color:#0000}.dynamic-nav::-webkit-scrollbar-thumb{background-color:#0000000f;border-radius:10px}.popover-list::-webkit-scrollbar-thumb{background-color:#0000000f;border-radius:10px}.input-wrapper textarea::-webkit-scrollbar-thumb{background-color:#0000000f;border-radius:10px}
