/* Oficina Shinobi v3 — editor residencial sem cortes e responsivo. */
.nrmt-home-editor-v3,
.nrmt-home-editor-v3 *{box-sizing:border-box}

.nrmt-home.can-edit.is-editing .nrmt-home-tools.nrmt-home-editor-v3{
  position:absolute!important;
  inset:12px 12px 12px 50%!important;
  z-index:220;
  display:grid!important;
  grid-template-rows:minmax(86px,112px) minmax(0,1fr) 64px;
  gap:10px;
  width:min(1480px,calc(100vw - 24px));
  height:auto;
  max-height:none;
  padding:22px 22px 20px!important;
  overflow:hidden;
  border:0!important;
  border-radius:4px;
  background:
    radial-gradient(circle at 78% 5%,rgba(53,137,149,.11),transparent 32%),
    radial-gradient(circle at 12% 92%,rgba(187,126,38,.08),transparent 27%),
    linear-gradient(145deg,#101719,#050809 72%)!important;
  box-shadow:0 34px 110px #000e,0 0 0 1px #020405!important;
  transform:translateX(-50%);
}
.nrmt-home-editor-v3>.nrmt-ui-ornate-frame-layer{pointer-events:none!important}

.nrmt-home-editor-v3 .nrmt-home-editor-header{
  grid-template-columns:minmax(0,1fr) auto 46px;
  gap:18px;
  padding:15px 20px 15px 25px;
  border-color:rgba(207,158,78,.42);
  background-image:
    linear-gradient(90deg,rgba(2,8,10,.98),rgba(4,11,13,.91) 46%,rgba(5,11,12,.54) 76%,rgba(4,8,9,.9)),
    url('/assets/branding/shinobi-archive-ui-v3/characters-archive-keyart-v3.png?v=1');
  background-position:center,center 46%;
}
.nrmt-home-editor-v3 .nrmt-home-editor-heading h2{font-size:clamp(21px,2.1vw,29px)}
.nrmt-home-editor-v3 .nrmt-home-editor-heading p{max-width:650px}
.nrmt-home-editor-live{display:flex;align-items:center;gap:9px;padding:9px 13px;border:1px solid #285249;background:#071412d9}
.nrmt-home-editor-live>i{width:9px;height:9px;border-radius:50%;background:#62e7ae;box-shadow:0 0 12px #62e7ae}
.nrmt-home-editor-live>span{display:flex;flex-direction:column;line-height:1.15}
.nrmt-home-editor-live b{color:#9ff3c9;font:800 9px NinjaUI,"Segoe UI",sans-serif;letter-spacing:.12em}
.nrmt-home-editor-live small{margin-top:3px;color:#728d86;font-size:9px}

.nrmt-home-editor-v3 .nrmt-home-editor-layout{
  grid-template-columns:minmax(260px,320px) minmax(0,1fr);
  gap:12px;
  overflow:hidden;
}
.nrmt-home-editor-v3 .nrmt-home-editor-layout>[data-home-editor-settings],
.nrmt-home-editor-v3 .nrmt-home-editor-layout>main{border-image-width:14px;background:linear-gradient(145deg,#11191b,#080c0e 75%)}
.nrmt-home-editor-v3 .nrmt-home-editor-layout>[data-home-editor-settings]{
  display:block;
  padding:16px 16px 24px;
  overflow-x:hidden;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:#9b6c2e #091012;
}
.nrmt-home-editor-section-title{display:flex;align-items:center;gap:10px;margin-bottom:13px;padding:3px 3px 12px;border-bottom:1px solid #314044}
.nrmt-home-editor-section-title>span{display:grid;place-items:center;width:34px;height:34px;border:1px solid #9e6c2c;background:#291c0c;color:#ffd16b;font:900 12px NinjaUI,"Segoe UI",sans-serif}
.nrmt-home-editor-section-title>div{display:flex;flex-direction:column}
.nrmt-home-editor-section-title small{color:#69bfc5;font-size:8px;letter-spacing:.14em}
.nrmt-home-editor-section-title h3{margin:3px 0 0!important;font-size:14px!important}

.nrmt-home-editor-v3 .nrmt-home-rooms,
.nrmt-home-editor-properties,
.nrmt-home-editor-sharing{margin-bottom:11px;padding:11px;border:1px solid #344448;background:linear-gradient(145deg,#0d1517,#080d0f)}
.nrmt-home-editor-v3 .nrmt-home-rooms>b,
.nrmt-home-editor-properties>h4,
.nrmt-home-editor-sharing>h4{display:block;margin:0 0 9px;color:#e8bd65;font:800 10px NinjaUI,"Segoe UI",sans-serif;letter-spacing:.12em}
.nrmt-home-editor-v3 .nrmt-home-rooms>[data-home-rooms]{margin-bottom:6px}
.nrmt-home-editor-v3 .nrmt-home-rooms button{flex:1;min-height:31px;padding:5px 7px}
.nrmt-home-editor-v3 .nrmt-home-editor-properties{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.nrmt-home-editor-v3 .nrmt-home-editor-properties>h4{grid-column:1/-1;margin-bottom:0}
.nrmt-home-editor-v3 .nrmt-home-editor-properties label:first-of-type,
.nrmt-home-editor-v3 .nrmt-home-editor-properties label:nth-of-type(2){grid-column:1/-1}
.nrmt-home-editor-v3 [data-home-editor-settings] label{gap:5px;font-weight:700}
.nrmt-home-editor-v3 [data-home-editor-settings] select,
.nrmt-home-editor-v3 [data-home-editor-settings] input{width:100%;height:36px;min-height:36px;border-color:#3d5356;background:#071012;color:#eee2c8;outline:none}
.nrmt-home-editor-v3 [data-home-editor-settings] select:focus,
.nrmt-home-editor-v3 [data-home-editor-settings] input:focus{border-color:#d09942;box-shadow:0 0 0 2px rgba(208,153,66,.14)}
.nrmt-home-editor-sharing{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.nrmt-home-editor-sharing>h4,.nrmt-home-editor-sharing>p{grid-column:1/-1}
.nrmt-home-editor-sharing>p{margin:-5px 0 4px;color:#778688;font-size:10px}
.nrmt-home-editor-sharing>button{min-height:34px!important;border-color:#3b6158!important;background:#0d2520!important;color:#9cebc9!important;font:800 9px NinjaUI,"Segoe UI",sans-serif}

.nrmt-home-editor-v3 .nrmt-home-editor-layout>main{padding:16px 16px 10px;overflow:hidden}
.nrmt-home-editor-v3 .nrmt-home-editor-catalog-title{flex:0 0 auto;padding:2px 4px 13px}
.nrmt-home-editor-v3 .nrmt-home-editor-catalog-title b{margin-top:4px;font-size:17px}
.nrmt-home-editor-v3 .nrmt-home-editor-catalog-title em{padding:7px 10px;border:1px solid #2d4446;background:#091113;color:#8ec9c4}
.nrmt-home.is-editing .nrmt-home-editor-v3 .nrmt-home-editor-layout [data-home-palette]{
  flex:1 1 auto;
  grid-template-columns:repeat(auto-fill,minmax(145px,1fr));
  gap:9px;
  min-height:0;
  margin-top:9px;
  padding:0 7px 22px 1px;
  overflow-x:hidden;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:#a27233 #081012;
}
.nrmt-home.is-editing .nrmt-home-editor-v3 [data-home-palette]>b{
  position:sticky;
  top:0;
  z-index:2;
  margin:10px 0 1px;
  padding:9px 11px;
  border-left:3px solid #d29a43;
  border-bottom:1px solid #273538;
  background:#091012f2;
  box-shadow:0 5px 10px #0008;
}
.nrmt-home.is-editing .nrmt-home-editor-v3 [data-home-palette] button{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  min-height:64px;
  padding:10px;
  overflow:hidden;
  border-color:#344649;
  background:linear-gradient(135deg,#151f22,#0a1012 76%);
  transition:border-color .16s,transform .16s,background .16s;
}
.nrmt-home.is-editing .nrmt-home-editor-v3 [data-home-palette] button:hover{transform:translateY(-1px);border-color:#8d713c}
.nrmt-home.is-editing .nrmt-home-editor-v3 [data-home-palette] button.is-active{border-color:#e2ad51;background:linear-gradient(135deg,#362817,#101416);box-shadow:inset 3px 0 #e2ad51,0 8px 22px #0008}
.nrmt-home.is-editing .nrmt-home-editor-v3 [data-home-palette] i{flex:0 0 38px;width:38px;height:38px;border:1px solid #394649;background-color:#11191b!important;box-shadow:inset 0 0 12px #0008}
.nrmt-home.is-editing .nrmt-home-editor-v3 [data-home-palette] span{min-width:0;overflow:hidden;color:#dcd3c0;font-weight:700;text-overflow:ellipsis;white-space:nowrap}

.nrmt-home-editor-v3 .nrmt-home-editor-footer{min-width:0;padding:8px 12px 8px 18px;border-color:rgba(207,158,78,.34)}
.nrmt-home-editor-v3 .nrmt-home-editor-footer>[data-home-save-status]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nrmt-home-editor-v3 .nrmt-home-editor-footer>[data-home-save-status]:before{content:'●';margin-right:8px;color:#59dfa4;text-shadow:0 0 8px #59dfa4}
.nrmt-home-editor-v3 .nrmt-home-editor-footer>[data-home-save]{flex:0 0 min(280px,35vw);height:44px}

@media(max-height:700px){
  .nrmt-home.can-edit.is-editing .nrmt-home-tools.nrmt-home-editor-v3{inset:6px 7px 6px 50%!important;width:calc(100vw - 14px);grid-template-rows:82px minmax(0,1fr) 54px;padding:17px 18px 15px!important;gap:7px}
  .nrmt-home-editor-v3 .nrmt-home-editor-header{padding:10px 17px 10px 21px}
  .nrmt-home-editor-v3 .nrmt-home-editor-heading h2{margin:3px 0 1px;font-size:21px}
  .nrmt-home-editor-v3 .nrmt-home-editor-heading p{font-size:10px}
  .nrmt-home-editor-v3 .nrmt-home-editor-layout>[data-home-editor-settings]{padding:12px 12px 18px}
  .nrmt-home-editor-v3 .nrmt-home-editor-layout>main{padding:12px 13px 8px}
}
@media(max-width:900px){
  .nrmt-home-editor-v3 .nrmt-home-editor-layout{grid-template-columns:minmax(190px,240px) minmax(0,1fr)}
  .nrmt-home-editor-live{display:none}
  .nrmt-home.is-editing .nrmt-home-editor-v3 .nrmt-home-editor-layout [data-home-palette]{grid-template-columns:repeat(auto-fill,minmax(125px,1fr))}
}
@media(max-width:640px){
  .nrmt-home.can-edit.is-editing .nrmt-home-tools.nrmt-home-editor-v3{grid-template-rows:76px minmax(0,1fr) 58px}
  .nrmt-home-editor-v3 .nrmt-home-editor-layout{display:flex;flex-direction:column;overflow:auto}
  .nrmt-home-editor-v3 .nrmt-home-editor-layout>[data-home-editor-settings]{flex:0 0 auto;max-height:43%;overflow:auto}
  .nrmt-home-editor-v3 .nrmt-home-editor-layout>main{flex:1 0 360px;min-height:360px}
  .nrmt-home-editor-v3 .nrmt-home-editor-catalog-title em{display:none}
  .nrmt-home-editor-v3 .nrmt-home-editor-footer>[data-home-save-status]{font-size:8px}
  .nrmt-home-editor-v3 .nrmt-home-editor-footer>[data-home-save]{flex-basis:46%;min-width:0}
}

/* Modo bancada: o mapa permanece livre para receber os itens selecionados. */
.nrmt-home.can-edit.is-editing .nrmt-home-tools.nrmt-home-editor-v3{
  inset:auto 10px 10px 50%!important;
  width:min(1480px,calc(100vw - 20px));
  height:min(420px,47dvh);
  grid-template-rows:60px minmax(0,1fr) 54px;
  padding:18px 20px 17px!important;
}
.nrmt-home-editor-v3 .nrmt-home-editor-header{grid-template-columns:minmax(0,1fr) auto auto 42px;padding:8px 16px 8px 21px}
.nrmt-home-editor-v3 .nrmt-home-editor-heading h2{margin:2px 0 0;font-size:19px}
.nrmt-home-editor-v3 .nrmt-home-editor-heading p{display:none}
.nrmt-home-editor-size{width:auto!important;min-width:92px!important;height:34px!important;padding:0 12px!important;border:1px solid #426863!important;background:linear-gradient(#17322f,#0a1b1a)!important;color:#a8eee3!important;font:800 9px NinjaUI,"Segoe UI",sans-serif!important;letter-spacing:.08em;cursor:pointer}
.nrmt-home-editor-v3 .nrmt-home-editor-layout{grid-template-columns:minmax(235px,285px) minmax(0,1fr)}
.nrmt-home-editor-v3 .nrmt-home-editor-layout>[data-home-editor-settings]{padding:11px 12px 16px}
.nrmt-home-editor-v3 .nrmt-home-editor-section-title{margin-bottom:8px;padding-bottom:7px}
.nrmt-home-editor-v3 .nrmt-home-editor-section-title>span{width:29px;height:29px}
.nrmt-home-editor-v3 .nrmt-home-rooms,.nrmt-home-editor-properties,.nrmt-home-editor-sharing{margin-bottom:8px;padding:8px}
.nrmt-home-editor-v3 .nrmt-home-editor-layout>main{padding:10px 12px 7px}
.nrmt-home-editor-v3 .nrmt-home-editor-catalog-title{padding-bottom:8px}
.nrmt-home-editor-v3 .nrmt-home-editor-catalog-title b{font-size:14px}
.nrmt-home.is-editing .nrmt-home-editor-v3 .nrmt-home-editor-layout [data-home-palette]{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:7px;margin-top:6px}
.nrmt-home.is-editing .nrmt-home-editor-v3 [data-home-palette] button{min-height:54px;padding:7px}
.nrmt-home.is-editing .nrmt-home-editor-v3 [data-home-palette] i{flex-basis:34px;width:34px;height:34px}

/* Expansão opcional somente para administrar muitas salas ou navegar melhor. */
.nrmt-home.can-edit.is-editing.is-editor-expanded .nrmt-home-tools.nrmt-home-editor-v3{
  inset:12px 12px 12px 50%!important;
  height:auto;
  grid-template-rows:minmax(86px,112px) minmax(0,1fr) 64px;
  padding:22px 22px 20px!important;
}
.nrmt-home.is-editor-expanded .nrmt-home-editor-v3 .nrmt-home-editor-header{padding:15px 20px 15px 25px}
.nrmt-home.is-editor-expanded .nrmt-home-editor-v3 .nrmt-home-editor-heading h2{margin:5px 0 3px;font-size:clamp(21px,2.1vw,29px)}
.nrmt-home.is-editor-expanded .nrmt-home-editor-v3 .nrmt-home-editor-heading p{display:block}
.nrmt-home.is-editor-expanded .nrmt-home-editor-v3 .nrmt-home-editor-layout{grid-template-columns:minmax(260px,320px) minmax(0,1fr)}

@media(max-width:700px){
  .nrmt-home.can-edit.is-editing .nrmt-home-tools.nrmt-home-editor-v3{height:min(390px,54dvh);padding:14px 14px 13px!important;grid-template-rows:54px minmax(0,1fr) 50px}
  .nrmt-home-editor-v3 .nrmt-home-editor-layout{display:grid;grid-template-columns:190px minmax(0,1fr);overflow:hidden}
  .nrmt-home-editor-v3 .nrmt-home-editor-layout>[data-home-editor-settings]{max-height:none}
  .nrmt-home-editor-v3 .nrmt-home-editor-layout>main{min-height:0}
  .nrmt-home-editor-live{display:none}
  .nrmt-home-editor-size{min-width:78px!important}
}
