:root{color-scheme:dark;--bg:#0b1020;--panel:#111728;--line:#263047;--muted:#9ba9c2;--text:#eff2fa;--accent:#a5a3ff;--primary:#6366f1}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 Outfit,system-ui,sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;color:var(--text);border:1px solid #364058;border-radius:9px;background:#1c2438;padding:8px 13px;transition:background .15s,border-color .15s}button:hover{background:#303957;border-color:#8280c7}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #b8b4ff;outline-offset:3px}a{color:#bcbaff}.primary{background:linear-gradient(120deg,#6366f1,#8958dc);border-color:#8782f3;font-weight:600}.primary:hover{background:#7771e8}.quiet{background:transparent}.square{padding:3px;width:30px;height:30px;font-size:20px;line-height:1}.studio{height:100dvh;min-height:540px;display:flex;flex-direction:column;overflow:hidden}.studio-header{height:68px;flex-shrink:0;padding:0 24px;display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);line-height:1.2;font-weight:600}.brand img{object-fit:contain}.brand small{display:block;color:#a7a5ef;font-size:9px;letter-spacing:2px;margin-top:5px}.save-state{margin-left:auto;color:#9db3a8;font-size:11px;display:flex;align-items:center;gap:6px}.save-state:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.header-actions{display:flex;gap:8px;align-items:center}.workspace-nav{height:49px;display:flex;align-items:center;gap:26px;padding:0 24px;border-bottom:1px solid var(--line);flex-shrink:0}.workspace-nav button{height:100%;padding:0 2px;background:none;border:0;border-radius:0;color:var(--muted);font-size:12px;white-space:nowrap}.workspace-nav button[aria-current]{color:#d1ceff;border-bottom:2px solid #a29cff}.workspace-nav .apps-link{margin-left:auto;font-size:11px}.workspace{flex:1;display:grid;grid-template-columns:185px minmax(290px,355px) minmax(300px,1fr);min-height:0}.card-sidebar{padding:20px 13px 10px;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;background:#0e1424}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 15px}.panel-heading h2{font-size:12px;margin:0;font-weight:500}.panel-heading h2 span{font-size:10px;color:var(--muted);padding-left:6px}.panel-heading button{background:transparent;border-color:var(--line)}.card-list{overflow:auto;min-height:50px}.card-item{display:flex;width:100%;text-align:left;align-items:center;padding:10px 8px;gap:9px;background:transparent;margin-bottom:8px;border:1px solid transparent}.card-item.active{background:#211f3f;border-color:#55518a}.mini-card{width:32px;height:44px;background:#edeef4;border-radius:3px;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden}.mini-card svg{width:100%;height:100%}.card-item .name{font-size:11px;overflow-wrap:anywhere}.card-item small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.card-item .index{font-size:11px;color:#737d94}.add-card{margin-top:10px;border:1px dashed #404763;background:none;width:100%;font-size:11px;padding:10px}.sidebar-bottom{margin-top:auto;padding:24px 3px 4px;font-size:10px;color:#abb5cb}.sidebar-bottom small{color:#79859d;padding-left:12px}.local-dot{display:inline-block;height:5px;width:5px;background:#7bd2b4;border-radius:50%;margin-right:5px}.editor-panel{min-width:0;overflow:auto;border-right:1px solid var(--line);background:var(--panel);scrollbar-width:thin;scrollbar-color:#414863 transparent}.editor-inner{padding:22px 23px 32px}.eyebrow{font-size:9px;font-weight:500;letter-spacing:1.5px;color:#9d98e0}.editor-inner .editor-title{font-size:22px;font-weight:500;margin:3px 0 4px;letter-spacing:-.5px}.editor-inner h2{font-size:13px;font-weight:500;margin:21px 0 12px}.editor-inner p{color:var(--muted);font-size:12px;margin:6px 0 16px}.editor-inner label,.dialog-body label{display:block}label{display:block;font-size:11px;color:#c3cbe0;margin:11px 0 5px}.required{color:#b4afff}input:not([type=checkbox]):not([type=color]):not([type=range]),textarea,select{display:block;width:100%;background:#0d1323;border:1px solid #354058;border-radius:8px;padding:9px 10px;color:var(--text);outline:none;font-size:12px;min-width:0}input:focus,textarea:focus,select:focus{border-color:#9690f0;box-shadow:0 0 0 2px #8e81ff20}input::placeholder,textarea::placeholder{color:#75839e}textarea{resize:vertical;min-height:68px}input[type=range]{width:100%;accent-color:#a29aff}input[type=color]{width:33px;height:33px;border:0;padding:2px;background:#1c253c;border-radius:50%}input[type=checkbox]{accent-color:#8880ed}details{border-top:1px solid var(--line);margin-top:18px;padding-top:14px}summary{font-size:12px;color:#d1d6e5;cursor:pointer;padding:3px 0}.field-note{font-size:10px!important;line-height:1.5;color:#8e9bb4!important;margin:4px 0 10px!important}.row{display:flex;gap:8px;align-items:center}.row>*{min-width:0;flex:1}.row>button,.row>input[type=checkbox]{flex:0 0 auto}.compact-row{display:flex;gap:6px;flex-wrap:wrap}.compact-row button{font-size:11px;padding:6px 10px}.task-box{padding:13px 14px;background:#1b203c;border:1px solid #35365e;border-radius:12px;margin:0 0 22px}.task-box summary{color:#c8c1ff;padding:0;font-size:11px}.task-box p{margin:9px 0 2px;white-space:pre-wrap;overflow-wrap:anywhere}.task-box details{padding:0;margin:0;border:0}.section-label{display:flex;align-items:center;gap:9px;font-size:12px;margin:21px 0 9px}.section-label span{font-size:9px;color:#938acb;letter-spacing:1px}.image-drop{border:1px dashed #505575;border-radius:10px;padding:15px 10px;text-align:center;background:#171d32;margin-top:10px}.image-drop.drag{background:#33305a}.image-drop p{font-size:11px;margin:0 0 10px}.image-drop button{font-size:11px;background:#282d48}.image-controls{background:#151d31;padding:10px;border-radius:10px;margin-top:10px}.image-controls .row label{margin:5px 0}.image-state{font-size:10px;color:#9fcdbd;margin-top:7px;overflow-wrap:anywhere}.value-row{margin-bottom:12px}.value-heading{display:flex;justify-content:space-between;gap:6px;align-items:center}.value-heading label{margin-top:0}.comparison{font-size:9px;color:#a09bd1}.input-unit{position:relative}.input-unit input{padding-right:65px!important}.input-unit span{position:absolute;right:11px;top:9px;color:#818eaa;font-size:11px;pointer-events:none}.palette{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.swatch{width:23px;height:23px;border-radius:50%;border:2px solid #ffffff30;padding:0;box-shadow:0 0 0 2px transparent}.swatch.selected{box-shadow:0 0 0 2px #bdb9ec}.error{color:#ffc2b9;font-size:11px;margin:4px 0;overflow-wrap:anywhere}.notice{padding:12px;border-radius:10px;background:#28263e;border:1px solid #5e5279;font-size:12px;color:#e1d4ed;margin:12px 0;overflow-wrap:anywhere}.danger{color:#ffb4ab}.property-box{background:#0c1323;border:1px solid #30394e;border-radius:10px;padding:12px;margin:10px 0}.property-box .row input{width:70px}.property-tools{display:flex;gap:5px;justify-content:flex-end;margin-top:10px}.property-tools button{font-size:10px;padding:3px 8px}.check-label{display:flex;gap:8px;align-items:center;font-size:11px;margin:10px 0}.check-label input{flex-shrink:0}.preview-panel{display:flex;flex-direction:column;min-height:0;min-width:0;position:relative;padding:27px 30px 14px;background:radial-gradient(ellipse at 70% 35%,#37305850,transparent 60%),radial-gradient(circle at 1px 1px,#7a7a9f1c 1px,transparent 1px);background-size:auto,20px 20px}.preview-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.preview-heading h2{font-size:22px;font-weight:400;letter-spacing:-.6px;margin:5px 0;color:#e7e5f8}.live-badge{font-size:10px;color:#b3dece;border:1px solid #37534f;padding:4px 9px;border-radius:100px;white-space:nowrap}.live-badge i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#8eddbd;margin-right:5px}.preview-stage{flex:1;min-height:0;display:flex;justify-content:center;align-items:center;padding:20px;container-type:size}.card-preview{height:min(100cqh,490px);aspect-ratio:63/88;max-width:100%;filter:drop-shadow(0 20px 30px #0008);transition:transform .2s;transform:rotate(-2deg);border-radius:8px;background:#fff;overflow:hidden}.card-preview:hover{transform:rotate(0)}.card-preview svg{display:block;width:100%;height:100%;border-radius:8px}.preview-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:#9cabc3}.preview-bottom b{padding:0 5px;font-weight:400}.preview-bottom div{display:flex;border:1px solid #39405a;border-radius:8px;overflow:hidden}.preview-bottom button{border:0;border-radius:0;font-size:10px;padding:6px 10px;background:transparent;color:#9ca7bf}.preview-bottom button.active{background:#38344f;color:#e3ddff}.preview-warnings{max-height:100px;overflow:auto;font-size:10px;color:#e6c99c}.preview-warnings:not(:empty){padding-top:8px}.preview-warnings ul{padding-left:16px;margin:0}.studio-status{height:29px;flex-shrink:0;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#7e8ca7;padding:0 20px}.mobile-tabs{display:none}dialog{background:#141b2e;color:var(--text);border:1px solid #444b69;border-radius:20px;width:min(600px,calc(100% - 24px));padding:24px;max-height:90dvh;overflow:auto;box-shadow:0 25px 90px #0009}dialog::backdrop{background:#050916c9;backdrop-filter:blur(5px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.dialog-head h2{margin:0;font-size:21px;font-weight:500}.dialog-head button{background:none}.dialog-head h2+button{flex-shrink:0}#dialog-body p{font-size:12px;color:#b1bed3;line-height:1.7}#dialog-body h3{font-size:14px;margin:20px 0 10px}#dialog-body .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}#dialog-body textarea{font-family:inherit}.file-action{display:flex;text-align:left;width:100%;margin:8px 0;padding:13px}.file-action span{flex:1}.file-action small{display:block;color:#a5b0c6;margin-top:3px;font-size:10px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#ece9ff;color:#242038;padding:12px 18px;border-radius:12px;box-shadow:0 6px 25px #0006;z-index:10;max-width:90vw;font-size:12px}.toast button{margin-left:12px;color:#403077;background:#d5d0f7;border:0;padding:3px 7px}.export-card{display:flex;gap:10px;align-items:center;border-bottom:1px solid var(--line);padding:7px 0}.export-card label{margin:0}.export-card small{font-size:10px;color:#afbad0}.merge-report{padding:10px;border-bottom:1px solid var(--line);font-size:12px;overflow-wrap:anywhere}.lmb-footer{margin:0!important}progress{width:100%;accent-color:#9c91fa} .lmb-footer img{max-width:100%}
@media(min-width:769px) and (max-height:760px){.studio-header{height:58px}.workspace-nav{height:43px}.editor-inner{padding:17px 20px}.preview-panel{padding:19px 24px 12px}.preview-heading h2{font-size:19px}.preview-stage{padding:17px}.preview-warnings{max-height:65px}.studio-status{height:25px}}
@media(max-width:1100px) and (min-width:769px){.workspace{grid-template-columns:145px 310px minmax(280px,1fr)}.studio-header{padding:0 15px;gap:12px}.save-state{font-size:10px}.header-actions{gap:5px}.header-actions button{font-size:11px;padding:8px 10px}.preview-panel{padding:20px}.preview-heading h2{font-size:18px}.preview-bottom{flex-direction:column;gap:6px}.workspace-nav{gap:20px}}
@media(max-width:768px){.studio{min-height:550px;height:100dvh}.studio-header{padding:9px 12px;height:auto;min-height:74px;flex-wrap:wrap;gap:8px}.brand{font-size:12px}.brand img{width:26px;height:26px}.brand small{font-size:8px}.save-state{font-size:9px}.header-actions{width:100%;gap:6px}.header-actions button{font-size:11px;padding:6px 10px}.header-actions .primary{margin-left:auto}.workspace-nav{height:43px;padding:0 12px;gap:16px;overflow:auto}.workspace-nav button{font-size:10px}.workspace-nav .apps-link{display:none}.mobile-tabs{display:flex;gap:5px;padding:9px 12px;border-bottom:1px solid var(--line)}.mobile-tabs button{flex:1;background:transparent;border-color:transparent;padding:5px 8px;font-size:11px}.mobile-tabs button[aria-pressed=true]{background:#312e51;border-color:#67618b;color:#d6d1ff}.workspace{display:block;overflow:hidden}.workspace>section,.workspace>aside{height:100%;display:none;border:0}.workspace[data-view=edit] .editor-panel{display:block}.workspace[data-view=list] .card-sidebar{display:flex}.workspace[data-view=preview] .preview-panel{display:flex}.editor-inner{padding:18px 22px}.preview-panel{padding:18px 22px}.preview-heading h2{font-size:19px}.preview-stage{padding:14px}.card-preview{transform:none;max-width:290px}.card-item .mini-card{width:37px;height:51px}.card-item .name{font-size:13px}.sidebar-bottom{padding-top:8px}.studio-status{padding:0 12px;font-size:9px}.studio-status>span+span{display:none}.preview-bottom{flex-direction:row}.preview-warnings{max-height:65px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}.card-preview{transform:none}}
@font-face{font-family:CardVera;src:url('vendor/Vera.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:CardVera;src:url('vendor/VeraBd.ttf') format('truetype');font-weight:700;font-display:swap}

.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}
[hidden]{display:none!important}
.preview-stage{position:relative;padding:28px 30px 35px}
.card-preview{position:relative;overflow:visible;background:transparent;border-radius:0;transform:none;filter:none;isolation:isolate;height:min(calc(100cqh - 12px),490px)}
.preview-card{position:absolute;inset:0;background:#fff;border-radius:7px;overflow:hidden;box-shadow:0 16px 36px #0005;transform:translate(var(--stack-x,0px),var(--stack-y,0px)) rotate(var(--stack-angle,-1.5deg));transform-origin:50% 90%;transition:transform .22s,opacity .22s;pointer-events:none}
.preview-card.active{z-index:10;pointer-events:auto;transform:rotate(-1.5deg)}
.preview-card.active:hover{transform:rotate(0deg)}
.preview-card svg{height:100%;width:100%;display:block}
.preview-card.under{filter:brightness(.83)}
.stack-back,.stack-next{position:absolute;bottom:0;padding:2px 9px;background:#1d243b;font-size:15px}
.stack-back{left:calc(50% - 72px)}.stack-next{right:calc(50% - 72px)}
.stack-count{position:absolute;bottom:4px;left:50%;transform:translateX(-50%);font-size:10px;color:#bac4da;white-space:nowrap}
.editor-tabs{display:flex;gap:6px;margin:0 0 18px}.editor-tabs button{flex:1;font-size:11px;background:transparent}.editor-tabs button.active{background:#353057;border-color:#77709b;color:#eee9ff}
.design-options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:8px 0}
.design-choice{padding:9px 4px;font-size:10px;border:1px solid #414b65;border-radius:9px;background:#151c2e}.design-choice.active{border-color:#b4a6ff;background:#332c52}
.design-choice .sample{display:block;width:28px;height:39px;margin:0 auto 7px;background:#f6f3ec;border-radius:2px;border-top:3px solid var(--sample-accent,#6366f1)}
.design-choice[data-card-style=frame] .sample{border:3px solid var(--sample-accent,#6366f1)}
.design-choice[data-card-style=band] .sample{border-top-width:11px}
.range-value{float:right;color:#a7a0d9;font-size:10px}.package-hint{font-size:11px;color:#a3b3c9}
@media(max-width:768px){.preview-stage{padding:25px 22px 31px}.card-preview{max-width:265px}.preview-card{--stack-angle:0deg}.preview-card.active{transform:none}}
@media(prefers-reduced-motion:reduce){.preview-card{transition:none!important}.preview-card.active{transform:none}}
.editor-toolbar{display:flex;align-items:stretch;justify-content:space-between;gap:8px;margin-bottom:18px}
.editor-toolbar .editor-tabs{margin:0}
.editor-toolbar button{font-size:11px;padding:7px 8px}
.editor-toolbar .danger{flex-shrink:0;background:transparent}
.editor-toolbar .danger:hover{background:#352638;border-color:#a96d73}
.input-limit{display:block;color:var(--muted);font-size:10px;margin:-3px 0 4px}
#editor [aria-invalid="true"]{border-color:#e1a097}
.card-item.context-target{border-color:var(--accent)}
.card-context-menu{
  position:fixed;
  z-index:11;
  max-width:calc(100vw - 12px);
  padding:4px;
  border:1px solid #444b69;
  border-radius:10px;
  background:#141b2e;
  box-shadow:0 8px 24px #0007;
}
.card-context-menu button{display:block;width:100%;text-align:left;background:transparent;border-color:transparent}
.card-context-menu button:hover,.card-context-menu button:focus-visible{background:#352638;border-color:#a96d73}
