/* Nexus Studio: visual catalogue and explicit draft/save workflow. */
.studio{padding:24px;max-width:1800px;margin:auto;color:#e3ece5}.studio h2,.studio h3,.studio p{margin-top:0}.studio h2{font-size:28px;margin-bottom:8px}.studio h3{font-size:18px;line-height:1.35}.studio p{color:#afc2bc;font-size:14px;line-height:1.55}.studio-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.studio-heading p{margin:0}.studio-status{padding:10px 14px;border:1px solid #568072;border-radius:8px;color:#b7decb;font-size:13px}.studio-status.pending{color:#ffd898;border-color:#ad8050}.studio-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #466155;padding-bottom:14px;margin-bottom:20px}.studio button{font-size:13px;border-radius:7px;padding:9px 12px;color:#e7ece4;border:1px solid #466055;background:#1b3434}.studio button:hover:not(:disabled){background:#294c43;border-color:#b3c895}.studio button.primary,.studio button.selected{background:#b8dec4;color:#183126;border-color:#d6eedb}.studio button.danger{color:#ffc5af;border-color:#986756;background:#432e2b}.studio button:disabled{opacity:.5;cursor:not-allowed}.studio input,.studio select,.studio textarea{width:100%;min-width:0;margin:4px 0 0;padding:10px;border-radius:6px;color:#f2f4ec;background:#0d222a;border:1px solid #50675c;font-family:inherit;box-sizing:border-box}.studio input:focus,.studio textarea:focus,.studio select:focus{outline:2px solid #a8d6b4;outline-offset:1px}.studio input[type=checkbox]{width:17px;height:17px;flex-shrink:0;margin:0;accent-color:#b9dfbc}.studio label{display:block;font-size:12px;color:#c5d1c7;line-height:1.5}.studio small{display:block;color:#a7bcb0;font-size:11px;line-height:1.4}.studio input[readonly]{color:#9fada8;background:#13272b}.studio-note{padding:10px 12px;background:#142e33;border-left:3px solid #829c86}.studio-section-heading{display:flex;gap:20px;justify-content:space-between;align-items:center;margin:0 0 18px}.studio-section-heading h3{margin-bottom:7px}.studio-section-heading p{margin-bottom:0}.studio-map-toolbar{display:flex;align-items:flex-end;gap:10px;margin-bottom:14px;flex-wrap:wrap}.studio-map-toolbar label{flex:1;min-width:220px}.studio-workspace{display:grid;grid-template-columns:220px minmax(360px,1fr) 280px;gap:14px;align-items:start}.studio-list,.studio-details,.studio-item-details{border:1px solid #3d5b51;background:#112830;border-radius:10px;padding:16px;min-width:0}.studio-list h3{margin-bottom:10px}.studio-list>input{margin:0 0 14px}.studio-list{max-height:850px;overflow:auto}.studio-object{display:flex;width:100%;text-align:left;gap:10px;align-items:center;margin-bottom:8px}.studio-object>span:last-child{min-width:0}.studio-object b{display:block;font-size:12px;word-break:break-word}.studio-thumb{display:flex;align-items:center;justify-content:center;flex:none;width:62px;height:70px;background:#0d2026;border-radius:6px;padding:5px;box-sizing:border-box}.studio-thumb img{width:100%;height:100%;object-fit:contain}.studio-thumb .studio-icon{width:48px;height:48px}.studio-tools{display:flex;flex-wrap:wrap;gap:5px;background:#142a30;border:1px solid #3b584f;padding:10px;border-radius:10px 10px 0 0}.studio-tools button{padding:7px 9px;font-size:11px}.studio-canvas-wrap{position:relative;background:#0a171d;border:1px solid #496858;overflow:hidden}.studio-canvas-wrap canvas{display:block;width:100%;height:auto;aspect-ratio:3/2;touch-action:none;cursor:crosshair}.studio-map-overlay{position:absolute;bottom:0;left:0;right:0;padding:8px 12px;background:#071a22e6;pointer-events:none;display:flex;gap:12px;justify-content:space-between;font-size:11px;color:#d3e7db}.studio-map-overlay span:first-child{white-space:nowrap}.studio-view-tools{display:flex;gap:7px;align-items:center;flex-wrap:wrap;background:#142a30;padding:10px;border-radius:0 0 10px 10px}.studio-view-tools label{display:flex;align-items:center;gap:7px;margin-left:6px}.studio-view-tools button{padding:5px 10px}.studio-view-tools span{font-size:12px;min-width:36px}.studio-detail-heading h3{margin-bottom:8px}.studio-tag{display:inline-block;padding:5px 8px;font-size:11px;background:#214035;border-radius:5px;color:#d9edbe;margin-bottom:12px}.checker{background-color:#172b31;background-image:linear-gradient(45deg,#ffffff08 25%,transparent 25%),linear-gradient(-45deg,#ffffff08 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ffffff08 75%),linear-gradient(-45deg,transparent 75%,#ffffff08 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.studio-preview{height:170px;border:1px solid #466357;border-radius:8px;display:flex;justify-content:center;align-items:center;padding:12px;margin-bottom:10px;box-sizing:border-box}.studio-preview img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 5px #0003)}.studio-preview .studio-icon{width:112px;height:112px}.studio-symbol{font-size:40px;color:#a9cec0}.studio-details>button{width:100%;margin-bottom:14px}.studio-fields{display:grid;gap:12px;margin-top:15px}.studio-fields>button{width:100%}.studio-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.studio-check{display:flex!important;gap:9px;align-items:center;padding:8px 0}.studio-advanced{padding:10px 12px;border:1px dashed #456459;border-radius:6px;color:#b8d0c0;font-size:12px}.studio-advanced summary{cursor:pointer}.studio-advanced label{margin-top:12px}.studio-advanced small{margin-top:10px}.studio-save-row{display:grid;gap:8px}.studio-shop-summary{padding:12px;border:1px solid #688564;background:#1d3833;border-radius:6px}.studio-shop-summary p{font-size:12px;margin:8px 0}.studio-shop-summary button{width:100%}.studio-empty{padding:24px 12px;text-align:center;color:#acc4b4;font-size:14px;line-height:1.6}.studio-empty h3{color:#e2eadc}.studio-polygon{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.studio-polygon span{font-size:12px}.studio-shop-workspace{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px}.studio-shop-main{min-width:0}.studio-npc-heading{display:flex;gap:20px;align-items:center;background:#142f32;padding:20px;border:1px solid #476455;border-radius:10px;margin-bottom:18px}.studio-avatar{display:flex;align-items:center;justify-content:center;width:85px;height:112px;flex:none;padding:8px;border-radius:8px}.studio-avatar img{width:100%;height:100%;object-fit:contain}.studio-npc-heading h3{margin-bottom:6px}.studio-shop-editor{border:1px solid #456456;background:#112830;padding:20px;border-radius:10px}.studio-shop-form{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px}.studio-offer-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.studio-offer{background:#193439;border:1px solid #4d6a5c;border-radius:9px;padding:16px;display:grid;gap:9px}.studio-offer-top{display:flex;align-items:center;gap:10px;min-height:72px}.studio-offer-top>div{flex:1;min-width:0}.studio-offer-top b{font-size:13px;color:#f0e5c5}.studio-offer-top button{padding:3px 8px;align-self:flex-start;font-size:18px}.studio-sticky-save{position:sticky;bottom:0;display:flex;gap:9px;align-items:center;flex-wrap:wrap;background:#112b30f5;border-top:1px solid #5f7a66;padding:18px 0 4px;margin-top:20px;z-index:3}.studio-sticky-save small{flex-basis:100%}.studio-item-workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}.studio-item-catalog>input{margin:0 0 16px}.studio-item-details{position:sticky;top:12px}.studio-catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px}.studio-catalog-card{padding:12px!important;display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;min-width:0}.studio-catalog-card b{font-size:12px;line-height:1.4;word-break:break-word}.studio-catalog-card>.studio-thumb{width:94px;height:94px}.studio-catalog-card .studio-icon{width:78px;height:78px}.studio-catalog-card>span:last-child{font-size:12px}.studio-icon{display:block;flex:none;background-image:url(assets/item-icons.png);background-size:600% 400%;background-repeat:no-repeat;border-radius:5px;width:62px;height:62px}.studio-gallery-controls{display:flex;align-items:flex-end;gap:15px;margin-bottom:20px}.studio-gallery-controls label{min-width:220px}.studio-gallery-controls>input{max-width:500px}.studio-asset-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}.studio-asset-card{display:flex;flex-direction:column;text-align:center;gap:9px;align-items:stretch;min-width:0}.studio-asset-image{height:175px;padding:10px;border-radius:6px;display:flex;justify-content:center;align-items:center}.studio-asset-image img{width:100%;height:100%;object-fit:contain;image-rendering:auto}.studio-asset-card b{font-size:13px}.studio-asset-card small{font-size:11px}.studio-modal-shade{position:fixed;inset:0;background:#071119d9;z-index:140;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(5px)}.studio-modal{position:relative;width:min(1150px,100%);max-height:90dvh;overflow:auto;background:#102731;border:1px solid #859f7c;border-radius:14px;padding:26px;color:#e8edde;box-shadow:0 22px 80px #0009}.studio-modal h3{margin:0 44px 12px 0;font-size:22px}.studio-modal p{font-size:14px;line-height:1.55;color:#c2d2c6}.studio-modal button{font-family:inherit;font-size:13px}.studio-modal-close{position:absolute;right:16px;top:14px;font-size:24px!important;padding:3px 11px!important;z-index:1}.studio-modal .studio-catalog-grid{margin-top:16px}.studio-modal input,.studio-modal select,.studio-modal textarea{padding:10px;background:#092029;border:1px solid #5b7865;color:#eef5e8;border-radius:5px;width:100%;box-sizing:border-box}.studio-modal input[type=checkbox]{width:18px}.studio-large-preview{height:min(55vh,500px);display:flex;align-items:center;justify-content:center;border-radius:9px;padding:20px}.studio-large-preview img{height:100%;max-width:100%;object-fit:contain}.studio-modal code{display:block;word-break:break-all;padding:10px;background:#071c24;color:#b9d6c0}.studio-creative{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px}.studio-creative>section{min-width:0}.studio-creative .studio-catalog-grid{margin-top:14px}.studio-creative aside>button{width:100%;margin-top:10px}.studio-guide{max-width:820px;background:#142d32;border:1px solid #506b59;padding:28px;border-radius:10px}.studio-guide li{margin-bottom:14px;font-size:14px;line-height:1.65;color:#cad8ce}.studio-guide h3{margin-top:28px}.studio-guide h3:first-child{margin-top:0}.studio [hidden]{display:none!important}
@media(max-width:1350px){.studio-workspace{grid-template-columns:180px minmax(280px,1fr) 245px;gap:10px}.studio{padding:18px}.studio-list,.studio-details{padding:12px}.studio-thumb{width:48px;height:57px}.studio-object{padding:8px!important;gap:7px}.studio-tools button{font-size:10px;padding:6px}.studio-item-workspace{grid-template-columns:minmax(0,1fr) 280px}.studio-shop-workspace{grid-template-columns:210px minmax(0,1fr)}}
@media(max-width:1120px){.studio-workspace{grid-template-columns:180px minmax(0,1fr)}.studio-stage{grid-column:2;grid-row:1}.studio-details{grid-column:1 / -1;display:block}.studio-details .studio-preview{height:180px}.studio-details .studio-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-details .studio-fields>.studio-save-row,.studio-details .studio-advanced,.studio-details .studio-note,.studio-details .studio-shop-summary{grid-column:1 / -1}.studio-item-workspace{grid-template-columns:minmax(0,1fr) 260px}.studio-heading{align-items:flex-start}.studio-status{max-width:200px}}
@media(max-width:760px){.studio{padding:12px}.studio-heading{display:block}.studio-status{display:inline-block;margin-top:12px}.studio-tabs{gap:5px}.studio-tabs button{padding:8px!important;font-size:12px}.studio-workspace,.studio-shop-workspace,.studio-item-workspace,.studio-creative{grid-template-columns:1fr}.studio-stage{grid-column:1;grid-row:1}.studio-list{max-height:220px;grid-row:2}.studio-details{grid-column:1;grid-row:3}.studio-details .studio-fields{grid-template-columns:1fr}.studio-section-heading{align-items:flex-start}.studio-section-heading>button{min-width:120px}.studio-shop-form{grid-template-columns:1fr}.studio-item-details{position:static}.studio-shop-editor{padding:14px}.studio-gallery-controls{flex-direction:column;align-items:stretch}.studio-asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-asset-image{height:150px}.studio-map-overlay{font-size:9px;gap:5px}.studio-map-overlay span:last-child{max-width:65%}.studio-modal{padding:20px}.studio-modal-shade{padding:10px}.studio-catalog-grid{grid-template-columns:repeat(auto-fill,minmax(125px,1fr))}.studio-offer-grid{grid-template-columns:1fr}.studio-npc-heading{padding:14px;gap:12px}.studio-npc-heading h3{font-size:16px}.studio-list .studio-object{display:inline-flex;width:calc(50% - 8px);margin:4px;vertical-align:top}.studio-guide{padding:20px}}
