/* UREDI SOBU — potpuno izolovan UI */
#main.is-edit-room-layout,#main:has(#roomsView:not(.hidden) .edit-room-form){padding:0!important;gap:0!important}
#roomsView.is-edit-room,#roomsView:has(.edit-room-form),#roomsView.is-edit-room .profile-page,#roomsView:has(.edit-room-form) .profile-page{box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0!important;flex:1!important;align-self:stretch!important;align-items:stretch!important;padding:0!important}
#roomsMount.is-edit-room,#roomsMount:has(>.edit-room-form){box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0!important;flex:1!important;align-self:stretch!important;display:block!important;padding:0!important;overflow-x:hidden;container-type:inline-size}
#roomsMount .edit-room-form{
  --re-space:14px;--re-pad:16px;--re-radius:17px;--re-border:rgba(148,163,184,.15);
  box-sizing:border-box;width:100%;max-width:none;min-width:0;min-height:100%;display:grid;grid-template-columns:minmax(0,1fr)!important;
  grid-auto-rows:max-content;align-content:start;gap:var(--re-space);margin:0;padding:var(--re-pad);
  border:0;border-radius:0;color:#e8eef4;background:radial-gradient(700px 340px at 0 0,rgba(13,148,136,.14),transparent 64%),radial-gradient(540px 300px at 100% 0,rgba(109,40,217,.1),transparent 65%),#080d14;box-shadow:none
}
#roomsMount .edit-room-form *{box-sizing:border-box}
.re-topbar{min-width:0;display:grid;grid-template-columns:36px 48px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 16px;border:1px solid rgba(45,212,191,.18);border-radius:var(--re-radius);background:linear-gradient(120deg,rgba(9,83,78,.65),rgba(14,22,34,.94) 46%,rgba(61,25,104,.35));box-shadow:inset 0 1px rgba(255,255,255,.055),0 14px 30px rgba(0,0,0,.2)}
.re-back{width:36px;height:36px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.09);border-radius:11px;color:#b6c4d0;background:rgba(5,10,17,.35);cursor:pointer}
.re-room-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;color:#eafffc;background:linear-gradient(145deg,#0d9488,#0284c7);box-shadow:0 10px 22px rgba(2,132,199,.22);font-size:1rem}
.re-title{min-width:0}.re-title small{color:#77ebd9;font-size:.59rem;font-weight:950;letter-spacing:.11em}.re-title h2{overflow:hidden;margin:3px 0 1px;color:#fff;font-size:1.08rem;text-overflow:ellipsis;white-space:nowrap}.re-title p{margin:0;color:#8fa0b3;font-size:.7rem}
.re-owner{display:flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid rgba(250,204,21,.18);border-radius:10px;color:#fde68a;background:rgba(202,138,4,.08);font-size:.67rem}.re-owner i{font-size:.7rem}
.re-tabs{width:100%;min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:6px;border:1px solid var(--re-border);border-radius:15px;background:rgba(7,13,21,.88);box-shadow:inset 0 1px rgba(255,255,255,.035)}
.re-tabs button{position:relative;min-width:0;height:62px;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;justify-content:center;gap:9px;padding:7px 13px;border:1px solid transparent;border-radius:11px;color:#8393a6;background:transparent;font-family:inherit;cursor:pointer;transition:.16s ease}
.re-tabs button>i{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:#8495a9;background:rgba(148,163,184,.075)}
.re-tabs button>span{min-width:0;display:grid;gap:2px;text-align:left}.re-tabs button b{font-size:.76rem}.re-tabs button small{overflow:hidden;color:#66788d;font-size:.61rem;text-overflow:ellipsis;white-space:nowrap}
.re-tabs button:hover{color:#dbe6ed;background:rgba(148,163,184,.045)}.re-tabs button.is-active{border-color:rgba(45,212,191,.22);color:#f2fffd;background:linear-gradient(135deg,rgba(13,148,136,.22),rgba(2,132,199,.08));box-shadow:0 8px 18px rgba(0,0,0,.14)}
.re-tabs button.is-active>i{color:#fff;background:linear-gradient(145deg,#0d9488,#0284c7)}.re-tabs button.is-active small{color:#88cfc5}
.re-tabs button[data-room-edit-tab="backgrounds"].is-active{border-color:rgba(96,165,250,.25);background:linear-gradient(135deg,rgba(2,132,199,.22),rgba(109,40,217,.1))}
.re-tabs button[data-room-edit-tab="backgrounds"].is-active>i{background:linear-gradient(145deg,#0284c7,#6d28d9)}
.re-tabs button[data-room-edit-tab="music"].is-active{border-color:rgba(192,132,252,.25);background:linear-gradient(135deg,rgba(109,40,217,.2),rgba(219,39,119,.08))}
.re-tabs button[data-room-edit-tab="music"].is-active>i{background:linear-gradient(145deg,#7c3aed,#db2777)}
.re-message:empty{display:none}.re-message:not(:empty){margin:0}.re-workspace{min-width:0;display:block}.re-pane{min-width:0;display:grid;align-content:start;gap:var(--re-space)}.re-pane[hidden]{display:none!important}
.re-pane-head{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border:1px solid var(--re-border);border-radius:14px;background:rgba(17,26,38,.72)}
.re-pane-head>div{min-width:0;display:flex;align-items:center;gap:11px}.re-pane-head>div>small{width:32px;height:32px;display:grid;place-items:center;flex:0 0 32px;border-radius:9px;color:#9aeee1;background:rgba(13,148,136,.13);font-size:.63rem;font-weight:950}
.re-pane-head span{min-width:0}.re-pane-head h3{margin:0;color:#f2f6f9;font-size:.93rem}.re-pane-head p{margin:3px 0 0;color:#8192a5;font-size:.68rem;line-height:1.35}.re-pane-head>i{color:#456074;font-size:1.05rem}
.re-basic-layout,.re-device-grid,.re-music-layout{min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:var(--re-space)}
.re-device-grid{align-items:start}
.re-basic-layout{grid-template-columns:minmax(0,1.08fr) minmax(300px,.92fr)}
.re-card,.re-device,.re-radio{position:relative;min-width:0;overflow:hidden;padding:var(--re-pad);border:1px solid var(--re-border);border-radius:var(--re-radius);background:linear-gradient(155deg,rgba(24,34,47,.96),rgba(9,15,24,.98));box-shadow:inset 0 1px rgba(255,255,255,.045),0 13px 28px rgba(0,0,0,.17)}
.re-card::before,.re-device::before,.re-radio::before{content:"";position:absolute;z-index:1;left:18px;right:18px;top:-1px;height:2px;border-radius:0 0 4px 4px;background:linear-gradient(90deg,transparent,#2dd4bf,transparent);opacity:.7}
.re-desktop::before{background:linear-gradient(90deg,transparent,#38bdf8,transparent)}.re-mobile::before{background:linear-gradient(90deg,transparent,#a78bfa,transparent)}
#roomEditPaneBackgrounds .re-pane-head>div>small{color:#bae6fd;background:rgba(2,132,199,.14)}#roomEditPaneBackgrounds .re-pane-head>i{color:#7065a4}
#roomEditPaneMusic .re-pane-head>div>small{color:#e9d5ff;background:rgba(109,40,217,.16)}#roomEditPaneMusic .re-pane-head>i{color:#8b527f}
#roomEditPaneMusic .re-card::before,#roomEditPaneMusic .re-radio::before{background:linear-gradient(90deg,transparent,#a855f7,#ec4899,transparent)}
.re-card>header,.re-radio>header{min-width:0;display:flex;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid rgba(148,163,184,.1)}.re-card>header>i,.re-radio>header>i{width:37px;height:37px;display:grid;place-items:center;flex:0 0 37px;border-radius:11px;color:#94eee0;background:rgba(13,148,136,.14)}
.re-card>header span,.re-radio>header span{min-width:0}.re-card h4,.re-radio h4,.re-device h4{margin:0;color:#edf4f7;font-size:.84rem}.re-card header p,.re-radio header p,.re-device header p{margin:2px 0 0;color:#7c8da1;font-size:.66rem}
.re-info-card,.re-cover-card,.re-mode-card,.re-guide{display:grid;align-content:start;gap:var(--re-space)}.re-info-card{grid-template-rows:auto 1fr}.re-fields{display:grid;grid-template-rows:auto 1fr;gap:var(--re-space)}.re-field{min-width:0;display:grid;gap:7px}.re-field>span{display:flex;align-items:center;justify-content:space-between;gap:10px}.re-field b{color:#dbe5ec;font-size:.74rem}.re-field em{color:#6f8297;font-size:.62rem;font-style:normal}.re-description{grid-template-rows:auto 1fr}
#roomsMount .edit-room-form .cr-input,#roomsMount .edit-room-form .cr-textarea{width:100%;max-width:100%;outline:0;border:1px solid rgba(148,163,184,.2);border-radius:11px;color:#edf3f7;background:#070c13;box-shadow:inset 0 1px 4px rgba(0,0,0,.22);font-family:inherit;font-size:.8rem;transition:.15s ease}
#roomsMount .edit-room-form .cr-input{height:47px;padding:0 13px;line-height:normal}#roomsMount .edit-room-form .cr-textarea{height:100%;min-height:190px;padding:12px 13px;line-height:1.5;resize:vertical}
#roomsMount .edit-room-form .cr-input:focus,#roomsMount .edit-room-form .cr-textarea:focus{transform:none;border-color:rgba(45,212,191,.48);background:#09111a;box-shadow:0 0 0 3px rgba(13,148,136,.09)}
.re-cover{position:relative;width:100%;min-height:190px;aspect-ratio:16/9;overflow:hidden;border:1px solid rgba(148,163,184,.16);border-radius:14px;background:linear-gradient(145deg,#162230,#080e16)}.re-cover>img{width:100%;height:100%;display:block;object-fit:cover}.re-cover>img[hidden],.re-cover-empty[hidden]{display:none!important}
.re-cover-empty{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:6px;padding:20px;text-align:center;color:#718499}.re-cover-empty i{font-size:1.5rem}.re-cover-empty strong{color:#b9c8d4;font-size:.8rem}.re-cover-empty span{font-size:.68rem}
.re-cover-label{position:absolute;left:9px;bottom:9px;display:flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid rgba(255,255,255,.1);border-radius:9px;color:#e8f2f7;background:rgba(4,9,15,.73);font-size:.64rem;font-weight:850;backdrop-filter:blur(7px)}
.re-cover-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.re-upload{position:relative;min-width:0;min-height:58px;display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:10px;padding:9px 11px;border:1px dashed rgba(45,212,191,.3);border-radius:12px;color:#d7e5e3;background:rgba(13,148,136,.06);cursor:pointer}
.re-upload>.cr-file{position:absolute!important;z-index:2;inset:0;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0;cursor:pointer}.re-upload>i{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;color:#9cebdd;background:rgba(13,148,136,.15)}
.re-upload>span{min-width:0;display:grid;gap:2px}.re-upload b{font-size:.73rem}.re-upload small{min-width:0;overflow:hidden;color:#77899d;font-size:.62rem;text-overflow:ellipsis;white-space:nowrap}.re-upload:hover{border-color:rgba(45,212,191,.5);background:rgba(13,148,136,.09)}
.re-remove{min-height:58px;display:flex;align-items:center;gap:7px;padding:9px 11px;border:1px solid rgba(248,113,113,.17);border-radius:11px;color:#e8adb5;background:rgba(239,68,68,.05);font-size:.67rem;font-weight:800;cursor:pointer}.re-remove input{width:16px;height:16px;margin:0;accent-color:#dc5d6c}.re-remove i{font-size:.7rem}
.re-device{display:grid;align-content:start;gap:var(--re-space)}.re-device>header{display:grid;grid-template-columns:43px minmax(0,1fr) auto;align-items:center;gap:10px}.re-device>header>span{width:43px;height:43px;display:grid;place-items:center;border-radius:13px;color:#b0f3e8;background:linear-gradient(145deg,rgba(13,148,136,.27),rgba(2,132,199,.13))}.re-device>header>div{min-width:0}.re-device>header>div>small{color:#58cdbb;font-size:.55rem;font-weight:950;letter-spacing:.09em}.re-device>header em{padding:4px 7px;border:1px solid rgba(45,212,191,.14);border-radius:7px;color:#72d5c7;background:rgba(13,148,136,.06);font-size:.58rem;font-style:normal;font-weight:900}
.re-bg-preview{position:relative;display:flex;align-items:flex-end;padding:9px;overflow:hidden;border:1px solid rgba(148,163,184,.17);background-image:linear-gradient(180deg,rgba(4,8,14,.12),rgba(4,8,14,.67)),var(--room-bg-preview);background-position:center,var(--bg-x,50%) var(--bg-y,50%);background-size:cover;background-repeat:no-repeat;user-select:none;cursor:grab;touch-action:pan-y}.re-bg-preview.is-desktop{width:100%;min-height:190px;aspect-ratio:16/9;border-radius:13px}.re-bg-preview.is-mobile{width:min(220px,100%);aspect-ratio:9/16;justify-self:center;border-radius:18px}.re-bg-preview.is-empty{cursor:default;background-image:linear-gradient(145deg,#172331,#080e16)}.re-bg-preview.is-empty::before{content:"Dodaj fotografiju";position:absolute;inset:0;display:grid;place-items:center;color:#65798e;font-size:.67rem;font-weight:850}.re-bg-preview.is-dragging{cursor:grabbing;border-color:rgba(45,212,191,.5)}
.room-bg-drag-hint{position:relative;z-index:1;display:inline-flex;align-items:center;gap:6px;margin:auto;padding:7px 9px;border:1px solid rgba(255,255,255,.13);border-radius:8px;color:#e5eef4;background:rgba(4,9,15,.7);font-size:.62rem;font-weight:850;backdrop-filter:blur(6px)}.re-bg-preview.is-empty .room-bg-drag-hint{display:none}
.re-position{display:grid;gap:9px;padding:10px;border:1px solid rgba(148,163,184,.11);border-radius:11px;background:rgba(4,9,15,.4)}.re-position>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:8px;border-bottom:1px solid rgba(148,163,184,.08)}.re-position>header span{display:flex;align-items:center;gap:6px;color:#d1dde5;font-size:.7rem;font-weight:850}.re-position>header i{color:#5eead4}.re-position>header small{color:#687b90;font-size:.59rem}
.re-position label{display:grid;gap:5px;color:#8fa1b3;font-size:.65rem;font-weight:750}.re-position label>span{display:flex;justify-content:space-between;gap:8px}.re-position output{padding:2px 5px;border-radius:6px;color:#8de7da;background:rgba(13,148,136,.1);font-size:.59rem;font-weight:900}.re-position input[type=range]{width:100%;height:15px;accent-color:#14b8a6}
.re-note{min-height:51px;display:flex;align-items:center;gap:10px;padding:10px 13px;border:1px solid rgba(56,189,248,.13);border-radius:12px;color:#9cadbd;background:rgba(2,132,199,.07)}.re-note>i{width:31px;height:31px;display:grid;place-items:center;flex:0 0 31px;border-radius:9px;color:#7dd3fc;background:rgba(2,132,199,.1)}.re-note div{display:grid;gap:2px}.re-note b{color:#c9d8e2;font-size:.7rem}.re-note span{font-size:.64rem}
.re-mode-options{display:grid;gap:9px}.re-mode{position:relative;cursor:pointer}.re-mode>input{position:absolute;opacity:0;pointer-events:none}.re-mode>span{position:relative;min-height:84px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:2px 10px;padding:12px;border:1px solid rgba(148,163,184,.13);border-radius:13px;background:rgba(255,255,255,.025)}.re-mode>span>i{grid-row:1/3;width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:#8fe7da;background:rgba(13,148,136,.12)}.re-mode b{font-size:.77rem}.re-mode small{color:#8192a5;font-size:.65rem;line-height:1.35}.re-mode em{grid-column:3;grid-row:1/3;padding:5px 7px;border:1px solid rgba(148,163,184,.15);border-radius:8px;color:#77899c;font-size:.58rem;font-style:normal;font-weight:850}.re-mode>input:checked+span{border-color:rgba(45,212,191,.36);background:linear-gradient(135deg,rgba(13,148,136,.17),rgba(2,132,199,.055));box-shadow:0 0 0 2px rgba(13,148,136,.05)}.re-mode>input:checked+span>i{color:#fff;background:linear-gradient(145deg,#0d9488,#0284c7)}.re-mode>input:checked+span>em{border-color:rgba(45,212,191,.2);color:#b7f7ed;background:rgba(13,148,136,.12)}
.re-mode>input[value="radio"]:checked+span{border-color:rgba(236,72,153,.3);background:linear-gradient(135deg,rgba(109,40,217,.17),rgba(219,39,119,.09))}.re-mode>input[value="radio"]:checked+span>i{background:linear-gradient(145deg,#7c3aed,#db2777)}.re-mode>input[value="radio"]:checked+span>em{border-color:rgba(244,114,182,.2);color:#fbcfe8;background:rgba(219,39,119,.1)}
.re-guide{grid-template-rows:auto 1fr}.re-guide-body{display:grid;align-content:start;gap:9px}.re-guide-body[hidden]{display:none!important}.re-live-status{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid rgba(45,212,191,.12);border-radius:11px;background:rgba(13,148,136,.075)}.re-live-status>i{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:#99eee1;background:rgba(13,148,136,.14)}.re-live-status>span{display:grid}.re-live-status small{color:#65b9ad;font-size:.54rem;font-weight:950;letter-spacing:.08em}.re-live-status strong{font-size:.73rem}
.re-guide ol{display:grid;gap:6px;margin:0;padding:0;list-style:none}.re-guide li{display:grid;grid-template-columns:26px minmax(0,1fr);align-items:center;gap:8px;padding:7px 8px;border:1px solid rgba(148,163,184,.085);border-radius:9px;background:rgba(4,9,15,.35)}.re-guide li>b{width:26px;height:26px;display:grid;place-items:center;border-radius:8px;color:#8be6d8;background:rgba(13,148,136,.1);font-size:.6rem}.re-guide li>span{display:grid;gap:1px}.re-guide li strong{color:#d4dfe7;font-size:.68rem}.re-guide li small{color:#73859a;font-size:.61rem}
.re-radio{display:grid;gap:12px}.re-radio.is-disabled{display:none}.re-radio>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.re-radio label{display:grid;gap:6px;color:#d4dfe7;font-size:.7rem;font-weight:850}.re-radio>small{display:flex;align-items:flex-start;gap:7px;color:#8d9eb0;font-size:.65rem;line-height:1.4}.re-radio>small i{color:#fbbf24}
.re-actions{position:relative;bottom:auto;z-index:4;display:flex;justify-content:flex-end;gap:9px;margin:0;padding:12px;border:1px solid var(--re-border);border-radius:14px;background:rgba(11,18,28,.92);box-shadow:0 -8px 22px rgba(0,0,0,.12)}.re-actions .btn,.re-actions .btn-ghost{min-width:150px;height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 15px;border-radius:11px;font-family:inherit;font-size:.73rem;font-weight:900;cursor:pointer}.re-actions .btn-ghost{border:1px solid rgba(148,163,184,.16);color:#c4d0da;background:#17212d}.re-actions .btn{width:auto;border:1px solid rgba(94,234,212,.22);color:#fff;background:linear-gradient(135deg,#0d9488,#0284c7);box-shadow:0 9px 19px rgba(2,132,199,.2)}
@container (max-width:820px){.re-basic-layout,.re-device-grid,.re-music-layout{grid-template-columns:1fr}.re-cover-actions{grid-template-columns:1fr}}
@media(max-width:640px){
  #main.is-edit-room-layout,#main:has(#roomsView:not(.hidden) .edit-room-form){box-sizing:border-box!important;width:100%!important;max-width:100vw!important;min-width:0!important;grid-template-columns:minmax(0,1fr)!important;overflow-x:hidden!important}
  #roomsView.is-edit-room,#roomsView:has(.edit-room-form),#roomsMount.is-edit-room,#roomsMount:has(>.edit-room-form),#roomsMount .edit-room-form{box-sizing:border-box!important;width:100%!important;max-width:100vw!important;min-width:0!important}
  #roomsMount .edit-room-form{--re-space:10px;--re-pad:12px;--re-radius:14px;min-height:100%;padding:0 10px 10px;overflow-x:hidden}
  .re-topbar{grid-template-columns:34px 40px minmax(0,1fr);gap:8px;margin:0 -10px;padding:10px;border-width:0 0 1px;border-radius:0}.re-back{width:34px;height:34px}.re-room-mark{width:40px;height:40px;border-radius:12px}.re-title h2{font-size:.88rem}.re-title p{font-size:.61rem}.re-owner{display:none}
  .re-tabs{position:sticky;top:0;z-index:8;width:calc(100% + 20px);margin:0 -10px;padding:6px 7px;border-width:0 0 1px;border-radius:0;background:rgba(8,13,20,.96);backdrop-filter:blur(12px)}.re-tabs button{height:54px;grid-template-columns:1fr;justify-items:center;gap:3px;padding:4px}.re-tabs button>i{width:25px;height:25px;border-radius:8px;font-size:.68rem}.re-tabs button>span{display:block;text-align:center}.re-tabs button b{font-size:.64rem}.re-tabs button small{display:none}
  .re-pane{gap:10px}.re-pane-head{padding:10px 11px}.re-pane-head>div>small{width:29px;height:29px;flex-basis:29px}.re-pane-head h3{font-size:.79rem}.re-pane-head p{font-size:.61rem}
  .re-basic-layout,.re-device-grid,.re-music-layout{grid-template-columns:1fr;gap:10px}.re-card,.re-device,.re-radio{padding:12px;border-radius:14px}.re-info-card,.re-cover-card,.re-mode-card,.re-guide,.re-device{gap:11px}
  #roomsMount .edit-room-form .cr-input{height:45px}#roomsMount .edit-room-form .cr-textarea{height:auto;min-height:125px}.re-fields{grid-template-rows:auto auto;gap:11px}.re-description{grid-template-rows:auto auto}
  .re-cover{min-height:0}.re-cover-actions{grid-template-columns:1fr}.re-remove{min-height:45px}
  .re-bg-preview.is-desktop{min-height:0}.re-bg-preview.is-mobile{width:min(235px,72vw)}
  .re-radio>div{grid-template-columns:1fr}.re-mode>span{grid-template-columns:39px minmax(0,1fr) auto;padding:10px}.re-mode>span>i{width:39px;height:39px}
  .re-actions{position:sticky;bottom:0;z-index:7;margin:0 -10px -10px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));border-width:1px 0 0;border-radius:0;background:rgba(8,13,20,.96);backdrop-filter:blur(12px)}.re-actions>*{flex:1;min-width:0!important}.re-actions .btn,.re-actions .btn-ghost{height:45px;font-size:.68rem}
}
