:root {
  --bg: #05070c;
  --bg-login: #0b0b0d;
  --text: #f5f5f7;
  --muted: rgba(245, 245, 247, 0.62);
  --faint: rgba(245, 245, 247, 0.38);
  --blue: #0071e3;
  --blue-2: #2997ff;
  --glass: rgba(22, 24, 32, 0.55);
  --glass-strong: rgba(16, 18, 28, 0.72);
  --stroke: rgba(255, 255, 255, 0.12);
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-2);
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

.wallpaper {
  min-height: 100dvh;
  background:
    radial-gradient(1200px 600px at 20% -10%, #1d4ed8 0%, transparent 55%),
    radial-gradient(900px 700px at 110% 20%, #0ea5e9 0%, transparent 50%),
    linear-gradient(180deg, #0b3cc4 0%, #082f9a 38%, #041a5c 72%, #02081c 100%);
  position: relative;
  overflow-x: hidden;
}

.wallpaper::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% 110%, rgba(0, 0, 0, 0.45), transparent),
    repeating-linear-gradient(
      -18deg,
      transparent 0 42px,
      rgba(255, 255, 255, 0.015) 42px 43px
    );
  pointer-events: none;
}

.wallpaper.theme-light {
  --text: #1d1d1f;
  --muted: rgba(29, 29, 31, 0.62);
  --faint: rgba(29, 29, 31, 0.42);
  --glass: rgba(255, 255, 255, 0.78);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --stroke: rgba(0, 0, 0, 0.08);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #e8e8ed 100%);
  color: var(--text);
}

.wallpaper.theme-light::before {
  background: repeating-linear-gradient(
    -18deg,
    transparent 0 42px,
    rgba(0, 0, 0, 0.02) 42px 43px
  );
}

.wallpaper.theme-light a.icon-btn,
.wallpaper.theme-light .icon-btn {
  color: #1d1d1f;
  background: rgba(0, 0, 0, 0.06);
}

.wallpaper.theme-light .app-grid a {
  color: #1d1d1f;
}

.wallpaper.theme-light .footer-stats {
  color: #1d1d1f;
}

.wallpaper.theme-light .table th,
.wallpaper.theme-light .table td {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.wallpaper.theme-light .nav-drawer {
  background: rgba(255, 255, 255, 0.94);
  border-right-color: rgba(0, 0, 0, 0.08);
}

.wallpaper.theme-light .nav-groups a,
.wallpaper.theme-light .nav-brand {
  color: #1d1d1f;
}

.wallpaper.theme-light .nav-acc-btn {
  color: rgba(29, 29, 31, 0.55);
}

.wallpaper.theme-light .nav-acc-btn:hover,
.wallpaper.theme-light .nav-acc.is-open .nav-acc-btn,
.wallpaper.theme-light .nav-groups a:hover,
.wallpaper.theme-light .nav-groups a.is-current {
  background: rgba(0, 0, 0, 0.05);
  color: #1d1d1f;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 20px;
}

.mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(180deg, #5ec8ff, #0071e3);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

a.icon-btn {
  color: #fff;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.page {
  position: relative;
  z-index: 1;
  padding: 8px 28px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Splash */
.splash {
  min-height: 100dvh;
  background: #0a0a0c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px 80px;
}

.orbit {
  position: relative;
  width: 280px;
  height: 280px;
  margin-bottom: 28px;
  perspective: 720px;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: orbit-spin 32s linear infinite;
}

.sat-slot {
  position: absolute;
  inset: 0;
  transform: rotate(calc(var(--i) * 72deg));
}

.orbit-core {
  position: absolute;
  inset: 70px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3a3a42, #1a1a22);
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.04em;
  box-shadow: 0 0 0 8px #111, var(--shadow);
  z-index: 2;
  animation: core-breathe 4.8s ease-in-out infinite;
}

.sat {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  animation: sat-unspin 32s linear infinite, sat-bob 3.4s ease-in-out infinite;
}

.sat svg {
  width: 26px;
  height: 26px;
}

.sat-1 { background: #0a84ff; animation-delay: 0s, 0s; }
.sat-2 { background: #30d158; animation-delay: 0s, -0.6s; }
.sat-3 { background: #bf5af2; animation-delay: 0s, -1.2s; }
.sat-4 { background: #ff9f0a; animation-delay: 0s, -1.8s; }
.sat-5 { background: #64d2ff; animation-delay: 0s, -2.4s; }

@keyframes orbit-spin {
  from { transform: rotateX(16deg) rotateZ(0deg); }
  to { transform: rotateX(16deg) rotateZ(360deg); }
}

@keyframes sat-unspin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes sat-bob {
  0%,
  100% { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.28)); }
  50% { filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.4)); }
}

@keyframes core-breathe {
  0%,
  100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-ring,
  .sat,
  .orbit-core {
    animation: none;
  }
}

.splash h1 {
  font-size: 72px;
  font-weight: 600;
  letter-spacing: -0.045em;
  margin: 0 0 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 17px;
  font-weight: 500;
  border: 0;
  cursor: pointer;
}

.pill-light {
  background: #f5f5f7;
  color: #111;
}

.splash-copy {
  margin-top: 64px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.splash-copy span {
  color: #7dd3fc;
}

/* Login */
.login-shell {
  min-height: 100dvh;
  background: var(--bg-login);
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.login-card {
  width: min(440px, 100%);
  background: #16161a;
  border-radius: 32px;
  padding: 48px 40px 36px;
  text-align: center;
  border: 1px solid var(--stroke);
}

.ring {
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background:
    conic-gradient(from 200deg, #ff9f0a, #ff375f, #bf5af2, #0a84ff, #30d158, #ff9f0a);
  padding: 3px;
}

.ring inner,
.ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #16161a;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 600;
}

.login-card h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}

.field {
  width: 100%;
  background: #2c2c32;
  border: 1px solid transparent;
  color: #fff;
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 16px;
  margin-bottom: 10px;
  outline: none;
}

.field:focus {
  border-color: var(--blue-2);
  background: #1f1f24;
}

.row-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 22px;
  text-align: left;
}

.btn-blue {
  background: var(--blue);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: #111;
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.btn-row .pill {
  flex: 1;
}

.hint {
  margin-top: 18px;
  color: var(--faint);
  font-size: 12px;
}

.flash {
  background: rgba(255, 69, 58, 0.16);
  color: #ff8a80;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 14px;
}

/* Terms */
.terms-wrap {
  min-height: 100dvh;
  background: #0b0b0d;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.terms-card {
  width: min(560px, 100%);
  background: #1c1c22;
  border-radius: 24px;
  padding: 28px 24px 20px;
  max-height: 86dvh;
  display: flex;
  flex-direction: column;
}

.terms-body {
  overflow: auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
  padding-right: 6px;
}

.terms-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.pill-ghost {
  background: #3a3a40;
  color: #fff;
}

/* Home widgets */
.bento {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 16px;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  min-height: 160px;
}

.glass h2,
.glass h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.muted {
  color: var(--muted);
}

.faint {
  color: var(--faint);
  font-size: 13px;
}

.profile {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.55), rgba(8, 47, 154, 0.55));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
}

.avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #1e293b;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 3px solid rgba(255, 255, 255, 0.35);
}

.profile h2 {
  font-size: 34px;
  letter-spacing: -0.04em;
}

.mosaic-card {
  padding: 14px 14px 12px;
}

.station-bar {
  margin-bottom: 10px;
}

.station-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.station-select {
  margin: 0;
  text-align: left;
}

.series-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}
.series-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 108px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.series-chip:hover {
  border-color: rgba(126, 200, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}
.series-chip.is-on {
  border-color: #0071e3;
  background: rgba(0, 113, 227, 0.22);
}
.series-chip-code {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: lowercase;
}
.series-chip strong {
  font-size: 18px;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.series-chip-clear {
  justify-content: center;
  align-items: center;
  min-width: auto;
  color: var(--muted);
}
.series-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}
.series-list-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.series-table-wrap {
  max-height: none;
  overflow: auto;
  border-radius: 12px 12px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
}
.series-data-block {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.series-data-block .series-table-wrap {
  border: 0;
  border-radius: 0;
}
.series-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(12, 24, 48, 0.92);
  backdrop-filter: blur(8px);
}
.series-when {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.series-id {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--muted);
}
.qc-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
}
.qc-pill.qc-ok {
  color: #5eead4;
  background: rgba(94, 234, 212, 0.12);
}
.qc-pill.qc-fora_faixa,
.qc-pill.qc-spike,
.qc-pill.qc-gap,
.qc-pill.qc-atraso,
.qc-pill.qc-frozen {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.14);
}

/* Paginação (padrão GCT — listagens) */
.gct-pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
.gct-pagination-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.gct-pagination-meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.18);
  color: #7ec8ff;
  font-size: 14px;
  flex-shrink: 0;
}
.gct-pagination-meta-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.gct-pagination-meta-count,
.gct-pagination-meta-page strong {
  color: inherit;
  font-weight: 600;
}
body:not(.theme-light) .gct-pagination-meta-count,
body:not(.theme-light) .gct-pagination-meta-page strong {
  color: #fff;
}
.gct-pagination-meta-sep {
  margin: 0 6px;
  opacity: 0.45;
}
.gct-pagination-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 16px;
  margin-left: auto;
}
.gct-pagination-perpage {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gct-pagination-perpage-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.gct-pagination-perpage-group {
  display: inline-flex;
  align-items: stretch;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.gct-pagination-perpage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.gct-pagination-perpage-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.gct-pagination-perpage-btn.is-active {
  color: #fff;
  background: #0071e3;
}
.gct-pagination-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.gct-pagination-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease;
}
.gct-pagination-nav-btn:hover:not(.is-disabled) {
  background: rgba(0, 113, 227, 0.35);
}
.gct-pagination-nav-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.gct-pagination-nav-status {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 48px;
  justify-content: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #fff;
}
.gct-pagination-nav-of {
  opacity: 0.5;
  font-weight: 500;
}
body.theme-light .gct-pagination-bar {
  background: rgba(0, 0, 0, 0.02);
  border-top-color: rgba(0, 0, 0, 0.08);
}
body.theme-light .gct-pagination-perpage-group,
body.theme-light .gct-pagination-nav-group {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}
body.theme-light .gct-pagination-perpage-btn:hover,
body.theme-light .gct-pagination-nav-btn {
  color: #1d1d1f;
}
body.theme-light .gct-pagination-nav-status {
  color: #1d1d1f;
}
body.theme-light .series-data-block {
  border-color: rgba(0, 0, 0, 0.08);
}
body.theme-light .series-table th {
  background: rgba(255, 255, 255, 0.96);
}
@media (max-width: 720px) {
  .gct-pagination-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .gct-pagination-controls {
    margin-left: 0;
    justify-content: space-between;
  }
}

body.theme-light .series-chip {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}
body.theme-light .series-chip.is-on {
  background: rgba(0, 113, 227, 0.1);
  border-color: #0071e3;
}

.mosaic-legend {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.tile-cap {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}

.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  min-height: 240px;
}

.tile {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #0f172a;
}

.tile-wide {
  grid-row: 1 / span 2;
  background: linear-gradient(160deg, #0ea5e9, #0369a1 55%, #082f49);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tile-warm {
  background: linear-gradient(160deg, #f59e0b, #b45309);
  padding: 12px;
}

.tile-map {
  background: linear-gradient(160deg, #1d4ed8, #0f172a);
  padding: 12px;
}

.kpi {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.mail,
.drive {
  min-height: 168px;
}

.item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

a.item.drive-item {
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
  margin: 0 -8px;
  padding: 8px;
  border-radius: 10px;
  border-bottom-color: transparent;
}
a.item.drive-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
a.item.drive-item + a.item.drive-item {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
}
a.item.drive-item:first-of-type {
  border-radius: 10px 10px 0 0;
}
a.item.drive-item:last-of-type {
  border-radius: 0 0 10px 10px;
  border-bottom: 0;
}

.item:last-child {
  border-bottom: 0;
}

.sev {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sev-critico { color: #ff453a; }
.sev-alerta { color: #ffd60a; }
.sev-info { color: #64d2ff; }
.sev-ok { color: #30d158; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 10px;
  text-align: center;
  min-height: 280px;
  align-content: center;
}

.app-grid a {
  color: #fff;
  font-size: 12px;
}

.app-ico {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.app-ico svg {
  width: 28px;
  height: 28px;
}

.notes {
  min-height: 200px;
}

.note {
  padding: 8px 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.note strong {
  display: block;
  font-size: 14px;
}

.footer-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
  padding: 28px 8px 12px;
  color: #fff;
}

.bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  margin-top: 10px;
}

.bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0a84ff, #ff9f0a, #30d158);
}

.dots {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.module-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 16px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.st-ok { background: #30d158; }
.st-alerta { background: #ffd60a; }
.st-critico { background: #ff453a; }
.st-manutencao { background: #64d2ff; }

.done {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: none;
}

.edit-on .done {
  display: inline-flex;
}

.color-pop {
  position: fixed;
  top: 58px;
  right: 28px;
  background: #1c1c22;
  border-radius: 16px;
  padding: 10px 12px;
  display: none;
  z-index: 20;
  border: 1px solid var(--stroke);
}

.edit-on .color-pop {
  display: flex;
  gap: 8px;
  align-items: center;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
}

.swatch-white {
  background: #fff;
  box-shadow: inset 0 0 0 1px #c7c7cc;
}

@media (max-width: 980px) {
  .bento,
  .footer-stats {
    grid-template-columns: 1fr;
  }
  .splash h1,
  .splash-copy {
    font-size: 40px;
  }
  .page {
    padding: 8px 14px 40px;
  }
}

.page-title {
  margin: 0;
  font-size: 40px;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.crumb {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--faint);
}

.crumb a { color: var(--muted); }

.cad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cad-card {
  color: #fff;
  display: block;
  min-height: 180px;
  text-decoration: none;
}

.cad-card h2 {
  font-size: 22px;
  margin: 8px 0 6px;
}

.cad-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.cad-ico .ico {
  width: 22px;
  height: 22px;
}

.nav-groups a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-groups a .ico {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0.9;
}

.cad-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cad-kpi {
  font-size: 32px;
  margin: 16px 0 0;
}

.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}

.search {
  margin: 0;
  max-width: 320px;
}

.table-wrap { overflow-x: auto; }

.row-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

.row-actions form { margin: 0; }

.link-danger {
  background: none;
  border: 0;
  color: #ff8a80;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.erros-import {
  color: #ff8a80;
  font-size: 14px;
  padding-left: 18px;
}

.form-sheet { max-width: 860px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.flabel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.flabel em { color: #ff9f0a; font-style: normal; }

.flabel .field { margin: 0; text-align: left; }

select.field {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%),
    linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

textarea.field { resize: vertical; min-height: 96px; }

.span-2 { grid-column: 1 / -1; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.toast {
  position: relative;
  z-index: 5;
  margin: 0 28px 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
}
.toast-ok { background: rgba(48, 209, 88, 0.18); color: #86efac; }
.toast-error { background: rgba(255, 69, 58, 0.16); color: #ff8a80; }

@media (max-width: 980px) {
  .cad-grid,
  .form-grid { grid-template-columns: 1fr; }
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 40;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 88vw);
  z-index: 41;
  background: rgba(12, 14, 22, 0.92);
  border-right: 1px solid var(--stroke);
  backdrop-filter: blur(28px);
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  padding: 22px 8px 40px;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  padding: 8px 16px 18px;
  font-size: 18px;
}

.nav-groups {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-acc {
  margin: 0 4px;
}

.nav-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--faint);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}

.nav-acc-btn:hover,
.nav-acc.is-open .nav-acc-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.nav-acc-chev {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  transition: transform 0.18s ease;
}

.nav-acc.is-open .nav-acc-chev {
  transform: rotate(180deg);
}

.nav-acc-panel {
  display: flex;
  flex-direction: column;
  padding: 2px 0 8px;
}

.nav-acc-panel[hidden] {
  display: none !important;
}

.nav-groups a {
  color: var(--text);
  padding: 9px 16px;
  border-radius: 12px;
  margin: 0 8px;
  font-size: 15px;
}

.nav-groups a:hover,
.nav-groups a.is-current {
  background: rgba(255, 255, 255, 0.08);
}

.map-wrap {
  padding: 12px;
  display: grid;
  gap: 12px;
}

.mapa-canvas {
  height: min(72vh, 720px);
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 4px 8px 8px;
  color: var(--muted);
  font-size: 13px;
}

.map-list {
  list-style: none;
  margin: 0;
  padding: 0 8px 8px;
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.map-list a { color: #7ec8ff; }

.os-id {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.report-sheet {
  padding: 22px 24px 28px;
}

.report-head {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 16px;
}

@media print {
  .wallpaper {
    background: #fff !important;
    color: #111;
  }
  .wallpaper::before,
  .topbar,
  .nav-drawer,
  .nav-scrim,
  .no-print,
  .done,
  .color-pop,
  .toast {
    display: none !important;
  }
  .glass {
    background: #fff;
    box-shadow: none;
    border: 0;
  }
  .report-sheet,
  .page,
  body {
    color: #111;
    background: #fff;
  }
  a { color: #111; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Overlay de sync AgroClima / processamento */
.sync-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 18, 40, 0.55);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.sync-overlay.is-on {
  opacity: 1;
  pointer-events: auto;
}
.sync-overlay[hidden] {
  display: none !important;
}
.sync-overlay.is-on[hidden] {
  display: flex !important;
}
.sync-card {
  width: min(380px, 100%);
  padding: 36px 28px 32px;
  border-radius: 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  color: #fff;
  animation: sync-card-in 0.35s ease both;
}
.sync-orbit {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
}
.sync-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #7ec8ff;
  border-right-color: rgba(126, 200, 255, 0.35);
  animation: orbit-spin 1.1s linear infinite;
}
.sync-orbit-core {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  background: linear-gradient(160deg, #0071e3, #5ac8fa);
  box-shadow: 0 0 0 6px rgba(0, 113, 227, 0.2);
  animation: core-breathe 2.4s ease-in-out infinite;
}
.sync-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.sync-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}
@keyframes sync-card-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
body.theme-light .sync-overlay {
  background: rgba(240, 244, 250, 0.72);
}
body.theme-light .sync-card {
  background: rgba(255, 255, 255, 0.92);
  color: #1d1d1f;
  border-color: rgba(0, 0, 0, 0.08);
}
body.theme-light .sync-card p {
  color: rgba(29, 29, 31, 0.65);
}
@media (prefers-reduced-motion: reduce) {
  .sync-orbit-ring,
  .sync-orbit-core,
  .sync-card {
    animation: none;
  }
}

.top-actions .gct-tour-navbtn {
  width: 2.6rem;
  height: 2.6rem;
}

.top-actions .gct-tour-navbtn img {
  width: 2.6rem;
  height: 2.6rem;
}

.gct-tour-welcome {
  background: rgba(255, 255, 255, 0.94);
  margin: 0 0 18px;
}

@media print {
  .gct-tour-navbtn,
  .gct-tour-welcome,
  .gct-guto-chat,
  .gct-tour-menu,
  .gct-tour-overlay,
  .gct-tour-spot,
  .gct-tour-pop {
    display: none !important;
  }
}

@keyframes gct-flag-flutter {
  0%, 100% { transform: rotate(-6deg) skewX(-3deg) scale(1); }
  25% { transform: rotate(5deg) skewX(4deg) scale(1.02); }
  50% { transform: rotate(-3deg) skewX(-2deg) scale(1); }
  75% { transform: rotate(7deg) skewX(3deg) scale(1.02); }
}

.gct-lang-flags {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.gct-lang-flags--inline {
  justify-content: center;
  margin-bottom: 1rem;
}

.gct-lang-flag-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gct-lang-flag-btn:hover {
  transform: translateY(-2px);
}

.gct-lang-flag-btn--active {
  border-color: rgba(41, 151, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(41, 151, 255, 0.35);
}

.gct-lang-flag-fi {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 1.35rem;
  transform-origin: 12% 88%;
  animation: gct-flag-flutter 2.4s ease-in-out infinite;
}

.gct-lang-flag-fi--delay-1 { animation-delay: 0.15s; }
.gct-lang-flag-fi--delay-2 { animation-delay: 0.3s; }

.gct-lang-flag-img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.gct-lang-flag-emoji {
  display: none;
  font-size: 1.1rem;
  line-height: 1;
}

.gct-lang-flag-fi--fallback .gct-lang-flag-img { display: none; }
.gct-lang-flag-fi--fallback .gct-lang-flag-emoji { display: block; }

.top-actions .gct-lang-flags--inline {
  margin: 0 6px 0 0;
  justify-content: flex-end;
}

.top-actions .gct-lang-flag-fi {
  width: 1.7rem;
  height: 1.08rem;
}

.splash .gct-lang-flags--inline {
  margin: 4px auto 22px;
}

@media (prefers-reduced-motion: reduce) {
  .gct-lang-flag-fi { animation: none; }
}

