*{box-sizing:border-box}html,body{height:100%}body{margin:0;font-family:Inter,Arial,sans-serif;background:#0b0b0f;color:#f4f4f5}a{color:inherit;text-decoration:none}button,textarea,input,select{font:inherit}.app-shell{min-height:100vh;display:grid;grid-template-columns:292px 1fr;background:#0b0b0f}.sidebar{height:100vh;position:sticky;top:0;display:flex;flex-direction:column;gap:18px;padding:14px;background:#111115;border-right:1px solid #24242b}.brand-row{display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:11px;padding:8px;border-radius:14px}.brand-mark{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#f4f4f5;color:#08080a;font-weight:950}.brand-copy strong,.brand-copy small{display:block}.brand-copy small,.topbar span,.card p,.store-card p,.hero p,.store-hero p{color:#a1a1aa}.icon-btn{width:34px;height:34px;border:1px solid #2c2c34;border-radius:11px;background:#18181d;color:#f4f4f5}.new-chat{display:block;padding:12px 13px;border:1px solid #2b2b33;border-radius:14px;background:#1b1b21;font-weight:750}.nav-label{margin:8px;color:#71717a;text-transform:uppercase;letter-spacing:.12em;font-size:11px;font-weight:850}.nav-list{display:grid;gap:4px}.nav-list a{padding:11px 12px;border-radius:12px;color:#c9c9d1;font-size:14px}.nav-list a:hover,.nav-list a.active{background:#23232a;color:#fff}.sidebar-bottom{margin-top:auto}.mini-card{padding:13px;border:1px solid #2b2b33;border-radius:16px;background:#17171c}.mini-card strong,.mini-card span{display:block}.mini-card span{color:#8d8d99;font-size:12px;margin-top:4px}.workspace{min-width:0;display:flex;flex-direction:column;height:100vh}.topbar{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid #202027;background:#0b0b0f}.topbar strong{display:block;font-size:14px}.model-pill{border:1px solid #2d2d36;background:#17171d;color:#d9d9df;border-radius:999px;padding:8px 12px;font-size:13px}.main-panel{flex:1;overflow:auto;padding:0}.chat-home{min-height:calc(100vh - 130px);display:flex;flex-direction:column;align-items:center;justify-content:center;max-width:920px;margin:0 auto;text-align:center}.hero-orb{width:74px;height:74px;border-radius:24px;display:grid;place-items:center;margin-bottom:22px;background:#f4f4f5;color:#09090b;font-size:30px;font-weight:950}.eyebrow{margin:0 0 12px;color:#9b9baa;text-transform:uppercase;letter-spacing:.16em;font-size:12px;font-weight:900}.chat-home h1{font-size:clamp(42px,7vw,76px);letter-spacing:-.07em;line-height:.95;margin:0 0 16px}.subline{max-width:700px;margin:0 auto 28px;color:#a1a1aa;font-size:17px;line-height:1.7}.prompt-panel{width:min(780px,100%);background:#19191f;border:1px solid #30303a;border-radius:28px;padding:14px}.prompt-panel textarea{width:100%;min-height:118px;resize:vertical;border:0;outline:0;background:transparent;color:#fff;padding:12px;font-size:16px}.prompt-actions{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #292932;padding:12px 8px 0;color:#85858f;font-size:13px}.prompt-actions button{border:0;border-radius:14px;padding:10px 16px;background:#f4f4f5;color:#08080a;font-weight:900}.quick-grid,.grid,.admin-grid,.role-grid,.store-grid{max-width:1120px;margin:18px auto 0;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.quick-card,.card,.store-card,.table-card{background:#15151b;border:1px solid #2b2b34;border-radius:22px;padding:20px}.quick-card span{display:block;color:#85858f;font-size:13px;margin-top:6px}.hero,.store-hero{max-width:1120px;margin:0 auto 22px;background:#15151b;border:1px solid #2b2b34;border-radius:28px;padding:34px;text-align:left}.store-hero{display:grid;grid-template-columns:1fr 260px;gap:24px}.hero h1,.store-hero h1{font-size:clamp(34px,5vw,58px);line-height:1;margin:0 0 14px;letter-spacing:-.055em}.actions,.store-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.button{display:inline-flex;align-items:center;justify-content:center;padding:12px 15px;border-radius:14px;background:#f4f4f5;color:#08080a;font-weight:900;border:0}.button.secondary{background:#202027;color:#f4f4f5;border:1px solid #33333c}.store-toolbar{max-width:1120px;margin:28px auto 12px;display:flex;align-items:center;justify-content:space-between;color:#b9b9c3}.store-thumb{height:150px;border-radius:18px;background:#202027;display:grid;place-items:center;margin-bottom:14px}.store-thumb span{width:56px;height:56px;border-radius:18px;background:#f4f4f5;color:#09090b;display:grid;place-items:center;font-weight:950;font-size:24px}.store-meta{display:flex;justify-content:space-between;color:#a1a1aa;font-size:13px}.store-meta strong{color:#fff}.store-stat{border:1px solid #30303a;border-radius:22px;background:#101015;padding:20px}.store-stat strong,.store-stat span{display:block}.store-stat span{color:#8f8f9b;margin:5px 0 12px}.panel-form,.upload-drop{display:grid;gap:14px;max-width:680px;margin-top:20px}.panel-form label{display:grid;gap:7px;color:#c9c9d1;font-weight:750}.panel-form input,.panel-form select{width:100%;border:1px solid #30303a;background:#101015;color:#fff;border-radius:14px;padding:13px}.upload-drop{border:1px dashed #464653;border-radius:24px;background:#101015;padding:28px}.auth-screen{min-height:calc(100vh - 130px);display:grid;place-items:center}.auth-card{width:min(480px,100%);background:#15151b;border:1px solid #2b2b34;border-radius:28px;padding:28px}.auth-card h1{font-size:42px;letter-spacing:-.05em;margin:0 0 10px}.muted-link{display:inline-block;margin-top:14px;color:#a1a1aa}.table-card{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:14px;border-bottom:1px solid #292932;text-align:left;vertical-align:middle}th{color:#9b9baa;font-size:12px;text-transform:uppercase;letter-spacing:.12em}.table-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.inline-form{display:inline-flex;margin:0}.inline-form .button{padding:9px 12px;font-size:13px}.auth-modal[hidden]{display:none}.auth-modal{position:fixed;inset:0;z-index:50;display:grid;place-items:center}.auth-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(10px)}.auth-dialog{position:relative;width:min(460px,calc(100% - 28px));background:#15151b;border:1px solid #34343d;border-radius:26px;padding:22px;box-shadow:0 30px 100px rgba(0,0,0,.55)}.auth-close{position:absolute;right:14px;top:14px;width:34px;height:34px;border:1px solid #30303a;border-radius:12px;background:#101015;color:#fff}.auth-tabs{display:flex;gap:8px;margin-bottom:18px}.auth-tabs button{flex:1;border:1px solid #30303a;border-radius:14px;background:#101015;color:#a1a1aa;padding:11px}.auth-tabs button.active{background:#f4f4f5;color:#08080a}.auth-form{display:grid;gap:13px}.auth-form h2{font-size:30px;margin:0 0 4px;letter-spacing:-.04em}.auth-form label{display:grid;gap:7px;color:#c9c9d1}.auth-form input,.auth-form select{border:1px solid #30303a;background:#101015;color:#fff;border-radius:14px;padding:13px}.sms-shell{height:calc(100vh - 58px);max-width:860px;margin:0 auto;display:grid;grid-template-rows:auto 1fr auto;gap:0;background:#0f0f14;border-left:1px solid #202027;border-right:1px solid #202027}.sms-header{height:70px;display:flex;align-items:center;gap:12px;padding:12px 18px;border-bottom:1px solid #24242c;background:rgba(18,18,23,.92);position:sticky;top:0;z-index:2}.sms-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#f4f4f5;color:#08080a;font-weight:950}.sms-header strong,.sms-header span{display:block}.sms-header span{font-size:12px;color:#8f8f9b;margin-top:3px}.sms-thread{overflow:auto;padding:20px 16px 24px;display:flex;flex-direction:column;gap:10px}.sms-row{display:flex;width:100%}.sms-row.user{justify-content:flex-end}.sms-row.assistant{justify-content:flex-start}.sms-bubble{max-width:min(72%,620px);border-radius:22px;padding:10px 13px;text-align:left;line-height:1.35;box-shadow:0 8px 24px rgba(0,0,0,.18)}.sms-bubble small{display:block;font-size:10px;color:rgba(255,255,255,.62);margin-bottom:4px}.sms-bubble p{margin:0;white-space:pre-wrap}.sms-row.user .sms-bubble{background:#f4f4f5;color:#09090b;border-bottom-right-radius:7px}.sms-row.user .sms-bubble small{color:rgba(0,0,0,.55)}.sms-row.assistant .sms-bubble{background:#24242d;color:#f4f4f5;border-bottom-left-radius:7px}.sms-empty{margin:auto;display:grid;place-items:center;text-align:center;color:#8f8f9b;gap:7px}.sms-empty strong{color:#fff}.sms-empty span{font-size:14px}.sms-composer{display:flex;gap:10px;align-items:flex-end;padding:12px;border-top:1px solid #24242c;background:#111116}.sms-composer textarea{flex:1;min-height:46px;max-height:160px;resize:vertical;border:1px solid #30303a;background:#1a1a21;color:#fff;border-radius:22px;padding:12px 14px;outline:none}.sms-composer button{border:0;border-radius:20px;padding:12px 16px;background:#f4f4f5;color:#08080a;font-weight:950}.ai-feedback-card{max-width:860px;margin:14px auto;background:#15151b;border:1px solid #2b2b34;border-radius:22px;padding:16px;display:grid;gap:12px}.ai-feedback-card strong,.ai-feedback-card span{display:block}.ai-feedback-card span{color:#8f8f9b;font-size:13px;margin-top:4px}.ai-feedback-card form{display:grid;gap:10px}.ai-feedback-card textarea{min-height:76px;resize:vertical;border:1px solid #30303a;background:#101015;color:#fff;border-radius:16px;padding:12px}.feedback-actions{display:flex;gap:10px}.feedback-actions input{flex:1;border:1px solid #30303a;background:#101015;color:#fff;border-radius:14px;padding:10px}.feedback-actions button{border:0;border-radius:14px;padding:10px 14px;background:#f4f4f5;color:#08080a;font-weight:950}.compact-debug{max-width:860px;margin:10px auto 18px;background:#15151b;border:1px solid #2b2b34;border-radius:18px;padding:12px;color:#aaa}.compact-debug summary{cursor:pointer;color:#fff;font-weight:800}.compact-debug p{margin:8px 0}.sms-quick{max-width:860px;margin:12px auto 24px}@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{height:auto;position:relative}.workspace{height:auto}.quick-grid,.grid,.admin-grid,.role-grid,.store-grid,.store-hero{grid-template-columns:1fr}.main-panel{padding:0}.sms-shell{height:calc(100vh - 260px);border:0}.sms-bubble{max-width:86%}}