:root {
  --wsmart-bg: #020818;
  --wsmart-deep: #061b4a;
  --wsmart-blue: #0ea5ff;
  --wsmart-blue-2: #2563eb;
  --wsmart-cyan: #38bdf8;
  --wsmart-card: rgba(5, 23, 57, .92);
  --wsmart-border: rgba(56, 189, 248, .30);
  --wsmart-muted: #b8c7e6;
  --wsmart-green: #22c55e;
  --wsmart-red: #ef4444;
  --wsmart-yellow: #facc15;
}

.wsmart-standalone-body {
  margin: 0 !important;
  min-height: 100vh;
  background: var(--wsmart-bg) !important;
}

.wsmart-standalone-body #wpadminbar {
  position: fixed;
}

.wsmart-standalone-body * {
  box-sizing: border-box;
}

.wsmart-app,
.wsmart-login-page {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

.wsmart-app button,
.wsmart-app input,
.wsmart-app select,
.wsmart-login-page button,
.wsmart-login-page input {
  font: inherit;
}

.wsmart-login-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(14, 165, 255, .38), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, .34), transparent 38%),
    linear-gradient(135deg, #020818 0%, #061b4a 50%, #020818 100%);
}

.admin-bar .wsmart-login-page,
.admin-bar .wsmart-app {
  min-height: calc(100vh - 32px);
}

.wsmart-login-glow,
.wsmart-app-bg {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(4px);
  pointer-events: none;
}

.wsmart-login-glow.glow-one,
.wsmart-app-bg.bg-one {
  width: 420px;
  height: 420px;
  top: -170px;
  left: -120px;
  background: radial-gradient(circle, rgba(14, 165, 255, .24), transparent 68%);
}

.wsmart-login-glow.glow-two,
.wsmart-app-bg.bg-two {
  width: 520px;
  height: 520px;
  right: -190px;
  bottom: -210px;
  background: radial-gradient(circle, rgba(37, 99, 235, .22), transparent 68%);
}

.wsmart-login-card {
  width: min(470px, 100%);
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid var(--wsmart-border);
  border-radius: 32px;
  background: linear-gradient(155deg, rgba(7, 32, 76, .96), rgba(2, 8, 24, .96));
  box-shadow: 0 32px 100px rgba(0, 0, 0, .48), inset 0 0 50px rgba(14, 165, 255, .06);
  backdrop-filter: blur(18px);
}

.wsmart-login-brand,
.wsmart-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wsmart-logo-box {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid var(--wsmart-border);
  display: grid;
  place-items: center;
  box-shadow: 0 0 30px rgba(14, 165, 255, .34);
  background: rgba(14, 165, 255, .12);
}

.wsmart-window-logo {
  width: 31px;
  height: 31px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  transform: skewY(-6deg);
}

.wsmart-window-logo span {
  border: 2px solid var(--wsmart-cyan);
}

.wsmart-login-brand h1,
.wsmart-brand h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 900;
}

.wsmart-login-brand h1 strong,
.wsmart-brand h1 strong {
  color: var(--wsmart-cyan);
}

.wsmart-login-brand p,
.wsmart-brand p {
  margin: 7px 0 0;
  color: var(--wsmart-muted);
  font-size: 13px;
}

.wsmart-login-copy {
  margin: 36px 0 24px;
}

.wsmart-login-copy > span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--wsmart-cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.wsmart-login-copy h2,
.wsmart-message-card h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(25px, 6vw, 34px);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.wsmart-login-copy p,
.wsmart-message-card p {
  margin: 0;
  color: var(--wsmart-muted);
  font-size: 14px;
  line-height: 1.55;
}

.wsmart-login-form {
  display: grid;
  gap: 16px;
}

.wsmart-login-form label > span {
  display: block;
  margin-bottom: 8px;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 700;
}

.wsmart-login-form input[type="text"],
.wsmart-login-form input[type="password"] {
  width: 100%;
  height: 52px;
  border: 1px solid var(--wsmart-border);
  border-radius: 16px;
  outline: 0;
  padding: 0 16px;
  background: rgba(2, 8, 24, .75);
  color: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.wsmart-login-form input:focus {
  border-color: var(--wsmart-cyan);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .12);
}

.wsmart-login-form input::placeholder {
  color: #7690b9;
}

.wsmart-remember {
  display: flex !important;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.wsmart-remember input {
  width: 18px;
  height: 18px;
  accent-color: var(--wsmart-blue);
}

.wsmart-remember span {
  margin: 0 !important;
  color: var(--wsmart-muted) !important;
  font-weight: 500 !important;
}

.wsmart-primary-button,
a.wsmart-primary-button {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--wsmart-blue), var(--wsmart-blue-2));
  box-shadow: 0 12px 30px rgba(37, 99, 235, .28);
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}

.wsmart-primary-button:hover,
a.wsmart-primary-button:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.wsmart-login-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(56, 189, 248, .15);
  color: #9fb2d4;
  font-size: 11px;
}

.wsmart-alert {
  margin: 0 0 18px;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
}

.wsmart-alert.is-error {
  border: 1px solid rgba(239, 68, 68, .45);
  background: rgba(127, 29, 29, .35);
  color: #fee2e2;
}

.wsmart-message-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
}

.wsmart-message-card .wsmart-logo-box {
  margin-bottom: 4px;
}

.wsmart-danger-link,
.wsmart-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 800;
}

.wsmart-danger-link {
  color: #fecaca;
  background: rgba(127, 29, 29, .25);
  border: 1px solid rgba(239, 68, 68, .35);
}

.wsmart-secondary-link {
  color: #dbeafe;
  background: rgba(2, 8, 24, .45);
  border: 1px solid var(--wsmart-border);
}

.wsmart-app {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow-x: hidden;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 20% 10%, rgba(14, 165, 255, .35), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, .34), transparent 36%),
    linear-gradient(135deg, #020818 0%, #061b4a 50%, #020818 100%);
}

.wsmart-page {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.wsmart-preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  border: 1px solid rgba(250, 204, 21, .38);
  border-radius: 15px;
  padding: 10px 13px;
  color: #fef3c7;
  background: rgba(113, 63, 18, .32);
  font-size: 12px;
  font-weight: 800;
}

.wsmart-preview-banner a {
  color: #fff;
}

.wsmart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.wsmart-brand-text h1 {
  font-size: clamp(24px, 4vw, 42px);
}

.wsmart-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wsmart-install-button,
.wsmart-icon-button {
  border: 1px solid var(--wsmart-border);
  color: #fff;
  background: rgba(2, 8, 24, .68);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.wsmart-install-button:hover,
.wsmart-icon-button:hover {
  border-color: rgba(56, 189, 248, .65);
  background: rgba(14, 165, 255, .14);
  transform: translateY(-1px);
}

.wsmart-install-button {
  min-height: 48px;
  border-radius: 16px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 900;
}

.wsmart-install-button span {
  margin-right: 5px;
  color: var(--wsmart-cyan);
  font-size: 20px;
}

.wsmart-icon-button {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-size: 24px;
}

.wsmart-main-card {
  border: 1px solid var(--wsmart-border);
  border-radius: 30px;
  padding: clamp(16px, 4vw, 24px);
  background: var(--wsmart-card);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 80px rgba(0, 0, 0, .35), inset 0 0 34px rgba(14, 165, 255, .08);
}

.wsmart-client-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.wsmart-client-name {
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 900;
}

.wsmart-client-sub {
  margin-top: 5px;
  color: var(--wsmart-muted);
  font-size: 13px;
}

.wsmart-pill {
  min-height: 38px;
  border: 1px solid var(--wsmart-border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  color: #e0f2fe;
  background: rgba(4, 18, 45, .75);
  font-size: 12px;
}

.wsmart-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wsmart-yellow);
  box-shadow: 0 0 12px rgba(250, 204, 21, .7);
}

.wsmart-pill.is-online {
  border-color: rgba(34, 197, 94, .55);
  background: rgba(22, 101, 52, .36);
}

.wsmart-pill.is-online span {
  background: var(--wsmart-green);
  box-shadow: 0 0 12px rgba(34, 197, 94, .7);
}

.wsmart-pill.is-offline {
  border-color: rgba(239, 68, 68, .55);
  background: rgba(127, 29, 29, .36);
}

.wsmart-pill.is-offline span {
  background: var(--wsmart-red);
  box-shadow: 0 0 12px rgba(239, 68, 68, .7);
}

.wsmart-loading {
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--wsmart-muted);
  text-align: center;
}

.wsmart-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(56, 189, 248, .18);
  border-top-color: var(--wsmart-cyan);
  border-radius: 50%;
  animation: wsmart-spin .8s linear infinite;
}

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

.wsmart-windows-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.wsmart-window-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--wsmart-border);
  border-radius: 28px;
  padding: 20px;
  background: rgba(2, 8, 24, .58);
  transition: border-color .2s ease, transform .2s ease, opacity .2s ease;
}

.wsmart-window-card::before {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -52px;
  width: 175px;
  height: 175px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 255, .23), transparent 70%);
  pointer-events: none;
}

.wsmart-window-card:hover {
  border-color: rgba(56, 189, 248, .52);
  transform: translateY(-1px);
}

.wsmart-window-card.is-pending {
  opacity: .72;
  pointer-events: none;
}

.wsmart-window-title {
  position: relative;
  z-index: 1;
  min-height: 25px;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  text-align: center;
}

.wsmart-round-button {
  position: relative;
  z-index: 1;
  width: 132px;
  height: 132px;
  border: 7px solid rgba(56, 189, 248, .54);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 23px auto 14px;
  color: #fff;
  font-size: 55px;
  line-height: 1;
  background: radial-gradient(circle at 50% 40%, rgba(14, 165, 255, .98), rgba(37, 99, 235, .90) 45%, rgba(2, 8, 24, .90) 72%);
  box-shadow: 0 0 38px rgba(14, 165, 255, .42);
  cursor: pointer;
  user-select: none;
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}

.wsmart-round-button:hover {
  transform: scale(1.025);
}

.wsmart-round-button:active {
  transform: scale(.98);
}

.wsmart-round-button.is-off {
  filter: saturate(.68) brightness(.72);
  box-shadow: 0 0 24px rgba(14, 165, 255, .20);
}

.wsmart-round-button:disabled {
  cursor: wait;
}

.wsmart-window-state {
  position: relative;
  z-index: 1;
  color: var(--wsmart-cyan);
  font-size: 23px;
  font-weight: 900;
  text-align: center;
}

.wsmart-window-state small {
  display: block;
  margin-top: 5px;
  color: var(--wsmart-muted);
  font-size: 13px;
  font-weight: 400;
}

.wsmart-empty-controls {
  grid-column: 1 / -1;
  border: 1px dashed var(--wsmart-border);
  border-radius: 24px;
  padding: 40px 20px;
  color: var(--wsmart-muted);
  text-align: center;
}

.wsmart-bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--wsmart-border);
  border-radius: 24px;
  background: rgba(2, 8, 24, .55);
}

.wsmart-nav-item {
  min-width: 0;
  padding: 14px 10px;
  border-right: 1px solid rgba(56, 189, 248, .18);
  color: #dbeafe;
  text-align: center;
}

.wsmart-nav-item:last-child {
  border-right: 0;
}

.wsmart-nav-item > div {
  margin-bottom: 5px;
  font-size: 22px;
}

.wsmart-nav-item span {
  display: block;
  font-size: 12px;
}

.wsmart-nav-item b {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--wsmart-cyan);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wsmart-operation-notice {
  margin-top: 14px;
  border: 1px solid rgba(250, 204, 21, .34);
  border-radius: 18px;
  padding: 13px 14px;
  color: #fef3c7;
  background: rgba(113, 63, 18, .28);
  font-size: 13px;
  line-height: 1.48;
}

.wsmart-operation-notice.is-info {
  border-color: rgba(56, 189, 248, .30);
  color: #dbeafe;
  background: rgba(14, 83, 135, .20);
}

.wsmart-logs {
  display: grid;
  gap: 8px;
  max-height: 205px;
  overflow: auto;
  margin-top: 16px;
  scrollbar-width: thin;
}

.wsmart-log-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(56, 189, 248, .16);
  border-radius: 14px;
  padding: 11px 13px;
  color: #cbd5e1;
  background: rgba(2, 8, 24, .48);
  font-size: 12px;
  line-height: 1.4;
}

.wsmart-log-item::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--wsmart-green);
}

.wsmart-log-item.is-error::before {
  background: var(--wsmart-red);
}

.wsmart-log-item.is-pending::before {
  background: var(--wsmart-yellow);
}

.wsmart-log-item time {
  flex: 0 0 auto;
  color: #7892bb;
  font-variant-numeric: tabular-nums;
}

.wsmart-log-item span {
  flex: 1;
}

.wsmart-modal {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.wsmart-modal.is-open {
  display: flex;
}

.wsmart-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .74);
  backdrop-filter: blur(5px);
}

.wsmart-modal-box {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--wsmart-border);
  border-radius: 28px;
  display: grid;
  gap: 14px;
  padding: 25px;
  color: #fff;
  background: linear-gradient(155deg, #082159, #020818);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .58);
  text-align: center;
}

.wsmart-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--wsmart-border);
  border-radius: 13px;
  color: #fff;
  background: rgba(2, 8, 24, .65);
  font-size: 24px;
  cursor: pointer;
}

.wsmart-modal-icon {
  font-size: 45px;
}

.wsmart-modal-box h2 {
  margin: 0;
  font-size: 26px;
}

.wsmart-modal-box > p {
  margin: 0;
  color: var(--wsmart-muted);
  font-size: 14px;
  line-height: 1.5;
}

.wsmart-account-installation {
  border: 1px solid rgba(56, 189, 248, .18);
  border-radius: 16px;
  display: grid;
  gap: 4px;
  padding: 13px;
  background: rgba(2, 8, 24, .44);
}

.wsmart-account-installation span {
  color: var(--wsmart-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.wsmart-install-steps {
  display: grid;
  gap: 9px;
  text-align: left;
}

.wsmart-install-step {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid rgba(56, 189, 248, .15);
  border-radius: 15px;
  padding: 11px;
  color: #dbeafe;
  background: rgba(2, 8, 24, .42);
  font-size: 13px;
  line-height: 1.42;
}

.wsmart-install-step b {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--wsmart-blue-2);
}

.wsmart-toast {
  position: fixed;
  z-index: 100001;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  width: min(430px, calc(100% - 28px));
  border: 1px solid var(--wsmart-border);
  border-radius: 16px;
  padding: 13px 16px;
  color: #fff;
  background: rgba(6, 27, 74, .97);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .40);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity .2s ease, transform .2s ease;
}

.wsmart-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.wsmart-toast.is-error {
  border-color: rgba(239, 68, 68, .45);
  background: rgba(93, 20, 28, .98);
}

@media (display-mode: standalone) {
  .wsmart-install-button {
    display: none;
  }
}

@media (max-width: 820px) {
  .admin-bar .wsmart-login-page,
  .admin-bar .wsmart-app {
    min-height: calc(100vh - 46px);
  }

  .wsmart-app {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .wsmart-windows-grid {
    grid-template-columns: 1fr;
  }

  .wsmart-main-card {
    border-radius: 25px;
  }

  .wsmart-header {
    align-items: flex-start;
  }

  .wsmart-brand-text p {
    display: none;
  }

  .wsmart-install-button {
    width: 48px;
    overflow: hidden;
    padding: 0;
    color: transparent;
    white-space: nowrap;
  }

  .wsmart-install-button span {
    margin: 0;
    color: var(--wsmart-cyan);
  }

  .wsmart-bottom-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wsmart-nav-item:nth-child(2) {
    border-right: 0;
  }

  .wsmart-nav-item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(56, 189, 248, .18);
  }

  .wsmart-login-foot {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .wsmart-logo-box {
    width: 51px;
    height: 51px;
    border-radius: 16px;
  }

  .wsmart-window-logo {
    width: 27px;
    height: 27px;
  }

  .wsmart-header-actions {
    gap: 7px;
  }

  .wsmart-icon-button,
  .wsmart-install-button {
    width: 46px;
    height: 46px;
    min-height: 46px;
    border-radius: 15px;
  }

  .wsmart-window-card {
    min-height: 240px;
    padding: 18px;
  }

  .wsmart-round-button {
    width: 122px;
    height: 122px;
    font-size: 50px;
  }

  .wsmart-preview-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Interface completa: tela do cliente + painel técnico dentro do aplicativo. */
.wsmart-screen {
  display: none;
}

.wsmart-screen.is-active {
  display: block;
}

.wsmart-preview-banner small {
  color: #fde68a;
  font-weight: 600;
}

.wsmart-secondary-button,
.wsmart-danger-button {
  min-height: 46px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wsmart-border);
  padding: 11px 16px;
  color: #fff;
  background: rgba(2, 8, 24, .68);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.wsmart-secondary-button:hover {
  border-color: rgba(56, 189, 248, .65);
  background: rgba(14, 165, 255, .14);
  transform: translateY(-1px);
}

.wsmart-danger-button {
  border-color: rgba(239, 68, 68, .48);
  background: linear-gradient(135deg, rgba(239, 68, 68, .92), rgba(127, 29, 29, .92));
}

.wsmart-primary-button:disabled,
.wsmart-secondary-button:disabled,
.wsmart-danger-button:disabled {
  opacity: .58;
  cursor: wait;
  transform: none;
}

.wsmart-config-main {
  padding: clamp(18px, 4vw, 26px);
}

.wsmart-config-top {
  padding-bottom: 3px;
}

.wsmart-technical-warning {
  margin: 4px 0 18px;
  border: 1px solid rgba(239, 68, 68, .46);
  border-radius: 18px;
  padding: 14px 16px;
  color: #fee2e2;
  background: rgba(127, 29, 29, .27);
  font-size: 13px;
  line-height: 1.5;
}

.wsmart-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wsmart-config-field {
  display: block;
  min-width: 0;
}

.wsmart-config-field > span,
.wsmart-pin-form label > span {
  display: block;
  margin-bottom: 7px;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 750;
}

.wsmart-config-field input,
.wsmart-config-field select,
.wsmart-pin-form input {
  width: 100%;
  min-height: 49px;
  border: 1px solid var(--wsmart-border);
  border-radius: 15px;
  outline: 0;
  padding: 11px 13px;
  color: #fff;
  background: rgba(2, 8, 24, .75);
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.wsmart-config-field input:focus,
.wsmart-config-field select:focus,
.wsmart-pin-form input:focus {
  border-color: var(--wsmart-cyan);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .12);
}

.wsmart-config-field input::placeholder,
.wsmart-pin-form input::placeholder {
  color: #7892bb;
}

.wsmart-config-field select option {
  color: #fff;
  background: #061b4a;
}

.wsmart-config-field small {
  display: block;
  margin-top: 7px;
  color: var(--wsmart-muted);
  font-size: 11px;
  line-height: 1.4;
}

.wsmart-config-check {
  min-height: 49px;
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: end;
  border: 1px solid rgba(56, 189, 248, .18);
  border-radius: 15px;
  padding: 11px 13px;
  color: #dbeafe;
  background: rgba(2, 8, 24, .43);
  font-size: 12px;
  cursor: pointer;
}

.wsmart-config-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--wsmart-blue);
}

.wsmart-config-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 14px;
}

.wsmart-config-section-head h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.wsmart-config-section-head p {
  margin: 5px 0 0;
  color: var(--wsmart-muted);
  font-size: 12px;
  line-height: 1.45;
}

.wsmart-config-windows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wsmart-config-window-card {
  min-width: 0;
  border: 1px solid var(--wsmart-border);
  border-radius: 22px;
  display: grid;
  gap: 13px;
  padding: 15px;
  background: rgba(2, 8, 24, .49);
  box-shadow: inset 0 0 28px rgba(14, 165, 255, .035);
}

.wsmart-config-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wsmart-config-window-head strong {
  color: var(--wsmart-cyan);
  font-size: 14px;
}

.wsmart-remove-config-window {
  border: 0;
  padding: 6px 0;
  color: #fca5a5;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.wsmart-remove-config-window:hover {
  color: #fee2e2;
}

.wsmart-config-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--wsmart-border);
  border-radius: 20px;
  padding: 30px 18px;
  color: var(--wsmart-muted);
  text-align: center;
}

.wsmart-url-help {
  margin-top: 14px;
  border: 1px solid rgba(56, 189, 248, .22);
  border-radius: 16px;
  padding: 13px 14px;
  color: #dbeafe;
  background: rgba(14, 83, 135, .14);
  font-size: 12px;
  line-height: 1.55;
}

.wsmart-url-help code {
  border: 1px solid rgba(56, 189, 248, .17);
  border-radius: 6px;
  padding: 2px 5px;
  color: #7dd3fc;
  background: rgba(2, 8, 24, .55);
}

.wsmart-config-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.wsmart-pin-form {
  display: grid;
  gap: 13px;
  text-align: left;
}

.wsmart-pin-form input {
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .32em;
  padding-left: calc(13px + .32em);
}

.wsmart-pin-help {
  min-height: 18px;
  color: var(--wsmart-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

.wsmart-pin-help.is-error {
  color: #fecaca;
}

.wsmart-pin-box {
  text-align: center;
}

@media (max-width: 820px) {
  .wsmart-config-grid,
  .wsmart-config-windows {
    grid-template-columns: 1fr;
  }

  .wsmart-config-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .wsmart-config-section-head .wsmart-secondary-button {
    width: 100%;
  }

  .wsmart-config-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .wsmart-config-actions > * {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .wsmart-header {
    flex-wrap: wrap;
  }

  .wsmart-header-actions {
    margin-left: auto;
  }


  .wsmart-config-top {
    align-items: stretch;
    flex-direction: column;
  }

  .wsmart-config-top .wsmart-secondary-button {
    width: 100%;
  }
}

/* Garante que o atributo HTML hidden prevaleça sobre os layouts em grid. */
.wsmart-app [hidden],
.wsmart-login-page [hidden] {
  display: none !important;
}

/* Comando de voz dentro do aplicativo. */
.wsmart-nav-button {
  width: 100%;
  min-height: 100%;
  margin: 0;
  border: 0;
  border-right: 1px solid rgba(56, 189, 248, .18);
  border-radius: 0;
  color: #dbeafe;
  background: transparent;
  cursor: pointer;
  appearance: none;
  transition: background .2s ease, box-shadow .2s ease;
}

.wsmart-nav-button:hover,
.wsmart-nav-button:focus-visible {
  outline: 0;
  background: rgba(14, 165, 255, .12);
  box-shadow: inset 0 0 28px rgba(14, 165, 255, .08);
}

.wsmart-nav-button.is-listening {
  background: rgba(14, 165, 255, .18);
  box-shadow: inset 0 0 32px rgba(14, 165, 255, .18);
}

.wsmart-nav-button.is-listening > div {
  animation: wsmart-voice-nav-pulse 1s ease-in-out infinite;
}

.wsmart-voice-modal-box {
  width: min(520px, 100%);
}

.wsmart-voice-listen-button {
  width: 150px;
  height: 150px;
  margin: 2px auto 0;
  border: 7px solid rgba(56, 189, 248, .48);
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: #fff;
  background: radial-gradient(circle at 50% 35%, rgba(14, 165, 255, .98), rgba(37, 99, 235, .92) 46%, rgba(2, 8, 24, .96) 75%);
  box-shadow: 0 0 42px rgba(14, 165, 255, .36);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.wsmart-voice-listen-button:hover,
.wsmart-voice-listen-button:focus-visible {
  outline: 0;
  transform: translateY(-2px);
  box-shadow: 0 0 55px rgba(14, 165, 255, .50);
}

.wsmart-voice-listen-button:disabled {
  cursor: wait;
  opacity: .82;
}

.wsmart-voice-listen-button span {
  display: block;
  font-size: 44px;
  line-height: 1;
}

.wsmart-voice-listen-button b {
  display: block;
  font-size: 13px;
}

.wsmart-voice-listen-button.is-listening {
  animation: wsmart-voice-orb-pulse 1.15s ease-in-out infinite;
}

.wsmart-voice-status {
  min-height: 22px;
  color: var(--wsmart-cyan);
  font-size: 14px;
  font-weight: 800;
}

.wsmart-voice-status.is-error {
  color: #fecaca;
}

.wsmart-voice-transcript {
  min-height: 54px;
  border: 1px solid rgba(56, 189, 248, .18);
  border-radius: 16px;
  display: grid;
  place-items: center;
  padding: 12px 14px;
  color: #e0f2fe;
  background: rgba(2, 8, 24, .48);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.wsmart-voice-transcript.is-placeholder {
  color: #7892bb;
  font-weight: 500;
}

.wsmart-voice-examples {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.wsmart-voice-example {
  border: 1px solid rgba(56, 189, 248, .24);
  border-radius: 999px;
  padding: 8px 11px;
  color: #dbeafe;
  background: rgba(14, 83, 135, .20);
  font-size: 12px;
  cursor: pointer;
}

.wsmart-voice-example:hover,
.wsmart-voice-example:focus-visible {
  outline: 0;
  border-color: rgba(56, 189, 248, .58);
  background: rgba(14, 165, 255, .16);
}

.wsmart-voice-text-form {
  display: grid;
  gap: 7px;
  text-align: left;
}

.wsmart-voice-text-form > label {
  color: #dbeafe;
  font-size: 12px;
  font-weight: 700;
}

.wsmart-voice-text-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.wsmart-voice-text-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--wsmart-border);
  border-radius: 14px;
  padding: 12px 13px;
  color: #fff;
  background: rgba(2, 8, 24, .72);
  outline: 0;
}

.wsmart-voice-text-form input:focus {
  border-color: rgba(56, 189, 248, .72);
  box-shadow: 0 0 0 3px rgba(14, 165, 255, .12);
}

.wsmart-voice-text-form .wsmart-secondary-button {
  min-height: 44px;
  padding: 10px 14px;
}

.wsmart-voice-note,
.wsmart-alexa-note {
  border: 1px solid rgba(56, 189, 248, .15);
  border-radius: 15px;
  padding: 11px 12px;
  color: #cbd5e1;
  background: rgba(2, 8, 24, .36);
  font-size: 12px;
  line-height: 1.48;
  text-align: left;
}

.wsmart-alexa-note {
  border-color: rgba(250, 204, 21, .26);
  color: #fef3c7;
  background: rgba(113, 63, 18, .20);
}

@keyframes wsmart-voice-orb-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 35px rgba(14, 165, 255, .38); }
  50% { transform: scale(1.045); box-shadow: 0 0 62px rgba(14, 165, 255, .66); }
}

@keyframes wsmart-voice-nav-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

@media (max-width: 520px) {
  .wsmart-voice-listen-button {
    width: 136px;
    height: 136px;
  }

  .wsmart-voice-text-form > div {
    grid-template-columns: 1fr;
  }

  .wsmart-voice-text-form .wsmart-secondary-button {
    width: 100%;
  }
}

/* Plataforma 2.0: navegação com voz e garantia, instalação e cartão da garantia. */
.wsmart-bottom-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.wsmart-login-site-link {
  display: inline-flex;
  justify-content: center;
  margin-top: 17px;
  color: #9edcff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.wsmart-login-site-link:hover,
.wsmart-login-site-link:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.wsmart-app-warranty-box {
  width: min(510px, 100%);
}

.wsmart-app-warranty-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  text-align: left;
}

.wsmart-app-warranty-card > div {
  min-width: 0;
  border: 1px solid rgba(56, 189, 248, .17);
  border-radius: 15px;
  display: grid;
  gap: 5px;
  padding: 12px;
  background: rgba(2, 8, 24, .46);
}

.wsmart-app-warranty-card span {
  color: var(--wsmart-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wsmart-app-warranty-card strong {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 13px;
}

.wsmart-app-warranty-card .status-active,
#wsmart-warranty-status.status-active {
  color: #86efac;
}

.wsmart-app-warranty-card .status-pending,
#wsmart-warranty-status.status-pending {
  color: #fde68a;
}

.wsmart-app-warranty-card .status-expired,
#wsmart-warranty-status.status-expired,
.wsmart-app-warranty-card .status-cancelled,
#wsmart-warranty-status.status-cancelled {
  color: #fca5a5;
}

.wsmart-modal-box > .wsmart-primary-button,
.wsmart-modal-box > .wsmart-secondary-button {
  width: 100%;
}

@media (max-width: 820px) {
  .wsmart-bottom-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wsmart-bottom-nav .wsmart-nav-item {
    border-right: 1px solid rgba(56, 189, 248, .18);
    border-bottom: 0;
  }

  .wsmart-bottom-nav .wsmart-nav-item:nth-child(3) {
    border-right: 0;
  }

  .wsmart-bottom-nav .wsmart-nav-item:nth-child(-n+3) {
    border-bottom: 1px solid rgba(56, 189, 248, .18);
  }

  .wsmart-bottom-nav .wsmart-nav-item:last-child {
    border-right: 0;
  }
}

@media (max-width: 520px) {
  .wsmart-bottom-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wsmart-bottom-nav .wsmart-nav-item,
  .wsmart-bottom-nav .wsmart-nav-item:nth-child(3) {
    border-right: 1px solid rgba(56, 189, 248, .18);
    border-bottom: 1px solid rgba(56, 189, 248, .18);
  }

  .wsmart-bottom-nav .wsmart-nav-item:nth-child(even),
  .wsmart-bottom-nav .wsmart-nav-item:last-child {
    border-right: 0;
  }

  .wsmart-bottom-nav .wsmart-nav-item:nth-child(5) {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .wsmart-app-warranty-card {
    grid-template-columns: 1fr;
  }
}
