*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"Microsoft YaHei","PingFang SC",sans-serif;background:#0e1927;color:#e8f1f7}button,input{font:inherit}.customer-header{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;background:#0d1b2a;border-bottom:1px solid #34495e}.customer-brand{display:flex;align-items:center;gap:11px}.customer-brand>span{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#f3b14e;color:#271a09;font-size:22px;font-weight:900}.customer-brand strong{display:block;font-size:16px}.customer-brand small{display:block;margin-top:4px;color:#8faabe;font-size:10px}.customer-header em{font-style:normal;color:#72d9aa;font-size:10px}.customer-layout{display:grid;grid-template-columns:260px minmax(520px,1fr) 330px;min-height:calc(100vh - 68px)}.customer-gallery,.customer-controls{padding:24px 17px;background:#142436;overflow:auto;max-height:calc(100vh - 68px)}.customer-gallery{border-right:1px solid #34495e}.customer-controls{border-left:1px solid #34495e}.section-head{margin-bottom:20px}.section-head>span,.stage-heading span,.customer-export>span{color:#f2b762;font-size:10px;font-weight:800;letter-spacing:1.2px}.section-head h1,.section-head h2{font-size:19px;margin:7px 0}.section-head p,.stage-heading p{margin:0;color:#92aabd;font-size:10px;line-height:1.6}.customer-template-list{display:flex;flex-direction:column;gap:11px}.customer-template{position:relative;width:100%;padding:9px;border:1px solid #415b72;border-radius:10px;background:#1a2e42;color:#e1edf5;text-align:left}.customer-template.active{border-color:#f0b45f;background:#263b4d;box-shadow:0 0 0 1px #f0b45f44}.customer-template-art{display:grid;place-items:center;height:94px;margin-bottom:8px;border-radius:6px;background:radial-gradient(ellipse,#394a55,#102638 66%,#0b1623);color:#ffe2a4;font-size:21px;font-weight:900;text-shadow:0 0 8px #f5b643,0 0 20px #f5b643,2px 3px #6a3024}.customer-template[data-base="frame"] .customer-template-art{border:6px ridge #a6764d;background:radial-gradient(ellipse,#55434f,#222d40 58%,#0b1623)}.customer-template[data-base="pixel"] .customer-template-art{background:#111b28;color:#111;font:36px SimSun,"宋体",serif;text-shadow:-2px -2px #fff,2px -2px #fff,-2px 2px #fff,2px 2px #fff}.customer-template strong{display:block;font-size:12px}.customer-template small{display:block;margin-top:4px;color:#8fa8bb;font-size:9px}.customer-template i{position:absolute;right:8px;top:8px;padding:3px 7px;border-radius:9px;background:#164136;color:#83e2b7;font-size:8px;font-style:normal}.library-note{border-top:1px solid #385269;margin-top:18px;padding-top:14px;color:#8da7ba;font-size:10px;line-height:1.6}.customer-stage{min-width:0;display:flex;flex-direction:column;background:#0e1927}.stage-heading{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #2e4559}.stage-heading h2{margin:5px 0 0;font-size:21px}.customer-canvas-wrap{flex:1;display:grid;place-items:center;min-height:460px;padding:20px;background-color:#172536;background-image:linear-gradient(45deg,#233348 25%,transparent 25%),linear-gradient(-45deg,#233348 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#233348 75%),linear-gradient(-45deg,transparent 75%,#233348 75%);background-size:30px 30px;background-position:0 0,0 15px,15px -15px,-15px 0}.customer-canvas-wrap canvas{display:block;width:min(100%,760px);height:auto;filter:drop-shadow(0 14px 28px #0007)}.customer-player{display:flex;align-items:center;gap:7px;padding:11px 20px;border-top:1px solid #2e4559;background:#142435;color:#ffd08b;font-size:11px}.customer-player button{border:1px solid #486179;border-radius:5px;background:#23384b;color:#e3edf5;padding:6px 11px}.customer-player small{margin-left:auto;color:#8fa8bb}.customer-field{display:flex;flex-direction:column;gap:8px;margin-bottom:24px;color:#c8d8e4;font-size:11px}.customer-field>span{display:flex;justify-content:space-between}.customer-field b{color:#f1bf74}.customer-field input[type="text"]{width:100%;height:42px;border:1px solid #49647d;border-radius:6px;background:#0e1c2b;color:#f0f6fa;padding:0 11px}.customer-field input[type="range"]{width:100%;accent-color:#f0b45f}.customer-field small,.customer-export small{color:#8fa8bb;font-size:10px;line-height:1.5}.customer-export{margin-top:30px;padding-top:20px;border-top:1px solid #3a5368}.customer-export h3{font-size:18px;margin:7px 0}.customer-export p{color:#91a9ba;font-size:10px;line-height:1.6}.customer-export button{width:100%;height:45px;margin:8px 0 11px;border:0;border-radius:7px;background:#f2af50;color:#2a1b09;font-weight:800}.customer-export button:disabled{opacity:.55}.customer-export small{display:block}.customer-export small.error{color:#ffb79f}@media(max-width:1050px){.customer-layout{grid-template-columns:220px minmax(420px,1fr) 290px}}@media(max-width:820px){.customer-layout{display:block}.customer-gallery,.customer-controls{max-height:none}.customer-template-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.customer-canvas-wrap{min-height:340px}.customer-player{flex-wrap:wrap}.customer-player small{width:100%;margin:4px 0 0}}@media(max-width:520px){.customer-header{padding:0 12px}.customer-header em{display:none}.customer-template-list{grid-template-columns:1fr}.customer-canvas-wrap{min-height:280px;padding:8px}}
.customer-search{display:block;margin:-5px 0 11px;color:#9cb2c2;font-size:9px}.customer-search span{display:block;margin-bottom:5px}.customer-search input{width:100%;height:35px;border:1px solid #415b72;border-radius:7px;background:#0d1b2a;color:#edf5fa;padding:0 10px;outline:none}.customer-search input:focus{border-color:#eeb15a;box-shadow:0 0 0 2px #eeb15a22}.customer-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:12px}.customer-categories button{min-width:0;height:31px;border:1px solid #3e5870;border-radius:6px;background:#182c3f;color:#aec1cf;font-size:9px}.customer-categories button:first-child{grid-column:1/-1}.customer-categories button.active{border-color:#efb35d;background:#4b3928;color:#ffe0a6}.customer-categories b{margin-left:3px;color:#7892a6;font-weight:600}.customer-categories button.active b{color:#ffcf89}.customer-results{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:0 1px 9px;color:#e9b767;font-size:9px}.customer-results small{color:#718a9e;font-size:8px;text-align:right}.customer-template-tags{display:flex!important;flex-wrap:wrap;gap:4px;margin-top:7px!important}.customer-template-tags span{padding:2px 5px;border-radius:8px;background:#0f2030;color:#88a8bd;font-size:8px}.customer-template .new-badge{background:#743a25;color:#ffd5a4}.customer-empty{padding:28px 10px;border:1px dashed #435e75;border-radius:9px;text-align:center;color:#9ab0c0}.customer-empty strong,.customer-empty span{display:block}.customer-empty span{margin-top:6px;font-size:9px;color:#718a9e}
.customer-scale-controls{display:grid;grid-template-columns:minmax(0,1fr) 78px;align-items:center;gap:10px}.customer-percent-input{height:36px;display:flex!important;align-items:center;border:1px solid #57728a;border-radius:6px;background:#0d1b2a;overflow:hidden}.customer-percent-input input{width:54px;height:34px;border:0;outline:0;background:transparent;color:#ffd080;text-align:right;padding:0 4px 0 8px;font-weight:800}.customer-percent-input em{padding-right:8px;color:#91a9ba;font-size:10px;font-style:normal}.customer-percent-input:focus-within{border-color:#efb35d;box-shadow:0 0 0 2px #efb35d22}.customer-percent-input input::-webkit-inner-spin-button{opacity:1}

/* Customer-facing visual library: dense thumbnails, animation only in the selected main preview. */
.customer-layout{grid-template-columns:400px minmax(520px,1fr) 330px;transition:grid-template-columns .2s ease}.customer-gallery{position:relative;padding:21px 15px}.customer-gallery-collapse{position:absolute;z-index:5;right:9px;top:10px;width:28px;height:28px;border:1px solid #49647b;border-radius:7px;background:#20364a;color:#f3c57f;font-size:20px;line-height:1;cursor:pointer}.customer-gallery .section-head{padding-right:30px;margin-bottom:14px}.customer-categories{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.customer-categories button:first-child{grid-column:auto}.customer-categories button{padding:0 3px;white-space:nowrap}.customer-categories b{display:none}
.customer-template-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-items:start}.customer-template{min-width:0;padding:6px;border-radius:8px;overflow:hidden}.customer-template-art{height:72px;margin-bottom:6px;border-radius:5px;font-size:15px;overflow:hidden;background-color:#0b1723}.customer-template-art.has-thumbnail{background:linear-gradient(135deg,#101c29,#07101a);text-shadow:none!important}.customer-template-art img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 5px #000a)}.customer-template strong{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-template>small:not(.customer-template-tags){margin-top:3px;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-template-tags{display:none!important}.customer-template i{right:5px;top:5px;padding:2px 5px;font-size:7px;box-shadow:0 1px 4px #0008}.library-note{margin-top:14px;padding-top:12px}
.customer-layout.gallery-collapsed{grid-template-columns:52px minmax(520px,1fr) 330px}.gallery-collapsed .customer-gallery{padding:0}.gallery-collapsed .customer-gallery>*:not(.customer-gallery-collapse){display:none!important}.gallery-collapsed .customer-gallery-collapse{position:sticky;display:block;margin:10px auto;right:auto;top:10px}
@media(max-width:1250px){.customer-layout{grid-template-columns:340px minmax(420px,1fr) 290px}.customer-layout.gallery-collapsed{grid-template-columns:52px minmax(420px,1fr) 290px}}@media(max-width:820px){.customer-gallery{max-height:none}.customer-gallery-collapse{display:none}.customer-layout.gallery-collapsed{display:block}.gallery-collapsed .customer-gallery>*:not(.customer-gallery-collapse){display:block!important}.customer-template-list{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:620px){.customer-template-list{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-categories{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Dense customer library: three small covers with names only. */
.customer-template-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.customer-template{padding:4px}.customer-template-art{height:54px;margin-bottom:4px}.customer-template strong{padding:0 2px 1px;font-size:9px}.customer-template>small{display:none!important}.customer-template i{font-size:6px;padding:2px 4px}.library-note{margin-top:10px;padding-top:9px}@media(max-width:1250px){.customer-template-list{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:620px){.customer-template-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
