*{box-sizing:border-box} :root{color-scheme:dark;--bg:#111116;--panel:#1b1b23;--muted:#9a99a8;--line:#30303a;--accent:#c6a5ff;--text:#f6f3fb} body{margin:0;background:var(--bg);color:var(--text);font:15px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.app{max-width:520px;margin:auto;min-height:100dvh;padding:env(safe-area-inset-top) 18px calc(90px + env(safe-area-inset-bottom));}header,.section-head,.chat-top,.page-top{display:flex;align-items:center;justify-content:space-between}header{padding:18px 0 24px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--muted);font-weight:700}h1{font-size:24px;margin:5px 0 0;letter-spacing:-.7px}h2{font-size:30px;line-height:1.12;margin:12px 0}h2 em{color:var(--accent);font-style:normal}h3{font-size:18px;margin:0 0 4px}.icon-btn,.back{background:var(--panel);border:1px solid var(--line);color:white;border-radius:13px;width:42px;height:42px;font-size:20px}.hero{background:linear-gradient(135deg,#282333,#191923 70%);border:1px solid #393244;border-radius:24px;padding:23px;position:relative;overflow:hidden;min-height:190px}.hero p{color:#c2bfcc;line-height:1.5;max-width:275px;margin-bottom:0}.pill{font-size:10px;color:#ddcaff;background:#493b5d;padding:7px 10px;border-radius:20px}.orb{position:absolute;right:18px;top:50px;font-size:75px;color:#c7a7ff;opacity:.55}.section-head{margin:28px 0 15px}.section-head p,.chat-person span{color:var(--muted);font-size:12px;margin:0}.primary,.secondary{border:0;border-radius:13px;padding:14px 18px;font-weight:700}.primary{background:var(--accent);color:#21172e}.small{padding:10px 14px}.full{width:100%;margin-top:10px}.character-list{display:grid;gap:10px}.character{display:flex;align-items:center;gap:13px;background:var(--panel);border:1px solid var(--line);padding:12px;border-radius:17px;text-align:left;color:var(--text);width:100%}.avatar{width:54px;height:54px;border-radius:15px;background:linear-gradient(145deg,#59456e,#292633);display:grid;place-items:center;color:#e0caff;font-size:23px;overflow:hidden;flex:none}.avatar img{width:100%;height:100%;object-fit:cover}.char-info{flex:1}.char-info strong{display:block;font-size:15px}.char-info span{font-size:12px;color:var(--muted)}.arrow{color:var(--muted);font-size:22px}.empty{padding:30px 15px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:17px}.note,.hint,.prototype-warning{color:var(--muted);font-size:11px;line-height:1.5}.note{margin:20px 2px}.hidden{display:none!important}nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(520px,100%);padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:#17171df2;border-top:1px solid var(--line);display:flex;justify-content:space-around;backdrop-filter:blur(16px)}nav button{background:none;border:0;color:var(--muted);font-size:20px;display:grid;gap:3px;justify-items:center}nav span{font-size:10px}nav .nav-active{color:var(--accent)}.page-top{justify-content:flex-start;gap:14px;margin:18px 0 25px}.page-top h2{font-size:25px;margin:4px 0}.create-form{display:grid;gap:15px}.create-form label{display:grid;gap:7px;font-size:13px;color:#d8d4df}.create-form input,.create-form select,.create-form textarea,.composer textarea{width:100%;border:1px solid var(--line);border-radius:12px;background:#1b1b23;color:var(--text);padding:13px;font:inherit;outline:none}.create-form textarea{resize:vertical}.two{display:grid;grid-template-columns:100px 1fr;gap:12px}.secondary{background:#292633;color:var(--text);border:1px solid var(--line)}.settings-card{padding:17px;background:var(--panel);border:1px solid var(--line);border-radius:17px;margin-bottom:13px}.settings-card p{color:var(--muted);font-size:13px;line-height:1.55}.import-label{display:block;padding:13px;color:var(--accent);font-size:13px}.import-label input{display:block;margin-top:8px;width:100%}.chat-top{justify-content:flex-start;gap:10px;padding:12px 0}.chat-person{flex:1;display:grid;gap:4px}.small-avatar{width:42px;height:42px;border-radius:50%}.memory-banner{text-align:center;color:#cbb2ed;background:#292333;border-radius:10px;padding:8px;font-size:11px;margin:10px 0}.messages{height:calc(100dvh - 270px);min-height:260px;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:12px 0}.bubble{max-width:85%;padding:12px 14px;border-radius:17px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.user{align-self:flex-end;background:#634b7e;color:white;border-bottom-right-radius:5px}.bubble.bot{align-self:flex-start;background:#24232d;border:1px solid var(--line);border-bottom-left-radius:5px}.composer{display:flex;gap:9px;align-items:flex-end}.composer textarea{resize:none;max-height:120px}.send{height:46px;width:46px;flex:none;border:0;border-radius:14px;background:var(--accent);font-size:23px;color:#21172e}.prototype-warning{margin-top:8px;text-align:center;font-size:10px}.back{font-size:28px;line-height:1}

.toggle{display:flex;align-items:center;gap:9px;margin-top:16px;color:#ded6e9;font-size:13px}.toggle input{accent-color:#c6a5ff;width:18px;height:18px}#modelStatus,#deviceReport{overflow-wrap:anywhere}
