:root{color-scheme:dark;--bg:#141414;--panel:#1d1d1d;--border:#353535;--text:#f1f1f1;--muted:#a2a2a2;--lime:#e7e7e7;--ink:#212121;--purple:#aaaaaa;--radius:20px;font-family:Inter,'Segoe UI',Arial,sans-serif;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,label:has(input:focus-visible),input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--lime);outline-offset:4px}button{border:0}button,select{color:inherit}button{background:none}input,textarea,select{min-width:0}p{line-height:1.6}h1,h2,h3,p{margin:0}[hidden]{display:none!important}.app-shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}.sidebar{border-right:1px solid var(--border);padding:32px 25px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:800;letter-spacing:-1px}.brand-light{font-weight:400;color:#c7c7c7}.brand small{display:block;font-size:8px;letter-spacing:2.7px;color:var(--muted);margin-top:6px}.nav-label{font-size:9px;letter-spacing:1.6px;color:#7a7a7a;margin:58px 11px 17px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;padding:13px 11px;border-radius:10px;color:#aeaeae;text-align:left;margin:6px 0;font-size:13px}.nav-item>span{font-size:21px;width:24px;color:#a5a5a5}.nav-item em{margin-left:auto;font-size:10px;font-style:normal;background:#343434;padding:3px 6px;border-radius:5px}.nav-item:hover{background:#242424}.nav-item.active{color:var(--lime);background:#2e2e2e}.nav-item.active>span{color:var(--lime)}.sidebar-bottom{margin-top:auto}.tiny-shapes{font-size:39px;color:var(--purple);letter-spacing:12px;white-space:nowrap}.tiny-shapes span{color:var(--lime)}.sidebar-bottom>p{font-size:18px;letter-spacing:-.4px;margin:15px 0;color:#d5d5d5}.text-button{font-size:12px;color:var(--lime);padding:7px 0;text-align:left}.text-button:hover{text-decoration:underline}.profile{border-top:1px solid var(--border);margin-top:28px;padding-top:24px;display:flex;align-items:center;gap:10px}.avatar{height:32px;width:32px;display:grid;place-items:center;border-radius:10px;color:#c7c7c7;background:#2f2f2f;font-weight:700}.profile strong{font-size:11px;display:block;max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile small{font-size:9px;color:var(--muted);display:block;margin-top:5px}.online-dot{width:5px;height:5px;background:var(--lime);border-radius:50%;margin-left:auto}main{min-width:0;padding:0 42px;max-width:1600px;width:100%;margin:auto}.topbar{height:86px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);gap:15px}.breadcrumb{font-size:11px;color:var(--muted)}.breadcrumb>span{padding:0 11px;color:#5e5e5e}.breadcrumb strong{font-weight:500;color:#d7d7d7}.topbar-right{display:flex;align-items:center;gap:22px}.private-label{color:var(--muted);font-size:10px;white-space:nowrap}.private-label i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#a9a9a9;margin-right:6px}.credits-button{font-size:11px;border:1px solid #484848;border-radius:24px;padding:10px 14px;white-space:nowrap;color:#e0e0e0}.credits-button>span:last-child{color:var(--lime);font-size:15px;padding-left:10px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:38px 0 28px}.eyebrow{font-size:9px;letter-spacing:2px;color:var(--lime);margin-bottom:12px}h1{font-size:clamp(30px,3.2vw,47px);font-weight:650;letter-spacing:-1.7px;line-height:1.14}h1>span{color:var(--muted)}.page-heading p{font-size:12px;color:var(--muted);margin-top:13px}.heading-stamp{width:64px;height:64px;border:1px solid #646464;border-radius:50%;display:flex;flex-direction:column;justify-content:center;align-items:center;transform:rotate(14deg);font-size:16px;color:var(--lime);flex-shrink:0;margin-right:7px}.heading-stamp small{font-size:8px;letter-spacing:2px;margin-top:4px}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 312px;gap:25px;align-items:start}.workbench{min-width:0}.source-tabs{display:flex;gap:6px;background:#1e1e1e;border:1px solid var(--border);border-radius:12px;padding:5px;width:max-content;margin-bottom:16px}.source-tabs>button{padding:10px 17px;font-size:11px;color:var(--muted);border-radius:8px}.source-tabs>button.selected{background:#3d3d3d;color:var(--lime)}.canvas-stage{position:relative;height:365px;border:1px solid #3d3d3d;border-radius:20px;overflow:hidden;background-color:#e9e9e9;background-image:linear-gradient(45deg,#e0e0e0 25%,transparent 25%),linear-gradient(-45deg,#e0e0e0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e0e0e0 75%),linear-gradient(-45deg,transparent 75%,#e0e0e0 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0}.canvas-stage.dark{background-color:#393939;background-image:linear-gradient(45deg,#303030 25%,transparent 25%),linear-gradient(-45deg,#303030 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#303030 75%),linear-gradient(-45deg,transparent 75%,#303030 75%)}.stage-top,.stage-bottom{position:absolute;left:20px;right:20px;display:flex;justify-content:space-between;align-items:center;z-index:2;color:#505050}.stage-top{top:15px;font-size:8px;letter-spacing:1.4px}.stage-top>span{display:flex;align-items:center;gap:6px}.live-dot{height:5px;width:5px;border-radius:50%;background:#747474}.stage-top button{width:28px;height:28px;border:1px solid #bebebe;background:#f0f0f0;border-radius:8px;color:#565656;font-size:19px}.stage-bottom{bottom:16px;font-size:9px;gap:12px}.stage-bottom>span:first-child{max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stage-bottom>span:last-child{white-space:nowrap}.canvas-stage.dark .stage-top,.canvas-stage.dark .stage-bottom{color:#c9c9c9}#preview{position:absolute;width:310px;height:310px;max-width:90%;max-height:85%;object-fit:contain;left:50%;top:50%;transform:translate(-50%,-50%)}#empty-overlay{position:absolute;bottom:48px;left:0;right:0;text-align:center;pointer-events:none}.sample-label{font-size:7px;letter-spacing:1.2px;border-radius:20px;padding:6px 11px;background:#ebebebe0;color:#6c6c6c}.drop-overlay{position:absolute;inset:0;background:#e7e7e7e8;display:none;place-items:center;font-size:25px;color:#303030;z-index:5;border:3px dashed #7c7c7c}.dragging .drop-overlay{display:grid}.upload-row{display:flex;gap:10px;margin-top:13px}.upload-button{cursor:pointer;display:flex;align-items:center;gap:12px;border:1px dashed #4d4d4d;background:#212121;border-radius:12px;flex:1;padding:13px 16px}.upload-button>span:first-child{font-size:24px;color:var(--lime)}.upload-button strong{font-size:11px;font-weight:500}.upload-button small{display:block;color:var(--muted);font-size:9px;margin-top:5px}.upload-plus{margin-left:auto;font-size:20px;color:var(--muted)}.upload-button:hover{border-color:var(--lime)}.icon-button{width:50px;flex-shrink:0;border:1px solid var(--border);border-radius:12px;background:var(--panel);font-size:23px;color:var(--muted)}.chat-preview{display:flex;gap:11px;margin:24px 0 4px;align-items:center}.chat-avatar{border-radius:50%;width:33px;height:33px;background:#494949;display:grid;place-items:center;color:#d4d4d4;font-size:10px}.chat-preview small{font-size:9px;color:#999999}.chat-bubble{margin-top:7px;background:#343434;border-radius:1px 13px 13px;padding:10px 11px;font-size:12px;display:flex;align-items:center;gap:5px}.chat-bubble canvas{width:31px;height:31px;margin:-7px 0;object-fit:contain}.chat-bubble time{align-self:flex-end;font-size:8px;color:#b2b2b2;margin-left:10px;padding-top:8px}.chat-bubble time span{color:var(--lime)}.controls-panel{background:var(--panel);border:1px solid var(--border);border-radius:20px;padding:22px 21px}.panel-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.panel-title h2{font-size:17px;font-weight:600;letter-spacing:-.5px}.panel-title>span{color:var(--lime);font-size:23px}.control-section+.control-section{border-top:1px solid var(--border);padding-top:21px;margin-top:19px}.control-section-label{display:flex;align-items:center;gap:8px;font-size:8px;letter-spacing:1.4px;color:#bababa;margin-bottom:16px}.control-section-label>span{color:#7a7a7a;letter-spacing:0}.control-section-label>em{font-size:6px;letter-spacing:.5px;font-style:normal;margin-left:auto;color:#9f9f9f;border:1px solid #4f4f4f;border-radius:4px;padding:3px 5px}.toggle-row{display:flex;gap:10px;justify-content:space-between;align-items:center}.toggle-row strong{font-size:11px;font-weight:500}.toggle-row p{font-size:8px;color:var(--muted);max-width:190px;margin-top:4px;line-height:1.6}.switch{position:relative;background:#3f3f3f;width:33px;height:19px;flex-shrink:0;border-radius:20px;padding:3px;transition:background .2s}.switch>span{display:block;width:13px;height:13px;background:#a1a1a1;border-radius:50%;transition:transform .2s}.switch[aria-checked=true]{background:var(--lime)}.switch[aria-checked=true]>span{background:#2e2e2e;transform:translateX(14px)}.toggle-row.compact{margin:17px 0 20px}.range-label{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-bottom:7px}.range-label>span{color:#d9d9d9;font-variant-numeric:tabular-nums}input[type=range]{width:100%;height:4px;accent-color:var(--lime);cursor:pointer;margin:5px 0 8px;display:block}.position-controls{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:10px}.position-controls label{font-size:8px;color:#969696}.position-controls input{margin-top:11px}.effects-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.effect-button{border:1px solid #3e3e3e;background:#242424;border-radius:10px;padding:10px 2px;font-size:8px;color:#afafaf}.effect-button>span{display:block;font-size:20px;margin-bottom:6px;color:#cccccc;height:25px}.effect-button:hover{border-color:#7c7c7c}.effect-button.selected{border-color:#c7c7c7;background:#3e3e3e;color:#e4e4e4}.effect-button.selected>span{color:var(--lime)}#strength-control{margin-top:15px}.export-section{border-top:1px solid var(--border);margin-top:20px;padding-top:17px}.export-summary{display:flex;align-items:center;gap:6px;font-size:8px;color:var(--muted);margin-bottom:13px}.export-summary strong{font-weight:400;color:#cccccc}.export-summary>span:last-child{margin-left:auto;font-size:7px}.ready-dot{height:5px;width:5px;border-radius:50%;background:#bfbfbf}.primary-button{display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:center;width:100%;background:var(--lime);color:var(--ink);border-radius:10px;padding:14px 15px;font-size:12px;font-weight:600;transition:background .15s,transform .15s}.primary-button:hover{background:#f2f2f2}.primary-button:active{transform:translateY(1px)}.primary-button>span{font-size:17px}.secondary-button{display:flex;justify-content:center;align-items:center;gap:10px;text-align:center;border:1px solid #4c4c4c;background:#303030;color:#e2e2e2;border-radius:10px;padding:12px;font-size:11px}.privacy-note{font-size:8px;color:#919191;text-align:center;margin-top:13px;line-height:1.8}.job-status{font-size:10px;line-height:1.6;color:#cecece;margin:9px 0;min-height:0}.job-status:empty{margin:0}#result-actions{display:grid;gap:8px;margin-top:10px}.inspiration-strip{display:flex;align-items:center;gap:16px;padding:19px 21px;border:1px solid var(--border);border-radius:14px;margin-top:30px;background:#1d1d1d}.strip-icon{font-size:35px;color:var(--purple);line-height:1}.inspiration-strip strong{font-size:12px;font-weight:500}.inspiration-strip p{color:var(--muted);font-size:10px;margin-top:5px}.inspiration-strip .text-button{margin-left:auto;white-space:nowrap;font-size:10px}footer{display:flex;justify-content:space-between;gap:15px;color:#707070;font-size:8px;padding:30px 0 25px}footer>span:first-child{font-weight:600}footer>span:first-child>span{font-weight:400}footer .footer-star{color:#b0b0b0;font-size:13px;margin-left:10px}.notice{border:1px solid #4f4f4f;background:#2a2a2a;color:#d0d0d0;padding:11px 15px;font-size:11px;border-radius:10px;margin-top:18px;line-height:1.6}.generation-form{background:#232323;border:1px solid #474747;border-radius:15px;padding:18px;margin-bottom:15px}.generation-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.generation-title strong{font-size:13px}.generation-title button{font-size:10px}textarea,input:not([type=range]):not([type=checkbox]):not([type=file]),select{border:1px solid #4d4d4d;background:#191919;border-radius:8px;color:#e5e5e5;padding:11px;width:100%;font-size:12px}textarea{resize:vertical;line-height:1.6}textarea::placeholder,input::placeholder{color:#848484}.generation-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.generation-options label,dialog label{display:block;color:#afafaf;font-size:10px}.generation-options label>*{margin-top:7px}.reference-label{font-size:10px;display:flex;align-items:center;gap:6px;margin:15px 0;color:#b4b4b4}.reference-label input{accent-color:var(--lime)}#generate-button>span{font-size:10px;font-weight:400}#generation-note{display:block;font-size:9px;color:#b2b2b2;line-height:1.7;margin-top:10px}.inline-note{font-size:10px;color:#b4b4b4;line-height:1.7;padding:10px 12px;border-radius:8px;background:#323232;margin-top:10px}#background-note{font-size:8px;padding:8px 10px}.template-disclaimer{font-size:10px;color:var(--muted);margin-bottom:20px}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.template-card{display:block;text-align:left;padding:0;border:1px solid var(--border);border-radius:16px;overflow:hidden;background:var(--panel);transition:transform .2s,border-color .2s}.template-card:hover{transform:translateY(-4px);border-color:#848484}.template-art{height:190px;display:grid;place-items:center;background:var(--card-color);position:relative;overflow:hidden;color:#282828}.template-art:before{content:'';position:absolute;width:170px;height:170px;border:1px solid #ffffff50;border-radius:50%;transform:translate(60px,-40px)}.template-art>span{font-size:100px;filter:drop-shadow(0 10px 4px #2c2c2c35);transform:rotate(-12deg);text-shadow:3px 3px 0 #ffffff75;line-height:1}.template-card[data-style=chrome] .template-art>span{background:linear-gradient(160deg,#ffffff,#565656 35%,#ffffff 50%,#4e4e4e 70%,#dadada);background-clip:text;color:transparent;-webkit-text-stroke:1px #747474;text-shadow:none}.template-card[data-style=pixel] .template-art>span{font-family:monospace;text-shadow:5px 5px 0 #8b8b8b;transform:rotate(0)}.template-card[data-style=neon] .template-art>span{color:#ececec;text-shadow:0 0 8px #424242,0 0 25px #464646}.template-card[data-style=jelly] .template-art>span{color:#686868;text-shadow:0 -5px 0 #ffffff77,0 8px 4px #41414155}.template-card[data-style=glass] .template-art>span{color:#f2f2f2;text-shadow:3px 3px 0 #acacac,-3px -3px 0 #ffffff99}.template-copy{padding:17px}.template-copy>div{display:flex;align-items:center;justify-content:space-between}.template-copy h3{font-size:15px;font-weight:500}.template-copy small{font-size:9px;color:var(--muted)}.template-copy p{font-size:10px;color:#adadad;margin:9px 0 14px}.template-copy em{font-size:10px;font-style:normal;color:var(--lime)}.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.library-empty{grid-column:1/-1;text-align:center;border:1px dashed #4e4e4e;border-radius:18px;padding:65px 20px;color:var(--muted)}.library-empty>span{font-size:45px;color:var(--purple)}.library-empty h3{margin:15px 0 8px;color:#e0e0e0}.library-item{background:var(--panel);border:1px solid var(--border);border-radius:15px;padding:15px}.library-art{height:150px;display:flex;align-items:center;justify-content:center;background:#3b3b3b;border-radius:10px;margin-bottom:12px}.library-art img,.library-art video{width:110px;height:110px;object-fit:contain}.library-art>span{font-size:30px;color:var(--lime)}.library-item p{font-size:11px;color:var(--muted);margin:8px 0}.library-item .secondary-button{width:100%;margin-top:12px}.pack-list{display:grid;gap:10px;margin-bottom:25px}.pack-link{display:flex;align-items:center;gap:15px;border:1px solid #484848;background:#2c2c2c;padding:15px;border-radius:12px}.pack-link>span{color:var(--lime);font-size:25px}.pack-link strong{font-size:12px}.pack-link small{display:block;font-size:9px;color:var(--muted);margin-top:5px}.pack-link>em{margin-left:auto;font-style:normal;color:var(--lime)}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);z-index:50;max-width:calc(100vw - 32px);width:max-content;background:#e7e7e7;color:#2e2e2e;padding:14px 22px;border-radius:12px;box-shadow:0 10px 40px #00000066;font-size:12px;line-height:1.5}.toast.error{background:#d5d5d5;color:#323232}dialog{color:var(--text);background:#252525;border:1px solid #626262;border-radius:22px;max-width:450px;width:calc(100vw - 32px);padding:32px}dialog::backdrop{background:#0c0c0cbd;backdrop-filter:blur(5px)}.dialog-close{position:absolute;right:15px;top:10px;font-size:28px;color:#999999}.dialog-icon{color:var(--lime);font-size:42px;display:block;margin-bottom:15px}dialog h2{font-size:25px;letter-spacing:-.7px;line-height:1.2;margin-bottom:12px}dialog p{font-size:12px;color:#b9b9b9;margin-bottom:18px}dialog label{margin:17px 0}dialog label>*{margin-top:8px}dialog .primary-button{margin-top:16px}.help-steps{padding-left:20px}.help-steps li{padding:10px 0 0 6px;color:var(--lime)}.help-steps strong{font-size:13px;color:#e7e7e7}.help-steps p{margin:5px 0;font-size:11px}.purchase-description{padding:20px;border:1px solid #5d5d5d;border-radius:12px;font-size:20px;color:var(--lime)}#publish-status{font-size:11px;margin-top:12px;color:#cecece;line-height:1.6}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1500px){.canvas-stage{height:440px}#preview{width:375px;height:375px}.controls-panel{padding:26px}.panel-title{margin-bottom:30px}.toggle-row strong{font-size:12px}.effects-grid{gap:9px}.effect-button{padding:13px 2px}.page-heading{margin-top:47px}}@media(max-width:1150px){.app-shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding:28px 18px}.brand{font-size:18px}.brand img{width:32px;height:32px}.brand small{font-size:7px;letter-spacing:2px}main{padding:0 25px}.editor-layout{grid-template-columns:minmax(0,1fr) 280px;gap:18px}.controls-panel{padding:20px 17px}.private-label{display:none}.canvas-stage{height:350px}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stage-bottom{font-size:8px;left:12px;right:12px}.tiny-shapes{font-size:30px;letter-spacing:9px}.inspiration-strip p{max-width:320px}}@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{height:auto;position:static;flex-direction:row;align-items:center;padding:18px 24px;border-right:0;border-bottom:1px solid var(--border);gap:22px}.brand{flex-shrink:0}.brand small{display:none}.nav-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;gap:7px;margin-left:auto}.nav-item{width:auto;font-size:11px;padding:10px}.nav-item>span{width:auto;font-size:17px}.nav-item em{display:none}.topbar{height:66px}.editor-layout{grid-template-columns:minmax(0,1fr) 300px}.page-heading{margin-top:28px}h1{font-size:36px}.canvas-stage{height:370px}.inspiration-strip{margin-top:24px}main{max-width:900px}}@media(max-width:760px){.sidebar{padding:16px;flex-wrap:wrap;gap:15px}.brand{font-size:21px}.brand img{width:34px;height:34px}.sidebar nav{width:100%;justify-content:space-between;gap:5px}.nav-item{font-size:11px;gap:7px;padding:10px 11px;margin:0}.nav-item>span{font-size:19px}.topbar{height:58px}.breadcrumb{font-size:9px}.topbar-right{gap:0}.credits-button{font-size:10px;padding:7px 10px}main{padding:0 16px}.page-heading{margin:28px 0 23px;gap:10px}.eyebrow{font-size:8px;letter-spacing:1.5px;margin-bottom:10px}h1{font-size:32px;letter-spacing:-1.1px}.page-heading p{font-size:11px;max-width:270px}.heading-stamp{width:48px;height:48px;font-size:12px;margin-right:2px}.heading-stamp small{font-size:6px}.editor-layout{display:flex;flex-direction:column;gap:22px}.workbench,.controls-panel{width:100%}.source-tabs{width:100%;margin-bottom:13px}.source-tabs>button{flex:1;padding:10px 8px;font-size:11px}.canvas-stage{height:340px}#preview{width:290px;height:290px}.controls-panel{padding:22px}.panel-title h2{font-size:19px}.control-section-label{font-size:9px}.toggle-row strong{font-size:13px}.toggle-row p{font-size:10px;max-width:240px}.switch{width:40px;height:23px}.switch>span{width:17px;height:17px}.switch[aria-checked=true]>span{transform:translateX(17px)}.range-label{font-size:11px}.position-controls label{font-size:10px}.effect-button{font-size:10px;padding:13px 4px}.effect-button>span{font-size:25px}.effects-grid{gap:9px}.primary-button{font-size:13px;padding:16px}.export-summary{font-size:10px}.export-summary>span:last-child{font-size:9px}.privacy-note{font-size:9px}.inspiration-strip{padding:18px;flex-wrap:wrap;gap:12px}.inspiration-strip>div{flex:1}.inspiration-strip p{font-size:10px}.inspiration-strip .text-button{margin-left:47px;font-size:11px}.template-grid{gap:12px}.template-art{height:145px}.template-art>span{font-size:78px}.template-copy{padding:13px}.template-copy h3{font-size:13px}.template-copy small{font-size:8px}.template-copy p{font-size:9px;min-height:44px}.template-copy em{font-size:9px}.template-copy>div{align-items:flex-start;gap:6px;flex-direction:column}.library-grid{gap:12px}.library-item{padding:12px}.library-art{height:125px}.page-heading>.secondary-button{font-size:10px;padding:10px}footer{font-size:7px;padding-bottom:20px}.notice{font-size:10px}.generation-form{padding:14px}.generation-options{gap:8px}.generation-options label{font-size:9px}.generation-options input,.generation-options select{font-size:11px}dialog{padding:28px 23px}input[type=range]{height:6px;margin-top:10px}.toggle-row.compact{margin-bottom:22px}.chat-bubble{font-size:12px}.chat-preview small{font-size:9px}.template-disclaimer{font-size:9px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}


.effect-presets{display:grid;grid-template-columns:1fr 1fr;gap:7px}.preset-button{padding:10px;text-align:left;border:1px solid #4f4f4f;border-radius:9px;background:#2e2e2e;font-size:10px;color:#e0e0e0}.preset-button:hover,.preset-button.selected{border-color:var(--lime);background:#404040}.preset-button small{display:block;font-size:8px;line-height:1.5;color:#b3b3b3;margin-top:5px}.effect-help{font-size:9px;color:var(--muted);margin:10px 0;line-height:1.7}.active-effects{font-size:10px;line-height:1.7;color:var(--lime);border-left:2px solid #747474;padding:7px 10px;background:#2a2a2a;border-radius:0 6px 6px 0}.glow-color-label{display:flex;align-items:center;justify-content:space-between;margin:15px 0;font-size:10px;color:var(--muted)}input[type=color]{padding:3px!important;width:45px!important;height:29px;cursor:pointer}.controls-panel{max-width:100%}@media(max-width:760px){.preset-button{font-size:12px}.preset-button small{font-size:9px}.effect-help{font-size:10px}.active-effects{font-size:11px}.glow-color-label{font-size:12px}}
.panel-live-preview{position:sticky;top:10px;z-index:4;display:flex;align-items:center;gap:13px;background:#2c2c2c;border:1px solid #535353;border-radius:12px;margin:0 0 22px;padding:8px 12px;box-shadow:0 7px 20px #131313dd}.panel-live-preview canvas{width:76px;height:76px;flex-shrink:0}.panel-live-preview strong{font-size:11px;font-weight:500}.panel-live-preview small{display:block;font-size:8px;color:#b1b1b1;line-height:1.5;margin-top:5px}

/* Actual renderer loops make every effect visible before selection. */
.effects-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.effect-button{display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:11px 9px;min-width:0}
.effect-button strong{font-size:11px;font-weight:500;line-height:1.35}
.effect-button small{font-size:9px;line-height:1.5;color:#b3b3b3;margin-top:5px;min-height:28px}
.effect-example{display:grid;place-items:center;overflow:hidden;border:1px solid #454545;border-radius:8px;background:#1a1a1a;margin-top:9px;aspect-ratio:1}
.effect-example img{display:block;width:100%;height:100%;object-fit:contain}
.preset-button{display:flex;flex-direction:column;min-width:0}
.preset-button .effect-example{width:100%;margin-top:auto}
.preset-button small{margin-bottom:10px;min-height:35px}
.template-art img{width:80%;height:85%;object-fit:contain;position:relative}
.template-art:has(img):before{display:none}
.template-prompt{font-size:10px;color:#b7b7b7;line-height:1.6;margin:12px 0}
.template-prompt summary{cursor:pointer;color:var(--lime)}
.template-prompt p{user-select:text;overflow-wrap:anywhere}
.template-copy .template-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:stretch}
.template-actions .secondary-button{font-size:10px;flex:1;white-space:normal;min-width:100px}
.template-card{cursor:default}.template-copy>div{gap:7px}
@media(max-width:760px){.effect-button strong{font-size:12px}.effect-button small{font-size:10px}.effect-example{max-height:160px}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .sidebar{padding:14px 16px;min-height:62px}
  .sidebar nav{position:fixed;left:0;right:0;bottom:0;width:100%;margin:0;z-index:30;
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;
    padding:7px 10px calc(7px + env(safe-area-inset-bottom,0px));
    background:#1e1e1ef5;border-top:1px solid #4f4f4f;box-shadow:0 -7px 22px #0c0c0c55;
    backdrop-filter:blur(16px)}
  .sidebar .nav-item{display:flex;flex-direction:column;justify-content:center;align-items:center;
    gap:4px;min-height:52px;width:100%;padding:6px 3px;margin:0;border-radius:11px;font-size:10px;line-height:1.3}
  .sidebar .nav-item>span{font-size:23px;line-height:1;width:auto}
  .sidebar .nav-item.active{background:#404040;color:var(--lime)}
  main{padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))}
  .toast{bottom:calc(88px + env(safe-area-inset-bottom,0px));z-index:50}
  .view{scroll-margin-bottom:90px}
}

.template-art.template-comparison{display:grid;grid-template-columns:1fr 1fr;gap:8px;height:auto;min-height:185px;padding:12px;background:#1d1d1d;border-bottom:1px solid #464646}
.template-comparison figure{margin:0;min-width:0;align-self:stretch;display:flex;flex-direction:column;justify-content:space-between}
.template-comparison picture{display:block;aspect-ratio:1;width:100%;border-radius:10px;background:#2f2f2f}
.template-comparison img{width:100%;height:100%;object-fit:contain}
.template-comparison figcaption{font-size:9px;line-height:1.5;color:#bfbfbf;text-align:center;margin-top:7px}
.template-original-link{display:block;font-size:10px;color:#cbcbcb;margin:9px 0 12px;text-decoration:underline;text-underline-offset:3px}
.template-prompt p{white-space:pre-line}
.template-comparison picture{display:grid;place-items:center;max-height:180px}
.template-comparison img{width:min(100%,160px);height:160px}
.effect-example{height:144px;min-height:144px;aspect-ratio:auto;max-height:none!important}
.effect-example img{width:128px;height:128px;max-width:100%;max-height:100%;object-fit:contain}
@media(max-width:760px){.template-grid{grid-template-columns:1fr}.template-art.template-comparison{padding:15px;gap:12px}.template-comparison figcaption{font-size:11px}.template-copy p{min-height:0}.template-copy h3{font-size:16px}.template-copy small{font-size:10px}.template-copy .template-actions{flex-direction:row}.template-actions .secondary-button{font-size:12px;min-height:44px}}

/* The same persistent bottom navigation on desktop and mobile. */
:root{--bg:#0c0c0e;--panel:#171719;--border:#343438;--text:#f5f5f7;--muted:#a1a1a7;--lime:#f4f4f6;--ink:#101012;--purple:#d3d3da}
.app-shell{display:block;max-width:1440px;margin:auto}
.sidebar{position:static;height:auto;min-height:0;border:0;display:flex;flex-direction:row;align-items:center;padding:22px 32px;background:transparent}
.brand{font-size:22px}.brand img{width:42px;height:42px;object-fit:contain}.brand small{display:none}
.nav-label,.sidebar-bottom{display:none}
.sidebar nav{position:fixed;left:50%;right:auto;bottom:16px;transform:translateX(-50%);width:min(540px,calc(100vw - 32px));
  margin:0;z-index:30;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:7px;
  background:#1b1b1eed;border:1px solid #424247;border-radius:20px;box-shadow:0 7px 35px #0008;backdrop-filter:blur(18px)}
.sidebar .nav-item{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-height:62px;width:100%;
  padding:6px 4px;margin:0;border-radius:13px;font-size:11px;line-height:1.3;color:#aaaab2}
.sidebar .nav-item img{width:30px;height:30px;object-fit:contain}.sidebar .nav-item>span{display:none}.sidebar .nav-item em{display:none}
.sidebar .nav-item.active{background:#37373c;color:#fff}.sidebar .nav-item:hover{background:#303035}
main{padding:0 32px 120px;max-width:1240px;margin:auto}.topbar{height:54px}.page-heading{margin-top:30px}
.heading-stamp{display:none}.toast{bottom:112px}.strip-icon img{width:46px;height:46px;object-fit:contain}
.panel-title>img{width:29px;height:29px;object-fit:contain}.chat-avatar{background:#3a3a42;color:#eee}
.template-art{background:#252528!important}.template-comparison picture{background:#252528}
.canvas-stage{background-color:#e6e6e8;background-image:linear-gradient(45deg,#d9d9dc 25%,transparent 25%),linear-gradient(-45deg,#d9d9dc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d9d9dc 75%),linear-gradient(-45deg,transparent 75%,#d9d9dc 75%)}
@media(max-width:760px){
  .sidebar{padding:13px 16px;min-height:62px}.brand{font-size:21px}.brand img{width:36px;height:36px}
  .sidebar nav{left:0;right:0;bottom:0;transform:none;width:100%;border-radius:18px 18px 0 0;border-bottom:0;
    padding:7px 10px calc(7px + env(safe-area-inset-bottom,0px))}
  .sidebar .nav-item{min-height:56px;font-size:10px;gap:3px}.sidebar .nav-item img{width:28px;height:28px}
  main{padding:0 16px calc(100px + env(safe-area-inset-bottom,0px))}.topbar{height:48px}
  .toast{bottom:calc(94px + env(safe-area-inset-bottom,0px))}.panel-title>img{width:31px;height:31px}
}

/* One focus ring on the field, never a second rectangle around its label. */
label:has(input:focus-visible){outline:none!important}
input:not([type=range]):not([type=color]):focus,textarea:focus,select:focus{outline:none!important;border-color:#bcbcc5;box-shadow:0 0 0 3px #ffffff14}
button:focus-visible,a:focus-visible,input[type=range]:focus-visible,input[type=color]:focus-visible{outline:2px solid #ddd;outline-offset:3px}
.sidebar{padding:0;min-height:0}.topbar{display:flex;justify-content:space-between;align-items:center;gap:15px;min-height:80px;height:auto;border-bottom:0;padding:18px 0}
.topbar .brand{font-size:23px;margin-right:auto}.topbar .brand img{height:40px;width:40px}
.credits-button{display:flex;align-items:center;gap:10px;min-height:58px;min-width:150px;padding:9px 15px!important;background:#f4f4f6;color:#151519;border:0;border-radius:18px}
.credits-button>img{width:35px;height:35px;object-fit:contain}.balance-copy{display:flex;align-items:baseline;gap:6px}.balance-copy strong{font-size:23px;line-height:1;font-weight:700;font-variant-numeric:tabular-nums}.balance-copy small{font-size:11px;font-weight:500;color:#51515a}.balance-add{font-size:24px;margin-left:5px;color:#33333a}
.editor-layout{display:flex;flex-direction:column;gap:26px}.workbench,.controls-panel{width:100%}.controls-panel{padding:24px}.controls-panel .panel-title{gap:12px}.panel-title>img{display:none}
.panel-title h2{font-size:20px;margin-right:auto}.panel-live-preview{max-width:400px;top:8px}.animation-toggle{font-size:12px;padding:9px 12px;background:#303035;border:1px solid #4b4b53;border-radius:10px;white-space:nowrap}
.animation-toggle[aria-pressed=false]{color:#bbb;background:#202024}.depth-control{margin:16px 0}.depth-control p{max-width:none}
.effect-presets{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.effects-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.effect-button,.preset-button{padding:12px;text-align:left;border-radius:13px}.effect-button strong,.preset-button{font-size:12px}.effect-button small,.preset-button small{font-size:10px;line-height:1.45;min-height:30px}
.effect-example{height:116px;min-height:116px;position:relative}.effect-example canvas{display:block;width:96px;height:96px;max-width:100%;object-fit:contain}.effect-help{font-size:11px}.control-section-label{font-size:10px}
.template-art.template-own{height:220px;display:grid;place-items:center;padding:15px;background:#202024}.template-art.template-own:before{display:none}.template-art.template-own canvas{width:176px;height:176px;max-width:100%;object-fit:contain}.template-copy h3{font-size:17px}.template-copy p{font-size:12px}.template-copy small{font-size:10px}.template-prompt textarea{font-size:11px;min-height:150px;margin:10px 0;white-space:pre-wrap}.copy-prompt{font-size:11px;color:#eee;border:1px solid #55555e;padding:8px 10px;border-radius:8px}
.preview-shell{position:relative}.preview-shell[data-loading=true]:after{content:'Загружаем движение…';position:absolute;bottom:5px;left:0;right:0;text-align:center;font-size:9px;color:#aaa}
.sidebar .nav-item img{width:34px;height:34px}.page-heading{margin-top:18px}.template-disclaimer{font-size:12px;line-height:1.65;max-width:820px}
@media(max-width:1100px){.effect-presets{grid-template-columns:repeat(3,minmax(0,1fr))}.effects-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.topbar{min-height:73px;padding:12px 0}.topbar .brand{font-size:19px}.topbar .brand img{width:33px;height:33px}.credits-button{min-height:50px;min-width:132px;padding:8px 10px!important;border-radius:15px;gap:7px}.credits-button>img{width:29px;height:29px}.balance-copy strong{font-size:21px}.balance-copy small{font-size:10px}.balance-add{font-size:21px;margin-left:1px}.controls-panel{padding:17px}.panel-title h2{font-size:18px}.panel-live-preview{max-width:100%}.effect-presets,.effects-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.effect-button,.preset-button{padding:11px}.template-art.template-own{height:210px}.animation-toggle{font-size:11px;padding:8px}.sidebar .nav-item img{width:31px;height:31px}}
.template-own .preview-shell{height:190px;min-height:190px;width:100%;border:0;background:#1a1a1e;margin:0}.effect-example{background:#1a1a1e}.balance-copy{flex-direction:column;align-items:flex-start;gap:2px}.template-art.template-own canvas{width:176px;height:176px}@media(max-width:360px){.topbar .brand{font-size:17px;gap:6px}.topbar .brand img{width:28px;height:28px}.credits-button{min-width:116px;gap:6px}.credits-button>img{width:26px;height:26px}.balance-copy small{font-size:9px}}
.credits-button>span.balance-add:last-child{color:#36363e;font-size:22px;display:block}
.preview-shell[data-blocked=true]:after{content:"Нажми для анимации";position:absolute;bottom:5px;left:0;right:0;text-align:center;font-size:10px;color:#ddd;cursor:pointer}

/* Sets use the same bottom navigation and a compact form on every screen. */
.creation-modes{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}.creation-modes button{padding:12px 18px;border:1px solid #414149;border-radius:12px;background:#1c1c21;color:#bbbcc7;font-size:13px;min-height:44px}.creation-modes button.selected{background:#eeeef3;color:#18181d;border-color:#eeeef3}
.kit-intro{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 24px}.kit-intro h2{font-size:26px;margin:8px 0}.kit-intro p{color:#aeb0bc;font-size:13px}.kit-free{padding:9px 12px;border:1px solid #42424c;border-radius:20px;white-space:nowrap;font-size:12px}
.kit-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;align-items:start}.kit-form,.kit-preview-panel{background:#18181d;border:1px solid #373741;border-radius:20px;padding:24px;min-width:0}.kit-form fieldset{border:0;padding:0;margin:0;min-width:0}.kit-form label{display:flex;flex-direction:column;gap:8px;font-size:12px;margin-bottom:20px}.kit-form input:not([type=color]),.kit-form textarea,.kit-form select{width:100%;font-size:14px}.kit-form .primary-button{width:100%;margin-top:20px;min-height:48px}.kit-form p[role=status]{line-height:1.6;font-size:13px;margin-top:14px}.kit-note{font-size:12px;line-height:1.7;color:#aaaab6;margin:12px 0}.kit-label{font-size:12px;margin:20px 0 12px;color:#c4c5ce}.kit-label span{color:#9495a1}
.kit-styles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.kit-styles button{display:flex;flex-direction:column;align-items:center;gap:5px;border:1px solid #393941;border-radius:12px;padding:8px 4px;background:#222228;min-width:0}.kit-styles button.selected{border-color:#eeeef4;background:#31313b}.kit-styles img{width:55px;height:55px;object-fit:contain}.kit-styles strong{font-size:10px;font-weight:500;text-align:center}
.kit-color-label{display:flex!important;flex-direction:row!important;align-items:center;gap:14px!important;margin-top:24px}.kit-color-label>span{margin-right:auto}.kit-color-label small{display:block;margin-top:3px;color:#9899a6;font-size:10px}.kit-color-label input{width:48px;height:42px;padding:4px;min-width:48px;border:1px solid #555560;border-radius:10px;background:#28282f}.kit-color-label button{font-size:11px}
.kit-symbols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.kit-symbols button{display:flex;gap:9px;align-items:center;padding:10px 12px;border:1px solid #3d3d46;border-radius:10px;color:#a5a5b3;font-size:12px;min-height:44px;text-align:left}.kit-symbols button.selected{border-color:#b2b2bf;background:#303039;color:#fafaff}.kit-symbols button span:first-child{font-size:19px}.kit-shortcuts{display:flex;gap:8px;margin-top:-8px}.kit-shortcuts button{padding:8px 16px;background:#303038;border-radius:9px;font-size:12px;min-height:40px}
.kit-preview-panel{position:sticky;top:18px}.kit-preview-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.kit-preview-heading strong{font-size:14px}.kit-preview-heading span{font-size:12px;color:#abaaba}.kit-draft{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-height:140px;align-content:start}.kit-draft figure{margin:0;text-align:center;background:#23232b;border-radius:14px;padding:10px 4px}.kit-draft img{width:80px;height:80px;max-width:100%;object-fit:contain}.kit-draft figcaption{font-size:10px;color:#b9b9c6;margin:5px 0}.kit-letter{display:grid;place-items:center;min-height:80px;border:1px solid #3b3b46;border-radius:12px;font-size:54px;font-weight:900;background:#23232b;overflow:hidden}.kit-chat{margin-top:24px;border-top:1px solid #393942;padding-top:20px}.kit-chat small{font-size:11px;color:#a4a4b3}.kit-chat>div{display:flex;align-items:center;gap:5px;background:#34343e;border-radius:12px;padding:13px 10px;margin-top:10px;font-size:12px}.kit-chat img{width:24px;height:24px;object-fit:contain}
.kit-reference{display:flex;align-items:center;gap:14px}.kit-reference img{width:84px;height:84px;object-fit:contain;background:#24242c;border-radius:12px}.kit-reference p{font-size:12px;color:#bbbcc9}.kit-logo-upload{padding:16px;border:1px dashed #656573;border-radius:12px;cursor:pointer}.kit-logo-upload small{font-size:11px;color:#a5a5b6}.kit-logo-upload:hover{background:#27272e}#kit-logo-row{display:flex;align-items:center;gap:12px;margin-bottom:20px;font-size:11px;color:#a5a5b6}#kit-logo-row img{width:48px;height:48px;object-fit:contain}
.kit-form input.sr-only{width:1px;height:1px;padding:0;border:0;clip-path:inset(50%)}
.kit-result{margin-top:32px;border-top:1px solid #41414c;padding-top:28px;scroll-margin-top:20px}.kit-result-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.kit-result-heading h2{font-size:24px;overflow-wrap:anywhere;margin-top:8px}.kit-result-actions{display:flex;gap:10px;flex-wrap:wrap}.kit-result-actions button{min-height:44px;font-size:12px}.kit-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:12px;margin:20px 0}.kit-result-item{display:flex;flex-direction:column;align-items:center;gap:8px;background:#22222a;border:1px solid #41414a;padding:10px 4px 14px;border-radius:14px;min-width:0}.kit-result-item:hover{border-color:#c6c6d2}.kit-result-item img{width:100px;height:100px;max-width:100%;object-fit:contain}.kit-result-item span{font-size:11px;overflow-wrap:anywhere}.template-actions .template-kit-button{grid-column:1/-1;white-space:normal;color:#dedee8;background:#32323c}
@media(max-width:760px){.creation-modes{display:grid;grid-template-columns:1fr 1fr;gap:8px}.creation-modes button{font-size:12px;padding:11px 8px}.kit-intro{align-items:flex-start}.kit-intro h2{font-size:22px}.kit-intro .eyebrow{font-size:9px}.kit-free{font-size:10px;padding:8px}.kit-layout{grid-template-columns:1fr;gap:16px}.kit-form,.kit-preview-panel{padding:18px;border-radius:16px}.kit-preview-panel{position:static}.kit-styles{gap:6px}.kit-styles strong{font-size:9px}.kit-color-label{gap:8px!important}.kit-draft{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.kit-result-actions{width:100%}.kit-result-actions button{flex:1;white-space:normal}.kit-results{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.kit-result-item img{width:86px;height:86px}.kit-result-heading h2{font-size:21px}}

.template-art.template-static{height:220px;display:grid;place-items:center;padding:15px;background:radial-gradient(ellipse at center,#29292f,#19191e)!important;border-bottom:1px solid #34343c}
.template-art.template-static:before{display:none}.template-art.template-static img{position:static;display:block;width:192px;height:192px;max-width:100%;object-fit:contain;filter:none;transform:none}
.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0 15px}.gallery-toolbar p{font-size:13px;color:#aaaab2;white-space:nowrap}.gallery-toolbar strong{font-size:25px;color:#fff;font-weight:650;margin-right:5px;font-variant-numeric:tabular-nums}.gallery-toolbar input{max-width:390px;width:100%}
.gallery-categories{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:25px}.gallery-category{font-size:12px;padding:9px 13px;border:1px solid #414149;border-radius:30px;color:#b8b8c0;background:#1e1e23}.gallery-category:hover{border-color:#888892}.gallery-category.selected{background:#efeff3;border-color:#efeff3;color:#17171b}
.gallery-empty{font-size:14px;line-height:1.6;text-align:center;color:#bcbcc4;padding:50px 20px;border:1px dashed #555560;border-radius:16px}.gallery-source{display:block;margin-top:12px;font-size:11px;color:#c8c8d1;text-decoration:underline;text-underline-offset:3px}.prompt-note{font-size:10px!important;line-height:1.6;color:#aaaab3}
.template-download{background:#ededf2;color:#1d1d23;border-color:#ededf2!important;font-weight:600}.template-download:hover{background:#fff}.template-copy .template-actions{margin-top:15px;display:grid;grid-template-columns:1fr 1fr}.template-actions .secondary-button{min-width:0;font-size:11px;min-height:42px;white-space:nowrap;padding:10px 7px}.template-copy>p{min-height:38px}.template-prompt{margin:13px 0}.template-prompt summary{font-size:11px}
@media(max-width:760px){.gallery-toolbar{flex-wrap:wrap;gap:12px;margin-top:22px}.gallery-toolbar input{max-width:none}.gallery-categories{gap:7px}.gallery-category{font-size:11px;padding:8px 11px}.template-art.template-static{height:210px}.template-copy .template-actions{display:grid;grid-template-columns:1fr 1fr;flex-direction:row}.template-actions .secondary-button{font-size:12px}.template-copy>p{min-height:0}}

/* Keep optional tools collapsed; creation and export stay easy to reach. */
#editor-view>.page-heading{margin:24px 0 20px}#editor-view>.page-heading .eyebrow,#editor-view>.page-heading .heading-stamp{display:none}#editor-view h1{font-size:32px}#editor-view>.page-heading p{margin-top:8px}.creation-modes{margin-bottom:18px}.workbench .upload-row{margin:0 0 12px}.workbench .canvas-stage{height:260px}.workbench #preview{width:230px;height:230px}.controls-panel .panel-live-preview{display:none}.controls-panel .panel-title{margin-bottom:16px}.controls-panel .panel-title h2{font-size:18px}.controls-panel .panel-title>img{display:none}.controls-panel>.control-section{margin-top:0;padding:14px 0;border-top:1px solid var(--border)}.controls-panel .control-section-label{display:none}.controls-panel .toggle-row{margin:0 0 16px}.editor-disclosure{min-width:0}.editor-disclosure>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;cursor:pointer;font-size:13px;color:#e6e6eb}.editor-disclosure>summary::-webkit-details-marker{display:none}.editor-disclosure>summary:after{content:'+';font-size:21px;color:#a8a8b3}.editor-disclosure[open]>summary:after{content:'−'}.editor-disclosure>summary:focus-visible{outline:2px solid #ddd;outline-offset:3px;border-radius:8px}.disclosure-body{padding:14px 0 4px}.controls-panel .export-section{margin-top:10px;padding-top:16px}.controls-panel .privacy-note{margin-bottom:0}.chat-preview{margin-top:12px}.inspiration-strip{display:none!important}.kit-intro .eyebrow,.kit-chat{display:none}.kit-intro{margin-bottom:16px}.kit-intro h2{font-size:22px}.kit-form .kit-note{font-size:11px}.kit-options{border-top:1px solid #373741;margin:12px 0}.kit-options .disclosure-body{padding-top:8px}.kit-options label:last-child{margin-bottom:4px}
@media(max-width:760px){#editor-view>.page-heading{margin:18px 0}#editor-view h1{font-size:28px}.workbench .canvas-stage{height:230px}.workbench #preview{width:205px;height:205px}.editor-layout{gap:16px}.controls-panel{padding:16px}.creation-modes{gap:6px}.creation-modes button{padding:9px 6px;font-size:11px}.controls-panel .control-section{padding:6px 0}.panel-title .animation-toggle{font-size:10px}.kit-intro p{font-size:12px}}

/* The public directory is separate from generated templates and personal work. */
.pack-search{display:flex;gap:10px;margin:20px 0}.pack-search input{flex:1;width:100%}.pack-search select{width:160px}.pack-add{border:1px solid #3d3d46;border-radius:14px;padding:0 16px;margin-bottom:20px}.pack-add form{display:grid;gap:10px;padding:4px 0 18px}.pack-add label,.pack-add small{font-size:12px;color:#aaaab5}.pack-add input{width:100%}.public-pack-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0}.public-pack-card{border:1px solid #36363f;background:#19191e;border-radius:18px;overflow:hidden;min-width:0}.public-pack-cover{height:190px;display:grid;place-items:center;background:#222229}.public-pack-cover img{width:176px;height:176px;object-fit:contain}.public-pack-cover span{font-size:36px;letter-spacing:8px;overflow:hidden;max-width:90%}.public-pack-copy{padding:16px}.public-pack-copy h2{font-size:16px;overflow-wrap:anywhere;margin-bottom:9px}.public-pack-copy p{color:#aaaab5;font-size:12px;margin-bottom:14px}.public-pack-copy a{display:flex;justify-content:center;align-items:center;min-height:44px}.public-pack-copy small{display:block;font-size:10px;color:#9999a5;margin-bottom:12px;overflow-wrap:anywhere}#pack-library-status{font-size:13px;color:#bcbcc5;min-height:20px}#pack-load-more{display:block;margin:24px auto}.sidebar nav{grid-template-columns:repeat(4,minmax(0,1fr))}.sidebar .nav-item{min-width:0}.sidebar .nav-item>span{font-size:23px;line-height:26px}
@media(max-width:760px){.public-pack-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.public-pack-cover{height:130px}.public-pack-cover img{width:120px;height:120px}.public-pack-copy{padding:11px}.public-pack-copy h2{font-size:13px}.public-pack-copy a{font-size:11px;padding:8px 4px}.pack-search{flex-direction:column}.pack-search select{width:100%}.sidebar .nav-item{padding:8px 3px;font-size:10px}}
.sidebar .nav-item[data-view=packs]>span{display:block!important;width:26px;height:26px;margin:0 auto 4px}

#preview{touch-action:none;cursor:grab}#preview.dragging-emoji{cursor:grabbing}#empty-overlay{pointer-events:none}.editor-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.editor-tools .secondary-button{min-height:42px;font-size:12px;padding:9px 12px}.quick-zoom{display:flex;align-items:center;gap:2px;border:1px solid #414149;border-radius:10px;background:#202026}.quick-zoom button{width:40px;height:40px;font-size:20px}.quick-zoom output{min-width:48px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}.editor-hint{font-size:11px;color:#a7a7b3;line-height:1.5;margin-top:9px}@media(max-width:760px){.editor-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}.editor-tools .secondary-button{width:100%}.quick-zoom{justify-content:space-between}.editor-hint{font-size:10px}}

.draft-line{display:flex;align-items:center;gap:10px;font-size:11px;color:#aaaab5;margin:14px 0;min-height:20px}.draft-offer{border:1px solid #555562;background:#25252e;border-radius:14px;padding:16px;margin-top:16px}.draft-offer p{font-size:13px;margin-bottom:10px}.draft-offer>div{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.pack-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.pack-choice{display:flex;align-items:center;gap:8px;text-align:left;border:1px solid #555560;border-radius:10px;min-width:0;padding:9px;font-size:12px}.pack-choice[aria-pressed=true]{border-color:#eee;background:#3b3b46}.pack-choice img,.pack-choice>span:first-child{width:34px;height:34px;object-fit:contain;flex-shrink:0}.pack-choice>span:last-child{overflow-wrap:anywhere}#publish-dialog{max-height:calc(100dvh - 32px);overflow-y:auto}

/* Message and reaction share the current frame from the editor renderer. */
.context-preview{margin-top:16px;border-top:1px solid #353535;padding-top:14px}.context-preview .chat-preview{margin:0;align-items:flex-start}.context-preview .chat-avatar{margin-top:8px;flex-shrink:0;background:#393939}.context-chat{min-width:0}.context-preview .chat-bubble{min-height:44px;flex-wrap:wrap;row-gap:0;background:#303030}.context-preview .chat-bubble>span{display:inline-flex;align-items:center}.context-preview .chat-bubble canvas{width:30px;height:30px;margin:-4px 0}.context-preview .chat-bubble time{margin-left:auto;padding-left:10px;white-space:nowrap}.context-reaction{display:flex;align-items:center;gap:5px;min-height:44px;min-width:60px;margin-top:5px;padding:5px 10px;border:1px solid #626262;border-radius:22px;background:#252525;font-size:12px;font-variant-numeric:tabular-nums}.context-reaction canvas{width:26px;height:26px;object-fit:contain}.context-reaction[aria-pressed=true]{background:#e7e7e7;border-color:#e7e7e7;color:#202020}.context-preview-note{font-size:10px;line-height:1.5;color:#999;margin-top:8px;max-width:360px}@media(max-width:360px){.context-preview .chat-preview{gap:8px}.context-preview .chat-avatar{width:26px;height:26px}.context-preview .chat-bubble{font-size:11px;padding:9px}.context-preview .chat-bubble time{padding-left:4px}}
