:root{color-scheme:dark;--bg:#0a1423;--panel:#142034;--line:#354c73;--text:#dbe6fc;--muted:#92aacb;--purple:#9561ed;--field:#101c2e}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 37% 0,#1a2a43 0,transparent 55%),linear-gradient(145deg,#0d192b,#0a1422 70%);color:var(--text);font:14px/1.45 'Microsoft YaHei UI','Segoe UI',sans-serif;height:100vh;overflow:hidden}button,input,select{font:inherit}button{cursor:pointer;color:var(--text);border:1px solid #395375;border-radius:7px;background:linear-gradient(160deg,#243650,#19273c);min-height:38px;padding:8px 12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .14s,border-color .14s,box-shadow .14s,transform .1s;color:var(--text);white-space:nowrap}button:hover{border-color:#8b75be;background:linear-gradient(150deg,#304668,#263653);box-shadow:0 0 10px #9561ed18}button:active{transform:translateY(1px);filter:brightness(.9)}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #b18aff;outline-offset:2px}button:disabled{opacity:.42;cursor:default;box-shadow:none;transform:none}.primary,.active{background:linear-gradient(160deg,#7040bd,#482481)!important;border-color:#a365fb!important;box-shadow:inset 0 1px 0 #d1a8ff40,0 0 14px #8045c32b}.primary:hover,.active:hover{background:linear-gradient(160deg,#8751d8,#5d329e)!important}svg{width:22px;height:22px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.app{height:100%;padding:24px 20px 20px;display:flex;flex-direction:column;gap:20px}.app-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 8px}.app-header h1{font-size:30px;letter-spacing:1px;margin:0 0 7px;font-weight:700;color:#dce8ff;text-shadow:0 2px 16px #89aaff20}.app-header p{font-size:14px;color:var(--muted);margin:0}.mode-switch{display:flex;gap:10px}.mode-switch button{min-height:49px;min-width:150px;font-weight:600}.workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,1.03fr) minmax(0,1fr);gap:14px}.panel{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:linear-gradient(145deg,#18263d,#111c2f);box-shadow:inset 0 1px 0 #8ca4ce0a,0 8px 24px #00000018;display:flex;flex-direction:column;min-width:0;position:relative}.panel:after{content:'';position:absolute;bottom:0;left:20px;width:70px;height:6px;background:linear-gradient(135deg,transparent 45%,#354c7355 46%,#354c7355 52%,transparent 53%);pointer-events:none}.panel-title{min-height:62px;display:flex;align-items:center;gap:13px;padding:0 20px;background:linear-gradient(110deg,#24334b,#162238);border-bottom:1px solid #344968}.panel-title>svg{width:26px;height:26px;color:#a67dff;filter:drop-shadow(0 0 6px #a16af055)}.panel-title h2{font-size:19px;margin:0;font-weight:600;letter-spacing:.4px}.meta{margin-left:auto;white-space:nowrap;font-size:12px;color:var(--muted)}.content-body,.preview-body,.library-body{padding:18px;flex:1;min-height:0}.content-body{display:flex;flex-direction:column;gap:9px}.content-body>label{font-size:14px;color:#b7cae8;margin-top:4px}.content-body>label span{font-size:12px;color:var(--muted);margin-left:6px}input,select{min-width:0;width:100%;background:linear-gradient(135deg,#132136,#0f1a2b);color:#edf2ff;border:1px solid #415b7d;border-radius:7px;min-height:44px;padding:9px 12px;box-shadow:inset 0 1px 3px #00000018}input:hover,select:hover{border-color:#617799}select{padding-right:28px;cursor:pointer}select option{background:#142239;color:var(--text)}.input-shell,.rich-shell{position:relative}.input-shell input{padding-right:54px}.field-count{position:absolute;right:12px;bottom:11px;font-size:12px;color:var(--muted);pointer-events:none}.rich-shell{flex:1;min-height:90px;background:linear-gradient(140deg,#132236,#0f1929);border:1px solid #415b7d;border-radius:7px;overflow:hidden;transition:border .15s,box-shadow .15s}.rich-shell:focus-within{border-color:#9b76d8;box-shadow:0 0 0 2px #9361e814}#description{height:100%;padding:13px 13px 33px;overflow:auto;color:white;font-size:15px;line-height:1.62;outline:0;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text}.colors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:2px}.colors button{font-size:12px;min-height:33px;padding:5px;gap:5px}.colors button svg{width:16px;height:16px}.colors i{height:8px;width:8px;border-radius:50%;background:currentColor;box-shadow:0 0 6px currentColor}.colors .green{color:#6bec82;border-color:#377651;background:linear-gradient(145deg,#173e30,#1a2d32)}.colors .red{color:#ff818d;border-color:#835363;background:linear-gradient(145deg,#3b2534,#29243b)}.export{height:52px;flex-shrink:0;font-size:17px;font-weight:600;letter-spacing:.5px;margin-top:4px}.export svg{width:22px;height:22px}.preview-body{display:flex;flex-direction:column;gap:12px}.preview-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;position:relative;background:radial-gradient(ellipse,#35244d15,transparent 70%)}#preview{max-height:100%;max-width:100%;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 12px #9561ed22);image-rendering:auto}#preview:not([src]){visibility:hidden}.preview-actions{display:flex;gap:8px}.preview-actions button{flex:1;min-width:0;font-size:12px;padding:10px 6px;gap:6px}.preview-actions svg{width:17px;height:17px}.muted,.status{color:var(--muted);font-size:12px;margin:0;overflow-wrap:anywhere}.status{min-height:32px}.status.error{color:#ff9ba5}.status.success{color:#74d7b2}.loader{position:absolute;right:8px;bottom:8px;width:18px;height:18px;border:2px solid #a77bf72c;border-top-color:#c39cff;border-radius:50%;animation:spin .8s linear infinite;display:none}.loader.busy{display:block}@keyframes spin{to{transform:rotate(360deg)}}.library-body{display:flex;flex-direction:column;gap:11px}.search-shell{position:relative}.search-shell svg{position:absolute;left:12px;top:11px;color:#b6c9e6;width:20px;height:20px}.search-shell input{padding-left:42px}.tabs{display:flex;gap:8px}.tabs button{flex:1;min-width:0}.recommend-actions{display:flex;gap:8px}.recommend-actions button{flex:1;min-width:0;font-size:12px;gap:6px;padding:7px}.recommend-actions svg{width:17px;height:17px}.filter-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.filter-actions button{font-size:12px;min-height:31px;padding:5px 10px}.filter-actions button svg{width:16px;height:16px}.name-toggle{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;white-space:nowrap;cursor:pointer}.name-toggle input{width:14px;min-height:14px;margin:0;accent-color:#9863e8}.active-tags{display:flex;gap:5px;flex-wrap:wrap;max-height:65px;overflow:auto}.active-tags:empty{display:none}.chip{font-size:11px;padding:3px 7px;min-height:24px;border-color:#7855ab;background:#39285a}.icon-viewport{flex:1;min-height:100px;overflow-y:scroll;overflow-x:hidden;overscroll-behavior:contain;scroll-behavior:smooth;padding-right:7px}.icon-grid{position:relative;min-height:100%}.icon-tile{position:absolute;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3px;border:1px solid #364c68;border-radius:6px;background:linear-gradient(140deg,#273a53,#142236);gap:0;transition:border-color .13s,box-shadow .13s,background .13s}.icon-tile img{width:58px;height:58px;object-fit:contain;pointer-events:none}.icon-tile:hover{border-color:#b395e4;box-shadow:0 0 8px #996ee633;z-index:1}.icon-tile.selected{border-color:#b281ff;background:linear-gradient(145deg,#49306b,#201d3d);box-shadow:0 0 0 1px #9461e8,0 0 12px #9a66ee5c}.icon-tile .filename{font-size:10px;line-height:1.3;color:#b8c9e6;max-width:100%;overflow:hidden;overflow-wrap:anywhere;text-align:center;max-height:28px}.library-status{font-size:11px;color:var(--muted);min-height:16px}::-webkit-scrollbar{width:18px;height:18px}::-webkit-scrollbar-track{background:#101b2d;border-radius:8px}::-webkit-scrollbar-thumb{background:linear-gradient(#ab80ef,#7956ae);border:3px solid #101b2d;border-radius:9px;min-height:44px}::-webkit-scrollbar-thumb:hover{background:#aa80ef}dialog{background:linear-gradient(145deg,#1b2a43,#111d31);color:var(--text);border:1px solid #526a94;border-radius:12px;width:min(820px,90vw);max-height:82vh;padding:22px;box-shadow:0 25px 90px #0009}dialog::backdrop{background:#050a15b8;backdrop-filter:blur(3px)}.dialog-title{display:flex;justify-content:space-between;align-items:center}.dialog-title h2{font-size:20px;margin:0}.dialog-title button{font-size:25px;padding:0;width:34px;min-height:34px}dialog p{color:var(--muted);font-size:12px}#tagGroups{max-height:57vh;overflow:auto;padding-right:12px}.tag-section{margin:16px 0}.tag-section h3{font-size:14px;color:#c7b0f3}.tag-list{display:flex;gap:7px;flex-wrap:wrap}.tag-list button{font-size:12px;min-height:30px;padding:4px 10px}.dialog-actions{display:flex;justify-content:space-between;padding-top:18px}.tooltip{position:fixed;z-index:99;max-width:340px;pointer-events:none;padding:9px 12px;border:1px solid #536887;border-radius:6px;background:#17243af2;box-shadow:0 6px 20px #0006;color:#d5e1f8;font-size:11px;overflow-wrap:anywhere}.tooltip strong{display:block;margin-bottom:4px;font-weight:500}.tooltip small{color:#b79ae5}@media(max-width:1150px){.app{padding:18px 14px 14px;gap:16px}.workspace{grid-template-columns:minmax(0,.96fr) minmax(0,1fr) minmax(0,1fr);gap:10px}.content-body,.preview-body,.library-body{padding:13px}.panel-title{padding:0 13px;gap:9px}.panel-title h2{font-size:17px}.mode-switch button{min-width:126px;font-size:13px}.app-header h1{font-size:25px}.preview-actions button{flex-direction:column;gap:4px;padding:8px 3px}.meta{font-size:10px}.content-body>label span{font-size:10px}.colors button{font-size:11px}.colors button svg{width:13px;height:13px}}@media(max-height:800px){.app{gap:14px;padding-top:17px}.app-header h1{font-size:26px}.app-header p{font-size:12px}.panel-title{min-height:51px}.content-body{gap:6px}.content-body input,.content-body select{min-height:38px;padding-top:6px;padding-bottom:6px}.content-body>label{margin-top:1px;font-size:12px}.export{height:43px}.colors button{min-height:28px}.preview-body{gap:8px}.library-body{gap:8px}#description{font-size:14px;line-height:1.55}.preview-actions button{min-height:36px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.tag-search{width:100%;padding:12px 14px;margin:0 0 14px;color:#e1ebff;background:#101c2d;border:1px solid #405b80;border-radius:8px}

[hidden]{display:none!important}#categoryFields>label{display:block;color:#b7cae8;margin-bottom:7px}.card-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}#cardFields label{display:block;color:#b7cae8;font-size:12px}#cardFields select{margin-top:5px}#cardFields>label{margin-top:8px}.unit-body{display:flex;flex-direction:column;padding:18px;gap:11px;flex:1;min-height:0}.unit-summary{display:flex;align-items:center;gap:14px}.unit-summary>label:first-child{flex:1;color:#b7cae8;font-size:12px}.unit-summary input[type=number]{margin-top:4px}.unit-section-title{display:flex;justify-content:space-between;color:#c6d8f0;font-size:13px}.unit-section-title span{color:var(--muted);font-size:11px}.selected-units{max-height:180px;overflow-y:auto;flex-shrink:0}.selected-unit-row{display:grid;grid-template-columns:minmax(65px,1fr) 62px 78px 28px;align-items:center;gap:5px;margin-bottom:6px}.selected-unit-row>span{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selected-unit-row input{min-height:33px;padding:5px 6px}.selected-unit-row button{min-height:30px;padding:0;font-size:18px}.unit-results{flex:1;min-height:60px;overflow-y:scroll;display:flex;flex-direction:column;gap:5px;padding-right:5px}.unit-result{justify-content:space-between;font-size:12px;min-height:38px;flex-shrink:0}.unit-result .muted{font-size:11px}.custom-unit-fields{display:grid;grid-template-columns:1.3fr .6fr .8fr;gap:5px;margin:9px 0}.custom-unit-fields input{min-height:35px;padding:6px; font-size:12px}details{border:1px solid #395375;border-radius:7px;padding:9px 11px;flex-shrink:0}summary{cursor:pointer;color:#c8b3f4;font-size:12px}details p{margin:5px 0}#addCustomUnit{margin-top:5px;width:100%;min-height:32px}.keyword-color-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:8px;margin-top:14px;max-height:52vh;overflow-y:auto;padding-right:6px}.keyword-color-list button{justify-content:flex-start;font-size:12px}.keyword-color-list i{width:12px;height:12px;border-radius:3px;box-shadow:0 0 5px #ffffff22}.card-mode .content-body{overflow-y:auto}.card-mode .rich-shell{min-height:110px}.mode-switch button{min-width:124px}@media(max-width:1100px){.app-header h1{font-size:23px}.mode-switch{gap:6px}.mode-switch button{min-width:108px;padding:9px;font-size:12px}.unit-body{padding:12px}.unit-summary{gap:7px}.selected-unit-row{grid-template-columns:minmax(50px,1fr) 51px 61px 24px;gap:4px}}@media(max-height:800px){.card-mode .content-body{gap:5px}.card-mode .rich-shell{min-height:92px}.card-mode .colors{grid-template-columns:repeat(4,minmax(0,1fr))}.unit-body{gap:8px}.selected-units{max-height:133px}}

#cardShine{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none;mask-image:none;-webkit-mask-image:none;mask-size:100% 100%;-webkit-mask-size:100% 100%;background:linear-gradient(125deg,transparent 34%,#c6e9ff12 43%,#eefaffb5 49%,#d7c8ff40 53%,transparent 60%);background-size:350% 350%;mix-blend-mode:screen;animation:diamondShimmer 4s linear infinite;opacity:.75} @keyframes diamondShimmer{0%{background-position:100% 100%}100%{background-position:0% 0%}}#animationControls{display:flex;align-items:center;justify-content:space-between;gap:9px}#animationControls>label:last-child{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}#cardExportFormat{width:85px;min-height:32px;padding:4px 8px} @media(prefers-reduced-motion:reduce){#cardShine{animation:none}}
.native-select-source{display:none!important}.select-trigger{width:100%;min-height:44px;text-align:left;justify-content:space-between;background:#101c2e;border:1px solid #415b80;padding:10px 12px;font-weight:400}.select-trigger>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-trigger[aria-expanded=true]{border-color:#a77be8;box-shadow:0 0 0 3px #9561ed22}.select-chevron{color:#aabedd;font-size:19px;line-height:1}.select-popup{position:fixed;z-index:1000;display:flex;flex-direction:column;padding:6px;border:1px solid #576c94;border-radius:10px;background:linear-gradient(145deg,#1e2d46,#121e32);box-shadow:0 12px 35px #0009,inset 0 1px 0 #ffffff0e;overflow:hidden;animation:selectReveal .12s ease-out}.select-search{flex-shrink:0;margin-bottom:6px;width:100%;min-height:38px!important;background:#0e192b!important}.select-options{overflow:auto;min-height:0;scrollbar-width:auto;scrollbar-color:#9870d4 #101b2d}.select-options::-webkit-scrollbar{width:16px}.select-options::-webkit-scrollbar-track{background:#101b2d;border-radius:8px}.select-options::-webkit-scrollbar-thumb{background:#8663bf;border:3px solid #101b2d;border-radius:8px;min-height:42px}.select-option{width:100%;border:1px solid transparent;border-radius:6px;min-height:37px;justify-content:space-between;text-align:left;background:transparent!important;padding:8px 10px;margin:1px 0;font-size:13px;white-space:normal;box-shadow:none}.select-option:hover,.select-option:focus-visible{background:#324361!important;outline:none;border-color:#607b9d}.select-option.selected{background:linear-gradient(90deg,#63409e77,#40325944)!important;color:#eadcff;border-color:#8c60cc66}.select-check{color:#c4a0ff;margin-left:10px;flex-shrink:0}.select-empty{padding:16px;color:#92aacb}.card-fields .select-trigger{margin-top:5px}#animationControls .select-trigger{width:85px;min-height:32px;padding:5px 8px}@keyframes selectReveal{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.select-popup{animation:none}}

.colors{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:6px}.colors>button:nth-child(-n+3){grid-column:span 4}.colors>button:nth-child(n+4){grid-column:span 3}.colors>button{font-size:12px;padding:6px 4px;min-width:0;gap:5px}.colors svg{width:16px;height:16px}

.colors:has(#nonstack[hidden])>button:nth-child(n+4){grid-column:span 4}.mode-transition .panel:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,transparent 25%,#c1a0ff13 42%,#e4d7ff25 48%,transparent 59%);transform:translateX(-110%);animation:modeSweep .55s ease-out both;z-index:2}.mode-transition[data-transition-mode='升级'] .panel:after{background:linear-gradient(115deg,transparent 25%,#a0ffc113 42%,#d7ffe425 48%,transparent 59%)}.mode-transition[data-transition-mode='卡牌'] .panel:after{background:linear-gradient(115deg,transparent 25%,#a0d5ff13 42%,#d7edff25 48%,transparent 59%)}@keyframes modeSweep{to{transform:translateX(110%)}}@media(prefers-reduced-motion:reduce){.mode-transition .panel:after{display:none}}

.preview-actions{height:54px;flex-shrink:0}.preview-actions button{height:100%}#selectedIcon{height:36px;min-height:36px;flex-shrink:0;overflow:hidden;margin:0}

#cardShine.diamond-intense{opacity:1;background:repeating-conic-gradient(from 25deg,#e6faff 0deg,transparent 8deg,transparent 36deg,#c6bcff 43deg,transparent 52deg,transparent 90deg);background-size:120% 120%;animation:diamondFlash .48s ease-in-out infinite alternate,diamondRefraction 2s linear infinite} @keyframes diamondFlash{from{filter:brightness(.5)}to{filter:brightness(2.2)}}@keyframes diamondRefraction{from{background-position:0% 0%}to{background-position:100% 100%}}@media(prefers-reduced-motion:reduce){#cardShine.diamond-intense{animation:none;filter:none}}

.select-chevron{width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:#94accd;transition:transform .18s ease,color .18s ease}.select-chevron svg{width:16px;height:16px;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}.select-trigger[aria-expanded=true] .select-chevron{transform:rotate(180deg);color:#d4bcff}
/* Material-masked canvas replaces gradient overlays and oversized sparkles. */
#cardShine,#cardShine[data-theme]{background:none;animation:none;filter:none;opacity:1;mask-image:none;-webkit-mask-image:none;mix-blend-mode:screen}
#cardShine:before,#cardShine:after{content:none}

.tooltip{max-width:min(430px,calc(100vw - 24px));padding:13px 16px;font-size:14px;line-height:1.55;background:#18273cfb;border-color:#7286a6}.tooltip strong{font-size:15px;line-height:1.45;margin-bottom:8px;font-weight:600}.tooltip small{font-size:14px!important;line-height:1.6;display:block;color:#c8b8e9}

/* The desktop editor keeps its original geometry; smaller screens get their own flow. */
html{scrollbar-gutter:stable;scroll-padding-top:70px}button{touch-action:manipulation}input,#description{scroll-margin-top:75px}.mobile-nav{display:none}
@media(min-width:761px) and (max-width:1180px){
 body{height:auto;min-height:100svh;overflow:auto}.app{height:auto;min-height:100svh;padding:20px;gap:16px}.app-header{flex-wrap:wrap}.mode-switch{margin-left:auto;flex-wrap:wrap}.workspace{flex:none;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:14px}.workspace>.panel{height:max(650px,calc(100svh - 180px))}.workspace>.library-panel,.workspace>.unit-panel{grid-column:1/-1;height:540px}.preview-actions button{flex-direction:row}.preview-stage{min-height:260px}.content-body{overflow-y:auto}.rich-shell{flex:1;min-height:180px}.unit-body{padding:18px}.unit-results{min-height:180px}.selected-unit-row{grid-template-columns:minmax(90px,1fr) 85px 100px 44px}.selected-unit-row input,.selected-unit-row button{min-height:42px}.icon-tile img{max-width:calc(100% - 6px)}
}
@media(max-width:760px){
 html{scrollbar-gutter:auto}body{height:auto;min-height:100svh;overflow-x:hidden;overflow-y:auto;font-size:14px}.app{height:auto;min-height:100svh;padding:16px 12px max(18px,env(safe-area-inset-bottom));gap:12px}.app-header{display:block;padding:0 2px}.app-header h1{font-size:clamp(21px,5.8vw,29px);letter-spacing:.4px;margin:0 0 5px}.app-header p{font-size:12px;line-height:1.65}.mode-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:14px}.mode-switch button{min-width:0;min-height:46px;padding:8px 3px;font-size:13px;letter-spacing:0}.mobile-nav{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:5px;background:#0d192bf2;border:1px solid #354c73;border-radius:9px;box-shadow:0 5px 16px #0003;backdrop-filter:blur(12px)}.mobile-nav button{min-height:42px;min-width:0;border:0;background:transparent;box-shadow:none;font-size:14px;padding:8px}.mobile-nav button[aria-pressed=true]{background:#493078;border:1px solid #9868dd;color:#f1e5ff;box-shadow:inset 0 1px 0 #c8a0ff24}.workspace{display:block;flex:none;min-height:0}.workspace>.panel{height:auto;min-height:0;width:100%}body[data-mobile-pane=edit] .workspace>.preview-panel,body[data-mobile-pane=edit] .workspace>.library-panel,body[data-mobile-pane=edit] .workspace>.unit-panel{display:none}body[data-mobile-pane=preview] .workspace>.content-panel,body[data-mobile-pane=preview] .workspace>.library-panel,body[data-mobile-pane=preview] .workspace>.unit-panel{display:none}body[data-mobile-pane=resources] .workspace>.content-panel,body[data-mobile-pane=resources] .workspace>.preview-panel{display:none}
 .panel-title{min-height:55px;padding:0 15px;gap:10px}.panel-title h2{font-size:18px}.panel-title>svg{width:24px;height:24px}.meta{font-size:12px}.content-body,.preview-body,.library-body,.unit-body{padding:15px;gap:11px}.content-body,.card-mode .content-body{overflow:visible;gap:10px}.content-body>label,.content-body>label span,#cardFields label,.content-body>label{font-size:13px}.content-body>label span{display:inline;line-height:1.5;font-size:12px}.content-body input,input,select,.select-search,#keywordColorSearch,#tagSearch{font-size:16px;min-height:46px}.select-trigger{min-height:46px;font-size:14px;padding:11px 12px}.content-body .select-trigger{min-width:0}.rich-shell,.card-mode .rich-shell{flex:none;min-height:220px;height:clamp(220px,35svh,330px)}#description{font-size:16px;line-height:1.65;padding:14px 13px 35px;height:100%;-webkit-user-select:text;user-select:text}.field-count{font-size:12px}.colors{gap:7px}.colors>button{font-size:13px;min-height:44px;padding:7px 3px}.colors button svg{width:16px;height:16px}.export{height:52px;font-size:17px;margin-top:4px}.card-fields{gap:10px}#cardFields>label{font-size:13px;margin-top:10px}#cardFields label{font-size:13px}#animationControls{min-height:46px;gap:10px}#animationControls .select-trigger{min-height:44px;width:90px}#animationControls>label:last-child{font-size:13px}.name-toggle{font-size:13px;min-height:44px;white-space:normal}.name-toggle input{width:20px;height:20px;min-height:20px;flex-shrink:0}
 .preview-body{gap:10px}.preview-stage{flex:none;width:100%;height:min(115vw,calc(100svh - 280px));min-height:260px;max-height:620px}#preview{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}.preview-actions{height:46px;gap:8px}.preview-actions button{flex-direction:row;font-size:12px;min-height:44px;padding:8px 4px}.preview-actions svg{width:17px;height:17px}.muted,.status{font-size:13px;line-height:1.55}#selectedIcon{height:42px;min-height:42px}.status{min-height:36px}.library-body{height:max(510px,calc(100svh - 255px))}.unit-body{height:max(620px,calc(100svh - 255px))}.tabs button,.recommend-actions button{min-height:44px;font-size:13px}.recommend-actions button{gap:5px}.filter-actions button{min-height:44px;font-size:13px}.icon-viewport{min-height:210px;padding-right:4px;scroll-behavior:auto}.icon-tile img{max-width:calc(100% - 6px)}.library-status{font-size:12px;line-height:1.5;min-height:34px}.active-tags{max-height:90px}.chip{min-height:36px;font-size:12px;padding:5px 9px}.search-shell svg{top:13px}.selected-units{max-height:220px}.unit-summary{gap:12px;align-items:center}.unit-summary>label:first-child{font-size:13px}.unit-summary .name-toggle{max-width:130px}.selected-unit-row{grid-template-columns:minmax(65px,1fr) 65px 78px 38px;gap:5px}.selected-unit-row>span{font-size:13px}.selected-unit-row input{font-size:16px;min-height:44px;padding:5px}.selected-unit-row button{min-height:44px;font-size:24px}.unit-result{min-height:46px;font-size:14px}.unit-result .muted{font-size:12px}.unit-section-title{font-size:14px;gap:8px}.unit-results{min-height:170px;scroll-behavior:auto}.custom-unit-fields{grid-template-columns:minmax(0,1fr) 65px 80px}.custom-unit-fields input{font-size:16px;min-height:44px}.custom-unit-fields input:first-child{grid-column:1/-1}.custom-unit-fields input:nth-child(2){grid-column:1}.custom-unit-fields input:nth-child(3){grid-column:2/-1}summary{font-size:14px;min-height:30px;line-height:30px}#addCustomUnit{min-height:44px}
 dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:16px;border-radius:12px;overflow-y:auto}.dialog-title h2{font-size:19px}.dialog-title button{width:44px;min-height:44px}dialog p{font-size:13px}#tagGroups{max-height:50dvh;padding-right:5px}.tag-section h3{font-size:15px}.tag-list{gap:8px}.tag-list button{min-height:42px;min-width:54px;font-size:14px;padding:7px 12px}.dialog-actions{gap:12px}.dialog-actions button{min-height:44px}.keyword-color-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:48dvh;gap:8px}.keyword-color-list button{min-height:44px;white-space:normal;font-size:14px}.select-popup{max-width:calc(100vw - 24px);border-radius:12px}.select-option{font-size:14px;min-height:46px;padding:10px;flex-shrink:0}.select-search{font-size:16px!important;min-height:46px!important}.select-chevron svg{width:18px;height:18px}.tooltip{display:none!important}::-webkit-scrollbar{width:14px;height:14px}
}
@media(max-width:360px){.app{padding-left:8px;padding-right:8px}.content-body,.preview-body,.library-body,.unit-body{padding:12px}.mode-switch button{font-size:12px}.colors>button{font-size:12px}.selected-unit-row{grid-template-columns:minmax(50px,1fr) 58px 65px 34px}.preview-actions button{font-size:11px;gap:3px}.meta{font-size:11px}}
@media(pointer:coarse){button{min-height:44px}.select-option{min-height:46px}.icon-tile{min-height:0}.colors button{min-height:44px}.filter-actions button{min-height:44px}.name-toggle{min-height:44px}.select-search{font-size:16px}.select-trigger{min-height:44px}}
