﻿    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --w1: #00B4D8;
      --w2: #0077B6;
      --w3: #023E8A;
      --w4: #03045E;
      --a1: #48CAE4;
      --a2: #90E0EF;
      --a3: #CAF0F8;
      --ok: #06D6A0;
      --okl: #E8FFF9;
      --warn: #FFB703;
      --warnl: #FFF8E6;
      --err: #EF233C;
      --errl: #FFF0F3;
      --bg: #ffffff;
      --bg2: #f0f6fb;
      --bg3: #e4f2fa;
      --txt: #03045E;
      --txt2: #5a6a80;
      --txt3: #94a3b8;
      --bd: rgba(0, 119, 182, 0.15);
      --rm: 14px;
      --rlg: 20px;
      --font: 'Plus Jakarta Sans', system-ui, sans-serif;
      --body: 'Plus Jakarta Sans', system-ui, sans-serif;
      --shell-w: 390px;
      --shadow: 0 24px 64px rgba(0,50,120,0.16);
    }

    html, body {
      min-height: 100vh;
      font-family: var(--body);
      background: #c8e6f5;
    }

    /* ═══════════════════════════════════════════════════
       LAYOUT RESPONSIVO COMPLETO
       xs  → < 360px   (celular muito pequeno)
       sm  → 360–599px (celular padrão)
       md  → 600–767px (celular grande / phablet)
       lg  → 768–1023px (tablet portrait & landscape)
       xl  → 1024–1439px (notebook / laptop)
       2xl → 1440–1919px (desktop / monitor)
       3xl → 1920px+  (TV / monitor ultra-wide)
    ════════════════════════════════════════════════════ */

    body {
      display: flex;
      justify-content: center;
      align-items: flex-start;
    }

    /* ── Painel direito: oculto por padrão, aparece em xl+ ── */
    .desktop-panel { display: none; }

    /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
       CELULAR MUITO PEQUENO (< 360px)
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
    @media (max-width: 359px) {
      body { background: var(--bg); padding: 0; align-items: stretch; }
      .shell { width: 100%; min-height: 100dvh; border-radius: 0; box-shadow: none; }

      .hc-value        { font-size: 28px; letter-spacing: -1px; }
      .hc-unit         { font-size: 13px; }
      .hc-row          { flex-wrap: wrap; gap: 6px; }
      .hc-stat         { min-width: calc(50% - 3px); flex: none; padding: 8px; }
      .hc-stat-value   { font-size: 14px; }
      .hc-stat-label   { font-size: 9px; }
      .hc-stat-diff    { font-size: 9px; }

      .fatura-value    { font-size: 22px; }
      .fatura-icon     { width: 40px; height: 40px; font-size: 18px; }

      .card            { padding: 12px; border-radius: 16px; }
      .card-title      { font-size: 11px; }

      .bottom-nav      { height: 60px; }
      .nav-icon        { font-size: 19px; }
      .nav-label       { font-size: 9px; }

      .ah-name         { font-size: 16px; }
      .ah-greeting     { font-size: 11px; }
      .ah-avatar       { width: 38px; height: 38px; font-size: 17px; }

      .notif-summary   { grid-template-columns: 1fr 1fr; gap: 8px; }
      .ns-count        { font-size: 22px; }

      .app-name        { font-size: 26px; }
      .splash-bottom   { padding: 24px 16px 32px; }

      .sstat-value     { font-size: 18px; }
      .gauge-val       { font-size: 22px; }

      .btn-primary, .btn-outline { height: 46px; font-size: 14px; }
      .field-input     { height: 44px; font-size: 14px; }
    }

    /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
       CELULAR PADRÃO (360–599px)
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
    @media (min-width: 360px) and (max-width: 599px) {
      body { background: var(--bg); padding: 0; align-items: stretch; }
      .shell { width: 100%; min-height: 100dvh; border-radius: 0; box-shadow: none; }

      .hc-value        { font-size: 36px; }
      .hc-stat-value   { font-size: 16px; }
      .card            { padding: 14px; }
      .notif-summary   { grid-template-columns: 1fr 1fr; }
    }

    /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
       CELULAR GRANDE / PHABLET (600–767px)
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
    @media (min-width: 600px) and (max-width: 767px) {
      body {
        background:
          radial-gradient(ellipse 80% 60% at 50% 10%, rgba(0,180,216,0.15) 0%, transparent 60%),
          linear-gradient(180deg, #d4eef9 0%, #c0e5f6 100%);
        padding: 24px 16px 32px;
        align-items: flex-start;
      }
      .shell {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        border-radius: 32px;
        box-shadow: var(--shadow);
        min-height: 600px;
      }
      .hc-value { font-size: 40px; }
      .notif-summary { grid-template-columns: repeat(4, 1fr); }
    }

    /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
       TABLET (768–1023px)
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
    @media (min-width: 768px) and (max-width: 1023px) {
      :root { --shell-w: 580px; }

      body {
        background:
          radial-gradient(ellipse 80% 50% at 20% 30%, rgba(0,180,216,0.2) 0%, transparent 60%),
          radial-gradient(ellipse 60% 60% at 80% 70%, rgba(0,119,182,0.14) 0%, transparent 60%),
          linear-gradient(160deg, #cce9f7 0%, #b8dff4 40%, #a8d5ef 100%);
        min-height: 100vh;
        padding: 40px 32px;
        align-items: flex-start;
        justify-content: center;
      }
      .shell {
        width: var(--shell-w);
        min-height: 700px;
        max-height: calc(100vh - 80px);
        border-radius: 36px;
        box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.5);
        position: sticky;
        top: 40px;
        overflow: hidden;
      }

      /* Aproveita espaço do tablet */
      .notif-summary   { grid-template-columns: repeat(4, 1fr); }
      .sindico-stats   { grid-template-columns: repeat(3, 1fr); }
      .hc-value        { font-size: 50px; }
      .card            { padding: 20px; }
      .hc-stat-value   { font-size: 20px; }
      .fatura-value    { font-size: 32px; }
      .sstat-value     { font-size: 26px; }
    }

    /* Tablet landscape */
    @media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {
      body { padding: 16px 32px; }
      .shell { max-height: calc(100vh - 32px); top: 16px; }
    }

    /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
       NOTEBOOK / LAPTOP (1024–1439px)
       Layout: shell fixo à esquerda + painel direito
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
    @media (min-width: 1024px) and (max-width: 1439px) {
      :root { --shell-w: 420px; }

      body {
        flex-direction: row;
        align-items: stretch;
        padding: 0;
        gap: 0;
        background:
          radial-gradient(ellipse 70% 60% at 15% 25%, rgba(0,180,216,0.22) 0%, transparent 55%),
          radial-gradient(ellipse 55% 70% at 85% 75%, rgba(0,119,182,0.16) 0%, transparent 55%),
          linear-gradient(150deg, #d2eef9 0%, #bce0f5 50%, #a8d5ef 100%);
        min-height: 100vh;
      }
      .shell {
        width: var(--shell-w);
        min-height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: 8px 0 40px rgba(0,50,120,0.12);
        position: sticky;
        top: 0;
        flex-shrink: 0;
        overflow: hidden;
      }
      .desktop-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 40px 36px;
        overflow-y: auto;
        gap: 20px;
      }

      .notif-summary  { grid-template-columns: 1fr 1fr; }
      .sindico-stats  { grid-template-columns: repeat(2, 1fr); }
      .hc-value       { font-size: 44px; }
      .hc-stat-value  { font-size: 17px; }
    }

    /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
       DESKTOP / MONITOR (1440–1919px)
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
    @media (min-width: 1440px) and (max-width: 1919px) {
      :root { --shell-w: 440px; }

      body {
        flex-direction: row;
        align-items: stretch;
        padding: 0;
        background:
          radial-gradient(ellipse 60% 70% at 10% 20%, rgba(0,180,216,0.2) 0%, transparent 50%),
          radial-gradient(ellipse 50% 60% at 90% 80%, rgba(0,119,182,0.15) 0%, transparent 50%),
          linear-gradient(140deg, #d8f1fb 0%, #c0e5f5 45%, #aad3ec 100%);
        min-height: 100vh;
      }
      .shell {
        width: var(--shell-w);
        min-height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: 12px 0 60px rgba(0,50,120,0.14);
        position: sticky;
        top: 0;
        flex-shrink: 0;
        overflow: hidden;
      }
      .desktop-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 56px 60px;
        overflow-y: auto;
        gap: 28px;
        max-width: 1000px;
      }

      .notif-summary  { grid-template-columns: 1fr 1fr; }
      .sindico-stats  { grid-template-columns: repeat(3, 1fr); }
      .hc-value       { font-size: 50px; }
      .card           { padding: 22px; }
      .hc-stat-value  { font-size: 19px; }
      .fatura-value   { font-size: 30px; }
    }

    /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
       TV / ULTRA-WIDE (1920px+)
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
    @media (min-width: 1920px) {
      :root { --shell-w: 500px; }

      body {
        flex-direction: row;
        align-items: stretch;
        padding: 0;
        background:
          radial-gradient(ellipse 55% 65% at 8% 18%, rgba(0,180,216,0.18) 0%, transparent 50%),
          radial-gradient(ellipse 45% 55% at 92% 82%, rgba(0,119,182,0.13) 0%, transparent 50%),
          linear-gradient(135deg, #daf3fc 0%, #c5e9f7 40%, #b0d8ee 100%);
        min-height: 100vh;
      }
      .shell {
        width: var(--shell-w);
        min-height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: 16px 0 80px rgba(0,50,120,0.16);
        position: sticky;
        top: 0;
        flex-shrink: 0;
        overflow: hidden;
      }
      .desktop-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 72px 96px;
        overflow-y: auto;
        gap: 36px;
        max-width: 1200px;
      }

      /* Escala para tela grande */
      .hc-value       { font-size: 54px; }
      .card           { padding: 26px; border-radius: 24px; }
      .hc-stat-value  { font-size: 21px; }
      .fatura-value   { font-size: 34px; }
      .sstat-value    { font-size: 28px; }
      .dp-stat-value  { font-size: 32px; }
      .notif-summary  { grid-template-columns: 1fr 1fr; }
      .sindico-stats  { grid-template-columns: repeat(3, 1fr); }
      .ah-name        { font-size: 22px; }
      .nav-icon       { font-size: 24px; }
      .nav-label      { font-size: 11px; }
      .bottom-nav     { height: 80px; }
      .btn-primary, .btn-outline { height: 56px; font-size: 16px; }
      .field-input    { height: 54px; font-size: 16px; }
    }

    .shell {
      background: var(--bg);
      color: var(--txt);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      position: relative;
    }

    /* ═══════════════════════════════
       SCREENS
    ════════════════════════════════ */
    .screen { display: none; flex-direction: column; flex: 1; }
    .screen.on { display: flex; }

    /* ═══════════════════════════════
       SPLASH
    ════════════════════════════════ */
    .splash {
      flex: 1;
      display: flex;
      flex-direction: column;
      background: linear-gradient(180deg, #e2f4fb 0%, #d0ecf8 100%);
    }
    .splash-top {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 48px 24px 24px;
      position: relative;
    }
    .splash-circle-bg {
      position: absolute;
      width: 300px; height: 300px;
      border-radius: 50%;
      background: rgba(255,255,255,0.3);
      top: 50%; left: 50%;
      transform: translate(-50%, -58%);
      filter: blur(2px);
    }
    .splash-bottom {
      background: var(--bg);
      border-radius: 36px 36px 0 0;
      padding: 32px 24px 40px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .app-name {
      font-family: var(--font);
      font-size: 36px;
      font-weight: 800;
      letter-spacing: -1.5px;
      color: var(--w3);
      position: relative; z-index: 1;
      margin-top: 14px;
    }
    .app-name span { color: var(--w1); }
    .app-tagline {
      font-size: 13px;
      color: var(--txt2);
      margin-top: 4px;
      text-align: center;
      position: relative; z-index: 1;
    }

    /* ═══════════════════════════════
       WAVE HEADER
    ════════════════════════════════ */
    .wave-header {
      background: linear-gradient(135deg, var(--w2), var(--w3));
      padding: 20px 22px 54px;
      position: relative;
      overflow: hidden;
    }
    .wave-header::before {
      content: '';
      position: absolute;
      top: -60px; right: -60px;
      width: 200px; height: 200px;
      border-radius: 50%;
      background: rgba(255,255,255,0.07);
    }
    .wave-header::after {
      content: '';
      position: absolute;
      bottom: -2px; left: 0; right: 0;
      height: 36px;
      background: var(--bg);
      border-radius: 36px 36px 0 0;
    }
    .wh-back {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(255,255,255,0.15);
      border: none;
      color: #fff;
      font-size: 12px;
      font-weight: 600;
      padding: 7px 14px;
      border-radius: 20px;
      cursor: pointer;
      font-family: var(--body);
      margin-bottom: 16px;
    }
    .wh-logo { display: flex; align-items: center; gap: 10px; }
    .wh-title {
      font-family: var(--font);
      font-size: 22px;
      font-weight: 800;
      color: #fff;
      letter-spacing: -0.5px;
    }
    .wh-sub { font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 2px; }

    /* ═══════════════════════════════
       APP SHELL (DASHBOARD)
    ════════════════════════════════ */
    .app-header {
      background: linear-gradient(135deg, var(--w2), var(--w3));
      padding: 20px 20px 58px;
      position: relative;
      overflow: hidden;
    }
    .app-header::before {
      content: '';
      position: absolute;
      top: -80px; right: -80px;
      width: 240px; height: 240px;
      border-radius: 50%;
      background: rgba(255,255,255,0.06);
    }
    .app-header::after {
      content: '';
      position: absolute;
      bottom: -2px; left: 0; right: 0;
      height: 36px;
      background: var(--bg2);
      border-radius: 36px 36px 0 0;
    }
    .ah-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative; z-index: 1;
    }
    .ah-greeting { font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 500; }
    .ah-name { font-family: var(--font); font-size: 20px; font-weight: 800; color: #fff; margin-top: 2px; }
    .ah-avatar {
      width: 44px; height: 44px;
      border-radius: 50%;
      background: rgba(255,255,255,0.22);
      display: flex; align-items: center; justify-content: center;
      font-size: 20px;
      border: 2px solid rgba(255,255,255,0.35);
      cursor: pointer;
    }

    .app-content {
      flex: 1;
      background: var(--bg2);
      padding: 0 16px 100px;
      padding: 0 16px calc(100px + env(safe-area-inset-bottom, 0px));
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    /* ═══════════════════════════════
       BOTTOM NAV
    ════════════════════════════════ */
    .bottom-nav {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 72px;
      height: calc(72px + env(safe-area-inset-bottom, 0px));
      padding-bottom: env(safe-area-inset-bottom, 0px);
      background: var(--bg);
      border-top: 1px solid var(--bd);
      display: flex;
      z-index: 100;
      box-shadow: 0 -8px 24px rgba(0,50,120,0.08);
    }
    .nav-item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      cursor: pointer;
      position: relative;
      border: none;
      background: none;
      font-family: var(--body);
      transition: color 0.15s;
      color: var(--txt3);
      padding-bottom: 8px;
    }
    .nav-item.active { color: var(--w1); }
    .nav-item .nav-icon { font-size: 22px; line-height: 1; }
    .nav-item .nav-label { font-size: 10px; font-weight: 600; letter-spacing: 0.02em; }
    .nav-item.active::before {
      content: '';
      position: absolute;
      top: 0; left: 50%; transform: translateX(-50%);
      width: 32px; height: 3px;
      background: var(--w1);
      border-radius: 0 0 4px 4px;
    }
    .nav-badge {
      position: absolute;
      top: 10px;
      right: calc(50% - 18px);
      background: var(--err);
      color: #fff;
      font-size: 9px;
      font-weight: 700;
      min-width: 16px; height: 16px;
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      padding: 0 4px;
      border: 2px solid var(--bg);
    }

    /* ═══════════════════════════════
       CARDS
    ════════════════════════════════ */
    .card {
      background: var(--bg);
      border-radius: 20px;
      padding: 18px;
      margin-bottom: 14px;
      box-shadow: 0 2px 12px rgba(0,50,120,0.07);
    }
    .card-title {
      font-family: var(--font);
      font-size: 13px;
      font-weight: 700;
      color: var(--txt2);
      letter-spacing: 0.04em;
      text-transform: uppercase;
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .card-title-action {
      font-size: 11px;
      color: var(--w1);
      font-family: var(--body);
      font-weight: 600;
      text-transform: none;
      letter-spacing: 0;
      cursor: pointer;
      border: none;
      background: none;
    }

    /* ─── Consumo Hero ─── */
    .hero-consumption {
      background: linear-gradient(135deg, var(--w2) 0%, var(--w4) 100%);
      border-radius: 24px;
      padding: 22px 20px;
      margin-bottom: 14px;
      color: #fff;
      position: relative;
      overflow: hidden;
    }
    .hero-consumption::before {
      content: '';
      position: absolute;
      top: -60px; right: -40px;
      width: 180px; height: 180px;
      border-radius: 50%;
      background: rgba(255,255,255,0.07);
    }
    .hc-label { font-size: 12px; color: rgba(255,255,255,0.65); font-weight: 500; }
    .hc-value {
      font-family: var(--font);
      font-size: 48px;
      font-weight: 800;
      letter-spacing: -2px;
      line-height: 1;
      margin: 6px 0 2px;
    }
    .hc-unit { font-size: 16px; font-weight: 400; opacity: 0.7; margin-left: 4px; }
    .hc-sub { font-size: 12px; color: rgba(255,255,255,0.6); }
    .hc-row {
      display: flex; gap: 10px;
      margin-top: 16px;
    }
    .hc-stat {
      flex: 1;
      background: rgba(255,255,255,0.12);
      border-radius: 14px;
      padding: 12px;
      border: 1px solid rgba(255,255,255,0.1);
    }
    .hc-stat-label { font-size: 10px; color: rgba(255,255,255,0.55); font-weight: 600; }
    .hc-stat-value { font-family: var(--font); font-size: 18px; font-weight: 800; color: #fff; margin-top: 4px; }
    .hc-stat-diff {
      font-size: 10px; color: var(--a2);
      margin-top: 2px; display: flex; align-items: center; gap: 2px;
    }

    /* ─── Gauge ─── */
    .gauge-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 8px 0;
    }
    .gauge-svg { overflow: visible; }
    .gauge-val {
      font-family: var(--font);
      font-size: 28px;
      font-weight: 800;
      color: var(--txt);
      text-anchor: middle;
    }
    .gauge-sub {
      font-size: 11px;
      color: var(--txt2);
      text-anchor: middle;
      font-family: var(--body);
    }

    /* ─── Mini chart ─── */
    .chart-wrap { width: 100%; overflow: visible; }
    .chart-bar { cursor: pointer; transition: opacity 0.15s; }
    .chart-bar:hover { opacity: 0.75; }
    .chart-x-label { font-size: 9px; fill: var(--txt2); font-family: var(--body); text-anchor: middle; }
    .chart-grid { stroke: var(--bd); stroke-dasharray: 3,3; }

    /* ─── Período selector ─── */
    .period-tabs {
      display: flex;
      gap: 6px;
      margin-bottom: 14px;
    }
    .period-tab {
      flex: 1;
      padding: 8px;
      border: 1.5px solid var(--bd);
      border-radius: 10px;
      font-size: 11px;
      font-weight: 700;
      font-family: var(--font);
      color: var(--txt2);
      background: var(--bg);
      cursor: pointer;
      transition: all 0.15s;
    }
    .period-tab.active {
      background: var(--w1);
      border-color: var(--w1);
      color: #fff;
    }

    /* ─── Fatura estimada ─── */
    .fatura-card {
      display: flex;
      align-items: center;
      gap: 14px;
      background: linear-gradient(135deg, #e8f7fd, #d0eef9);
      border-radius: 18px;
      padding: 16px 18px;
      margin-bottom: 14px;
      border: 1.5px solid rgba(0,180,216,0.2);
    }
    .fatura-icon {
      width: 48px; height: 48px;
      background: var(--w2);
      border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      font-size: 22px;
      flex-shrink: 0;
    }
    .fatura-label { font-size: 11px; font-weight: 600; color: var(--txt2); text-transform: uppercase; letter-spacing: 0.04em; }
    .fatura-value { font-family: var(--font); font-size: 28px; font-weight: 800; color: var(--w3); letter-spacing: -1px; margin-top: 2px; }
    .fatura-sub { font-size: 11px; color: var(--txt2); margin-top: 2px; }

    /* ─── Tips ─── */
    .tip-item {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      padding: 12px 0;
      border-bottom: 1px solid var(--bd);
    }
    .tip-item:last-child { border-bottom: none; padding-bottom: 0; }
    .tip-emoji { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
    .tip-title { font-size: 13px; font-weight: 600; color: var(--txt); }
    .tip-desc { font-size: 11px; color: var(--txt2); margin-top: 3px; line-height: 1.5; }

    /* ═══════════════════════════════
       NOTIFICAÇÕES
    ════════════════════════════════ */
    .notif-filter {
      display: flex;
      gap: 6px;
      margin-bottom: 16px;
      flex-wrap: wrap;
    }
    .notif-chip {
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 700;
      font-family: var(--font);
      border: 1.5px solid var(--bd);
      background: var(--bg);
      color: var(--txt2);
      cursor: pointer;
      transition: all 0.15s;
    }
    .notif-chip.active { background: var(--w2); border-color: var(--w2); color: #fff; }

    .notif-item {
      display: flex;
      gap: 14px;
      padding: 16px 18px;
      background: var(--bg);
      border-radius: 18px;
      margin-bottom: 10px;
      border-left: 4px solid transparent;
      box-shadow: 0 2px 10px rgba(0,50,120,0.06);
      position: relative;
      cursor: pointer;
      transition: transform 0.15s;
    }
    .notif-item:active { transform: scale(0.99); }
    .notif-item.nivel-critico { border-left-color: var(--err); }
    .notif-item.nivel-alerta { border-left-color: var(--warn); }
    .notif-item.nivel-info { border-left-color: var(--w1); }
    .notif-item.nivel-ok { border-left-color: var(--ok); }
    .notif-unread {
      position: absolute;
      top: 16px; right: 16px;
      width: 8px; height: 8px;
      border-radius: 50%;
      background: var(--w1);
    }

    .notif-icon-wrap {
      width: 44px; height: 44px;
      border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      font-size: 20px;
      flex-shrink: 0;
    }
    .notif-icon-wrap.critico { background: var(--errl); }
    .notif-icon-wrap.alerta { background: var(--warnl); }
    .notif-icon-wrap.info { background: var(--a3); }
    .notif-icon-wrap.ok { background: var(--okl); }

    .notif-title { font-size: 13px; font-weight: 700; color: var(--txt); line-height: 1.4; }
    .notif-desc { font-size: 12px; color: var(--txt2); margin-top: 4px; line-height: 1.5; }
    .notif-time { font-size: 10px; color: var(--txt3); margin-top: 6px; }

    .notif-summary {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-bottom: 16px;
    }
    .ns-card {
      border-radius: 16px;
      padding: 14px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
    }
    .ns-card.critico { background: var(--errl); }
    .ns-card.alerta { background: var(--warnl); }
    .ns-card.info { background: var(--a3); }
    .ns-card.ok { background: var(--okl); }
    .ns-count { font-family: var(--font); font-size: 28px; font-weight: 800; }
    .ns-card.critico .ns-count { color: var(--err); }
    .ns-card.alerta .ns-count { color: var(--warn); }
    .ns-card.info .ns-count { color: var(--w2); }
    .ns-card.ok .ns-count { color: var(--ok); }
    .ns-label { font-size: 11px; font-weight: 600; color: var(--txt2); }

    /* ═══════════════════════════════
       VISÃO DO SÍNDICO
    ════════════════════════════════ */
    .sindico-lock {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 40px 28px;
      text-align: center;
      gap: 12px;
    }
    .lock-circle {
      width: 80px; height: 80px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--a3), var(--a2));
      display: flex; align-items: center; justify-content: center;
      font-size: 36px;
      margin-bottom: 4px;
    }
    .lock-title { font-family: var(--font); font-size: 22px; font-weight: 800; color: var(--txt); }
    .lock-sub { font-size: 14px; color: var(--txt2); line-height: 1.6; max-width: 260px; }

    .sindico-panel {
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    .sindico-embed-wrap {
      flex: 1;
      background: var(--bg2);
      display: flex;
      flex-direction: column;
      padding: 0 16px 100px;
      gap: 14px;
    }
    .g5-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: linear-gradient(90deg, var(--w3), var(--w1));
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      padding: 5px 14px;
      border-radius: 20px;
      font-family: var(--font);
      align-self: flex-start;
      margin-bottom: 4px;
    }
    .g5-iframe-container {
      flex: 1;
      background: var(--bg);
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 2px 12px rgba(0,50,120,0.09);
      min-height: 400px;
      border: 2px solid var(--bd);
    }
    .g5-iframe-container iframe {
      width: 100%;
      height: 100%;
      min-height: 400px;
      border: none;
      display: block;
    }
    .g5-placeholder {
      width: 100%;
      height: 100%;
      min-height: 400px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 32px;
      text-align: center;
      background: linear-gradient(160deg, #f0f6fb, #e4f2fa);
    }
    .g5-placeholder-icon { font-size: 48px; }
    .g5-placeholder-title { font-family: var(--font); font-size: 17px; font-weight: 800; color: var(--txt); }
    .g5-placeholder-desc { font-size: 12px; color: var(--txt2); line-height: 1.6; max-width: 240px; }
    .g5-url-input-wrap {
      display: flex;
      gap: 8px;
      margin-top: 8px;
      width: 100%;
      max-width: 320px;
    }
    .g5-url-input {
      flex: 1;
      padding: 10px 14px;
      border: 1.5px solid var(--bd);
      border-radius: 10px;
      font-size: 12px;
      font-family: var(--body);
      background: var(--bg);
      color: var(--txt);
      outline: none;
    }
    .g5-url-input:focus { border-color: var(--w1); }
    .g5-btn-load {
      padding: 10px 16px;
      background: var(--w2);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-size: 12px;
      font-weight: 700;
      font-family: var(--font);
      cursor: pointer;
    }

    .sindico-stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    .sstat {
      background: var(--bg);
      border-radius: 16px;
      padding: 14px;
      box-shadow: 0 2px 8px rgba(0,50,120,0.06);
    }
    .sstat-label { font-size: 10px; font-weight: 600; color: var(--txt2); text-transform: uppercase; letter-spacing: 0.04em; }
    .sstat-value { font-family: var(--font); font-size: 22px; font-weight: 800; color: var(--w2); margin-top: 4px; }
    .sstat-unit { font-size: 11px; font-weight: 400; color: var(--txt2); }

    /* ═══════════════════════════════
       PERFIL
    ════════════════════════════════ */
    .profile-header {
      background: linear-gradient(135deg, var(--w3), var(--w4));
      padding: 24px 20px 60px;
      text-align: center;
      position: relative;
    }
    .profile-header::after {
      content: '';
      position: absolute;
      bottom: -2px; left: 0; right: 0;
      height: 36px;
      background: var(--bg2);
      border-radius: 36px 36px 0 0;
    }
    .profile-avatar {
      width: 72px; height: 72px;
      border-radius: 50%;
      background: rgba(255,255,255,0.2);
      margin: 0 auto 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 34px;
      border: 3px solid rgba(255,255,255,0.3);
    }
    .profile-name { font-family: var(--font); font-size: 20px; font-weight: 800; color: #fff; }
    .profile-info { font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 4px; }

    .profile-menu {
      background: var(--bg2);
      flex: 1;
      padding: 8px 16px 100px;
      padding: 8px 16px calc(100px + env(safe-area-inset-bottom, 0px));
    }
    .menu-section { margin-bottom: 20px; }
    .menu-section-title {
      font-size: 10px;
      font-weight: 700;
      color: var(--txt3);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      padding: 10px 4px 8px;
    }
    .menu-item {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 14px 16px;
      background: var(--bg);
      border-radius: 14px;
      margin-bottom: 6px;
      cursor: pointer;
      transition: background 0.15s;
      border: none;
      width: 100%;
      text-align: left;
      font-family: var(--body);
    }
    .menu-item:hover { background: var(--a3); }
    .menu-icon {
      width: 38px; height: 38px;
      border-radius: 11px;
      background: var(--bg3);
      display: flex; align-items: center; justify-content: center;
      font-size: 18px;
    }
    .menu-text { flex: 1; }
    .menu-label { font-size: 14px; font-weight: 600; color: var(--txt); }
    .menu-desc { font-size: 11px; color: var(--txt2); margin-top: 1px; }
    .menu-arrow { color: var(--txt3); font-size: 14px; }

    /* ═══════════════════════════════
       BOTÕES / CAMPOS (Login/Cadastro)
    ════════════════════════════════ */
    .card-body { flex: 1; padding: 22px 22px 36px; background: var(--bg); }
    .btn-primary {
      width: 100%;
      height: 52px;
      background: var(--w2);
      color: #fff;
      border: none;
      border-radius: var(--rm);
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      font-family: var(--font);
      letter-spacing: 0.2px;
      transition: opacity 0.15s, transform 0.1s, background 0.15s;
      display: flex; align-items: center; justify-content: center; gap: 8px;
    }
    .btn-primary:active { transform: scale(0.98); opacity: 0.9; }
    .btn-primary:hover { background: var(--w3); }
    .btn-outline {
      width: 100%;
      height: 52px;
      background: var(--bg);
      border: 1.5px solid var(--w1);
      color: var(--w2);
      border-radius: var(--rm);
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      font-family: var(--font);
      transition: background 0.15s;
    }
    .btn-outline:hover { background: var(--a3); }

    .field-group { margin-bottom: 16px; }
    .field-label {
      font-size: 11px; font-weight: 700; color: var(--txt2);
      letter-spacing: 0.06em; text-transform: uppercase;
      margin-bottom: 7px; display: block;
    }
    .field-wrap { position: relative; }
    .field-input {
      width: 100%; height: 50px;
      border: 1.5px solid var(--bd);
      border-radius: var(--rm);
      background: var(--bg2);
      color: var(--txt);
      font-size: 15px;
      padding: 0 46px 0 16px;
      font-family: var(--body);
      outline: none;
      transition: border-color 0.15s, background 0.15s;
    }
    .field-input:focus { border-color: var(--w1); background: var(--bg); box-shadow: 0 0 0 3px rgba(0,180,216,0.1); }
    .field-input.err { border-color: var(--err); background: var(--errl); }
    .field-icon {
      position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
      font-size: 17px; cursor: pointer; user-select: none; color: var(--txt2);
    }
    .field-err { font-size: 11px; color: var(--err); margin-top: 5px; display: none; font-weight: 500; }
    .field-err.on { display: block; }
    .field-hint { font-size: 11px; color: var(--txt2); margin-top: 5px; }

    .role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
    .role-card { border: 1.5px solid var(--bd); border-radius: var(--rlg); padding: 16px 12px; cursor: pointer; text-align: center; transition: border-color 0.15s, background 0.15s; background: var(--bg); }
    .role-card.selected { border-color: var(--w1); background: #EAF8FD; }
    .role-icon-wrap { width: 46px; height: 46px; border-radius: 14px; background: var(--a3); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 22px; }
    .role-card.selected .role-icon-wrap { background: var(--w1); }
    .role-name { font-size: 13px; font-weight: 700; color: var(--txt); font-family: var(--font); }
    .role-desc { font-size: 10px; color: var(--txt2); margin-top: 3px; line-height: 1.4; }

    .strength-bar { display: flex; gap: 5px; margin-top: 8px; }
    .seg { flex: 1; height: 4px; border-radius: 2px; background: var(--bd); transition: background 0.2s; }
    .str-label { font-size: 11px; color: var(--txt2); margin-top: 5px; font-weight: 500; }

    .progress-wrap { margin-bottom: 22px; }
    .step-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
    .step-num { font-size: 11px; font-weight: 700; color: var(--w1); font-family: var(--font); }
    .step-of { font-size: 11px; color: var(--txt2); }
    .progress-track { height: 4px; background: var(--bd); border-radius: 2px; overflow: hidden; }
    .progress-fill { height: 100%; background: var(--w1); border-radius: 2px; transition: width 0.3s; }

    .divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
    .div-line { flex: 1; height: 0.5px; background: var(--bd); }
    .div-txt { font-size: 12px; color: var(--txt2); }

    .forgot-row { text-align: right; margin: -4px 0 14px; }
    .forgot-row button { background: none; border: none; color: var(--w1); font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--body); }
    .link-row { text-align: center; margin-top: 16px; font-size: 13px; color: var(--txt2); }
    .link-btn { background: none; border: none; color: var(--w2); font-weight: 700; cursor: pointer; font-size: 13px; font-family: var(--body); }

    .success-screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 28px; text-align: center; gap: 14px; background: var(--bg); }
    .success-title { font-family: var(--font); font-size: 26px; font-weight: 800; color: var(--txt); }
    .success-sub { font-size: 14px; color: var(--txt2); line-height: 1.6; max-width: 270px; }
    .success-chip { background: var(--w2); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 16px; border-radius: 20px; font-family: var(--font); }

    .terms { font-size: 11px; color: var(--txt2); text-align: center; margin-top: 14px; line-height: 1.6; }
    .terms span { color: var(--w2); font-weight: 600; }
    .section-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--a3); color: var(--w3); font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; font-family: var(--font); }

    /* ═══════════════════════════════
       PERFIL SUB-TELAS
    ════════════════════════════════ */
    .profile-sub-header {
      background: linear-gradient(135deg, var(--w2), var(--w3));
      padding: 20px 20px 52px;
      position: relative;
      overflow: hidden;
    }
    .profile-sub-header::before {
      content: '';
      position: absolute;
      top: -60px; right: -60px;
      width: 180px; height: 180px;
      border-radius: 50%;
      background: rgba(255,255,255,0.07);
    }
    .profile-sub-header::after {
      content: '';
      position: absolute;
      bottom: -2px; left: 0; right: 0;
      height: 36px;
      background: var(--bg2);
      border-radius: 36px 36px 0 0;
    }
    .psub-back {
      display: inline-flex; align-items: center; gap: 6px;
      background: rgba(255,255,255,0.15); border: none; color: #fff;
      font-size: 12px; font-weight: 600; padding: 7px 14px;
      border-radius: 20px; cursor: pointer; font-family: var(--body);
      margin-bottom: 12px; position: relative; z-index: 1;
    }
    .psub-title {
      font-family: var(--font); font-size: 22px; font-weight: 800;
      color: #fff; letter-spacing: -0.5px; position: relative; z-index: 1;
    }
    .psub-section {
      font-size: 10px; font-weight: 700; color: var(--txt3);
      text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 0 10px; margin-top: 4px;
    }
    .profile-avatar-edit {
      width: 80px; height: 80px; border-radius: 50%; background: var(--bg3);
      display: flex; align-items: center; justify-content: center;
      border: 3px solid var(--w1); cursor: pointer;
    }
    .avatar-emoji-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
    .avatar-opt {
      width: 36px; height: 36px; border-radius: 10px;
      border: 1.5px solid var(--bd); background: var(--bg);
      font-size: 18px; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: border-color 0.15s, background 0.15s;
    }
    .avatar-opt.active { border-color: var(--w1); background: var(--a3); }
    .toggle-item {
      display: flex; align-items: center; gap: 12px;
      padding: 14px 0; border-bottom: 1px solid var(--bd);
    }
    .toggle-item:last-of-type { border-bottom: none; }
    .toggle-icon {
      width: 40px; height: 40px; border-radius: 12px; background: var(--bg3);
      display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
    }
    .toggle-text { flex: 1; min-width: 0; }
    .toggle-label { font-size: 13px; font-weight: 600; color: var(--txt); }
    .toggle-desc { font-size: 11px; color: var(--txt2); margin-top: 2px; line-height: 1.4; }
    .toggle-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
    .toggle-switch input { opacity: 0; width: 0; height: 0; }
    .toggle-track {
      position: absolute; inset: 0; background: var(--bd);
      border-radius: 13px; cursor: pointer; transition: background 0.2s;
    }
    .toggle-track::before {
      content: ''; position: absolute; width: 20px; height: 20px;
      border-radius: 50%; background: #fff; top: 3px; left: 3px;
      transition: transform 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    }
    .toggle-switch input:checked + .toggle-track { background: var(--w1); }
    .toggle-switch input:checked + .toggle-track::before { transform: translateX(20px); }

    /* ─── Loading state ─── */
    .loading-shimmer {
      background: linear-gradient(90deg, #e8f4fb 25%, #d0eaf7 50%, #e8f4fb 75%);
      background-size: 200% 100%;
      animation: shimmer 1.4s infinite;
      border-radius: 10px;
    }
    @keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

    /* ─── API status badge ─── */
    .api-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 10px;
      font-weight: 600;
      color: var(--txt2);
      background: var(--bg3);
      padding: 4px 10px;
      border-radius: 20px;
      margin-bottom: 12px;
    }
    .api-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--txt3);
    }
    .api-dot.live { background: var(--ok); animation: pulse-dot 1.5s infinite; }
    .api-dot.mock { background: var(--warn); }
    @keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.4} }

    /* ─── Desktop Side Panel ─── */
    .dp-stat-card {
      border-radius: 22px;
      padding: 22px 22px 18px;
      box-shadow: 0 2px 16px rgba(0,50,120,0.09);
      background: var(--bg);
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      gap: 0;
      transition: transform 0.18s, box-shadow 0.18s;
    }
    .dp-stat-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 28px rgba(0,50,120,0.14);
    }
    /* Bola decorativa de fundo */
    .dp-stat-card::after {
      content: '';
      position: absolute;
      bottom: -24px; right: -24px;
      width: 80px; height: 80px;
      border-radius: 50%;
      background: currentColor;
      opacity: 0.06;
      pointer-events: none;
    }

    .dp-stat-label {
      font-size: 10px;
      font-weight: 800;
      color: var(--txt3);
      text-transform: uppercase;
      letter-spacing: 0.10em;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .dp-stat-label-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: currentColor;
      opacity: 0.5;
      display: inline-block;
    }

    /* Número principal: inteiro grande + unidade pequena alinhada */
    .dp-num-wrap {
      display: flex;
      align-items: baseline;
      gap: 4px;
      line-height: 1;
      margin-bottom: 8px;
    }
    .dp-num-int {
      font-family: var(--font);
      font-size: 42px;
      font-weight: 800;
      letter-spacing: -2px;
      line-height: 1;
      font-variant-numeric: tabular-nums;
    }
    .dp-num-dec {
      font-family: var(--font);
      font-size: 22px;
      font-weight: 700;
      letter-spacing: -0.5px;
      opacity: 0.75;
      line-height: 1;
    }
    .dp-num-unit {
      font-family: var(--body);
      font-size: 13px;
      font-weight: 600;
      opacity: 0.55;
      letter-spacing: 0;
      align-self: flex-end;
      padding-bottom: 3px;
    }

    .dp-stat-sub {
      font-size: 11px;
      font-weight: 500;
      color: var(--txt2);
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .dp-trend {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      font-size: 11px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 20px;
    }
    .dp-trend.up   { background: var(--errl);  color: var(--err); }
    .dp-trend.down { background: var(--okl);   color: var(--ok);  }
    .dp-trend.warn { background: var(--warnl); color: var(--warn);}
    .dp-trend.info { background: var(--a3);    color: var(--w2);  }

    .dp-notif-row {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      padding: 10px 12px;
      border-radius: 12px;
      background: var(--bg2);
      margin-bottom: 8px;
      font-size: 18px;
    }
    .dp-notif-row:last-child { margin-bottom: 0; }

    /* ── Mostrar painel direito só em xl+ (já declarado acima) ── */

    /* ── TV / Monitor ultra-wide: já tratado no bloco 1920px+ acima ── */
    .app-content::-webkit-scrollbar { width: 4px; }
    .app-content::-webkit-scrollbar-track { background: transparent; }
    .app-content::-webkit-scrollbar-thumb { background: var(--a2); border-radius: 2px; }

    /* ─── Animação de entrada ─── */
    @keyframes fadeSlideUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }
    .animate-in { animation: fadeSlideUp 0.35s ease both; }

    /* ═══════════════════════════════
       PRESSÃO — GAUGE E CARDS
    ════════════════════════════════ */
    .pressao-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-bottom: 14px;
    }
    .pressao-card {
      background: var(--bg);
      border-radius: 18px;
      padding: 14px;
      box-shadow: 0 2px 10px rgba(0,50,120,0.07);
      position: relative;
      overflow: hidden;
    }
    .pressao-card.critico { border-left: 4px solid var(--err); background: var(--errl); }
    .pressao-card.atencao { border-left: 4px solid var(--warn); background: var(--warnl); }
    .pressao-card.normal  { border-left: 4px solid var(--ok); }
    .pressao-zona-nome { font-size: 11px; font-weight: 700; color: var(--txt2); text-transform: uppercase; letter-spacing: .04em; }
    .pressao-valor { font-family: var(--font); font-size: 22px; font-weight: 800; color: var(--txt); letter-spacing: -0.5px; margin: 4px 0; }
    .pressao-unidade { font-size: 11px; color: var(--txt2); font-weight: 400; }
    .pressao-status-badge {
      display: inline-flex; align-items: center; gap: 4px;
      font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
    }
    .pressao-status-badge.critico { background: var(--err); color: #fff; }
    .pressao-status-badge.atencao { background: var(--warn); color: #fff; }
    .pressao-status-badge.normal  { background: var(--ok);  color: #fff; }
    .pressao-bar-wrap { height: 4px; background: var(--bg3); border-radius: 2px; margin-top: 8px; overflow: hidden; }
    .pressao-bar-fill { height: 100%; border-radius: 2px; transition: width .4s; }

    /* ═══════════════════════════════
       REDE — BALANÇO HÍDRICO
    ════════════════════════════════ */
    .rede-resumo {
      background: linear-gradient(135deg, var(--w2), var(--w4));
      border-radius: 20px; padding: 18px 20px; margin-bottom: 14px; color: #fff;
    }
    .rede-resumo-title { font-size: 11px; opacity: .65; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
    .rede-perda-valor { font-family: var(--font); font-size: 42px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
    .rede-perda-label { font-size: 12px; opacity: .7; margin-top: 2px; }
    .rede-stats-row { display: flex; gap: 12px; margin-top: 14px; }
    .rede-stat { flex: 1; background: rgba(255,255,255,.12); border-radius: 12px; padding: 10px 12px; }
    .rede-stat-val { font-family: var(--font); font-size: 16px; font-weight: 800; color: #fff; }
    .rede-stat-label { font-size: 10px; opacity: .6; margin-top: 2px; }

    .zona-item {
      display: flex; align-items: center; gap: 12px;
      background: var(--bg); border-radius: 14px; padding: 12px 14px;
      margin-bottom: 8px; box-shadow: 0 2px 8px rgba(0,50,120,.05);
      border-left: 4px solid transparent;
    }
    .zona-item.vazamento { border-left-color: var(--err); }
    .zona-item.atencao   { border-left-color: var(--warn); }
    .zona-item.normal    { border-left-color: var(--ok); }
    .zona-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
    .zona-icon.captacao     { background: #e8f7fd; }
    .zona-icon.reservatorio { background: var(--a3); }
    .zona-icon.distribuicao { background: var(--bg3); }
    .zona-nome { font-size: 13px; font-weight: 700; color: var(--txt); }
    .zona-meta { font-size: 11px; color: var(--txt2); margin-top: 2px; }
    .zona-perda-chip {
      font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; flex-shrink: 0;
    }
    .zona-perda-chip.vazamento { background: var(--errl); color: var(--err); }
    .zona-perda-chip.atencao   { background: var(--warnl); color: var(--warn); }
    .zona-perda-chip.normal    { background: var(--okl); color: var(--ok); }

    /* ═══════════════════════════════
       SÍNDICO — PAINEL EXPANDIDO
    ════════════════════════════════ */
    .sind-nav {
      display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px;
      margin-bottom: 16px; scrollbar-width: none;
    }
    .sind-nav::-webkit-scrollbar { display: none; }
    .sind-tab {
      flex-shrink: 0; padding: 7px 16px; border-radius: 20px;
      font-size: 11px; font-weight: 700; font-family: var(--font);
      border: 1.5px solid var(--bd); background: var(--bg);
      color: var(--txt2); cursor: pointer; transition: all .15s; white-space: nowrap;
    }
    .sind-tab.active { background: var(--w2); border-color: var(--w2); color: #fff; }

    .kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
    .kpi-card {
      background: var(--bg); border-radius: 16px; padding: 14px;
      box-shadow: 0 2px 8px rgba(0,50,120,.06);
    }
    .kpi-label { font-size: 10px; font-weight: 700; color: var(--txt3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
    .kpi-value { font-family: var(--font); font-size: 26px; font-weight: 800; color: var(--w2); letter-spacing: -1px; }
    .kpi-value.err   { color: var(--err); }
    .kpi-value.warn  { color: var(--warn); }
    .kpi-value.ok    { color: var(--ok); }
    .kpi-sub { font-size: 11px; color: var(--txt2); margin-top: 4px; }

    /* Tabela contas */
    .conta-item {
      display: flex; align-items: center; gap: 12px;
      background: var(--bg); border-radius: 14px; padding: 12px 14px;
      margin-bottom: 8px; box-shadow: 0 1px 6px rgba(0,50,120,.05);
      position: relative;
    }
    .conta-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
    .conta-info { flex: 1; min-width: 0; }
    .conta-nome { font-size: 13px; font-weight: 700; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .conta-unidade { font-size: 11px; color: var(--txt2); margin-top: 1px; }
    .conta-right { text-align: right; flex-shrink: 0; }
    .conta-valor { font-family: var(--font); font-size: 14px; font-weight: 800; color: var(--txt); }
    .conta-status-badge {
      font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 20px;
      display: inline-block; margin-top: 3px;
    }
    .conta-status-badge.pago     { background: var(--okl); color: var(--ok); }
    .conta-status-badge.pendente { background: var(--warnl); color: var(--warn); }
    .conta-status-badge.atrasado { background: var(--errl); color: var(--err); }
    .conta-status-badge.sem_conta{ background: var(--bg3); color: var(--txt3); }

    /* Consumo por hora — tabela */
    .hora-table { width: 100%; border-collapse: collapse; }
    .hora-table th { font-size: 10px; font-weight: 700; color: var(--txt3); text-transform: uppercase; letter-spacing: .05em; padding: 6px 10px; text-align: left; border-bottom: 1px solid var(--bd); }
    .hora-table td { font-size: 12px; color: var(--txt); padding: 8px 10px; border-bottom: 1px solid rgba(0,50,120,.04); }
    .hora-table tr:last-child td { border-bottom: none; }
    .hora-bar { height: 6px; border-radius: 3px; background: var(--w1); display: inline-block; min-width: 4px; }
    .hora-status { font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
    .hora-status.normal    { background: var(--okl); color: var(--ok); }
    .hora-status.pico      { background: var(--warnl); color: var(--warn); }
    .hora-status.vazamento { background: var(--errl); color: var(--err); }

    /* Sensores — lista */
    .sensor-item {
      display: flex; align-items: center; gap: 12px;
      background: var(--bg); border-radius: 14px; padding: 12px 14px;
      margin-bottom: 8px; box-shadow: 0 1px 6px rgba(0,50,120,.05);
    }
    .sensor-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
    .sensor-dot.ativo   { background: var(--ok); }
    .sensor-dot.inativo { background: var(--txt3); }
    .sensor-dot.atencao { background: var(--warn); }
    .sensor-nome { font-size: 13px; font-weight: 700; color: var(--txt); }
    .sensor-meta { font-size: 11px; color: var(--txt2); margin-top: 2px; }
    .sensor-bateria-wrap { width: 40px; text-align: center; flex-shrink: 0; }
    .sensor-bateria-val { font-size: 11px; font-weight: 700; }
    .sensor-bateria-val.ok   { color: var(--ok); }
    .sensor-bateria-val.warn { color: var(--warn); }
    .sensor-bateria-val.crit { color: var(--err); }
    .sensor-calib { font-size: 10px; color: var(--txt3); margin-top: 2px; }

    /* Perdas — barra comparativa */
    .perda-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
    .perda-bar-label { font-size: 12px; font-weight: 600; color: var(--txt); width: 110px; flex-shrink: 0; }
    .perda-bar-track { flex: 1; height: 10px; background: var(--bg3); border-radius: 5px; overflow: hidden; }
    .perda-bar-fill { height: 100%; border-radius: 5px; transition: width .5s; }
    .perda-bar-pct { font-size: 12px; font-weight: 700; width: 42px; text-align: right; flex-shrink: 0; }

    /* Notif modal / envio */
    .notif-form-card { background: var(--bg); border-radius: 18px; padding: 18px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(0,50,120,.07); }
    .notif-type-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 14px; }
    .notif-type-btn {
      border: 1.5px solid var(--bd); border-radius: 12px; padding: 10px 6px; text-align: center;
      cursor: pointer; background: var(--bg); transition: all .15s; font-family: var(--body);
    }
    .notif-type-btn.selected { border-color: var(--w1); background: var(--a3); }
    .notif-type-icon { font-size: 22px; }
    .notif-type-label { font-size: 10px; font-weight: 700; color: var(--txt2); margin-top: 4px; }

    /* Aba Rede para moradores */
    .rede-morador-card {
      background: linear-gradient(135deg, #e8f7fd, #d0eef9);
      border-radius: 20px; padding: 20px; margin-bottom: 14px;
      border: 1.5px solid rgba(0,180,216,.2);
    }
    .rede-morador-title { font-family: var(--font); font-size: 16px; font-weight: 800; color: var(--w3); margin-bottom: 4px; }
    .rede-morador-sub { font-size: 12px; color: var(--txt2); line-height: 1.5; }