:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  font-size: clamp(14px, min(.91vw, 1.7vh), 26px);
  line-height: 1.35;
  background: #040e0d;
  color: #edf9f5;
  --muted: #a8c6bf;
  --line: #286056;
  --green: #83fa45;
  --cyan: #52e9eb;
  --warn: #ffd375;
  --bad: #ff9498;
  --sidebar-w: clamp(12rem, 17%, 16.5rem);
  --sidebar-w-rail: 4.5rem;
}

html { scroll-behavior: smooth; overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.bion-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { display: block; width: 1.15rem; height: 1.15rem; flex: none; }
.summary .icon .ico { width: 1.4rem; height: 1.4rem; }
.services .service-icon .ico { width: 1.15rem; height: 1.15rem; }
.shortcuts .ico { width: 1.55rem; height: 1.55rem; }
.network-icon .ico { width: 1.2rem; height: 1.2rem; }
body {
  margin: 0; min-height: 100vh; max-width: 100%; overflow-x: clip; display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  transition: grid-template-columns .2s ease;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
h1, h2, p, figure { margin: 0; }
small { display: block; color: var(--muted); }

.skip-link {
  position: fixed; top: .6rem; left: .6rem; z-index: 2; transform: translateY(-200%);
  padding: .55rem .75rem; border-radius: .35rem; background: #09241f; color: var(--cyan);
}
.skip-link:focus { transform: none; }

.sidebar {
  display: flex; flex-direction: column; min-width: 0; position: sticky; top: 0;
  height: 100vh; height: 100dvh; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: #2b6a52 transparent;
  background:
    radial-gradient(120% 55% at 0% 100%, #0a3f26 0%, transparent 62%),
    linear-gradient(180deg, #071d17 0%, #04120f 100%);
  border-right: 1px solid #2f7d5a;
  box-shadow: inset -1px 0 0 #0b2a22, 10px 0 30px #00000040;
}
.sidebar::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, #4fd06a66, transparent 72%);
}
.sidebar-header {
  display: flex; align-items: center; gap: .35rem;
  padding: .85rem .7rem .8rem; border-bottom: 1px solid #1e4a3a;
  background: linear-gradient(180deg, #08201966, transparent);
}
.brand {
  display: flex; align-items: center; gap: .6rem; min-width: 0;
  padding: .15rem .2rem; border-radius: .6rem; color: inherit;
}
.brand:hover { text-decoration: none; }
.brand > span { min-width: 0; }
.brand svg { width: 2.5rem; flex: none; filter: drop-shadow(0 0 .5rem #50db4166); }
.brand strong { display: block; font-size: 1.75rem; line-height: 1; letter-spacing: -.045em; }
.brand small {
  color: #9fd3c0; font-size: .72rem; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-collapse {
  flex: none; margin-left: auto; display: grid; place-items: center;
  width: 2rem; height: 2rem; padding: 0; cursor: pointer;
  border: 1px solid #2b5f4b; border-radius: .55rem;
  background: #0a2b22; color: #9fd3c0;
  transition: background .15s, border-color .15s, color .15s;
}
.sidebar-collapse svg { width: 1.05rem; height: 1.05rem; transition: transform .2s ease; }
.sidebar-collapse:hover { background: #123c2e; border-color: #3f8f68; color: #eafff5; }
.menu-toggle { display: none; }
.sidebar nav, .nav-group { display: grid; gap: .1rem; }
.sidebar nav { padding: .5rem .5rem .85rem; }
.sidebar nav h2 {
  padding: .75rem .6rem .28rem; color: #7fb8a6;
  font-size: .66rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
}
.nav-group { border-top: 1px solid #1e4a3a; margin-top: .5rem; padding-top: .45rem; }
#nav-administracao:not(:has(> a)) { display: none; }
.sidebar nav a, .sidebar nav button {
  position: relative; display: flex; align-items: center; gap: .55rem;
  padding: .38rem .5rem; min-height: 2.35rem; color: #d8efe8;
  border: 1px solid transparent; border-radius: .6rem; font: inherit; font-size: .88rem;
  text-align: left; background: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.sidebar nav button { cursor: pointer; }
.nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar nav :is(a, button):hover {
  background: #0d2f27; border-color: #245a4a; color: #f2fffb;
  text-decoration: none; transform: translateX(1px);
}
.sidebar nav a[aria-current] {
  background: linear-gradient(90deg, #21672f 0%, #0b3f2d 72%);
  border-color: #3f9a5c; color: #f4fff8;
  box-shadow: inset 3px 0 0 var(--green), 0 6px 16px #00000033;
}
.nav-icon {
  display: grid; place-items: center; flex: none;
  width: 1.9rem; height: 1.9rem; border-radius: .5rem;
  border: 1px solid #1f4a3a; background: #0b2a22;
  color: #7fe0b0; font-size: .98rem; line-height: 1;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.sidebar nav :is(a, button):hover .nav-icon { color: var(--green); border-color: #3b8a63; }
.sidebar nav a[aria-current] .nav-icon {
  background: #2a7a36; border-color: #59c46b; color: #eafff0; box-shadow: 0 0 10px #58d15a55;
}
.nav-external { margin-left: auto; color: #7fb8a6; font-size: .85rem; }
.nav-state {
  display: grid; place-items: center; width: 1.1rem; height: 1.1rem; flex: none;
  border: 1px solid currentColor; border-radius: 50%; font-size: .7rem;
  line-height: 1; color: var(--nav-indicator, var(--muted));
}
.sidebar nav button .nav-state { margin-left: auto; }
[data-menu-state="OK"] { --nav-indicator: var(--green); }
[data-menu-state="WARN"] { --nav-indicator: var(--warn); }
[data-menu-state="CRIT"] { --nav-indicator: var(--bad); }
.nav-actions {
  display: grid; gap: .1rem; margin-top: .5rem; padding-top: .5rem;
  border-top: 1px dashed #245a49;
}
.nav-meta { margin-left: auto; font-size: .68rem; color: var(--muted); white-space: nowrap; }
.nav-meta[data-state="CRIT"] { color: var(--bad); }
.sidebar footer {
  margin-top: auto; padding: .85rem 1rem 1rem; border-top: 1px solid #1e4a3a;
  background: linear-gradient(0deg, #071d1755, transparent);
}
.sidebar footer strong { font-size: .95rem; letter-spacing: .01em; }
.sidebar footer small { color: #8fc4b1; font-size: .72rem; }

main { min-width: 0; }
#conteudo { container-type: inline-size; display: flex; flex-direction: column; }
.hero {
  display: flex; align-items: center; gap: .85rem; padding: .85rem 1.1rem; min-height: 6rem;
  border-bottom: 1px solid #38894b;
  background: linear-gradient(90deg, #041914 20%, #04201580 57%, #041411 88%),
              url("rio.jpg") center 48% / cover, #06251c;
}
.hero svg { width: 3.3rem; color: var(--cyan); flex: none; }
.hero > div { min-width: 0; }
.hero h1 { font-size: 2.35rem; line-height: 1; letter-spacing: -.045em; }
.hero p { font-size: 1.04rem; overflow-wrap: anywhere; }
.clock { margin-left: auto; text-align: right; white-space: nowrap; }
.clock time { font-size: 1.55rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.badge { border: 1px solid currentColor; border-radius: 2rem; padding: .32rem .65rem; color: var(--muted); background: #09241d; font-size: .85rem; }
[data-state="OK"] { color: var(--green); }
[data-state="WARN"] { color: var(--warn); }
[data-state="CRIT"] { color: var(--bad); }
[data-state="UNKNOWN"] { color: var(--muted); }

.board { display: grid; gap: .75rem; padding: .75rem; background: radial-gradient(ellipse at top, #0c211d, transparent 60%); }
.summary, .middle, .bottom { display: grid; gap: .75rem; }
.summary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.middle { grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); }
.bottom { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr) minmax(0, 1fr); }
.summary article, .panel {
  min-width: 0; border: 1px solid var(--line); border-radius: .8rem;
  background: linear-gradient(135deg, #102e2a, #041715 80%);
}
.summary article { display: flex; align-items: center; gap: .54rem; padding: .7rem; min-height: 5.3rem; }
.summary article > div { min-width: 0; overflow-wrap: anywhere; }
.summary h2 { font-size: .82rem; }
.summary strong { display: block; font-size: 1.02rem; margin: .14rem 0; }
.icon {
  width: 2.45rem; height: 2.45rem; display: grid; place-items: center; flex: none;
  font-size: 1.38rem; color: #ebffe9; border-radius: 50%; border: 1px solid #2f6d62;
  background: radial-gradient(circle at 30% 20%, #123f36, #08231e 65%);
}
progress { display: block; width: 100%; height: .43rem; margin-top: .26rem; accent-color: var(--green); }
.panel > h2 { font-size: 1.15rem; padding: .45rem .7rem; border-bottom: 1px solid var(--line); }
.services, .shortcuts, .gauges { display: grid; gap: .55rem; padding: .65rem; }
.services, .shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services article, .shortcuts > * {
  min-width: 0; background: #09241f; border: 1px solid #367164;
  border-radius: .58rem; padding: .53rem;
}
.services article { display: flex; gap: .48rem; align-items: center; }
.services article > div { min-width: 0; overflow-wrap: anywhere; }
.services strong { display: block; font-size: .89rem; }
.services small { font-size: .76rem; line-height: 1.25; }
.service-icon, .shortcuts .ico { color: var(--cyan); flex: none; }
.service-icon {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .55rem;
  color: #eaffff; background: #0c2f29; border: 1px solid #2f6d62;
}
.service-state { display: inline-block; font-size: .73rem; margin-top: .25rem; font-weight: 650; }
.gauges { grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; }
.dial {
  position: relative; isolation: isolate; width: min(100%, 6.2rem); aspect-ratio: 1;
  margin: 0 auto .24rem; display: grid; place-content: center; border-radius: 50%;
  background: conic-gradient(var(--green) var(--value, 0%), #28534e 0);
}
.dial::before { content: ""; position: absolute; inset: .37rem; border-radius: 50%; background: #081b19; z-index: -1; }
.dial b { font-size: 1.3rem; }
.dial span { font-size: .78rem; }
.gauges small { min-height: 1.25em; font-size: .73rem; }
.chart { padding: 0 .72rem .55rem; }
.chart figcaption { font-size: .83rem; font-weight: 650; }
.chart svg { display: block; width: 100%; height: 3.7rem; }
.chart path { fill: none; vector-effect: non-scaling-stroke; }
.grid-lines { stroke: #356055; stroke-width: 1; }
#cpu-line { stroke: var(--green); stroke-width: 2; }

.network { display: flex; flex-direction: column; padding: .6rem; }
.network-node, .network-link {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr); align-items: center; gap: .55rem;
  padding: .35rem .5rem; font-size: .85rem;
}
.network-node { border: 1px solid #4d8c73; border-radius: .55rem; background: #0a2823; }
.network-icon {
  display: grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: .45rem; background: #164437; color: var(--cyan); font-size: 1.1rem;
}
.network-link { padding-block: .25rem; }
.network-link strong { font-size: .78rem; }
.network small { font-size: .76rem; overflow-wrap: anywhere; }
.network-line {
  align-self: stretch; justify-self: center; width: .2rem;
  margin-block: -.25rem; background: #4d8c73;
}
.network-link[data-traffic="active"] .network-line {
  background: repeating-linear-gradient(0deg, var(--green) 0 6px, #286056 6px 12px);
  animation: network-traffic .9s linear 3;
}
@keyframes network-traffic { to { background-position: 0 12px; } }
@media (prefers-reduced-motion: reduce) {
  .network-link[data-traffic="active"] .network-line { animation: none; }
}
.panel-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem; padding: .35rem .65rem .6rem; font-size: .72rem; color: var(--muted); }
#events { padding: .23rem .62rem; margin: 0; list-style: none; }
#events li { display: flex; justify-content: space-between; gap: .4rem; border-bottom: 1px solid #214a43; padding: .37rem 0; font-size: .79rem; }
#events li > span { min-width: 0; overflow-wrap: anywhere; }
#events time { color: var(--muted); white-space: nowrap; }
#events li > span::before { content: "● "; }
.shortcuts > * { display: grid; place-items: center; gap: .15rem; color: inherit; font: inherit; font-size: .76rem; cursor: pointer; text-align: center; }
.shortcuts > *:hover { background: #164437; text-decoration: none; }
.freshness { color: var(--muted); font-size: .72rem; text-align: right; padding-inline-end: 7.5rem; }
.kiosk .freshness { padding-inline-end: 0; }
dialog { width: min(26rem, 90vw); border: 1px solid var(--line); border-radius: .7rem; background: #09241f; color: inherit; }
dialog::backdrop { background: #0009; }
dialog form { display: grid; gap: .75rem; }
dialog input, dialog button { padding: .45rem; font: inherit; }
#files-dialog { max-block-size: calc(100dvh - 1rem); overflow-y: auto; }
#files-dialog input { width: 100%; min-width: 0; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
#copy-status { min-height: 1.35em; color: var(--muted); }
@keyframes nav-flash {
  0% { outline: 2px solid #83fa4500; outline-offset: 3px; }
  22% { outline: 3px solid #83fa45cc; outline-offset: 3px; }
  100% { outline: 2px solid #83fa4500; outline-offset: 3px; }
}
.nav-flash { animation: nav-flash 1.4s ease-out; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-flash { animation: none; outline: 2px solid var(--green); outline-offset: 3px; }
}
.kiosk .interactive { display: none; }
.kiosk .bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sidebar nav a.kiosk-exit { display: none; }
.kiosk .sidebar nav a.kiosk-exit { display: flex; margin-top: .45rem; border-top: 1px solid var(--line); border-radius: 0; }

@media (min-width: 901px) {
  #conteudo { min-height: 100dvh; }
  .board { flex: 1; grid-template-rows: auto auto minmax(min-content, 1fr) auto; }
  .middle, .bottom, .panel { min-height: 0; }
  .panel { display: flex; flex-direction: column; }
  .services, .shortcuts { flex: 1; }
  .network { flex: 1; justify-content: center; }
  .chart, #eventos .panel-note { margin-top: auto; }
}
@media (max-width: 1200px) {
  :root { --sidebar-w: 12rem; }
  .brand strong { font-size: 1.6rem; }
  .brand small { display: none; }
  .sidebar nav a, .sidebar nav button { font-size: .84rem; }
}
@media (min-width: 901px) and (max-height: 1100px) {
  .sidebar-header { padding-block: .5rem; }
  .sidebar nav a, .sidebar nav button { min-height: 1.95rem; padding-block: .25rem; }
  .sidebar .nav-icon { width: 1.6rem; height: 1.6rem; font-size: .86rem; }
  .sidebar nav h2 { padding-top: .5rem; }
  .sidebar footer { padding-block: .55rem .65rem; }
  .hero { min-height: 4rem; padding-block: .4rem; }
  .hero svg { width: 2.7rem; }
  .hero h1 { font-size: 2.05rem; }
  .board, .summary, .middle, .bottom { gap: .4rem; }
  .board { padding: .35rem; }
  .summary article { min-height: 4.1rem; padding: .38rem; }
  .summary .icon { width: 1.9rem; height: 1.9rem; font-size: 1.05rem; }
  .summary article > div { min-width: 0; overflow-wrap: anywhere; }
  .panel > h2 { padding-block: .3rem; }
  .services, .shortcuts, .gauges { gap: .35rem; padding: .45rem; }
  .services article, .shortcuts > * { padding: .4rem; }
  .services article { gap: .35rem; }
  .services .service-icon { width: 1.55rem; height: 1.55rem; }
  .services small { line-height: 1.15; }
  .service-state { margin-top: .15rem; }
  .dial { max-width: 4.7rem; }
  .chart svg { height: 2.7rem; }
  .network { padding: .4rem; }
  .network-node, .network-link { line-height: 1.2; }
  .network-node, .network-link { padding-block: .1rem; }
  .network-link strong, .network-link .network-carrier { display: inline; }
  .network-link strong { margin-inline-end: .3em; }
  .network-line { margin-block: -.1rem; }
  #events li { padding-block: .25rem; }
  @container (700px < width <= 860px) {
    .summary .icon, .services .service-icon { display: none; }
  }
  @container (max-width: 800px) {
    .services small { display: none; }
    .shortcuts > * { font-size: .68rem; padding: .3rem .2rem; }
    .shortcuts .ico { width: 1.35rem; height: 1.35rem; }
  }
}
@media (min-width: 901px) and (min-height: 841px) and (max-height: 1100px) {
  @container (max-width: 900px) {
    .services small { display: none; }
  }
}
@media (max-height: 700px) {
  :root { font-size: 14px; }
  .hero { min-height: 2.9rem; padding: .3rem .8rem; gap: .6rem; }
  .hero svg { width: 2.2rem; }
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: .82rem; }
  .clock time { font-size: 1.2rem; }
  .clock small { font-size: .68rem; }
  .badge { font-size: .72rem; padding: .2rem .5rem; }
  .board { gap: .3rem; padding: .3rem; }
  .summary, .middle, .bottom { gap: .3rem; }
  .summary article { min-height: 2.9rem; padding: .28rem .38rem; gap: .35rem; }
  .summary .icon { width: 1.5rem; height: 1.5rem; font-size: .9rem; }
  .summary h2 { font-size: .72rem; line-height: 1.15; }
  .summary strong { font-size: .86rem; margin: .06rem 0; }
  .summary small { font-size: .66rem; line-height: 1.15; }
  .summary progress { height: .3rem; margin-top: .12rem; }
  .panel > h2 { font-size: .95rem; padding: .22rem .5rem; }
  .services, .shortcuts, .gauges { gap: .3rem; padding: .35rem; }
  .services article { padding: .25rem; gap: .3rem; }
  .services .service-icon { width: 1.4rem; height: 1.4rem; font-size: .85rem; }
  .services strong { font-size: .78rem; }
  .services small { font-size: .64rem; line-height: 1.1; }
  .service-state { font-size: .66rem; margin-top: 0; }
  .dial { width: min(100%, 3.4rem); margin-bottom: .08rem; }
  .dial::before { inset: .24rem; }
  .dial b { font-size: .95rem; }
  .dial span { font-size: .6rem; }
  .gauges small { font-size: .62rem; min-height: 1em; }
  .chart { padding: 0 .5rem .3rem; }
  .chart figcaption { font-size: .7rem; }
  .chart svg { height: 1.6rem; }
  .network { padding: .3rem; }
  .network-node, .network-link {
    grid-template-columns: 1.6rem minmax(0, 1fr);
    gap: .35rem; padding: .12rem .3rem; font-size: .72rem;
  }
  .network-icon { width: 1.6rem; height: 1.6rem; font-size: .8rem; }
  .network-node strong, .network-link strong { font-size: .72rem; }
  .network small { font-size: .62rem; line-height: 1.15; }
  .network-line { margin-block: -.12rem; }
  .panel-note { font-size: .62rem; padding: .2rem .45rem .35rem; gap: .2rem; }
  #events { padding: .1rem .45rem; }
  #events li { font-size: .68rem; padding: .18rem 0; }
  .shortcuts > * { padding: .2rem; gap: .1rem; font-size: .66rem; }
  .shortcuts .ico { width: 1.2rem; height: 1.2rem; }
  .freshness { font-size: .62rem; padding-inline-end: 6.5rem; }
  .sidebar-header { padding: .35rem .55rem; }
  .brand svg { width: 2rem; }
  .brand strong { font-size: 1.4rem; }
  .sidebar nav { padding: .3rem .35rem .4rem; }
  .sidebar nav h2 { padding: .38rem .45rem .1rem; font-size: .6rem; }
  .sidebar nav a, .sidebar nav button {
    min-height: 1.7rem; padding: .1rem .4rem; gap: .4rem; font-size: .78rem;
  }
  .nav-icon { width: 1.45rem; height: 1.45rem; font-size: .8rem; }
  .nav-group, .nav-actions { margin-top: .25rem; padding-top: .2rem; }
  .nav-meta { display: none; }
  .sidebar footer { display: none; }
  @container (max-width: 900px) {
    .services small { display: none; }
  }
}
@container (max-width: 720px) {
  .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #acessos { grid-column: 1 / -1; }
}
@container (max-width: 650px) {
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .middle, .bottom, .kiosk .bottom { grid-template-columns: minmax(0, 1fr); }
  .hero { flex-wrap: wrap; }
  .hero h1 { font-size: 1.85rem; }
  .clock { order: 1; }
}
@container (max-width: 360px) {
  .summary, .services { grid-template-columns: minmax(0, 1fr); }
  .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 901px) {
  html[data-sidebar-collapsed] { --sidebar-w: var(--sidebar-w-rail); }
  [data-sidebar-collapsed] .sidebar-header {
    flex-direction: column; gap: .45rem; padding: .7rem .4rem .6rem;
  }
  [data-sidebar-collapsed] .brand { justify-content: center; padding: 0; }
  [data-sidebar-collapsed] .brand > span {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  [data-sidebar-collapsed] .brand svg { width: 2.1rem; }
  [data-sidebar-collapsed] .sidebar-collapse { margin-left: 0; width: 1.9rem; height: 1.9rem; }
  [data-sidebar-collapsed] .sidebar-collapse svg { transform: rotate(180deg); }
  [data-sidebar-collapsed] .sidebar nav { padding: .45rem .38rem .7rem; }
  [data-sidebar-collapsed] .sidebar nav h2 {
    display: flex; align-items: center; padding: .42rem .2rem; font-size: 0;
  }
  [data-sidebar-collapsed] .sidebar nav h2::before {
    content: ""; flex: 1; height: 1px; background: #245a49;
  }
  [data-sidebar-collapsed] .nav-label,
  [data-sidebar-collapsed] .nav-external { display: none; }
  [data-sidebar-collapsed] .nav-meta {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  [data-sidebar-collapsed] .sidebar nav :is(a, button) {
    justify-content: center; gap: 0; padding: .3rem .2rem; min-height: 2.6rem;
  }
  [data-sidebar-collapsed] .sidebar nav :is(a, button):hover { transform: none; }
  [data-sidebar-collapsed] .nav-icon { width: 2rem; height: 2rem; font-size: 1.02rem; }
  [data-sidebar-collapsed] .nav-state {
    position: absolute; top: .3rem; right: .35rem; width: .5rem; height: .5rem;
    border: 0; font-size: 0; background: var(--nav-indicator, var(--muted));
    box-shadow: 0 0 0 2px #071d17;
  }
  [data-sidebar-collapsed] .sidebar footer { display: none; }
}

@media (min-width: 701px) and (max-width: 900px) and (min-height: 701px) {
  .services small, .summary .icon { display: none; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; padding: .45rem; }
  .services article { padding: .35rem; gap: .35rem; }
  .services strong { font-size: .82rem; }
  .services .service-state { font-size: .7rem; }
  .shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shortcuts > * { font-size: .7rem; padding: .3rem; }
  .shortcuts .ico { width: 1.35rem; height: 1.35rem; }
  .hero { min-height: 5rem; }
  .board { gap: .6rem; padding-block: .5rem; }
  .summary article { min-height: 4.6rem; padding: .55rem; }
}
@media (max-width: 900px) {
  body { display: block; }
  .sidebar { z-index: 1; height: auto; max-height: 100dvh; border-right: 0; border-bottom: 1px solid #3a9c57; }
  .sidebar:not([data-menu-ready]) { position: static; max-height: none; overflow: visible; }
  .sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
  .brand { padding: .55rem .7rem; border: 0; }
  .brand svg { width: 2.05rem; }
  .brand strong { font-size: 1.5rem; }
  .brand small { font-size: .74rem; }
  .sidebar-collapse { display: none; }
  .menu-toggle {
    display: block; min-height: 2.85rem; margin-right: .65rem; padding: .4rem .72rem;
    border: 1px solid var(--line); border-radius: .5rem; background: #0a2d24; color: inherit;
    font: inherit; cursor: pointer; white-space: nowrap;
  }
  .sidebar[data-menu-ready] .menu-toggle[aria-expanded="false"] { background: #09231d; }
  .sidebar[data-menu-ready]:not([data-menu-open]) nav, .sidebar footer { display: none; }
  .sidebar nav :is(a, button) { min-height: 2.85rem; }
  main, main [id][tabindex="-1"] { scroll-margin-top: 4.5rem; }
}
@media (min-width: 701px) and (max-width: 900px) and (max-height: 700px) {
  body {
    min-height: 100dvh; display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  #conteudo { min-height: 0; }
  .board { flex: 1; padding-block: .2rem; grid-template-rows: auto auto minmax(min-content, 1fr) auto; }
  .middle, .bottom, .panel { min-height: 0; }
  .panel { display: flex; flex-direction: column; }
  .services, .shortcuts { flex: 1; }
  .network { flex: 1; justify-content: center; }
  .chart, #eventos .panel-note { margin-top: auto; }
}
