/* App Bomba Julimar — mobile-first, status por cor clara */

:root {
  --bg0: #07131f;
  --bg1: #0d2436;
  --panel: rgba(18, 42, 62, 0.82);
  --panel-solid: #12304a;
  --line: rgba(160, 210, 230, 0.14);
  --text: #eef6fb;
  --muted: #8eacbe;
  --accent: #2ec4b6;
  --accent-2: #3aa7e0;
  --on: #2fd67b;
  --on-bg: rgba(47, 214, 123, 0.16);
  --off: #5b8fb8;
  --off-bg: rgba(91, 143, 184, 0.18);
  --wait: #e6b84d;
  --wait-bg: rgba(230, 184, 77, 0.18);
  --danger: #e85d5d;
  --danger-bg: rgba(232, 93, 93, 0.18);
  --unknown: #7a8fa3;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: "Source Sans 3", system-ui, sans-serif;
  --display: "Outfit", "Source Sans 3", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg0);
  -webkit-tap-highlight-color: transparent;
}

.app-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(46, 196, 182, 0.22), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(58, 167, 224, 0.18), transparent 50%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 55%, #0a1a28);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* Flash */
.flash-stack {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(92vw, 420px);
  display: grid;
  gap: 8px;
}

.flash {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 600;
}

.flash-danger { border-color: rgba(232, 93, 93, 0.45); }
.flash-info { border-color: rgba(58, 167, 224, 0.45); }

/* Buttons */
.btn {
  appearance: none;
  border: 0;
  border-radius: 16px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.95rem 1.15rem;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.15s ease;
}

.btn:active { transform: scale(0.98); }
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #249e94);
  color: #04231f;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-danger {
  background: linear-gradient(135deg, #d94a4a, #a83232);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
}

.btn-power {
  width: 100%;
  min-height: 88px;
  border-radius: 24px;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  background: linear-gradient(145deg, #1b4d68, #12354a);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.btn-power.is-ligar {
  background: linear-gradient(145deg, #2fd67b, #1ea85c);
  color: #052315;
  border-color: transparent;
}

.btn-power.is-desligar {
  background: linear-gradient(145deg, #4d7fa3, #355f7d);
  color: #fff;
}

/* Login */
.login-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 18px calc(24px + var(--safe-b));
}

.login-card {
  width: min(100%, 400px);
  padding: 2rem 1.4rem 1.6rem;
  border-radius: calc(var(--radius) + 6px);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  text-align: center;
}

.brand-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

.brand-title {
  margin: 0.35rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 10vw, 3.2rem);
  line-height: 1;
}

.brand-sub {
  margin: 0.4rem 0 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.login-hint {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 0 1.4rem;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.pin-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: transparent;
}

.pin-dots span.on {
  background: var(--accent);
  border-color: var(--accent);
}

.pin-input {
  width: 100%;
  text-align: center;
  font-size: 1.8rem;
  letter-spacing: 0.4em;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  margin-bottom: 1rem;
  outline: none;
}

.pin-input:focus {
  border-color: var(--accent);
}

/* Topbar / pages */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 18px 8px;
}

.topbar-client {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-device {
  margin: 0.15rem 0 0;
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1.15;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}

.icon-link.muted { color: var(--muted); }

.back-link {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-weight: 600;
}

.home,
.wifi-page,
.historico-page {
  padding: 8px 18px calc(28px + var(--safe-b));
  max-width: 520px;
  margin: 0 auto;
}

/* Status card */
.status-card {
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.25rem 1.3rem;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.status-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-label {
  margin: 0.35rem 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 7vw, 2.35rem);
  line-height: 1.1;
}

.status-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}

.chip {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.status-card[data-visual="ligada"] {
  background: var(--on-bg);
  border-color: rgba(47, 214, 123, 0.35);
}
.status-card[data-visual="ligada"] .status-label { color: var(--on); }

.status-card[data-visual="desligada"] {
  background: var(--off-bg);
  border-color: rgba(91, 143, 184, 0.35);
}
.status-card[data-visual="desligada"] .status-label { color: #b7d5ea; }

.status-card[data-visual="offline"],
.status-card[data-visual="falha"] {
  background: var(--danger-bg);
  border-color: rgba(232, 93, 93, 0.4);
}
.status-card[data-visual="offline"] .status-label,
.status-card[data-visual="falha"] .status-label { color: #ff9b9b; }

.status-card[data-visual="aguardando"] {
  background: var(--wait-bg);
  border-color: rgba(230, 184, 77, 0.4);
}
.status-card[data-visual="aguardando"] .status-label { color: #f0d281; }

.status-card[data-visual="desconhecido"] {
  background: rgba(122, 143, 163, 0.12);
}

.pending-banner,
.alert-banner,
.ok-banner {
  margin: 12px 0 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-weight: 600;
}

.pending-banner {
  background: var(--wait-bg);
  border: 1px solid rgba(230, 184, 77, 0.35);
  color: #f0d281;
}

.alert-banner {
  background: var(--danger-bg);
  border: 1px solid rgba(232, 93, 93, 0.4);
  color: #ffb0b0;
}

.ok-banner {
  background: var(--on-bg);
  border: 1px solid rgba(47, 214, 123, 0.35);
  color: #9bebc0;
}

.actions {
  margin-top: 1.25rem;
  display: grid;
  gap: 12px;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* —— Automático semanal —— */
.agenda-card {
  margin-top: 1.15rem;
  padding: 1.1rem 1rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.agenda-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.agenda-head-text {
  min-width: 0;
  flex: 1;
}

.agenda-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.agenda-desc {
  margin: 0.4rem 0 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted);
}

/* Switch moderno (não checkbox nativa) */
.agenda-toggle {
  position: relative;
  display: grid;
  justify-items: end;
  gap: 6px;
  flex-shrink: 0;
  max-width: 9.5rem;
  cursor: pointer;
  user-select: none;
}

.agenda-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.agenda-toggle-ui {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.agenda-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, background 0.18s ease;
}

.agenda-toggle input:checked + .agenda-toggle-ui {
  background: rgba(46, 196, 182, 0.35);
  border-color: rgba(46, 196, 182, 0.55);
}

.agenda-toggle input:checked + .agenda-toggle-ui .agenda-toggle-thumb {
  transform: translateX(22px);
  background: var(--accent);
}

.agenda-toggle input:focus-visible + .agenda-toggle-ui {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.agenda-toggle-label {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
  color: var(--muted);
}

.agenda-toggle-label.is-on {
  color: var(--accent);
}

.agenda-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

/* Dias: 7 colunas; em telas estreitas 4+3 */
.day-bar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.day-chip {
  appearance: none;
  margin: 0;
  min-height: 44px;
  padding: 0.35rem 0.15rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: var(--font);
  font-size: clamp(0.68rem, 2.8vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.1s ease;
}

.day-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.day-chip:active {
  transform: scale(0.96);
}

.day-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.day-chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.day-chip.is-selected {
  background: rgba(46, 196, 182, 0.22);
  border-color: rgba(46, 196, 182, 0.65);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(46, 196, 182, 0.25);
}

.agenda-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
}

.agenda-field {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.agenda-form input[type="time"],
.agenda-form input[type="number"] {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  padding: 0 0.75rem;
  font-size: 1rem;
  font-family: var(--font);
}

.agenda-form input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.agenda-duration-wrap {
  position: relative;
  display: block;
}

.agenda-duration-wrap input {
  padding-right: 4.6rem;
}

.agenda-duration-unit {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  pointer-events: none;
}

.agenda-field-error {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffb0b0;
  line-height: 1.35;
}

.agenda-add {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 14px;
  font-size: 1rem;
}

.agenda-add-icon {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(4, 35, 31, 0.2);
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
}

.agenda-add.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.agenda-list-section {
  margin-top: 1.15rem;
}

.agenda-list-title {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.agenda-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.agenda-empty {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1.15rem 0.85rem;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed var(--line);
  background: rgba(0, 0, 0, 0.16);
}

.agenda-empty-icon {
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.agenda-empty strong {
  font-size: 0.95rem;
}

.agenda-empty span {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
  max-width: 28ch;
}

.agenda-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0.75rem 0.8rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.agenda-item.is-off {
  opacity: 0.72;
}

.agenda-item-body {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 0.3rem;
}

.agenda-item-days {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.agenda-day-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(46, 196, 182, 0.16);
  border: 1px solid rgba(46, 196, 182, 0.35);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.agenda-item-meta {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--text);
}

.agenda-item-state {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.agenda-item-state.is-on {
  color: var(--on);
}

.agenda-item-state.is-partial {
  color: var(--wait);
}

.agenda-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.agenda-action {
  appearance: none;
  min-height: 36px;
  min-width: 72px;
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.agenda-action:hover {
  background: rgba(255, 255, 255, 0.1);
}

.agenda-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.agenda-action.is-danger {
  color: #ffb0b0;
  border-color: rgba(232, 93, 93, 0.35);
}

.agenda-safe {
  margin: 1rem 0 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.agenda-safe-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent-2);
  opacity: 0.9;
}

@media (max-width: 379px) {
  .day-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .agenda-form-row {
    grid-template-columns: 1fr;
  }

  .agenda-head {
    flex-direction: column;
    align-items: stretch;
  }

  .agenda-toggle {
    justify-items: start;
    max-width: none;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
  }

  .agenda-toggle-label {
    text-align: left;
    grid-column: 2;
    grid-row: 1;
  }

  .agenda-toggle-ui {
    grid-column: 1;
    grid-row: 1;
  }
}

@media (min-width: 640px) {
  .agenda-item-actions {
    flex-direction: row;
  }

  .agenda-add {
    justify-self: stretch;
  }
}

.info-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.info-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem;
}

.info-card h3 {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.info-card p {
  margin: 0.35rem 0 0;
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-word;
}

.footnote {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Dialog */
.confirm-dialog {
  border: 0;
  border-radius: 22px;
  padding: 0;
  background: transparent;
  max-width: 92vw;
}

.confirm-dialog::backdrop {
  background: rgba(3, 10, 18, 0.72);
}

.confirm-box {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.3rem;
  width: min(92vw, 380px);
  color: var(--text);
}

.confirm-box h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
}

.confirm-box p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* Wi-Fi / histórico */
.guide-card,
.card-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.guide-card ol {
  margin: 0.6rem 0;
  padding-left: 1.2rem;
  color: var(--text);
  line-height: 1.55;
}

.guide-note {
  margin: 0.6rem 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.ap-box {
  margin: 0.75rem 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(46, 196, 182, 0.12);
  border: 1px solid rgba(46, 196, 182, 0.35);
}

.ap-box p {
  margin: 0.25rem 0;
  font-size: 1.05rem;
}

.ap-box code {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
}

.guide-card .btn {
  margin-top: 0.5rem;
}

.guide-note code {
  color: var(--accent);
}

.wifi-actions {
  display: grid;
  gap: 10px;
  margin: 1rem 0;
}

.wifi-form label,
.wifi-danger h2,
.wifi-form h2,
.wifi-list h2,
.card-panel h2 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: 1.15rem;
}

.wifi-form label {
  display: block;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.wifi-form input {
  width: 100%;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 1rem;
}

.wifi-form .btn,
.wifi-danger .btn {
  margin-top: 0.85rem;
}

.network-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.network-list li button {
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.network-list li button small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.section-head h2 { margin: 0; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.timeline li {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
}

.timeline-empty {
  color: var(--muted);
  text-align: center;
}

.timeline .t-title {
  font-weight: 700;
  margin: 0;
}

.timeline .t-meta {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
}

.badge-enviado { background: var(--wait-bg); color: #f0d281; }
.badge-confirmado { background: var(--on-bg); color: #9bebc0; }
.badge-timeout,
.badge-falha { background: var(--danger-bg); color: #ffb0b0; }

@media (min-width: 640px) {
  .home, .wifi-page, .historico-page { padding-top: 12px; }
}
