
#host-panel.host-mobile-app{--host-green:#0f5e47;--host-deep:#0f473a;--host-line:#e2e5df;--host-muted:#6d7873;--host-shadow:0 10px 30px rgba(24,53,43,.08);width:min(100%,560px);margin:0 auto;padding:2px 0 92px}
.host-mobile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:4px 0 18px}
.host-mobile-head h2{margin:0;font-size:clamp(25px,6vw,32px);line-height:1.05;letter-spacing:-.035em;color:#17221e}
.host-mobile-head p{margin:7px 0 0;color:var(--host-muted);font-size:13px;line-height:1.45}
.host-unit-compact{padding:11px 13px;border:1px solid var(--host-line);background:#fff;border-radius:14px;margin-bottom:14px;box-shadow:var(--host-shadow)}
.host-unit-compact select{width:100%;border:0;background:#f3f6f3;border-radius:10px;padding:11px 12px;color:#173b32;font-weight:800}
.host-launch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.host-launch{aspect-ratio:1/1;min-width:0;padding:14px 10px;border:1px solid var(--host-line);background:#fff;border-radius:17px;text-decoration:none;color:#17251f;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;box-shadow:var(--host-shadow);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.host-launch svg{width:min(58px,38%);height:auto;aspect-ratio:1}.host-launch strong{font-size:14px;line-height:1.12;max-width:13ch}.host-launch small{font-size:10.5px;color:#74807b;line-height:1.2}
.host-launch:hover,.host-launch:focus-visible{transform:translateY(-2px);box-shadow:0 16px 34px rgba(24,53,43,.13);outline:none;border-color:#c7d4ce}
.host-section-card{margin-top:18px;background:#fff;border:1px solid var(--host-line);border-radius:17px;padding:15px;box-shadow:var(--host-shadow)}
.host-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.host-section-title h3{margin:0;font-size:16px}.host-section-title a{font-size:12px;color:var(--host-green);font-weight:800;text-decoration:none}
#host-registrations-list .registration-card{margin:0 0 10px}.host-home-hide{display:none!important}
.host-bottom-nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);z-index:45;width:min(560px,100%);height:72px;background:rgba(255,255,255,.97);border-top:1px solid var(--host-line);display:grid;grid-template-columns:repeat(5,1fr);box-shadow:0 -8px 24px rgba(23,59,50,.08);padding-bottom:env(safe-area-inset-bottom);backdrop-filter:blur(14px)}
.host-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-decoration:none;color:#74807b;font-size:10px;font-weight:700}.host-bottom-nav a.active{color:var(--host-green)}.host-bottom-nav svg{width:23px;height:23px}.host-bottom-nav .publish{margin-top:-17px}.host-bottom-nav .publish svg{width:43px;height:43px;padding:9px;border-radius:50%;background:var(--host-green);box-shadow:0 8px 18px rgba(15,94,71,.28)}
@media(min-width:680px) and (max-width:959px){#host-panel.host-mobile-app{width:min(100%,760px)}.host-launch-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.host-launch{aspect-ratio:1/1;min-height:170px}.host-bottom-nav{width:min(700px,calc(100% - 36px));bottom:16px;border:1px solid var(--host-line);border-radius:20px}}
@media(min-width:960px){#host-panel.host-mobile-app{width:min(1180px,100%);max-width:none;padding:8px 0 110px}.host-mobile-head{padding:4px 4px 2px;align-items:center}.host-mobile-head h2{font-size:38px}.host-mobile-head p{font-size:14px}.host-unit-compact{max-width:none;padding:14px 16px}.host-launch-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.host-launch{aspect-ratio:1.12/1;min-height:190px;border-radius:20px;padding:22px 16px}.host-launch svg{width:74px;max-width:38%;filter:drop-shadow(0 7px 10px rgba(19,61,49,.08))}.host-launch strong{font-size:17px;max-width:16ch}.host-launch small{font-size:11px}.host-section-card{margin-top:22px;padding:22px;border-radius:20px}.host-section-title h3{font-size:20px}.host-bottom-nav{width:min(650px,calc(100% - 48px));height:76px;bottom:22px;border:1px solid var(--host-line);border-radius:22px;box-shadow:0 16px 44px rgba(20,57,46,.15)}.host-bottom-nav a{font-size:11px}}
@media(min-width:1280px){#host-panel.host-mobile-app{width:min(1240px,100%)}.host-launch-grid{gap:20px}.host-launch{min-height:210px}}

.host-home-stay-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 2px;border-top:1px solid #e7e9e4;text-decoration:none;color:inherit}
.host-home-stay-row:first-child{border-top:0}.host-home-stay-main{min-width:0}.host-home-stay-main strong,.host-home-stay-main small{display:block}.host-home-stay-main strong{font-size:14px}.host-home-stay-main small{margin-top:4px;color:#758079;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}


/* Painel do proprietário: remover elementos administrativos/técnicos do shell.
   Outros perfis (admin/portaria/hóspede) permanecem inalterados. */
body.host-clean-shell .app-header,
body.host-clean-shell #role-hero,
body.host-clean-shell #host-unit-card {
  display: none !important;
}

body.host-clean-shell .page-shell {
  padding-top: 18px;
}

body.host-clean-shell #host-panel {
  margin-top: 0;
}

/* O seletor de unidade continua disponível apenas quando há mais de uma unidade vinculada. */
body.host-clean-shell #host-unit-switcher:not([hidden]) {
  margin-top: 0;
}


/* Ajuste 2026-08-21: título com botão Sair + navegação sempre fixa no limite da tela */
.host-mobile-head-copy{min-width:0;flex:1}
.host-mobile-head-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  flex:0 0 auto;
}
.host-logout-button{
  min-height:42px;
  padding:0 13px;
  border:1px solid #d9e0db;
  border-radius:12px;
  background:#fff;
  color:#244b3e;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-weight:800;
  font-size:12px;
  cursor:pointer;
  box-shadow:0 5px 16px rgba(24,53,43,.07);
}
.host-logout-button svg{width:18px;height:18px;display:block}
.host-logout-button:hover{background:#f4f7f4;border-color:#c9d5cf}
.host-logout-button:focus-visible{outline:3px solid rgba(15,94,71,.2);outline-offset:2px}

/* O menu fica preso ao viewport. O conteúdo recebe espaço inferior e rola sem deslocar o menu. */
body.host-clean-shell #host-panel{
  padding-bottom:calc(104px + env(safe-area-inset-bottom)) !important;
}
body.host-clean-shell .host-bottom-nav{
  position:fixed !important;
  left:50% !important;
  right:auto !important;
  bottom:0 !important;
  transform:translateX(-50%) !important;
  z-index:100 !important;
  margin:0 !important;
}

/* Celular: ocupa o limite inferior da tela. */
@media(max-width:679px){
  body.host-clean-shell .host-bottom-nav{
    width:100% !important;
    border-radius:18px 18px 0 0 !important;
  }
  .host-mobile-head{align-items:center}
  .host-mobile-head h2{font-size:25px}
  .host-mobile-head p{font-size:12px}
  .host-logout-button{min-height:40px;padding:0 11px}
}

/* Tablet: continua centralizado, mas encostado no limite inferior. */
@media(min-width:680px) and (max-width:959px){
  body.host-clean-shell .host-bottom-nav{
    width:min(700px,calc(100% - 36px)) !important;
    bottom:0 !important;
    border-radius:20px 20px 0 0 !important;
  }
  body.host-clean-shell #host-panel{
    padding-bottom:112px !important;
  }
}

/* Computador: dock central, sempre preso ao limite inferior. */
@media(min-width:960px){
  body.host-clean-shell .host-bottom-nav{
    width:min(650px,calc(100% - 48px)) !important;
    bottom:0 !important;
    border-radius:22px 22px 0 0 !important;
  }
  body.host-clean-shell #host-panel{
    padding-bottom:118px !important;
  }
  .host-mobile-head{
    position:relative;
    align-items:center;
  }
  .host-logout-button{
    min-height:44px;
    padding:0 15px;
    font-size:13px;
  }
}


/* HOTFIX mobile 2026-08-21 — ícones standalone + dock sempre no campo de visão */
.host-launch .host-icon{
  width:58px;
  height:58px;
  object-fit:contain;
  display:block;
  flex:0 0 auto;
}
.host-bottom-nav .host-icon{
  width:24px;
  height:24px;
  object-fit:contain;
  display:block;
}
.host-bottom-nav .publish .host-icon{
  width:46px;
  height:46px;
  padding:9px;
  border-radius:50%;
  background:#0f5e47;
  box-shadow:0 8px 18px rgba(15,94,71,.28);
}
body.host-clean-shell #host-panel{
  padding-bottom:calc(122px + env(safe-area-inset-bottom)) !important;
}
body.host-clean-shell .host-bottom-nav{
  position:fixed !important;
  left:50% !important;
  right:auto !important;
  bottom:calc(var(--boa-luz-visual-bottom, 0px) + max(8px, env(safe-area-inset-bottom))) !important;
  transform:translateX(-50%) !important;
  z-index:2147483000 !important;
  isolation:isolate;
  margin:0 !important;
  will-change:bottom;
}

@media(max-width:679px){
  body.host-clean-shell .host-bottom-nav{
    width:calc(100% - 20px) !important;
    height:72px !important;
    border:1px solid #dfe4df !important;
    border-radius:22px !important;
    box-shadow:0 14px 38px rgba(22,55,44,.18) !important;
    overflow:visible;
  }
  body.host-clean-shell #host-panel{
    padding-bottom:142px !important;
  }
  .host-launch .host-icon{width:54px;height:54px}
  .host-bottom-nav a{min-width:0}
  .host-bottom-nav a span{font-size:10px}
}

@media(min-width:680px){
  body.host-clean-shell .host-bottom-nav{
    bottom:calc(var(--boa-luz-visual-bottom, 0px) + 12px) !important;
  }
}

@media(min-width:960px){
  .host-launch .host-icon{width:72px;height:72px}
}


/* HOTFIX definitivo do menu da página principal:
   o dock agora é filho direto do body, fora do painel rolável. */
#host-global-bottom-nav[hidden]{
  display:none !important;
}

body.host-clean-shell #host-global-bottom-nav:not([hidden]){
  display:grid !important;
  position:fixed !important;
  left:50% !important;
  right:auto !important;
  bottom:calc(var(--boa-luz-visual-bottom, 0px) + max(8px, env(safe-area-inset-bottom))) !important;
  transform:translateX(-50%) !important;
  z-index:2147483640 !important;
  width:min(560px, calc(100% - 20px)) !important;
  height:72px !important;
  margin:0 !important;
  border:1px solid #dfe4df !important;
  border-radius:22px !important;
  background:rgba(255,255,255,.98) !important;
  box-shadow:0 14px 38px rgba(22,55,44,.20) !important;
  overflow:visible !important;
  isolation:isolate;
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}

body.host-clean-shell #host-global-bottom-nav a{
  min-width:0;
  min-height:70px;
}

body.host-clean-shell #host-global-bottom-nav .host-icon{
  width:24px;
  height:24px;
  object-fit:contain;
  display:block;
}

body.host-clean-shell #host-global-bottom-nav .publish .host-icon{
  width:48px;
  height:48px;
  margin-top:-20px;
  padding:9px;
  border-radius:50%;
  background:#0f5e47;
  box-shadow:0 9px 20px rgba(15,94,71,.30);
}

@media(max-width:679px){
  body.host-clean-shell #host-global-bottom-nav:not([hidden]){
    width:calc(100% - 20px) !important;
  }
  body.host-clean-shell #host-panel{
    padding-bottom:150px !important;
  }
}

@media(min-width:680px){
  body.host-clean-shell #host-global-bottom-nav:not([hidden]){
    width:min(650px,calc(100% - 40px)) !important;
    bottom:calc(var(--boa-luz-visual-bottom, 0px) + 12px) !important;
  }
}

@media(min-width:960px){
  body.host-clean-shell #host-global-bottom-nav:not([hidden]){
    width:min(650px,calc(100% - 48px)) !important;
  }
  body.host-clean-shell #host-panel{
    padding-bottom:155px !important;
  }
}
