/* HN — ajustes de tela estreita do leitor (13/11/2026, card 15).
   Arquivo próprio, carregado depois de hn-leitor.css pelo footer.html, para
   corrigir a lista sem publicar o restante do redesign local ainda não
   aprovado. Conferido no Roundcube real em 1280, 1000, 820 e 375 px. */

/* A lista é tabela de verdade: ocupa a largura inteira do painel. */
body.hn-leitor:not(.task-login) #layout #messagelist{display:table!important;width:100%!important}

/* Cartão: cantos redondos dos dois lados e respiro igual. A coluna de
   bandeiras é posicionada por cima, então o assunto é a única célula. */
body.hn-leitor:not(.task-login) #layout #messagelist td.subject{border-radius:18px!important;padding:16px 18px!important}

/* Não lida já aparece em negrito; a bolinha do Elastic só desalinhava. */
body.hn-leitor:not(.task-login) #layout #messagelist td.subject span.msgicon.status{display:none!important}

/* Remetente não encosta na data; data e clipe na mesma margem direita. */
body.hn-leitor:not(.task-login) #layout #messagelist td.subject>.fromto{max-width:calc(100% - 92px)!important}
body.hn-leitor:not(.task-login) #layout #messagelist td.subject>.date{right:18px!important;top:16px!important;line-height:19px!important}

/* Clipe e bandeira: na linha do assunto, à direita, inteiros. */
body.hn-leitor:not(.task-login) #layout #messagelist td.flags{position:absolute!important;top:40px!important;bottom:auto!important;right:16px!important;width:auto!important;height:19px!important;padding:0!important;display:flex!important;align-items:center;gap:4px;background:transparent!important;border-radius:0!important}
body.hn-leitor:not(.task-login) #layout #messagelist td.flags>span{width:18px!important;height:19px!important;display:inline-flex!important;align-items:center;justify-content:center;margin:0!important;overflow:visible!important}
body.hn-leitor:not(.task-login) #layout #messagelist td.flags span.attachment>span{width:auto!important;height:auto!important;overflow:visible!important;line-height:1!important;display:inline-flex!important}
body.hn-leitor:not(.task-login) #layout #messagelist td.flags span.attachment>span:before{font-size:15px!important;line-height:1!important;width:16px!important;height:16px!important;margin:0!important}
body.hn-leitor:not(.task-login) #layout #messagelist td.flags>span.attachment:empty,
body.hn-leitor:not(.task-login) #layout #messagelist tr:not(.flagged):not(:hover) td.flags>span.flag{display:none!important}
body.hn-leitor:not(.task-login) #layout #messagelist td.subject>span.subject{padding-right:30px!important;box-sizing:border-box!important}

/* Pastas: contador ao lado do nome, nunca por cima. A coluna de pastas tem
   232 px para caber "Caixa de entrada" com o contador. */
body.hn-leitor:not(.task-login) #layout #mailboxlist li>a{white-space:nowrap!important;padding-right:10px!important;gap:10px!important}
body.hn-leitor:not(.task-login) #layout #mailboxlist li>a>.unreadcount{position:static!important;margin-left:auto!important;flex:0 0 auto!important;transform:none!important}
@media(min-width:1100px){body.hn-leitor.task-mail:not(.task-login):not(.action-compose) #layout{grid-template-columns:56px 232px 360px minmax(0,1fr)!important}}
@media(min-width:769px) and (max-width:1099px){body.hn-leitor.task-mail:not(.task-login):not(.action-compose) #layout{grid-template-columns:48px 232px minmax(0,1fr)!important}}

/* Paginação: botões do mesmo tamanho, contagem legível, sem campo inútil. */
body.hn-leitor:not(.task-login) #layout #layout-list>.footer{gap:2px!important;padding:6px 12px!important}
body.hn-leitor:not(.task-login) #layout #layout-list>.footer .pagenav-text{flex:1 1 auto!important;text-align:center;font:500 11px/1.4 Urbanist,sans-serif!important;color:var(--hn-secundario)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.hn-leitor:not(.task-login) #layout #layout-list>.footer .rcpagejumper{width:36px!important;height:32px!important;min-height:32px!important;padding:0!important;text-align:center;font:600 12px/1 Urbanist,sans-serif!important;border-radius:999px!important}
body.hn-leitor:not(.task-login) #layout #layout-list>.footer .rcpagejumper:disabled{display:none!important}
body.hn-leitor:not(.task-login) #layout #layout-list>.footer a.disabled{opacity:.35}

/* Celular: topo sem texto vazando e título com espaço. */
@media(max-width:768px){
body.hn-leitor:not(.task-login) #layout .header a.back-sidebar-button .inner{display:none!important}
body.hn-leitor:not(.task-login) #layout .header a.back-sidebar-button{width:32px!important;min-width:32px!important;max-width:32px!important;padding:0!important;overflow:hidden}
body.hn-leitor:not(.task-login) #layout #layout-list>.header,body.hn-leitor:not(.task-login) #layout #layout-content>.header{padding-right:52px!important;gap:0!important}
body.hn-leitor:not(.task-login) #layout .header .header-title{flex:1 1 auto!important;min-width:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.hn-leitor:not(.task-login) #layout .header a.button.icon,body.hn-leitor:not(.task-login) #layout .header .toolbar a{width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important}
body.hn-leitor:not(.task-login) #layout .header .toolbar,body.hn-leitor:not(.task-login) #layout .header .buttons{gap:0!important;margin:0!important}
body.hn-leitor:not(.task-login) #hn-tema{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;right:16px!important}
}

/* Compositor (13/11/2026): barra à esquerda, rótulos numa coluna de 72 px,
   campos com a mesma altura, destinatário como etiqueta curta, área de anexo
   compacta e opções com interruptor alinhado à direita. */
@media(min-width:769px){
body.hn-leitor.action-compose:not(.task-login) #layout #layout-content>.header{justify-content:flex-start!important;padding:0 24px!important}
body.hn-leitor.action-compose:not(.task-login) #layout #layout-content>.header .toolbar{gap:4px!important;margin:0!important;position:static!important}
}
body.hn-leitor.action-compose:not(.task-login) #layout #compose-headers .form-group.row:not(.hidden){display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;align-items:center!important;margin:0 0 12px!important}
body.hn-leitor.action-compose:not(.task-login) #layout #compose-headers .form-group.row>label{max-width:none!important;flex:none!important;width:auto!important;padding:0!important;margin:0!important;font:600 12px/1.4 Urbanist,sans-serif!important;color:var(--hn-secundario)!important}
body.hn-leitor.action-compose:not(.task-login) #layout #compose-headers .form-group.row>div{max-width:100%!important;flex:none!important;width:100%!important;padding:0!important}
body.hn-leitor.action-compose:not(.task-login) #layout #compose-headers .input-group{flex-wrap:nowrap!important;gap:6px;align-items:center}
body.hn-leitor.action-compose:not(.task-login) #layout #compose-headers ul.recipient-input{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:6px!important;min-height:42px!important;height:auto!important;max-height:none;padding:6px 12px!important}
body.hn-leitor.action-compose:not(.task-login) #layout #compose-headers ul.recipient-input li.recipient{display:inline-flex!important;align-items:center!important;gap:6px!important;height:28px!important;max-width:100%!important;margin:0!important;padding:0 6px 0 12px!important;border-radius:999px!important;font:500 12px/1 Urbanist,sans-serif!important;white-space:nowrap!important;overflow:hidden!important}
body.hn-leitor.action-compose:not(.task-login) #layout #compose-headers ul.recipient-input li.recipient .email{overflow:hidden;text-overflow:ellipsis;min-width:0}
body.hn-leitor.action-compose:not(.task-login) #layout #compose-headers ul.recipient-input li.recipient a.remove{position:static!important;flex:none!important;width:18px!important;height:18px!important;margin:0!important;display:inline-flex!important;align-items:center;justify-content:center}
body.hn-leitor.action-compose:not(.task-login) #layout #compose-headers ul.recipient-input li.input{flex:1 1 40px!important;min-width:40px!important}
body.hn-leitor.action-compose:not(.task-login) #layout #compose-headers ul.recipient-input li.input,body.hn-leitor.action-compose:not(.task-login) #layout #compose-headers ul.recipient-input li.input input{height:28px!important;min-height:28px!important;line-height:28px!important;padding:0!important;margin:0!important;border:0!important}
body.hn-leitor.action-compose:not(.task-login) #layout #layout-sidebar #compose-attachments{height:auto!important;min-height:0!important;background-image:none!important;padding:16px!important;margin:0 0 16px!important}
body.hn-leitor.action-compose:not(.task-login) #layout #layout-sidebar #compose-attachments:before,body.hn-leitor.action-compose:not(.task-login) #layout #layout-sidebar #compose-attachments:after{display:none!important;content:none!important}
body.hn-leitor.action-compose:not(.task-login) #layout #layout-sidebar #compose-attachments .upload-form{display:flex!important;flex-direction:column;align-items:center;gap:10px;padding:0!important;height:auto!important}
body.hn-leitor.action-compose:not(.task-login) #layout #layout-sidebar #compose-attachments .hint{text-align:center!important;padding:0 8px!important;width:100%}
body.hn-leitor.action-compose:not(.task-login) #layout #layout-sidebar #attachment-list{margin:12px 0 0!important;padding:0!important;display:flex;flex-direction:column;gap:6px}
body.hn-leitor.action-compose:not(.task-login) #layout #layout-sidebar #attachment-list li{display:flex!important;align-items:center!important;gap:8px;height:40px;padding:0 8px 0 14px!important;margin:0!important;border-radius:999px!important}
body.hn-leitor.action-compose:not(.task-login) #layout #layout-sidebar #attachment-list li a.filename{flex:1 1 auto;min-width:0;display:flex!important;align-items:center;gap:6px;overflow:hidden}
body.hn-leitor.action-compose:not(.task-login) #layout #layout-sidebar #attachment-list li .attachment-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.hn-leitor.action-compose:not(.task-login) #layout #layout-sidebar #attachment-list li a.dropdown{display:none!important}
body.hn-leitor.action-compose:not(.task-login) #layout #layout-sidebar #attachment-list li a.delete{position:static!important;flex:none;width:32px!important;height:32px!important;display:inline-flex!important;align-items:center;justify-content:center;margin:0!important}
body.hn-leitor.action-compose:not(.task-login) #layout #layout-sidebar #compose-options .form-group.row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px;margin:0 0 14px!important;padding:0!important}
body.hn-leitor.action-compose:not(.task-login) #layout #layout-sidebar #compose-options .form-group.row>label{max-width:none!important;width:auto!important;flex:none!important;padding:0!important;margin:0!important;font:500 13px/1.35 Urbanist,sans-serif!important}
body.hn-leitor.action-compose:not(.task-login) #layout #layout-sidebar #compose-options .form-group.row>div{max-width:none!important;width:auto!important;flex:none!important;padding:0!important;margin:0!important;display:flex;justify-content:flex-end}
body.hn-leitor.action-compose:not(.task-login) #layout #layout-sidebar #compose-options .form-group.row select{width:140px!important}
body.hn-leitor.action-compose:not(.task-login) #layout #layout-sidebar #compose-options .custom-switch{padding-left:2.25rem!important;min-height:0!important;margin:0!important}
@media(max-width:768px){
body.hn-leitor.action-compose:not(.task-login) #layout #compose-headers .form-group.row:not(.hidden){grid-template-columns:56px minmax(0,1fr)!important}
body.hn-leitor.action-compose:not(.task-login) #layout #compose-headers ul.recipient-input li.recipient{max-width:calc(100% - 46px)!important}
body.hn-leitor.action-compose:not(.task-login) #layout #layout-content>.footer{justify-content:space-between!important}
body.hn-leitor.action-compose:not(.task-login) #layout #layout-content>.footer a.button{width:auto!important;max-width:none!important;min-width:0!important;padding:0 10px!important;gap:6px;font:500 12px/1 Urbanist,sans-serif!important;white-space:nowrap}
}

/* Contatos e Configurações (13/11/2026, card 13). */
/* Cabeçalho da lista: título inteiro; a barra ocupa só o que usa. */
body.hn-leitor:not(.task-login) #layout #layout-list>.header ul.toolbar{width:auto!important;min-width:0!important;max-width:none!important;flex:0 0 auto!important}
body.hn-leitor:not(.task-login) #layout #layout-list>.header .header-title{flex:1 1 auto!important;min-width:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Com a lista visível ao lado, a seta de voltar à lista não faz nada. */
@media(min-width:769px){body.hn-leitor.task-addressbook:not(.task-login) #layout #layout-content>.header a.back-list-button,body.hn-leitor.task-settings:not(.task-login) #layout #layout-content>.header a.back-list-button{display:none!important}}

/* Formulários dentro do quadro (contato e preferências): respiro igual. */
body.hn-leitor.formcontainer form.formcontent,body.hn-leitor.formcontainer>.formcontent{padding:24px 28px 88px!important}
body.hn-leitor.formcontainer>.formbuttons,body.hn-leitor.formcontainer .formbuttons{padding-left:28px!important;padding-right:28px!important}
/* Contato: tipo, valor e excluir separados, com a mesma altura. */
body.hn-leitor.formcontainer #contacttabs .row.input-group{flex-wrap:nowrap!important;gap:8px!important;align-items:center!important;margin-left:0!important;margin-right:0!important}
body.hn-leitor.formcontainer #contacttabs .row.input-group>select{flex:0 0 140px!important;max-width:140px!important;border-radius:999px!important}
body.hn-leitor.formcontainer #contacttabs .row.input-group>input,body.hn-leitor.formcontainer #contacttabs .row.input-group>textarea{flex:1 1 auto!important;border-radius:999px!important;margin:0!important}
body.hn-leitor.formcontainer #contacttabs .row.input-group>.input-group-append{margin:0!important;flex:none}
body.hn-leitor.formcontainer #contacthead .row.form-group{align-items:center!important;margin:0 0 10px!important}
/* Preferências: rótulo e campo na mesma linha, centralizados, sem hifenizar. */
body.hn-leitor.formcontainer .propform tr.form-group{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:16px;margin:0 0 12px!important}
body.hn-leitor.formcontainer .propform tr.form-group>td{padding:0!important;display:block;flex:1 1 50%!important;max-width:none!important;width:auto!important;min-width:0!important}
body.hn-leitor.formcontainer .propform td.title label{padding:0!important;margin:0!important;hyphens:none!important;-webkit-hyphens:none!important;line-height:1.35!important}
@media(max-width:480px){body.hn-leitor.formcontainer form.formcontent,body.hn-leitor.formcontainer>.formcontent{padding:16px 16px 88px!important}body.hn-leitor.formcontainer .propform tr.form-group{flex-wrap:wrap!important;gap:6px}body.hn-leitor.formcontainer .propform tr.form-group>td{flex:1 1 100%!important}}

/* Formulário de contato (13/11/2026): cabeçalho de identidade com foto
   redonda e nome como título; campos agrupados em listas, uma por tipo. */
html.iframe body.hn-leitor.task-addressbook.formcontainer{background:var(--hn-painel)!important}
body.hn-leitor.task-addressbook.formcontainer form#contact-details{max-width:640px;margin:0 auto!important;padding:28px 28px 96px!important}

/* Identidade */
body.hn-leitor.task-addressbook.formcontainer .contact-header{display:grid!important;grid-template-columns:88px minmax(0,1fr)!important;gap:20px!important;align-items:start!important;margin:0 0 24px!important}
body.hn-leitor.task-addressbook.formcontainer #contactphoto{margin:0!important;padding:0!important;width:88px!important}
body.hn-leitor.task-addressbook.formcontainer #contactpic{width:88px!important;height:88px!important;border-radius:50%!important;overflow:hidden!important;background:var(--hn-superficie)!important;border:1px solid var(--hn-linha)!important;margin:0!important;position:relative}
body.hn-leitor.task-addressbook.formcontainer #contactpic img{width:100%!important;height:100%!important;object-fit:cover;opacity:.55}
body.hn-leitor.task-addressbook.formcontainer #contactpic:hover{border-style:dashed!important;border-color:var(--hn-icone)!important}
body.hn-leitor.task-addressbook.formcontainer #contacthead{margin:0!important;padding:0!important;min-width:0}
body.hn-leitor.task-addressbook.formcontainer #contacthead>legend{display:none!important}
body.hn-leitor.task-addressbook.formcontainer #contacthead .source.form-group{display:block!important;margin:0 0 10px!important}
body.hn-leitor.task-addressbook.formcontainer #contacthead .source label{display:none!important}
body.hn-leitor.task-addressbook.formcontainer #contacthead .source>div{padding:0!important;max-width:none!important;flex:none!important;width:auto!important;font:500 12px/1.4 Urbanist,sans-serif!important;color:var(--hn-suave)!important;min-height:0!important}
body.hn-leitor.task-addressbook.formcontainer #contacthead .names{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px 16px!important}
body.hn-leitor.task-addressbook.formcontainer #contacthead .row.form-group:not(.source){display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:2px;margin:0!important}
body.hn-leitor.task-addressbook.formcontainer #contacthead .row.form-group[style*="none"]{display:none!important}
body.hn-leitor.task-addressbook.formcontainer #contacthead .row.form-group:not(.source)>label{order:1;max-width:none!important;flex:none!important;width:auto!important;padding:0 2px!important;margin:0!important;font:500 11px/1.4 Urbanist,sans-serif!important;color:var(--hn-suave)!important}
body.hn-leitor.task-addressbook.formcontainer #contacthead .row.form-group:not(.source)>div{order:2;max-width:none!important;flex:none!important;width:100%!important;padding:0!important}
body.hn-leitor.task-addressbook.formcontainer #contacthead .names input.form-control{height:44px!important;padding:0 2px!important;border:0!important;border-bottom:1.5px solid var(--hn-linha)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font:600 20px/1.2 Urbanist,sans-serif!important;color:var(--hn-texto)!important}
body.hn-leitor.task-addressbook.formcontainer #contacthead .names input.form-control:focus{border-bottom-color:var(--hn-texto)!important;outline:0}
body.hn-leitor.task-addressbook.formcontainer #contacthead .row.form-group:not(.source):not(.names *) input.form-control{height:40px!important;border-radius:999px!important}
body.hn-leitor.task-addressbook.formcontainer #contacthead p.addfield{margin:14px 0 0!important}
body.hn-leitor.task-addressbook.formcontainer select.addfieldmenu{width:auto!important;min-width:0!important;height:34px!important;padding:0 32px 0 14px!important;border-radius:999px!important;border:1px dashed var(--hn-linha)!important;background-color:transparent!important;font:600 12px/1 Urbanist,sans-serif!important;color:var(--hn-secundario)!important}

/* Abas como controle segmentado */
body.hn-leitor.task-addressbook.formcontainer form#contact-details>ul.nav-tabs{display:inline-flex!important;gap:2px!important;padding:3px!important;margin:0 0 20px!important;border:0!important;border-radius:999px!important;background:var(--hn-superficie)!important}
body.hn-leitor.task-addressbook.formcontainer form#contact-details>ul.nav-tabs .nav-link{border:0!important;border-radius:999px!important;padding:7px 16px!important;margin:0!important;font:600 12px/1.2 Urbanist,sans-serif!important;color:var(--hn-suave)!important;background:transparent!important}
body.hn-leitor.task-addressbook.formcontainer form#contact-details>ul.nav-tabs .nav-link.active{background:var(--hn-painel)!important;color:var(--hn-texto)!important;box-shadow:0 1px 2px rgba(32,42,61,.12)!important}

/* Grupos: título fora, linhas dentro de um bloco único */
body.hn-leitor.task-addressbook.formcontainer #contacttabs fieldset.contactfieldgroup{margin:0 0 20px!important;padding:0!important;border:0!important}
body.hn-leitor.task-addressbook.formcontainer #contacttabs fieldset.contactfieldgroup>legend{float:none!important;width:auto!important;margin:0 0 8px!important;padding:0 2px!important;font:600 13px/1.3 Urbanist,sans-serif!important;color:var(--hn-texto)!important}
body.hn-leitor.task-addressbook.formcontainer #contacttabs fieldset.contactfieldgroup>.row{margin:0!important;padding:4px 6px 4px 4px!important;background:var(--hn-superficie)!important;border:1px solid var(--hn-linha)!important;border-radius:0!important;border-top-width:0!important}
body.hn-leitor.task-addressbook.formcontainer #contacttabs fieldset.contactfieldgroup>.row:first-of-type{border-top-width:1px!important;border-radius:16px 16px 0 0!important}
body.hn-leitor.task-addressbook.formcontainer #contacttabs fieldset.contactfieldgroup>.row:last-of-type{border-radius:0 0 16px 16px!important}
body.hn-leitor.task-addressbook.formcontainer #contacttabs fieldset.contactfieldgroup>.row:only-of-type{border-radius:16px!important}
body.hn-leitor.task-addressbook.formcontainer #contacttabs .row.input-group{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:4px!important}
body.hn-leitor.task-addressbook.formcontainer #contacttabs .row.input-group>select{flex:0 0 118px!important;max-width:118px!important;height:40px!important;border:0!important;border-right:1px solid var(--hn-linha)!important;border-radius:12px 0 0 12px!important;background-color:transparent!important;box-shadow:none!important;padding:0 26px 0 12px!important;font:600 12px/1 Urbanist,sans-serif!important;color:var(--hn-secundario)!important}
body.hn-leitor.task-addressbook.formcontainer #contacttabs .row.input-group>input,body.hn-leitor.task-addressbook.formcontainer #contacttabs .row.input-group>textarea{flex:1 1 auto!important;height:40px!important;border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;padding:0 10px!important;font:500 14px/1.3 Urbanist,sans-serif!important;color:var(--hn-texto)!important;margin:0!important}
body.hn-leitor.task-addressbook.formcontainer #contacttabs .row.input-group>input:focus{background:var(--hn-painel)!important;box-shadow:inset 0 0 0 1px var(--hn-linha)!important}
body.hn-leitor.task-addressbook.formcontainer #contacttabs .row.input-group>.input-group-append{flex:none!important;margin:0!important;align-self:center}
body.hn-leitor.task-addressbook.formcontainer #contacttabs a.deletebutton{width:32px!important;height:32px!important;border:0!important;border-radius:50%!important;background:transparent!important;display:inline-flex!important;align-items:center;justify-content:center;opacity:.55}
body.hn-leitor.task-addressbook.formcontainer #contacttabs a.deletebutton:hover,body.hn-leitor.task-addressbook.formcontainer #contacttabs a.deletebutton:focus-visible{opacity:1;background:var(--hn-painel)!important}

/* Endereço: tipo em cima, campos em grade */
body.hn-leitor.task-addressbook.formcontainer #contacttabs .row.composite.input-group{flex-wrap:wrap!important;padding:8px 6px 10px 4px!important}
body.hn-leitor.task-addressbook.formcontainer #contacttabs .row.composite>select{order:1;border-right:0!important}
body.hn-leitor.task-addressbook.formcontainer #contacttabs .row.composite>.input-group-append{order:2;margin-left:auto!important}
body.hn-leitor.task-addressbook.formcontainer #contacttabs .row.composite>.content{order:3;flex:1 1 100%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;padding:0 6px!important;margin:0!important;border:0!important;background:transparent!important;height:auto!important}
body.hn-leitor.task-addressbook.formcontainer #contacttabs .row.composite>.content>input{height:40px!important;border:1px solid var(--hn-linha)!important;border-radius:12px!important;background:var(--hn-painel)!important;padding:0 12px!important;font:500 14px/1.3 Urbanist,sans-serif!important;margin:0!important;width:100%!important}
body.hn-leitor.task-addressbook.formcontainer #contacttabs .row.composite>.content>input.ff_street{grid-column:1/-1}

/* Barra de salvar fixa, com fundo para não sobrepor os campos */
body.hn-leitor.task-addressbook.formcontainer .formbuttons{background:linear-gradient(to top,var(--hn-painel) 70%,transparent)!important;padding:14px 28px 18px!important}
@media(max-width:480px){body.hn-leitor.task-addressbook.formcontainer .contact-header{grid-template-columns:64px minmax(0,1fr)!important;gap:14px!important}body.hn-leitor.task-addressbook.formcontainer #contactpic,body.hn-leitor.task-addressbook.formcontainer #contactphoto{width:64px!important;height:64px!important}body.hn-leitor.task-addressbook.formcontainer #contacthead .names{grid-template-columns:1fr!important}}

/* Busca da lista de Contatos: afastada do cabeçalho; uma lupa só (Enter busca). */
body.hn-leitor.task-addressbook:not(.task-login) #layout #layout-list .searchbar{margin:14px 14px 14px!important}
body.hn-leitor:not(.task-login) #layout #layout-list .searchbar a.button.search{display:none!important}

/* Auditoria visual (13/11/2026, card 16). O hn-leitor.css publicado força
   display em todo botão de barra; isso desfazia o que o Roundcube esconde
   de propósito por tamanho de tela. Aqui o esconder volta a valer. */
html.layout-large body.hn-leitor #layout .header a.hidden-large,
html.layout-large body.hn-leitor #layout .header a.hidden-big,
html.layout-normal body.hn-leitor #layout .header a.hidden-big,
html.layout-large body.hn-leitor #layout .header a.hidden-lbs,
html.layout-normal body.hn-leitor #layout .header a.hidden-lbs,
html.layout-small body.hn-leitor #layout .header a.hidden-lbs,
html.layout-small body.hn-leitor #layout .header a.hidden-small,
html.layout-phone body.hn-leitor #layout .header a.hidden-small,
html.layout-phone body.hn-leitor #layout .header a.hidden-phone,
body.hn-leitor #layout .header .toolbar a.hidden,
body.hn-leitor #layout .header a.button.hidden{display:none!important}
/* Menu recolhido do celular só aparece dentro do balão, ao tocar no botão. */
body.hn-leitor #layout .header>ul.toolbar.popupmenu{display:none!important}
/* "Anterior/Próximo" só existem ao ler mensagem, nunca no compositor. */
body.hn-leitor #layout .footer.hide-nav-buttons a.button.prev,
body.hn-leitor #layout .footer.hide-nav-buttons a.button.next{display:none!important}

/* Botões só com ícone nas barras: todos 36 px redondos (o Elastic deixava
   38 px quadrados nas barras e 36 px redondos no resto). */
body.hn-leitor:not(.task-login) #layout #layout-list>.header .toolbar a,
body.hn-leitor:not(.task-login) #layout #layout-content>.header .toolbar a,
body.hn-leitor:not(.task-login) #layout #layout-sidebar>.header .toolbar a{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;border-radius:50%!important}
/* Seta de submenu (responder a todos, encaminhar, idioma, criptografia):
   colada no ícone, estreita, sem parecer um botão solto. */
body.hn-leitor:not(.task-login) #layout #layout-content>.header .toolbar a.dropdown{width:18px!important;min-width:18px!important;margin-left:-6px!important;border-radius:999px!important}
/* Responder continua em cápsula, com a mesma altura dos ícones. */
body.hn-leitor:not(.task-login) #layout #layout-content>.header .toolbar a.reply{width:auto!important;height:36px!important;border-radius:999px!important}

/* Paginação: quatro botões redondos de 32 px. */
body.hn-leitor:not(.task-login) #layout #layout-list>.footer a[class*=page]{flex:0 0 32px!important;max-width:32px!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;border-radius:50%!important;padding:0!important}

/* Botão de tema: anel de foco só pelo teclado, na cor do texto. */
#hn-tema:focus:not(:focus-visible){outline:0!important}
#hn-tema:focus-visible{outline:2px solid var(--hn-texto)!important;outline-offset:2px}

/* Compositor no computador: "Opções e anexos" não fica embaixo do botão
   de tema; Enviar com a mesma altura dos campos. */
@media(min-width:769px){
body.hn-leitor.action-compose:not(.task-login) #layout #layout-sidebar>.header{padding-right:64px!important;min-height:64px!important;height:64px!important;display:flex!important;align-items:center!important}
}
body.hn-leitor.action-compose:not(.task-login) #layout .formbuttons button.btn{height:42px!important;min-height:42px!important;padding-top:0!important;padding-bottom:0!important}

/* Celular: o botão de opções da lista ganha o ícone de ajustes (o mesmo do
   computador) para não repetir os três pontos do menu de ações. */
body.hn-leitor #layout a.button.icon.toolbar-list-button::before{mask:url(icones/sliders-horizontal.svg) center/1.05em 1.05em no-repeat!important;-webkit-mask:url(icones/sliders-horizontal.svg) center/1.05em 1.05em no-repeat!important}
@media(max-width:768px){
/* Tema centrado na altura do cabeçalho do painel. */
body.hn-leitor:not(.task-login) #hn-tema{top:25px!important}
/* O botão de escrever não cobre a última mensagem. */
body.hn-leitor.task-mail:not(.task-login) #layout #layout-list .scroller{padding-bottom:88px!important}
/* Título do compositor junto do menu, inteiro. */
body.hn-leitor.action-compose:not(.task-login) #layout #layout-content>.header .header-title{margin:0 8px!important}
}

/* Gaveta de menu do celular e modais: por cima do botão de tema; "Fechar" com o X
   na mesma linha; setas de submenu centradas, sem fundo cinza solto. */
body.hn-leitor:not(.task-login) #hn-tema{z-index:90!important}
body.hn-leitor .popover .popover-header a.button.icon.cancel{display:flex!important;align-items:center!important;gap:12px}
body.hn-leitor .popover .popover-header a.button.icon.cancel::before{margin:0!important}
body.hn-leitor .popover .popupmenu.listing li>a,body.hn-leitor .popover .popupmenu.listing .dropbutton>a{align-items:center!important}
body.hn-leitor .popover .popupmenu .dropbutton:not(.disabled){display:flex!important;align-items:center}
body.hn-leitor .popover .popupmenu .dropbutton a.dropdown{background:transparent!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:999px!important}
body.hn-leitor .popover .popupmenu .dropbutton a.dropdown:hover{background:var(--hn-elevado)!important}

/* Editor de texto do compositor: a barra segue o canto de 20 px da caixa,
   linha na cor do tema, sem filete sobrando nas laterais. */
body.hn-leitor #composebodycontainer{overflow:hidden!important}
body.hn-leitor #composebodycontainer>.editor-toolbar{margin:0!important;width:100%!important;left:0!important;right:0!important;top:0!important;border:0!important;border-bottom:1px solid var(--hn-linha)!important;border-radius:20px 20px 0 0!important;background:var(--hn-superficie)!important;box-sizing:border-box!important}
body.hn-leitor #composebodycontainer>textarea{border:0!important;border-radius:0 0 20px 20px!important;box-shadow:none!important}

/* Lista de opções (Prioridade, Salvar em, Idioma...): itens do tamanho da
   caixa, sem filete no último, selecionado por fundo e não por borda. */
body.hn-leitor .popover.select-menu{padding:6px!important;overflow:hidden}
body.hn-leitor .popover.select-menu ul.listing li{border:0!important;border-radius:0!important;margin:0!important;box-shadow:none!important}
body.hn-leitor .popover.select-menu ul.listing li a{display:flex!important;align-items:center!important;width:100%!important;height:38px!important;margin:0!important;padding:0 12px 0 8px!important;border:0!important;border-radius:10px!important;box-shadow:none!important;outline:0!important;box-sizing:border-box!important}
body.hn-leitor .popover.select-menu ul.listing li a::before{flex:0 0 20px;margin:0 6px 0 0!important}
body.hn-leitor .popover.select-menu ul.listing li a:hover,body.hn-leitor .popover.select-menu ul.listing li a:focus{background:var(--hn-elevado)!important}
body.hn-leitor .popover.select-menu ul.listing li a.selected{background:var(--hn-selecao)!important;font-weight:600}

/* Modais (confirmar, descartar, mover...): X redondo de 36 px centrado no
   cabeçalho, botões alinhados à margem do texto, sem alça de redimensionar
   e sem anel de foco duplo ao abrir com o mouse. */
body.hn-leitor .ui-dialog .ui-dialog-titlebar{display:flex!important;align-items:center!important;min-height:60px!important;padding:0 12px 0 20px!important}
body.hn-leitor .ui-dialog .ui-dialog-title{padding:0 48px 0 0!important;line-height:1.3!important}
body.hn-leitor .ui-dialog .ui-dialog-titlebar-close{position:absolute!important;top:12px!important;right:12px!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;max-height:36px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;background:transparent!important;box-shadow:none!important}
body.hn-leitor .ui-dialog .ui-dialog-titlebar-close:hover{background:var(--hn-elevado)!important}
body.hn-leitor .ui-dialog .ui-dialog-content{padding:18px 20px 6px!important}
body.hn-leitor .ui-dialog .ui-dialog-buttonpane{height:auto!important;min-height:0!important;padding:12px 20px 20px!important;margin:0!important;border:0!important}
body.hn-leitor .ui-dialog .ui-dialog-buttonset{display:flex!important;justify-content:flex-end!important;gap:8px!important;width:100%!important;margin:0!important;padding:0!important}
body.hn-leitor .ui-dialog .ui-dialog-buttonset button{margin:0!important;height:42px!important;display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:8px!important;padding:0 20px!important;white-space:nowrap}
body.hn-leitor .ui-dialog .ui-dialog-buttonset button::before{margin:0!important;display:inline-block!important}
body.hn-leitor .ui-dialog .ui-resizable-se{display:none!important}
body.hn-leitor .ui-dialog button:focus:not(:focus-visible){outline:0!important;box-shadow:none!important}
body.hn-leitor .ui-dialog button:focus-visible{outline:2px solid var(--hn-texto)!important;outline-offset:2px!important;box-shadow:none!important}

/* Compositor: o editor ocupa o espaço que sobra (nunca fica cortado embaixo)
   e Enviar / Abrir em nova janela ficam na mesma linha. */
body.hn-leitor.action-compose #compose-content form.formcontent{display:flex!important;flex-direction:column!important}
body.hn-leitor.action-compose #compose-content #compose-headers{flex:none!important}
body.hn-leitor.action-compose #compose-content #composebodycontainer{flex:1 1 auto!important;height:auto!important;min-height:220px!important;display:flex!important;flex-direction:column!important}
body.hn-leitor.action-compose #compose-content #composebodycontainer>textarea{flex:1 1 auto!important;height:auto!important;min-height:0!important}
body.hn-leitor.action-compose #compose-content .formbuttons{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:14px!important}
body.hn-leitor.action-compose #compose-content .formbuttons>*{margin:0!important}
body.hn-leitor.action-compose #compose-content .formbuttons a{white-space:nowrap!important}
body.hn-leitor.action-compose #composebody{resize:none!important}
/* Janela média (app do Mac estreito): opções e anexos mais estreitas, para o
   texto do e-mail ter espaço. */
@media(min-width:769px) and (max-width:1099px){
body.hn-leitor:not(.task-login).action-compose #layout>#layout-sidebar:not(.hidden){flex:0 0 272px!important;width:272px!important;min-width:272px!important;max-width:272px!important}
body.hn-leitor.action-compose:not(.task-login) #layout #layout-sidebar #compose-options .form-group.row:has(select){grid-template-columns:1fr!important;gap:6px!important}
body.hn-leitor.action-compose:not(.task-login) #layout #layout-sidebar #compose-options .form-group.row:has(select) select{width:100%!important}
}
body.hn-leitor.action-compose #layout-sidebar #compose-options label{hyphens:none!important;-webkit-hyphens:none!important}

/* Formulários dentro de modal (Lista de opções, Mover, Pasta...): altura do
   conteúdo (sem vão antes dos botões), linhas sem a margem negativa do
   Bootstrap, rótulo centrado com o campo e sem quebrar em duas linhas. */
body.hn-leitor .ui-dialog .ui-dialog-content{height:auto!important;max-height:70vh!important;overflow:auto!important}
body.hn-leitor .ui-dialog .propform .form-group.row{margin:0 0 12px!important;align-items:center!important;flex-wrap:nowrap!important;gap:16px}
body.hn-leitor .ui-dialog .propform .form-group.row:last-child{margin-bottom:0!important}
body.hn-leitor .ui-dialog .propform .form-group.row>label{flex:0 0 auto!important;max-width:none!important;width:auto!important;min-width:150px;padding:0!important;margin:0!important;white-space:nowrap;hyphens:none!important}
body.hn-leitor .ui-dialog .propform .form-group.row>div{flex:1 1 auto!important;max-width:none!important;width:auto!important;padding:0!important}
/* Dica do botão some quando o menu dele abre (não cobre o primeiro item). */
body:has(.popover.show) #hn-dica,body:has(.ui-dialog:not([style*="display: none"])) #hn-dica{opacity:0!important;visibility:hidden!important}

/* Todos os menus suspensos (mais ações, pastas, responder, encaminhar...):
   mesmo respiro de 6 px em volta, itens do tamanho do menu (antes vazavam
   6 px pela direita), seta de submenu na mesma linha do item. */
body.hn-leitor .popover:not(.select-menu){padding:6px!important;min-width:220px}
body.hn-leitor .popover ul.listing li{border:0!important;margin:0!important}
body.hn-leitor .popover ul.listing li>a{margin:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;gap:10px;min-height:38px;padding:0 12px!important;border:0!important;border-radius:10px!important;white-space:nowrap}
body.hn-leitor .popover ul.listing li>a::before{margin:0!important;flex:0 0 auto}
body.hn-leitor .popover ul.listing li>a::after{margin:0 0 0 auto!important;position:static!important;align-self:center!important}
body.hn-leitor .popover ul.listing li>a:not(.disabled):hover,body.hn-leitor .popover ul.listing li>a:not(.disabled):focus-visible{background:var(--hn-elevado)!important}
/* Modal: um fundo só (no escuro a faixa dos botões ficava de outra cor) e
   foco do campo com uma borda só, sem anel + contorno + sombra somados. */
body.hn-leitor .ui-dialog .ui-dialog-titlebar,body.hn-leitor .ui-dialog .ui-dialog-content,body.hn-leitor .ui-dialog .ui-dialog-buttonpane{background:transparent!important}
body.hn-leitor .ui-dialog .form-control:focus,body.hn-leitor .ui-dialog select:focus,body.hn-leitor .ui-dialog input:focus{outline:0!important;box-shadow:none!important;border-color:var(--hn-secundario)!important}
/* Botão do editor (alternar texto/HTML): fora da curva do canto, alinhado
   com o início do texto, centrado numa barra de 48 px, redondo como os
   demais e com ícone de código (o de imagem parecia "inserir imagem"). */
body.hn-leitor #composebodycontainer>.editor-toolbar{height:48px!important;display:flex!important;align-items:center!important;padding:0 10px!important}
body.hn-leitor #composebodycontainer>.editor-toolbar a{width:36px!important;height:36px!important;margin:0!important;padding:0!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important}
body.hn-leitor #composebodycontainer>.editor-toolbar a::before{content:''!important;display:block!important;width:18px!important;height:18px!important;margin:0!important;background-color:currentColor!important;mask:url(icones/file-code.svg) center/1.05em 1.05em no-repeat!important;-webkit-mask:url(icones/file-code.svg) center/1.05em 1.05em no-repeat!important}
body.hn-leitor #composebodycontainer>.editor-toolbar a:hover,body.hn-leitor #composebodycontainer>.editor-toolbar a:focus-visible{background:var(--hn-elevado)!important}
body.hn-leitor #composebodycontainer>textarea{padding:62px 20px 20px!important}
