/* Painel Nexar: menu lateral, topo, início (cartões, anel, gráfico) e componentes do painel. */

/* ---------- estrutura ---------- */
.app { min-height: 100vh; display: grid; grid-template-columns: 208px minmax(0, 1fr); }
main { min-width: 0; width: 100%; max-width: 1440px; margin: 0 auto; padding: clamp(1rem, 2vw, 1.5rem); }
main:focus { outline: none; }
.page { display: none; }
.page.active { display: block; }

/* ---------- menu lateral ---------- */
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--side); color: #fff; padding: 1.1rem .7rem; display: flex; flex-direction: column; gap: 1rem; border-right: 1px solid rgba(255,255,255,.07); }
.brand { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: .2rem .5rem 1rem; border-bottom: 1px solid rgba(255,255,255,.1); text-align: center; }
.brand-mark { width: 52px; height: 52px; border-radius: 12px; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1; color: #f1e3bd; }
.nav { display: grid; gap: .2rem; }
.nav-titulo { margin: .3rem .7rem; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #7fa392; }
.nav-mais { padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.1); }
.nav-button { width: 100%; display: flex; align-items: center; gap: .7rem; min-height: 42px; border: 0; border-left: 3px solid transparent; background: transparent; color: #cfdcd5; text-align: left; font-weight: 500; font-size: .92rem; padding: .5rem .7rem; border-radius: 4px 8px 8px 4px; text-decoration: none; }
.nav-button svg { width: 20px; height: 20px; flex: 0 0 20px; opacity: .9; }
.nav-button:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-button[aria-current="page"] { background: rgba(220, 184, 98, .12); border-left-color: #dcb862; color: #f1d98f; font-weight: 600; }
.nav-button:focus-visible { outline-color: #bcd6ff; }
.side-bottom { margin-top: auto; padding: .9rem .6rem 0; border-top: 1px solid rgba(255,255,255,.1); color: #8fae9f; font-family: var(--serif); font-style: italic; font-size: .85rem; line-height: 1.4; text-align: center; }

/* ---------- topo ---------- */
.topbar { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem 1.25rem; margin-bottom: 1rem; }
.topo-titulo { flex: 1 1 280px; min-width: 0; }
h1 { font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; font-weight: 600; }
.top-subtitle { margin: .25rem 0 0; font-size: .95rem; color: var(--muted); }
.topo-info { display: flex; align-items: center; flex-wrap: wrap; }
.chip-info { display: flex; align-items: center; gap: .6rem; padding: .2rem 1.1rem; border-left: 1px solid var(--line); min-width: 0; }
.chip-info:first-child { border-left: 0; }
.chip-info svg { width: 26px; height: 26px; flex: 0 0 26px; color: var(--gold); }
.chip-info-texto { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.chip-info-rotulo { font-size: .72rem; color: var(--muted); }
.chip-info strong { font-size: .92rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip-info select { max-width: 150px; padding: 0; margin: 0; border: 0; background: transparent; color: var(--ink); font-size: .92rem; font-weight: 600; cursor: pointer; }
.chip-info select option { color: #12302a; background: #fff; }
.status-badge { white-space: nowrap; --acc: var(--bad-line); --tint: var(--bad-bg); --ink-s: var(--bad); display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; border-radius: 12px; background: var(--tint); border: 1px solid var(--acc); color: var(--ink-s); }
.status-badge.good { --acc: var(--good-line); --tint: var(--good-bg); --ink-s: var(--good); }
.status-badge.caution { --acc: var(--warn-line); --tint: var(--warn-bg); --ink-s: var(--warn); }
.status-badge .summary-icon { width: 28px; height: 28px; flex: 0 0 28px; color: var(--ink-s); }
.status-badge strong { display: block; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; line-height: 1.25; }
.status-badge p { margin: 0; font-size: .78rem; color: var(--ink); opacity: .85; }
.topo-acoes { display: flex; align-items: center; gap: .75rem; flex: 0 0 auto; margin-left: auto; }
.theme-button { width: 42px; height: 42px; flex: 0 0 42px; padding: 0; border: 1px solid var(--line); color: var(--gold); background: var(--panel); border-radius: 10px; display: grid; place-items: center; }
.theme-button:hover { border-color: var(--gold); }
.theme-button svg { width: 20px; height: 20px; }
.theme-button .icone-sol { display: none; }
:root.dark .theme-button .icone-lua { display: none; }
:root.dark .theme-button .icone-sol { display: block; }

/* ---------- início ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (min-width: 1200px) { .home-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
.home-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; }


.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 1rem; }
.leitura { --acc: var(--good-line); --tint: var(--good-bg); --ink-s: var(--good); min-width: 0; display: flex; flex-direction: column; gap: .9rem; padding: 1.2rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.leitura-temp { background: var(--card-temp); border-color: var(--card-temp-line); }
.leitura-umid { background: var(--card-umid); border-color: var(--card-umid-line); }
.leitura.danger { --acc: var(--bad-line); --tint: var(--bad-bg); --ink-s: var(--bad); }
.leitura.caution { --acc: var(--warn-line); --tint: var(--warn-bg); --ink-s: var(--warn); }
.leitura.safe { --acc: var(--good-line); --tint: var(--good-bg); --ink-s: var(--good); }
.leitura.sem-dado { --acc: var(--cinza); --tint: rgba(143, 160, 170, .15); --ink-s: var(--muted); }
.leitura-topo { display: flex; align-items: center; gap: .9rem; }
.leitura-icone { width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--acc); color: var(--ink-s); }
.leitura-icone svg { width: 26px; height: 26px; }
.leitura h2 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.leitura-sub { margin: .1rem 0 0; font-size: .88rem; color: var(--muted); }
.leitura-corpo { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.leitura-valor { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; min-width: 0; }
.value { margin: 0; font-size: 2.7rem; font-weight: 700; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--ink); }
.value .unidade { margin-left: .2rem; font-size: .42em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .75rem; border-radius: 999px; background: var(--tint); border: 1px solid var(--acc); color: var(--ink-s); font-size: .85rem; font-weight: 600; line-height: 1.3; }
.pill::before { content: "●"; font-size: .6em; }
.leitura.safe .pill::before { content: "✔"; font-size: .85em; }
.leitura.danger .pill::before, .leitura.caution .pill::before { content: "▲"; font-size: .7em; }
.leitura-lado { display: grid; gap: .6rem; margin: 0; padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.12); min-width: 0; }
:root:not(.dark) .leitura-lado { border-left-color: var(--line); }
.leitura-lado dt { font-size: .75rem; color: var(--muted); }
.leitura-lado dd { margin: .05rem 0 0; font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.escala { padding-top: .2rem; }
.escala-barra { --p1: 35%; --p2: 60%; --p3: 80%; position: relative; height: 9px; border-radius: 6px; background: linear-gradient(90deg, #2f80d6 0%, #25b866 var(--p1), #25b866 var(--p2), #f1b72a var(--p3), #e5483c 100%); }
.escala-marca { position: absolute; top: 15px; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 10px solid var(--ink); transform: translateX(-50%); }
.escala-legenda { margin: 1.35rem 0 0; font-size: .8rem; color: var(--muted); }
.action-text { margin: 0; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.1); font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
:root:not(.dark) .action-text { border-top-color: var(--line); }
.metric-note { margin: -.55rem 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- painéis ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: .9rem; }
.home-main .panel { margin-bottom: 0; }
.panel h2 { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; gap: .55rem; }
.panel h2 svg { width: 20px; height: 20px; color: var(--gold); flex: 0 0 20px; }
.painel-cabeca { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; margin-bottom: .8rem; }
.link-botao { border: 0; background: transparent; color: var(--gold); font-size: .85rem; font-weight: 600; padding: .2rem 0; }
.link-botao:hover { text-decoration: underline; }
.legenda-linhas { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0; padding: 0; list-style: none; font-size: .82rem; color: var(--muted); }
.legenda-linhas li { display: flex; align-items: center; gap: .45rem; }
.legenda-linhas-baixo { margin-top: .6rem; }
.traco { width: 18px; height: 0; border-top: 3px solid var(--muted); border-radius: 2px; }
.traco.temp { border-color: var(--serie-temp); }
.traco.umid { border-color: var(--serie-umid); }
.traco.fora { border-top-style: dashed; border-color: var(--serie-fora); }

.chart-wrap { overflow-x: auto; }
.chart { width: 100%; min-width: 480px; height: auto; display: block; }
.chart .grade { stroke: var(--line); stroke-width: 1; }
.chart .eixo-texto, .chart .eixo-unidade { fill: var(--muted); font-size: 12px; }
.chart .serie { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .serie.temp { stroke: var(--serie-temp); }
.chart .serie.umid { stroke: var(--serie-umid); }
.chart .serie.fora { stroke: var(--serie-fora); stroke-dasharray: 6 5; stroke-width: 2; }
.chart-vazio { margin: .8rem 0; color: var(--muted); }

.duo2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 1000px) { .duo2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.legenda-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.lg { --c: var(--good-line); display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .8rem .8rem .9rem; border-radius: 10px; border: 1px solid var(--c); background: var(--panel-soft); font-size: .85rem; }
.lg.verde { --c: var(--good-line); }
.lg.amarelo { --c: var(--warn-line); }
.lg.vermelho { --c: var(--bad-line); }
.lg.cinza { --c: var(--cinza); }
.lg-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--c); margin-bottom: .4rem; }
.lg strong { color: var(--c); font-size: .95rem; }
.lg span { font-size: .85rem; }
.lg small { margin-top: .35rem; color: var(--muted); font-size: .76rem; line-height: 1.3; }

.tabela-alertas { margin-top: 0; font-size: .85rem; }
.tabela-alertas td.vazio { color: var(--muted); padding: 1rem .7rem; }
.st { white-space: nowrap; display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.st i { width: 9px; height: 9px; border-radius: 50%; background: var(--cinza); }
.st.danger { color: var(--bad); }
.st.danger i { background: var(--bad-line); }
.st.caution { color: var(--warn); }
.st.caution i { background: var(--warn-line); }

/* ---------- status geral (coluna da direita) ---------- */
.painel-status { text-align: center; }
.painel-status h2 { justify-content: center; margin-bottom: 1.1rem; }
.anel { --c: var(--bad-line); width: 150px; height: 150px; margin: 0 auto 1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; border-radius: 50%; border: 8px solid var(--c); color: var(--ink); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 35%, transparent), inset 0 0 18px color-mix(in srgb, var(--c) 12%, transparent); }
.anel.good { --c: var(--good-line); }
.anel.caution { --c: var(--warn-line); }
.anel.danger { --c: var(--bad-line); }
.anel.sem { --c: var(--cinza); }
.anel-icone { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--c); color: #fff; }
.anel strong { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.anel-desc { margin: 0 0 1rem; font-size: .9rem; color: var(--ink); }
.info-lista { margin: 0; text-align: left; }
.info-lista > div { display: flex; justify-content: space-between; gap: .8rem; padding: .65rem 0; border-top: 1px solid var(--line); font-size: .88rem; }
.info-lista dt { color: var(--muted); }
.info-lista dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- botões e formulários ---------- */
.action-button { min-height: 44px; padding: .55rem 1.1rem; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand); color: #fff; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; }
:root.dark .action-button { color: #1a1405; }
.action-button:hover { background: var(--brand-hover); }
.action-button.largo { display: flex; width: 100%; margin-top: 1rem; }
.small-button { min-width: 48px; min-height: 40px; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--panel-soft); font-size: .9rem; font-weight: 600; }
.small-button:hover { border-color: var(--gold); }
.footnote { margin: 1rem 0 0; font-size: .8rem; color: var(--muted); }

/* ---------- outras abas ---------- */
.page .page-intro { display: none; } /* o subtítulo do topo já diz isso */
.page-intro { margin: 0 0 1rem; color: var(--muted); }
.barn-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .5fr); gap: .9rem; align-items: stretch; }
.barn-layout .panel { margin-bottom: 0; }
.barn-illustration { width: 100%; max-height: 380px; display: block; }
.legend { display: grid; gap: .5rem; align-content: start; }
.legend-item { display: flex; align-items: flex-start; gap: .7rem; padding: .65rem .8rem; border-radius: 8px; background: var(--panel-soft); }
.legend-dot { width: 12px; height: 12px; margin-top: .35rem; border-radius: 50%; flex: 0 0 12px; }
.legend-item strong { display: block; font-size: .95rem; }
.legend-item p { margin: .1rem 0 0; font-size: .9rem; color: var(--muted); }
.legend-dot.vermelho { background: var(--bad-line); }
.legend-dot.amarelo { background: var(--warn-line); }
.legend-dot.verde { background: var(--good-line); }
.legend-dot.cinza { background: var(--cinza); }
.table-wrap { overflow-x: auto; margin-top: .4rem; }
table { width: 100%; border-collapse: collapse; margin-top: .8rem; font-size: .9rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
thead th { font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
tbody th { font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

.alert-list { display: grid; gap: .6rem; }
.alert-row { --acc: var(--bad-line); --ink-s: var(--bad); display: flex; align-items: flex-start; gap: .85rem; padding: .9rem 1.1rem; background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--acc); border-radius: var(--radius); }
.alert-row.warning { --acc: var(--warn-line); --ink-s: var(--warn); }
.alert-row.ok { --acc: var(--good-line); --ink-s: var(--good); }
.alert-row svg { flex: 0 0 24px; width: 24px; height: 24px; margin-top: .1rem; color: var(--ink-s); }
.alert-row h3 { margin: 0 0 .1rem; font-size: 1rem; font-weight: 700; }
.alert-row p { margin: 0; font-size: .95rem; }
.alert-row .alert-corpo { min-width: 0; }
.alert-row .alert-meta { margin-top: .3rem; font-size: .82rem; color: var(--muted); }

.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row strong { font-weight: 600; font-size: 1rem; }
.setting-row span { font-size: .9rem; color: var(--muted); }
.setting-controls { display: flex; gap: .4rem; flex-wrap: wrap; }
.nota-usuario { margin: .6rem 0 .9rem; color: var(--muted); }

/* desenho do galpão */
.caixa rect { fill: var(--good-bg); stroke: var(--good-line); stroke-width: 3; }
.caixa text { fill: var(--good); font-weight: 700; }
.caixa.danger rect { fill: var(--bad-bg); stroke: var(--bad-line); }
.caixa.danger text { fill: var(--bad); }
.caixa.caution rect { fill: var(--warn-bg); stroke: var(--warn-line); }
.caixa.caution text { fill: var(--warn); }

code, pre { background: var(--panel-soft); border-radius: 6px; overflow-wrap: anywhere; }
code { padding: .1rem .4rem; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.25rem; background: var(--page); }
.login-card { width: min(400px, 100%); padding: 1.75rem 1.6rem; margin: 0; }
.login-marca { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 1rem; margin-bottom: .5rem; border-bottom: 1px solid var(--line); }
.login-marca img { width: 76px; height: 76px; border-radius: 16px; }
.marca-nome { margin-top: .6rem; font-family: var(--serif); font-size: 1.8rem; font-weight: 600; line-height: 1; color: var(--gold); }
.login-card h1 { font-size: 1.3rem; margin-top: .8rem; }
.login-card .page-intro { display: block; margin: .2rem 0 0; font-size: .95rem; }
.login-card label { display: block; font-weight: 600; font-size: .9rem; margin: 1rem 0 .3rem; }
.login-card input { width: 100%; min-height: 44px; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--panel-soft); }
.login-card input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.login-card .action-button { display: flex; width: 100%; margin-top: 1.2rem; min-height: 46px; }
.login-erro { color: var(--bad); font-weight: 600; font-size: .9rem; min-height: 1.4rem; margin: .6rem 0 0; }

/* ---------- telas menores ---------- */
@media (max-width: 960px) {
  .barn-layout { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { min-width: 0; position: static; height: auto; overflow: visible; padding: .7rem 1rem .5rem; gap: .5rem; border-right: 0; }
  .brand { flex-direction: row; justify-content: flex-start; padding: 0 0 .3rem; border-bottom: 0; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 1.1rem; }
  .side-bottom, .nav-titulo { display: none; }
  /* menu principal vira barra fixa embaixo, fácil de alcançar com o polegar */
  .nav-principal { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .1rem; padding: .3rem .3rem calc(.3rem + env(safe-area-inset-bottom)); background: var(--side); border-top: 1px solid rgba(255,255,255,.12); }
  .nav-principal .nav-button { flex-direction: column; justify-content: center; gap: .15rem; min-height: 54px; padding: .3rem .1rem; text-align: center; font-size: .68rem; border-left: 0; border-radius: 8px; }
  .nav-principal .nav-button svg { width: 22px; height: 22px; }
  /* demais páginas: linha de botões que rola para o lado */
  .nav-mais { display: flex; overflow-x: auto; gap: .4rem; padding: 0 0 .3rem; border-top: 0; scrollbar-width: none; }
  .nav-mais::-webkit-scrollbar { display: none; }
  .nav-mais .nav-button { width: auto; flex: 0 0 auto; min-height: 36px; padding: .3rem .85rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: .85rem; }
  .nav-mais .nav-button svg { display: none; }
  main { padding: 1rem 1rem 6rem; }
}
@media (max-width: 640px) {
  .topo-info { width: 100%; }
  .chip-info { padding: .2rem .8rem .2rem 0; }
  .chip-info:not(:first-child) { padding-left: .8rem; }
  .status-badge { flex: 1; min-width: 0; white-space: normal; }
  .topo-acoes { width: 100%; justify-content: space-between; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .leitura-corpo { flex-direction: column; align-items: flex-start; }
  .leitura-lado { padding-left: 0; border-left: 0; grid-template-columns: 1fr 1fr; width: 100%; }
  .setting-row { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* ---------- casca das telas internas (js/layout.js monta o menu lateral) ---------- */
body.legado { display: grid; grid-template-columns: var(--lateral) minmax(0, 1fr); align-items: start; min-height: 100vh; }
body.legado > .sidebar { grid-column: 1; grid-row: 1; }
body.legado > main { grid-column: 2; grid-row: 1; align-self: stretch; }
.side-conta { font-family: inherit; font-style: normal; text-align: left; }
.side-usuario { display: flex; flex-direction: column; margin-bottom: .7rem; }
.side-nome { color: #e6f7ec; font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.side-perfil { color: #8fcfaa; font-size: .75rem; text-transform: capitalize; }
.side-botoes { display: flex; gap: .4rem; flex-wrap: wrap; }
.sidebar .small-button { min-height: 34px; min-width: 0; padding: .25rem .7rem; font-size: .8rem; background: rgba(255,255,255,.07); color: #e6f7ec; border-color: rgba(255,255,255,.2); }
.sidebar .small-button:hover { border-color: #dcb862; }
@media (max-width: 850px) {
  body.legado { grid-template-columns: minmax(0, 1fr); }
  body.legado > main { grid-column: 1; grid-row: auto; }
  .side-conta { display: none; }
}
.side-botoes .small-button { flex: 1 1 0; text-align: center; white-space: nowrap; }

/* ---------- Sair no menu lateral ---------- */
.side-conta-sessao { margin-bottom: .9rem; padding-bottom: .9rem; border-bottom: 1px solid rgba(255,255,255,.1); text-align: left; font-family: inherit; font-style: normal; }
.side-frase { margin: 0; }
.nav-sair { display: none; }
@media (max-width: 850px) { .nav-sair { display: flex; } }

/* ---------- previsão do ITGU ---------- */
.selo-teste { margin: 0; padding: .5rem .85rem; border: 1.5px dashed var(--warn-line); border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: .92rem; font-weight: 700; }
.selo-teste::before { content: "⚠ "; }
.leitura.destacado { border: 2px solid var(--acc); box-shadow: 0 0 0 4px var(--tint); }
.leitura.destacado .action-text { color: var(--ink-s); font-weight: 700; }
