:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--ink:#111827;--muted:#64748b;--line:#e2e8f0;--brand:#4f46e5;--brand-soft:#eef2ff;font-family:Arial,Helvetica,sans-serif}*{box-sizing:border-box}body{color:var(--ink);background:#f8fafc;margin:0}a{color:#3730a3}button,input,textarea,select{font:inherit}button{background:var(--ink);color:#fff;cursor:pointer;border:0;border-radius:10px;padding:12px 16px}button:disabled{cursor:wait;opacity:.6}h1{letter-spacing:-.035em;margin:0 0 16px;font-size:clamp(30px,6vw,52px);line-height:1.08}h2{margin:0}p{line-height:1.7}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;margin:0;line-height:1.75}[role=alert]{color:#b91c1c;font-weight:700}.shell{place-items:center;min-height:100vh;padding:32px;display:grid}.card{border:1px solid var(--line);background:#fff;border-radius:20px;width:min(760px,100%);padding:40px;box-shadow:0 12px 40px #0f172a0f}.eyebrow{color:var(--brand);text-transform:uppercase;letter-spacing:.06em;margin:0 0 12px;font-size:13px;font-weight:800}.auth-form{gap:16px;margin:24px 0;display:grid}.auth-form label,.tool-form label{gap:8px;font-weight:700;display:grid}.auth-form input,.tool-form input,.tool-form textarea,.tool-form select{width:100%;color:var(--ink);background:#fff;border:1px solid #cbd5e1;border-radius:10px;padding:13px 14px}.auth-form input:focus,.tool-form input:focus,.tool-form textarea:focus{border-color:var(--brand);outline:3px solid #c7d2fe}.app-shell{width:min(1120px,100% - 40px);margin:0 auto;padding:28px 0 72px}.top-nav{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:20px;min-height:56px;display:flex}.top-nav>div{align-items:center;gap:16px;display:flex}.top-nav button{color:var(--ink);border:1px solid var(--line);background:#fff;padding:9px 12px}.page-heading{max-width:820px;padding:64px 0 40px}.page-heading p:not(.eyebrow){color:var(--muted);font-size:18px}.section-heading,.result-heading,.workspace-heading{justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px;display:flex}.section-heading .eyebrow,.workspace-heading .eyebrow{margin-bottom:6px}.section-heading span,.result-meta{color:var(--muted);font-size:14px}.tool-grid,.library-grid,.workflow-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;display:grid}.tool-card,.library-card,.empty-state,.tool-form,.result-panel{border:1px solid var(--line);background:#fff;border-radius:18px;padding:24px;box-shadow:0 8px 24px #0f172a0a}.tool-card{min-height:270px;color:var(--ink);flex-direction:column;text-decoration:none;transition:transform .15s,border-color .15s,box-shadow .15s;display:flex}.tool-card:hover{border-color:#a5b4fc;transform:translateY(-3px)}.tool-card p{color:var(--muted);flex:1}.tool-card:focus-visible{outline-offset:3px;outline:3px solid #a5b4fc}.tool-card-topline{align-items:center;gap:10px;margin-bottom:24px;display:flex}.workflow-step{background:var(--ink);color:#fff;border-radius:999px;flex:0 0 30px;place-items:center;width:30px;height:30px;font-size:13px;font-weight:800;display:grid}.tool-kind{background:var(--brand-soft);width:fit-content;color:var(--brand);border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800}.tool-card>.tool-kind{margin-bottom:24px}.tool-card .tool-outcome{border-top:1px solid var(--line);color:#334155;flex:0;margin:0 0 18px;padding-top:14px;font-size:14px}.additional-tools{margin-top:56px}.tool-workspace{gap:24px;display:grid}.tool-form{gap:18px;display:grid}.tool-form button{justify-self:start;min-width:160px}.workspace-heading{margin-bottom:4px}.workspace-heading a{white-space:nowrap;font-weight:700}.task-steps{grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 24px;padding:0;list-style:none;display:grid}.task-steps li{border:1px solid var(--line);background:#fff;border-radius:12px;align-items:center;gap:10px;min-width:0;padding:14px;display:flex}.task-steps span{background:var(--brand-soft);width:26px;height:26px;color:var(--brand);border-radius:999px;flex:0 0 26px;place-items:center;font-size:12px;font-weight:800;display:grid}.task-steps strong{font-size:14px}.run-status,.error-panel,.save-success{border-radius:14px;justify-content:space-between;align-items:center;gap:18px;padding:18px 20px;display:flex}.run-status{background:var(--brand-soft);border:1px solid #c7d2fe;justify-content:flex-start}.run-status p,.error-panel p,.save-success p{color:var(--muted);margin:4px 0 0}.status-spinner{border:3px solid #c7d2fe;border-top-color:var(--brand);border-radius:999px;flex:0 0 24px;width:24px;height:24px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.error-panel{color:#991b1b;background:#fef2f2;border:1px solid #fecaca}.error-panel p{color:#b91c1c}.secondary-button{color:var(--ink);background:#fff;border:1px solid #cbd5e1}.result-panel{border-color:#a5b4fc}.result-heading .eyebrow{margin-bottom:4px}.result-heading h2{font-size:22px}.result-actions{align-items:center;gap:10px;display:flex}.save-success{background:#f0fdf4;border:1px solid #bbf7d0;margin-top:20px}.save-success a{white-space:nowrap;font-weight:800}.generated-image-wrap{gap:12px;display:grid}.generated-image,.library-image{border:1px solid var(--line);background:#f1f5f9;border-radius:14px;width:100%;height:auto}.template-notice{background:var(--brand-soft);color:#3730a3;border:1px solid #c7d2fe;border-radius:12px;margin:0 0 18px;padding:14px 16px;font-weight:700}.admin-builder{gap:24px;display:grid}.field-editor{border:1px solid var(--line);border-radius:14px;gap:14px;margin:0;padding:20px;display:grid}.field-editor legend{color:var(--brand);padding:0 8px;font-weight:800}.checkbox-label{grid-template-columns:none;align-items:center;gap:10px!important;display:flex!important}.checkbox-label input{width:auto}.library-card{gap:14px;display:grid}.library-card pre{color:#334155;max-height:320px;overflow:auto}.empty-state{text-align:center;padding:56px 24px}.empty-state p{color:var(--muted)}.button-link{background:var(--ink);color:#fff;border-radius:10px;padding:12px 16px;text-decoration:none;display:inline-block}@media (max-width:640px){.app-shell{width:min(100% - 28px,1120px)}.page-heading{padding-top:40px}h1{font-size:clamp(32px,11vw,44px)}.top-nav,.result-heading,.workspace-heading,.run-status,.error-panel,.save-success{flex-direction:column;align-items:stretch;padding-bottom:16px}.top-nav>div{flex-wrap:wrap;gap:10px 14px;width:100%}.top-nav button{min-height:44px}.task-steps{grid-template-columns:1fr}.tool-card,.tool-form,.result-panel{padding:20px}.tool-form button,.result-actions button,.error-panel button{width:100%;min-height:48px}.result-actions{grid-template-columns:1fr;width:100%;display:grid}.save-success a{align-items:center;min-height:44px;display:flex}}@media (prefers-reduced-motion:reduce){.tool-card{transition:none}.status-spinner{animation-duration:1.6s}}
