:root{color-scheme:dark;--bg:#000;--card:#1b1b1e;--line:#303035;--text:#f7f7f8;--muted:#8b8b91;--accent:#c4abff;--accent-ink:#211535;--chat-bg:#1b1b22;--own:#6a469f;--other:#29292f;--wallpaper:none;--wallpaper-opacity:.36;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;min-width:320px;min-height:100%;background:#000;color:var(--text)}body{min-height:100vh}button,input{font:inherit}[hidden]{display:none!important}button{color:inherit}.app{width:min(720px,100%);min-height:100vh;margin:auto;background:#000;padding-bottom:max(28px,env(safe-area-inset-bottom))}
.topbar{height:62px;padding:env(safe-area-inset-top) 18px 0;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;position:sticky;top:0;z-index:20;background:rgba(0,0,0,.86);backdrop-filter:blur(18px)}.brand{justify-self:center;font-size:17px;font-weight:750;letter-spacing:-.02em;display:flex;align-items:center;gap:7px}.spark,.big-spark{color:var(--accent)}.back,.help{border:0;background:transparent;width:40px;height:40px;cursor:pointer}.back{font-size:37px;font-weight:250;text-align:left;line-height:1}.help{justify-self:end;border:1px solid #2b2b2f;border-radius:50%;font-weight:700;color:#aaa}
.screen{padding:18px 16px 32px}.hero,.editor-head,.catalog-head{padding:18px 4px 23px}.eyebrow{color:var(--accent);font-weight:750;font-size:12px;letter-spacing:.05em}.hero h1,.editor-head h1,.catalog-head h1{font-size:36px;line-height:1.05;letter-spacing:-.045em;margin:7px 0 8px}.hero p,.catalog-head p{color:var(--muted);font-size:15px;margin:0;line-height:1.45}
.create-grid{display:grid;gap:12px}.mode-card,.upload-card{width:100%;border:0;border-radius:24px;background:var(--card);padding:20px;display:grid;grid-template-columns:58px 1fr 22px;align-items:center;gap:15px;text-align:left;cursor:pointer;min-height:118px}.mode-card:active,.upload-card:active,.theme-card:active{transform:scale(.985)}.mode-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:#2b2b30;font-size:27px}.image-mode .mode-icon{background:linear-gradient(145deg,#49385f,#24232a)}.color-mode .mode-icon{background:linear-gradient(145deg,#372660,#232329)}.mode-copy,.upload-card>span:nth-child(2){display:grid;gap:7px}.mode-copy b,.upload-card b{font-size:18px}.mode-copy small,.upload-card small{color:var(--muted);font-size:12px;line-height:1.45}.arrow{color:#707075;font-size:28px;font-weight:300}.privacy-note{color:#616166;text-align:center;font-size:11px;line-height:1.45;margin:22px 20px}.privacy-note span{color:var(--accent)}
.editor{padding-bottom:96px}.upload-section{margin-bottom:14px}.upload-card{min-height:90px;padding:13px 16px;border-radius:20px}.upload-preview{width:58px;height:58px;border-radius:14px;background:#303036 center/cover no-repeat;display:grid;place-items:center;font-size:26px;color:#aaa;overflow:hidden}
.preview-card{background:var(--card);padding:14px;border-radius:25px;margin-bottom:29px}.preview-top{display:flex;justify-content:space-between;color:#8c8c92;font-size:11px;padding:0 3px 12px}.live-dot{display:flex;align-items:center;gap:6px}.live-dot:before{content:"";width:6px;height:6px;background:#53d273;border-radius:50%;box-shadow:0 0 0 3px rgba(83,210,115,.13)}
.chat{height:330px;border-radius:18px;position:relative;overflow:hidden;padding:38px 13px 55px;display:flex;flex-direction:column;gap:8px;background-color:var(--chat-bg);background-image:linear-gradient(rgba(0,0,0,calc(1 - var(--wallpaper-opacity))),rgba(0,0,0,calc(1 - var(--wallpaper-opacity)))),var(--wallpaper),radial-gradient(circle at 15% 20%,rgba(255,255,255,.07) 0 2px,transparent 3px);background-size:cover,cover,34px 34px;background-position:center}.chat-date{align-self:center;background:rgba(0,0,0,.38);backdrop-filter:blur(8px);border-radius:12px;padding:4px 9px;color:#ddd;font-size:9px}.bubble{max-width:78%;padding:9px 10px 17px;border-radius:15px;position:relative;font-size:12px;line-height:1.35;box-shadow:0 2px 8px rgba(0,0,0,.12)}.bubble time{position:absolute;right:7px;bottom:4px;color:rgba(255,255,255,.56);font-size:7px}.incoming{background:var(--other);align-self:flex-start;border-bottom-left-radius:4px}.outgoing{background:var(--own);align-self:flex-end;border-bottom-right-radius:4px}.short{padding-right:54px}.composer{position:absolute;left:9px;right:9px;bottom:8px;height:39px;display:flex;align-items:center;gap:9px;color:#999}.composer>span:nth-child(2){background:#222228;border:1px solid #33333a;border-radius:20px;flex:1;padding:9px 13px;font-size:10px}.composer b{width:31px;height:31px;display:grid;place-items:center;background:var(--accent);border-radius:50%;color:var(--accent-ink)}
.settings-section{margin:0 0 28px}.settings-section h2{margin:0 4px 11px;color:#999;font-size:16px;font-weight:500}.settings-card{background:var(--card);border-radius:21px;overflow:hidden}.color-row{min-height:73px;padding:0 16px;display:grid;grid-template-columns:1fr auto 48px 12px;align-items:center;gap:12px;border-bottom:1px solid #2c2c30;cursor:pointer;font-size:16px}.color-row:last-child{border:0}.color-row .hex{color:#8b8b92;font-size:14px}.color-row input{appearance:none;width:46px;height:46px;border:1px solid #555;border-radius:14px;padding:0;background:none;overflow:hidden}.color-row input::-webkit-color-swatch-wrapper{padding:0}.color-row input::-webkit-color-swatch{border:0;border-radius:12px}.color-row i{font-style:normal;color:#6d6d72;font-size:25px}.hint{color:#707076;font-size:12px;margin:10px 4px 0}
.name-card{min-height:68px;padding:0 16px;background:var(--card);border-radius:20px;display:flex;align-items:center;gap:5px;overflow:hidden}.name-card input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#fff;font-size:16px}.name-card span{flex:0 0 auto;color:#77777d;font-size:12px}
.segment{background:var(--card);border-radius:19px;padding:5px;display:grid;grid-template-columns:1fr 1fr;gap:4px}.segment button{border:0;background:transparent;border-radius:15px;min-height:52px;color:#999;cursor:pointer;font-size:17px}.segment button.active{background:var(--accent);color:var(--accent-ink);font-weight:650}.range-card{background:var(--card);padding:18px;border-radius:21px}.range-card>div{display:flex;justify-content:space-between;color:#999;font-size:16px}.range-card b{font-size:18px;color:#fff}.range-card input{width:100%;height:6px;margin:24px 0 5px;appearance:none;background:linear-gradient(90deg,var(--accent) var(--range-progress,36%),#323237 var(--range-progress,36%));border-radius:8px}.range-card input::-webkit-slider-thumb{appearance:none;width:25px;height:25px;border-radius:50%;background:var(--accent);box-shadow:0 2px 8px rgba(0,0,0,.3)}
.sticky-action{position:fixed;z-index:15;bottom:0;left:50%;transform:translateX(-50%);width:min(720px,100%);padding:12px 16px max(12px,env(safe-area-inset-bottom));background:linear-gradient(transparent,#000 22%)}.primary{width:100%;min-height:59px;border:0;border-radius:18px;background:var(--accent);color:var(--accent-ink);font-size:18px;font-weight:700;cursor:pointer}
.catalog-head{padding-bottom:18px}.catalog-device{margin-bottom:18px}.theme-list{display:grid;gap:15px}.theme-card{background:var(--card);border-radius:24px;overflow:hidden}.theme-art{height:220px;position:relative;background:var(--theme-art)}.theme-art:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 70% 18%,rgba(255,255,255,.32),transparent 28%),linear-gradient(160deg,transparent 30%,rgba(0,0,0,.25))}.theme-chat{position:absolute;z-index:1;inset:35px 25px;display:flex;flex-direction:column;justify-content:center;gap:7px}.theme-chat i{display:block;width:62%;height:24px;background:rgba(255,255,255,.76);border-radius:13px 13px 13px 4px}.theme-chat i:nth-child(2){align-self:end;width:70%;background:var(--theme-bubble);border-radius:13px 13px 4px 13px}.theme-info{padding:16px}.theme-title-line{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.theme-title-line h2{font-size:19px;margin:0}.theme-title-line span{font-size:11px;color:#8c8c92}.theme-actions{display:grid;grid-template-columns:auto auto 1fr;gap:8px}.reaction-btn,.install-btn{border:1px solid #343439;background:#242428;border-radius:13px;min-height:43px;cursor:pointer}.reaction-btn{padding:0 12px;color:#aaa}.reaction-btn.selected{border-color:var(--accent);color:#fff;background:#352449}.install-btn{border:0;background:var(--accent);color:var(--accent-ink);font-weight:700}
.sheet{position:fixed;z-index:50;inset:0;display:flex;align-items:flex-end;justify-content:center}.sheet-backdrop{position:absolute;inset:0;border:0;background:rgba(0,0,0,.68);backdrop-filter:blur(5px)}.sheet-card{position:relative;width:min(720px,100%);background:#19191c;border-radius:28px 28px 0 0;padding:10px 18px max(20px,env(safe-area-inset-bottom));text-align:center;box-shadow:0 -20px 60px rgba(0,0,0,.35)}.sheet-handle{width:42px;height:4px;background:#49494d;border-radius:3px;margin:0 auto 18px}.sheet-preview{height:130px;border-radius:18px;background:var(--sheet-art);margin-bottom:18px}.sheet-card h2{margin:0 0 7px;font-size:24px}.sheet-card p{color:#888;margin:0 0 20px}.sheet-close{border:0;background:transparent;color:#8c8c92;padding:16px;cursor:pointer}.compact-sheet{padding-top:10px}.big-spark{font-size:42px}.compact-sheet p{line-height:1.5}.toast{position:fixed;z-index:80;left:50%;bottom:max(28px,env(safe-area-inset-bottom));transform:translate(-50%,18px);opacity:0;pointer-events:none;background:#f4f4f5;color:#171719;border-radius:14px;padding:12px 17px;font-size:13px;font-weight:650;white-space:nowrap;transition:.22s}.toast.show{opacity:1;transform:translate(-50%,0)}
.result-card{padding-bottom:max(18px,env(safe-area-inset-bottom))}.result-icon{width:54px;height:54px;margin:2px auto 15px;border-radius:18px;display:grid;place-items:center;background:#25492f;color:#65e487;font-size:27px;font-weight:800}.result-card .primary{margin-top:4px}.wallpaper-button{width:100%;min-height:54px;margin-top:9px;border:1px solid #37373c;border-radius:16px;background:#242428;color:#fff;font-weight:650;cursor:pointer}.brand-note{display:block;margin:14px 8px 0;color:#66666b;font-size:10px;line-height:1.45}
@media(min-width:620px){.screen{padding-left:26px;padding-right:26px}.create-grid{grid-template-columns:1fr 1fr}.mode-card{grid-template-columns:58px 1fr;min-height:170px}.mode-card .arrow{display:none}.theme-list{grid-template-columns:1fr 1fr}.theme-art{height:190px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.result-link{display:grid;place-items:center;text-decoration:none}
