:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:0;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}html,body{margin:0;padding:0;height:100%;overflow:hidden}#root{height:100%;width:100%;margin:0;padding:0;overflow:hidden}.App{height:100vh;width:100vw;position:fixed;top:0;left:0;overflow:hidden}.debug-panel{position:fixed;top:20px;right:20px;width:400px;max-height:500px;background:#fff;border-radius:8px;box-shadow:0 10px 30px #0000004d;z-index:3000;display:flex;flex-direction:column;overflow:hidden}.debug-header{padding:12px 16px;background:#f8f9fa;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;align-items:center}.debug-header h3{margin:0;font-size:14px;font-weight:600;color:#333}.debug-header button{background:none;border:none;font-size:18px;cursor:pointer;color:#666;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background .2s}.debug-header button:hover{background:#0000001a}.debug-content{flex:1;overflow-y:auto;padding:12px;font-family:monospace;font-size:11px;line-height:1.4;min-height:350px;max-height:650px}.debug-log{margin-bottom:4px;color:#333;word-break:break-all}.debug-panel>button{padding:8px 16px;background:#007bff;color:#fff;border:none;cursor:pointer;font-size:12px;transition:background .2s}.debug-panel>button:hover{background:#0056b3}@media (max-width: 768px){.debug-panel{width:calc(100vw - 40px);max-height:600px;top:10px;right:10px;left:10px}.debug-content{max-height:200px}}.logo{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.react:hover{filter:drop-shadow(0 0 2em #61dafbaa)}@keyframes logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (prefers-reduced-motion: no-preference){a:nth-of-type(2) .logo{animation:logo-spin infinite 20s linear}}.card{padding:2em}.read-the-docs{color:#888}.home-shell{height:100vh;width:100vw;display:flex;flex-direction:column;position:fixed;top:0;left:0;overflow:hidden;font-family:Roboto,Segoe UI,system-ui,-apple-system,sans-serif;-webkit-user-select:none;user-select:none;margin:0;padding:0;box-sizing:border-box}.home-shell *,.home-shell *:before,.home-shell *:after{box-sizing:border-box}.home-shell.gradient-blue{background:linear-gradient(135deg,#667eea,#764ba2)}.home-shell.gradient-sunset{background:linear-gradient(135deg,#ff6b6b,#feca57)}.home-shell.gradient-forest{background:linear-gradient(135deg,#2ecc71,#27ae60)}.home-shell.gradient-purple{background:linear-gradient(135deg,#8e44ad,#3498db)}.home-shell.gradient-minimal{background:linear-gradient(135deg,#bdc3c7,#2c3e50)}.status-bar{height:24px;background:#0000004d;color:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 12px;font-size:12px;font-weight:500;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.status-left,.status-right{display:flex;gap:8px;align-items:center}.display-area{flex:1;overflow:hidden;position:relative;display:flex;flex-direction:column}.home-screen{flex:1;display:flex;flex-direction:column;overflow:hidden}.wallpaper-area{flex:1;padding:20px;overflow-y:auto;display:flex;flex-direction:column}.app-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;padding:0;max-width:100%;margin:0 auto;flex:1;align-content:start}.sandbox-icon{display:flex;flex-direction:column;align-items:center;cursor:pointer;transition:all .2s ease;padding:8px;border-radius:12px}.sandbox-icon:hover,.sandbox-icon:active{transform:scale(.95);background:#ffffff1a}.icon-image{width:64px;height:64px;border-radius:16px;display:flex;align-items:center;justify-content:center;margin-bottom:8px;background:#ffffffe6;box-shadow:0 4px 12px #00000040;position:relative;overflow:hidden;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.icon-image:before{content:"";position:absolute;top:0;left:0;right:0;height:30%;background:linear-gradient(180deg,#ffffff4d,#fff0);border-radius:16px 16px 0 0}.icon-emoji{font-size:32px;position:relative;z-index:1}.icon-plus{font-size:36px;color:#666;font-weight:300;position:relative;z-index:1}.icon-label{font-size:12px;font-weight:500;color:#fff;text-align:center;line-height:1.2;max-width:80px;text-shadow:0 1px 2px rgba(0,0,0,.5)}.add-app .icon-image{background:#fffc;border:2px dashed rgba(255,255,255,.9)}.sandbox-fullscreen{height:100%;display:flex;flex-direction:column;background:#fff;position:absolute;top:0;left:0;right:0;bottom:0;z-index:100}.sandbox-header{height:50px;background:#f9f9f9f2;display:flex;align-items:center;padding:0 16px;border-bottom:1px solid rgba(0,0,0,.1);box-shadow:0 1px #0000000d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);position:sticky;top:0;z-index:10}.ios-header{padding:0;height:44px}.back-button{background:none;border:none;font-size:16px;cursor:pointer;color:#007aff;font-weight:500;padding:8px 12px;display:flex;align-items:center;gap:4px;border-radius:6px;transition:background .2s}.back-button:hover{background:#007aff1a}.sandbox-title{margin-left:16px;font-weight:500;font-size:16px;color:#000;flex:1;text-align:center;margin-right:40px}.sandbox-display{flex:1;border:none;overflow:hidden;background:#fff}.search-container{padding:8px 20px 20px;display:flex;justify-content:center}.search-bar-home{background:#ffffff26;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:20px;padding:8px 16px;display:flex;align-items:center;gap:8px;color:#fffc;font-size:14px;font-weight:500;min-width:280px;justify-content:center;border:1px solid rgba(255,255,255,.2)}.search-icon{font-size:16px;opacity:.7}.ios-dock{padding:8px 12px 32px;justify-content:center;position:sticky;bottom:0;z-index:10}.dock-container{background:#ffffff26;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:28px;padding:12px;display:flex;gap:16px;border:1px solid rgba(255,255,255,.2);box-shadow:0 8px 32px #0000004d}.dock-app{width:64px;height:64px;background:none;border:none;border-radius:50%;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;position:relative}.dock-app:hover{background:#ffffff1a;transform:scale(1.15)}.dock-app.active{background:#fff3;transform:scale(1.15)}.dock-app-icon{width:56px;height:56px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:26px;box-shadow:0 6px 16px #0000004d;transition:all .3s ease}.dock-app:hover .dock-app-icon{box-shadow:0 8px 20px #0006}.dock-app:nth-child(1) .dock-app-icon{background:linear-gradient(135deg,#667eea,#764ba2)}.dock-app:nth-child(2) .dock-app-icon{background:linear-gradient(135deg,#4facfe,#00f2fe)}.dock-app:nth-child(3) .dock-app-icon{background:linear-gradient(135deg,#fa709a,#fee140)}.dock,.dock-button,.dock-icon,.dock-label{display:none}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);padding:20px;overflow:hidden}.modal-content{background:#fff;border-radius:16px;max-width:min(600px,calc(100vw - 40px));max-height:min(80vh,calc(100vh - 40px));width:100%;display:flex;flex-direction:column;box-shadow:0 20px 40px #0000004d;overflow:hidden;animation:modalSlideIn .3s ease-out;position:relative}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-header{padding:4px 12px;border-bottom:1px solid #e9ecef;display:flex;justify-content:space-between;align-items:center}.modal-header h2{margin:0;font-size:20px;font-weight:600;color:#333}.close-button{background:none;border:none;font-size:24px;cursor:pointer;color:#666;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background .2s}.close-button:hover{background:#0000001a}.modal-body{flex:1;overflow-y:auto;padding:20px 24px}.modal-footer{padding:16px 24px;border-top:1px solid #e9ecef;display:flex;justify-content:space-between;align-items:center;gap:12px}.apps-modal .modal-body{padding:16px 24px 24px}.search-bar{margin-bottom:20px}.search-input{width:100%;padding:12px 16px;border:2px solid #e9ecef;border-radius:8px;font-size:16px;transition:border-color .2s}.search-input:focus{outline:none;border-color:#007bff}.sandbox-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}.sandbox-card{border:1px solid #e9ecef;border-radius:12px;padding:16px;cursor:pointer;transition:all .2s ease;background:#fff}.sandbox-card:hover{transform:translateY(-2px);box-shadow:0 8px 25px #00000026;border-color:#007bff}.sandbox-card.running{background:#e3f2fd;border-color:#2196f3}.sandbox-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.sandbox-emoji{font-size:24px}.delete-button{background:#ff6b6b1a;border:none;border-radius:6px;padding:6px 8px;cursor:pointer;font-size:14px;transition:background .2s}.delete-button:hover{background:#ff6b6b33}.sandbox-title{font-size:16px;font-weight:600;color:#333;display:flex;align-items:center;gap:8px}.running-indicator{font-size:14px;animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.sandbox-description{margin:0 0 12px;font-size:14px;color:#666;line-height:1.4}.sandbox-meta{font-size:12px;color:#999}.empty-state{text-align:center;color:#666;padding:40px 20px}.empty-state p:first-child{font-size:48px;margin:0 0 16px}.refresh-button{background:#007bff;color:#fff;border:none;padding:8px 16px;border-radius:6px;cursor:pointer;font-size:14px;transition:background .2s}.refresh-button:hover{background:#0056b3}.app-count{font-size:14px;color:#666}.chat-modal{max-height:70vh}.chat-messages{height:400px;overflow-y:auto;padding:16px 0;display:flex;flex-direction:column;gap:16px}.message{display:flex;flex-direction:column}.message.user{align-self:flex-end}.message.assistant{align-self:flex-start;width:100%}.message-content{padding:12px 16px;border-radius:18px;font-size:14px;line-height:1.4}.message-text{overflow-x:auto}.message.user .message-content{background:#007bff;color:#fff;border-bottom-right-radius:6px}.message.assistant .message-content{background:#f1f3f4;color:#333;border-bottom-left-radius:6px}.message-time{font-size:11px;color:#999;margin-top:4px;align-self:flex-end}.message.assistant .message-time{align-self:flex-start}.generated-app{margin-top:12px;padding:12px;background:#007bff1a;border-radius:8px;border-left:4px solid #007bff}.create-app-button{background:#28a745;color:#fff;border:none;padding:8px 16px;border-radius:6px;cursor:pointer;font-size:14px;margin-top:8px;transition:background .2s}.create-app-button:hover{background:#218838}.typing-indicator{font-style:italic;color:#666;animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.chat-input{display:flex;flex-direction:column;gap:8px;width:100%}.chat-input textarea{flex:1;padding:12px 16px;border:2px solid #e9ecef;border-radius:16px;font-size:14px;transition:border-color .2s,height .2s;min-height:60px;max-height:200px;resize:none;font-family:inherit}.chat-input textarea:focus{outline:none;border-color:#007bff}.fullscreen-input{position:fixed;top:0;left:0;right:0;bottom:0;z-index:2000;background-color:#000000e6;padding:20px;display:flex;flex-direction:column}.chat-input textarea.fullscreen{flex:1;min-height:calc(100vh - 180px);max-height:none;font-size:16px;border-radius:8px;background-color:#1e1e1e;color:#f0f0f0;border-color:#444;box-shadow:0 4px 20px #00000080}.fullscreen-button{background:#6c757d;border:none;border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:16px;transition:all .2s;color:#fff}.fullscreen-button:hover{background:#5a6268;transform:scale(1.05)}.input-controls{display:flex;justify-content:space-between;align-items:center;padding:0 4px}.fullscreen-input .input-controls{padding:12px 4px}.char-count{font-size:12px;color:#6c757d}.fullscreen-input .char-count{color:#f0f0f0}.char-count.warning{color:#dc3545;font-weight:700}.send-button{background:#007bff;border:none;border-radius:50%;width:44px;height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:16px;transition:all .2s}.send-button:hover:not(:disabled){background:#0056b3;transform:scale(1.05)}.send-button:disabled{background:#ccc;cursor:not-allowed}.settings-modal{max-height:80vh}.settings-content{display:flex;flex-direction:column;gap:24px}.settings-section{border-bottom:1px solid #e9ecef;padding-bottom:20px}.settings-section:last-child{border-bottom:none;padding-bottom:0}.settings-section h3{margin:0 0 16px;font-size:16px;font-weight:600;color:#333}.setting-group{margin-bottom:16px}.setting-group:last-child{margin-bottom:0}.setting-group label{display:block;font-weight:500;margin-bottom:8px;color:#555}.wallpaper-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:8px}.wallpaper-option{width:60px;height:40px;border-radius:8px;cursor:pointer;border:3px solid transparent;transition:all .2s;position:relative;display:flex;align-items:center;justify-content:center}.wallpaper-option:hover{transform:scale(1.05)}.wallpaper-option.selected{border-color:#007bff;box-shadow:0 0 0 2px #007bff33}.check-mark{color:#fff;font-weight:700;text-shadow:0 1px 2px rgba(0,0,0,.7);font-size:18px}.api-key-input{display:flex;gap:8px;align-items:center}.api-key-input input{flex:1;padding:10px 12px;border:2px solid #e9ecef;border-radius:6px;font-size:14px}.toggle-password{background:#f8f9fa;border:2px solid #e9ecef;border-radius:6px;padding:10px 12px;cursor:pointer;font-size:16px;transition:background .2s}.toggle-password:hover{background:#e9ecef}.preset-prompts{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}.preset-prompt{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#f8f9fa;border-radius:6px;font-size:14px;color:#3b3b3b}.remove-prompt{background:#dc3545;color:#fff;border:none;border-radius:50%;width:24px;height:24px;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center;transition:background .2s}.remove-prompt:hover{background:#c82333}.add-prompt{display:flex;gap:8px}.add-prompt input{flex:1;padding:8px 12px;border:2px solid #e9ecef;border-radius:6px;font-size:14px}.add-prompt button{background:#28a745;color:#fff;border:none;padding:8px 16px;border-radius:6px;cursor:pointer;font-size:14px;transition:background .2s}.add-prompt button:hover:not(:disabled){background:#218838}.add-prompt button:disabled{background:#ccc;cursor:not-allowed}.data-actions{display:flex;gap:12px;margin-bottom:8px}.export-button,.clear-button{padding:10px 16px;border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;transition:all .2s}.export-button{background:#007bff;color:#fff}.export-button:hover{background:#0056b3}.clear-button{background:#dc3545;color:#fff}.clear-button:hover{background:#c82333}.about-info{font-size:14px;line-height:1.5;color:#3b3b3b}.about-info ul{margin:8px 0;padding-left:20px}.about-info li{margin-bottom:4px}.close-settings{background:#007bff;color:#fff;border:none;padding:10px 24px;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;transition:background .2s;margin-left:auto}.close-settings:hover{background:#0056b3}@media (max-width: 768px){.modal-overlay{padding:10px}.modal-content{max-height:calc(100vh - 20px)}.app-grid{grid-template-columns:repeat(4,1fr);gap:20px;padding:20px}.sandbox-grid{grid-template-columns:1fr}.wallpaper-grid{grid-template-columns:repeat(3,1fr)}.data-actions{flex-direction:column}.wallpaper-area{padding-bottom:20px}.ios-dock{padding:6px 10px 24px;position:sticky;bottom:0}.dock-container{padding:10px;gap:12px}.dock-app{width:58px;height:58px}.dock-app-icon{width:50px;height:50px;font-size:22px}.search-bar-home{min-width:240px;padding:6px 14px;font-size:13px}}@media (max-width: 480px){.modal-overlay{padding:5px}.modal-content{border-radius:12px;max-height:calc(100vh - 80px)}.app-grid{grid-template-columns:repeat(4,1fr);gap:16px;padding:16px}.wallpaper-area{padding-bottom:16px}.ios-dock{padding:4px 8px 20px;position:fixed;bottom:0;left:0;right:0;z-index:10}.dock-container{padding:8px;gap:10px;border-radius:24px;max-width:70%;margin:0 auto}.dock-app{width:52px;height:52px}.dock-app-icon{width:44px;height:44px;font-size:20px}.search-container{padding:6px 16px 16px;z-index:9}.search-bar-home{min-width:200px;padding:6px 12px;font-size:12px;border-radius:16px}.search-icon{font-size:14px}.display-area{padding-bottom:0}.sandbox-fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;z-index:999;background:#fff}.ios-header{height:44px;padding:0 8px;position:fixed;top:0;left:0;right:0;z-index:1000}.sandbox-display{margin-top:44px;height:calc(100% - 44px);width:100%;position:absolute;top:0;left:0;overflow:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 480px) and (orientation: portrait){.ios-dock{padding-bottom:max(20px,env(safe-area-inset-bottom))}}@media (max-height: 600px){.modal-content{max-height:90vh}.modal-header{padding:12px 12px 8px}.modal-body{padding:16px 24px}.ios-dock{padding:8px 16px}.dock-app{width:50px;height:50px}.dock-app-icon{width:40px;height:40px}}@media (max-height: 500px){.modal-content{max-height:95vh}.modal-header{padding:12px 12px 8px}.modal-body,.modal-footer{padding:12px 24px}.ios-dock{padding:6px 12px}.dock-app{width:45px;height:45px}.dock-app-icon{width:35px;height:35px}}@media (min-height: 800px){.modal-content{max-height:70vh}.ios-dock{padding:16px 20px}.dock-app{width:65px;height:65px}.dock-app-icon{width:55px;height:55px}}@media (min-height: 1000px){.modal-content{max-height:60vh}.ios-dock{padding:20px 24px}.dock-app{width:70px;height:70px}.dock-app-icon{width:60px;height:60px}}.message.streaming .message-content{border-left:3px solid #007bff}.streaming-indicator{display:inline-block;margin-left:4px;font-weight:700;color:#007bff;animation:blink 1s step-end infinite}@keyframes blink{0%,to{opacity:1}50%{opacity:0}}.planning-toggle{margin-top:12px}.planning-toggle-button{background:#f1f3f4;border:none;border-radius:4px;padding:6px 12px;font-size:13px;color:#007bff;cursor:pointer;transition:background .2s;display:inline-flex;align-items:center;gap:4px}.planning-toggle-button:hover{background:#e3e3e3}.planning-drawer{margin-top:12px;padding:12px;background:#f7f7f7b3;border-radius:8px;border-left:4px solid #6c757d;font-size:13px;overflow:auto;max-height:300px}.planning-drawer h4{margin-top:0;margin-bottom:8px;font-size:14px;color:#495057}.planning-content{margin:0;white-space:pre-wrap;font-family:inherit;font-size:13px;color:#495057;line-height:1.5;overflow:auto}
