:root{font-family:Tahoma,'Vazirmatn',Arial,sans-serif;color:#162e34;background:#f5f8f9;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a{cursor:pointer}a{text-decoration:none;color:inherit}button{border:1px solid #c7d6d9;background:#fff;color:#21424a;border-radius:12px;padding:12px 14px;font-weight:700}button:hover,a:hover{filter:brightness(.97)}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #0aa99c;outline-offset:2px}button.primary,a.primary,.primary{background:#08998e;border:1px solid #05877f;color:#fff;display:inline-block;border-radius:12px;padding:12px 18px;text-align:center;font-weight:700}.outline{border:1px solid #cbdadc;background:white;padding:12px 18px;border-radius:12px;color:#17454a}.danger{background:#fff3f3;color:#b52424;border:1px solid #f8d3d3}.layout{max-width:1550px;margin:auto;padding:24px}header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}header small{color:#688087}h1{font-size:27px;margin:5px 0 6px}h2{font-size:17px;margin:0 0 14px}header p{margin:0;color:#657d84}main{display:grid;grid-template-columns:minmax(0,1fr) 345px;gap:20px}.canvas-panel,.panel{background:#fff;border:1px solid #e1ebed;border-radius:19px;box-shadow:0 8px 20px #172e3411}.canvas-panel{overflow:hidden;align-self:start}.viewer{position:relative;height:min(69vh,700px);min-height:450px;background:#12232b;overflow:hidden}.viewer canvas{display:block;position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab}.viewer .viewer-hint{position:absolute;top:18px;right:18px;color:#fff;background:#112b35cd;border-radius:22px;padding:9px 15px;font-size:12px;pointer-events:none}.viewer-actions{position:absolute;bottom:15px;left:15px;display:flex;gap:6px;direction:ltr}.viewer-actions button{min-width:39px;background:#183139dc;color:white;border-color:#4b686d}.hotspots{position:absolute;inset:0;pointer-events:none}.hotspot{position:absolute;transform:translate(-50%,-50%);white-space:nowrap;pointer-events:auto;color:#fff;background:#10343be8;border:1px solid #20cabb;padding:9px 13px;box-shadow:0 4px 16px #0005}.hotspot:before{content:'●';color:#31e5d0;margin-left:7px}.hotspot[hidden]{display:none}.scene-tabs{display:flex;gap:10px;flex-wrap:wrap;padding:16px 18px;background:#10252c}.scene-tabs button{background:#203840;border-color:#42606a;color:#fff;font-size:12px}.scene-tabs button.active{border-color:#0ae1c4;background:#045e59}.canvas-panel>#viewer-caption{padding:0 17px 12px;color:#728a8e}.lower{padding:14px}.lower button{white-space:nowrap}.sidebar{display:flex;flex-direction:column;gap:16px}.panel{padding:20px}.panel label{display:block;font-weight:700;font-size:12px;margin:14px 0 5px}.panel input,.panel select{display:block;width:100%;border:1px solid #c9d9dd;border-radius:10px;background:#fff;padding:12px;margin-top:7px;color:#233b3e}.panel input[type=file]{font-size:12px;padding:8px}.panel form button{width:100%;margin:14px 0 0}.panel .danger{width:100%;margin-top:10px}.note{color:#738a8f;line-height:1.9;font-size:12px;margin:8px 0}.row{display:flex;align-items:center;justify-content:space-between;gap:10px}.status{border-radius:20px;padding:7px 9px;font-size:11px;background:#e7f3f1;color:#148778}#hotspot-list>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 0;border-bottom:1px solid #eaf0f2}#hotspot-list>div button{font-size:11px;padding:6px 9px;color:#b52424}.sidebar .primary{width:100%}.wide{width:100%;grid-column:1/-1}.review-item{border:1px solid #dae7e7;border-radius:12px;padding:14px;display:flex;justify-content:space-between;align-items:center;gap:10px;margin:9px 0}.review-item .actions{display:flex;gap:8px}#scene-list button{display:block;width:100%;text-align:right;margin:8px 0}footer{display:flex;gap:10px;justify-content:space-between;align-items:center;font-size:12px;color:#5c7b7e;margin-top:16px;min-height:34px}#message.ok{color:#058970}#message.error{color:#bf2c2c}.public main{grid-template-columns:minmax(0,1fr) 280px}@media(max-width:1000px){.layout{padding:12px}main,.public main{grid-template-columns:1fr}.viewer{height:57vh;min-height:370px}.sidebar{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));align-items:start}header h1{font-size:23px}}@media(max-width:520px){header{flex-wrap:wrap}.viewer{min-height:330px;height:52vh}.layout{padding:10px}h1{font-size:22px}.sidebar{display:flex}.scene-tabs{gap:5px;padding:10px}.scene-tabs button{padding:9px;font-size:11px}}


.upload-progress{margin-top:12px;border:1px solid #cae8e5;border-radius:14px;padding:13px;background:#f1fbfa;direction:rtl}
.upload-progress[hidden]{display:none!important}
.upload-progress-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#087b71;font-size:12px}
.upload-progress output{font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.upload-progress progress{display:block;width:100%;height:12px;margin:12px 0 7px;border:none;border-radius:14px;accent-color:#079e91;overflow:hidden;background:#d7eeeb}
.upload-progress progress::-webkit-progress-bar{background:#d7eeeb;border-radius:14px}
.upload-progress progress::-webkit-progress-value{background:#079e91;border-radius:14px;transition:width .13s linear}
.upload-progress progress::-moz-progress-bar{background:#079e91;border-radius:14px}
.upload-progress-description{font-size:12px;color:#345f61;margin:7px 0;line-height:1.8}
.panel form .upload-cancel{width:auto;margin:3px 0 0;padding:7px 13px;background:#fff;color:#9c3f3f;border-color:#e8caca;font-size:12px}
.upload-cancel[hidden]{display:none!important}

/* Deynu360 R3 - visual hotspot placement */
.viewer canvas.is-picking{cursor:crosshair!important}
.viewer:has(canvas.is-picking){outline:3px solid #0ba795;outline-offset:-3px}
.draft-hotspot{pointer-events:none!important;background:#fffbea!important;color:#185d54!important;border:2px dashed #0c9e91!important;z-index:4}
#pick-state{background:#f1faf9;border-radius:9px;padding:10px 12px;color:#0e726b;line-height:1.85}
#host-preview-link{display:block;margin:10px 0 14px;text-align:center}
#host-preview-link[hidden]{display:none!important}
#add-hotspot button[disabled]{opacity:.5;cursor:not-allowed}
.public-preview-pill{display:inline-block;padding:7px 12px;border-radius:30px;background:#e5f8f4;color:#096e68;font-weight:700}

.viewer.is-picking .hotspots .hotspot{pointer-events:none!important}


/* DEYNU360_HOST_SUBMIT_STATUS_R5 - clear, persistent host confirmation */
.tour-state-banner[hidden]{display:none!important}
.tour-state-banner{display:flex;gap:18px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:#f2faf9;border:1px solid #b4ded8;border-right:4px solid #07998c;border-radius:16px;padding:18px 20px;margin:0 0 18px;scroll-margin-top:22px;outline-offset:4px}
.tour-state-banner[data-status="draft"]{background:#f7f9fa;border-color:#d4e0e2;border-right-color:#83969c}
.tour-state-banner[data-status="rejected"]{background:#fff8f2;border-color:#ecd7c0;border-right-color:#c88943}
.tour-state-content{flex:1;min-width:min(100%,260px)}
.tour-state-content strong{display:block;font-size:16px;color:#105b55;line-height:1.8}
.tour-state-banner[data-status="draft"] strong{color:#36565a}
.tour-state-banner[data-status="rejected"] strong{color:#875321}
.tour-state-content p{margin:7px 0 0;font-size:13px;line-height:2;color:#35575b}
.tour-state-banner button{flex-shrink:0;font-size:13px}
@media(max-width:600px){.tour-state-banner{padding:15px;gap:12px}.tour-state-banner button{width:100%}}

/* DEYNU360_R6_CINEMATIC_TRANSITION */
.viewer.is-transitioning .hotspots{opacity:0;pointer-events:none;transition:opacity 180ms ease}
.viewer.is-transitioning canvas{cursor:progress}
.viewer.is-transitioning #viewer-hint{z-index:3;background:#0a2c37de;box-shadow:0 5px 20px #102a3455}
@media(prefers-reduced-motion:reduce){.viewer.is-transitioning .hotspots{transition:none}}
