:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#171923;background:#f6f7fb;font-synthesis:none;--surface:#fff;--surface-2:#f0f2f7;--line:#dfe3ec;--text:#171923;--muted:#667085;--accent:#5b3df5;--accent-dark:#4428cf;--danger:#c92a2a;--success:#16794b;--shadow:0 14px 40px rgba(35,42,65,.12);--safe-bottom:env(safe-area-inset-bottom,0px)}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{background:var(--surface-2);color:var(--text)}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}.boot-screen{min-height:100vh;min-height:100dvh;display:grid;place-content:center;text-align:center;gap:14px;color:var(--muted)}.brand-mark{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(145deg,#694dff,#3c24c7);color:white;font-weight:800;letter-spacing:-1px;box-shadow:0 10px 28px rgba(91,61,245,.3);margin:auto}.app-shell{min-height:100vh;min-height:100dvh;padding-bottom:calc(82px + var(--safe-bottom))}.topbar{position:sticky;top:0;z-index:20;background:rgba(246,247,251,.94);backdrop-filter:blur(14px);border-bottom:1px solid rgba(223,227,236,.8);padding:calc(10px + env(safe-area-inset-top,0px)) 16px 10px}.topbar-row{max-width:900px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand-inline{display:flex;align-items:center;gap:10px}.brand-inline .brand-mark{width:42px;height:42px;border-radius:13px;margin:0;font-size:14px}.brand-inline h1{font-size:19px;line-height:1.1;margin:0}.brand-inline small{display:block;color:var(--muted);margin-top:3px}.status-pill{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:7px 10px;font-size:12px;color:var(--muted);white-space:nowrap}.status-pill.online:before,.status-pill.offline:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px;background:#28a66a}.status-pill.offline:before{background:#e39024}.content{max-width:900px;margin:auto;padding:16px}.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:14px}.search{flex:1;position:relative}.search input{width:100%;padding:13px 14px 13px 42px;background:var(--surface);border:1px solid var(--line);border-radius:14px;min-height:48px}.search:before{content:"⌕";position:absolute;left:15px;top:10px;font-size:22px;color:var(--muted)}.button{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:13px;min-height:46px;padding:10px 15px;font-weight:650;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}.button:hover{border-color:#b8bfce}.button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid rgba(91,61,245,.25);outline-offset:2px}.button.primary{background:var(--accent);border-color:var(--accent);color:#fff}.button.primary:hover{background:var(--accent-dark)}.button.danger{color:var(--danger)}.button.ghost{border-color:transparent;background:transparent}.button.small{min-height:40px;padding:7px 11px;font-size:13px}.button.full{width:100%}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 12px}.section-heading h2{font-size:18px;margin:0}.muted{color:var(--muted)}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.load-more{display:flex;justify-content:center;padding:16px 0 4px}.fine-print{font-size:12px;color:var(--muted);line-height:1.5}.prompt-grid{display:grid;gap:12px}.prompt-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:15px;box-shadow:0 3px 13px rgba(35,42,65,.04)}.prompt-card-head{display:flex;justify-content:space-between;gap:12px}.prompt-card h3{font-size:16px;margin:0 0 7px;overflow-wrap:anywhere}.prompt-preview{white-space:pre-wrap;color:#4f566b;line-height:1.45;max-height:4.4em;overflow:hidden;margin:0}.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}.chip{border-radius:999px;background:#f0edff;color:#5036d6;padding:5px 8px;font-size:11px;font-weight:650}.chip.neutral{background:#eef1f5;color:#5b6475}.card-actions{display:flex;align-items:center;gap:7px;margin-top:13px}.card-actions .button:first-child{flex:1}.star{border:0;background:transparent;font-size:23px;min-width:44px;min-height:44px;color:#9aa1b2}.star.active{color:#e0a100}.empty{background:var(--surface);border:1px dashed #cbd1de;border-radius:18px;padding:28px 20px;text-align:center;color:var(--muted)}.bottom-nav{position:fixed;z-index:30;left:0;right:0;bottom:0;background:rgba(255,255,255,.96);backdrop-filter:blur(16px);border-top:1px solid var(--line);padding:7px 8px calc(7px + var(--safe-bottom));display:grid;grid-template-columns:repeat(5,1fr)}.nav-button{border:0;background:transparent;color:var(--muted);min-height:55px;border-radius:12px;padding:6px 3px;font-size:11px;font-weight:650}.nav-button span{display:block;font-size:20px;margin-bottom:2px}.nav-button.active{color:var(--accent);background:#f0edff}.modal-backdrop{position:fixed;z-index:60;inset:0;background:rgba(18,22,34,.54);display:flex;align-items:flex-end;justify-content:center}.modal{background:var(--surface);width:100%;max-width:760px;max-height:94vh;max-height:94dvh;overflow:auto;border-radius:24px 24px 0 0;padding:18px 18px calc(18px + var(--safe-bottom));box-shadow:var(--shadow)}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;position:sticky;top:-18px;background:var(--surface);padding:14px 0 10px;z-index:2}.modal-head h2{margin:0;font-size:19px}.close-box{width:44px;height:44px;border:0;background:transparent;border-radius:12px;font-size:25px;color:#687083}.form-grid{display:grid;gap:13px}label{display:grid;gap:7px;font-size:13px;font-weight:650;color:#343a4b}input,textarea,select{width:100%;border:1px solid var(--line);background:#fff;color:var(--text);border-radius:13px;padding:12px 13px;min-height:46px}textarea{resize:vertical;line-height:1.45}.prompt-editor-text{min-height:250px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px}.form-actions{display:flex;gap:10px;position:sticky;bottom:-18px;background:var(--surface);padding:12px 0 2px}.form-actions .primary{flex:1}.panel{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px;margin-bottom:12px}.panel h2,.panel h3{margin-top:0}.row{display:flex;gap:10px;align-items:center}.row>*{min-width:0}.row .grow{flex:1}.category-row,.queue-row{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--line)}.category-row:last-child,.queue-row:last-child{border-bottom:0}.category-row .grow,.queue-row .grow{flex:1}.notice{border-radius:13px;padding:11px 13px;margin:10px 0;font-size:13px}.notice.error{background:#fff0f0;color:#9c1c1c;border:1px solid #ffc9c9}.notice.success{background:#eaf8f1;color:#146b43;border:1px solid #b9e7cf}.notice.warning{background:#fff7e6;color:#8a5b00;border:1px solid #ffe0a3}.toast{position:fixed;z-index:100;left:50%;bottom:calc(90px + var(--safe-bottom));transform:translateX(-50%);background:#1c2130;color:#fff;padding:11px 16px;border-radius:999px;box-shadow:var(--shadow);font-size:13px;max-width:90%;text-align:center}.install-overlay{position:fixed;z-index:90;inset:0;background:linear-gradient(160deg,#f9f9ff,#eeebff);display:grid;place-items:center;padding:22px}.install-card{width:min(100%,430px);background:rgba(255,255,255,.94);border:1px solid rgba(207,204,236,.9);border-radius:26px;padding:28px 22px 22px;text-align:center;box-shadow:0 24px 70px rgba(54,42,112,.18);position:relative}.install-card .close-box{position:absolute;right:8px;top:8px;color:#7e8493}.install-card h2{margin:18px 0 8px}.install-card p{line-height:1.55}.install-actions{display:grid;gap:9px;margin-top:20px}.manual-steps{text-align:left;background:#f4f2ff;border-radius:14px;padding:12px 14px;line-height:1.7}.login-screen{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:24px;background:linear-gradient(160deg,#f9f9ff,#efedff)}.login-card{width:min(100%,400px);background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:25px;box-shadow:var(--shadow)}.login-card h1{text-align:center;margin:16px 0 6px}.import-preview{display:grid;gap:10px;margin-top:14px}.import-item{background:#f8f9fc;border:1px solid var(--line);border-radius:14px;padding:12px}.import-item textarea{min-height:120px}.installer-body{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:22px;background:linear-gradient(160deg,#f9f9ff,#efedff)}.installer-card{width:min(100%,500px);background:#fff;border:1px solid var(--line);border-radius:24px;padding:25px;box-shadow:var(--shadow)}.installer-card h1{text-align:center;margin-bottom:5px}.check-list{margin:18px 0}.check-row{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line);font-size:13px}.pass{color:var(--success)}.fail{color:var(--danger)}@media(min-width:700px){.prompt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-backdrop{align-items:center;padding:24px}.modal{border-radius:24px;max-height:90vh;max-height:90dvh}.bottom-nav{left:50%;right:auto;width:620px;transform:translateX(-50%);border:1px solid var(--line);border-bottom:0;border-radius:20px 20px 0 0}.content{padding-top:22px}}@media(prefers-reduced-motion:no-preference){.prompt-card,.button{transition:transform .15s ease,border-color .15s ease,background .15s ease}.button:active{transform:scale(.98)}}
.button:disabled{cursor:not-allowed;opacity:.58}.row.wrap{flex-wrap:wrap}.queue-row{align-items:flex-start;flex-wrap:wrap}.queue-actions{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}.notice.compact{margin:7px 0 0;padding:8px 10px}.diagnostics-output{white-space:pre-wrap;overflow-wrap:anywhere;background:#f8f9fc;border:1px solid var(--line);border-radius:12px;padding:10px;max-height:360px;overflow:auto}@media(max-width:520px){.queue-row{display:block}.queue-actions{justify-content:flex-start;margin-top:10px}.queue-actions .button{flex:1 1 auto}.status-pill{max-width:42%;overflow:hidden;text-overflow:ellipsis}.card-actions{flex-wrap:wrap}.card-actions .button:first-child{flex-basis:100%}}
