:root{--text:#475569;--text-muted:#64748b;--text-strong:#0f172a;--bg:#f8fafc;--border:#dbe3ea;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;font:16px/145% var(--sans);letter-spacing:0;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{min-height:100svh}body{min-width:320px;margin:0}h1,h2{font-family:var(--heading);color:var(--text-strong);letter-spacing:0;font-weight:800;line-height:1.16}h1{margin:0;font-size:2.4rem}h2{margin:0;font-size:1.04rem}p{margin:0}button,textarea,input{font-family:inherit}*{box-sizing:border-box}.app-shell{background:linear-gradient(#ffffffe0,#f8fafcf5),radial-gradient(circle at 0 0,#0d94882e,#0000 32%),radial-gradient(circle at 100% 0,#f59e0b1f,#0000 30%);flex-direction:column;min-height:100svh;display:flex}.topbar{z-index:5;border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#ffffffd6;justify-content:space-between;align-items:center;gap:16px;padding:18px 32px;display:flex;position:sticky;top:0}.brand,.topbar-actions,.result-heading,.panel-title,.device-head,.routine-top,.command-actions,.metric-row{align-items:center;display:flex}.brand{gap:12px}.brand-mark{color:#fff;background:#0f766e;border-radius:8px;place-items:center;width:42px;height:42px;font-weight:800;display:grid}.brand strong,.device-card strong,.routine-card strong,.log-item strong{color:var(--text-strong);display:block}.brand span,.muted,.routine-card small,.device-card small,.log-item small{color:var(--text-muted);font-size:.86rem}.topbar-actions{gap:10px}.state-pill{text-align:center;color:#075985;background:#e0f2fe;border-radius:999px;min-width:86px;padding:8px 12px;font-size:.88rem;font-weight:700}.api-pill{text-align:center;color:#0f766e;background:#ccfbf1;border-radius:999px;min-width:98px;padding:8px 12px;font-size:.78rem;font-weight:800}.api-pill--loading{color:#92400e;background:#fef3c7}.api-pill--fallback{color:#991b1b;background:#fee2e2}.state-pill--done{color:#166534;background:#dcfce7}.state-pill--danger{color:#991b1b;background:#fee2e2}.state-pill--privacy{color:#374151;background:#e5e7eb}.state-pill--approval{color:#854d0e;background:#fef9c3}.icon-button,.tool-button,.primary-button,.quick-grid button,.routine-card{cursor:pointer;font:inherit;border:1px solid #0000;border-radius:8px;transition:transform .16s,border-color .16s,box-shadow .16s,background .16s}.icon-button{width:42px;height:42px;color:var(--text-strong);border-color:var(--border);background:#fff;place-items:center;display:grid}.icon-button:hover,.tool-button:hover,.quick-grid button:hover,.routine-card:hover{border-color:#0f766e;transform:translateY(-1px);box-shadow:0 10px 24px #0f172a14}.command-workspace{grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:28px;padding:32px;display:grid}.command-stage,.command-side,.operation-panel,.result-panel,.timeline-panel,.preview-panel,.approval-panel,.feedback-panel{border:1px solid var(--border);background:#ffffffe6;border-radius:8px;box-shadow:0 18px 48px #0f172a14}.command-stage{flex-direction:column;justify-content:center;gap:26px;min-height:580px;padding:34px;display:flex}.command-side{flex-direction:column;gap:16px;padding:16px;display:flex}.pet-eyes{background:linear-gradient(145deg,#111827,#0f172a 58%,#020617),#0f172a;border:1px solid #1f2937;border-radius:8px;justify-content:center;align-items:center;gap:34px;width:min(420px,100%);height:176px;margin:0 auto;display:flex;overflow:hidden}.eye-shape{background:#f8fafc;border-radius:999px;width:118px;height:84px;position:relative;overflow:hidden;box-shadow:inset 0 -12px 22px #0f172a2e,0 0 32px #2dd4bf33}.eye-shape span{background:#0f766e;border-radius:999px;width:34px;height:48px;transition:all .18s;position:absolute;top:18px;left:42px}.pet-eyes--listening .eye-shape span{background:#2563eb;height:58px;top:14px}.pet-eyes--analyzing .eye-shape span,.pet-eyes--running .eye-shape span{background:#d97706;width:48px;left:35px}.pet-eyes--done .eye-shape span{background:#16a34a}.pet-eyes--danger .eye-shape{background:#fee2e2}.pet-eyes--danger .eye-shape span{background:#dc2626}.pet-eyes--privacy .eye-shape{background:#d1d5db;height:16px}.pet-eyes--privacy .eye-shape span{opacity:0}.pet-eyes--approval .eye-shape{background:#fef3c7}.pet-eyes--approval .eye-shape span{background:#d97706}.command-copy{text-align:center}.command-copy h1{margin-bottom:10px}.command-copy p,.result-panel p{color:var(--text-muted)}.command-box{gap:14px;display:grid}textarea{resize:vertical;box-sizing:border-box;border:1px solid var(--border);width:100%;min-height:112px;font:inherit;color:var(--text-strong);background:#fff;border-radius:8px;outline:none;padding:18px}textarea:focus{border-color:#0f766e;box-shadow:0 0 0 4px #0f766e1f}.command-actions{flex-wrap:wrap;gap:10px}.primary-button,.tool-button{justify-content:center;align-items:center;gap:8px;min-height:44px;padding:0 16px;font-weight:800;display:inline-flex}.primary-button{color:#fff;background:#0f766e}.primary-button:hover{background:#115e59}.tool-button{color:var(--text-strong);border-color:var(--border);background:#fff}.file-button input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.quick-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;display:grid}.quick-grid button{min-height:58px;color:var(--text-strong);border-color:var(--border);background:#f8fafc;padding:10px}.result-panel,.timeline-panel,.preview-panel,.operation-panel,.approval-panel,.feedback-panel{padding:18px}.result-panel{gap:14px;display:grid}.result-panel--danger{background:#fff7f7;border-color:#fecaca}.result-panel--done{background:#f7fff9;border-color:#bbf7d0}.result-heading{gap:12px}.result-icon{color:#0f766e;background:#ccfbf1;border-radius:8px;flex:none;place-items:center;width:44px;height:44px;display:grid}.eyebrow{color:var(--text-muted);font-size:.78rem}.next-action{background:#f1f5f9;border-radius:8px;gap:6px;padding:14px;display:grid}.next-action span{color:var(--text-muted);font-size:.82rem}.next-action strong{color:var(--text-strong);line-height:1.42}.metric-row{flex-wrap:wrap;gap:8px}.metric-row span,.capability-row span{color:#3730a3;background:#eef2ff;border-radius:999px;padding:6px 9px;font-size:.78rem;font-weight:700}.panel-title{color:var(--text-strong);gap:9px;margin-bottom:14px}.panel-title svg{color:#0f766e}.timeline{gap:10px;display:grid}.timeline-step{color:var(--text-strong);grid-template-columns:18px 1fr;align-items:start;gap:10px;display:grid}.step-dot{background:#cbd5e1;border-radius:999px;width:10px;height:10px;margin-top:7px}.timeline-step--running .step-dot{background:#d97706;box-shadow:0 0 0 5px #d9770624}.timeline-step--done .step-dot{background:#16a34a}.timeline-step small{color:var(--text-muted);display:block}.preview-panel img{object-fit:cover;border:1px solid var(--border);border-radius:8px;width:100%;max-height:220px}.operations-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding:0 32px 32px;display:grid}.device-grid,.routine-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.device-card,.routine-card,.log-item{border:1px solid var(--border);text-align:left;background:#fff;border-radius:8px;padding:14px}.device-card{gap:10px;display:grid}.device-head{color:#0f766e;justify-content:space-between}.device-head span{color:var(--text-muted);font-size:.78rem}.device-card--needs-permission{border-color:#fed7aa}.capability-row{flex-wrap:wrap;gap:6px;display:flex}.routine-card{color:inherit;gap:8px;display:grid}.routine-top{color:#0f766e;justify-content:space-between}.routine-run{color:#0f766e;align-items:center;gap:4px;font-weight:800;display:inline-flex}.safety-list,.log-list{gap:10px;display:grid}.safety-list div{color:var(--text-strong);background:#f8fafc;border-radius:8px;grid-template-columns:22px 1fr;align-items:center;gap:10px;padding:12px;display:grid}.safety-list svg{color:#b45309}.log-item{gap:5px;display:grid}.log-item span{color:var(--text-muted);font-size:.78rem}.log-item--success{border-color:#bbf7d0}.log-item--blocked{border-color:#fecaca}.install-banner{color:#f7f3ff;background:linear-gradient(120deg,#7e14ff,#6d10ff);border-radius:10px;align-items:center;gap:12px;margin:12px 16px 0;padding:12px 16px;display:flex;box-shadow:0 12px 30px #6e10ff47}.install-icon{background:#ffffff2e;border-radius:9px;flex:none;place-items:center;width:38px;height:38px;display:grid}.install-copy{flex:auto;gap:2px;min-width:0;display:grid}.install-copy strong{font-size:.95rem}.install-copy span{color:#f7f3ffd1;font-size:.8rem}.install-copy span svg{vertical-align:-2px;display:inline}.install-cta{color:#6d10ff;cursor:pointer;background:#fff;border:none;border-radius:8px;flex:none;padding:8px 18px;font-weight:800}.install-close{color:#f7f3ff;cursor:pointer;background:#ffffff24;border:none;border-radius:8px;flex:none;place-items:center;width:32px;height:32px;display:grid}.log-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.log-feedback{border-radius:999px;padding:2px 8px;font-size:.72rem;font-weight:700}.log-feedback--resolved{color:#166534;background:#dcfce7}.log-feedback--unresolved{color:#854d0e;background:#fef9c3}.log-tools{color:var(--text-muted);word-break:break-all;font-size:.74rem}.approval-panel{background:#fffdf5;border-color:#fde68a;gap:12px;display:grid}.approval-panel p,.feedback-panel p{color:var(--text-muted);font-size:.9rem;line-height:1.5}.approval-steps{gap:8px;margin:0;padding:0;list-style:none;display:grid}.approval-steps li{background:#fef3c7;border-radius:8px;gap:2px;padding:10px 12px;display:grid}.approval-steps li strong{color:var(--text-strong);font-size:.9rem}.approval-steps li small{color:#92400e;font-size:.76rem}.approval-actions,.feedback-actions{flex-wrap:wrap;gap:10px;display:flex}.approval-actions .primary-button,.approval-actions .tool-button,.feedback-actions .primary-button,.feedback-actions .tool-button{flex:auto;justify-content:center}.feedback-panel{background:#f7fdff;border-color:#bae6fd;gap:12px;display:grid}@media (width<=1160px){.command-workspace,.operations-grid{grid-template-columns:1fr}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=720px){.topbar,.command-workspace,.operations-grid{padding-left:16px;padding-right:16px}.topbar{flex-direction:column;align-items:flex-start}.command-stage{min-height:auto;padding:22px}.pet-eyes{gap:18px;height:128px}.eye-shape{width:82px;height:58px}.eye-shape span{width:24px;height:34px;top:12px;left:29px}.device-grid,.routine-grid,.quick-grid{grid-template-columns:1fr}}
