.studio-page .workspace{max-width:1320px;grid-template-columns:minmax(470px,520px) minmax(0,1fr)}
.studio-page .panel{padding:30px}
.space-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:9px}
.space-options input{position:absolute;opacity:0;pointer-events:none}
.space-options label{display:flex;gap:10px;align-items:center;min-height:64px;padding:10px 11px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;transition:.18s ease}
.space-options label:hover{border-color:#b99165;transform:translateY(-1px)}
.space-options input:checked+label{border-color:#2c3f35;background:#edf5e8;box-shadow:inset 0 0 0 1px #2c3f35}
.space-options label i{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:9px;background:#f4e4c9;color:#513c2e;font-style:normal;font-size:18px}
.space-options label span,.space-options label b,.space-options label small{display:block}
.space-options label b{font-size:12px;line-height:1.25}
.space-options label small{color:var(--muted);font-size:9px;margin-top:2px}
.space-options-toggle{display:none;width:100%;margin:3px 0 10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--control);color:var(--ink);font:inherit;font-size:11px;font-weight:800;cursor:pointer}.space-options-toggle span{margin-left:5px;color:var(--coral)}
.space-hint{margin:0 0 22px;padding:9px 11px;border-left:3px solid var(--brand-ai);background:#fff7d9;color:#705d31;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.studio-page .upload{height:240px}
.studio-page .upload img{object-fit:contain;background:#ece9e2}
.studio-page .upload.missing-photo{border-color:#ef6b42;box-shadow:0 0 0 4px color-mix(in srgb,#ef6b42 18%,transparent);animation:missingPhotoPulse .7s ease 2}.studio-page .upload:focus-visible{outline:3px solid color-mix(in srgb,var(--coral) 35%,transparent);outline-offset:3px}@keyframes missingPhotoPulse{50%{transform:translateY(-3px)}}
.studio-page #createDesign{min-height:54px;transition:opacity .2s,filter .2s,transform .2s}.studio-page #createDesign.is-processing{opacity:.72;filter:saturate(.8);cursor:pointer}.studio-page #createDesign.is-processing:hover{opacity:.9}.studio-page #createDesign .troxinh-spinner.small{flex:0 0 30px}.studio-page #createDesign .troxinh-spinner.small:before{background:linear-gradient(135deg,#ef6b42,#ffb04e)}
.studio-page .search-results{gap:11px;max-height:520px;padding-right:3px}
.studio-page .search-product{padding:10px}
.studio-page .search-product img{height:155px}
.studio-page .search-product b{font-size:12px}
.studio-page .selected-products article{grid-template-columns:66px 1fr 30px;padding:8px}
.studio-page .selected-products img{width:66px;height:66px}
.studio-page .result{padding:34px}
.studio-page .compare{border-radius:14px;background:#ece9e2;min-height:360px;transition:min-height .25s,box-shadow .35s}
.studio-page .compare img{max-height:650px;object-fit:contain;opacity:0;transform:scale(.985);transition:opacity .4s ease,transform .5s ease}
.studio-page .compare.media-ready{min-height:0;animation:troxinhImageReady .75s ease both}.studio-page .compare.media-ready img{opacity:1;transform:none}.media-loading{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;padding:24px;text-align:center;color:var(--muted);transition:opacity .3s,visibility .3s}.media-loading b{font-size:13px;color:var(--ink)}.media-ready .media-loading{opacity:0;visibility:hidden}.media-error .troxinh-spinner{animation:none;filter:grayscale(1)}@keyframes troxinhImageReady{45%{box-shadow:0 0 0 7px color-mix(in srgb,var(--coral) 22%,transparent)}100%{box-shadow:0 0 0 0 transparent}}
.studio-page .product{grid-template-columns:112px 1fr;min-height:132px;padding:10px;align-items:center}
.studio-page .product img{width:112px;height:112px;object-fit:contain;background:#fff}
.studio-page .product b{font-size:13px;line-height:1.4}
@media(max-width:1050px){.studio-page .workspace{grid-template-columns:minmax(410px,470px) minmax(0,1fr)}.studio-page .product-grid{grid-template-columns:1fr}}
@media(max-width:800px){.studio-page .studio{padding-left:18px;padding-right:18px}.studio-page .workspace{width:100%;min-width:0;grid-template-columns:minmax(0,1fr)}.studio-page .panel,.studio-page .result{min-width:0}.studio-page .panel{padding:22px}.studio-page .upload{height:230px}.space-options{max-width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.space-options label{min-width:0}.space-options:not(.expanded) label:nth-of-type(n+3){display:none}.space-options-toggle{display:block}.studio-page .search-product img{height:185px}.studio-page .result{padding:22px}.studio-page .compare{min-height:280px}.studio-page .product{grid-template-columns:96px 1fr}.studio-page .product img{width:96px;height:96px}}
@media(max-width:520px){.studio-page .studio{padding-left:14px;padding-right:14px}.studio-page .panel{padding:18px 16px}.studio-page .section-title h1{font-size:40px;line-height:1.12}.studio-page .section-title>span{display:block;margin-top:12px}.studio-page .search-results{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-page .search-product img{height:130px}.studio-page .search-product span{align-items:stretch;flex-direction:column}.studio-page .search-product button{padding:9px}.studio-page .result{padding:18px 16px}}
@media(max-width:380px){.space-options{grid-template-columns:1fr}}
