/* IA - Início - Criado - Codex-GPT-5 */
:root {
  color-scheme: light;
  --brand: #b5121b;
  --brand-dark: #820b12;
  --brand-soft: #fff0f1;
  --ink: #18212f;
  --muted: #687385;
  --line: #dfe4ea;
  --surface: #ffffff;
  --surface-2: #f4f6f8;
  --success: #23825d;
  --danger: #b42318;
  --shadow: 0 16px 44px rgba(27, 37, 51, 0.14);
  --spot-fab-size: 68px;
  --spot-fab-red: #d60000;
  --spot-fab-dark: #8f0000;
  --spot-fab-light: #f00000;
  --spot-fab-glow: rgba(220, 0, 0, 0.52);
  --focus-ring: rgba(181, 18, 27, 0.24);
  --splash-start: #72080e;
  --splash-end: #db2630;
  --splash-shadow: rgba(61, 2, 6, 0.35);
  --fab-pulse-border: rgba(240, 0, 10, 0.42);
  --fab-pulse-shadow: rgba(235, 0, 10, 0.18);
  --fab-glow-soft: rgba(235, 0, 10, 0.28);
  --fab-glow-strong: rgba(235, 0, 10, 0.46);
  --brand-accent: #ea3b44;
  --hero-line: #eadcdf;
  --hero-glow: rgba(181, 18, 27, 0.13);
  --hero-surface: #fff9f9;
  --hero-counter-line: #ecd5d8;
  --card-hover-line: #d1b3b6;
  --button-shadow: rgba(181, 18, 27, 0.18);
  --focus-ring-soft: rgba(181, 18, 27, 0.11);
  --loader-line: #ecd8da;
  --fab-shadow-dark: rgba(80, 0, 0, 0.34);
  --fab-shadow-inset: rgba(90, 0, 0, 0.4);
  --fab-icon-shadow: rgba(77, 0, 5, 0.22);
  --fab-ring: rgba(214, 0, 0, 0.11);
  --fab-active-glow: rgba(220, 0, 0, 0.45);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

/* IA - Início - Criado - Codex-GPT-5: identidade visual aplicada pelo domínio em theme.js. */
html[data-theme="flessor"] {
  --brand: #6a5acd;
  --brand-dark: #483d8b;
  --brand-soft: #f0efff;
  --spot-fab-red: #1e90ff;
  --spot-fab-dark: #4169e1;
  --spot-fab-light: #6a5acd;
  --spot-fab-glow: rgba(30, 144, 255, 0.48);
  --focus-ring: rgba(30, 144, 255, 0.28);
  --splash-start: #483d8b;
  --splash-end: #1e90ff;
  --splash-shadow: rgba(45, 42, 115, 0.38);
  --fab-pulse-border: rgba(30, 144, 255, 0.42);
  --fab-pulse-shadow: rgba(30, 144, 255, 0.18);
  --fab-glow-soft: rgba(30, 144, 255, 0.28);
  --fab-glow-strong: rgba(30, 144, 255, 0.46);
  --brand-accent: #1e90ff;
  --hero-line: #d8dcf8;
  --hero-glow: rgba(30, 144, 255, 0.16);
  --hero-surface: #f4f7ff;
  --hero-counter-line: #d6dcf7;
  --card-hover-line: #aebcf1;
  --button-shadow: rgba(30, 144, 255, 0.22);
  --focus-ring-soft: rgba(30, 144, 255, 0.14);
  --loader-line: #d6dcf7;
  --fab-shadow-dark: rgba(49, 71, 177, 0.34);
  --fab-shadow-inset: rgba(49, 71, 177, 0.4);
  --fab-icon-shadow: rgba(30, 144, 255, 0.22);
  --fab-ring: rgba(30, 144, 255, 0.12);
  --fab-active-glow: rgba(30, 144, 255, 0.45);
}
/* IA - Fim - Criado - Codex-GPT-5. */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--surface-2);
  color: var(--ink);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

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

.splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  color: white;
  text-align: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.14), transparent 25%),
    linear-gradient(145deg, var(--splash-start), var(--brand) 58%, var(--splash-end));
  transition: opacity 260ms ease, visibility 260ms ease;
}

.splash--leaving {
  opacity: 0;
  visibility: hidden;
}

.splash__mark {
  display: grid;
  width: 104px;
  height: 104px;
  margin-bottom: 12px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px var(--splash-shadow);
}

.splash__mark img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.splash strong {
  font-size: 30px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

.splash span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.splash__loader {
  width: 44px;
  height: 3px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.splash__loader::after {
  display: block;
  width: 55%;
  height: 100%;
  border-radius: inherit;
  background: white;
  content: "";
  animation: splash-loader 900ms ease-in-out infinite alternate;
}

@keyframes splash-loader {
  from { transform: translateX(-20%); }
  to { transform: translateX(100%); }
}

.app {
  min-height: 100vh;
  min-height: 100dvh;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button--primary {
  color: white;
  background: var(--brand);
  box-shadow: 0 6px 16px var(--button-shadow);
}

.button--quiet {
  border-color: var(--line);
  color: var(--ink);
  background: white;
}

.button--danger {
  border-color: #f1b8b4;
  color: var(--danger);
  background: #fff5f4;
}

.button--large {
  min-height: 48px;
  padding-inline: 22px;
}

.main {
  min-height: 100vh;
  min-height: 100dvh;
}

.dashboard {
  width: min(1440px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 30px clamp(18px, 4vw, 56px) 110px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
  padding: 28px clamp(22px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid var(--hero-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 15%, var(--hero-glow), transparent 30%),
    linear-gradient(135deg, white, var(--hero-surface));
  box-shadow: 0 10px 34px rgba(41, 27, 29, 0.07);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
}

.hero__counter {
  display: grid;
  min-width: 126px;
  justify-items: center;
  padding: 18px 22px;
  border: 1px solid var(--hero-counter-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.hero__counter strong {
  color: var(--brand);
  font-size: 34px;
  line-height: 1;
}

.hero__counter span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.search {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.search > span:first-child {
  color: var(--muted);
  font-size: 25px;
  line-height: 1;
}

.search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.sort select {
  height: 46px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: white;
}

.unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 17px;
}

.unit-card {
  position: relative;
  display: grid;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(31, 40, 53, 0.07);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.unit-card:hover {
  border-color: var(--card-hover-line);
  box-shadow: 0 16px 34px rgba(31, 40, 53, 0.11);
  transform: translateY(-2px);
}

.unit-card::before {
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--brand-accent));
  content: "";
}

.unit-card__body {
  display: grid;
  align-content: start;
  padding: 20px 20px 15px;
}

.unit-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.unit-card__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.unit-card__avatar {
  position: relative;
  display: grid;
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  color: var(--brand);
  font-size: 19px;
  font-weight: 800;
  background: var(--brand-soft);
}

.unit-card h2 {
  margin: 0;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unit-card__address {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-menu {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  background: transparent;
  cursor: pointer;
}

.card-menu:hover {
  background: var(--surface-2);
}

.unit-card__status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 19px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca5b1;
}

.unit-card__last-access {
  margin-top: 7px;
  color: #8a94a3;
  font-size: 11px;
}

.unit-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 15px 15px;
}

.open-button {
  width: 100%;
}

.empty-state,
.no-results {
  display: grid;
  min-height: 330px;
  place-content: center;
  justify-items: center;
  padding: 30px;
  border: 1px dashed #cbd2db;
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
}

.empty-state__icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 22px;
  color: var(--brand);
  font-size: 39px;
  background: var(--brand-soft);
}

.empty-state h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.empty-state p {
  max-width: 520px;
  margin: 9px 0 22px;
  line-height: 1.55;
}

.no-results {
  min-height: 190px;
  gap: 5px;
}

.no-results strong {
  color: var(--ink);
}

.browser-view {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  background: white;
}

.browser-view iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
  transform-origin: 0 0;
}

.frame-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 25px;
  color: var(--muted);
  text-align: center;
  background: white;
}

.frame-loading strong {
  color: var(--ink);
  font-size: 18px;
}

.frame-loading span {
  max-width: 80vw;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame-loading__spinner {
  width: 42px;
  height: 42px;
  margin-bottom: 9px;
  border: 4px solid var(--loader-line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.fab {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 70;
  display: grid;
  width: var(--spot-fab-size);
  height: var(--spot-fab-size);
  align-items: center;
  justify-items: center;
  padding: 0;
  overflow: visible;
  isolation: isolate;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(145deg, var(--spot-fab-light), var(--spot-fab-dark));
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.24),
    0 0 18px var(--spot-fab-glow);
  cursor: pointer;
  transition:
    left 360ms cubic-bezier(0.18, 0.82, 0.24, 1.12),
    top 360ms cubic-bezier(0.18, 0.82, 0.24, 1.12),
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
  touch-action: none;
  user-select: none;
  animation: fab-beat 2.4s ease-in-out infinite;
}

.fab--dragging {
  cursor: grabbing;
  transition: none !important;
  animation-play-state: paused;
}

.fab--dragging .fab__pulse {
  animation-play-state: paused;
  opacity: 0.2;
}

.fab--settling {
  animation: spot-settle 420ms cubic-bezier(0.18, 0.82, 0.24, 1.12);
}

@keyframes spot-settle {
  0% { transform: scale(0.96); }
  62% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.fab::before {
  display: none;
}

.fab__pulse {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: var(--spot-fab-size);
  height: var(--spot-fab-size);
  border: 2px solid var(--fab-pulse-border);
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 12px var(--fab-pulse-shadow);
  animation: ring-pulse 3.4s ease-out infinite;
}

.fab__pulse--two {
  animation-delay: 1.12s;
}

.fab__pulse--three {
  animation-delay: 2.24s;
}

@keyframes fab-beat {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 8px 18px rgba(0, 0, 0, 0.24),
      0 0 12px var(--fab-glow-soft);
  }
  50% {
    transform: scale(1.035);
    box-shadow:
      0 9px 20px rgba(0, 0, 0, 0.24),
      0 0 22px var(--fab-glow-strong);
  }
}

@keyframes ring-pulse {
  0% {
    opacity: 0.42;
    transform: scale(0.92);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1.36);
  }
}

.fab:hover {
  filter: brightness(1.08);
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 11px 24px var(--fab-shadow-dark),
    0 0 0 6px var(--fab-ring),
    0 0 34px rgba(235, 0, 0, 0.62),
    inset 0 2px 3px rgba(255, 255, 255, 0.32),
    inset 0 -5px 8px var(--fab-shadow-inset);
}

.fab:active {
  transform: translateY(2px) scale(0.96);
  box-shadow:
    0 4px 10px var(--fab-shadow-dark),
    0 0 18px var(--fab-active-glow),
    inset 0 3px 8px var(--fab-shadow-inset);
}

.fab[aria-expanded="true"] {
  animation-play-state: paused;
  box-shadow:
    0 7px 18px var(--fab-shadow-dark),
    0 0 0 6px var(--fab-ring),
    0 0 30px rgba(235, 0, 0, 0.54),
    inset 0 2px 3px rgba(255, 255, 255, 0.28),
    inset 0 -5px 8px var(--fab-shadow-inset);
}

.fab[aria-expanded="true"] .fab__pulse {
  animation-play-state: paused;
  opacity: 0;
}

.fab img {
  position: relative;
  z-index: 1;
  width: 41px;
  height: 41px;
  filter: brightness(0) invert(1) drop-shadow(0 2px 3px var(--fab-icon-shadow));
  object-fit: contain;
  pointer-events: none;
}

.fab--dragging img,
.fab[aria-expanded="true"] img {
  animation-play-state: paused;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 79;
  background: rgba(16, 22, 31, 0.42);
  backdrop-filter: blur(2px);
}

.switcher {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  display: flex;
  width: min(430px, 94vw);
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  padding: max(22px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) 20px;
  background: white;
  box-shadow: -18px 0 54px rgba(20, 27, 38, 0.2);
  transform: translateX(110%);
  visibility: hidden;
  transition: transform 220ms ease, visibility 220ms;
}

.switcher--open {
  visibility: visible;
  transform: translateX(0);
}

.switcher__handle {
  display: none;
}

.switcher__header,
.dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.switcher__header h2,
.dialog__header h2 {
  margin: 0;
  font-size: 25px;
}

.icon-button {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  font-size: 27px;
  line-height: 1;
  background: white;
  cursor: pointer;
}

.search--drawer {
  flex: 0 0 46px;
  margin-top: 20px;
  background: var(--surface-2);
}

.switcher__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}

.sync-status {
  margin: -6px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  background: var(--surface-2);
}

.sync-status--ready {
  color: #176b4c;
  background: #ecf8f2;
}

.sync-description {
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.45;
}

.quick-action {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 650;
  text-align: left;
  background: white;
  cursor: pointer;
}

.quick-action span:first-child {
  color: var(--brand);
  font-size: 22px;
}

.frame-zoom {
  display: grid;
  gap: 8px;
  margin: -4px 0 16px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.frame-zoom > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.frame-zoom__buttons {
  display: grid;
  grid-template-columns: 46px minmax(76px, 1fr) 46px;
  gap: 8px;
}

.frame-zoom button {
  height: 38px;
  border: 1px solid #e2e6eb;
  border-radius: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  background: var(--surface-2);
  cursor: pointer;
}

.frame-zoom button:disabled {
  color: #aab2bd;
  cursor: default;
  opacity: 0.62;
}

.switcher__list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.switcher-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 11px 8px;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.switcher-item:hover,
.switcher-item--active {
  background: #fff6f6;
}

.switcher-item__avatar {
  position: relative;
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  color: var(--brand);
  font-weight: 800;
  background: var(--brand-soft);
}

.logo-avatar img {
  position: absolute;
  opacity: 0;
  transition: opacity 160ms ease;
}

.logo-avatar__backdrop {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(1.08);
  transform: scale(1.08);
}

.logo-avatar__mark {
  inset: 5px;
  z-index: 1;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(20, 24, 32, 0.16));
}

.logo-avatar--ready {
  color: transparent;
  background: white;
}

.logo-avatar--ready .logo-avatar__backdrop {
  opacity: 0.18;
}

.logo-avatar--ready .logo-avatar__mark {
  opacity: 1;
}

.switcher-item__text {
  display: grid;
  min-width: 0;
  flex: 1;
}

.switcher-item__text strong,
.switcher-item__text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.switcher-item__text small {
  margin-top: 3px;
  color: var(--muted);
}

.switcher-item__arrow {
  color: #a1a9b5;
  font-size: 22px;
}

.switcher__empty {
  padding: 28px 10px;
  color: var(--muted);
  text-align: center;
}

.dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: min(720px, calc(100dvh - 28px));
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.dialog::backdrop {
  background: rgba(15, 22, 31, 0.52);
  backdrop-filter: blur(3px);
}

.dialog form {
  display: grid;
}

.dialog__header {
  padding: 24px 24px 15px;
}

.dialog__body {
  display: grid;
  gap: 16px;
  padding: 6px 24px 22px;
}

.field {
  display: grid;
  gap: 7px;
  color: #404b5b;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.domain-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd6de;
  border-radius: 11px;
  color: var(--ink);
  background: white;
}

.field > input {
  padding: 0 13px;
}

.field input:focus {
  border-color: var(--brand);
  outline: 3px solid var(--focus-ring-soft);
}

.domain-input {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.domain-input input {
  min-width: 0;
  flex: 1;
  padding: 0 8px 0 13px;
  border: 0;
  outline: 0;
}

.domain-input span {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #596476;
  font-weight: 600;
  white-space: nowrap;
  background: var(--surface-2);
}

.field--port {
  width: 150px;
}

.address-preview {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  overflow: hidden;
  border-radius: 11px;
  color: var(--muted);
  font-size: 11px;
  background: var(--surface-2);
}

.address-preview strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-error {
  margin: 0;
  padding: 11px 13px;
  border-radius: 10px;
  color: var(--danger);
  font-size: 13px;
  background: #fff0ef;
}

.local-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.dialog__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 24px max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fafbfc;
}

.dialog__spacer {
  flex: 1;
}

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: max(92px, calc(env(safe-area-inset-bottom) + 82px));
  max-width: min(90vw, 480px);
  padding: 12px 17px;
  border-radius: 11px;
  color: white;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  background: #263241;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

@media (max-width: 700px) {
  .dashboard {
    padding: max(18px, env(safe-area-inset-top)) 14px 104px;
  }

  .hero {
    align-items: center;
    margin-bottom: 16px;
    padding: 21px 19px;
    border-radius: 17px;
  }

  .hero p:last-child {
    font-size: 13px;
  }

  .hero__counter {
    min-width: 76px;
    padding: 13px 10px;
  }

  .hero__counter strong {
    font-size: 27px;
  }

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

  .sort select {
    width: 100%;
  }

  .unit-grid {
    grid-template-columns: 1fr;
  }

  .unit-card {
    min-height: 194px;
  }

  .fab {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    --spot-fab-size: 62px;
  }

  .switcher {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(78dvh, 720px);
    padding-top: 12px;
    border-radius: 22px 22px 0 0;
    transform: translateY(110%);
  }

  .switcher--open {
    transform: translateY(0);
  }

  .switcher__handle {
    display: block;
    width: 42px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: #d2d7dd;
  }

  .dialog {
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
  }

  .dialog__header,
  .dialog__body,
  .dialog__footer {
    padding-inline: 18px;
  }

  .dialog__footer {
    flex-wrap: wrap;
  }

  .dialog__footer .button:not(.button--danger) {
    flex: 1;
  }

  .dialog__spacer {
    display: none;
  }

  .button--danger {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero__counter {
    display: none;
  }

  .domain-input span {
    padding-inline: 8px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fab {
    animation-duration: 2.4s !important;
    animation-iteration-count: infinite !important;
    transition-duration: 160ms, 160ms, 160ms, 160ms, 160ms !important;
  }

  .fab__pulse {
    animation-duration: 3.4s !important;
    animation-iteration-count: infinite !important;
  }

  .fab img {
    animation: none !important;
  }
}
/* IA - Fim - Criado - Codex-GPT-5 */
