/* Canal do Cidadão — camada de navegação mobile tipo aplicativo.
   Só entra em ação quando citizen-mobile-app.js identifica uma conta Cidadão no mobile. */

body.mobile-citizen-mode.citizen-mobile-app .portal-main{
  padding-top:12px !important;
}

body.mobile-citizen-mode.citizen-mobile-app .portal-hero{
  padding:18px 18px 17px !important;
  gap:12px !important;
  border:0 !important;
  border-radius:20px !important;
  background:linear-gradient(145deg,var(--citizen-ui-surface, #f4fbfc) 0%,var(--citizen-ui-surface, #edf7f5) 100%) !important;
  box-shadow:none !important;
}

body.mobile-citizen-mode.citizen-mobile-app .portal-eyebrow{
  font-size:clamp(16px,2.15vw,20px) !important;
  letter-spacing:.09em !important;
}

body.mobile-citizen-mode.citizen-mobile-app .portal-hero h2{
  margin:7px 0 8px !important;
  font-size:clamp(34px,4.9vw,45px) !important;
  line-height:1.08 !important;
}

body.mobile-citizen-mode.citizen-mobile-app .portal-hero p{
  margin:0 !important;
  font-size:clamp(20px,2.7vw,26px) !important;
  line-height:1.46 !important;
}

body.mobile-citizen-mode.citizen-mobile-app .citizen-hero-status{
  margin-top:2px !important;
  gap:8px !important;
}

body.mobile-citizen-mode.citizen-mobile-app .level-mini-badge,
body.mobile-citizen-mode.citizen-mobile-app .privacy-chip{
  min-height:40px !important;
  padding:8px 12px !important;
  font-size:clamp(16px,2.05vw,19px) !important;
}

body.mobile-citizen-mode.citizen-mobile-app .citizen-actions{
  margin:12px 0 14px !important;
}

body.mobile-citizen-mode.citizen-mobile-app #openNewManifestation{
  min-height:94px !important;
  padding:17px 18px !important;
  border-radius:20px !important;
  box-shadow:0 8px 18px rgba(9,91,111,.14) !important;
}

body.mobile-citizen-mode.citizen-mobile-app #openNewManifestation .icon{
  width:62px !important;
  height:62px !important;
  flex:0 0 62px !important;
  border-radius:17px !important;
}

body.mobile-citizen-mode.citizen-mobile-app #openNewManifestation strong{
  font-size:clamp(27px,3.6vw,34px) !important;
}

body.mobile-citizen-mode.citizen-mobile-app #openNewManifestation > span:not(.icon){
  font-size:clamp(18px,2.35vw,22px) !important;
}

/* Navegação principal entre as duas áreas do cidadão. */
body.mobile-citizen-mode.citizen-mobile-app .citizen-mobile-tabs{
  width:100%;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:4px 0 12px;
  padding:6px;
  border:1px solid var(--citizen-ui-green-line, #d7e3e9);
  border-radius:18px;
  background:var(--citizen-ui-surface, #eaf1f5);
}

body.mobile-citizen-mode.citizen-mobile-app .citizen-mobile-tab{
  min-height:62px;
  padding:10px 12px;
  border:0;
  border-radius:14px;
  background:transparent;
  color:var(--citizen-ui-text, #48677c);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font:inherit;
  font-size:clamp(20px,2.75vw,25px);
  font-weight:850;
  line-height:1.15;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

body.mobile-citizen-mode.citizen-mobile-app .citizen-mobile-tab[aria-selected="true"]{
  color:var(--citizen-ui-text, #123f61);
  background:var(--citizen-ui-surface, #fff);
  box-shadow:0 3px 10px rgba(28,61,85,.10);
}

body.mobile-citizen-mode.citizen-mobile-app .citizen-mobile-tab-count{
  min-width:29px;
  height:29px;
  padding:0 8px;
  border-radius:999px;
  display:inline-grid;
  place-items:center;
  background:var(--citizen-ui-blue, #dbe8ef);
  color:var(--citizen-ui-text, #315d77);
  font-size:16px;
  font-weight:900;
}

body.mobile-citizen-mode.citizen-mobile-app .citizen-mobile-tab[aria-selected="true"] .citizen-mobile-tab-count{
  background:var(--citizen-ui-blue, #d9edf5);
  color:var(--citizen-ui-text, #155e7a);
}

body.mobile-citizen-mode.citizen-mobile-app .citizen-mobile-tab-count.unread{
  background:#b93d50 !important;
  color:#fff !important;
}

body.mobile-citizen-mode.citizen-mobile-app .citizen-grid{
  display:block !important;
  margin-top:0 !important;
}

body.mobile-citizen-mode.citizen-mobile-app[data-citizen-tab="manifestations"] #notificationsCard,
body.mobile-citizen-mode.citizen-mobile-app[data-citizen-tab="notifications"] #manifestationsCard{
  display:none !important;
}

body.mobile-citizen-mode.citizen-mobile-app .citizen-card{
  border:1px solid var(--citizen-ui-green-line, #d7e3e9) !important;
  border-radius:19px !important;
  background:var(--citizen-ui-surface, #fff) !important;
  box-shadow:0 7px 18px rgba(21,53,80,.06) !important;
}

/* A aba já identifica a seção; o cabeçalho vira somente uma barra de ações. */
body.mobile-citizen-mode.citizen-mobile-app .citizen-card-head{
  min-height:58px !important;
  padding:10px 12px !important;
  justify-content:flex-end !important;
  border:0 !important;
  background:var(--citizen-ui-surface, #fff) !important;
}

body.mobile-citizen-mode.citizen-mobile-app .citizen-card-head h2{
  display:none !important;
}

body.mobile-citizen-mode.citizen-mobile-app .citizen-card-head .portal-button{
  min-height:46px !important;
  padding:9px 14px !important;
  border-radius:13px !important;
  font-size:clamp(17px,2.2vw,20px) !important;
  font-weight:800 !important;
}

body.mobile-citizen-mode.citizen-mobile-app .citizen-card-body{
  padding:0 12px 13px !important;
}

body.mobile-citizen-mode.citizen-mobile-app .manifestation-list,
body.mobile-citizen-mode.citizen-mobile-app .notification-list{
  padding:0 !important;
  gap:11px !important;
}

/* Estados de carregamento: tamanho reforçado para baixa visão. */
body.mobile-citizen-mode.citizen-mobile-app #manifestationList > .portal-note.info,
body.mobile-citizen-mode.citizen-mobile-app #notificationList > .portal-note.info,
body.mobile-citizen-mode #manifestationList > .portal-note.info,
body.mobile-citizen-mode #notificationList > .portal-note.info{
  min-height:96px !important;
  margin:0 !important;
  padding:24px 24px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  border-radius:17px !important;
  border-width:2px !important;
  font-size:clamp(28px,4vw,32px) !important;
  font-weight:850 !important;
  line-height:1.25 !important;
  color:var(--citizen-ui-text, #234d67) !important;
  letter-spacing:-.01em !important;
}

body.mobile-citizen-mode.citizen-mobile-app .manifestation-item,
body.mobile-citizen-mode.citizen-mobile-app .notification{
  padding:17px !important;
  border-radius:16px !important;
  border:1px solid var(--citizen-ui-green-line, #dce6ec) !important;
  background:var(--citizen-ui-surface, #f8fbfc) !important;
}

body.mobile-citizen-mode.citizen-mobile-app .manifestation-item strong,
body.mobile-citizen-mode.citizen-mobile-app .notification strong{
  font-size:clamp(21px,2.8vw,26px) !important;
  line-height:1.28 !important;
}

body.mobile-citizen-mode.citizen-mobile-app .manifestation-item small,
body.mobile-citizen-mode.citizen-mobile-app .notification small{
  margin-top:5px !important;
  font-size:clamp(17px,2.25vw,21px) !important;
  line-height:1.38 !important;
}

body.mobile-citizen-mode.citizen-mobile-app .status-chip{
  padding:8px 12px !important;
  font-size:clamp(16px,2.1vw,20px) !important;
}

body.mobile-citizen-mode.citizen-mobile-app .empty-state{
  padding:26px 16px 30px !important;
}

/* Conta Cidadão: cabeçalho em uma única linha.
   Identidade do Canal à esquerda; foto + nome + sair à direita. */
body.mobile-citizen-mode.citizen-mobile-app.citizen-primary-mobile:not(.shared-mobile-header) .portal-topbar-inner{
  width:100% !important;
  min-height:0 !important;
  padding:12px 14px !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:space-between !important;
  flex-wrap:nowrap !important;
  gap:12px !important;
}

body.mobile-citizen-mode.citizen-mobile-app.citizen-primary-mobile:not(.shared-mobile-header) .portal-brand{
  flex:1 1 auto !important;
  width:auto !important;
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}

body.mobile-citizen-mode.citizen-mobile-app.citizen-primary-mobile:not(.shared-mobile-header) .portal-brand img{
  width:54px !important;
  height:54px !important;
  flex:0 0 54px !important;
  border-radius:14px !important;
}

body.mobile-citizen-mode.citizen-mobile-app.citizen-primary-mobile:not(.shared-mobile-header) .portal-brand > div{
  min-width:0 !important;
}

body.mobile-citizen-mode.citizen-mobile-app.citizen-primary-mobile:not(.shared-mobile-header) .portal-brand h1{
  margin:0 !important;
  font-size:clamp(23px,3.25vw,30px) !important;
  line-height:1.08 !important;
  white-space:nowrap !important;
}

/* Para realmente manter o cabeçalho em uma linha, o subtítulo fica fora desta faixa no cidadão comum. */
body.mobile-citizen-mode.citizen-mobile-app.citizen-primary-mobile:not(.shared-mobile-header) .portal-brand p{
  display:none !important;
}

body.mobile-citizen-mode.citizen-mobile-app.citizen-primary-mobile:not(.shared-mobile-header) .portal-user{
  flex:0 1 auto !important;
  width:auto !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:9px !important;
}

body.mobile-citizen-mode.citizen-mobile-app.citizen-primary-mobile:not(.shared-mobile-header) #professionalHomeLink{
  display:none !important;
}

body.mobile-citizen-mode.citizen-mobile-app.citizen-primary-mobile:not(.shared-mobile-header) .portal-account-area{
  flex:0 1 auto !important;
  min-width:0 !important;
  max-width:245px !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  padding:4px 5px !important;
  border-radius:14px !important;
}

body.mobile-citizen-mode.citizen-mobile-app.citizen-primary-mobile:not(.shared-mobile-header) .portal-profile-avatar{
  width:44px !important;
  height:44px !important;
  flex:0 0 44px !important;
  border-width:2px !important;
}

body.mobile-citizen-mode.citizen-mobile-app.citizen-primary-mobile:not(.shared-mobile-header) .portal-user-meta{
  flex:0 1 auto !important;
  min-width:0 !important;
  text-align:left !important;
}

body.mobile-citizen-mode.citizen-mobile-app.citizen-primary-mobile:not(.shared-mobile-header) .portal-user-meta strong{
  display:block !important;
  max-width:170px !important;
  margin:0 !important;
  font-size:clamp(18px,2.45vw,23px) !important;
  line-height:1.1 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

body.mobile-citizen-mode.citizen-mobile-app.citizen-primary-mobile:not(.shared-mobile-header) .portal-user-meta span{
  display:none !important;
}

body.mobile-citizen-mode.citizen-mobile-app.citizen-primary-mobile:not(.shared-mobile-header) #portalLogout{
  flex:0 0 auto !important;
  min-height:48px !important;
  padding:9px 14px !important;
  border-radius:13px !important;
  font-size:clamp(17px,2.2vw,20px) !important;
  font-weight:800 !important;
}

@media(max-width:390px){
  body.mobile-citizen-mode.citizen-mobile-app .citizen-mobile-tab{
    min-height:58px;
    padding:9px 8px;
    font-size:19px;
  }

  body.mobile-citizen-mode.citizen-mobile-app .citizen-mobile-tab-count{
    min-width:26px;
    height:26px;
    font-size:14px;
  }

  body.mobile-citizen-mode.citizen-mobile-app.citizen-primary-mobile:not(.shared-mobile-header) .portal-topbar-inner{
    padding-left:10px !important;
    padding-right:10px !important;
    gap:7px !important;
  }

  body.mobile-citizen-mode.citizen-mobile-app.citizen-primary-mobile:not(.shared-mobile-header) .portal-brand{
    gap:7px !important;
  }

  body.mobile-citizen-mode.citizen-mobile-app.citizen-primary-mobile:not(.shared-mobile-header) .portal-brand img{
    width:44px !important;
    height:44px !important;
    flex-basis:44px !important;
  }

  body.mobile-citizen-mode.citizen-mobile-app.citizen-primary-mobile:not(.shared-mobile-header) .portal-brand h1{
    font-size:20px !important;
  }

  body.mobile-citizen-mode.citizen-mobile-app.citizen-primary-mobile:not(.shared-mobile-header) .portal-profile-avatar{
    width:38px !important;
    height:38px !important;
    flex-basis:38px !important;
  }

  body.mobile-citizen-mode.citizen-mobile-app.citizen-primary-mobile:not(.shared-mobile-header) .portal-user-meta strong{
    max-width:92px !important;
    font-size:16px !important;
  }

  body.mobile-citizen-mode.citizen-mobile-app.citizen-primary-mobile:not(.shared-mobile-header) #portalLogout{
    min-height:44px !important;
    padding:8px 10px !important;
    font-size:16px !important;
  }
}
