:root {
  --brand-blue: #103050;
  --brand-blue-dark: #082038;
  --brand-green: #509848;
  --brand-green-dark: #347030;
  --brand-gold: #d7a842;
  --ink: #132238;
  --muted: #667085;
  --soft: #f5f8f6;
  --surface: #ffffff;
  --surface-strong: #eef5f0;
  --line: #d8e2dc;
  --danger: #b42318;
  --warning: #b7791f;
  --shadow: 0 18px 45px rgba(16, 48, 80, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* v85: menu inferior sempre visivel na home mobile */
@media (max-width: 780px) {
  html.mobile-dashboard-lock body[data-view="kanban"] .mobile-reference-dashboard {
    padding-bottom: max(94px, calc(84px + env(safe-area-inset-bottom))) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-kanban {
    margin-bottom: 0 !important;
    max-height: calc(100dvh - 590px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-nav {
    position: fixed !important;
    left: clamp(20px, 6vw, 36px) !important;
    right: clamp(20px, 6vw, 36px) !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    z-index: 20 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    height: clamp(62px, 8dvh, 72px) !important;
    margin: 0 !important;
    border-radius: 999px !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  html.mobile-dashboard-lock .mobile-ref-nav .mobile-ref-plus {
    transform: translateY(clamp(-21px, -2.4dvh, -14px)) !important;
  }
}

/* v87 final: home rolavel com menu fixo */
@media (max-width: 780px) {
  html.mobile-dashboard-lock body[data-view="kanban"] .mobile-reference-dashboard {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    padding-bottom: max(118px, calc(104px + env(safe-area-inset-bottom))) !important;
  }

  html.mobile-dashboard-lock body[data-view="kanban"] .mobile-reference-dashboard::-webkit-scrollbar {
    display: none;
  }

  html.mobile-dashboard-lock .mobile-ref-kanban {
    flex: 0 0 auto !important;
    height: clamp(205px, 28dvh, 260px) !important;
    max-height: none !important;
    margin-top: clamp(8px, 1.5dvh, 18px) !important;
    margin-bottom: 0 !important;
  }

  html.mobile-dashboard-lock .mobile-ref-stage {
    height: clamp(142px, 19dvh, 188px) !important;
  }
}

/* v87: home com rolagem interna para ver o kanban completo */
@media (max-width: 780px) {
  html.mobile-dashboard-lock body[data-view="kanban"] .mobile-reference-dashboard {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    padding-bottom: max(118px, calc(104px + env(safe-area-inset-bottom))) !important;
  }

  html.mobile-dashboard-lock body[data-view="kanban"] .mobile-reference-dashboard::-webkit-scrollbar {
    display: none;
  }

  html.mobile-dashboard-lock .mobile-ref-kanban {
    flex: 0 0 auto !important;
    height: clamp(205px, 28dvh, 260px) !important;
    max-height: none !important;
    margin-top: clamp(8px, 1.5dvh, 18px) !important;
    margin-bottom: 0 !important;
  }

  html.mobile-dashboard-lock .mobile-ref-stage {
    height: clamp(142px, 19dvh, 188px) !important;
  }
}

/* v83: home mobile sem espichar texto e sem scroll/vazio fantasma */
@media (max-width: 780px) {
  html.mobile-dashboard-lock,
  html.mobile-dashboard-lock body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
    background: #020913 !important;
  }

  html.mobile-dashboard-lock .app-shell,
  html.mobile-dashboard-lock .workspace {
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  html.mobile-dashboard-lock body[data-view="kanban"] .mobile-reference-dashboard {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    transform: none !important;
    transform-origin: center center !important;
  }

  html.mobile-dashboard-lock .mobile-ref-bg::before {
    right: -70px;
    top: clamp(4px, 2dvh, 20px);
    width: min(80vw, 430px);
    height: clamp(210px, 29dvh, 320px);
  }

  html.mobile-dashboard-lock .mobile-ref-bg::after {
    right: -76px;
    top: clamp(160px, 25dvh, 270px);
    width: min(64vw, 310px);
    height: clamp(34px, 5.2dvh, 54px);
  }

  html.mobile-dashboard-lock .mobile-ref-hero {
    left: clamp(20px, 5.5vw, 34px);
    right: clamp(20px, 5.5vw, 34px);
    top: clamp(16px, 3.2dvh, 34px);
  }

  html.mobile-dashboard-lock .mobile-ref-logo {
    width: clamp(175px, 38vw, 222px);
  }

  html.mobile-dashboard-lock .mobile-ref-shortcuts {
    gap: clamp(9px, 2.8vw, 16px);
  }

  html.mobile-dashboard-lock .mobile-ref-shortcuts button {
    width: clamp(44px, 9vw, 52px);
    height: clamp(44px, 9vw, 52px);
  }

  html.mobile-dashboard-lock .mobile-ref-shortcuts svg {
    width: clamp(19px, 4vw, 23px);
    height: clamp(19px, 4vw, 23px);
  }

  html.mobile-dashboard-lock .mobile-ref-hero p {
    margin-top: clamp(34px, 7.2dvh, 54px);
    margin-bottom: clamp(7px, 1.2dvh, 11px);
    font-size: clamp(11px, 2.9vw, 14px);
  }

  html.mobile-dashboard-lock .mobile-ref-hero h1 {
    font-size: clamp(34px, 9.4vw, 42px);
    line-height: 0.98;
  }

  html.mobile-dashboard-lock .mobile-ref-hero strong {
    max-width: min(76vw, 360px);
    margin-top: clamp(10px, 1.7dvh, 18px);
    font-size: clamp(14px, 3.8vw, 18px);
    line-height: 1.35;
  }

  html.mobile-dashboard-lock .mobile-ref-search-row {
    left: clamp(20px, 5vw, 30px);
    right: clamp(20px, 5vw, 30px);
    top: clamp(216px, 26.5dvh, 292px);
    grid-template-columns: minmax(0, 1fr) clamp(52px, 10.6vw, 62px);
    gap: clamp(10px, 3vw, 16px);
  }

  html.mobile-dashboard-lock .mobile-ref-search,
  html.mobile-dashboard-lock .mobile-ref-search input,
  html.mobile-dashboard-lock .mobile-ref-filter {
    height: clamp(52px, 7.4dvh, 62px);
  }

  html.mobile-dashboard-lock .mobile-ref-search {
    grid-template-columns: clamp(48px, 10vw, 58px) minmax(0, 1fr);
    border-radius: clamp(15px, 3.4vw, 17px);
  }

  html.mobile-dashboard-lock .mobile-ref-search input {
    font-size: clamp(12px, 3.4vw, 15px);
  }

  html.mobile-dashboard-lock .mobile-ref-filter {
    width: clamp(52px, 10.6vw, 62px);
    border-radius: clamp(15px, 3.4vw, 17px);
  }

  html.mobile-dashboard-lock .mobile-ref-metrics {
    left: clamp(20px, 4.7vw, 28px);
    right: clamp(20px, 4.7vw, 28px);
    top: clamp(288px, 34dvh, 350px);
    gap: clamp(12px, 1.7dvh, 18px) clamp(12px, 2.8vw, 16px);
  }

  html.mobile-dashboard-lock .mobile-ref-metric {
    height: clamp(118px, 14dvh, 150px);
    padding: clamp(16px, 2.5dvh, 24px) clamp(12px, 3vw, 18px);
    border-radius: clamp(14px, 3.5vw, 17px);
  }

  html.mobile-dashboard-lock .mobile-ref-metric > svg {
    width: clamp(46px, 10vw, 58px);
    height: clamp(46px, 10vw, 58px);
    padding: clamp(11px, 2.6vw, 14px);
  }

  html.mobile-dashboard-lock .mobile-ref-metric div {
    left: clamp(74px, 18vw, 91px);
    right: clamp(8px, 2.6vw, 18px);
    top: clamp(22px, 3.6dvh, 34px);
    gap: clamp(5px, 1dvh, 9px);
  }

  html.mobile-dashboard-lock .mobile-ref-metric span {
    font-size: clamp(10.5px, 2.8vw, 14px);
    line-height: 1.06;
  }

  html.mobile-dashboard-lock .mobile-ref-metric strong {
    font-size: clamp(24px, 6.2vw, 29px);
  }

  html.mobile-dashboard-lock .mobile-ref-metric small {
    left: clamp(13px, 3.2vw, 18px);
    bottom: clamp(13px, 2.1dvh, 22px);
    font-size: clamp(9px, 2.45vw, 12px);
  }

  html.mobile-dashboard-lock .mobile-ref-metric::before {
    height: clamp(54px, 8.8dvh, 82px);
  }

  html.mobile-dashboard-lock .mobile-ref-metric::after {
    bottom: clamp(25px, 4.2dvh, 36px);
  }

  html.mobile-dashboard-lock .mobile-ref-kanban {
    left: clamp(14px, 3.6vw, 20px);
    right: clamp(14px, 3.6vw, 20px);
    top: auto;
    bottom: clamp(90px, 10dvh, 112px);
    height: clamp(194px, 23dvh, 246px);
    border-radius: clamp(14px, 3.5vw, 17px);
  }

  html.mobile-dashboard-lock .mobile-ref-kanban-head {
    padding: clamp(16px, 2.8dvh, 24px) clamp(14px, 3.5vw, 20px) clamp(8px, 1.2dvh, 13px);
  }

  html.mobile-dashboard-lock .mobile-ref-kanban h2 {
    font-size: clamp(18px, 4.8vw, 22px);
  }

  html.mobile-dashboard-lock .mobile-ref-kanban p {
    font-size: clamp(10.5px, 2.6vw, 12px);
  }

  html.mobile-dashboard-lock .mobile-ref-kanban-head button {
    font-size: clamp(10px, 2.6vw, 12px);
  }

  html.mobile-dashboard-lock .mobile-ref-stage-row {
    gap: clamp(6px, 1.5vw, 8px);
    padding: 0 clamp(10px, 2.8vw, 14px) clamp(10px, 1.6dvh, 16px);
  }

  html.mobile-dashboard-lock .mobile-ref-stage {
    height: clamp(138px, 16.6dvh, 176px);
    gap: clamp(4px, 0.8dvh, 7px);
    padding: clamp(13px, 2dvh, 18px) clamp(7px, 1.8vw, 10px) clamp(8px, 1.4dvh, 12px);
    border-radius: clamp(9px, 2.4vw, 11px);
  }

  html.mobile-dashboard-lock .mobile-ref-stage strong {
    font-size: clamp(9.6px, 2.45vw, 12px);
  }

  html.mobile-dashboard-lock .mobile-ref-stage em {
    font-size: clamp(20px, 5.6vw, 24px);
  }

  html.mobile-dashboard-lock .mobile-ref-stage small {
    font-size: clamp(8px, 2.05vw, 10px);
  }

  html.mobile-dashboard-lock .mobile-ref-stage > svg {
    width: clamp(32px, 8vw, 44px);
    height: clamp(32px, 8vw, 44px);
    padding: clamp(8px, 2vw, 11px);
  }

  html.mobile-dashboard-lock .mobile-ref-nav {
    left: clamp(22px, 6vw, 36px);
    right: clamp(22px, 6vw, 36px);
    bottom: max(10px, env(safe-area-inset-bottom));
    height: clamp(64px, 8.4dvh, 72px);
    border-radius: 999px;
  }

  html.mobile-dashboard-lock .mobile-ref-nav button {
    height: clamp(60px, 7.8dvh, 68px);
    font-size: clamp(9px, 2.3vw, 11px);
  }

  html.mobile-dashboard-lock .mobile-ref-nav button svg {
    width: clamp(19px, 4.8vw, 22px);
    height: clamp(19px, 4.8vw, 22px);
  }

  html.mobile-dashboard-lock .mobile-ref-nav .mobile-ref-plus {
    width: clamp(68px, 15vw, 78px);
    height: clamp(68px, 15vw, 78px);
    transform: translateY(clamp(-22px, -2.4dvh, -14px));
  }

  html.mobile-dashboard-lock .mobile-ref-nav .mobile-ref-plus svg {
    width: clamp(30px, 7vw, 35px);
    height: clamp(30px, 7vw, 35px);
  }
}

/* v67: login Connecta Vendedores conforme referencia */
.auth-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  min-height: 100dvh !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  padding: max(30px, env(safe-area-inset-top)) 24px max(30px, env(safe-area-inset-bottom)) !important;
  color: #f8fbff !important;
  background:
    linear-gradient(180deg, rgba(3, 10, 20, 0.1), rgba(3, 10, 20, 0.48) 44%, rgba(1, 6, 12, 0.86) 100%),
    radial-gradient(circle at 86% 28%, rgba(255, 179, 86, 0.32), transparent 17%),
    radial-gradient(circle at 47% 77%, rgba(105, 229, 65, 0.2), transparent 30%),
    url("assets/calendar-solar-bg.jpeg") center center / cover no-repeat,
    #020913 !important;
}

.auth-screen::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(180deg, rgba(2, 8, 17, 0.16), rgba(2, 8, 17, 0.48)),
    radial-gradient(circle at 76% 28%, rgba(255, 204, 122, 0.2), transparent 20%),
    linear-gradient(90deg, rgba(1, 6, 12, 0.56), rgba(1, 6, 12, 0.12) 54%, rgba(1, 6, 12, 0.26));
}

.auth-screen::after {
  content: "" !important;
  position: absolute !important;
  left: -12% !important;
  right: -12% !important;
  bottom: -6% !important;
  height: 40% !important;
  pointer-events: none !important;
  background:
    linear-gradient(112deg, transparent 0 44%, rgba(108, 240, 67, 0.18) 45% 46%, transparent 47% 100%),
    radial-gradient(ellipse at 54% 86%, rgba(99, 235, 64, 0.18), transparent 42%);
}

.auth-screen.hidden,
.app-shell.auth-locked {
  display: none !important;
}

.auth-card {
  position: relative !important;
  z-index: 1 !important;
  width: min(498px, calc(100vw - 88px)) !important;
  min-height: min(844px, calc(100dvh - 140px)) !important;
  display: grid !important;
  align-content: center !important;
  gap: 0 !important;
  padding: clamp(42px, 7dvh, 66px) 36px 38px !important;
  overflow: hidden !important;
  color: #f8fbff !important;
  border: 1px solid rgba(135, 204, 245, 0.38) !important;
  border-radius: 32px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(136, 215, 255, 0.13), transparent 18%),
    linear-gradient(180deg, rgba(7, 23, 39, 0.84), rgba(2, 12, 22, 0.92)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(120, 204, 255, 0.13),
    0 0 0 1px rgba(5, 16, 28, 0.42),
    0 26px 70px rgba(0, 0, 0, 0.48),
    0 0 34px rgba(73, 180, 255, 0.13) !important;
  backdrop-filter: blur(20px) saturate(1.08);
}

.auth-card::before {
  content: "" !important;
  position: absolute !important;
  left: 12% !important;
  right: 12% !important;
  top: -1px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent, rgba(162, 226, 255, 0.85), #ffffff, rgba(105, 218, 255, 0.8), transparent) !important;
  box-shadow: 0 0 18px rgba(105, 218, 255, 0.92) !important;
}

.auth-card::after {
  content: "" !important;
  position: absolute !important;
  left: 16% !important;
  right: 16% !important;
  top: 322px !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(87, 192, 245, 0.42), rgba(255, 255, 255, 0.78), rgba(87, 192, 245, 0.42), transparent) !important;
  box-shadow: 0 0 16px rgba(87, 192, 245, 0.72) !important;
}

.auth-brand {
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  min-height: 0 !important;
  margin: 0 0 72px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.auth-brand img {
  display: block !important;
  width: min(340px, 100%) !important;
  max-height: 190px !important;
  object-fit: contain !important;
  filter:
    drop-shadow(0 0 15px rgba(114, 216, 102, 0.16))
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.34)) !important;
}

.auth-copy {
  display: grid !important;
  gap: 14px !important;
  margin: 0 0 34px !important;
  text-align: center !important;
}

.auth-kicker {
  display: block !important;
  color: #a8e958 !important;
  font-size: 0.8rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.22em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  text-shadow: 0 0 16px rgba(168, 233, 88, 0.28) !important;
}

.auth-copy h1 {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(1.55rem, 4.6vw, 2rem) !important;
  font-weight: 760 !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 16px 32px rgba(0, 0, 0, 0.34) !important;
}

.auth-copy p {
  display: none !important;
}

.login-form {
  display: grid !important;
  gap: 18px !important;
}

.login-field {
  position: relative !important;
  display: grid !important;
  min-height: auto !important;
  gap: 10px !important;
  color: rgba(235, 246, 255, 0.82) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.login-field > span {
  position: static !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  overflow: visible !important;
  color: rgba(235, 246, 255, 0.78) !important;
  font-size: 0.95rem !important;
  font-weight: 620 !important;
  line-height: 1.1 !important;
  white-space: normal !important;
}

.login-field > svg {
  position: absolute !important;
  left: 20px !important;
  top: auto !important;
  bottom: 18px !important;
  width: 22px !important;
  height: 22px !important;
  color: rgba(235, 246, 255, 0.54) !important;
  transform: none !important;
}

.login-form .login-field input {
  width: 100% !important;
  height: 62px !important;
  min-height: 62px !important;
  padding: 0 20px 0 58px !important;
  color: #f8fbff !important;
  border: 1px solid rgba(139, 180, 211, 0.22) !important;
  border-radius: 18px !important;
  outline: 0 !important;
  background:
    linear-gradient(180deg, rgba(4, 16, 29, 0.62), rgba(2, 11, 21, 0.72)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 28px rgba(0, 0, 0, 0.16) !important;
  font-size: 0.92rem !important;
  font-weight: 560 !important;
}

.login-form .login-field input::placeholder {
  color: rgba(235, 246, 255, 0.38) !important;
}

.login-form .login-field-password input {
  padding-right: 58px !important;
}

.login-form .login-field:focus-within input {
  border-color: rgba(117, 203, 247, 0.48) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 3px rgba(117, 203, 247, 0.08),
    0 0 22px rgba(117, 203, 247, 0.12) !important;
}

.login-field-password button {
  position: absolute !important;
  right: 16px !important;
  top: auto !important;
  bottom: 10px !important;
  width: 42px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  color: rgba(235, 246, 255, 0.54) !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  transform: none !important;
}

.login-field-password button svg {
  width: 22px !important;
  height: 22px !important;
}

.login-form > .primary-button {
  width: 100% !important;
  height: 74px !important;
  min-height: 74px !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 18px !important;
  margin: 12px 0 0 !important;
  padding: 0 24px !important;
  color: #06101c !important;
  border: 1px solid rgba(196, 255, 104, 0.7) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.38), transparent 34%),
    linear-gradient(180deg, #a7ef34, #68ce1d) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    0 0 28px rgba(136, 239, 50, 0.42),
    0 18px 34px rgba(0, 0, 0, 0.28) !important;
  font-size: 1.22rem !important;
  font-weight: 850 !important;
}

.login-form > .primary-button svg {
  display: block !important;
  width: 28px !important;
  height: 28px !important;
}

.login-error {
  min-height: 20px !important;
  margin: -4px 0 0 !important;
  color: #ffb4a8 !important;
  font-size: 0.82rem !important;
  font-weight: 760 !important;
  text-align: center !important;
}

.auth-footnote {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin: 4px 0 0 !important;
  color: rgba(235, 246, 255, 0.66) !important;
  font-size: 0.86rem !important;
  font-weight: 560 !important;
  line-height: 1.25 !important;
}

.auth-footnote svg {
  width: 24px !important;
  height: 24px !important;
  color: #8edf47 !important;
}

@media (max-width: 780px) {
  .auth-screen {
    place-items: center !important;
    padding: max(28px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom)) !important;
    background:
      linear-gradient(180deg, rgba(3, 10, 20, 0.06), rgba(3, 10, 20, 0.5) 44%, rgba(1, 6, 12, 0.86) 100%),
      radial-gradient(circle at 88% 30%, rgba(255, 179, 86, 0.34), transparent 18%),
      radial-gradient(circle at 50% 84%, rgba(105, 229, 65, 0.2), transparent 34%),
      url("assets/calendar-solar-bg.jpeg") 62% center / auto 100% no-repeat,
      #020913 !important;
  }

  .auth-card {
    width: min(498px, calc(100vw - 76px)) !important;
    min-height: min(844px, calc(100dvh - 136px)) !important;
    padding: clamp(38px, 6dvh, 56px) 35px 34px !important;
    border-radius: 30px !important;
  }

  .auth-card::after {
    top: clamp(230px, 38dvh, 318px) !important;
  }

  .auth-brand {
    margin-bottom: clamp(54px, 8dvh, 70px) !important;
  }

  .auth-brand img {
    width: min(322px, 100%) !important;
  }

  .auth-copy {
    gap: 13px !important;
    margin-bottom: 32px !important;
  }

  .auth-kicker {
    font-size: 0.73rem !important;
  }

  .auth-copy h1 {
    font-size: clamp(1.5rem, 5.1vw, 1.78rem) !important;
  }

  .login-form {
    gap: 17px !important;
  }

  .login-form .login-field input {
    height: 60px !important;
    min-height: 60px !important;
  }

  .login-form > .primary-button {
    height: 72px !important;
    min-height: 72px !important;
  }
}

@media (max-width: 390px) {
  .auth-card {
    width: calc(100vw - 52px) !important;
    min-height: min(734px, calc(100dvh - 92px)) !important;
    padding: 34px 22px 28px !important;
    border-radius: 28px !important;
  }

  .auth-brand {
    margin-bottom: 48px !important;
  }

  .auth-brand img {
    width: min(260px, 100%) !important;
  }

  .auth-card::after {
    top: 228px !important;
  }

  .auth-copy {
    margin-bottom: 26px !important;
  }

  .auth-copy h1 {
    font-size: 1.43rem !important;
  }

  .login-field > span {
    font-size: 0.86rem !important;
  }

  .login-form .login-field input {
    height: 56px !important;
    min-height: 56px !important;
    border-radius: 16px !important;
    font-size: 0.82rem !important;
  }

  .login-field > svg {
    bottom: 17px !important;
  }

  .login-field-password button {
    bottom: 7px !important;
  }

  .login-form > .primary-button {
    height: 66px !important;
    min-height: 66px !important;
    font-size: 1.08rem !important;
  }

  .auth-footnote {
    font-size: 0.75rem !important;
    gap: 9px !important;
  }
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

.legacy-commercial {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(80, 152, 72, 0.08), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f3f6f4 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(80, 152, 72, 0.14), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #edf3f0 100%);
}

.auth-screen.hidden,
.app-shell.auth-locked {
  display: none;
}

.auth-card {
  width: min(440px, 100%);
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.auth-brand {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.auth-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.auth-card p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.login-error {
  min-height: 20px;
  color: var(--danger);
  font-size: 0.84rem;
  font-weight: 850;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 26px 22px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(8, 32, 56, 0.96), rgba(16, 48, 80, 0.96)),
    var(--brand-blue);
}

.brand {
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
}

.nav-item svg,
.primary-button svg,
.secondary-button svg,
.danger-button svg,
.icon-button svg,
.search-box svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
}

.sidebar-summary {
  margin-top: auto;
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-summary span,
.sidebar-summary small {
  color: rgba(255, 255, 255, 0.72);
}

.sidebar-summary strong {
  font-size: 1.08rem;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--brand-green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 4px;
  font-size: 1.15rem;
}

h3 {
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.user-session {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.user-session div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.user-session strong {
  color: var(--brand-blue);
  font-size: 0.86rem;
  line-height: 1.1;
  white-space: nowrap;
}

.user-session span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.search-box {
  width: min(360px, 36vw);
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

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

.primary-button,
.secondary-button,
.danger-button,
.icon-button {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  white-space: nowrap;
}

.primary-button {
  padding: 0 15px;
  color: #ffffff;
  background: var(--brand-green);
  border-color: var(--brand-green);
  box-shadow: 0 10px 22px rgba(80, 152, 72, 0.2);
}

.primary-button:hover {
  background: var(--brand-green-dark);
  border-color: var(--brand-green-dark);
}

.secondary-button {
  padding: 0 14px;
  color: var(--brand-blue);
  background: #ffffff;
  border-color: var(--line);
}

.secondary-button:hover,
.icon-button:hover {
  background: var(--surface-strong);
}

.danger-button {
  padding: 0 14px;
  color: var(--danger);
  background: #fff7f6;
  border-color: #ffd5d0;
}

.icon-button {
  width: 42px;
  color: var(--brand-blue);
  background: #ffffff;
  border-color: var(--line);
}

.notification-button {
  position: relative;
}

.notification-button.has-alerts {
  color: var(--danger);
  border-color: #ffd5d0;
  background: #fff7f6;
}

.notification-button span {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--danger);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
}

.notification-button span[hidden] {
  display: none;
}

.icon-button.mini {
  width: 32px;
  height: 32px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(16, 48, 80, 0.06);
}

.metric span,
.metric small,
.panel-head p,
.section-row p,
.deal-meta,
.timeline small {
  color: var(--muted);
}

.metric strong {
  color: var(--brand-blue);
  font-size: 1.55rem;
  line-height: 1.1;
}

.operations-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.data-health {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  min-width: 0;
  color: var(--brand-blue);
  font-size: 0.9rem;
  font-weight: 800;
}

.data-health span {
  min-width: 0;
}

.db-mode {
  flex: 0 0 auto;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
}

.db-mode.local {
  color: var(--brand-blue);
  background: #edf4ff;
}

.db-mode.checking,
.db-mode.syncing {
  color: #694300;
  background: #fff7d6;
}

.db-mode.online {
  color: var(--brand-green-dark);
  background: #eaf4e8;
}

.db-mode.fallback {
  color: var(--danger);
  background: #fff1ef;
}

.seller-focus {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 360px);
}

.goal-focus {
  display: flex;
  align-items: end;
  gap: 8px;
}

.seller-focus label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.goal-focus label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.seller-focus input {
  width: 140px;
}

.goal-focus input {
  width: 108px;
}

.quick-filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.quick-filter {
  min-height: 34px;
  padding: 0 10px;
  color: var(--brand-blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
}

.quick-filter.active {
  color: #ffffff;
  background: var(--brand-green);
  border-color: var(--brand-green);
}

.data-health svg {
  width: 19px;
  height: 19px;
  color: var(--brand-green);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
  gap: 18px;
  align-items: start;
}

.list-panel,
.detail-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.list-panel {
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

select,
input,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

select,
input {
  min-height: 40px;
  padding: 0 11px;
}

textarea {
  width: 100%;
  padding: 11px;
  resize: vertical;
}

.status-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.status-tab {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-blue);
  background: #ffffff;
  font-weight: 800;
  white-space: nowrap;
}

.status-tab.active {
  color: #ffffff;
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.deal-list {
  display: grid;
  max-height: calc(100vh - 344px);
  min-height: 360px;
  overflow: auto;
}

.deal-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.deal-card:hover,
.deal-card.active {
  background: var(--soft);
}

.deal-card.active {
  box-shadow: inset 4px 0 0 var(--brand-green);
}

.deal-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.deal-card-media img,
.deal-card-placeholder {
  width: 100%;
  height: 100%;
}

.deal-card-media img {
  display: block;
  object-fit: cover;
}

.deal-card-placeholder {
  display: grid;
  place-items: center;
  color: var(--brand-blue);
}

.deal-card-placeholder svg {
  width: 30px;
  height: 30px;
  opacity: 0.72;
}

.deal-card-media > span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(8, 32, 56, 0.86);
  font-size: 0.74rem;
  font-weight: 950;
}

.deal-card-body {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.alert-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: var(--danger);
  border-radius: 999px;
  background: #fff1ef;
  font-size: 0.74rem;
  font-weight: 900;
}

.temperature-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.temperature-chip.quente {
  color: #7a2e0e;
  background: #fff0dc;
}

.temperature-chip.morno {
  color: #694300;
  background: #fff7d6;
}

.temperature-chip.frio {
  color: var(--brand-blue);
  background: #edf4ff;
}

.risk-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.risk-chip.baixo {
  color: var(--brand-green-dark);
  background: #eaf4e8;
}

.risk-chip.medio {
  color: #694300;
  background: #fff7d6;
}

.risk-chip.alto {
  color: var(--danger);
  background: #fff1ef;
}

.deal-topline,
.deal-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mini-progress {
  height: 6px;
}

.kanban-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 12px;
  min-height: 520px;
  max-height: calc(100vh - 344px);
  overflow: auto;
  padding: 14px;
}

.kanban-column {
  min-width: 250px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.kanban-column header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.kanban-column header strong {
  color: var(--brand-blue);
}

.kanban-column header span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
}

.kanban-cards {
  display: grid;
  align-content: start;
  gap: 10px;
}

.kanban-card {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 48, 80, 0.06);
}

.kanban-card.active {
  border-color: rgba(80, 152, 72, 0.7);
  box-shadow: inset 3px 0 0 var(--brand-green);
}

.kanban-open {
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.kanban-open strong {
  color: var(--brand-blue);
  line-height: 1.25;
}

.kanban-open span,
.kanban-empty {
  color: var(--muted);
  font-size: 0.78rem;
}

.kanban-empty {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}

.kanban-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kanban-actions button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--brand-blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.kanban-actions svg {
  width: 15px;
  height: 15px;
}

.kanban-actions span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.seller-day {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 344px);
  overflow: auto;
  padding: 14px;
}

.seller-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(80, 152, 72, 0.3);
  border-radius: 8px;
  background: #f8fbf8;
}

.seller-day-head strong,
.day-section header strong {
  color: var(--brand-blue);
}

.seller-day-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
}

.day-section {
  display: grid;
  gap: 10px;
}

.day-section header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.day-section header span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-blue);
  font-weight: 900;
}

.day-section header svg {
  width: 17px;
  height: 17px;
  color: var(--brand-green);
}

.day-section-list {
  display: grid;
  gap: 10px;
}

.client-table-wrap {
  overflow: auto;
  max-height: calc(100vh - 344px);
}

.performance-view {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 344px);
  overflow: auto;
  padding: 14px;
}

.performance-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 1.1fr);
  gap: 12px;
  align-items: stretch;
}

.performance-hero > div:first-child,
.performance-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.performance-hero span,
.performance-hero small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.performance-hero > div:first-child > strong {
  display: block;
  margin: 6px 0;
  color: var(--brand-blue);
  font-size: 1.8rem;
}

.performance-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.performance-metrics article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.performance-metrics strong {
  display: block;
  margin-top: 5px;
  color: var(--brand-blue);
  font-size: 1.15rem;
}

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

.performance-panel.wide-panel {
  grid-column: 1 / -1;
}

.performance-panel h3 {
  margin-bottom: 12px;
}

.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-title-row h3 {
  margin-bottom: 0;
}

.panel-title-row > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: right;
}

.manager-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seller-ranking-head,
.seller-ranking-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(118px, 0.72fr)) 94px 82px;
  gap: 10px;
  align-items: center;
}

.seller-ranking-head {
  padding: 0 0 8px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.seller-ranking-head span:not(:first-child) {
  text-align: right;
}

.seller-ranking-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.seller-ranking-row:last-child {
  border-bottom: 0;
}

.seller-ranking-row > strong,
.seller-ranking-row > em {
  color: var(--brand-blue);
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.ranking-seller {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.ranking-seller > strong {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--brand-green-dark);
  border-radius: 8px;
  background: #eaf4e8;
  font-size: 0.9rem;
}

.ranking-seller span {
  min-width: 0;
  overflow: hidden;
  color: var(--brand-blue);
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-seller small,
.forecast-row small,
.stalled-row small,
.loss-row small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 950;
  justify-self: end;
  white-space: nowrap;
}

.dashboard-chip.good {
  color: var(--brand-green-dark);
  background: #eaf4e8;
}

.dashboard-chip.neutral {
  color: var(--brand-blue);
  background: var(--surface-strong);
}

.dashboard-chip.warning {
  color: #7a2e0e;
  background: #fff0dc;
}

.forecast-buckets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.forecast-bucket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.forecast-bucket span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.forecast-bucket strong {
  color: var(--brand-blue);
  font-size: 1rem;
  text-align: right;
}

.forecast-bucket em {
  grid-column: 1 / -1;
  color: var(--brand-green-dark);
  font-style: normal;
  font-weight: 950;
}

.compact-list {
  display: grid;
}

.forecast-row,
.stalled-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  color: inherit;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.forecast-row span,
.stalled-row span,
.loss-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--brand-blue);
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forecast-row strong,
.stalled-row strong {
  color: var(--brand-green-dark);
  text-align: right;
}

.loss-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 8px 10px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.loss-row strong {
  color: var(--brand-blue);
  text-align: right;
}

.loss-bar {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-strong);
}

.loss-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--danger);
}

.funnel-row,
.opportunity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px 120px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.opportunity-row {
  width: 100%;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  text-align: left;
}

.funnel-row span,
.opportunity-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--brand-blue);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.funnel-row strong,
.opportunity-row strong {
  color: var(--brand-green-dark);
  text-align: right;
}

.funnel-row em,
.opportunity-row em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
  text-align: right;
}

.client-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.client-table th,
.client-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.client-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--brand-blue);
  background: var(--surface-strong);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.client-table tr {
  cursor: pointer;
}

.client-table tr:hover,
.client-table tr.active {
  background: var(--soft);
}

.client-table td span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.agenda-list {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 344px);
  overflow: auto;
  padding: 14px;
}

.agenda-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
}

.agenda-item:hover,
.agenda-item.active {
  background: var(--soft);
}

.agenda-date {
  display: grid;
  place-items: center;
  min-height: 58px;
  color: var(--brand-blue);
  border-radius: 8px;
  background: var(--surface-strong);
}

.agenda-date.overdue {
  color: var(--danger);
  background: #fff1ef;
}

.agenda-date strong {
  font-size: 1.25rem;
  line-height: 1;
}

.agenda-date span {
  color: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.agenda-item > div:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.agenda-item > div:nth-child(2) strong {
  overflow: hidden;
  color: var(--brand-blue);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-item > div:nth-child(2) span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tasks-view {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 344px);
  overflow: auto;
  padding: 14px;
}

.task-group {
  display: grid;
  gap: 10px;
}

.task-group header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-group header strong {
  color: var(--brand-blue);
}

.task-group header span {
  min-width: 30px;
  min-height: 26px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: var(--brand-blue);
  font-size: 0.8rem;
  font-weight: 900;
}

.task-group.danger header span {
  background: var(--danger);
}

.task-group.warning header span {
  background: var(--warning);
}

.task-row {
  width: 100%;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto 92px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
}

.task-row:hover {
  background: var(--soft);
}

.task-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
  color: var(--brand-blue);
  border-radius: 999px;
  background: var(--surface-strong);
  font-size: 0.76rem;
  font-weight: 900;
}

.task-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.task-row strong {
  overflow: hidden;
  color: var(--brand-blue);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-row small,
.task-row em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.task-row em {
  text-align: right;
}

.messages-view {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 344px);
  overflow: auto;
  padding: 14px;
}

.message-group {
  display: grid;
  gap: 10px;
}

.message-group header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.message-group header div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.message-group header strong {
  color: var(--brand-blue);
}

.message-group header span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.message-group header em {
  min-width: 32px;
  min-height: 28px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: var(--brand-blue);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.message-list {
  display: grid;
  gap: 8px;
}

.message-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 42px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.message-row:hover,
.message-row.active {
  background: var(--soft);
}

.message-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.message-row strong {
  overflow: hidden;
  color: var(--brand-blue);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-row span,
.message-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alerts-view {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 344px);
  overflow: auto;
  padding: 14px;
}

.alerts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.alerts-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.alerts-head strong {
  color: var(--brand-blue);
}

.alerts-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.alert-group {
  display: grid;
  gap: 10px;
}

.alert-group header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.alert-group header strong {
  color: var(--brand-blue);
}

.alert-group header span {
  min-width: 30px;
  min-height: 26px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: var(--brand-blue);
  font-size: 0.8rem;
  font-weight: 900;
}

.alert-list {
  display: grid;
  gap: 8px;
}

.alert-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.alert-row:hover,
.alert-row.active {
  background: var(--soft);
}

.alert-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
}

.alert-icon svg {
  width: 19px;
  height: 19px;
}

.alert-row.danger .alert-icon {
  color: var(--danger);
  background: #fff1ef;
}

.alert-row.warning .alert-icon {
  color: var(--warning);
  background: #fff7d6;
}

.alert-row.info .alert-icon {
  color: var(--brand-blue);
  background: #edf4ff;
}

.alert-row > div:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.alert-row strong {
  overflow: hidden;
  color: var(--brand-blue);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-row span,
.alert-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-row em {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  color: var(--brand-blue);
  border-radius: 999px;
  background: var(--surface-strong);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.users-view {
  display: grid;
  max-height: calc(100vh - 344px);
  overflow: auto;
  padding: 14px;
}

.user-admin {
  display: grid;
  gap: 14px;
}

.user-create-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.user-list {
  display: grid;
  gap: 8px;
}

.user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.user-row.inactive {
  opacity: 0.65;
}

.user-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.user-row strong {
  overflow: hidden;
  color: var(--brand-blue);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-row span,
.user-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.user-status.active {
  color: var(--brand-green-dark);
  background: #eaf4e8;
}

.user-status.inactive {
  color: var(--danger);
  background: #fff1ef;
}

.deal-title {
  min-width: 0;
}

.deal-title strong {
  display: block;
  overflow: hidden;
  color: var(--brand-blue);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.deal-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.deal-stat {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.deal-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.73rem;
}

.deal-stat strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-checks,
.snapshot-photos {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.photo-checks span,
.snapshot-photos span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.74rem;
  font-weight: 900;
}

.photo-checks span.done,
.snapshot-photos span.done {
  color: var(--brand-green-dark);
  border-color: rgba(80, 152, 72, 0.36);
  background: #eaf4e8;
}

.photo-checks svg,
.snapshot-photos svg {
  width: 14px;
  height: 14px;
}

.status-pill,
.priority-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill {
  color: var(--brand-blue);
  background: #e9f2ea;
}

.status-pill.proposta,
.status-pill.documentacao {
  color: #694300;
  background: #fff2c8;
}

.status-pill.negociando {
  color: var(--brand-blue);
  background: #edf4ff;
}

.status-pill.coletar-dados {
  color: #694300;
  background: #fff7d6;
}

.status-pill.projeto-engenharia,
.status-pill.instalacao,
.status-pill.homologacao {
  color: var(--brand-blue);
  background: #eaf0f3;
}

.status-pill.fechado,
.status-pill.concluido {
  color: #ffffff;
  background: var(--brand-green);
}

.status-pill.perdido {
  color: #ffffff;
  background: var(--danger);
}

.priority-pill {
  color: var(--brand-blue);
  background: #edf4ff;
}

.priority-pill.alta {
  color: #7a2e0e;
  background: #fff0dc;
}

.priority-pill.baixa {
  color: #246b3a;
  background: #eaf4e8;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.empty-state.compact {
  min-height: 92px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.detail-panel {
  position: sticky;
  top: 28px;
  max-height: calc(100vh - 56px);
  overflow: auto;
}

#dealForm {
  min-width: 0;
  display: grid;
  gap: 18px;
  padding: 18px;
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.deal-snapshot {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(16, 48, 80, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(80, 152, 72, 0.12), transparent 42%),
    #ffffff;
}

.snapshot-cover {
  position: relative;
  grid-row: span 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  aspect-ratio: 1;
  background: var(--surface-strong);
}

.snapshot-cover img,
.snapshot-empty {
  width: 100%;
  height: 100%;
}

.snapshot-cover img {
  display: block;
  object-fit: cover;
}

.snapshot-empty {
  display: grid;
  place-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.snapshot-empty svg {
  width: 32px;
  height: 32px;
  color: var(--brand-blue);
}

.snapshot-progress {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(8, 32, 56, 0.9);
  font-size: 0.78rem;
  font-weight: 950;
}

.snapshot-main {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.snapshot-main strong {
  display: block;
  color: var(--brand-blue);
  font-size: 1.25rem;
  line-height: 1.15;
}

.snapshot-main p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.snapshot-label,
.snapshot-next span,
.snapshot-kpis span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.snapshot-map {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: var(--warning);
  border: 1px solid #f3d797;
  border-radius: 999px;
  background: #fff9e8;
  font-size: 0.74rem;
  font-weight: 950;
  white-space: nowrap;
}

.snapshot-map.saved {
  color: var(--brand-green-dark);
  border-color: rgba(80, 152, 72, 0.35);
  background: #eaf4e8;
}

.snapshot-map svg {
  width: 15px;
  height: 15px;
}

.snapshot-kpis {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.snapshot-kpis article,
.snapshot-next {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.snapshot-kpis strong,
.snapshot-next strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--brand-blue);
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snapshot-kpis .overdue strong {
  color: var(--danger);
}

.snapshot-next,
.snapshot-photos {
  grid-column: 2;
}

.readiness-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(80, 152, 72, 0.3);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbf8, #ffffff);
}

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

.readiness-topline span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.readiness-topline strong {
  display: block;
  color: var(--brand-blue);
  font-size: 1.7rem;
  line-height: 1;
}

#readinessLabel {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--brand-green-dark);
  border-radius: 999px;
  background: #eaf4e8;
  font-size: 0.78rem;
  font-weight: 900;
}

.progress-track,
.mini-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebe8;
}

.progress-track span,
.mini-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--warning);
  transition: width 180ms ease;
}

.progress-track span.complete,
.mini-progress span[style="width: 100%"] {
  background: var(--brand-green);
}

.missing-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.missing-checklist span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.missing-checklist span.done {
  color: var(--brand-green-dark);
}

.missing-checklist svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.quick-actions .secondary-button {
  min-width: 0;
  padding: 0 10px;
  font-size: 0.82rem;
}

.field-flow {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(16, 48, 80, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 48, 80, 0.08);
}

.field-flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-flow-head div {
  min-width: 0;
}

.field-flow-head span,
.voice-status {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.field-flow-head strong {
  display: block;
  overflow: hidden;
  color: var(--brand-blue);
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-flow-actions {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 7px;
}

.field-action,
.field-save-action {
  min-width: 0;
  min-height: 52px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 7px 6px;
  color: var(--brand-blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-size: 0.73rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.field-action svg,
.field-save-action svg {
  width: 18px;
  height: 18px;
}

.field-action.completed {
  color: var(--brand-green-dark);
  border-color: rgba(80, 152, 72, 0.45);
  background: #eaf4e8;
}

.field-action.listening {
  color: #ffffff;
  border-color: var(--danger);
  background: var(--danger);
}

.field-save-action {
  min-width: 98px;
  color: #ffffff;
  border-color: var(--brand-green);
  background: var(--brand-green);
}

.voice-status:empty {
  display: none;
}

.sales-assistant {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(16, 48, 80, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

.assistant-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.assistant-metrics > div {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.assistant-metrics span,
.assistant-metrics small,
.next-best-action span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.assistant-metrics strong {
  display: block;
  margin: 4px 0;
  color: var(--brand-blue);
  font-size: 1.25rem;
  line-height: 1.1;
}

.assistant-metrics .score-hot {
  color: var(--brand-green-dark);
}

.assistant-metrics .score-warm {
  color: var(--warning);
}

.assistant-metrics .score-cold {
  color: var(--danger);
}

.next-best-action {
  display: grid;
  gap: 5px;
  padding: 11px;
  border-left: 3px solid var(--brand-green);
  border-radius: 0 8px 8px 0;
  background: #f4faf3;
}

.next-best-action strong {
  color: var(--brand-blue);
  line-height: 1.35;
}

.stage-checklist {
  display: grid;
  gap: 8px;
}

.stage-checklist > strong {
  color: var(--brand-blue);
  font-size: 0.86rem;
}

.stage-checklist > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.stage-checklist span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.stage-checklist svg {
  width: 15px;
  height: 15px;
  color: var(--brand-green);
  flex: 0 0 auto;
}

.closing-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(80, 152, 72, 0.24);
  border-radius: 8px;
  background: #f8fbf8;
}

.closing-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.closing-head > div {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.closing-head span,
.closing-head small,
.closing-insight span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.closing-head strong {
  display: block;
  margin: 4px 0;
  color: var(--brand-blue);
  font-size: 1.18rem;
}

.qualification-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.qualification-checklist span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.qualification-checklist span.done {
  color: var(--brand-green-dark);
}

.qualification-checklist svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.closing-insight {
  display: grid;
  gap: 8px;
  padding: 11px;
  border-left: 3px solid var(--brand-green);
  border-radius: 0 8px 8px 0;
  background: #ffffff;
}

.closing-insight strong {
  display: block;
  margin-top: 3px;
  color: var(--brand-blue);
}

.closing-insight p {
  margin-bottom: 0;
  color: var(--ink);
  line-height: 1.45;
}

.closing-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.assistant-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.objection-coach {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #ffe1b5;
  border-radius: 8px;
  background: #fffaf0;
}

.objection-coach span {
  display: block;
  color: var(--warning);
  font-size: 0.76rem;
  font-weight: 900;
}

.objection-coach strong {
  display: block;
  margin: 3px 0;
  color: var(--brand-blue);
}

.objection-coach p {
  margin-bottom: 0;
  color: var(--ink);
  line-height: 1.45;
}

.cadence-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(16, 48, 80, 0.14);
  border-radius: 8px;
  background: #f7fafb;
}

.cadence-panel > div:first-child {
  display: grid;
  gap: 3px;
}

.cadence-panel span {
  color: var(--brand-green-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.cadence-panel strong {
  color: var(--brand-blue);
}

.cadence-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.4;
}

.cadence-message {
  max-height: 136px;
  overflow: auto;
  padding: 11px;
  border: 1px dashed rgba(16, 48, 80, 0.22);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-size: 0.84rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.cadence-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.proposal-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(80, 152, 72, 0.25);
  border-radius: 8px;
  background: #ffffff;
}

.proposal-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.proposal-preview article {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.proposal-preview span,
.proposal-preview small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.proposal-preview strong {
  display: block;
  margin: 4px 0;
  color: var(--brand-blue);
  font-size: 1.08rem;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

label,
.full-field {
  display: grid;
  gap: 7px;
  color: var(--brand-blue);
  font-size: 0.84rem;
  font-weight: 850;
}

.input-with-suffix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-suffix input {
  width: 100%;
  padding-right: 52px;
}

.input-with-suffix span {
  position: absolute;
  right: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.section-row p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.file-button {
  cursor: pointer;
}

.required-uploads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.upload-slot {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.upload-slot .file-button {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: center;
}

.upload-slot.completed {
  border-color: rgba(80, 152, 72, 0.45);
  background: #f2f8f1;
}

.upload-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--brand-blue);
  border-radius: 8px;
  background: var(--surface-strong);
}

.upload-icon svg {
  width: 20px;
  height: 20px;
}

.upload-slot strong,
.upload-slot span {
  display: block;
}

.upload-slot strong {
  color: var(--brand-blue);
  line-height: 1.25;
}

.upload-slot span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.upload-slot.completed span {
  color: var(--brand-green-dark);
}

.seller-playbook {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

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

.playbook-grid span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.playbook-grid span.done {
  color: var(--brand-green-dark);
}

.playbook-grid svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.template-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.followup-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.attachments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.attachment {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 48, 80, 0.07);
}

.attachment img {
  display: block;
  width: 100%;
  height: 126px;
  object-fit: cover;
}

.file-preview {
  height: 126px;
  display: grid;
  place-items: center;
  color: var(--brand-blue);
  background: #eaf0f3;
}

.file-preview svg {
  width: 26px;
  height: 26px;
}

.attachment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  background: #ffffff;
}

.attachment-footer a {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--brand-blue);
  font-size: 0.76rem;
  font-weight: 850;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.attachment-footer span {
  flex: 0 0 auto;
  max-width: 118px;
  overflow: hidden;
  padding: 3px 6px;
  color: var(--brand-green-dark);
  border-radius: 999px;
  background: #eaf4e8;
  font-size: 0.68rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-attachment {
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 6px;
  color: var(--danger);
  background: #fff1ef;
}

.note-composer {
  display: grid;
  grid-template-columns: 130px 170px minmax(0, 1fr) auto;
  gap: 8px;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border-left: 3px solid var(--brand-green);
  border-radius: 0 8px 8px 0;
  background: var(--soft);
}

.timeline-item.audit {
  border-left-color: var(--brand-blue);
  background: #f7fafb;
}

.timeline-item p {
  margin-bottom: 0;
  line-height: 1.4;
}

.audit-changes {
  display: grid;
  gap: 5px;
  margin-top: 3px;
}

.audit-changes span {
  display: block;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  font-size: 0.78rem;
  line-height: 1.35;
}

.audit-changes strong {
  display: block;
  color: var(--brand-blue);
  font-size: 0.76rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 48px));
  padding: 13px 15px;
  color: #ffffff;
  border-radius: 8px;
  background: var(--brand-blue);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 32%, rgba(78, 156, 70, 0.12), transparent 34%),
    rgba(1, 8, 16, 0.94);
  backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

.validation-modal {
  width: min(460px, 100%);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(126, 183, 221, 0.28);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.modal-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #ffd970;
  border: 1px solid rgba(255, 204, 0, 0.34);
  border-radius: 14px;
  background: rgba(255, 204, 0, 0.12);
}

.modal-icon svg {
  width: 24px;
  height: 24px;
}

.modal-content {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.modal-content h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.1rem;
}

.modal-content p {
  margin: 0;
  color: rgba(220, 234, 246, 0.76);
  font-size: 0.9rem;
  line-height: 1.45;
}

.modal-content ul {
  max-height: 260px;
  overflow: auto;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.modal-content li {
  padding: 9px 10px;
  color: #f8fbff;
  border: 1px solid rgba(126, 183, 221, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sidebar-summary {
    grid-column: 1 / -1;
    margin-top: 0;
  }

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

  .required-uploads {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-panel {
    position: static;
    max-height: none;
  }

  .deal-list {
    max-height: none;
  }

  .kanban-board,
  .client-table-wrap,
  .agenda-list,
  .messages-view,
  .alerts-view,
  .users-view {
    max-height: none;
  }
}

@media (max-width: 780px) {
  .workspace {
    padding: 18px;
  }

  .sidebar {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions,
  .search-box,
  .user-session,
  .primary-button,
  .secondary-button,
  .danger-button {
    width: 100%;
  }

  .topbar-actions {
    justify-content: stretch;
  }

  .icon-button {
    flex: 1;
  }

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

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

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

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

  .seller-focus input {
    width: 100%;
  }

  .goal-focus input {
    width: 100%;
  }

  .panel-head,
  .detail-head,
  .section-row,
  .deal-topline,
  .deal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-row,
  .filter-row select {
    width: 100%;
  }

  .form-grid,
  .deal-stats,
  .snapshot-kpis,
  .note-composer,
  .missing-checklist,
  .quick-actions,
  .assistant-metrics,
  .stage-checklist > div,
  .closing-head,
  .qualification-checklist,
  .closing-actions,
  .assistant-actions,
  .cadence-actions,
  .objection-coach,
  .proposal-preview,
  .performance-hero,
  .performance-metrics,
  .performance-grid,
  .playbook-grid,
  .template-row,
  .followup-buttons {
    grid-template-columns: 1fr;
  }

  .field-flow {
    position: sticky;
    bottom: 0;
    z-index: 8;
    margin: 0 -18px -18px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -16px 32px rgba(16, 48, 80, 0.16);
  }

  .deal-card,
  .deal-snapshot {
    grid-template-columns: 1fr;
  }

  .deal-card-media {
    aspect-ratio: 16 / 9;
  }

  .snapshot-cover,
  .snapshot-main,
  .snapshot-kpis,
  .snapshot-next,
  .snapshot-photos {
    grid-column: 1;
  }

  .snapshot-cover {
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }

  .snapshot-main {
    flex-direction: column;
  }

  .required-uploads,
  .attachments {
    grid-template-columns: 1fr;
  }

  .field-flow-head {
    align-items: stretch;
  }

  .field-flow-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .field-action {
    min-height: 58px;
    font-size: 0.72rem;
  }

  .field-save-action {
    min-height: 46px;
  }

  .panel-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-title-row > span {
    text-align: left;
  }

  .seller-ranking-head {
    display: none;
  }

  .seller-ranking-row {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .ranking-seller {
    grid-column: 1 / -1;
  }

  .seller-ranking-row > strong,
  .seller-ranking-row > em {
    text-align: left;
  }

  .dashboard-chip {
    justify-self: start;
  }

  .forecast-buckets,
  .forecast-row,
  .stalled-row,
  .loss-row {
    grid-template-columns: 1fr;
  }

  .forecast-row strong,
  .stalled-row strong,
  .loss-row strong {
    text-align: left;
  }

  .upload-slot {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .upload-slot .file-button {
    grid-column: 1 / -1;
  }

  .kanban-board {
    grid-auto-columns: minmax(230px, 86vw);
  }

  .seller-day {
    max-height: none;
  }

  .performance-view {
    max-height: none;
  }

  .tasks-view {
    max-height: none;
  }

  .messages-view {
    max-height: none;
  }

  .alerts-view {
    max-height: none;
  }

  .users-view {
    max-height: none;
  }

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

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

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

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

  .user-create-form,
  .user-row {
    grid-template-columns: 1fr;
  }

  .task-row em {
    text-align: left;
  }

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

  .agenda-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .agenda-item .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .client-table {
    min-width: 760px;
  }
}

@media (max-width: 520px) {
  .metrics-grid,
  .nav-list {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 96px;
  }

  .form-actions {
    justify-content: stretch;
  }
}

/* v20: fluxo simples vendedor -> cliente -> anexos -> kanban */
.metrics-grid,
.operations-bar,
.status-tabs,
.deal-snapshot,
.readiness-card,
.field-flow,
#importButton,
#csvButton,
#statusFilter,
#sellerFilter {
  display: none !important;
}

body {
  background:
    linear-gradient(180deg, #f6faf8 0%, #eef4f1 100%);
}

.app-shell {
  grid-template-columns: 224px minmax(0, 1fr);
}

.sidebar {
  gap: 18px;
  padding: 22px 18px;
  color: var(--ink);
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.brand {
  min-height: 70px;
  border-color: var(--line);
  background: #ffffff;
}

.nav-item {
  color: var(--brand-blue);
  background: #f7faf8;
  border-color: var(--line);
  font-weight: 900;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.sidebar-summary {
  color: var(--brand-blue);
  background: #eef7ee;
  border-color: rgba(80, 152, 72, 0.24);
}

.sidebar-summary span,
.sidebar-summary small {
  color: var(--muted);
}

.workspace {
  padding: 22px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: -22px -22px 18px;
  padding: 16px 22px;
  background: rgba(246, 250, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.topbar h1 {
  font-size: 1.7rem;
}

.topbar-actions {
  gap: 8px;
}

.content-grid {
  grid-template-columns: minmax(560px, 1.25fr) minmax(430px, 0.75fr);
  gap: 16px;
}

.list-panel,
.detail-panel {
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(16, 48, 80, 0.08);
}

.panel-head {
  padding: 16px;
}

.panel-head .filter-row {
  display: none;
}

.kanban-board {
  min-height: calc(100vh - 190px);
  max-height: calc(100vh - 190px);
  grid-auto-columns: minmax(260px, 300px);
  gap: 12px;
  padding: 14px;
  background: #f8fbf9;
}

.kanban-column {
  background: #ffffff;
  border-color: #dfe8e2;
  box-shadow: 0 10px 22px rgba(16, 48, 80, 0.06);
}

.kanban-column header {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.kanban-card {
  box-shadow: none;
}

.kanban-open strong {
  font-size: 0.95rem;
}

.detail-panel {
  top: 76px;
  max-height: calc(100vh - 98px);
}

#dealForm {
  gap: 14px;
  padding: 16px;
}

.detail-head {
  padding-bottom: 12px;
}

.form-section-title {
  padding-top: 0;
  border-top: 0;
}

.required-uploads {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upload-slot {
  min-height: 154px;
  align-content: start;
  border-color: #dfe8e2;
  background: #fbfdfb;
}

.upload-icon {
  background: #eef7ee;
}

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

.quick-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

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

  .kanban-board {
    max-height: none;
    min-height: 420px;
  }

  .detail-panel {
    top: 0;
    max-height: none;
  }
}

@media (max-width: 780px) {
  .workspace {
    padding: 14px;
  }

  .topbar {
    margin: -14px -14px 14px;
    padding: 14px;
  }

  .required-uploads,
  .attachments {
    grid-template-columns: 1fr;
  }
}

/* v21: interface mobile-first inspirada no app de referencia */
body {
  color: #f7fbff;
  background:
    radial-gradient(circle at 12% 0%, rgba(80, 152, 72, 0.2), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(22, 120, 190, 0.18), transparent 32%),
    linear-gradient(180deg, #01050a 0%, #061424 46%, #020812 100%);
}

.auth-screen {
  background:
    radial-gradient(circle at 20% 12%, rgba(80, 152, 72, 0.22), transparent 34%),
    radial-gradient(circle at 82% 0%, rgba(24, 112, 180, 0.18), transparent 36%),
    linear-gradient(180deg, #01050a 0%, #061424 100%);
}

.auth-card,
.list-panel,
.detail-panel,
.metric,
.kanban-column,
.upload-slot,
.attachment,
.empty-state,
.user-session,
.search-box,
.sidebar-summary {
  color: #f7fbff;
  background:
    linear-gradient(145deg, rgba(9, 31, 53, 0.94), rgba(3, 13, 25, 0.96));
  border-color: rgba(68, 133, 178, 0.28);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-brand,
.brand {
  background: transparent;
  border-color: rgba(80, 152, 72, 0.22);
  box-shadow: none;
}

.auth-card p,
.metric span,
.metric small,
.panel-head p,
.section-row p,
.deal-meta,
.timeline small,
.upload-slot span,
.sidebar-summary span,
.sidebar-summary small,
.form-section-title p,
.empty-state,
.attachment-footer span,
.current-user span,
.user-session span {
  color: rgba(222, 233, 244, 0.68);
}

.app-shell {
  grid-template-columns: 230px minmax(0, 1fr);
  background:
    linear-gradient(90deg, rgba(1, 5, 10, 0.92), transparent 28%),
    radial-gradient(circle at 74% 10%, rgba(80, 152, 72, 0.12), transparent 34%),
    transparent;
}

.sidebar {
  padding: 24px 18px;
  color: #f7fbff;
  background:
    linear-gradient(180deg, rgba(2, 12, 25, 0.98), rgba(1, 7, 15, 0.96));
  border-right: 1px solid rgba(68, 133, 178, 0.22);
}

.nav-list {
  gap: 8px;
}

.nav-item {
  height: 48px;
  color: rgba(222, 233, 244, 0.7);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(68, 133, 178, 0.16);
}

.nav-item:hover,
.nav-item.active {
  color: #6dd35d;
  background: rgba(80, 152, 72, 0.14);
  border-color: rgba(80, 152, 72, 0.32);
}

.workspace {
  padding: 22px;
}

.topbar {
  margin: -22px -22px 18px;
  padding: 18px 22px;
  color: #f7fbff;
  background: rgba(2, 11, 21, 0.9);
  border-bottom: 1px solid rgba(68, 133, 178, 0.18);
  backdrop-filter: blur(18px);
}

.topbar h1 {
  color: #ffffff;
  font-size: clamp(1.38rem, 1vw + 1.1rem, 1.9rem);
  letter-spacing: 0;
}

.eyebrow {
  color: #70d461;
}

.topbar-actions {
  gap: 9px;
}

.user-session,
.search-box {
  min-height: 44px;
}

.user-session strong,
.search-box svg {
  color: #ffffff;
}

.search-box input,
input,
select,
textarea {
  color: #f7fbff;
  background: rgba(4, 17, 32, 0.92);
  border-color: rgba(68, 133, 178, 0.24);
}

.search-box input::placeholder,
input::placeholder,
textarea::placeholder {
  color: rgba(222, 233, 244, 0.46);
}

select option {
  color: #132238;
}

label {
  color: rgba(235, 243, 251, 0.82);
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #67bf55, #4b9b43);
  border-color: rgba(112, 212, 97, 0.58);
  box-shadow: 0 15px 36px rgba(80, 152, 72, 0.34);
}

.primary-button:hover {
  background: linear-gradient(135deg, #74d165, #46923e);
}

.secondary-button,
.icon-button {
  color: #dcebf7;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(68, 133, 178, 0.24);
}

.secondary-button:hover,
.icon-button:hover {
  color: #ffffff;
  background: rgba(80, 152, 72, 0.12);
  border-color: rgba(80, 152, 72, 0.34);
}

.metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  min-height: 104px;
  padding: 16px;
  border-radius: 10px;
}

.metric:nth-child(n + 5) {
  display: none;
}

.metric strong {
  color: #ffffff;
  font-size: clamp(1.45rem, 1.8vw, 2.1rem);
}

.content-grid {
  grid-template-columns: minmax(540px, 1.18fr) minmax(420px, 0.82fr);
  gap: 18px;
}

.list-panel,
.detail-panel {
  overflow: hidden;
  border-radius: 18px;
}

.panel-head {
  padding: 18px;
  border-bottom: 1px solid rgba(68, 133, 178, 0.18);
}

.panel-head h2,
.detail-head h2,
.section-row h3,
.form-section-title h3 {
  color: #ffffff;
  letter-spacing: 0;
}

.kanban-board {
  min-height: calc(100vh - 292px);
  max-height: calc(100vh - 292px);
  grid-auto-columns: minmax(250px, 286px);
  gap: 12px;
  padding: 16px;
  background:
    radial-gradient(circle at 4% 0%, rgba(80, 152, 72, 0.1), transparent 36%),
    rgba(1, 8, 17, 0.58);
}

.kanban-column {
  padding: 12px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(9, 31, 53, 0.86), rgba(3, 13, 25, 0.9));
}

.kanban-column header {
  padding: 2px 2px 11px;
  border-bottom-color: rgba(68, 133, 178, 0.18);
}

.kanban-column header strong {
  color: #ffffff;
  font-size: 0.92rem;
}

.kanban-column header span {
  color: #6dd35d;
  background: rgba(80, 152, 72, 0.14);
}

.kanban-column footer {
  color: rgba(222, 233, 244, 0.58);
}

.kanban-card {
  padding: 12px;
  border-radius: 14px;
  color: #f7fbff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border-color: rgba(68, 133, 178, 0.22);
  box-shadow: 0 13px 26px rgba(0, 0, 0, 0.18);
}

.kanban-card.active {
  border-color: rgba(112, 212, 97, 0.75);
  box-shadow:
    inset 3px 0 0 #6dd35d,
    0 16px 34px rgba(0, 0, 0, 0.28);
}

.kanban-open strong {
  color: #ffffff;
  font-size: 0.98rem;
}

.kanban-open span,
.kanban-actions span {
  color: rgba(222, 233, 244, 0.66);
}

.mini-progress,
.progress-track {
  background: rgba(255, 255, 255, 0.08);
}

.mini-progress span,
.progress-track span {
  background: linear-gradient(90deg, #4f9848, #75d363);
}

.kanban-actions button {
  color: #dcebf7;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(68, 133, 178, 0.22);
}

.kanban-actions button:hover {
  color: #6dd35d;
  border-color: rgba(80, 152, 72, 0.42);
}

.detail-panel {
  top: 82px;
  max-height: calc(100vh - 106px);
}

#dealForm {
  padding: 18px;
}

.detail-head {
  padding: 0 0 16px;
  border-bottom-color: rgba(68, 133, 178, 0.18);
}

.readiness-card,
.deal-snapshot,
.field-flow {
  display: none !important;
}

.form-section-title {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(68, 133, 178, 0.18);
}

.form-grid {
  gap: 12px;
}

input,
select,
textarea {
  min-height: 42px;
  border-radius: 10px;
}

textarea {
  min-height: 92px;
}

.required-uploads {
  grid-template-columns: 1fr;
  gap: 9px;
}

.upload-slot {
  min-height: auto;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  padding: 10px;
  border-radius: 13px;
}

.upload-slot .file-button {
  grid-column: auto;
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 0;
  border-radius: 11px;
}

.upload-slot .file-button svg {
  width: 18px;
  height: 18px;
}

.upload-slot.completed {
  background:
    linear-gradient(145deg, rgba(80, 152, 72, 0.16), rgba(3, 13, 25, 0.95));
  border-color: rgba(80, 152, 72, 0.52);
}

.upload-icon {
  color: #6dd35d;
  background: rgba(80, 152, 72, 0.14);
}

.upload-slot strong {
  color: #ffffff;
}

.upload-slot.completed span {
  color: #6dd35d;
}

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

.attachment {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  padding: 8px;
  border-radius: 13px;
}

.attachment img,
.file-preview {
  width: 64px;
  height: 54px;
  border-radius: 9px;
}

.attachment-footer {
  min-width: 0;
}

.attachment-footer a {
  color: #ffffff;
}

.remove-attachment {
  color: #fda29b;
  background: rgba(180, 35, 24, 0.14);
}

.quick-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-row {
  border-top-color: rgba(68, 133, 178, 0.18);
}

.timeline,
.timeline-entry,
.audit-list,
.note,
.alert-row,
.user-row,
.task-row,
.client-row {
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(68, 133, 178, 0.18);
}

.timeline-entry::before {
  background: #6dd35d;
  box-shadow: 0 0 0 5px rgba(80, 152, 72, 0.14);
}

.status-pill {
  color: #bff4b8;
  background: rgba(80, 152, 72, 0.16);
}

.status-pill.proposta,
.status-pill.coletar-dados,
.status-pill.documentacao {
  color: #ffd777;
  background: rgba(215, 168, 66, 0.16);
}

.status-pill.negociando,
.status-pill.projeto-engenharia,
.status-pill.instalacao,
.status-pill.homologacao {
  color: #9cd3ff;
  background: rgba(24, 112, 180, 0.18);
}

.status-pill.concluido,
.status-pill.fechado {
  color: #ffffff;
  background: linear-gradient(135deg, #67bf55, #4b9b43);
}

.toast,
.modal-card {
  color: #f7fbff;
  background: rgba(4, 17, 32, 0.96);
  border-color: rgba(68, 133, 178, 0.28);
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

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

  .kanban-board {
    max-height: none;
    min-height: 430px;
  }

  .detail-panel {
    top: 0;
    max-height: none;
  }
}

@media (max-width: 780px) {
  body {
    background:
      radial-gradient(circle at 18% 0%, rgba(80, 152, 72, 0.22), transparent 34%),
      linear-gradient(180deg, #01050a 0%, #061424 100%);
  }

  .app-shell {
    display: block;
    min-height: 100vh;
    padding-bottom: 86px;
  }

  .workspace {
    padding: 14px;
  }

  .sidebar {
    position: fixed;
    inset: auto 10px 10px;
    z-index: 40;
    height: 68px;
    padding: 8px 12px;
    border: 1px solid rgba(68, 133, 178, 0.3);
    border-radius: 24px;
    background: rgba(2, 11, 21, 0.94);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
  }

  .brand,
  .sidebar-summary {
    display: none;
  }

  .nav-list {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .nav-item:nth-child(1) {
    grid-column: 1;
  }

  .nav-item:nth-child(2) {
    grid-column: 2;
  }

  .nav-item:nth-child(3) {
    grid-column: 5;
  }

  .nav-item {
    height: 52px;
    padding: 0;
    display: grid;
    place-items: center;
    gap: 2px;
    border: 0;
    background: transparent;
    font-size: 0.68rem;
  }

  .nav-item svg {
    width: 20px;
    height: 20px;
  }

  .nav-item.active {
    background: transparent;
    border-color: transparent;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 70;
    margin: -14px -14px 14px;
    padding: 14px;
    align-items: flex-start;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .topbar-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    justify-content: stretch;
    gap: 8px;
    width: 100%;
  }

  .user-session,
  .search-box {
    width: 100%;
  }

  .user-session {
    order: 2;
    grid-column: auto;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 14px;
  }

  .user-session > div {
    display: none;
  }

  .user-session .icon-button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    background: transparent;
    border: 0;
  }

  .search-box {
    order: 1;
    grid-column: auto;
  }

  #exportButton {
    order: 3;
    width: 44px;
    flex: 0 0 44px;
  }

  #newDealButton {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 80;
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 999px;
    font-size: 0;
    box-shadow: 0 15px 34px rgba(80, 152, 72, 0.55);
    transform: translateX(-50%);
  }

  #newDealButton svg {
    width: 25px;
    height: 25px;
  }

  .metrics-grid {
    grid-template-columns: repeat(4, minmax(92px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .metric {
    min-width: 104px;
    min-height: 92px;
    padding: 13px;
    scroll-snap-align: start;
  }

  .metric strong {
    font-size: 1.45rem;
  }

  .metric small {
    display: none;
  }

  .content-grid {
    gap: 14px;
  }

  .list-panel,
  .detail-panel {
    border-radius: 20px;
  }

  .panel-head {
    padding: 16px;
  }

  .kanban-board {
    min-height: 420px;
    grid-auto-columns: minmax(246px, 84vw);
    padding: 12px;
  }

  #dealForm {
    padding: 15px;
  }

  .form-grid,
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .quick-actions .secondary-button {
    width: 100%;
  }

  .upload-slot {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

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

@media (max-width: 520px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .topbar-actions {
    min-width: 0;
  }

  .topbar h1 {
    font-size: 1.35rem;
  }

  .metrics-grid {
    margin-right: -14px;
  }

  .kanban-column {
    border-radius: 18px;
  }
}

/* v22: cadastro somente pelo botao "Criar novo cliente"; cards existentes sao leitura */
.detail-panel[hidden],
#dealForm[hidden],
.detail-view[hidden] {
  display: none !important;
}

.content-grid.detail-closed {
  grid-template-columns: 1fr;
}

.content-grid.detail-closed .kanban-board {
  grid-auto-columns: minmax(270px, 1fr);
}

.detail-panel.view-mode {
  overflow: auto;
}

.detail-panel.create-mode {
  overflow: auto;
}

#deleteDealButton,
#duplicateDealButton {
  display: none !important;
}

.detail-view {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.detail-view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(68, 133, 178, 0.18);
}

.detail-view-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.detail-view-head span:not(.status-pill) {
  display: block;
  margin-top: 4px;
  color: rgba(222, 233, 244, 0.68);
  font-weight: 750;
}

.view-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.view-kpis article,
.view-data-grid article {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(68, 133, 178, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.view-kpis article.done {
  border-color: rgba(80, 152, 72, 0.42);
  background: rgba(80, 152, 72, 0.11);
}

.view-kpis article.warning {
  border-color: rgba(215, 168, 66, 0.38);
  background: rgba(215, 168, 66, 0.1);
}

.view-kpis span,
.view-data-grid span,
.view-section-head span,
.view-attachment span {
  display: block;
  color: rgba(222, 233, 244, 0.64);
  font-size: 0.78rem;
  font-weight: 800;
}

.view-kpis strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.15;
}

.view-section {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(68, 133, 178, 0.18);
}

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

.view-section-head h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
}

.view-link,
.view-attachment a {
  color: #6dd35d;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.view-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.view-data-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 0.9rem;
}

.view-checklist {
  display: grid;
  gap: 7px;
}

.view-checklist span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  color: rgba(222, 233, 244, 0.72);
  border: 1px solid rgba(68, 133, 178, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 850;
}

.view-checklist span.done {
  color: #bff4b8;
  border-color: rgba(80, 152, 72, 0.34);
  background: rgba(80, 152, 72, 0.11);
}

.view-checklist svg {
  width: 17px;
  height: 17px;
}

.view-attachments {
  display: grid;
  gap: 8px;
}

.view-attachment {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(68, 133, 178, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.view-attachment img,
.view-attachment .file-preview {
  width: 58px;
  height: 48px;
  border-radius: 9px;
}

.view-attachment strong {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view-note {
  margin: 0;
  padding: 12px;
  color: rgba(235, 243, 251, 0.82);
  border: 1px solid rgba(68, 133, 178, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  white-space: pre-wrap;
}

.warning-note {
  color: #ffd777;
  border-color: rgba(215, 168, 66, 0.28);
  background: rgba(215, 168, 66, 0.08);
}

.view-timeline {
  display: grid;
  gap: 8px;
  max-height: none;
}

.form-actions {
  justify-content: flex-end;
}

@media (max-width: 1180px) {
  .content-grid.detail-closed .kanban-board {
    grid-auto-columns: minmax(250px, 320px);
  }
}

@media (max-width: 780px) {
  .content-grid.detail-closed .kanban-board {
    grid-auto-columns: minmax(246px, 84vw);
  }

  .detail-panel.create-mode,
  .detail-panel.view-mode {
    margin-bottom: 12px;
    scroll-margin-top: 210px;
  }

  .view-kpis,
  .view-data-grid {
    grid-template-columns: 1fr 1fr;
  }

  .view-attachment {
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }

  .view-attachment img,
  .view-attachment .file-preview {
    width: 52px;
    height: 46px;
  }
}

@media (max-width: 520px) {
  .detail-view {
    padding: 15px;
  }

  .detail-view-head {
    display: grid;
  }

  .view-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* v23: identidade Connecta Energia oficial */
:root {
  --brand-blue: #063353;
  --brand-blue-dark: #04243b;
  --brand-blue-soft: #0a4d7a;
  --brand-green: #4e9c46;
  --brand-green-dark: #3d7a37;
  --brand-yellow: #ffcc00;
  --ink: #063353;
  --muted: #64748b;
  --soft: #f3f8f5;
  --surface: #ffffff;
  --surface-strong: #eef6f0;
  --line: #d7e5dc;
  --shadow: 0 20px 50px rgba(6, 51, 83, 0.12);
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.no-login .auth-screen,
body.no-login .user-session,
body.no-login #userNavButton {
  display: none !important;
}

.mobile-create-button {
  display: none;
}

body.no-login .app-shell.auth-locked {
  display: grid;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(78, 156, 70, 0.18), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(6, 51, 83, 0.12), transparent 34%),
    linear-gradient(180deg, #f8fbf8 0%, #eef6f0 100%);
}

.app-shell {
  background: transparent;
}

.workspace {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 248, 245, 0.88));
}

.workspace::before {
  content: "";
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: -1;
  width: min(560px, 54vw);
  aspect-ratio: 4 / 1.35;
  background: url("assets/connecta-logo-premium.png") center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
}

.sidebar {
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(6, 51, 83, 0.98), rgba(4, 36, 59, 0.98));
  border-right: 1px solid rgba(78, 156, 70, 0.22);
}

.brand {
  min-height: 96px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(78, 156, 70, 0.32);
  border-radius: 14px;
}

.brand img {
  max-height: 76px;
  object-fit: contain;
}

.sidebar-summary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.sidebar-summary span,
.sidebar-summary small {
  color: rgba(255, 255, 255, 0.72);
}

.nav-item {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(78, 156, 70, 0.95), rgba(61, 122, 55, 0.95));
  border-color: rgba(255, 255, 255, 0.16);
}

.topbar {
  color: var(--brand-blue);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(6, 51, 83, 0.1);
  box-shadow: 0 12px 34px rgba(6, 51, 83, 0.08);
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.topbar-logo {
  width: clamp(138px, 13vw, 190px);
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.topbar h1 {
  color: var(--brand-blue);
}

.eyebrow {
  color: var(--brand-green);
  letter-spacing: 0.02em;
}

.search-box,
.metric,
.list-panel,
.detail-panel,
.kanban-column,
.kanban-card,
.upload-slot,
.attachment,
.empty-state,
.view-kpis article,
.view-data-grid article,
.view-checklist span,
.view-attachment,
.view-note,
.timeline,
.timeline-entry,
.audit-list,
.note,
.alert-row,
.user-row,
.task-row,
.client-row {
  color: var(--brand-blue);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(6, 51, 83, 0.11);
  box-shadow: 0 14px 34px rgba(6, 51, 83, 0.08);
}

.list-panel,
.detail-panel {
  border-radius: 18px;
}

.metric span,
.metric small,
.panel-head p,
.section-row p,
.deal-meta,
.timeline small,
.upload-slot span,
.form-section-title p,
.empty-state,
.attachment-footer span,
.view-kpis span,
.view-data-grid span,
.view-section-head span,
.view-attachment span,
.view-note {
  color: #64748b;
}

.metric strong,
.panel-head h2,
.detail-head h2,
.section-row h3,
.form-section-title h3,
.detail-view-head h2,
.view-section-head h3,
.view-kpis strong,
.view-data-grid strong,
.view-attachment strong,
.kanban-open strong,
.kanban-column header strong,
.upload-slot strong,
.attachment-footer a {
  color: var(--brand-blue);
}

.panel-head,
.detail-head,
.detail-view-head,
.view-section,
.section-row,
.kanban-column header {
  border-color: rgba(6, 51, 83, 0.1);
}

.kanban-board {
  background:
    linear-gradient(135deg, rgba(78, 156, 70, 0.08), rgba(6, 51, 83, 0.045)),
    rgba(255, 255, 255, 0.48);
}

.kanban-column {
  background: rgba(255, 255, 255, 0.74);
}

.kanban-column header span {
  color: var(--brand-green-dark);
  background: rgba(78, 156, 70, 0.12);
}

.kanban-card.active {
  border-color: rgba(78, 156, 70, 0.7);
  box-shadow:
    inset 4px 0 0 var(--brand-green),
    0 16px 34px rgba(6, 51, 83, 0.12);
}

.kanban-open span,
.kanban-actions span {
  color: #64748b;
}

.mini-progress,
.progress-track {
  background: #dbe8e1;
}

.mini-progress span,
.progress-track span {
  background: linear-gradient(90deg, var(--brand-green), #77c96e);
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
  border-color: var(--brand-green);
  box-shadow: 0 14px 30px rgba(78, 156, 70, 0.28);
}

.primary-button:hover {
  background: linear-gradient(135deg, #5caf52, var(--brand-green-dark));
}

.secondary-button,
.icon-button,
.kanban-actions button {
  color: var(--brand-blue);
  background: #ffffff;
  border-color: rgba(6, 51, 83, 0.14);
}

.secondary-button:hover,
.icon-button:hover,
.kanban-actions button:hover {
  color: var(--brand-green-dark);
  background: #f2faf3;
  border-color: rgba(78, 156, 70, 0.36);
}

.search-box input,
input,
select,
textarea {
  color: var(--brand-blue);
  background: #ffffff;
  border-color: rgba(6, 51, 83, 0.14);
}

input.input-attention,
select.input-attention,
textarea.input-attention {
  border-color: #ffcc00 !important;
  box-shadow:
    0 0 0 3px rgba(255, 204, 0, 0.28),
    0 0 0 1px rgba(78, 156, 70, 0.32);
}

.search-box input::placeholder,
input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

label {
  color: var(--brand-blue);
}

.status-pill {
  color: var(--brand-blue);
  background: #e8f2eb;
}

.status-pill.proposta,
.status-pill.coletar-dados,
.status-pill.documentacao {
  color: #7a5700;
  background: #fff6cc;
}

.status-pill.negociando,
.status-pill.projeto-engenharia,
.status-pill.instalacao,
.status-pill.homologacao {
  color: var(--brand-blue);
  background: #e8f2f8;
}

.status-pill.concluido,
.status-pill.fechado {
  color: #ffffff;
  background: var(--brand-green);
}

.upload-icon {
  color: var(--brand-green-dark);
  background: #e8f4e8;
}

.upload-slot.completed,
.view-kpis article.done,
.view-checklist span.done {
  background: #edf8ee;
  border-color: rgba(78, 156, 70, 0.38);
}

.upload-slot.completed span,
.view-checklist span.done,
.view-link,
.view-attachment a {
  color: var(--brand-green-dark);
}

.view-kpis article.warning,
.warning-note {
  background: #fffbe6;
  border-color: rgba(255, 204, 0, 0.42);
}

.toast,
.modal-card {
  color: #ffffff;
  background: var(--brand-blue);
  border-color: rgba(78, 156, 70, 0.28);
}

@media (max-width: 780px) {
  body.no-login .app-shell.auth-locked {
    display: block;
  }

  .workspace::before {
    width: 78vw;
    right: 12px;
    bottom: 92px;
    opacity: 0.035;
  }

  .topbar {
    background: rgba(255, 255, 255, 0.96);
  }

  .topbar-title {
    display: grid;
    gap: 4px;
  }

  .topbar-logo {
    width: 146px;
  }

  .sidebar {
    background: rgba(6, 51, 83, 0.96);
    border-color: rgba(78, 156, 70, 0.28);
  }

  .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .nav-item:nth-child(1) {
    grid-column: 1;
  }

  .nav-item:nth-child(2) {
    grid-column: 2;
  }

  .mobile-create-button {
    grid-column: 3;
    align-self: center;
    justify-self: center;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    box-shadow: 0 16px 34px rgba(78, 156, 70, 0.42);
  }

  .mobile-create-button svg {
    width: 25px;
    height: 25px;
  }

  .nav-item:nth-child(3) {
    grid-column: 5;
  }

  .nav-item {
    color: rgba(255, 255, 255, 0.76);
  }

  .nav-item.active {
    color: #ffffff;
  }

  #newDealButton {
    display: none !important;
  }
}

/* v24: app escuro no estilo da referencia enviada */
:root {
  --brand-blue: #063353;
  --brand-blue-dark: #020b15;
  --brand-blue-soft: #0a4d7a;
  --brand-green: #4e9c46;
  --brand-green-dark: #3d7a37;
  --brand-yellow: #ffcc00;
  --ink: #f8fbff;
  --muted: #91a4b8;
  --soft: #06182a;
  --surface: #071b2e;
  --surface-strong: #0b243b;
  --line: rgba(72, 132, 171, 0.24);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

body {
  color: #f8fbff;
  background:
    radial-gradient(circle at 10% -6%, rgba(78, 156, 70, 0.22), transparent 27%),
    radial-gradient(circle at 82% 4%, rgba(10, 77, 122, 0.28), transparent 34%),
    linear-gradient(180deg, #010407 0%, #020b15 38%, #020812 100%);
}

body.no-login .app-shell.auth-locked {
  display: grid;
}

.workspace {
  position: relative;
  background:
    radial-gradient(circle at 58% 0%, rgba(78, 156, 70, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(2, 11, 21, 0.94), rgba(2, 8, 18, 0.98));
}

.workspace::before {
  z-index: -1;
  right: 26px;
  bottom: 84px;
  width: min(620px, 54vw);
  opacity: 0.055;
  filter: brightness(1.7) saturate(1.2);
}

.sidebar {
  color: #f8fbff;
  background:
    linear-gradient(180deg, rgba(3, 17, 31, 0.98), rgba(1, 8, 16, 0.98));
  border-right: 1px solid rgba(72, 132, 171, 0.2);
}

.brand {
  min-height: 98px;
  padding: 8px;
  background: transparent;
  border-color: rgba(72, 132, 171, 0.2);
  border-radius: 20px;
}

.brand img,
.topbar-logo {
  filter:
    brightness(1.45)
    saturate(1.12)
    drop-shadow(0 0 16px rgba(78, 156, 70, 0.2))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.08));
}

.brand img {
  max-height: 84px;
}

.sidebar-summary {
  color: #f8fbff;
  background: rgba(7, 29, 49, 0.76);
  border-color: rgba(72, 132, 171, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sidebar-summary span,
.sidebar-summary small {
  color: rgba(220, 234, 246, 0.7);
}

.nav-item {
  color: rgba(220, 234, 246, 0.7);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(72, 132, 171, 0.17);
}

.nav-item:hover,
.nav-item.active {
  color: #7ddd70;
  background: rgba(78, 156, 70, 0.16);
  border-color: rgba(78, 156, 70, 0.36);
}

.topbar {
  color: #f8fbff;
  background: rgba(2, 11, 21, 0.88);
  border-bottom: 1px solid rgba(72, 132, 171, 0.16);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.topbar h1 {
  color: #ffffff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.topbar-logo {
  width: clamp(154px, 14vw, 210px);
}

.eyebrow {
  color: #75d269;
}

.search-box,
.metric,
.list-panel,
.detail-panel,
.kanban-column,
.kanban-card,
.upload-slot,
.attachment,
.empty-state,
.view-kpis article,
.view-data-grid article,
.view-checklist span,
.view-attachment,
.view-note,
.timeline,
.timeline-entry,
.audit-list,
.note,
.alert-row,
.user-row,
.task-row,
.client-row,
.toast,
.modal-card {
  color: #f8fbff;
  background:
    linear-gradient(145deg, rgba(9, 31, 53, 0.94), rgba(3, 13, 25, 0.96));
  border-color: rgba(72, 132, 171, 0.25);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.metric,
.list-panel,
.detail-panel {
  border-radius: 22px;
}

.metric span,
.metric small,
.panel-head p,
.section-row p,
.deal-meta,
.timeline small,
.upload-slot span,
.form-section-title p,
.empty-state,
.attachment-footer span,
.view-kpis span,
.view-data-grid span,
.view-section-head span,
.view-attachment span,
.view-note,
.detail-view-head span:not(.status-pill),
.kanban-open span,
.kanban-actions span {
  color: rgba(220, 234, 246, 0.66);
}

.metric strong,
.panel-head h2,
.detail-head h2,
.section-row h3,
.form-section-title h3,
.detail-view-head h2,
.view-section-head h3,
.view-kpis strong,
.view-data-grid strong,
.view-attachment strong,
.kanban-open strong,
.kanban-column header strong,
.upload-slot strong,
.attachment-footer a {
  color: #ffffff;
}

.panel-head,
.detail-head,
.detail-view-head,
.view-section,
.section-row,
.kanban-column header {
  border-color: rgba(72, 132, 171, 0.17);
}

.metrics-grid {
  gap: 12px;
}

.metric {
  min-height: 106px;
  background:
    linear-gradient(145deg, rgba(10, 36, 60, 0.94), rgba(4, 15, 28, 0.96));
}

.metric strong {
  font-size: 1.65rem;
}

.list-panel {
  overflow: hidden;
}

.kanban-board {
  background:
    radial-gradient(circle at 4% 0%, rgba(78, 156, 70, 0.1), transparent 38%),
    rgba(1, 8, 17, 0.52);
}

.kanban-column {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(8, 29, 50, 0.92), rgba(3, 13, 25, 0.94));
}

.kanban-column header span {
  color: #78df6a;
  background: rgba(78, 156, 70, 0.16);
}

.kanban-empty {
  color: rgba(220, 234, 246, 0.62);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.025);
}

.kanban-card {
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.kanban-card.active {
  border-color: rgba(91, 211, 80, 0.8);
  box-shadow:
    inset 4px 0 0 #60c757,
    0 18px 42px rgba(0, 0, 0, 0.32);
}

.mini-progress,
.progress-track {
  background: rgba(255, 255, 255, 0.1);
}

.mini-progress span,
.progress-track span {
  background: linear-gradient(90deg, #4e9c46, #7ddd70);
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #68bf57, #4e9c46);
  border-color: rgba(126, 221, 112, 0.7);
  box-shadow: 0 16px 34px rgba(78, 156, 70, 0.36);
}

.primary-button:hover {
  background: linear-gradient(135deg, #78d366, #4e9c46);
}

.secondary-button,
.icon-button,
.kanban-actions button {
  color: rgba(235, 246, 255, 0.9);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(72, 132, 171, 0.25);
}

.secondary-button:hover,
.icon-button:hover,
.kanban-actions button:hover {
  color: #7ddd70;
  background: rgba(78, 156, 70, 0.13);
  border-color: rgba(78, 156, 70, 0.38);
}

.search-box input,
input,
select,
textarea {
  color: #f8fbff;
  background: rgba(4, 17, 32, 0.92);
  border-color: rgba(72, 132, 171, 0.28);
}

.search-box input::placeholder,
input::placeholder,
textarea::placeholder {
  color: rgba(220, 234, 246, 0.46);
}

select option {
  color: #063353;
}

label {
  color: rgba(235, 246, 255, 0.86);
}

.status-pill {
  color: #bff4b8;
  background: rgba(78, 156, 70, 0.16);
}

.status-pill.proposta,
.status-pill.coletar-dados,
.status-pill.documentacao {
  color: #ffd970;
  background: rgba(255, 204, 0, 0.14);
}

.status-pill.negociando,
.status-pill.projeto-engenharia,
.status-pill.instalacao,
.status-pill.homologacao {
  color: #9ad8ff;
  background: rgba(10, 77, 122, 0.24);
}

.status-pill.concluido,
.status-pill.fechado {
  color: #ffffff;
  background: linear-gradient(135deg, #68bf57, #4e9c46);
}

.upload-icon {
  color: #78df6a;
  background: rgba(78, 156, 70, 0.14);
}

.upload-slot.completed,
.view-kpis article.done,
.view-checklist span.done {
  background: rgba(78, 156, 70, 0.13);
  border-color: rgba(78, 156, 70, 0.42);
}

.upload-slot.completed span,
.view-checklist span.done,
.view-link,
.view-attachment a {
  color: #78df6a;
}

.view-kpis article.warning,
.warning-note {
  background: rgba(255, 204, 0, 0.1);
  border-color: rgba(255, 204, 0, 0.34);
}

.view-checklist span,
.view-attachment,
.view-note,
.view-kpis article,
.view-data-grid article {
  background: rgba(255, 255, 255, 0.035);
}

.attachment img,
.file-preview,
.view-attachment img,
.view-attachment .file-preview {
  background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 780px) {
  body {
    background:
      radial-gradient(circle at 15% 0%, rgba(78, 156, 70, 0.18), transparent 34%),
      linear-gradient(180deg, #010407 0%, #020b15 100%);
  }

  body.no-login .app-shell.auth-locked {
    display: block;
  }

  .workspace {
    background:
      linear-gradient(180deg, rgba(2, 11, 21, 0.96), rgba(2, 8, 18, 0.98));
  }

  .workspace::before {
    width: 84vw;
    opacity: 0.05;
  }

  .topbar {
    background: rgba(2, 11, 21, 0.94);
    border-bottom-color: rgba(72, 132, 171, 0.15);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .topbar-logo {
    width: 174px;
  }

  .topbar h1 {
    font-size: 1.36rem;
  }

  .metrics-grid {
    gap: 8px;
  }

  .metric {
    min-height: 92px;
    border-radius: 12px;
  }

  .list-panel,
  .detail-panel {
    border-radius: 22px;
  }

  .kanban-column {
    border-radius: 18px;
  }

  .sidebar {
    background: rgba(2, 11, 21, 0.96);
    border-color: rgba(72, 132, 171, 0.26);
  }

  .mobile-create-button {
    background: linear-gradient(135deg, #74d266, #4e9c46);
    box-shadow: 0 16px 40px rgba(78, 156, 70, 0.5);
  }
}

/* v25: leitura dos dropdowns no tema escuro */
select {
  color-scheme: dark;
  color: #f8fbff;
  background-color: #041120;
  border-color: rgba(126, 183, 221, 0.32);
}

select:focus {
  outline: 2px solid rgba(126, 221, 112, 0.55);
  outline-offset: 2px;
  border-color: rgba(126, 221, 112, 0.72);
  box-shadow: 0 0 0 4px rgba(78, 156, 70, 0.14);
}

select option,
select optgroup {
  color: #f8fbff;
  background-color: #071b2e;
}

select option:checked {
  color: #ffffff;
  background-color: #4e9c46;
}

select option:disabled,
select option[value=""] {
  color: #a9b8c8;
}

/* v26: campo kWp removido */
.view-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 520px) {
  .view-kpis {
    grid-template-columns: 1fr 1fr;
  }
}

/* v29: novas fases do Kanban */
.status-pill.negociacao-inicial,
.status-pill.coletar-dados,
.status-pill.elaborar-proposta {
  color: #9ad8ff;
  background: rgba(10, 77, 122, 0.24);
}

.status-pill.apresentar-proposta,
.status-pill.forma-de-pagamento {
  color: #ffd970;
  background: rgba(255, 204, 0, 0.14);
}

.status-pill.projeto,
.status-pill.em-rota,
.status-pill.em-obra,
.status-pill.vistoria {
  color: #dceaff;
  background: rgba(126, 183, 221, 0.16);
}

.status-pill.concluido {
  color: #ffffff;
  background: linear-gradient(135deg, #68bf57, #4e9c46);
}

/* v30: mapa operacional */
.map-view {
  min-width: 0;
}

.map-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(126, 183, 221, 0.22);
  border-radius: 8px;
  background: rgba(4, 17, 32, 0.72);
}

.map-head div {
  display: grid;
  gap: 3px;
}

.map-head strong {
  color: #ffffff;
  font-size: 1rem;
}

.map-head span {
  color: rgba(235, 246, 255, 0.7);
  font-size: 0.86rem;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 14px;
  min-height: 560px;
}

.client-map {
  width: 100%;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(126, 183, 221, 0.24);
  border-radius: 8px;
  background: #071b2e;
}

.client-map .leaflet-popup-content-wrapper,
.client-map .leaflet-popup-tip {
  color: #061524;
}

.map-empty {
  height: 100%;
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(235, 246, 255, 0.74);
  text-align: center;
}

.map-client-list {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
}

.map-client-row {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(126, 183, 221, 0.18);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(5, 22, 39, 0.86);
  text-align: left;
}

.map-client-row:hover,
.map-client-row.active {
  border-color: rgba(126, 221, 112, 0.55);
  background: rgba(78, 156, 70, 0.15);
}

.map-client-row > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #7edf70;
  background: rgba(78, 156, 70, 0.16);
}

.map-client-row div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.map-client-row strong,
.map-client-row small,
.map-client-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-client-row strong {
  font-size: 0.92rem;
}

.map-client-row small {
  color: rgba(235, 246, 255, 0.68);
  font-style: normal;
}

.map-client-row em {
  color: rgba(126, 221, 112, 0.86);
  font-size: 0.76rem;
  font-style: normal;
}

@media (max-width: 780px) {
  .nav-item[data-view="kanban"] {
    grid-column: 1;
  }

  .nav-item[data-view="mapa"] {
    grid-column: 2;
  }

  .mobile-create-button {
    grid-column: 3;
  }

  .nav-item[data-view="arquivos"] {
    grid-column: 4;
  }

  .nav-item[data-view="usuarios"] {
    grid-column: 5;
  }

  .map-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .client-map {
    min-height: 420px;
  }

  .map-client-list {
    max-height: none;
  }
}

/* v32: mapa em tela cheia no painel */
.map-view {
  height: clamp(560px, calc(100vh - 260px), 820px);
  min-height: 560px;
}

.map-panel {
  position: relative;
  height: 100%;
  min-height: inherit;
}

.client-map {
  height: 100%;
  min-height: inherit;
  border-radius: 8px;
}

.map-head,
.map-layout,
.map-client-list,
.map-client-row {
  display: none !important;
}

.map-floating-empty {
  position: absolute;
  left: 50%;
  top: 76px;
  z-index: 500;
  transform: translateX(-50%);
  padding: 10px 14px;
  color: #ffffff;
  border: 1px solid rgba(126, 183, 221, 0.28);
  border-radius: 8px;
  background: rgba(4, 17, 32, 0.9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  font-size: 0.85rem;
  font-weight: 850;
  text-align: center;
}

.map-location-button {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 600;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(126, 221, 112, 0.42);
  border-radius: 999px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(18, 48, 76, 0.9), rgba(5, 19, 33, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.32),
    0 0 22px rgba(114, 216, 102, 0.13);
  backdrop-filter: blur(16px);
  font-size: 0.78rem;
  font-weight: 900;
}

.map-location-button svg {
  width: 18px;
  height: 18px;
  color: #72d866;
}

.map-location-button:hover,
.map-location-button:focus-visible {
  border-color: rgba(126, 221, 112, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 38px rgba(0, 0, 0, 0.36),
    0 0 28px rgba(114, 216, 102, 0.22);
}

.map-location-button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.map-location-button.loading svg {
  animation: spin 0.9s linear infinite;
}

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

@media (max-width: 780px) {
  .map-view {
    height: calc(100vh - 235px);
    min-height: 500px;
  }

  .client-map {
    min-height: 500px;
  }

  .map-location-button {
    right: 12px;
    top: 12px;
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.68rem;
  }
}

.attorney-grid {
  padding: 14px;
  border: 1px solid rgba(126, 183, 221, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(78, 156, 70, 0.08), rgba(6, 51, 83, 0.05)),
    rgba(255, 255, 255, 0.025);
}

.upload-slot[data-slot="proposal"] {
  border-color: rgba(126, 221, 112, 0.48);
  background:
    linear-gradient(135deg, rgba(78, 156, 70, 0.18), rgba(6, 51, 83, 0.08)),
    rgba(255, 255, 255, 0.045);
}

.attorney-grid label::after {
  content: "Obrigatório para procuração";
  display: block;
  margin-top: 5px;
  color: #7edf70;
  font-size: 0.68rem;
  font-weight: 900;
}

.detail-view-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-view-actions .secondary-button {
  min-height: 38px;
  padding: 0 12px;
  white-space: nowrap;
}

.detail-view-actions .danger-button {
  min-height: 38px;
  padding: 0 12px;
  white-space: nowrap;
}

.power-attorney-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(126, 221, 112, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(78, 156, 70, 0.16), rgba(6, 51, 83, 0.08)),
    rgba(255, 255, 255, 0.035);
}

.power-attorney-action div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.power-attorney-action span {
  color: #7edf70;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.power-attorney-action strong {
  color: #ffffff;
  font-size: 0.92rem;
}

@media (max-width: 520px) {
  .power-attorney-action {
    align-items: stretch;
    flex-direction: column;
  }
}

/* v35: refinamento forte para uso no celular */
@media (max-width: 780px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell {
    display: block;
    min-height: 100dvh;
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }

  .workspace {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    padding: 14px 12px calc(116px + env(safe-area-inset-bottom));
  }

  .workspace::before {
    width: 88vw;
    right: -8vw;
    bottom: 118px;
  }

  .topbar {
    position: relative;
    top: auto;
    z-index: 20;
    display: grid;
    align-items: stretch;
    gap: 10px;
    margin: -14px -12px 12px;
    padding: 14px 12px 12px;
    border-bottom-color: rgba(72, 132, 171, 0.18);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  }

  .topbar-title {
    display: grid;
    gap: 5px;
    min-width: 0;
  }

  .topbar-logo {
    width: min(164px, 54vw);
    max-height: 58px;
    object-fit: contain;
  }

  .topbar .eyebrow {
    margin-bottom: 2px;
    font-size: 0.68rem;
    line-height: 1.15;
  }

  .topbar h1 {
    font-size: 1.36rem;
    line-height: 1.08;
  }

  .topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .topbar-actions .user-session,
  .topbar-actions #importButton,
  .topbar-actions #csvButton {
    display: none !important;
  }

  .search-box {
    width: 100%;
    min-width: 0;
    height: 44px;
    border-radius: 13px;
    padding: 0 12px;
  }

  .search-box svg {
    width: 20px;
    height: 20px;
  }

  .search-box input {
    min-width: 0;
    font-size: 0.86rem;
  }

  #exportButton {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .metrics-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .metric {
    min-width: 0;
    min-height: 74px;
    align-content: center;
    gap: 4px;
    padding: 10px;
    border-radius: 14px;
    scroll-snap-align: none;
  }

  .metric:nth-child(n + 5) {
    display: none;
  }

  .metric span {
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .metric strong {
    font-size: 1.34rem;
    line-height: 1.05;
  }

  .metric small {
    display: none;
  }

  .content-grid {
    gap: 12px;
  }

  .list-panel,
  .detail-panel {
    border-radius: 20px;
  }

  .panel-head {
    padding: 16px 14px;
  }

  .panel-head h2 {
    font-size: 1.1rem;
    line-height: 1.14;
  }

  .panel-head p {
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .content-grid.detail-closed .kanban-board,
  .content-grid .kanban-board,
  .kanban-board {
    grid-auto-columns: calc(100vw - 48px);
    gap: 10px;
    min-height: 420px;
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
    padding: 12px 12px 96px;
    scroll-padding-inline: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .kanban-column {
    min-width: 0;
    width: 100%;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
  }

  .kanban-column header {
    align-items: center;
    gap: 8px;
  }

  .kanban-column header strong {
    font-size: 0.96rem;
    line-height: 1.15;
  }

  .kanban-column header span {
    max-width: 86px;
    font-size: 0.72rem;
    line-height: 1.15;
    white-space: nowrap;
  }

  .kanban-empty {
    min-height: 68px;
    display: grid;
    place-items: center;
    padding: 12px;
    font-size: 0.82rem;
  }

  .kanban-card {
    border-radius: 14px;
  }

  .sidebar {
    inset: auto 12px calc(12px + env(safe-area-inset-bottom));
    z-index: 100;
    height: 70px;
    padding: 8px 10px;
    border-radius: 24px;
  }

  .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: 54px;
    gap: 4px;
    overflow: visible;
  }

  .nav-item {
    min-width: 0;
    height: 54px;
    gap: 3px;
    overflow: hidden;
    font-size: 0.64rem;
    grid-row: 1;
    line-height: 1;
  }

  .nav-item svg {
    width: 20px;
    height: 20px;
  }

  .mobile-create-button {
    width: 58px;
    height: 58px;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    transform: translateY(-10px);
  }

  #newDealButton {
    display: none !important;
  }

  .map-view {
    height: calc(100dvh - 220px);
    min-height: 460px;
    padding-bottom: 82px;
  }

  .client-map {
    min-height: 460px;
  }
}

@media (max-width: 390px) {
  .topbar h1 {
    font-size: 1.36rem;
  }

  .topbar-logo {
    width: min(176px, 62vw);
  }

  .metric {
    min-height: 76px;
    padding: 10px;
  }

  .metric span {
    font-size: 0.76rem;
  }

  .metric strong {
    font-size: 1.34rem;
  }

  .content-grid.detail-closed .kanban-board,
  .content-grid .kanban-board,
  .kanban-board {
    grid-auto-columns: calc(100vw - 40px);
  }
}

@media (max-width: 520px) {
  .validation-modal {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .modal-icon {
    width: 42px;
    height: 42px;
  }

  .modal-content .primary-button {
    width: 100%;
  }
}

/* v47: calendario operacional */
.calendar-view {
  min-height: 680px;
  padding: 0;
}

.calendar-shell {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.calendar-toolbar span,
.calendar-modal header span {
  display: block;
  color: rgba(126, 221, 112, 0.92);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-toolbar strong {
  display: block;
  margin-top: 2px;
  color: #f8fbff;
  font-size: 1.55rem;
  line-height: 1.1;
}

.calendar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.calendar-grid-wrap {
  overflow-x: auto;
  border: 1px solid rgba(72, 132, 171, 0.22);
  border-radius: 18px;
  background: rgba(4, 15, 27, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.calendar-weekdays,
.calendar-grid {
  min-width: 820px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(6, 21, 36, 0.98);
  border-bottom: 1px solid rgba(72, 132, 171, 0.18);
}

.calendar-weekdays span {
  padding: 11px 10px;
  color: rgba(235, 246, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}

.calendar-day {
  min-height: 132px;
  padding: 8px;
  border-right: 1px solid rgba(72, 132, 171, 0.16);
  border-bottom: 1px solid rgba(72, 132, 171, 0.16);
  background:
    linear-gradient(180deg, rgba(8, 32, 55, 0.92), rgba(4, 18, 32, 0.95));
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day:hover {
  background:
    linear-gradient(180deg, rgba(11, 45, 73, 0.98), rgba(5, 24, 42, 0.98));
  border-color: rgba(126, 221, 112, 0.3);
}

.calendar-day.outside {
  background:
    linear-gradient(180deg, rgba(5, 18, 31, 0.72), rgba(3, 13, 24, 0.82));
}

.calendar-day.outside .calendar-day-top span {
  color: rgba(235, 246, 255, 0.3);
}

.calendar-day.today {
  box-shadow: inset 0 0 0 1px rgba(126, 221, 112, 0.55);
}

.calendar-day-top {
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  border: 0;
  color: rgba(235, 246, 255, 0.86);
  background: transparent;
}

.calendar-day-top span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
}

.calendar-day.today .calendar-day-top span {
  color: #061524;
  background: linear-gradient(135deg, #7edd70, #56b64d);
}

.calendar-day-top svg {
  width: 15px;
  height: 15px;
  color: rgba(126, 221, 112, 0.78);
  opacity: 0;
  transition: opacity 0.16s ease;
}

.calendar-day:hover .calendar-day-top svg {
  opacity: 1;
}

.calendar-events {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.calendar-events small {
  color: rgba(235, 246, 255, 0.52);
  font-size: 0.7rem;
  font-weight: 800;
}

.calendar-chip {
  width: 100%;
  min-height: 26px;
  display: grid;
  gap: 1px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: left;
  color: #f8fbff;
  background: rgba(24, 74, 116, 0.72);
}

.calendar-chip span,
.calendar-chip small,
.calendar-chip em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-chip span {
  font-size: 0.74rem;
  font-weight: 850;
}

.calendar-chip small,
.calendar-chip em {
  color: rgba(235, 246, 255, 0.72);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 750;
}

.calendar-chip.task {
  background: rgba(80, 152, 72, 0.34);
  border-color: rgba(126, 221, 112, 0.3);
}

.calendar-chip.deal {
  background: rgba(50, 108, 174, 0.36);
  border-color: rgba(101, 173, 255, 0.26);
}

.calendar-chip.done {
  opacity: 0.66;
}

.calendar-chip.done span {
  text-decoration: line-through;
}

.calendar-chip.type-documentacao {
  background: rgba(52, 120, 190, 0.38);
  border-color: rgba(117, 188, 255, 0.32);
}

.calendar-chip.type-obra {
  background: rgba(215, 168, 66, 0.28);
  border-color: rgba(255, 205, 91, 0.36);
}

.calendar-chip.type-vistoria {
  background: rgba(111, 88, 206, 0.33);
  border-color: rgba(166, 145, 255, 0.32);
}

.calendar-chip.type-financeiro {
  background: rgba(39, 153, 137, 0.32);
  border-color: rgba(83, 219, 199, 0.28);
}

.calendar-chip.type-interno {
  background: rgba(111, 126, 143, 0.28);
  border-color: rgba(185, 199, 214, 0.18);
}

.calendar-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 6, 12, 0.72);
  backdrop-filter: blur(8px);
}

.calendar-modal {
  width: min(620px, 100%);
  max-height: min(760px, calc(100dvh - 28px));
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(72, 132, 171, 0.28);
  border-radius: 20px;
  color: #f8fbff;
  background:
    linear-gradient(180deg, rgba(8, 32, 55, 0.98), rgba(3, 14, 25, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.calendar-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(72, 132, 171, 0.18);
}

.calendar-modal-close {
  width: 42px;
  min-width: 42px;
  flex: 0 0 42px;
  align-self: start;
}

.calendar-modal h2 {
  margin: 2px 0 0;
  font-size: 1.35rem;
}

.calendar-task-form {
  display: grid;
  gap: 13px;
}

.calendar-task-form label {
  display: grid;
  gap: 7px;
  color: rgba(235, 246, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
}

.calendar-task-form label small {
  color: rgba(235, 246, 255, 0.48);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.35;
}

.calendar-task-form input,
.calendar-task-form select,
.calendar-task-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(72, 132, 171, 0.24);
  border-radius: 12px;
  padding: 10px 12px;
  color: #f8fbff;
  background: rgba(2, 12, 23, 0.9);
  outline: none;
}

.calendar-task-form textarea {
  resize: vertical;
}

.calendar-task-form input:focus,
.calendar-task-form select:focus,
.calendar-task-form textarea:focus {
  border-color: rgba(126, 221, 112, 0.72);
  box-shadow: 0 0 0 3px rgba(126, 221, 112, 0.12);
}

.calendar-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.calendar-form-grid label:first-child,
.calendar-form-grid label:last-child {
  grid-column: span 2;
}

.calendar-form-grid .calendar-notification-field {
  grid-column: 1 / -1;
}

.calendar-task-form footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.calendar-task-form footer .danger-button {
  margin-right: auto;
}

@media (max-width: 780px) {
  .nav-item[data-view="calendario"] {
    grid-column: 4;
  }

  .nav-item[data-view="arquivos"] {
    grid-column: 5;
  }

  .nav-item[data-view="usuarios"] {
    display: none !important;
  }

  .calendar-view {
    min-height: calc(100dvh - 250px);
    padding-bottom: 82px;
  }

  .calendar-shell {
    padding: 12px;
  }

  .calendar-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-toolbar strong {
    font-size: 1.25rem;
  }

  .calendar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 44px 44px;
  }

  .calendar-actions .calendar-new-task {
    grid-column: 1 / -1;
  }

  .calendar-weekdays,
  .calendar-grid {
    min-width: 760px;
  }

  .calendar-day {
    min-height: 116px;
  }

  .calendar-modal-backdrop {
    align-items: end;
    padding: 12px;
  }

  .calendar-modal {
    max-height: calc(100dvh - 24px);
    border-radius: 18px;
    padding: 16px;
  }

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

  .calendar-form-grid label:first-child,
  .calendar-form-grid label:last-child {
    grid-column: 1 / -1;
  }

  .calendar-task-form footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .calendar-task-form footer .danger-button {
    margin-right: 0;
  }
}

/* v48: direcao visual premium Connecta */
:root {
  --premium-bg: #020913;
  --premium-bg-2: #061828;
  --premium-panel: rgba(8, 27, 45, 0.72);
  --premium-panel-strong: rgba(12, 35, 57, 0.86);
  --premium-line: rgba(129, 174, 211, 0.22);
  --premium-line-strong: rgba(164, 210, 245, 0.34);
  --premium-text: #f8fbff;
  --premium-muted: rgba(235, 246, 255, 0.64);
  --premium-green: #72d866;
  --premium-green-soft: rgba(114, 216, 102, 0.16);
  --premium-blue: #4fb8ff;
  --premium-warning: #f0b84d;
  --premium-danger: #ff6b6b;
  --premium-shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
  font-family:
    Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  background: var(--premium-bg);
}

body {
  color: var(--premium-text);
  background:
    radial-gradient(circle at 16% 2%, rgba(114, 216, 102, 0.16), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(79, 184, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(2, 9, 19, 0.84), rgba(2, 9, 19, 0.98)),
    var(--premium-bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(150deg, transparent 0 52%, rgba(77, 161, 220, 0.1) 52.2%, transparent 53.2%),
    repeating-linear-gradient(12deg, rgba(76, 143, 204, 0.08) 0 1px, transparent 1px 82px),
    repeating-linear-gradient(102deg, rgba(76, 143, 204, 0.07) 0 1px, transparent 1px 110px),
    linear-gradient(180deg, rgba(8, 32, 52, 0.42), rgba(2, 9, 19, 0.98));
  transform: perspective(900px) rotateX(58deg) translateY(34vh) scale(1.38);
  transform-origin: center bottom;
  opacity: 0.9;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 9, 19, 0.24), rgba(2, 9, 19, 0.92) 68%),
    radial-gradient(circle at 24% 100%, rgba(114, 216, 102, 0.2), transparent 22%);
}

.app-shell {
  grid-template-columns: 1fr;
  background: transparent;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 90;
  height: auto;
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px 40px 8px;
  color: var(--premium-text);
  background: linear-gradient(180deg, rgba(2, 9, 19, 0.94), rgba(2, 9, 19, 0.58), transparent);
}

.brand {
  min-height: 86px;
  padding: 0;
  border: 0;
  background: transparent;
}

.brand img {
  max-width: 360px;
  filter:
    drop-shadow(0 0 18px rgba(114, 216, 102, 0.16))
    drop-shadow(0 12px 26px rgba(0, 0, 0, 0.24));
}

.nav-list {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--premium-line);
  border-radius: 18px;
  background: rgba(8, 27, 45, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.nav-item {
  height: 50px;
  justify-content: center;
  padding: 0 18px;
  color: rgba(235, 246, 255, 0.72);
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
}

.nav-item:hover,
.nav-item.active {
  color: var(--premium-text);
  background:
    linear-gradient(180deg, rgba(114, 216, 102, 0.18), rgba(114, 216, 102, 0.06)),
    rgba(8, 27, 45, 0.86);
  border-color: rgba(114, 216, 102, 0.42);
  box-shadow:
    0 0 0 1px rgba(114, 216, 102, 0.08),
    0 0 22px rgba(114, 216, 102, 0.17);
}

.nav-item.active svg {
  color: var(--premium-green);
}

.sidebar-summary {
  min-width: 180px;
  margin-top: 0;
  border-color: var(--premium-line);
  background: rgba(8, 27, 45, 0.54);
  backdrop-filter: blur(18px);
}

.workspace {
  padding: 18px 40px 36px;
}

.topbar {
  align-items: flex-start;
  margin-bottom: 18px;
}

.topbar-title .topbar-logo {
  display: none;
}

.topbar-title h1 {
  color: var(--premium-text);
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 12px 38px rgba(0, 0, 0, 0.28);
}

.eyebrow,
.topbar .eyebrow {
  color: var(--premium-green);
  letter-spacing: 0;
}

.topbar-actions {
  align-items: center;
}

.search-box,
.user-session,
.icon-button,
.primary-button,
.secondary-button,
.danger-button,
.quick-filter,
.status-tab,
.metric,
.list-panel,
.detail-panel,
.operations-bar,
.data-health,
.readiness-card,
.field-flow,
.deal-snapshot,
.seller-playbook,
.power-attorney-action,
.objection-coach,
.cadence-panel,
.proposal-panel,
.auth-card,
.calendar-modal,
.calendar-grid-wrap {
  border-color: var(--premium-line);
  background:
    linear-gradient(180deg, rgba(18, 48, 76, 0.72), rgba(5, 19, 33, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    var(--premium-shadow);
  backdrop-filter: blur(20px);
}

.search-box,
.user-session,
.icon-button {
  color: var(--premium-text);
}

.search-box input {
  color: var(--premium-text);
}

.search-box input::placeholder,
input::placeholder,
textarea::placeholder {
  color: rgba(235, 246, 255, 0.43);
}

.primary-button {
  color: #ffffff;
  border: 1px solid rgba(139, 238, 123, 0.48);
  background:
    linear-gradient(180deg, rgba(126, 221, 112, 0.96), rgba(38, 117, 44, 0.96)),
    var(--premium-green);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 26px rgba(114, 216, 102, 0.2);
}

.primary-button:hover {
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 34px rgba(114, 216, 102, 0.34);
}

.secondary-button,
.icon-button {
  border-color: var(--premium-line);
}

.secondary-button:hover,
.icon-button:hover {
  color: var(--premium-text);
  border-color: rgba(114, 216, 102, 0.42);
  background: rgba(15, 45, 70, 0.9);
}

.metrics-grid {
  gap: 12px;
  margin-bottom: 20px;
}

.metric {
  min-height: 144px;
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 18px;
}

.metric::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.3), transparent 28%),
    linear-gradient(135deg, rgba(114, 216, 102, 0.88), rgba(46, 124, 57, 0.88));
  box-shadow: 0 0 22px rgba(114, 216, 102, 0.2);
}

.metric:nth-child(3n + 2)::before {
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.3), transparent 28%),
    linear-gradient(135deg, rgba(79, 184, 255, 0.88), rgba(26, 87, 136, 0.88));
}

.metric:nth-child(4n + 1)::before {
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.3), transparent 28%),
    linear-gradient(135deg, rgba(240, 184, 77, 0.88), rgba(149, 91, 28, 0.88));
}

.metric span,
.metric small,
.panel-head p,
.view-note,
.readiness-topline span,
.missing-checklist,
.data-health span,
.user-session span {
  color: var(--premium-muted);
}

.metric strong {
  color: var(--premium-text);
  font-size: clamp(1.65rem, 2.7vw, 2.45rem);
  line-height: 1;
}

.list-panel,
.detail-panel {
  border-radius: 24px;
  overflow: hidden;
}

.panel-head {
  border-bottom-color: rgba(129, 174, 211, 0.18);
}

.panel-head h2,
.detail-head h2,
.view-main h2,
.section-row h3,
.calendar-toolbar strong {
  color: var(--premium-text);
}

.status-tabs {
  padding: 10px 16px 14px;
}

.status-tab,
.quick-filter {
  color: rgba(235, 246, 255, 0.72);
  background: rgba(7, 24, 40, 0.72);
  border-color: var(--premium-line);
}

.status-tab.active,
.quick-filter.active {
  color: #082013;
  border-color: rgba(114, 216, 102, 0.62);
  background: linear-gradient(180deg, #89e174, #4da445);
}

.kanban-board {
  background: transparent;
}

.kanban-column {
  border-color: var(--premium-line);
  background:
    linear-gradient(180deg, rgba(12, 39, 64, 0.76), rgba(4, 18, 32, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.kanban-column header strong,
.kanban-card strong {
  color: var(--premium-text);
}

.kanban-card,
.deal-card,
.upload-slot,
.attachment-card,
.view-section,
.snapshot-card,
.playbook-grid span,
.task-row,
.agenda-item,
.user-row {
  border-color: rgba(129, 174, 211, 0.18);
  background:
    linear-gradient(180deg, rgba(19, 49, 78, 0.72), rgba(7, 24, 40, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.kanban-card:hover,
.deal-card:hover,
.upload-slot:hover {
  border-color: rgba(114, 216, 102, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 16px 34px rgba(0, 0, 0, 0.2);
}

.status-pill,
.priority-pill,
.risk-chip {
  border-radius: 999px;
  font-weight: 900;
}

.detail-panel form,
.detail-view {
  color: var(--premium-text);
}

.detail-head,
.section-row {
  border-bottom-color: rgba(129, 174, 211, 0.18);
}

#dealForm label,
.full-field,
.calendar-task-form label,
.login-form label {
  color: rgba(235, 246, 255, 0.74);
}

#dealForm input,
#dealForm select,
#dealForm textarea,
.login-form input,
.seller-focus input,
.goal-focus input,
.filter-row select,
.template-row select,
.calendar-task-form input,
.calendar-task-form select,
.calendar-task-form textarea {
  color: var(--premium-text);
  border-color: rgba(129, 174, 211, 0.24);
  background:
    linear-gradient(180deg, rgba(9, 30, 50, 0.96), rgba(4, 17, 30, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 22px rgba(0, 0, 0, 0.14);
}

#dealForm input:focus,
#dealForm select:focus,
#dealForm textarea:focus,
.login-form input:focus,
.calendar-task-form input:focus,
.calendar-task-form select:focus,
.calendar-task-form textarea:focus {
  border-color: rgba(114, 216, 102, 0.72);
  box-shadow:
    0 0 0 3px rgba(114, 216, 102, 0.12),
    0 0 20px rgba(114, 216, 102, 0.12);
}

.upload-icon {
  color: var(--premium-green);
  background: rgba(114, 216, 102, 0.12);
}

.auth-screen {
  background:
    radial-gradient(circle at 50% 22%, rgba(114, 216, 102, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(2, 9, 19, 0.4), rgba(2, 9, 19, 0.95)),
    var(--premium-bg);
}

.auth-card {
  color: var(--premium-text);
  border-radius: 24px;
}

.auth-brand {
  border: 0;
  background: transparent;
}

.calendar-day,
.calendar-grid-wrap,
.calendar-modal {
  border-color: var(--premium-line);
}

.calendar-chip.task {
  box-shadow: 0 0 16px rgba(114, 216, 102, 0.08);
}

@media (max-width: 1180px) {
  .sidebar {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-inline: 24px;
  }

  .brand img {
    max-width: min(320px, 74vw);
  }

  .sidebar-summary {
    display: none;
  }

  .workspace {
    padding-inline: 24px;
  }
}

@media (max-width: 780px) {
  body {
    background:
      radial-gradient(circle at 14% 0%, rgba(114, 216, 102, 0.18), transparent 30%),
      linear-gradient(180deg, rgba(2, 9, 19, 0.78), rgba(2, 9, 19, 0.98)),
      var(--premium-bg);
  }

  body::before {
    transform: perspective(720px) rotateX(58deg) translateY(46vh) scale(1.5);
    opacity: 0.72;
  }

  .app-shell {
    display: block;
  }

  .workspace {
    padding: 26px 18px calc(116px + env(safe-area-inset-bottom));
  }

  .topbar {
    display: grid;
    gap: 14px;
  }

  .topbar-title {
    display: grid;
    gap: 8px;
  }

  .topbar-title .topbar-logo {
    display: block;
    width: min(238px, 74vw);
    margin-bottom: 4px;
    filter: drop-shadow(0 0 18px rgba(114, 216, 102, 0.12));
  }

  .topbar-title h1 {
    font-size: 1.82rem;
  }

  .sidebar {
    position: fixed;
    inset: auto 14px calc(12px + env(safe-area-inset-bottom));
    z-index: 120;
    height: 76px;
    display: block;
    padding: 8px 10px;
    border: 1px solid rgba(129, 174, 211, 0.2);
    border-radius: 26px;
    background:
      linear-gradient(180deg, rgba(8, 27, 45, 0.9), rgba(3, 14, 25, 0.94));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 20px 46px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(22px);
  }

  .sidebar .brand,
  .sidebar-summary {
    display: none;
  }

  .nav-list {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-item {
    height: 60px;
    display: grid;
    place-items: center;
    gap: 3px;
    padding: 6px 2px;
    border-radius: 16px;
    font-size: 0.62rem;
    line-height: 1;
  }

  .nav-item svg {
    width: 21px;
    height: 21px;
  }

  .mobile-create-button {
    width: 62px;
    height: 62px;
    transform: translateY(-13px);
    border: 1px solid rgba(139, 238, 123, 0.62);
    background:
      radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.34), transparent 26%),
      linear-gradient(180deg, #89e174, #44943e);
    box-shadow:
      0 0 26px rgba(114, 216, 102, 0.42),
      0 18px 36px rgba(0, 0, 0, 0.36);
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .metric {
    min-height: 116px;
    padding: 15px 54px 15px 15px;
  }

  .metric::before {
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    opacity: 0.9;
  }

  .metric span,
  .metric strong {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .list-panel,
  .detail-panel {
    border-radius: 24px;
  }

  .topbar-actions {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  #exportButton,
  .search-box {
    height: 48px;
    border-radius: 16px;
  }
}

/* v50: home mobile mais densa e refinada */
.metric > svg {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 1;
  width: 18px;
  height: 18px;
  color: #ffffff;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.18));
}

@media (max-width: 780px) {
  .workspace {
    padding: 12px 14px calc(92px + env(safe-area-inset-bottom));
  }

  .topbar {
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(129, 174, 211, 0.16);
  }

  .topbar-title {
    gap: 3px;
  }

  .topbar-title .topbar-logo {
    width: min(184px, 56vw);
    margin: 0 0 2px;
  }

  .topbar .eyebrow {
    font-size: 0.62rem;
  }

  .topbar-title h1 {
    font-size: 1.42rem;
    line-height: 1.05;
  }

  .topbar-actions {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
  }

  #exportButton,
  .search-box {
    height: 42px;
    border-radius: 14px;
  }

  .search-box {
    padding: 0 10px;
  }

  .search-box svg {
    width: 18px;
    height: 18px;
  }

  .search-box input {
    font-size: 0.78rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px;
    margin-bottom: 10px;
  }

  .metric:nth-child(n + 5) {
    display: grid !important;
  }

  .metric {
    min-height: 92px;
    align-content: start;
    gap: 2px;
    padding: 8px;
    border-radius: 15px;
  }

  .metric::before {
    top: 8px;
    left: 8px;
    right: auto;
    width: 25px;
    height: 25px;
    border-radius: 10px;
    opacity: 0.96;
    box-shadow: 0 0 18px rgba(114, 216, 102, 0.16);
  }

  .metric > svg {
    top: 14px;
    left: 14px;
    right: auto;
    width: 13px;
    height: 13px;
  }

  .metric span {
    min-height: 24px;
    margin-top: 31px;
    font-size: 0.54rem;
    line-height: 1.12;
    font-weight: 750;
  }

  .metric strong {
    font-size: 1.02rem;
    line-height: 1;
    white-space: nowrap;
  }

  .metric small {
    display: block !important;
    max-height: 18px;
    overflow: hidden;
    color: rgba(235, 246, 255, 0.5);
    font-size: 0.47rem;
    line-height: 1.1;
  }

  .content-grid {
    gap: 8px;
  }

  .list-panel,
  .detail-panel {
    border-radius: 18px;
  }

  .panel-head {
    padding: 12px 12px 10px;
  }

  .panel-head h2 {
    font-size: 1.02rem;
  }

  .panel-head p {
    max-width: 100%;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .status-tabs {
    padding: 7px 10px 10px;
    gap: 6px;
  }

  .status-tab {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.66rem;
  }

  .content-grid.detail-closed .kanban-board,
  .content-grid .kanban-board,
  .kanban-board {
    grid-auto-columns: minmax(148px, 43vw);
    min-height: 292px;
    max-height: 360px;
    gap: 8px;
    padding: 10px 10px 82px;
  }

  .kanban-column {
    gap: 8px;
    padding: 8px;
    border-radius: 15px;
  }

  .kanban-column header {
    gap: 5px;
    padding-bottom: 7px;
  }

  .kanban-column header strong {
    font-size: 0.72rem;
    line-height: 1.12;
  }

  .kanban-column header span {
    max-width: 72px;
    font-size: 0.58rem;
  }

  .kanban-card {
    padding: 8px;
    border-radius: 12px;
  }

  .kanban-card strong {
    font-size: 0.73rem;
  }

  .kanban-card span,
  .kanban-card small {
    font-size: 0.62rem;
  }

  .kanban-empty {
    min-height: 52px;
    padding: 8px;
    font-size: 0.62rem;
  }

  .sidebar {
    inset: auto 14px calc(10px + env(safe-area-inset-bottom));
    height: 66px;
    padding: 7px 9px;
    border-radius: 22px;
  }

  .nav-item {
    height: 52px;
    border-radius: 14px;
    font-size: 0.55rem;
  }

  .nav-item svg {
    width: 18px;
    height: 18px;
  }

  .mobile-create-button {
    width: 56px;
    height: 56px;
    transform: translateY(-12px);
  }
}

@media (max-width: 390px) {
  .metric span {
    font-size: 0.5rem;
  }

  .metric strong {
    font-size: 0.95rem;
  }

  .metric small {
    display: none !important;
  }
}

/* v51: calendario mobile sem arrastar lateral */
.calendar-selected-day {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--premium-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(15, 42, 67, 0.7), rgba(5, 18, 32, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 40px rgba(0, 0, 0, 0.2);
}

.calendar-selected-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calendar-selected-head strong {
  display: block;
  color: var(--premium-text);
  font-size: 1.35rem;
  line-height: 1;
}

.calendar-selected-head span {
  display: block;
  margin-top: 4px;
  color: var(--premium-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.calendar-selected-list {
  display: grid;
  gap: 8px;
}

.calendar-selected-item {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(129, 174, 211, 0.18);
  border-radius: 14px;
  color: var(--premium-text);
  background: rgba(7, 24, 40, 0.68);
  text-align: left;
}

.calendar-selected-item svg {
  width: 20px;
  height: 20px;
  color: var(--premium-green);
}

.calendar-selected-item strong,
.calendar-selected-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-selected-item strong {
  font-size: 0.86rem;
}

.calendar-selected-item small {
  color: var(--premium-muted);
  font-size: 0.72rem;
}

.calendar-selected-item.done {
  opacity: 0.66;
}

.calendar-empty-day {
  min-height: 92px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: rgba(235, 246, 255, 0.5);
  text-align: center;
}

.calendar-empty-day svg {
  width: 32px;
  height: 32px;
}

@media (max-width: 780px) {
  .calendar-view {
    min-height: auto;
    padding-bottom: 78px;
  }

  .calendar-shell {
    gap: 10px;
    padding: 10px;
  }

  .calendar-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .calendar-toolbar span {
    font-size: 0.6rem;
  }

  .calendar-toolbar strong {
    font-size: 1.22rem;
    white-space: nowrap;
  }

  .calendar-actions {
    width: auto;
    display: grid;
    grid-template-columns: 54px 38px 38px;
    gap: 6px;
  }

  .calendar-actions .calendar-new-task {
    display: none;
  }

  .calendar-actions .secondary-button,
  .calendar-actions .icon-button {
    min-width: 0;
    height: 38px;
    padding: 0;
    border-radius: 12px;
    font-size: 0.72rem;
  }

  .calendar-grid-wrap {
    overflow: visible;
    border-radius: 18px;
  }

  .calendar-weekdays,
  .calendar-grid {
    width: 100%;
    min-width: 0;
  }

  .calendar-weekdays span {
    padding: 7px 0;
    font-size: 0.58rem;
  }

  .calendar-day {
    min-height: 55px;
    padding: 4px;
  }

  .calendar-day.selected {
    box-shadow:
      inset 0 0 0 1px rgba(235, 246, 255, 0.72),
      inset 0 0 24px rgba(114, 216, 102, 0.08);
  }

  .calendar-day-top {
    min-height: 22px;
  }

  .calendar-day-top span {
    width: 23px;
    height: 23px;
    font-size: 0.72rem;
  }

  .calendar-day-top svg {
    display: none;
  }

  .calendar-events {
    gap: 3px;
    margin-top: 3px;
  }

  .calendar-chip {
    min-height: 4px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
  }

  .calendar-chip span,
  .calendar-chip small,
  .calendar-chip em,
  .calendar-events small {
    display: none;
  }

  .calendar-chip.task {
    background: rgba(104, 202, 234, 0.94);
  }

  .calendar-chip.deal {
    background: rgba(114, 216, 102, 0.86);
  }

  .calendar-selected-day {
    padding: 12px;
    border-radius: 18px;
  }

  .calendar-selected-head {
    align-items: flex-start;
    display: grid;
    grid-template-columns: 1fr;
  }

  .calendar-selected-head strong {
    font-size: 1.55rem;
  }

  .calendar-add-selected {
    width: min(100%, 280px);
    min-height: 46px;
    justify-self: center;
    border-radius: 999px;
  }

  .calendar-empty-day {
    min-height: 86px;
  }
}

/* v52: calendario mobile em tela dedicada */
@media (max-width: 780px) {
  body[data-view="calendario"] .workspace {
    padding: 8px 10px calc(92px + env(safe-area-inset-bottom));
  }

  body[data-view="calendario"] .topbar,
  body[data-view="calendario"] .metrics-grid,
  body[data-view="calendario"] .operations-bar,
  body[data-view="calendario"] .panel-head,
  body[data-view="calendario"] .status-tabs {
    display: none !important;
  }

  body[data-view="calendario"] .content-grid {
    display: block;
    gap: 0;
  }

  body[data-view="calendario"] .list-panel {
    min-height: calc(100dvh - 112px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  body[data-view="calendario"] .calendar-view {
    padding: 0 0 88px;
  }

  body[data-view="calendario"] .calendar-shell {
    gap: 11px;
    padding: 0;
  }

  body[data-view="calendario"] .calendar-toolbar {
    min-height: 82px;
    padding: 8px 8px 4px;
  }

  body[data-view="calendario"] .calendar-toolbar span {
    font-size: 0.55rem;
  }

  body[data-view="calendario"] .calendar-toolbar strong {
    max-width: calc(100vw - 170px);
    overflow: hidden;
    font-size: clamp(1.34rem, 5.7vw, 1.58rem);
    letter-spacing: 0;
    text-overflow: ellipsis;
  }

  body[data-view="calendario"] .calendar-actions {
    grid-template-columns: 46px 36px 36px;
    gap: 6px;
  }

  body[data-view="calendario"] .calendar-actions .secondary-button {
    font-size: 0;
  }

  body[data-view="calendario"] .calendar-actions .secondary-button::before {
    content: "Hoje";
    font-size: 0.68rem;
  }

  body[data-view="calendario"] .calendar-grid-wrap {
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(11, 34, 55, 0.74), rgba(3, 14, 25, 0.82));
  }

  body[data-view="calendario"] .calendar-weekdays span {
    padding: 8px 0;
    font-size: 0.56rem;
  }

  body[data-view="calendario"] .calendar-day {
    min-height: clamp(42px, 12.4vw, 52px);
    padding: 3px;
  }

  body[data-view="calendario"] .calendar-day-top {
    min-height: 20px;
  }

  body[data-view="calendario"] .calendar-day-top span {
    width: 21px;
    height: 21px;
    font-size: 0.68rem;
  }

  body[data-view="calendario"] .calendar-events {
    margin-top: 2px;
  }

  body[data-view="calendario"] .calendar-selected-day {
    margin: 4px 0 0;
    padding: 14px 12px 12px;
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(5, 17, 30, 0.28), rgba(5, 17, 30, 0.58));
    box-shadow: none;
  }

  body[data-view="calendario"] .calendar-selected-head {
    gap: 10px;
  }

  body[data-view="calendario"] .calendar-selected-head strong {
    font-size: clamp(1.8rem, 9vw, 2.28rem);
  }

  body[data-view="calendario"] .calendar-selected-head span {
    font-size: 0.72rem;
  }

  body[data-view="calendario"] .calendar-add-selected {
    min-height: 44px;
    padding: 0 16px;
    white-space: nowrap;
  }

  body[data-view="calendario"] .calendar-selected-list {
    gap: 7px;
  }

  body[data-view="calendario"] .calendar-selected-item {
    min-height: 48px;
    border-radius: 14px;
  }

  body[data-view="calendario"] .calendar-empty-day {
    min-height: 62px;
    font-size: 0.76rem;
  }

body[data-view="calendario"] .calendar-empty-day svg {
    width: 24px;
    height: 24px;
  }
}

/* v58: acabamento premium mobile inspirado na referência Connecta */
@media (max-width: 780px) {
  body:not([data-view="calendario"]) {
    background:
      radial-gradient(circle at 86% 11%, rgba(114, 216, 102, 0.13), transparent 22%),
      radial-gradient(circle at 14% 0%, rgba(74, 159, 255, 0.12), transparent 26%),
      linear-gradient(180deg, rgba(1, 7, 15, 0.98), rgba(2, 10, 18, 0.98) 54%, rgba(2, 9, 19, 1)),
      var(--premium-bg);
  }

  body:not([data-view="calendario"])::before {
    background:
      linear-gradient(152deg, transparent 0 48%, rgba(112, 218, 102, 0.08) 48.2%, transparent 50.4%),
      repeating-linear-gradient(13deg, rgba(76, 143, 204, 0.06) 0 1px, transparent 1px 78px),
      repeating-linear-gradient(102deg, rgba(76, 143, 204, 0.05) 0 1px, transparent 1px 106px),
      linear-gradient(180deg, rgba(8, 32, 52, 0.28), rgba(2, 9, 19, 0.98));
    transform: perspective(740px) rotateX(60deg) translateY(44vh) scale(1.58);
    opacity: 0.75;
  }

  body:not([data-view="calendario"]) .workspace {
    padding: 16px 14px calc(96px + env(safe-area-inset-bottom));
  }

  body:not([data-view="calendario"]) .topbar {
    position: relative;
    display: grid;
    gap: 12px;
    margin: 0 0 14px;
    padding: 0 0 2px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body:not([data-view="calendario"]) .topbar::after {
    content: "";
    position: absolute;
    left: -24px;
    right: -24px;
    top: -28px;
    height: 190px;
    z-index: -1;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(4, 18, 31, 0.28), transparent),
      radial-gradient(circle at 83% 22%, rgba(114, 216, 102, 0.12), transparent 27%);
  }

  body:not([data-view="calendario"]) .topbar-title {
    display: grid;
    gap: 7px;
  }

  body:not([data-view="calendario"]) .topbar-title .topbar-logo {
    width: min(214px, 54vw);
    margin: 0 0 2px -2px;
    filter:
      drop-shadow(0 0 16px rgba(114, 216, 102, 0.18))
      drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
  }

  body:not([data-view="calendario"]) .topbar .eyebrow {
    color: #7fed72;
    font-size: 0.66rem;
    font-weight: 950;
    letter-spacing: 0.01em;
    text-shadow: 0 0 14px rgba(114, 216, 102, 0.28);
  }

  body:not([data-view="calendario"]) .topbar-title h1 {
    max-width: 100%;
    color: #fbfdff;
    font-size: clamp(1.9rem, 9vw, 2.42rem);
    line-height: 0.98;
    text-shadow:
      0 0 22px rgba(255, 255, 255, 0.08),
      0 16px 34px rgba(0, 0, 0, 0.42);
  }

  body:not([data-view="calendario"]) .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px 52px;
    gap: 10px;
    align-items: center;
  }

  body:not([data-view="calendario"]) .topbar-actions .user-session,
  body:not([data-view="calendario"]) .topbar-actions #importButton,
  body:not([data-view="calendario"]) .topbar-actions #csvButton,
  body:not([data-view="calendario"]) .topbar-actions #notificationButton {
    display: none !important;
  }

  body:not([data-view="calendario"]) #newDealButton {
    width: 52px;
    min-width: 0;
    height: 52px;
    display: inline-flex !important;
    order: 3;
    padding: 0;
    border-radius: 19px;
    font-size: 0;
  }

  body:not([data-view="calendario"]) #newDealButton svg {
    width: 24px;
    height: 24px;
    margin: 0;
  }

  body:not([data-view="calendario"]) #exportButton {
    order: 2;
    width: 52px;
    height: 52px;
    border-radius: 19px;
  }

  body:not([data-view="calendario"]) .search-box {
    order: 1;
    height: 52px;
    padding: 0 14px;
    border-radius: 20px;
    border-color: rgba(126, 221, 112, 0.42);
    background:
      linear-gradient(90deg, rgba(13, 33, 53, 0.9), rgba(5, 18, 31, 0.88)),
      rgba(5, 18, 31, 0.86);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.075),
      inset 0 0 22px rgba(79, 184, 255, 0.04),
      0 0 0 1px rgba(129, 174, 211, 0.06),
      0 0 28px rgba(114, 216, 102, 0.14),
      0 18px 38px rgba(0, 0, 0, 0.38);
  }

  body:not([data-view="calendario"]) .search-box svg {
    width: 22px;
    height: 22px;
    color: #f8fbff;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.16));
  }

  body:not([data-view="calendario"]) .search-box input {
    font-size: 0.92rem;
    font-weight: 800;
  }

  body:not([data-view="calendario"]) .icon-button,
  body:not([data-view="calendario"]) #newDealButton {
    border-color: rgba(129, 174, 211, 0.24);
    background:
      radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.13), transparent 28%),
      linear-gradient(180deg, rgba(19, 47, 75, 0.76), rgba(4, 17, 30, 0.9));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 14px 30px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(20px);
  }

  body:not([data-view="calendario"]) #exportButton svg {
    color: #7fed72;
    filter: drop-shadow(0 0 10px rgba(114, 216, 102, 0.32));
  }

  body:not([data-view="calendario"]) .metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px;
    margin: 0 0 14px;
  }

  body:not([data-view="calendario"]) .metric {
    min-height: 96px;
    padding: 12px 9px 10px;
    border-radius: 18px;
    border-color: rgba(149, 193, 230, 0.26);
    background:
      radial-gradient(circle at 36% 18%, rgba(114, 216, 102, 0.12), transparent 34%),
      linear-gradient(180deg, rgba(14, 38, 62, 0.78), rgba(4, 17, 30, 0.92));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 18px 34px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.025);
  }

  body:not([data-view="calendario"]) .metric::before {
    top: 13px;
    left: 11px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background:
      radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.34), transparent 28%),
      linear-gradient(135deg, rgba(114, 216, 102, 0.96), rgba(33, 111, 54, 0.92));
    box-shadow:
      0 0 24px rgba(114, 216, 102, 0.36),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  body:not([data-view="calendario"]) .metric:nth-child(2)::before,
  body:not([data-view="calendario"]) .metric:nth-child(7)::before {
    background:
      radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.32), transparent 28%),
      linear-gradient(135deg, rgba(75, 190, 255, 0.98), rgba(35, 91, 182, 0.92));
    box-shadow: 0 0 24px rgba(75, 190, 255, 0.32);
  }

  body:not([data-view="calendario"]) .metric:nth-child(4)::before {
    background:
      radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.32), transparent 28%),
      linear-gradient(135deg, rgba(245, 188, 69, 0.98), rgba(154, 101, 22, 0.94));
    box-shadow: 0 0 24px rgba(245, 188, 69, 0.3);
  }

  body:not([data-view="calendario"]) .metric:nth-child(6)::before {
    background:
      radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.32), transparent 28%),
      linear-gradient(135deg, rgba(137, 114, 245, 0.98), rgba(69, 55, 156, 0.94));
    box-shadow: 0 0 24px rgba(137, 114, 245, 0.3);
  }

  body:not([data-view="calendario"]) .metric:nth-child(8)::before {
    background:
      radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.32), transparent 28%),
      linear-gradient(135deg, rgba(74, 122, 255, 0.98), rgba(42, 73, 176, 0.94));
    box-shadow: 0 0 24px rgba(74, 122, 255, 0.32);
  }

  body:not([data-view="calendario"]) .metric > svg {
    top: 23px;
    left: 21px;
    width: 18px;
    height: 18px;
    color: #ffffff;
  }

  body:not([data-view="calendario"]) .metric span {
    min-height: 29px;
    margin-top: 48px;
    color: rgba(235, 246, 255, 0.76);
    font-size: 0.64rem;
    line-height: 1.04;
    font-weight: 650;
  }

  body:not([data-view="calendario"]) .metric strong {
    color: #ffffff;
    font-size: clamp(1.08rem, 4.5vw, 1.28rem);
    font-weight: 900;
    letter-spacing: 0;
  }

  body:not([data-view="calendario"]) .metric small {
    display: none !important;
  }

  body[data-view="kanban"] .list-panel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border-color: rgba(149, 193, 230, 0.24);
    background:
      linear-gradient(180deg, rgba(12, 35, 57, 0.82), rgba(4, 16, 29, 0.92));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 22px 44px rgba(0, 0, 0, 0.35);
  }

  body[data-view="kanban"] .list-panel::before {
    content: "";
    position: absolute;
    right: -34px;
    top: 78px;
    width: 228px;
    height: 86px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.62;
    background:
      radial-gradient(circle at 67% 45%, rgba(114, 216, 102, 0.85), transparent 4%),
      radial-gradient(ellipse at center, rgba(114, 216, 102, 0.18), transparent 52%),
      repeating-linear-gradient(164deg, transparent 0 12px, rgba(90, 222, 185, 0.18) 13px 14px, transparent 15px 26px);
    filter: blur(0.2px);
    transform: rotate(-6deg);
  }

  body[data-view="kanban"] .panel-head {
    position: relative;
    z-index: 1;
    padding: 18px 20px 14px;
    border-bottom-color: rgba(129, 174, 211, 0.14);
  }

  body[data-view="kanban"] .panel-head h2 {
    font-size: 1.36rem;
    line-height: 1.08;
  }

  body[data-view="kanban"] .panel-head p {
    margin-top: 7px;
    color: rgba(235, 246, 255, 0.65);
    font-size: 0.84rem;
    line-height: 1.26;
  }

  body[data-view="kanban"] .status-tabs {
    position: relative;
    z-index: 1;
  }

  body[data-view="kanban"] .content-grid.detail-closed .kanban-board,
  body[data-view="kanban"] .content-grid .kanban-board,
  body[data-view="kanban"] .kanban-board {
    position: relative;
    z-index: 1;
    grid-auto-columns: minmax(170px, 48vw);
    min-height: 286px;
    max-height: 358px;
    gap: 10px;
    padding: 12px 14px 92px;
  }

  body[data-view="kanban"] .kanban-column {
    border-radius: 16px;
    border-color: rgba(149, 193, 230, 0.24);
    background:
      linear-gradient(180deg, rgba(12, 39, 64, 0.72), rgba(4, 17, 30, 0.88));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 14px 28px rgba(0, 0, 0, 0.22);
  }

  body[data-view="kanban"] .kanban-column header strong {
    font-size: 0.82rem;
    line-height: 1.05;
  }

  body[data-view="kanban"] .kanban-column header span {
    color: #85f276;
    font-size: 0.58rem;
    text-shadow: 0 0 12px rgba(114, 216, 102, 0.28);
  }

  body[data-view="kanban"] .kanban-empty {
    min-height: 116px;
    display: grid;
    place-items: center;
    padding: 12px;
    border-radius: 15px;
    border-color: rgba(149, 193, 230, 0.22);
    background:
      linear-gradient(180deg, rgba(7, 25, 42, 0.34), rgba(4, 16, 29, 0.48));
    color: rgba(235, 246, 255, 0.58);
    font-size: 0;
  }

  body[data-view="kanban"] .kanban-empty::before {
    content: "";
    width: 30px;
    height: 25px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.62;
    background: currentColor;
    clip-path: polygon(10% 28%, 44% 28%, 52% 38%, 92% 38%, 82% 84%, 0 84%);
  }

  body[data-view="kanban"] .kanban-empty::after {
    content: "Arraste uma ficha para cá.";
    display: block;
    max-width: 112px;
    color: rgba(235, 246, 255, 0.58);
    font-size: 0.72rem;
    line-height: 1.22;
  }

  body:not([data-view="calendario"]) .sidebar {
    inset: auto 16px calc(10px + env(safe-area-inset-bottom));
    height: 74px;
    padding: 8px 10px;
    border-radius: 27px;
    border-color: rgba(149, 193, 230, 0.22);
    background:
      linear-gradient(180deg, rgba(12, 35, 57, 0.78), rgba(3, 13, 24, 0.94));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 20px 44px rgba(0, 0, 0, 0.48),
      0 0 28px rgba(114, 216, 102, 0.08);
  }

  body:not([data-view="calendario"]) .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }

  body:not([data-view="calendario"]) .nav-item {
    height: 58px;
    border-radius: 18px;
    color: rgba(235, 246, 255, 0.66);
    font-size: 0.58rem;
  }

  body:not([data-view="calendario"]) .nav-item.active {
    color: #7fed72;
    border-color: rgba(114, 216, 102, 0.42);
    background:
      linear-gradient(180deg, rgba(114, 216, 102, 0.13), rgba(114, 216, 102, 0.04)),
      rgba(8, 27, 45, 0.68);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 0 22px rgba(114, 216, 102, 0.16);
  }

  body:not([data-view="calendario"]) .nav-item svg {
    width: 21px;
    height: 21px;
  }

  body:not([data-view="calendario"]) .mobile-create-button {
    width: 76px;
    height: 76px;
    transform: translateY(-18px);
    border: 1px solid rgba(176, 255, 157, 0.76);
    background:
      radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.42), transparent 27%),
      linear-gradient(180deg, #95ed7f, #45a540);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.34),
      0 0 34px rgba(114, 216, 102, 0.58),
      0 20px 38px rgba(0, 0, 0, 0.46);
  }

  body:not([data-view="calendario"]) .mobile-create-button svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
  }
}

@media (max-width: 390px) {
  body:not([data-view="calendario"]) .metrics-grid {
    gap: 8px;
  }

  body:not([data-view="calendario"]) .metric {
    min-height: 90px;
    padding-inline: 8px;
  }

  body:not([data-view="calendario"]) .metric span {
    font-size: 0.58rem;
  }

  body:not([data-view="calendario"]) .metric strong {
    font-size: 1.05rem;
  }
}

.mobile-header-shortcuts {
  display: none;
}

@media (max-width: 780px) {
  body:not([data-view="calendario"]) .mobile-header-shortcuts {
    position: absolute;
    top: 6px;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  body:not([data-view="calendario"]) .header-shortcut {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(149, 193, 230, 0.22);
    border-radius: 999px;
    color: #f8fbff;
    background:
      radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.14), transparent 27%),
      linear-gradient(180deg, rgba(20, 48, 76, 0.72), rgba(4, 16, 29, 0.86));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 14px 28px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
  }

  body:not([data-view="calendario"]) .header-shortcut svg {
    width: 21px;
    height: 21px;
  }

  body:not([data-view="calendario"]) #mobileHeaderCalendarButton svg,
  body:not([data-view="calendario"]) #mobileHeaderNotificationButton svg {
    color: rgba(235, 246, 255, 0.9);
  }

  body:not([data-view="calendario"]) #mobileHeaderNewDealButton svg {
    color: #ffffff;
  }

  body:not([data-view="calendario"]) #mobileHeaderNotificationButton span {
    position: absolute;
    top: -2px;
    right: -1px;
    width: 9px;
    height: 9px;
    border: 2px solid #04111f;
    border-radius: 999px;
    background: #7fed72;
    box-shadow: 0 0 12px rgba(114, 216, 102, 0.75);
  }

  body:not([data-view="calendario"]) .topbar-title .topbar-logo {
    width: min(214px, 54vw);
  }

  body:not([data-view="calendario"]) .topbar-actions {
    grid-template-columns: minmax(0, 1fr) 64px;
  }

  body:not([data-view="calendario"]) #newDealButton {
    display: none !important;
  }
}

/* v60: ficha de cliente como pagina premium sobreposta */
.form-page-top {
  display: none;
}

body.deal-form-open {
  overflow: hidden;
}

body.deal-form-open .sidebar {
  display: none !important;
}

body.deal-form-open .detail-panel.create-mode,
body.deal-form-open .detail-panel.edit-mode {
  position: fixed !important;
  inset: 0;
  z-index: 1800;
  width: 100%;
  max-width: none;
  max-height: none !important;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 82% 12%, rgba(114, 216, 102, 0.16), transparent 26%),
    radial-gradient(circle at 12% 26%, rgba(74, 190, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(2, 8, 17, 0.48), rgba(2, 8, 17, 0.95) 54%, #020812 100%),
    var(--premium-bg);
  box-shadow: none;
}

body.deal-form-open .detail-panel.create-mode::before,
body.deal-form-open .detail-panel.edit-mode::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 350px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 11, 22, 0.2), rgba(3, 11, 22, 0.9)),
    radial-gradient(ellipse at 72% 48%, rgba(114, 216, 102, 0.2), transparent 14%),
    repeating-linear-gradient(168deg, transparent 0 18px, rgba(125, 197, 255, 0.12) 19px 20px, transparent 21px 36px),
    linear-gradient(135deg, rgba(11, 39, 67, 0.8), rgba(2, 10, 19, 0.18));
  opacity: 0.88;
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
}

body.deal-form-open .detail-panel.create-mode::after,
body.deal-form-open .detail-panel.edit-mode::after {
  content: "";
  position: fixed;
  right: -84px;
  top: 118px;
  width: 310px;
  height: 150px;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(circle at 68% 44%, rgba(132, 245, 114, 0.92), transparent 4%),
    radial-gradient(ellipse at center, rgba(114, 216, 102, 0.18), transparent 58%),
    repeating-linear-gradient(165deg, transparent 0 13px, rgba(93, 225, 188, 0.2) 14px 15px, transparent 16px 28px);
  filter: blur(0.3px);
  transform: rotate(-8deg);
}

body.deal-form-open #dealForm {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 20px calc(96px + env(safe-area-inset-bottom));
  gap: 14px;
  color: var(--premium-text);
}

body.deal-form-open .form-page-top {
  min-height: 86px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
}

body.deal-form-open .form-page-top img {
  justify-self: center;
  width: min(270px, 66vw);
  max-height: 80px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(114, 216, 102, 0.16))
    drop-shadow(0 14px 24px rgba(0, 0, 0, 0.24));
}

body.deal-form-open .form-back-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(149, 193, 230, 0.22);
  border-radius: 999px;
  color: #f8fbff;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.16), transparent 29%),
    linear-gradient(180deg, rgba(19, 47, 75, 0.78), rgba(4, 17, 30, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 16px 34px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
}

body.deal-form-open .form-back-button svg {
  width: 23px;
  height: 23px;
}

body.deal-form-open .detail-head {
  display: grid;
  gap: 6px;
  padding: 4px 0 8px;
  border: 0;
}

body.deal-form-open .detail-head > div {
  display: grid;
  gap: 4px;
}

body.deal-form-open .detail-head .eyebrow {
  color: #85f276;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-shadow: 0 0 16px rgba(114, 216, 102, 0.22);
}

body.deal-form-open .detail-head h2 {
  color: #fbfdff;
  font-size: clamp(2rem, 8.6vw, 3rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow:
    0 0 28px rgba(255, 255, 255, 0.06),
    0 16px 34px rgba(0, 0, 0, 0.42);
}

body.deal-form-open #detailStatusPill {
  justify-self: start;
  min-height: 24px;
  padding: 0;
  color: #8ff27c;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.98rem;
  font-weight: 850;
  text-transform: none;
}

body.deal-form-open #detailStatusPill::before {
  content: "Fase atual: ";
  margin-right: 4px;
  color: rgba(235, 246, 255, 0.68);
  font-weight: 760;
}

body.deal-form-open .deal-snapshot {
  display: none !important;
}

body.deal-form-open .readiness-card {
  display: grid !important;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(149, 193, 230, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18, 47, 75, 0.72), rgba(5, 18, 31, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

body.deal-form-open .readiness-topline div {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(70px, 1fr) auto;
  align-items: center;
  gap: 12px;
}

body.deal-form-open .readiness-topline span {
  color: rgba(235, 246, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 760;
}

body.deal-form-open .readiness-topline strong {
  grid-column: 3;
  color: #8ff27c;
  font-size: 0.84rem;
}

body.deal-form-open #readinessLabel,
body.deal-form-open .missing-checklist {
  display: none !important;
}

body.deal-form-open .progress-track {
  height: 5px;
  margin-top: -27px;
  margin-left: 176px;
  background: rgba(149, 193, 230, 0.16);
}

body.deal-form-open .progress-track span {
  background: linear-gradient(90deg, #8ff27c, #46a743);
  box-shadow: 0 0 16px rgba(114, 216, 102, 0.32);
}

body.deal-form-open .quick-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.deal-form-open .quick-actions .secondary-button {
  min-height: 64px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 8px;
  overflow: hidden;
  border-radius: 14px;
  color: rgba(235, 246, 255, 0.82);
  border-color: rgba(149, 193, 230, 0.18);
  background:
    radial-gradient(circle at 18% 0%, rgba(114, 216, 102, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(18, 47, 75, 0.64), rgba(6, 21, 36, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.18);
  font-size: 0.72rem;
  line-height: 1.08;
  text-align: center;
  white-space: normal;
}

body.deal-form-open .quick-actions .secondary-button svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: #8ff27c;
  filter: drop-shadow(0 0 10px rgba(114, 216, 102, 0.22));
}

body.deal-form-open .field-flow {
  display: none !important;
  border-radius: 18px;
  border-color: rgba(149, 193, 230, 0.2);
  background:
    linear-gradient(180deg, rgba(12, 35, 57, 0.74), rgba(4, 17, 30, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 34px rgba(0, 0, 0, 0.24);
}

body.deal-form-open .field-flow-head span,
body.deal-form-open .voice-status {
  color: rgba(235, 246, 255, 0.62);
}

body.deal-form-open .field-flow-head strong {
  color: #fbfdff;
}

body.deal-form-open .field-flow-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.deal-form-open .field-action,
body.deal-form-open .field-save-action {
  min-height: 58px;
  color: rgba(235, 246, 255, 0.76);
  border-color: rgba(149, 193, 230, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(18, 47, 75, 0.64), rgba(6, 21, 36, 0.86));
}

body.deal-form-open .field-action svg,
body.deal-form-open .field-save-action svg {
  color: #8ff27c;
}

body.deal-form-open .power-attorney-action,
body.deal-form-open .seller-playbook,
body.deal-form-open .cadence-panel,
body.deal-form-open .proposal-panel {
  border-radius: 20px;
  border-color: rgba(149, 193, 230, 0.2);
  background:
    linear-gradient(180deg, rgba(13, 36, 59, 0.72), rgba(4, 17, 30, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 34px rgba(0, 0, 0, 0.22);
}

body.deal-form-open .section-row.form-section-title {
  margin-top: 4px;
  padding: 15px 16px 11px;
  border: 1px solid rgba(149, 193, 230, 0.2);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background:
    linear-gradient(180deg, rgba(14, 39, 64, 0.72), rgba(8, 27, 45, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.deal-form-open .section-row.form-section-title h3 {
  color: #fbfdff;
  font-size: 1.05rem;
}

body.deal-form-open .section-row.form-section-title h3::before {
  content: "";
  width: 24px;
  height: 3px;
  display: block;
  margin-bottom: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8ff27c, rgba(143, 242, 124, 0.05));
  box-shadow: 0 0 14px rgba(114, 216, 102, 0.28);
}

body.deal-form-open .section-row.form-section-title p {
  color: rgba(235, 246, 255, 0.58);
  font-size: 0.8rem;
  line-height: 1.22;
}

body.deal-form-open .form-grid,
body.deal-form-open .required-uploads,
body.deal-form-open .attachments {
  margin-top: -14px;
  padding: 14px;
  border: 1px solid rgba(149, 193, 230, 0.2);
  border-top: 0;
  border-radius: 0 0 20px 20px;
  background:
    linear-gradient(180deg, rgba(11, 32, 53, 0.72), rgba(4, 17, 30, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 18px 38px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px);
}

body.deal-form-open .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.deal-form-open #dealForm label:not(.file-button),
body.deal-form-open #dealForm .full-field {
  min-width: 0;
  gap: 6px;
  padding: 9px;
  border: 1px solid rgba(149, 193, 230, 0.13);
  border-radius: 13px;
  color: rgba(235, 246, 255, 0.74);
  background:
    linear-gradient(180deg, rgba(18, 47, 75, 0.42), rgba(5, 18, 31, 0.68));
  font-size: 0.68rem;
  font-weight: 760;
}

body.deal-form-open #dealForm input,
body.deal-form-open #dealForm select,
body.deal-form-open #dealForm textarea {
  min-height: 39px;
  padding: 0 10px;
  border-radius: 10px;
  color: #fbfdff;
  border-color: rgba(149, 193, 230, 0.19);
  background:
    linear-gradient(180deg, rgba(7, 25, 42, 0.94), rgba(3, 13, 24, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 18px rgba(0, 0, 0, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
}

body.deal-form-open #dealForm textarea {
  min-height: 84px;
  padding-top: 10px;
}

body.deal-form-open #dealForm input::placeholder,
body.deal-form-open #dealForm textarea::placeholder {
  color: rgba(235, 246, 255, 0.36);
}

body.deal-form-open #dealForm select option {
  color: #071727;
  background: #f8fbff;
}

body.deal-form-open .input-with-suffix span {
  color: rgba(235, 246, 255, 0.5);
}

body.deal-form-open .required-uploads {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.deal-form-open .upload-slot {
  min-height: 82px;
  border-radius: 16px;
  border-color: rgba(149, 193, 230, 0.18);
  background:
    linear-gradient(180deg, rgba(18, 47, 75, 0.52), rgba(5, 18, 31, 0.78));
}

body.deal-form-open .upload-slot .file-button {
  border-radius: 12px;
}

body.deal-form-open .form-actions {
  position: sticky;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 10px;
  margin: 10px -4px 0;
  padding: 10px;
  border: 1px solid rgba(149, 193, 230, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(10, 31, 50, 0.82), rgba(2, 11, 21, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 44px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(114, 216, 102, 0.08);
  backdrop-filter: blur(22px);
}

body.deal-form-open .form-actions .secondary-button,
body.deal-form-open .form-actions .primary-button {
  min-height: 52px;
  border-radius: 16px;
}

body.deal-form-open .form-actions .primary-button {
  color: #f8fff6;
  border-color: rgba(176, 255, 157, 0.62);
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.28), transparent 27%),
    linear-gradient(180deg, #8ce674, #43a03f);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 28px rgba(114, 216, 102, 0.42);
}

body.deal-form-open .form-actions .secondary-button {
  color: rgba(235, 246, 255, 0.86);
  border-color: rgba(149, 193, 230, 0.18);
  background:
    linear-gradient(180deg, rgba(18, 47, 75, 0.64), rgba(6, 21, 36, 0.88));
}

@media (max-width: 780px) {
  body.deal-form-open .app-shell {
    padding-bottom: 0;
  }

  body.deal-form-open .detail-panel.create-mode,
  body.deal-form-open .detail-panel.edit-mode {
    padding-bottom: 0;
  }

  body.deal-form-open #dealForm {
    padding-inline: 18px;
  }

  body.deal-form-open .detail-head h2 {
    font-size: clamp(2rem, 10vw, 2.72rem);
  }

  body.deal-form-open .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.deal-form-open .quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.deal-form-open .quick-actions .secondary-button {
    min-height: 62px;
    font-size: 0.66rem;
  }
}

@media (max-width: 430px) {
  body.deal-form-open #dealForm {
    padding-inline: 14px;
    gap: 12px;
  }

  body.deal-form-open .form-page-top {
    min-height: 72px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  body.deal-form-open .form-back-button {
    width: 44px;
    height: 44px;
  }

  body.deal-form-open .readiness-card {
    padding: 12px;
  }

  body.deal-form-open .progress-track {
    margin-left: 152px;
  }

  body.deal-form-open .quick-actions {
    gap: 8px;
  }

  body.deal-form-open .quick-actions .secondary-button {
    min-height: 58px;
    padding: 7px 5px;
    font-size: 0.6rem;
  }

  body.deal-form-open .quick-actions .secondary-button svg {
    width: 18px;
    height: 18px;
  }

  body.deal-form-open .field-flow-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  body.deal-form-open .field-action,
  body.deal-form-open .field-save-action {
    min-height: 54px;
    font-size: 0.62rem;
  }

  body.deal-form-open .form-grid,
  body.deal-form-open .required-uploads,
  body.deal-form-open .attachments {
    padding: 11px;
    gap: 8px;
  }

  body.deal-form-open #dealForm label:not(.file-button),
  body.deal-form-open #dealForm .full-field {
    padding: 8px;
    font-size: 0.62rem;
  }

  body.deal-form-open #dealForm input,
  body.deal-form-open #dealForm select,
  body.deal-form-open #dealForm textarea {
    min-height: 37px;
    font-size: 0.72rem;
  }

  body.deal-form-open .required-uploads {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  body.deal-form-open .form-grid {
    grid-template-columns: 1fr;
  }

  body.deal-form-open .quick-actions,
  body.deal-form-open .field-flow-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.deal-form-open .progress-track {
    margin-left: 0;
    margin-top: 0;
  }
}

/* v64: calendario operacional fiel a referencia premium */
body[data-view="calendario"] {
  background:
    linear-gradient(180deg, rgba(2, 9, 19, 0.2), rgba(2, 9, 19, 0.96) 58%, #020913 100%),
    radial-gradient(circle at 82% 14%, rgba(240, 184, 77, 0.2), transparent 28%),
    #020913;
}

body[data-view="calendario"]::before {
  opacity: 0.35;
}

body[data-view="calendario"] .content-grid {
  display: block;
}

body[data-view="calendario"] .list-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.calendar-view {
  position: relative;
  min-height: calc(100dvh - 120px);
  color: #f8fbff;
}

.calendar-shell {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 0 0 112px;
  gap: 18px;
}

.calendar-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 9, 19, 0.38), rgba(2, 9, 19, 0.76) 48%, #020913 92%),
    radial-gradient(circle at 74% 18%, rgba(255, 178, 73, 0.3), transparent 22%),
    url("assets/calendar-solar-bg.jpeg") center top / cover no-repeat;
  filter: saturate(1.05) contrast(1.08);
}

.calendar-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 74% 16%, rgba(239, 161, 58, 0.24), transparent 22%),
    linear-gradient(90deg, rgba(2, 9, 19, 0.86), rgba(2, 9, 19, 0.2) 50%, rgba(2, 9, 19, 0.6));
}

.calendar-hero {
  position: relative;
  min-height: 292px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px 0 0;
}

.calendar-app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.calendar-app-top img {
  width: min(212px, 44vw);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 0 18px rgba(114, 216, 102, 0.16))
    drop-shadow(0 16px 26px rgba(0, 0, 0, 0.28));
}

.calendar-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-hero-icon,
.calendar-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(149, 193, 230, 0.2);
  border-radius: 999px;
  color: #f8fbff;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(20, 48, 76, 0.64), rgba(5, 18, 31, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.calendar-hero-icon {
  position: relative;
  padding: 0;
}

.calendar-hero-icon svg {
  width: 24px;
  height: 24px;
}

.calendar-hero-icon span {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border: 2px solid #071424;
  border-radius: 999px;
  background: #8eed70;
  box-shadow: 0 0 12px rgba(114, 216, 102, 0.72);
}

.calendar-avatar {
  color: #0a2035;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(206, 222, 235, 0.88));
  font-weight: 950;
}

.calendar-title-block {
  display: grid;
  gap: 8px;
  max-width: 620px;
  padding-top: 20px;
}

.calendar-title-block span {
  color: #98e36b;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(114, 216, 102, 0.24);
}

.calendar-title-block strong {
  color: #fbfdff;
  font-size: clamp(3rem, 7vw, 4.35rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow:
    0 0 24px rgba(255, 255, 255, 0.08),
    0 18px 44px rgba(0, 0, 0, 0.44);
}

.calendar-title-block p {
  margin: 0;
  color: rgba(235, 246, 255, 0.72);
  font-size: 1.03rem;
  font-weight: 650;
}

.calendar-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calendar-actions .calendar-today {
  width: auto;
  min-width: 156px;
  height: 58px;
  padding: 0 24px;
  gap: 12px;
  border-radius: 999px;
  color: rgba(248, 251, 255, 0.92);
  border-color: rgba(149, 193, 230, 0.16);
  background:
    linear-gradient(180deg, rgba(22, 51, 80, 0.68), rgba(7, 24, 40, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.28);
}

.calendar-actions .calendar-today svg {
  color: #f8fbff;
}

.calendar-actions .calendar-prev {
  margin-left: auto;
}

.calendar-actions .icon-button {
  width: 58px;
  min-width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 999px;
  color: #f8fbff;
  border-color: rgba(149, 193, 230, 0.16);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(22, 51, 80, 0.58), rgba(7, 24, 40, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.28);
}

.calendar-grid-wrap {
  overflow: hidden;
  border: 1px solid rgba(149, 193, 230, 0.22);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(9, 28, 46, 0.82), rgba(4, 16, 29, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 24px 58px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.calendar-weekdays,
.calendar-grid {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  position: static;
  background: rgba(9, 26, 43, 0.82);
  border-bottom: 1px solid rgba(149, 193, 230, 0.16);
}

.calendar-weekdays span {
  padding: 19px 8px;
  color: rgba(235, 246, 255, 0.76);
  font-size: 0.98rem;
  font-weight: 950;
  text-transform: uppercase;
  text-align: center;
}

.calendar-weekdays span:first-child,
.calendar-weekdays span:last-child {
  color: #98e36b;
}

.calendar-day {
  min-height: 112px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 20px 6px 10px;
  border-right: 1px solid rgba(149, 193, 230, 0.13);
  border-bottom: 1px solid rgba(149, 193, 230, 0.12);
  background: rgba(4, 16, 29, 0.28);
  transition:
    background 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.calendar-day:hover {
  background: rgba(16, 45, 70, 0.42);
}

.calendar-day.outside {
  background: rgba(3, 12, 22, 0.2);
}

.calendar-day-top {
  width: auto;
  min-height: 34px;
  justify-content: center;
  color: rgba(248, 251, 255, 0.9);
}

.calendar-day-top span {
  width: 40px;
  height: 40px;
  color: #f8fbff;
  font-size: 1.38rem;
  font-weight: 950;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
}

.calendar-day:nth-child(7n + 1) .calendar-day-top span,
.calendar-day:nth-child(7n) .calendar-day-top span {
  color: #98e36b;
}

.calendar-day.outside .calendar-day-top span {
  color: rgba(235, 246, 255, 0.16);
}

.calendar-day.today {
  box-shadow: none;
}

.calendar-day.today:not(.selected) .calendar-day-top span {
  color: #a9ef74;
}

.calendar-day.selected {
  position: relative;
  z-index: 1;
  border-color: rgba(238, 255, 88, 0.62);
  background:
    radial-gradient(circle at 50% 52%, rgba(209, 235, 64, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(96, 153, 49, 0.46), rgba(19, 58, 36, 0.52));
  box-shadow:
    inset 0 0 0 1px rgba(235, 255, 91, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 28px rgba(211, 250, 72, 0.42);
}

.calendar-day.selected .calendar-day-top span {
  width: 72px;
  height: 58px;
  color: #ffffff;
  font-size: 2.08rem;
  text-shadow: 0 12px 24px rgba(0, 0, 0, 0.36);
}

.calendar-day-top svg {
  display: none;
}

.calendar-events {
  min-height: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 0;
}

.calendar-chip {
  width: 8px;
  height: 8px;
  min-height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  font-size: 0;
  box-shadow: 0 0 10px currentColor;
}

.calendar-chip span,
.calendar-chip small,
.calendar-chip em,
.calendar-events small {
  display: none;
}

.calendar-chip.task {
  color: #89e86a;
  background: #89e86a;
}

.calendar-chip.deal {
  color: #4fb8ff;
  background: #4fb8ff;
}

.calendar-chip.type-obra {
  color: #f0b84d;
  background: #f0b84d;
}

.calendar-chip.type-vistoria {
  color: #a679ff;
  background: #a679ff;
}

.calendar-selected-day {
  position: relative;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) 170px;
  align-items: center;
  gap: 26px;
  padding: 22px 30px;
  overflow: hidden;
  border: 1px solid rgba(149, 193, 230, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 11% 48%, rgba(114, 216, 102, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(11, 34, 55, 0.8), rgba(4, 16, 29, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 24px 58px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.calendar-date-orb {
  width: 146px;
  height: 146px;
  display: grid;
  place-items: center;
  align-content: center;
  justify-self: center;
  border-radius: 999px;
  border: 1px solid rgba(114, 216, 102, 0.34);
  background:
    radial-gradient(circle, rgba(114, 216, 102, 0.14), transparent 62%),
    rgba(3, 14, 25, 0.58);
  box-shadow:
    inset 0 0 0 10px rgba(114, 216, 102, 0.04),
    0 0 34px rgba(114, 216, 102, 0.18);
}

.calendar-date-orb span,
.calendar-date-orb small {
  color: #98e36b;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.calendar-date-orb strong {
  color: #ffffff;
  font-size: 3.3rem;
  line-height: 0.92;
  text-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

.calendar-selected-main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.calendar-selected-main > div > strong {
  display: block;
  color: #ffffff;
  font-size: clamp(1.35rem, 3vw, 1.72rem);
  line-height: 1;
}

.calendar-selected-main > div > span {
  display: block;
  margin-top: 8px;
  color: #98e36b;
  font-size: 1rem;
  font-weight: 850;
}

.calendar-add-selected {
  width: min(100%, 560px);
  min-height: 76px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 24px;
  justify-content: start;
  gap: 16px;
  padding: 10px 20px;
  border-radius: 20px;
  color: #f8fbff;
  text-align: left;
  border-color: rgba(149, 193, 230, 0.18);
  background:
    linear-gradient(180deg, rgba(20, 48, 76, 0.74), rgba(7, 24, 40, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.28);
}

.calendar-add-selected > svg:first-child {
  width: 54px;
  height: 54px;
  padding: 13px;
  border-radius: 15px;
  color: #ffffff;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.3), transparent 28%),
    linear-gradient(180deg, #c9ee52, #65b43e);
  box-shadow: 0 0 24px rgba(177, 232, 75, 0.36);
}

.calendar-add-selected span {
  display: grid;
  gap: 2px;
  font-size: 1rem;
  font-weight: 900;
}

.calendar-add-selected small {
  color: rgba(235, 246, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 720;
}

.calendar-selected-list {
  display: grid;
  gap: 8px;
}

.calendar-selected-list:empty {
  display: none;
}

.calendar-selected-item {
  min-height: 52px;
  border-radius: 16px;
  background: rgba(7, 24, 40, 0.74);
}

.calendar-solar-mark {
  position: relative;
  z-index: 0;
  width: 150px;
  height: 96px;
  justify-self: end;
  opacity: 0.28;
  background:
    linear-gradient(12deg, transparent 48%, #98e36b 49% 51%, transparent 52%),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(152, 227, 107, 0.64) 19px 20px),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(152, 227, 107, 0.64) 29px 30px);
  clip-path: polygon(8% 62%, 70% 38%, 90% 86%, 21% 96%);
  filter: drop-shadow(0 0 16px rgba(114, 216, 102, 0.32));
}

.calendar-solar-mark svg {
  position: absolute;
  right: -4px;
  top: -22px;
  width: 52px;
  height: 52px;
  color: #c8ef52;
}

@media (max-width: 780px) {
  body[data-view="calendario"] .workspace {
    padding: 0 20px calc(96px + env(safe-area-inset-bottom));
  }

  body[data-view="calendario"] .topbar,
  body[data-view="calendario"] .metrics-grid,
  body[data-view="calendario"] .operations-bar,
  body[data-view="calendario"] .panel-head,
  body[data-view="calendario"] .status-tabs {
    display: none !important;
  }

  body[data-view="calendario"] .calendar-shell {
    width: 100%;
    padding-bottom: 96px;
    gap: 12px;
  }

  body[data-view="calendario"] .calendar-hero {
    min-height: 300px;
    padding-top: 24px;
    gap: 14px;
  }

  body[data-view="calendario"] .calendar-app-top img {
    width: min(178px, 48vw);
  }

  body[data-view="calendario"] .calendar-top-actions {
    gap: 8px;
  }

  body[data-view="calendario"] .calendar-hero-icon,
  body[data-view="calendario"] .calendar-avatar {
    width: 46px;
    height: 46px;
  }

  body[data-view="calendario"] .calendar-title-block {
    padding-top: 18px;
    gap: 7px;
  }

  body[data-view="calendario"] .calendar-title-block span {
    font-size: 0.88rem;
  }

  body[data-view="calendario"] .calendar-title-block strong {
    max-width: 100%;
    font-size: clamp(2.35rem, 11.2vw, 3.08rem);
  }

  body[data-view="calendario"] .calendar-title-block p {
    font-size: 0.94rem;
  }

  body[data-view="calendario"] .calendar-actions {
    bottom: 6px;
  }

  body[data-view="calendario"] .calendar-actions .calendar-today {
    min-width: 138px;
    height: 52px;
    padding-inline: 20px;
  }

  body[data-view="calendario"] .calendar-actions .icon-button {
    width: 52px;
    min-width: 52px;
    height: 52px;
  }

  body[data-view="calendario"] .calendar-grid-wrap {
    border-radius: 22px;
  }

  body[data-view="calendario"] .calendar-weekdays span {
    padding: 10px 0;
    font-size: 0.72rem;
  }

  body[data-view="calendario"] .calendar-day {
    min-height: clamp(52px, 14.7vw, 60px);
    padding: 8px 3px 4px;
    gap: 2px;
  }

  body[data-view="calendario"] .calendar-day-top span {
    width: 28px;
    height: 28px;
    font-size: 0.94rem;
  }

  body[data-view="calendario"] .calendar-day.selected .calendar-day-top span {
    width: 48px;
    height: 39px;
    font-size: 1.44rem;
  }

  body[data-view="calendario"] .calendar-selected-day {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 22px;
  }

  body[data-view="calendario"] .calendar-date-orb {
    width: 86px;
    height: 86px;
  }

  body[data-view="calendario"] .calendar-date-orb strong {
    font-size: 2.22rem;
  }

  body[data-view="calendario"] .calendar-date-orb span,
  body[data-view="calendario"] .calendar-date-orb small {
    font-size: 0.58rem;
  }

  body[data-view="calendario"] .calendar-selected-main {
    gap: 10px;
  }

  body[data-view="calendario"] .calendar-selected-main > div > strong {
    font-size: 1.08rem;
    line-height: 1.12;
  }

  body[data-view="calendario"] .calendar-selected-main > div > span {
    margin-top: 5px;
    font-size: 0.78rem;
  }

  body[data-view="calendario"] .calendar-add-selected {
    min-height: 54px;
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    gap: 10px;
    padding: 7px 11px;
    border-radius: 16px;
  }

  body[data-view="calendario"] .calendar-add-selected > svg:first-child {
    width: 40px;
    height: 40px;
    padding: 9px;
  }

  body[data-view="calendario"] .calendar-add-selected span {
    font-size: 0.84rem;
  }

  body[data-view="calendario"] .calendar-add-selected small {
    font-size: 0.7rem;
  }

  body[data-view="calendario"] .calendar-solar-mark {
    display: none;
  }

  body[data-view="calendario"] .sidebar {
    inset: auto 16px calc(10px + env(safe-area-inset-bottom));
    height: 74px;
    padding: 8px 10px;
    border-radius: 27px;
    border-color: rgba(149, 193, 230, 0.22);
    background:
      linear-gradient(180deg, rgba(12, 35, 57, 0.78), rgba(3, 13, 24, 0.94));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 20px 44px rgba(0, 0, 0, 0.48),
      0 0 28px rgba(114, 216, 102, 0.08);
  }

  body[data-view="calendario"] .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }

  body[data-view="calendario"] .nav-item {
    height: 58px;
    border-radius: 18px;
    color: rgba(235, 246, 255, 0.66);
    font-size: 0.58rem;
  }

  body[data-view="calendario"] .nav-item.active {
    color: #7fed72;
    border-color: rgba(114, 216, 102, 0.42);
    background:
      linear-gradient(180deg, rgba(114, 216, 102, 0.13), rgba(114, 216, 102, 0.04)),
      rgba(8, 27, 45, 0.68);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 0 22px rgba(114, 216, 102, 0.16);
  }

  body[data-view="calendario"] .mobile-create-button {
    width: 76px;
    height: 76px;
    transform: translateY(-18px);
    border: 1px solid rgba(176, 255, 157, 0.76);
    background:
      radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.42), transparent 27%),
      linear-gradient(180deg, #95ed7f, #45a540);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.34),
      0 0 34px rgba(114, 216, 102, 0.58),
      0 20px 38px rgba(0, 0, 0, 0.46);
  }
}

@media (max-width: 390px) {
  body[data-view="calendario"] .workspace {
    padding-inline: 14px;
  }

  body[data-view="calendario"] .calendar-hero {
    min-height: 274px;
    padding-top: 22px;
  }

  body[data-view="calendario"] .calendar-app-top img {
    width: min(160px, 44vw);
  }

  body[data-view="calendario"] .calendar-hero-icon,
  body[data-view="calendario"] .calendar-avatar {
    width: 42px;
    height: 42px;
  }

  body[data-view="calendario"] .calendar-day {
    min-height: 48px;
  }

  body[data-view="calendario"] .calendar-selected-day {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  body[data-view="calendario"] .calendar-date-orb {
    width: 76px;
    height: 76px;
  }
}

/* v64: ajuste final para caber no primeiro quadro do celular */
@media (max-width: 780px) {
  body[data-view="calendario"] .workspace {
    overflow-x: hidden;
  }

  body[data-view="calendario"] .calendar-view {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden visible;
    padding-bottom: 78px;
  }

  body[data-view="calendario"] .calendar-shell {
    width: min(calc(100% - 40px), 360px) !important;
    max-width: min(calc(100% - 40px), 360px) !important;
    margin: 0 auto 0 0;
    padding: 0;
    box-sizing: border-box;
    gap: 12px;
  }

  body[data-view="calendario"] .calendar-app-top {
    min-width: 0;
  }

  body[data-view="calendario"] .calendar-app-top img {
    width: min(168px, 44vw);
    flex: 0 1 auto;
  }

  body[data-view="calendario"] .calendar-top-actions {
    flex: 0 0 auto;
    gap: 7px;
  }

  body[data-view="calendario"] .calendar-hero {
    min-height: 274px;
    padding-top: 22px;
  }

  body[data-view="calendario"] .calendar-title-block {
    padding-top: 14px;
  }

  body[data-view="calendario"] .calendar-title-block strong {
    font-size: clamp(2.35rem, 10.8vw, 3rem);
  }

  body[data-view="calendario"] .calendar-title-block p {
    font-size: 0.86rem;
  }

  body[data-view="calendario"] .calendar-actions {
    bottom: 0;
  }

  body[data-view="calendario"] .calendar-actions .calendar-today {
    min-width: 136px;
    height: 50px;
  }

  body[data-view="calendario"] .calendar-actions .icon-button {
    width: 50px;
    min-width: 50px;
    height: 50px;
  }

  body[data-view="calendario"] .calendar-grid-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
    border-radius: 20px;
  }

  body[data-view="calendario"] .calendar-weekdays,
  body[data-view="calendario"] .calendar-grid {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body[data-view="calendario"] .calendar-weekdays span {
    padding: 9px 0;
    font-size: 0.68rem;
    min-width: 0;
    overflow: hidden;
  }

  body[data-view="calendario"] .calendar-day {
    min-height: 44px;
    padding: 6px 2px 2px;
    gap: 1px;
  }

  body[data-view="calendario"] .calendar-day-top {
    min-height: 22px;
  }

  body[data-view="calendario"] .calendar-day-top span {
    width: 25px;
    height: 25px;
    font-size: 0.86rem;
  }

  body[data-view="calendario"] .calendar-day.selected .calendar-day-top span {
    width: 44px;
    height: 36px;
    font-size: 1.32rem;
  }

  body[data-view="calendario"] .calendar-events {
    min-height: 7px;
    gap: 3px;
  }

  body[data-view="calendario"] .calendar-chip {
    width: 6px;
    height: 6px;
    min-height: 6px;
  }

  body[data-view="calendario"] .calendar-selected-day {
    min-height: 132px;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    margin-top: 0;
  }

  body[data-view="calendario"] .calendar-date-orb {
    width: 78px;
    height: 78px;
  }

  body[data-view="calendario"] .calendar-date-orb strong {
    font-size: 2.22rem;
  }
}

@media (max-width: 390px) {
  body[data-view="calendario"] .calendar-shell {
    width: min(calc(100% - 32px), 360px) !important;
    max-width: min(calc(100% - 32px), 360px) !important;
    margin-left: 0;
  }

  body[data-view="calendario"] .calendar-app-top img {
    width: min(154px, 41vw);
  }

  body[data-view="calendario"] .calendar-hero-icon,
  body[data-view="calendario"] .calendar-avatar {
    width: 38px;
    height: 38px;
  }

  body[data-view="calendario"] .calendar-hero-icon svg {
    width: 20px;
    height: 20px;
  }

  body[data-view="calendario"] .calendar-hero {
    min-height: 260px;
  }

  body[data-view="calendario"] .calendar-title-block strong {
    font-size: 2.42rem;
  }

  body[data-view="calendario"] .calendar-day {
    min-height: 42px;
  }
}

@media (max-width: 780px) {
  .calendar-view {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .calendar-shell {
    width: min(calc(100% - 40px), 360px) !important;
    max-width: min(calc(100% - 40px), 360px) !important;
    margin: 0 auto 0 0 !important;
    padding-inline: 0 !important;
    box-sizing: border-box;
  }

  .calendar-grid-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .calendar-weekdays,
  .calendar-grid {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* v65: tela de login premium */
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  color: #f8fbff;
  background:
    linear-gradient(180deg, rgba(2, 9, 19, 0.2), rgba(2, 9, 19, 0.78) 48%, rgba(2, 9, 19, 0.96) 100%),
    radial-gradient(circle at 50% 62%, rgba(92, 185, 82, 0.2), transparent 34%),
    url("assets/calendar-solar-bg.jpeg") center bottom / cover no-repeat,
    #020913;
}

.auth-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 9, 19, 0.48) 0%, rgba(2, 9, 19, 0.12) 36%, rgba(2, 9, 19, 0.72) 100%),
    radial-gradient(circle at 50% 22%, rgba(44, 110, 177, 0.22), transparent 30%);
}

.auth-screen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 32%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 98%, rgba(67, 180, 228, 0.28), transparent 42%),
    linear-gradient(180deg, transparent, rgba(2, 9, 19, 0.18));
}

.auth-screen.hidden,
.app-shell.auth-locked {
  display: none !important;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  display: grid;
  gap: 30px;
  justify-items: stretch;
  padding: 0;
  color: #f8fbff;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-brand {
  justify-content: center;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.auth-brand img {
  width: min(520px, 76vw);
  max-height: 170px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(114, 216, 102, 0.12))
    drop-shadow(0 22px 34px rgba(0, 0, 0, 0.34));
}

.auth-copy {
  display: grid;
  gap: 12px;
  text-align: center;
}

.auth-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.auth-copy p {
  max-width: 470px;
  margin: 0 auto;
  color: rgba(235, 246, 255, 0.74);
  font-size: clamp(1.05rem, 2.4vw, 1.42rem);
  font-weight: 600;
  line-height: 1.42;
}

.auth-copy p span {
  color: #7fed72;
}

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

.login-field {
  position: relative;
  display: block;
  min-height: 76px;
  color: rgba(235, 246, 255, 0.76);
  border: 1px solid rgba(149, 193, 230, 0.2);
  border-radius: 17px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(25, 53, 83, 0.6), rgba(7, 22, 39, 0.74));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.login-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.login-field > svg {
  position: absolute;
  left: 28px;
  top: 50%;
  width: 34px;
  height: 34px;
  color: rgba(235, 246, 255, 0.78);
  transform: translateY(-50%);
}

.login-form .login-field input {
  width: 100%;
  height: 76px;
  padding: 0 24px 0 88px;
  color: #f8fbff;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  font-size: 1.16rem;
  font-weight: 650;
}

.login-form .login-field-password input {
  padding-right: 76px;
}

.login-form .login-field input::placeholder {
  color: rgba(235, 246, 255, 0.48);
}

.login-form .login-field:focus-within {
  border-color: rgba(114, 216, 102, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 3px rgba(114, 216, 102, 0.1),
    0 0 28px rgba(114, 216, 102, 0.14),
    0 18px 42px rgba(0, 0, 0, 0.3);
}

.login-field-password button {
  position: absolute;
  right: 22px;
  top: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  color: rgba(235, 246, 255, 0.62);
  border: 0;
  border-radius: 999px;
  background: transparent;
  transform: translateY(-50%);
}

.login-field-password button svg {
  width: 28px;
  height: 28px;
}

.login-form > .primary-button {
  min-height: 76px;
  margin-top: 20px;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  border: 1px solid rgba(176, 255, 157, 0.54);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(180deg, #68c75b, #1f741f);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 26px rgba(114, 216, 102, 0.28),
    0 20px 46px rgba(0, 0, 0, 0.36);
  font-size: 1.28rem;
  font-weight: 700;
}

.login-form > .primary-button svg {
  display: none;
}

.login-error {
  min-height: 24px;
  margin: 2px 0 0;
  color: #ffb4a8;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 780px) {
  .auth-screen {
    place-items: start center;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    padding: max(42px, env(safe-area-inset-top)) 28px max(28px, env(safe-area-inset-bottom));
  }

  .auth-card {
    width: calc(100vw - 56px) !important;
    max-width: calc(100vw - 56px) !important;
    min-width: 0;
    min-height: calc(100dvh - 70px);
    align-content: center;
    gap: 26px;
    margin-inline: auto;
    overflow: visible;
  }

  .auth-brand img {
    width: min(285px, 100%);
  }

  .auth-copy h1 {
    font-size: clamp(2rem, 8.8vw, 2.24rem);
    white-space: nowrap;
  }

  .auth-copy p {
    max-width: 100%;
    font-size: clamp(1.04rem, 4.8vw, 1.32rem);
  }

  .login-form,
  .login-field {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .login-form > .primary-button {
    width: 100%;
    min-width: 0;
  }

  .login-field,
  .login-form .login-field input,
  .login-form > .primary-button {
    min-height: 70px;
    height: 70px;
  }

  .login-form .login-field input {
    padding-left: 76px;
    font-size: 1.08rem;
  }

  .login-field > svg {
    left: 24px;
    width: 31px;
    height: 31px;
  }
}

/* v66: dashboard mobile fiel a referencia visual */
.mobile-filter-button,
.kanban-see-all,
.kanban-mobile-summary {
  display: none;
}

.topbar-title h1 span {
  color: #7fed72;
}

.topbar-subtitle {
  display: none;
}

@media (max-width: 780px) {
  body[data-view="kanban"] {
    color: #f8fbff;
    overflow-x: hidden;
    background:
      radial-gradient(circle at 78% 10%, rgba(99, 212, 83, 0.16), transparent 28%),
      linear-gradient(180deg, #020913 0%, #010711 62%, #01050b 100%);
  }

  body[data-view="kanban"] .workspace {
    width: 100%;
    max-width: 100vw;
    padding: 0 18px calc(94px + env(safe-area-inset-bottom));
    overflow: hidden;
    background: transparent;
  }

  body[data-view="kanban"] .topbar {
    position: relative;
    min-height: 424px;
    margin: 0 -18px;
    padding: 66px 30px 28px;
    display: grid;
    align-content: start;
    gap: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(2, 9, 19, 0.1), rgba(2, 9, 19, 0.44) 55%, #020913 100%),
      radial-gradient(circle at 86% 45%, rgba(126, 237, 114, 0.18), transparent 28%),
      url("assets/calendar-solar-bg.jpeg") 72% 24% / 118% auto no-repeat,
      #020913;
    box-shadow: none;
  }

  body[data-view="kanban"] .topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(90deg, rgba(2, 9, 19, 0.96) 0%, rgba(2, 9, 19, 0.76) 44%, rgba(2, 9, 19, 0.22) 72%, rgba(2, 9, 19, 0.7) 100%),
      linear-gradient(180deg, rgba(2, 9, 19, 0.16), rgba(2, 9, 19, 0.86) 88%),
      radial-gradient(circle at 72% 33%, rgba(246, 200, 78, 0.22), transparent 16%);
  }

  body[data-view="kanban"] .topbar::after {
    content: "";
    position: absolute;
    right: -58px;
    top: 180px;
    width: 260px;
    height: 76px;
    pointer-events: none;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(126, 237, 114, 0.92), transparent);
    filter: blur(10px);
    opacity: 0.72;
    transform: rotate(-11deg);
  }

  body[data-view="kanban"] .topbar-title {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
  }

  body[data-view="kanban"] .topbar-title .topbar-logo {
    width: min(224px, 56vw);
    height: auto;
    margin: 0 0 40px;
    filter:
      drop-shadow(0 0 14px rgba(126, 237, 114, 0.14))
      drop-shadow(0 16px 26px rgba(0, 0, 0, 0.34));
  }

  body[data-view="kanban"] .topbar .eyebrow {
    margin: 0 0 10px;
    color: #8fed64;
    font-size: 0.79rem;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(126, 237, 114, 0.28);
  }

  body[data-view="kanban"] .topbar-title h1 {
    max-width: 100%;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.5rem, 11.4vw, 3.15rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: 0;
    white-space: nowrap;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  }

  body[data-view="kanban"] .topbar-subtitle {
    display: block;
    max-width: 310px;
    margin: 16px 0 0;
    color: rgba(235, 246, 255, 0.78);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
  }

  body[data-view="kanban"] .mobile-header-shortcuts {
    position: absolute;
    z-index: 2;
    top: 70px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  body[data-view="kanban"] .header-shortcut {
    position: relative;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: #f8fbff;
    border: 1px solid rgba(149, 193, 230, 0.16);
    border-radius: 999px;
    background:
      radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.13), transparent 28%),
      linear-gradient(180deg, rgba(20, 48, 76, 0.56), rgba(4, 17, 30, 0.82));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 18px 34px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(18px);
  }

  body[data-view="kanban"] .header-shortcut svg {
    width: 23px;
    height: 23px;
  }

  body[data-view="kanban"] .header-shortcut span {
    position: absolute;
    top: 6px;
    right: 7px;
    width: 8px;
    height: 8px;
    border: 2px solid #071424;
    border-radius: 999px;
    background: #7fed72;
    box-shadow: 0 0 12px rgba(126, 237, 114, 0.72);
  }

  body[data-view="kanban"] .topbar-actions {
    position: absolute;
    z-index: 2;
    left: 30px;
    right: 30px;
    bottom: 6px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 62px;
    gap: 14px;
    align-items: center;
  }

  body[data-view="kanban"] .topbar-actions .user-session,
  body[data-view="kanban"] .topbar-actions #importButton,
  body[data-view="kanban"] .topbar-actions #exportButton,
  body[data-view="kanban"] .topbar-actions #csvButton,
  body[data-view="kanban"] .topbar-actions #notificationButton,
  body[data-view="kanban"] .topbar-actions #newDealButton {
    display: none !important;
  }

  body[data-view="kanban"] .mobile-filter-button {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    color: #8fed64;
    border: 1px solid rgba(149, 193, 230, 0.22);
    border-radius: 17px;
    background:
      linear-gradient(180deg, rgba(20, 48, 76, 0.58), rgba(4, 17, 30, 0.84));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 16px 34px rgba(0, 0, 0, 0.32);
  }

  body[data-view="kanban"] .mobile-filter-button svg {
    width: 26px;
    height: 26px;
  }

  body[data-view="kanban"] .search-box {
    width: 100%;
    min-width: 0;
    height: 62px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(149, 193, 230, 0.2);
    border-radius: 17px;
    background:
      radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.1), transparent 24%),
      linear-gradient(180deg, rgba(10, 30, 50, 0.68), rgba(3, 14, 25, 0.86));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 18px rgba(126, 237, 114, 0.08),
      0 16px 34px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
  }

  body[data-view="kanban"] .search-box svg {
    align-self: center;
    justify-self: center;
    width: 24px;
    height: 24px;
    color: rgba(235, 246, 255, 0.84);
  }

  body[data-view="kanban"] .search-box input {
    min-width: 0;
    height: 62px;
    color: #f8fbff;
    background: transparent;
    font-size: 0.94rem;
    font-weight: 560;
  }

  body[data-view="kanban"] .search-box input::placeholder {
    color: rgba(235, 246, 255, 0.52);
  }

  body[data-view="kanban"] .metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: -2px 0 18px;
  }

  body[data-view="kanban"] .metric:nth-child(n + 5) {
    display: none;
  }

  body[data-view="kanban"] .metric {
    position: relative;
    min-height: 154px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    align-content: start;
    gap: 2px 10px;
    overflow: hidden;
    padding: 20px 18px 16px;
    color: #f8fbff;
    border: 1px solid rgba(149, 193, 230, 0.22);
    border-radius: 17px;
    background:
      radial-gradient(circle at 18% 24%, rgba(126, 237, 114, 0.13), transparent 26%),
      linear-gradient(180deg, rgba(9, 28, 46, 0.78), rgba(4, 16, 29, 0.9));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 20px 44px rgba(0, 0, 0, 0.3);
  }

  body[data-view="kanban"] .metric::before {
    content: "";
    position: absolute;
    left: -20%;
    right: -8%;
    bottom: -20px;
    height: 78px;
    background:
      radial-gradient(ellipse at 72% 0%, rgba(126, 237, 114, 0.25), transparent 42%),
      linear-gradient(180deg, transparent, rgba(126, 237, 114, 0.1));
    clip-path: polygon(0 72%, 18% 78%, 35% 70%, 52% 45%, 68% 34%, 82% 49%, 100% 12%, 100% 100%, 0 100%);
    opacity: 0.95;
  }

  body[data-view="kanban"] .metric::after {
    content: "";
    position: absolute;
    left: -4%;
    right: -6%;
    bottom: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(126, 237, 114, 0.72), transparent);
    transform: rotate(-5deg);
    box-shadow: 0 0 12px rgba(126, 237, 114, 0.45);
  }

  body[data-view="kanban"] .metric:nth-child(2) {
    background:
      radial-gradient(circle at 18% 24%, rgba(73, 140, 255, 0.16), transparent 28%),
      linear-gradient(180deg, rgba(9, 28, 50, 0.78), rgba(4, 16, 31, 0.9));
  }

  body[data-view="kanban"] .metric:nth-child(2)::before {
    background:
      radial-gradient(ellipse at 72% 0%, rgba(73, 140, 255, 0.24), transparent 42%),
      linear-gradient(180deg, transparent, rgba(73, 140, 255, 0.11));
  }

  body[data-view="kanban"] .metric:nth-child(2)::after {
    background: linear-gradient(90deg, transparent, rgba(73, 140, 255, 0.74), transparent);
    box-shadow: 0 0 12px rgba(73, 140, 255, 0.45);
  }

  body[data-view="kanban"] .metric:nth-child(4) {
    background:
      radial-gradient(circle at 18% 24%, rgba(242, 157, 47, 0.17), transparent 28%),
      linear-gradient(180deg, rgba(38, 29, 13, 0.72), rgba(15, 17, 18, 0.9));
  }

  body[data-view="kanban"] .metric:nth-child(4)::before {
    background:
      radial-gradient(ellipse at 72% 0%, rgba(242, 157, 47, 0.25), transparent 42%),
      linear-gradient(180deg, transparent, rgba(242, 157, 47, 0.11));
  }

  body[data-view="kanban"] .metric:nth-child(4)::after {
    background: linear-gradient(90deg, transparent, rgba(242, 157, 47, 0.74), transparent);
    box-shadow: 0 0 12px rgba(242, 157, 47, 0.45);
  }

  body[data-view="kanban"] .metric > svg {
    position: relative;
    z-index: 1;
    grid-row: 1 / span 2;
    width: 56px;
    height: 56px;
    padding: 14px;
    color: #f8fbff;
    border: 1px solid rgba(163, 255, 144, 0.42);
    border-radius: 999px;
    background:
      radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.18), transparent 28%),
      linear-gradient(180deg, rgba(126, 237, 114, 0.62), rgba(43, 119, 40, 0.7));
    box-shadow: 0 0 24px rgba(126, 237, 114, 0.32);
  }

  body[data-view="kanban"] .metric:nth-child(2) > svg {
    border-color: rgba(94, 154, 255, 0.52);
    background:
      radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.18), transparent 28%),
      linear-gradient(180deg, rgba(73, 140, 255, 0.62), rgba(30, 72, 156, 0.72));
    box-shadow: 0 0 24px rgba(73, 140, 255, 0.34);
  }

  body[data-view="kanban"] .metric:nth-child(4) > svg {
    border-color: rgba(242, 171, 66, 0.56);
    background:
      radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.18), transparent 28%),
      linear-gradient(180deg, rgba(242, 157, 47, 0.72), rgba(128, 63, 16, 0.72));
    box-shadow: 0 0 24px rgba(242, 157, 47, 0.34);
  }

  body[data-view="kanban"] .metric span {
    position: relative;
    z-index: 1;
    align-self: end;
    color: rgba(248, 251, 255, 0.86);
    font-size: 0.83rem;
    font-weight: 660;
    line-height: 1.15;
  }

  body[data-view="kanban"] .metric strong {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: clamp(1.45rem, 6.6vw, 1.85rem);
    font-weight: 880;
    line-height: 1;
    white-space: nowrap;
  }

  body[data-view="kanban"] .metric small {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    align-self: end;
    margin-top: 14px;
    color: #8fed64;
    font-size: 0.74rem;
    font-weight: 760;
  }

  body[data-view="kanban"] .metric:nth-child(2) small {
    color: #5ea3ff;
  }

  body[data-view="kanban"] .metric:nth-child(4) small {
    color: #f0a23b;
  }

  body[data-view="kanban"] .operations-bar,
  body[data-view="kanban"] .status-tabs {
    display: none !important;
  }

  body[data-view="kanban"] .content-grid {
    display: block;
  }

  body[data-view="kanban"] .list-panel {
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(149, 193, 230, 0.16);
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(8, 24, 39, 0.76), rgba(3, 12, 22, 0.86));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 20px 44px rgba(0, 0, 0, 0.28);
  }

  body[data-view="kanban"] .panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 22px 22px 12px;
    border: 0;
    background: transparent;
  }

  body[data-view="kanban"] .panel-head h2 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 860;
    line-height: 1.12;
  }

  body[data-view="kanban"] .panel-head p {
    margin: 0;
    color: rgba(235, 246, 255, 0.62);
    font-size: 0.75rem;
    font-weight: 520;
    line-height: 1.35;
  }

  body[data-view="kanban"] .panel-head .filter-row {
    display: none !important;
  }

  body[data-view="kanban"] .kanban-see-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    color: #8fed64;
    border: 0;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 740;
  }

  body[data-view="kanban"] .kanban-see-all svg {
    width: 14px;
    height: 14px;
  }

  body[data-view="kanban"] .kanban-board {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 10px 12px 16px;
    overflow: visible;
  }

  body[data-view="kanban"] .kanban-mobile-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  body[data-view="kanban"] .kanban-summary-card {
    position: relative;
    min-width: 0;
    min-height: 196px;
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    gap: 7px;
    justify-items: start;
    overflow: hidden;
    padding: 18px 12px 12px;
    color: #f8fbff;
    text-align: left;
    border: 1px solid rgba(149, 193, 230, 0.13);
    border-radius: 10px;
    background:
      radial-gradient(circle at 50% 88%, rgba(126, 237, 114, 0.12), transparent 28%),
      linear-gradient(180deg, rgba(8, 28, 46, 0.78), rgba(4, 15, 27, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  body[data-view="kanban"] .kanban-summary-card .summary-accent {
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 4px;
    border-radius: 999px;
    background: #7fed72;
    box-shadow: 0 0 14px rgba(126, 237, 114, 0.58);
  }

  body[data-view="kanban"] .kanban-summary-card strong {
    color: #ffffff;
    font-size: clamp(0.68rem, 2.9vw, 0.8rem);
    font-weight: 840;
    line-height: 1.14;
  }

  body[data-view="kanban"] .kanban-summary-card em {
    color: #7fed72;
    font-size: clamp(1.38rem, 5.4vw, 1.62rem);
    font-style: normal;
    font-weight: 900;
    line-height: 1;
  }

  body[data-view="kanban"] .kanban-summary-card small {
    color: rgba(235, 246, 255, 0.64);
    font-size: clamp(0.56rem, 2.25vw, 0.66rem);
    font-weight: 560;
    line-height: 1.25;
  }

  body[data-view="kanban"] .summary-icon {
    align-self: end;
    justify-self: center;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-top: 10px;
    color: #8fed64;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(126, 237, 114, 0.16), rgba(126, 237, 114, 0.02) 64%);
    box-shadow: 0 0 24px rgba(126, 237, 114, 0.12);
  }

  body[data-view="kanban"] .summary-icon svg {
    width: 20px;
    height: 20px;
  }

  body[data-view="kanban"] .kanban-summary-card.tone-blue .summary-accent,
  body[data-view="kanban"] .kanban-summary-card.tone-blue .summary-icon,
  body[data-view="kanban"] .kanban-summary-card.tone-blue em {
    color: #5ea3ff;
    border-color: #5ea3ff;
  }

  body[data-view="kanban"] .kanban-summary-card.tone-blue .summary-accent {
    background: #5ea3ff;
    box-shadow: 0 0 14px rgba(73, 140, 255, 0.58);
  }

  body[data-view="kanban"] .kanban-summary-card.tone-purple .summary-accent {
    background: #a76cff;
    box-shadow: 0 0 14px rgba(167, 108, 255, 0.58);
  }

  body[data-view="kanban"] .kanban-summary-card.tone-purple .summary-icon,
  body[data-view="kanban"] .kanban-summary-card.tone-purple em {
    color: #a76cff;
  }

  body[data-view="kanban"] .kanban-summary-card.tone-orange .summary-accent {
    background: #f0a23b;
    box-shadow: 0 0 14px rgba(240, 162, 59, 0.58);
  }

  body[data-view="kanban"] .kanban-summary-card.tone-orange .summary-icon,
  body[data-view="kanban"] .kanban-summary-card.tone-orange em {
    color: #f0a23b;
  }

  body[data-view="kanban"]:not(.kanban-full-mobile) .kanban-column {
    display: none;
  }

  body[data-view="kanban"].kanban-full-mobile .kanban-mobile-summary {
    display: none;
  }

  body[data-view="kanban"].kanban-full-mobile .kanban-board {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 18px;
  }

  body[data-view="kanban"].kanban-full-mobile .kanban-column {
    min-width: 78vw;
    display: grid;
  }

  body[data-view="kanban"] .sidebar {
    inset: auto 18px calc(12px + env(safe-area-inset-bottom));
    height: 72px;
    padding: 8px 10px;
    border-radius: 34px;
    border: 1px solid rgba(149, 193, 230, 0.16);
    background:
      linear-gradient(180deg, rgba(13, 36, 57, 0.82), rgba(3, 13, 24, 0.96));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 20px 44px rgba(0, 0, 0, 0.46),
      0 0 30px rgba(126, 237, 114, 0.08);
    backdrop-filter: blur(20px);
  }

  body[data-view="kanban"] .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
  }

  body[data-view="kanban"] .nav-item {
    height: 58px;
    gap: 3px;
    color: rgba(235, 246, 255, 0.62);
    border: 0;
    border-radius: 22px;
    background: transparent;
    font-size: 0.6rem;
  }

  body[data-view="kanban"] .nav-item svg {
    width: 22px;
    height: 22px;
  }

  body[data-view="kanban"] .nav-item.active {
    color: #7fed72;
    background: radial-gradient(circle at 50% 32%, rgba(126, 237, 114, 0.16), transparent 66%);
    box-shadow: none;
  }

  body[data-view="kanban"] .mobile-create-button {
    width: 78px;
    height: 78px;
    transform: translateY(-21px);
    border: 1px solid rgba(176, 255, 157, 0.78);
    background:
      radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.42), transparent 27%),
      linear-gradient(180deg, #95ed7f, #45a540);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.34),
      0 0 38px rgba(126, 237, 114, 0.58),
      0 20px 38px rgba(0, 0, 0, 0.46);
  }
}

@media (max-width: 390px) {
  body[data-view="kanban"] .workspace {
    padding-inline: 16px;
  }

  body[data-view="kanban"] .topbar {
    min-height: 362px;
    margin-inline: -16px;
    padding-inline: 26px;
  }

  body[data-view="kanban"] .mobile-header-shortcuts {
    right: 26px;
    gap: 9px;
  }

  body[data-view="kanban"] .header-shortcut {
    width: 46px;
    height: 46px;
  }

  body[data-view="kanban"] .topbar-title .topbar-logo {
    width: min(210px, 57vw);
    margin-bottom: 36px;
  }

  body[data-view="kanban"] .topbar-title h1 {
    font-size: 2.35rem;
  }

  body[data-view="kanban"] .topbar-actions {
    left: 26px;
    right: 26px;
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 12px;
  }

  body[data-view="kanban"] .mobile-filter-button,
  body[data-view="kanban"] .search-box,
  body[data-view="kanban"] .search-box input {
    height: 58px;
  }

  body[data-view="kanban"] .metrics-grid {
    gap: 14px;
  }

  body[data-view="kanban"] .metric {
    min-height: 146px;
    padding: 18px 16px 14px;
    grid-template-columns: 52px minmax(0, 1fr);
  }

  body[data-view="kanban"] .metric > svg {
    width: 52px;
    height: 52px;
  }

  body[data-view="kanban"] .kanban-summary-card {
    min-height: 184px;
    padding-inline: 9px;
  }
}

@media (max-width: 780px) {
  body[data-view="kanban"] .topbar-actions {
    left: 0 !important;
    right: 0 !important;
    bottom: 6px !important;
    width: auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 62px !important;
    grid-auto-flow: column !important;
    align-items: center !important;
    gap: 14px !important;
  }

  body[data-view="kanban"] .search-box {
    grid-column: 1 !important;
    order: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex: none !important;
  }

  body[data-view="kanban"] .mobile-filter-button {
    grid-column: 2 !important;
    order: 1 !important;
    width: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;
    margin: 0 !important;
    justify-self: end !important;
    flex: 0 0 62px !important;
  }

  body[data-view="kanban"] .metric:nth-child(n + 5) {
    display: none !important;
  }

  body[data-view="kanban"] .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    overflow: visible !important;
  }

  body[data-view="kanban"] .metric {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 154px !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    grid-template-rows: auto auto 1fr !important;
    flex: none !important;
  }

  body[data-view="kanban"] .metric > svg {
    width: 50px !important;
    height: 50px !important;
    padding: 12px !important;
  }

  body[data-view="kanban"] .metric span {
    min-width: 0 !important;
    font-size: 0.72rem !important;
    line-height: 1.12 !important;
    overflow-wrap: anywhere;
  }

  body[data-view="kanban"] .metric strong {
    min-width: 0 !important;
    font-size: clamp(1.42rem, 6vw, 1.68rem) !important;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 390px) {
  body[data-view="kanban"] .topbar-actions {
    left: 0 !important;
    right: 0 !important;
    inset: auto 0 4px 0 !important;
    grid-template-columns: minmax(0, 1fr) 58px !important;
    gap: 12px !important;
    padding: 0 !important;
  }

  body[data-view="kanban"] .mobile-filter-button {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    flex-basis: 58px !important;
  }

  body[data-view="kanban"] .metric {
    min-height: 136px !important;
    padding: 16px 14px 12px !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
  }

  body[data-view="kanban"] .metric > svg {
    width: 44px !important;
    height: 44px !important;
    padding: 10px !important;
  }

  body[data-view="kanban"] .metric span {
    font-size: 0.69rem !important;
    overflow-wrap: normal !important;
  }

  body[data-view="kanban"] .metric strong {
    font-size: 1.36rem !important;
    overflow-wrap: normal !important;
  }
}

/* v68 final: login Connecta Vendedores fiel a referencia visual */
body .auth-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  min-height: 100dvh !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  padding: max(30px, env(safe-area-inset-top)) 24px max(30px, env(safe-area-inset-bottom)) !important;
  color: #f8fbff !important;
  background:
    radial-gradient(circle at 91% 31%, rgba(255, 219, 142, 0.96) 0 3.4%, rgba(255, 161, 73, 0.62) 4.5%, rgba(255, 146, 67, 0.24) 12%, transparent 24%),
    radial-gradient(ellipse at 78% 34%, rgba(255, 185, 93, 0.25), transparent 29%),
    linear-gradient(180deg, rgba(2, 8, 17, 0.05), rgba(2, 8, 17, 0.52) 48%, rgba(1, 6, 12, 0.9) 100%),
    url("assets/calendar-solar-bg.jpeg") 58% center / auto 100% no-repeat,
    #020913 !important;
}

body .auth-screen::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(ellipse at 54% 15%, rgba(71, 128, 191, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(2, 8, 17, 0.2), rgba(2, 8, 17, 0.58)),
    linear-gradient(90deg, rgba(1, 6, 12, 0.54), rgba(1, 6, 12, 0.04) 58%, rgba(1, 6, 12, 0.16));
}

body .auth-screen::after {
  content: "" !important;
  position: absolute !important;
  left: -12% !important;
  right: -12% !important;
  bottom: -6% !important;
  height: 40% !important;
  pointer-events: none !important;
  background:
    linear-gradient(112deg, transparent 0 44%, rgba(108, 240, 67, 0.18) 45% 46%, transparent 47% 100%),
    radial-gradient(ellipse at 54% 86%, rgba(99, 235, 64, 0.18), transparent 42%);
}

body .auth-screen.hidden,
body .app-shell.auth-locked {
  display: none !important;
}

body .auth-card {
  position: relative !important;
  z-index: 1 !important;
  width: min(498px, calc(100vw - 102px)) !important;
  min-height: min(842px, calc(100dvh - 188px)) !important;
  display: grid !important;
  align-content: center !important;
  gap: 0 !important;
  padding: clamp(42px, 6.5dvh, 66px) 36px 38px !important;
  overflow: hidden !important;
  color: #f8fbff !important;
  border: 1px solid rgba(135, 204, 245, 0.38) !important;
  border-radius: 32px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(136, 215, 255, 0.13), transparent 18%),
    linear-gradient(180deg, rgba(7, 23, 39, 0.84), rgba(2, 12, 22, 0.92)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(120, 204, 255, 0.13),
    0 0 0 1px rgba(5, 16, 28, 0.42),
    0 26px 70px rgba(0, 0, 0, 0.48),
    0 0 34px rgba(73, 180, 255, 0.13) !important;
  backdrop-filter: blur(20px) saturate(1.08) !important;
}

body .auth-card::before {
  content: "" !important;
  position: absolute !important;
  left: 12% !important;
  right: 12% !important;
  top: -1px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent, rgba(162, 226, 255, 0.85), #ffffff, rgba(105, 218, 255, 0.8), transparent) !important;
  box-shadow: 0 0 18px rgba(105, 218, 255, 0.92) !important;
}

body .auth-card::after {
  content: "" !important;
  position: absolute !important;
  left: 16% !important;
  right: 16% !important;
  top: 322px !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(87, 192, 245, 0.42), rgba(255, 255, 255, 0.78), rgba(87, 192, 245, 0.42), transparent) !important;
  box-shadow: 0 0 16px rgba(87, 192, 245, 0.72) !important;
}

body .auth-brand {
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  min-height: 0 !important;
  margin: 0 0 72px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body .auth-brand img {
  display: block !important;
  width: min(340px, 100%) !important;
  max-height: 190px !important;
  object-fit: contain !important;
  filter:
    drop-shadow(0 0 15px rgba(114, 216, 102, 0.16))
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.34)) !important;
}

body .auth-copy {
  display: grid !important;
  gap: 14px !important;
  margin: 0 0 34px !important;
  text-align: center !important;
}

body .auth-kicker {
  display: block !important;
  color: #a8e958 !important;
  font-size: 0.8rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.22em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  text-shadow: 0 0 16px rgba(168, 233, 88, 0.28) !important;
}

body .auth-copy h1 {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(1.55rem, 4.6vw, 2rem) !important;
  font-weight: 760 !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 16px 32px rgba(0, 0, 0, 0.34) !important;
}

body .auth-copy p {
  display: none !important;
}

body .login-form {
  display: grid !important;
  gap: 18px !important;
}

body .login-field {
  position: relative !important;
  display: grid !important;
  min-height: auto !important;
  gap: 10px !important;
  color: rgba(235, 246, 255, 0.82) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body .login-field > span {
  position: static !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  overflow: visible !important;
  color: rgba(235, 246, 255, 0.78) !important;
  font-size: 0.95rem !important;
  font-weight: 620 !important;
  line-height: 1.1 !important;
  white-space: normal !important;
}

body .login-field > svg {
  position: absolute !important;
  left: 20px !important;
  top: auto !important;
  bottom: 18px !important;
  width: 22px !important;
  height: 22px !important;
  color: rgba(235, 246, 255, 0.54) !important;
  transform: none !important;
}

body .login-form .login-field input {
  width: 100% !important;
  height: 62px !important;
  min-height: 62px !important;
  padding: 0 20px 0 58px !important;
  color: #f8fbff !important;
  border: 1px solid rgba(139, 180, 211, 0.22) !important;
  border-radius: 18px !important;
  outline: 0 !important;
  background:
    linear-gradient(180deg, rgba(4, 16, 29, 0.62), rgba(2, 11, 21, 0.72)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 28px rgba(0, 0, 0, 0.16) !important;
  font-size: 0.92rem !important;
  font-weight: 560 !important;
}

body .login-form .login-field input::placeholder {
  color: rgba(235, 246, 255, 0.38) !important;
}

body .login-form .login-field-password input {
  padding-right: 58px !important;
}

body .login-form .login-field:focus-within input {
  border-color: rgba(117, 203, 247, 0.48) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 3px rgba(117, 203, 247, 0.08),
    0 0 22px rgba(117, 203, 247, 0.12) !important;
}

body .login-field-password button {
  position: absolute !important;
  right: 16px !important;
  top: auto !important;
  bottom: 10px !important;
  width: 42px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  color: rgba(235, 246, 255, 0.54) !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  transform: none !important;
}

body .login-field-password button svg {
  width: 22px !important;
  height: 22px !important;
}

body .login-form > .primary-button {
  width: 100% !important;
  height: 74px !important;
  min-height: 74px !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 18px !important;
  margin: 12px 0 0 !important;
  padding: 0 24px !important;
  color: #06101c !important;
  border: 1px solid rgba(196, 255, 104, 0.7) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.38), transparent 34%),
    linear-gradient(180deg, #a7ef34, #68ce1d) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    0 0 28px rgba(136, 239, 50, 0.42),
    0 18px 34px rgba(0, 0, 0, 0.28) !important;
  font-size: 1.22rem !important;
  font-weight: 850 !important;
}

body .login-form > .primary-button svg {
  display: block !important;
  width: 28px !important;
  height: 28px !important;
}

body .login-error {
  min-height: 20px !important;
  margin: -4px 0 0 !important;
  color: #ffb4a8 !important;
  font-size: 0.82rem !important;
  font-weight: 760 !important;
  text-align: center !important;
}

body .auth-footnote {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin: 4px 0 0 !important;
  color: rgba(235, 246, 255, 0.66) !important;
  font-size: 0.86rem !important;
  font-weight: 560 !important;
  line-height: 1.25 !important;
}

body .auth-footnote svg {
  width: 24px !important;
  height: 24px !important;
  color: #8edf47 !important;
}

@media (max-width: 780px) {
  body .auth-screen {
    place-items: center !important;
    padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)) !important;
    background:
      radial-gradient(circle at 92% 31%, rgba(255, 226, 154, 0.98) 0 3.9%, rgba(255, 164, 75, 0.64) 5.1%, rgba(255, 146, 67, 0.25) 13.5%, transparent 26%),
      radial-gradient(ellipse at 82% 34%, rgba(255, 185, 93, 0.25), transparent 31%),
      linear-gradient(180deg, rgba(2, 8, 17, 0.05), rgba(2, 8, 17, 0.5) 48%, rgba(1, 6, 12, 0.9) 100%),
      url("assets/calendar-solar-bg.jpeg") 56% center / auto 100% no-repeat,
      #020913 !important;
  }

  body .auth-card {
    width: min(498px, calc(100vw - 96px)) !important;
    min-height: min(842px, calc(100dvh - 198px)) !important;
    padding: clamp(38px, 5.6dvh, 56px) 35px 34px !important;
    border-radius: 30px !important;
  }

  body .auth-card::after {
    top: clamp(190px, 31dvh, 318px) !important;
  }

  body .auth-brand {
    margin-bottom: clamp(44px, 6.4dvh, 70px) !important;
  }

  body .auth-brand img {
    width: min(322px, 100%) !important;
  }

  body .auth-copy {
    gap: 12px !important;
    margin-bottom: 30px !important;
  }

  body .auth-kicker {
    font-size: 0.73rem !important;
  }

  body .auth-copy h1 {
    font-size: clamp(1.5rem, 5.1vw, 1.78rem) !important;
  }

  body .login-form {
    gap: 17px !important;
  }

  body .login-form .login-field input {
    height: 58px !important;
    min-height: 58px !important;
  }

  body .login-form > .primary-button {
    height: 68px !important;
    min-height: 68px !important;
  }
}

@media (max-width: 390px) {
  body .auth-card {
    width: calc(100vw - 104px) !important;
    min-height: min(596px, calc(100dvh - 236px)) !important;
    padding: 34px 20px 27px !important;
    border-radius: 28px !important;
  }

  body .auth-brand {
    margin-bottom: 38px !important;
  }

  body .auth-brand img {
    width: min(238px, 100%) !important;
  }

  body .auth-card::after {
    top: 203px !important;
  }

  body .auth-copy {
    margin-bottom: 24px !important;
  }

  body .auth-copy h1 {
    font-size: 1.28rem !important;
  }

  body .login-field > span {
    font-size: 0.86rem !important;
  }

  body .login-form .login-field input {
    height: 50px !important;
    min-height: 50px !important;
    border-radius: 16px !important;
    font-size: 0.76rem !important;
  }

  body .login-field > svg {
    bottom: 14px !important;
  }

  body .login-field-password button {
    bottom: 4px !important;
  }

  body .login-form > .primary-button {
    height: 58px !important;
    min-height: 58px !important;
    font-size: 1rem !important;
  }

  body .auth-footnote {
    font-size: 0.75rem !important;
    gap: 9px !important;
  }
}

/* v69: dashboard mobile mais fiel ao mockup premium enviado */
@media (max-width: 780px) {
  body[data-view="kanban"] .workspace {
    max-width: 592px !important;
    margin: 0 auto !important;
    padding: 0 28px calc(104px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
  }

  body[data-view="kanban"] .workspace::before {
    right: -120px !important;
    bottom: 92px !important;
    width: 560px !important;
    opacity: 0.024 !important;
    filter: brightness(1.8) saturate(1.1) !important;
  }

  body[data-view="kanban"] .topbar {
    min-height: 420px !important;
    margin: 0 -28px 16px !important;
    padding: 58px 40px 24px !important;
    border: 0 !important;
    background:
      linear-gradient(180deg, rgba(2, 9, 19, 0.06), rgba(2, 9, 19, 0.44) 58%, #020913 100%),
      radial-gradient(circle at 79% 42%, rgba(255, 212, 104, 0.32), transparent 13%),
      radial-gradient(ellipse at 84% 42%, rgba(126, 237, 114, 0.22), transparent 30%),
      url("assets/calendar-solar-bg.jpeg") 72% 24% / 122% auto no-repeat,
      #020913 !important;
    box-shadow: none !important;
  }

  body[data-view="kanban"] .topbar::before {
    background:
      linear-gradient(90deg, rgba(2, 9, 19, 0.97) 0%, rgba(2, 9, 19, 0.72) 44%, rgba(2, 9, 19, 0.18) 70%, rgba(2, 9, 19, 0.72) 100%),
      linear-gradient(180deg, rgba(2, 9, 19, 0.04), rgba(2, 9, 19, 0.9) 90%) !important;
  }

  body[data-view="kanban"] .topbar::after {
    right: -54px !important;
    top: 202px !important;
    width: 280px !important;
    height: 64px !important;
    opacity: 0.84 !important;
    filter: blur(8px) !important;
    transform: rotate(-13deg) !important;
  }

  body[data-view="kanban"] .topbar-title .topbar-logo {
    width: min(220px, 48vw) !important;
    margin: 0 0 38px !important;
  }

  body[data-view="kanban"] .mobile-header-shortcuts {
    top: 62px !important;
    right: 40px !important;
    gap: 10px !important;
  }

  body[data-view="kanban"] .header-shortcut {
    width: 48px !important;
    height: 48px !important;
  }

  body[data-view="kanban"] .header-shortcut svg {
    width: 22px !important;
    height: 22px !important;
  }

  body[data-view="kanban"] .topbar .eyebrow {
    margin-bottom: 10px !important;
    font-size: 0.77rem !important;
  }

  body[data-view="kanban"] .topbar-title h1 {
    font-size: clamp(2.42rem, 10.6vw, 3rem) !important;
    line-height: 0.98 !important;
  }

  body[data-view="kanban"] .topbar-subtitle {
    max-width: 318px !important;
    margin-top: 16px !important;
    font-size: 1rem !important;
    line-height: 1.48 !important;
  }

  body[data-view="kanban"] .topbar-actions {
    left: 40px !important;
    right: 40px !important;
    bottom: 5px !important;
    width: auto !important;
    grid-template-columns: minmax(0, 1fr) 62px !important;
    gap: 14px !important;
    padding: 0 !important;
  }

  body[data-view="kanban"] .search-box,
  body[data-view="kanban"] .search-box input,
  body[data-view="kanban"] .mobile-filter-button {
    height: 62px !important;
  }

  body[data-view="kanban"] .search-box {
    border-radius: 16px !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
  }

  body[data-view="kanban"] .search-box input {
    font-size: 0.9rem !important;
    font-weight: 540 !important;
  }

  body[data-view="kanban"] .mobile-filter-button {
    width: 62px !important;
    min-width: 62px !important;
    border-radius: 16px !important;
  }

  body[data-view="kanban"] .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin: 0 0 18px !important;
  }

  body[data-view="kanban"] .metric:nth-child(n + 5) {
    display: none !important;
  }

  body[data-view="kanban"] .metric {
    position: relative !important;
    display: block !important;
    min-height: 142px !important;
    padding: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  body[data-view="kanban"] .metric > svg {
    position: absolute !important;
    left: 18px !important;
    top: 20px !important;
    width: 52px !important;
    height: 52px !important;
    padding: 13px !important;
  }

  body[data-view="kanban"] .metric span {
    position: absolute !important;
    z-index: 2 !important;
    left: 88px !important;
    right: 16px !important;
    top: 30px !important;
    display: block !important;
    color: rgba(248, 251, 255, 0.88) !important;
    font-size: 0.76rem !important;
    font-weight: 640 !important;
    line-height: 1.08 !important;
    overflow-wrap: normal !important;
  }

  body[data-view="kanban"] .metric strong {
    position: absolute !important;
    z-index: 2 !important;
    left: 88px !important;
    right: 16px !important;
    top: 78px !important;
    display: block !important;
    color: #ffffff !important;
    font-size: clamp(1.42rem, 6vw, 1.7rem) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    overflow-wrap: normal !important;
  }

  body[data-view="kanban"] .metric small {
    position: absolute !important;
    z-index: 2 !important;
    left: 18px !important;
    right: 18px !important;
    bottom: 15px !important;
    margin: 0 !important;
    font-size: 0.68rem !important;
    line-height: 1.1 !important;
  }

  body[data-view="kanban"] .metric::before {
    bottom: -28px !important;
    height: 82px !important;
  }

  body[data-view="kanban"] .metric::after {
    bottom: 33px !important;
  }

  body[data-view="kanban"] .list-panel {
    margin-top: 4px !important;
    border-radius: 18px !important;
    background:
      radial-gradient(ellipse at 78% 14%, rgba(126, 237, 114, 0.08), transparent 28%),
      linear-gradient(180deg, rgba(8, 24, 39, 0.78), rgba(2, 10, 19, 0.9)) !important;
  }

  body[data-view="kanban"] .panel-head {
    padding: 22px 20px 10px !important;
  }

  body[data-view="kanban"] .panel-head h2 {
    font-size: 1.32rem !important;
    line-height: 1.08 !important;
  }

  body[data-view="kanban"] .panel-head p {
    max-width: 270px !important;
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }

  body[data-view="kanban"] .kanban-see-all {
    font-size: 0.78rem !important;
    color: #8fed64 !important;
  }

  body[data-view="kanban"] .kanban-board {
    padding: 12px 12px 18px !important;
  }

  body[data-view="kanban"] .kanban-mobile-summary {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body[data-view="kanban"] .kanban-summary-card {
    min-height: 178px !important;
    padding: 16px 7px 10px !important;
    border-radius: 11px !important;
  }

  body[data-view="kanban"] .kanban-summary-card strong {
    min-height: 2.18em !important;
    color: #ffffff !important;
    font-size: clamp(0.58rem, 2.25vw, 0.72rem) !important;
    font-weight: 870 !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere !important;
  }

  body[data-view="kanban"] .kanban-summary-card em {
    font-size: clamp(1.3rem, 5.1vw, 1.56rem) !important;
  }

  body[data-view="kanban"] .kanban-summary-card small {
    font-size: clamp(0.52rem, 2.05vw, 0.62rem) !important;
    line-height: 1.2 !important;
  }

  body[data-view="kanban"] .summary-icon {
    width: 42px !important;
    height: 42px !important;
    margin-top: 7px !important;
  }

  body[data-view="kanban"] .summary-icon svg {
    width: 19px !important;
    height: 19px !important;
  }

  body[data-view="kanban"] .sidebar {
    left: max(24px, env(safe-area-inset-left)) !important;
    right: max(24px, env(safe-area-inset-right)) !important;
    bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    height: 72px !important;
    border-radius: 34px !important;
  }

  body[data-view="kanban"] .mobile-create-button {
    width: 76px !important;
    height: 76px !important;
    transform: translateY(-22px) !important;
  }
}

@media (max-width: 430px) {
  body[data-view="kanban"] .workspace {
    padding-inline: 22px !important;
  }

  body[data-view="kanban"] .topbar {
    min-height: 392px !important;
    margin-inline: -22px !important;
    padding: 44px 28px 22px !important;
  }

  body[data-view="kanban"] .topbar-title .topbar-logo {
    width: min(214px, 57vw) !important;
    margin-bottom: 34px !important;
  }

  body[data-view="kanban"] .mobile-header-shortcuts {
    top: 48px !important;
    right: 28px !important;
    gap: 8px !important;
  }

  body[data-view="kanban"] .header-shortcut {
    width: 46px !important;
    height: 46px !important;
  }

  body[data-view="kanban"] .topbar-title h1 {
    font-size: clamp(2.28rem, 10.2vw, 2.52rem) !important;
  }

  body[data-view="kanban"] .topbar-subtitle {
    max-width: 304px !important;
    font-size: 0.96rem !important;
  }

  body[data-view="kanban"] .topbar-actions {
    left: 28px !important;
    right: 28px !important;
    bottom: 4px !important;
    grid-template-columns: minmax(0, 1fr) 58px !important;
    gap: 12px !important;
  }

  body[data-view="kanban"] .search-box,
  body[data-view="kanban"] .search-box input,
  body[data-view="kanban"] .mobile-filter-button {
    height: 58px !important;
  }

  body[data-view="kanban"] .mobile-filter-button {
    width: 58px !important;
    min-width: 58px !important;
  }

  body[data-view="kanban"] .metrics-grid {
    gap: 14px !important;
  }

  body[data-view="kanban"] .metric {
    min-height: 128px !important;
    border-radius: 17px !important;
  }

  body[data-view="kanban"] .metric > svg {
    left: 17px !important;
    top: 18px !important;
    width: 46px !important;
    height: 46px !important;
    padding: 11px !important;
  }

  body[data-view="kanban"] .metric span {
    left: 76px !important;
    right: 12px !important;
    top: 28px !important;
    font-size: 0.68rem !important;
    line-height: 1.08 !important;
  }

  body[data-view="kanban"] .metric strong {
    left: 76px !important;
    right: 12px !important;
    top: 68px !important;
    font-size: 1.36rem !important;
  }

  body[data-view="kanban"] .metric small {
    left: 16px !important;
    right: 16px !important;
    bottom: 13px !important;
    font-size: 0.6rem !important;
  }

  body[data-view="kanban"] .panel-head {
    padding: 20px 18px 9px !important;
  }

  body[data-view="kanban"] .panel-head h2 {
    font-size: 1.18rem !important;
  }

  body[data-view="kanban"] .panel-head p {
    font-size: 0.72rem !important;
  }

  body[data-view="kanban"] .kanban-board {
    padding: 10px 10px 16px !important;
  }

  body[data-view="kanban"] .kanban-mobile-summary {
    gap: 7px !important;
  }

  body[data-view="kanban"] .kanban-summary-card {
    min-height: 158px !important;
    padding: 14px 5px 9px !important;
  }

  body[data-view="kanban"] .kanban-summary-card strong {
    font-size: 0.52rem !important;
    line-height: 1.06 !important;
  }

  body[data-view="kanban"] .kanban-summary-card em {
    font-size: 1.18rem !important;
  }

  body[data-view="kanban"] .kanban-summary-card small {
    font-size: 0.48rem !important;
  }

  body[data-view="kanban"] .summary-icon {
    width: 36px !important;
    height: 36px !important;
  }
}

/* v70: ajuste de leitura dos cards da home mobile */
@media (max-width: 780px) {
  body[data-view="kanban"] .metric {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    grid-template-rows: 28px 34px minmax(22px, 1fr) !important;
    align-content: stretch !important;
    align-items: start !important;
    gap: 1px 12px !important;
    min-height: 142px !important;
    padding: 20px 16px 14px !important;
  }

  body[data-view="kanban"] .metric > svg {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: start !important;
    justify-self: start !important;
    width: 52px !important;
    height: 52px !important;
  }

  body[data-view="kanban"] .metric span {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: start !important;
    min-width: 0 !important;
    font-size: 0.74rem !important;
    line-height: 1.08 !important;
  }

  body[data-view="kanban"] .metric strong {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: start !important;
    min-width: 0 !important;
    font-size: clamp(1.34rem, 5.8vw, 1.62rem) !important;
    line-height: 1 !important;
  }

  body[data-view="kanban"] .metric small {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    align-self: end !important;
    margin: 0 !important;
    display: block !important;
    opacity: 1 !important;
    color: #8fed64 !important;
    font-size: 0.68rem !important;
    font-weight: 760 !important;
    text-shadow: 0 0 12px rgba(126, 237, 114, 0.18) !important;
  }

  body[data-view="kanban"] .metric:nth-child(2) small {
    color: #5ea3ff !important;
  }

  body[data-view="kanban"] .metric:nth-child(4) small {
    color: #f0a23b !important;
  }
}

@media (max-width: 430px) {
  body[data-view="kanban"] .metric {
    grid-template-columns: 46px minmax(0, 1fr) !important;
    grid-template-rows: 25px 31px minmax(20px, 1fr) !important;
    min-height: 128px !important;
    padding: 18px 13px 12px !important;
    gap: 0 10px !important;
  }

  body[data-view="kanban"] .metric > svg {
    width: 46px !important;
    height: 46px !important;
  }

  body[data-view="kanban"] .metric span {
    font-size: 0.64rem !important;
    line-height: 1.07 !important;
  }

  body[data-view="kanban"] .metric strong {
    font-size: 1.28rem !important;
  }

  body[data-view="kanban"] .metric small {
    font-size: 0.58rem !important;
  }
}

/* v73: posicao final fixa dos textos das metricas mobile */
@media (max-width: 780px) {
  body[data-view="kanban"] .metrics-grid > article.metric {
    position: relative !important;
    display: block !important;
    min-height: 142px !important;
    padding: 0 !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > svg {
    position: absolute !important;
    left: 18px !important;
    top: 20px !important;
    width: 52px !important;
    height: 52px !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > span {
    position: absolute !important;
    z-index: 3 !important;
    left: 88px !important;
    right: 14px !important;
    top: 32px !important;
    display: block !important;
    color: rgba(248, 251, 255, 0.9) !important;
    font-size: 0.74rem !important;
    font-weight: 650 !important;
    line-height: 1.08 !important;
    text-align: left !important;
    transform: none !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > strong {
    position: absolute !important;
    z-index: 3 !important;
    left: 88px !important;
    right: 14px !important;
    top: 68px !important;
    display: block !important;
    color: #ffffff !important;
    font-size: clamp(1.38rem, 5.8vw, 1.66rem) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: left !important;
    transform: none !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > small {
    position: absolute !important;
    z-index: 3 !important;
    left: 18px !important;
    right: 18px !important;
    bottom: 13px !important;
    display: block !important;
    color: #8fed64 !important;
    font-size: 0.66rem !important;
    font-weight: 760 !important;
    line-height: 1.1 !important;
    text-align: left !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric:nth-child(2) > small {
    color: #5ea3ff !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric:nth-child(4) > small {
    color: #f0a23b !important;
  }
}

@media (max-width: 430px) {
  body[data-view="kanban"] .metrics-grid > article.metric {
    min-height: 128px !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > svg {
    left: 16px !important;
    top: 19px !important;
    width: 46px !important;
    height: 46px !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > span {
    left: 78px !important;
    right: 11px !important;
    top: 29px !important;
    font-size: 0.64rem !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > strong {
    left: 78px !important;
    right: 11px !important;
    top: 62px !important;
    font-size: 1.3rem !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > small {
    left: 15px !important;
    right: 15px !important;
    bottom: 12px !important;
    font-size: 0.58rem !important;
  }
}

/* v74: estrutura dedicada para texto das metricas */
@media (max-width: 780px) {
  body[data-view="kanban"] .metrics-grid > article.metric:nth-child(n + 5) {
    display: none !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > .metric-copy {
    position: absolute !important;
    z-index: 4 !important;
    left: 88px !important;
    right: 14px !important;
    top: 30px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 6px !important;
    min-width: 0 !important;
    transform: none !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > .metric-copy > span,
  body[data-view="kanban"] .metrics-grid > article.metric > .metric-copy > strong {
    position: static !important;
    inset: auto !important;
    display: block !important;
    min-width: 0 !important;
    width: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    align-self: auto !important;
    margin: 0 !important;
    transform: none !important;
    text-align: left !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > .metric-copy > span {
    color: rgba(248, 251, 255, 0.9) !important;
    font-size: 0.74rem !important;
    font-weight: 650 !important;
    line-height: 1.08 !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > .metric-copy > strong {
    color: #ffffff !important;
    font-size: clamp(1.38rem, 5.8vw, 1.66rem) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 430px) {
  body[data-view="kanban"] .metrics-grid > article.metric > .metric-copy {
    left: 78px !important;
    right: 11px !important;
    top: 29px !important;
    gap: 5px !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > .metric-copy > span {
    font-size: 0.64rem !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > .metric-copy > strong {
    font-size: 1.3rem !important;
  }
}

/* v77: proporcao da home mobile alinhada a referencia */
@media (max-width: 780px) {
  body[data-view="kanban"] .workspace {
    max-width: 592px !important;
    padding: 0 28px calc(96px + env(safe-area-inset-bottom)) !important;
  }

  body[data-view="kanban"] .topbar {
    min-height: 318px !important;
    margin: 0 -28px 0 !important;
    padding: 58px 40px 18px !important;
    background:
      linear-gradient(180deg, rgba(1, 7, 15, 0.1), rgba(1, 7, 15, 0.42) 58%, #020913 100%),
      linear-gradient(90deg, rgba(2, 9, 19, 0.98) 0%, rgba(2, 9, 19, 0.82) 43%, rgba(2, 9, 19, 0.18) 77%, rgba(2, 9, 19, 0.44) 100%),
      url("assets/dashboard-solar-reference.jpg") right 120px / 235px 300px no-repeat,
      #020913 !important;
  }

  body[data-view="kanban"] .topbar::before {
    background:
      radial-gradient(circle at 75% 54%, rgba(255, 219, 104, 0.22), transparent 13%),
      linear-gradient(90deg, rgba(2, 9, 19, 0.86), rgba(2, 9, 19, 0.24) 76%, rgba(2, 9, 19, 0.18)) !important;
  }

  body[data-view="kanban"] .topbar::after {
    right: -34px !important;
    top: 205px !important;
    width: 230px !important;
    height: 42px !important;
    opacity: 0.72 !important;
    filter: blur(8px) !important;
  }

  body[data-view="kanban"] .topbar-title .topbar-logo {
    width: min(222px, 48vw) !important;
    margin: 0 0 28px !important;
  }

  body[data-view="kanban"] .mobile-header-shortcuts {
    top: 62px !important;
    right: 40px !important;
  }

  body[data-view="kanban"] .topbar .eyebrow {
    margin-bottom: 10px !important;
    font-size: 0.76rem !important;
  }

  body[data-view="kanban"] .topbar-title h1 {
    font-size: clamp(2.35rem, 10.4vw, 2.9rem) !important;
    line-height: 0.98 !important;
  }

  body[data-view="kanban"] .topbar-subtitle {
    max-width: 318px !important;
    margin-top: 12px !important;
    font-size: 0.96rem !important;
    line-height: 1.45 !important;
  }

  body[data-view="kanban"] .topbar-actions {
    left: 40px !important;
    right: 40px !important;
    bottom: -52px !important;
    grid-template-columns: minmax(0, 1fr) 62px !important;
  }

  body[data-view="kanban"] .metrics-grid {
    gap: 18px !important;
    margin: 80px 0 16px !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric {
    min-height: 128px !important;
    border-radius: 17px !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > svg {
    left: 18px !important;
    top: 19px !important;
    width: 50px !important;
    height: 50px !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > .metric-copy {
    left: 88px !important;
    right: 16px !important;
    top: 27px !important;
    gap: 8px !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > .metric-copy > span {
    font-size: 0.72rem !important;
    line-height: 1.08 !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > .metric-copy > strong {
    font-size: clamp(1.35rem, 5.6vw, 1.62rem) !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > small {
    left: 18px !important;
    bottom: 14px !important;
    font-size: 0.64rem !important;
  }

  body[data-view="kanban"] .list-panel {
    margin-top: 0 !important;
    border-radius: 17px !important;
  }

  body[data-view="kanban"] .panel-head {
    padding: 20px 18px 8px !important;
  }

  body[data-view="kanban"] .panel-head h2 {
    font-size: 1.2rem !important;
  }

  body[data-view="kanban"] .panel-head p {
    max-width: 260px !important;
    font-size: 0.72rem !important;
  }

  body[data-view="kanban"] .kanban-board {
    padding: 10px 10px 14px !important;
  }

  body[data-view="kanban"] .kanban-mobile-summary {
    gap: 8px !important;
  }

  body[data-view="kanban"] .kanban-summary-card {
    min-height: 128px !important;
    padding: 13px 6px 8px !important;
    border-radius: 10px !important;
  }

  body[data-view="kanban"] .kanban-summary-card strong {
    min-height: 2.08em !important;
    font-size: clamp(0.52rem, 2.18vw, 0.64rem) !important;
  }

  body[data-view="kanban"] .kanban-summary-card em {
    font-size: clamp(1.15rem, 4.7vw, 1.42rem) !important;
  }

  body[data-view="kanban"] .kanban-summary-card small {
    font-size: clamp(0.46rem, 1.9vw, 0.56rem) !important;
  }

  body[data-view="kanban"] .summary-icon {
    width: 34px !important;
    height: 34px !important;
    margin-top: 3px !important;
  }
}

@media (max-width: 430px) {
  body[data-view="kanban"] .workspace {
    padding-inline: 22px !important;
  }

  body[data-view="kanban"] .topbar {
    min-height: 304px !important;
    margin-inline: -22px !important;
    padding: 46px 28px 16px !important;
    background:
      linear-gradient(180deg, rgba(1, 7, 15, 0.1), rgba(1, 7, 15, 0.42) 58%, #020913 100%),
      linear-gradient(90deg, rgba(2, 9, 19, 0.98) 0%, rgba(2, 9, 19, 0.82) 43%, rgba(2, 9, 19, 0.18) 77%, rgba(2, 9, 19, 0.44) 100%),
      url("assets/dashboard-solar-reference.jpg") right 115px / 205px 270px no-repeat,
      #020913 !important;
  }

  body[data-view="kanban"] .topbar-title .topbar-logo {
    width: min(212px, 57vw) !important;
    margin-bottom: 26px !important;
  }

  body[data-view="kanban"] .mobile-header-shortcuts {
    top: 49px !important;
    right: 28px !important;
  }

  body[data-view="kanban"] .header-shortcut {
    width: 46px !important;
    height: 46px !important;
  }

  body[data-view="kanban"] .topbar-title h1 {
    font-size: clamp(2.22rem, 10.1vw, 2.48rem) !important;
  }

  body[data-view="kanban"] .topbar-subtitle {
    max-width: 300px !important;
    margin-top: 11px !important;
    font-size: 0.92rem !important;
  }

  body[data-view="kanban"] .topbar-actions {
    left: 28px !important;
    right: 28px !important;
    bottom: -50px !important;
    grid-template-columns: minmax(0, 1fr) 58px !important;
  }

  body[data-view="kanban"] .search-box,
  body[data-view="kanban"] .search-box input,
  body[data-view="kanban"] .mobile-filter-button {
    height: 58px !important;
  }

  body[data-view="kanban"] .metrics-grid {
    gap: 14px !important;
    margin-top: 78px !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric {
    min-height: 122px !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > svg {
    left: 16px !important;
    top: 18px !important;
    width: 46px !important;
    height: 46px !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > .metric-copy {
    left: 77px !important;
    right: 10px !important;
    top: 27px !important;
    gap: 7px !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > .metric-copy > span {
    font-size: 0.63rem !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > .metric-copy > strong {
    font-size: 1.28rem !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > small {
    left: 15px !important;
    bottom: 13px !important;
    font-size: 0.56rem !important;
  }

  body[data-view="kanban"] .kanban-summary-card {
    min-height: 124px !important;
    padding: 12px 5px 8px !important;
  }
}

/* v78: busca visivel e topo mais compacto */
@media (max-width: 780px) {
  body[data-view="kanban"] .topbar {
    min-height: 312px !important;
    overflow: hidden !important;
  }

  body[data-view="kanban"] .topbar-title .topbar-logo {
    margin-bottom: 20px !important;
  }

  body[data-view="kanban"] .topbar-actions {
    bottom: 12px !important;
  }

  body[data-view="kanban"] .metrics-grid {
    margin-top: 6px !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric {
    min-height: 122px !important;
  }

  body[data-view="kanban"] .kanban-summary-card {
    min-height: 120px !important;
  }
}

@media (max-width: 430px) {
  body[data-view="kanban"] .topbar {
    min-height: 300px !important;
    padding-top: 40px !important;
  }

  body[data-view="kanban"] .topbar-title .topbar-logo {
    width: min(208px, 56vw) !important;
    margin-bottom: 18px !important;
  }

  body[data-view="kanban"] .mobile-header-shortcuts {
    top: 43px !important;
  }

  body[data-view="kanban"] .topbar-title h1 {
    font-size: clamp(2.18rem, 10vw, 2.44rem) !important;
  }

  body[data-view="kanban"] .topbar-subtitle {
    margin-top: 9px !important;
    font-size: 0.9rem !important;
  }

  body[data-view="kanban"] .topbar-actions {
    bottom: 12px !important;
  }

  body[data-view="kanban"] .metrics-grid {
    margin-top: 4px !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric {
    min-height: 118px !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > svg {
    top: 17px !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > .metric-copy {
    top: 25px !important;
  }

  body[data-view="kanban"] .metrics-grid > article.metric > small {
    bottom: 11px !important;
  }

  body[data-view="kanban"] .kanban-summary-card {
    min-height: 118px !important;
  }
}

/* v80: canvas mobile fiel a referencia 592x1280 */
.mobile-reference-dashboard {
  display: none;
}

@media (max-width: 780px) {
  body[data-view="kanban"] .workspace {
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #020913 !important;
  }

  body[data-view="kanban"]:not(.deal-form-open) {
    overflow: hidden !important;
  }

  body[data-view="kanban"] .workspace::before,
  body[data-view="kanban"] .topbar,
  body[data-view="kanban"] .metrics-grid,
  body[data-view="kanban"] .operations-bar,
  body[data-view="kanban"] .sidebar {
    display: none !important;
  }

  body[data-view="kanban"]:not(.deal-form-open) .content-grid {
    display: none !important;
  }

  body[data-view="kanban"].deal-form-open .mobile-reference-dashboard {
    display: none !important;
  }

  body[data-view="kanban"] .mobile-reference-dashboard {
    --ref-scale-x: calc(100vw / 592);
    --ref-scale-y: calc(100dvh / 1280);
    position: relative;
    display: block;
    width: 592px;
    height: 1280px;
    overflow: hidden;
    color: #f8fbff;
    background:
      radial-gradient(circle at 77% 18%, rgba(105, 230, 72, 0.18), transparent 22%),
      radial-gradient(circle at 52% 101%, rgba(106, 235, 67, 0.14), transparent 28%),
      linear-gradient(180deg, #020913 0%, #010813 58%, #01050b 100%);
    transform: scale(var(--ref-scale-x), var(--ref-scale-y));
    transform-origin: top left;
  }

  .mobile-ref-status {
    display: none !important;
  }

  .mobile-ref-bg {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(2, 9, 19, 0.03), rgba(2, 9, 19, 0.26) 40%, rgba(2, 9, 19, 0.92) 100%),
      linear-gradient(90deg, rgba(2, 9, 19, 0.96) 0%, rgba(2, 9, 19, 0.76) 48%, rgba(2, 9, 19, 0.22) 74%, rgba(2, 9, 19, 0.46) 100%);
    pointer-events: none;
  }

  .mobile-ref-bg::before {
    content: "";
    position: absolute;
    right: -10px;
    top: 88px;
    width: 370px;
    height: 305px;
    background:
      linear-gradient(180deg, rgba(2, 9, 19, 0.04), rgba(2, 9, 19, 0.14) 55%, rgba(2, 9, 19, 0.68) 100%),
      linear-gradient(90deg, rgba(2, 9, 19, 0.94) 0%, rgba(2, 9, 19, 0.26) 34%, rgba(2, 9, 19, 0.02) 70%, rgba(2, 9, 19, 0.34) 100%),
      url("assets/dashboard-solar-reference.jpg") center / cover no-repeat;
    filter: saturate(1.14) contrast(1.08);
    opacity: 0.95;
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, #000 26%, #000 100%),
      linear-gradient(180deg, transparent 0%, #000 12%, #000 78%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 26%, #000 100%),
      linear-gradient(180deg, transparent 0%, #000 12%, #000 78%, transparent 100%);
    mask-composite: intersect;
  }

  .mobile-ref-bg::after {
    content: "";
    position: absolute;
    right: -40px;
    top: 286px;
    width: 285px;
    height: 56px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(126, 237, 114, 0.95), transparent);
    filter: blur(8px);
    opacity: 0.72;
    transform: rotate(-11deg);
  }

  .mobile-ref-status {
    position: absolute;
    z-index: 3;
    left: 32px;
    right: 30px;
    top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    font-size: 16px;
    font-weight: 760;
  }

  .mobile-ref-system {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .mobile-ref-system svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.4;
  }

  .mobile-ref-hero,
  .mobile-ref-search-row,
  .mobile-ref-metrics,
  .mobile-ref-kanban,
  .mobile-ref-nav {
    position: absolute;
    z-index: 2;
  }

  .mobile-ref-hero {
    left: 32px;
    right: 32px;
    top: 68px;
  }

  .mobile-ref-logo {
    width: 222px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 14px rgba(126, 237, 114, 0.12));
  }

  .mobile-ref-shortcuts {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    gap: 16px;
  }

  .mobile-ref-shortcuts button,
  .mobile-ref-filter {
    position: relative;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: #f8fbff;
    border: 1px solid rgba(149, 193, 230, 0.18);
    border-radius: 999px;
    background:
      radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.16), transparent 30%),
      linear-gradient(180deg, rgba(19, 45, 72, 0.64), rgba(4, 16, 29, 0.86));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 18px 34px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(18px);
  }

  .mobile-ref-shortcuts svg,
  .mobile-ref-filter svg {
    width: 23px;
    height: 23px;
  }

  .mobile-ref-shortcuts button span {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 9px;
    height: 9px;
    border: 2px solid #071424;
    border-radius: 999px;
    background: #7fed72;
    box-shadow: 0 0 12px rgba(126, 237, 114, 0.74);
  }

  .mobile-ref-hero p {
    margin: 43px 0 11px;
    color: #8fed64;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
  }

  .mobile-ref-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.98;
    white-space: nowrap;
  }

  .mobile-ref-hero h1 span {
    color: #78e86b;
  }

  .mobile-ref-hero strong {
    display: block;
    max-width: 340px;
    margin-top: 18px;
    color: rgba(248, 251, 255, 0.78);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.45;
  }

  .mobile-ref-search-row {
    left: 30px;
    right: 30px;
    top: 354px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 62px;
    gap: 16px;
  }

  .mobile-ref-search {
    height: 62px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(149, 193, 230, 0.22);
    border-radius: 17px;
    background:
      radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.1), transparent 24%),
      linear-gradient(180deg, rgba(10, 30, 50, 0.68), rgba(3, 14, 25, 0.9));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 18px rgba(126, 237, 114, 0.08),
      0 16px 34px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
  }

  .mobile-ref-search svg {
    justify-self: center;
    width: 25px;
    height: 25px;
    color: rgba(235, 246, 255, 0.86);
  }

  .mobile-ref-search input {
    height: 62px;
    min-width: 0;
    color: #f8fbff;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 560;
  }

  .mobile-ref-search input::placeholder {
    color: rgba(235, 246, 255, 0.54);
  }

  .mobile-ref-filter {
    width: 62px;
    height: 62px;
    border-radius: 17px;
    color: #8fed64;
  }

  .mobile-ref-metrics {
    left: 28px;
    right: 28px;
    top: 444px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }

  .mobile-ref-metric {
    position: relative;
    height: 186px;
    overflow: hidden;
    padding: 28px 18px 18px;
    border: 1px solid rgba(149, 193, 230, 0.23);
    border-radius: 17px;
    background:
      radial-gradient(circle at 18% 22%, rgba(126, 237, 114, 0.15), transparent 28%),
      linear-gradient(180deg, rgba(9, 28, 46, 0.78), rgba(4, 16, 29, 0.9));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 20px 44px rgba(0, 0, 0, 0.3);
  }

  .mobile-ref-metric::before {
    content: "";
    position: absolute;
    left: -16%;
    right: -4%;
    bottom: -20px;
    height: 82px;
    opacity: 0.96;
    background:
      radial-gradient(ellipse at 72% 0%, rgba(126, 237, 114, 0.26), transparent 42%),
      linear-gradient(180deg, transparent, rgba(126, 237, 114, 0.11));
    clip-path: polygon(0 72%, 18% 78%, 35% 70%, 52% 45%, 68% 34%, 82% 49%, 100% 12%, 100% 100%, 0 100%);
  }

  .mobile-ref-metric::after {
    content: "";
    position: absolute;
    left: -4%;
    right: -6%;
    bottom: 36px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(126, 237, 114, 0.72), transparent);
    box-shadow: 0 0 12px rgba(126, 237, 114, 0.45);
    transform: rotate(-5deg);
  }

  .mobile-ref-metric.tone-blue {
    background:
      radial-gradient(circle at 18% 22%, rgba(73, 140, 255, 0.18), transparent 28%),
      linear-gradient(180deg, rgba(9, 28, 50, 0.78), rgba(4, 16, 31, 0.9));
  }

  .mobile-ref-metric.tone-blue::before {
    background:
      radial-gradient(ellipse at 72% 0%, rgba(73, 140, 255, 0.25), transparent 42%),
      linear-gradient(180deg, transparent, rgba(73, 140, 255, 0.11));
  }

  .mobile-ref-metric.tone-blue::after {
    background: linear-gradient(90deg, transparent, rgba(73, 140, 255, 0.74), transparent);
    box-shadow: 0 0 12px rgba(73, 140, 255, 0.45);
  }

  .mobile-ref-metric.tone-orange {
    background:
      radial-gradient(circle at 18% 22%, rgba(242, 157, 47, 0.18), transparent 28%),
      linear-gradient(180deg, rgba(38, 29, 13, 0.72), rgba(15, 17, 18, 0.9));
  }

  .mobile-ref-metric.tone-orange::before {
    background:
      radial-gradient(ellipse at 72% 0%, rgba(242, 157, 47, 0.26), transparent 42%),
      linear-gradient(180deg, transparent, rgba(242, 157, 47, 0.11));
  }

  .mobile-ref-metric.tone-orange::after {
    background: linear-gradient(90deg, transparent, rgba(242, 157, 47, 0.74), transparent);
    box-shadow: 0 0 12px rgba(242, 157, 47, 0.45);
  }

  .mobile-ref-metric > svg {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    padding: 14px;
    color: #f8fbff;
    border: 1px solid rgba(163, 255, 144, 0.42);
    border-radius: 999px;
    background:
      radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.18), transparent 28%),
      linear-gradient(180deg, rgba(126, 237, 114, 0.62), rgba(43, 119, 40, 0.72));
    box-shadow: 0 0 24px rgba(126, 237, 114, 0.34);
  }

  .mobile-ref-metric.tone-blue > svg {
    border-color: rgba(94, 154, 255, 0.52);
    background:
      radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.18), transparent 28%),
      linear-gradient(180deg, rgba(73, 140, 255, 0.62), rgba(30, 72, 156, 0.74));
    box-shadow: 0 0 24px rgba(73, 140, 255, 0.34);
  }

  .mobile-ref-metric.tone-orange > svg {
    border-color: rgba(242, 171, 66, 0.56);
    background:
      radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.18), transparent 28%),
      linear-gradient(180deg, rgba(242, 157, 47, 0.72), rgba(128, 63, 16, 0.72));
    box-shadow: 0 0 24px rgba(242, 157, 47, 0.34);
  }

  .mobile-ref-metric div {
    position: absolute;
    z-index: 1;
    left: 91px;
    right: 18px;
    top: 34px;
    display: grid;
    gap: 9px;
  }

  .mobile-ref-metric span {
    color: rgba(248, 251, 255, 0.88);
    font-size: 14px;
    font-weight: 660;
    line-height: 1.1;
  }

  .mobile-ref-metric strong {
    color: #ffffff;
    font-size: 27px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-ref-metric small {
    position: absolute;
    z-index: 1;
    left: 18px;
    bottom: 22px;
    color: #8fed64;
    font-size: 12px;
    font-weight: 760;
    line-height: 1;
  }

  .mobile-ref-metric.tone-blue small {
    color: #5ea3ff;
  }

  .mobile-ref-metric.tone-orange small {
    color: #f0a23b;
  }

  .mobile-ref-kanban {
    left: 20px;
    right: 20px;
    top: 850px;
    height: 303px;
    overflow: hidden;
    border: 1px solid rgba(149, 193, 230, 0.14);
    border-radius: 17px;
    background:
      radial-gradient(ellipse at 80% 35%, rgba(126, 237, 114, 0.08), transparent 28%),
      linear-gradient(180deg, rgba(8, 24, 39, 0.78), rgba(2, 10, 19, 0.92));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 20px 44px rgba(0, 0, 0, 0.28);
  }

  .mobile-ref-kanban-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 26px 20px 14px;
  }

  .mobile-ref-kanban h2 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 830;
    line-height: 1.1;
  }

  .mobile-ref-kanban p {
    margin: 0;
    color: rgba(235, 246, 255, 0.62);
    font-size: 12px;
    font-weight: 520;
    line-height: 1.3;
  }

  .mobile-ref-kanban-head button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    color: #8fed64;
    border: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 740;
  }

  .mobile-ref-kanban-head svg {
    width: 14px;
    height: 14px;
  }

  .mobile-ref-stage-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px 18px;
  }

  .mobile-ref-stage {
    position: relative;
    min-width: 0;
    height: 196px;
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    justify-items: start;
    gap: 7px;
    overflow: hidden;
    padding: 18px 10px 12px;
    color: #f8fbff;
    text-align: left;
    border: 1px solid rgba(149, 193, 230, 0.13);
    border-radius: 10px;
    background:
      radial-gradient(circle at 50% 88%, rgba(126, 237, 114, 0.12), transparent 28%),
      linear-gradient(180deg, rgba(8, 28, 46, 0.78), rgba(4, 15, 27, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .mobile-ref-stage > span {
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 4px;
    border-radius: 999px;
    background: #7fed72;
    box-shadow: 0 0 14px rgba(126, 237, 114, 0.58);
  }

  .mobile-ref-stage strong {
    color: #ffffff;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.12;
  }

  .mobile-ref-stage em {
    color: #7fed72;
    font-size: 24px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
  }

  .mobile-ref-stage small {
    color: rgba(235, 246, 255, 0.64);
    font-size: 10px;
    font-weight: 560;
    line-height: 1.22;
  }

  .mobile-ref-stage > svg {
    align-self: end;
    justify-self: center;
    width: 44px;
    height: 44px;
    padding: 11px;
    color: #8fed64;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(126, 237, 114, 0.16), rgba(126, 237, 114, 0.02) 64%);
  }

  .mobile-ref-stage.tone-blue > span {
    background: #5ea3ff;
    box-shadow: 0 0 14px rgba(73, 140, 255, 0.58);
  }

  .mobile-ref-stage.tone-blue em,
  .mobile-ref-stage.tone-blue > svg {
    color: #5ea3ff;
  }

  .mobile-ref-stage.tone-purple > span {
    background: #a76cff;
    box-shadow: 0 0 14px rgba(167, 108, 255, 0.58);
  }

  .mobile-ref-stage.tone-purple em,
  .mobile-ref-stage.tone-purple > svg {
    color: #a76cff;
  }

  .mobile-ref-stage.tone-orange > span {
    background: #f0a23b;
    box-shadow: 0 0 14px rgba(240, 162, 59, 0.58);
  }

  .mobile-ref-stage.tone-orange em,
  .mobile-ref-stage.tone-orange > svg {
    color: #f0a23b;
  }

  .mobile-ref-nav {
    left: 36px;
    right: 36px;
    bottom: 30px;
    height: 72px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    border: 1px solid rgba(149, 193, 230, 0.16);
    border-radius: 36px;
    background:
      linear-gradient(180deg, rgba(13, 36, 57, 0.82), rgba(3, 13, 24, 0.96));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 20px 44px rgba(0, 0, 0, 0.46),
      0 0 30px rgba(126, 237, 114, 0.08);
    backdrop-filter: blur(20px);
  }

  .mobile-ref-nav button {
    height: 68px;
    display: grid;
    place-items: center;
    gap: 3px;
    color: rgba(235, 246, 255, 0.62);
    border: 0;
    background: transparent;
    font-size: 11px;
    font-weight: 690;
  }

  .mobile-ref-nav button svg {
    width: 22px;
    height: 22px;
  }

  .mobile-ref-nav button.active {
    color: #7fed72;
  }

  .mobile-ref-nav .mobile-ref-plus {
    width: 78px;
    height: 78px;
    justify-self: center;
    transform: translateY(-22px);
    color: #ffffff;
    border: 1px solid rgba(176, 255, 157, 0.78);
    border-radius: 999px;
    background:
      radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.42), transparent 27%),
      linear-gradient(180deg, #95ed7f, #45a540);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.34),
      0 0 38px rgba(126, 237, 114, 0.58),
      0 20px 38px rgba(0, 0, 0, 0.46);
  }

  .mobile-ref-nav .mobile-ref-plus svg {
    width: 35px;
    height: 35px;
  }
}

/* v83 final: home mobile proporcional, sem scroll fantasma e sem texto espichado */
@media (max-width: 780px) {
  html.mobile-dashboard-lock,
  html.mobile-dashboard-lock body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
    background: #020913 !important;
  }

  html.mobile-dashboard-lock .app-shell,
  html.mobile-dashboard-lock .workspace {
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  html.mobile-dashboard-lock body[data-view="kanban"] .mobile-reference-dashboard {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    transform: none !important;
    transform-origin: center center !important;
  }

  html.mobile-dashboard-lock .mobile-ref-bg::before {
    right: -70px !important;
    top: clamp(4px, 2dvh, 20px) !important;
    width: min(80vw, 430px) !important;
    height: clamp(210px, 29dvh, 320px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-bg::after {
    right: -76px !important;
    top: clamp(160px, 25dvh, 270px) !important;
    width: min(64vw, 310px) !important;
    height: clamp(34px, 5.2dvh, 54px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-hero {
    left: clamp(20px, 5.5vw, 34px) !important;
    right: clamp(20px, 5.5vw, 34px) !important;
    top: clamp(16px, 3.2dvh, 34px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-logo {
    width: clamp(175px, 38vw, 222px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-shortcuts {
    gap: clamp(9px, 2.8vw, 16px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-shortcuts button {
    width: clamp(44px, 9vw, 52px) !important;
    height: clamp(44px, 9vw, 52px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-shortcuts svg {
    width: clamp(19px, 4vw, 23px) !important;
    height: clamp(19px, 4vw, 23px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-hero p {
    margin-top: clamp(34px, 7.2dvh, 54px) !important;
    margin-bottom: clamp(7px, 1.2dvh, 11px) !important;
    font-size: clamp(11px, 2.9vw, 14px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-hero h1 {
    font-size: clamp(34px, 9.4vw, 42px) !important;
    line-height: 0.98 !important;
  }

  html.mobile-dashboard-lock .mobile-ref-hero strong {
    max-width: min(76vw, 360px) !important;
    margin-top: clamp(10px, 1.7dvh, 18px) !important;
    font-size: clamp(14px, 3.8vw, 18px) !important;
    line-height: 1.35 !important;
  }

  html.mobile-dashboard-lock .mobile-ref-search-row {
    left: clamp(20px, 5vw, 30px) !important;
    right: clamp(20px, 5vw, 30px) !important;
    top: clamp(216px, 26.5dvh, 292px) !important;
    grid-template-columns: minmax(0, 1fr) clamp(52px, 10.6vw, 62px) !important;
    gap: clamp(10px, 3vw, 16px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-search,
  html.mobile-dashboard-lock .mobile-ref-search input,
  html.mobile-dashboard-lock .mobile-ref-filter {
    height: clamp(52px, 7.4dvh, 62px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-search {
    grid-template-columns: clamp(48px, 10vw, 58px) minmax(0, 1fr) !important;
    border-radius: clamp(15px, 3.4vw, 17px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-search input {
    font-size: clamp(12px, 3.4vw, 15px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-filter {
    width: clamp(52px, 10.6vw, 62px) !important;
    border-radius: clamp(15px, 3.4vw, 17px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-metrics {
    left: clamp(20px, 4.7vw, 28px) !important;
    right: clamp(20px, 4.7vw, 28px) !important;
    top: clamp(288px, 34dvh, 350px) !important;
    gap: clamp(12px, 1.7dvh, 18px) clamp(12px, 2.8vw, 16px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-metric {
    height: clamp(118px, 14dvh, 150px) !important;
    padding: clamp(16px, 2.5dvh, 24px) clamp(12px, 3vw, 18px) !important;
    border-radius: clamp(14px, 3.5vw, 17px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-metric > svg {
    width: clamp(46px, 10vw, 58px) !important;
    height: clamp(46px, 10vw, 58px) !important;
    padding: clamp(11px, 2.6vw, 14px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-metric div {
    left: clamp(74px, 18vw, 91px) !important;
    right: clamp(8px, 2.6vw, 18px) !important;
    top: clamp(22px, 3.6dvh, 34px) !important;
    gap: clamp(5px, 1dvh, 9px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-metric span {
    font-size: clamp(10.5px, 2.8vw, 14px) !important;
    line-height: 1.06 !important;
  }

  html.mobile-dashboard-lock .mobile-ref-metric strong {
    font-size: clamp(24px, 6.2vw, 29px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-metric small {
    left: clamp(13px, 3.2vw, 18px) !important;
    bottom: clamp(13px, 2.1dvh, 22px) !important;
    font-size: clamp(9px, 2.45vw, 12px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-metric::before {
    height: clamp(54px, 8.8dvh, 82px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-metric::after {
    bottom: clamp(25px, 4.2dvh, 36px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-kanban {
    left: clamp(14px, 3.6vw, 20px) !important;
    right: clamp(14px, 3.6vw, 20px) !important;
    top: auto !important;
    bottom: clamp(90px, 10dvh, 112px) !important;
    height: clamp(194px, 23dvh, 246px) !important;
    border-radius: clamp(14px, 3.5vw, 17px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-kanban-head {
    padding: clamp(16px, 2.8dvh, 24px) clamp(14px, 3.5vw, 20px) clamp(8px, 1.2dvh, 13px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-kanban h2 {
    font-size: clamp(18px, 4.8vw, 22px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-kanban p,
  html.mobile-dashboard-lock .mobile-ref-kanban-head button {
    font-size: clamp(10px, 2.6vw, 12px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-stage-row {
    gap: clamp(6px, 1.5vw, 8px) !important;
    padding: 0 clamp(10px, 2.8vw, 14px) clamp(10px, 1.6dvh, 16px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-stage {
    height: clamp(138px, 16.6dvh, 176px) !important;
    gap: clamp(4px, 0.8dvh, 7px) !important;
    padding: clamp(13px, 2dvh, 18px) clamp(7px, 1.8vw, 10px) clamp(8px, 1.4dvh, 12px) !important;
    border-radius: clamp(9px, 2.4vw, 11px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-stage strong {
    font-size: clamp(9.6px, 2.45vw, 12px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-stage em {
    font-size: clamp(20px, 5.6vw, 24px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-stage small {
    font-size: clamp(8px, 2.05vw, 10px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-stage > svg {
    width: clamp(32px, 8vw, 44px) !important;
    height: clamp(32px, 8vw, 44px) !important;
    padding: clamp(8px, 2vw, 11px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-nav {
    left: clamp(22px, 6vw, 36px) !important;
    right: clamp(22px, 6vw, 36px) !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    height: clamp(64px, 8.4dvh, 72px) !important;
    border-radius: 999px !important;
  }

  html.mobile-dashboard-lock .mobile-ref-nav button {
    height: clamp(60px, 7.8dvh, 68px) !important;
    font-size: clamp(9px, 2.3vw, 11px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-nav button svg {
    width: clamp(19px, 4.8vw, 22px) !important;
    height: clamp(19px, 4.8vw, 22px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-nav .mobile-ref-plus {
    width: clamp(68px, 15vw, 78px) !important;
    height: clamp(68px, 15vw, 78px) !important;
    transform: translateY(clamp(-22px, -2.4dvh, -14px)) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-nav .mobile-ref-plus svg {
    width: clamp(30px, 7vw, 35px) !important;
    height: clamp(30px, 7vw, 35px) !important;
  }
}

/* v84: home mobile em fluxo real, sem sobreposicao e sem numeros inventados */
@media (max-width: 780px) {
  html.mobile-dashboard-lock,
  html.mobile-dashboard-lock body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden !important;
    background: #020913 !important;
  }

  html.mobile-dashboard-lock .app-shell,
  html.mobile-dashboard-lock .workspace {
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  html.mobile-dashboard-lock body[data-view="kanban"] .mobile-reference-dashboard {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    gap: clamp(9px, 1.45dvh, 15px) !important;
    overflow: hidden !important;
    padding: clamp(14px, 2.6dvh, 24px) clamp(18px, 5vw, 30px) max(10px, env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
    transform: none !important;
  }

  html.mobile-dashboard-lock .mobile-ref-bg {
    position: absolute !important;
    inset: 0 !important;
  }

  html.mobile-dashboard-lock .mobile-ref-bg::before {
    right: -64px !important;
    top: 0 !important;
    width: min(82vw, 430px) !important;
    height: clamp(210px, 31dvh, 330px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-bg::after {
    right: -84px !important;
    top: clamp(164px, 24dvh, 264px) !important;
    width: min(66vw, 315px) !important;
    height: clamp(34px, 5dvh, 54px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-hero,
  html.mobile-dashboard-lock .mobile-ref-search-row,
  html.mobile-dashboard-lock .mobile-ref-metrics,
  html.mobile-dashboard-lock .mobile-ref-kanban,
  html.mobile-dashboard-lock .mobile-ref-nav {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    z-index: 2 !important;
  }

  html.mobile-dashboard-lock .mobile-ref-hero {
    flex: 0 0 auto !important;
    min-height: clamp(186px, 25.5dvh, 250px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-logo {
    width: clamp(168px, 38vw, 222px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-shortcuts {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    gap: clamp(8px, 2.4vw, 16px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-shortcuts button {
    width: clamp(42px, 9vw, 52px) !important;
    height: clamp(42px, 9vw, 52px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-hero p {
    margin: clamp(42px, 8.4dvh, 64px) 0 clamp(6px, 1dvh, 10px) !important;
    font-size: clamp(11px, 2.8vw, 14px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-hero h1 {
    margin: 0 !important;
    font-size: clamp(32px, 8.8vw, 42px) !important;
    line-height: 0.98 !important;
  }

  html.mobile-dashboard-lock .mobile-ref-hero strong {
    max-width: min(82vw, 390px) !important;
    margin-top: clamp(9px, 1.5dvh, 16px) !important;
    font-size: clamp(13px, 3.45vw, 18px) !important;
    line-height: 1.32 !important;
  }

  html.mobile-dashboard-lock .mobile-ref-search-row {
    flex: 0 0 auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) clamp(50px, 10.5vw, 62px) !important;
    gap: clamp(10px, 2.8vw, 16px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-search,
  html.mobile-dashboard-lock .mobile-ref-search input,
  html.mobile-dashboard-lock .mobile-ref-filter {
    height: clamp(50px, 6.6dvh, 62px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-search {
    grid-template-columns: clamp(46px, 9.5vw, 58px) minmax(0, 1fr) !important;
    border-radius: clamp(14px, 3.4vw, 17px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-search input {
    font-size: clamp(12px, 3.2vw, 15px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-filter {
    width: clamp(50px, 10.5vw, 62px) !important;
    border-radius: clamp(14px, 3.4vw, 17px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-metrics {
    flex: 0 0 auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(10px, 1.5dvh, 16px) clamp(12px, 2.8vw, 16px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-metric {
    height: clamp(105px, 13.2dvh, 138px) !important;
    min-height: 0 !important;
    padding: clamp(13px, 2.2dvh, 22px) clamp(10px, 2.8vw, 18px) !important;
    border-radius: clamp(14px, 3.4vw, 17px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-metric > svg {
    width: clamp(42px, 9.5vw, 56px) !important;
    height: clamp(42px, 9.5vw, 56px) !important;
    padding: clamp(10px, 2.5vw, 14px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-metric div {
    left: clamp(68px, 17vw, 91px) !important;
    right: clamp(8px, 2.5vw, 18px) !important;
    top: clamp(18px, 3dvh, 34px) !important;
    gap: clamp(3px, 0.8dvh, 8px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-metric span {
    font-size: clamp(10px, 2.65vw, 14px) !important;
    line-height: 1.08 !important;
  }

  html.mobile-dashboard-lock .mobile-ref-metric strong {
    font-size: clamp(22px, 5.8vw, 29px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-metric small,
  html.mobile-dashboard-lock .mobile-ref-metric.tone-blue small,
  html.mobile-dashboard-lock .mobile-ref-metric.tone-orange small {
    left: clamp(12px, 3vw, 18px) !important;
    bottom: clamp(10px, 1.8dvh, 20px) !important;
    color: rgba(235, 246, 255, 0.58) !important;
    font-size: clamp(8.5px, 2.1vw, 11px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-kanban {
    flex: 0 0 auto !important;
    height: clamp(174px, 22dvh, 238px) !important;
    margin-top: auto !important;
    overflow: hidden !important;
    border-radius: clamp(14px, 3.4vw, 17px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-kanban-head {
    padding: clamp(13px, 2.2dvh, 22px) clamp(13px, 3.2vw, 20px) clamp(7px, 1dvh, 12px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-kanban h2 {
    font-size: clamp(17px, 4.6vw, 22px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-kanban p,
  html.mobile-dashboard-lock .mobile-ref-kanban-head button {
    font-size: clamp(9.5px, 2.45vw, 12px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-stage-row {
    gap: clamp(5px, 1.35vw, 8px) !important;
    padding: 0 clamp(9px, 2.4vw, 14px) clamp(8px, 1.2dvh, 14px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-stage {
    height: clamp(116px, 14.8dvh, 168px) !important;
    gap: clamp(3px, 0.7dvh, 6px) !important;
    padding: clamp(11px, 1.7dvh, 17px) clamp(6px, 1.6vw, 9px) clamp(7px, 1.2dvh, 11px) !important;
    border-radius: clamp(9px, 2.2vw, 11px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-stage strong {
    font-size: clamp(8.8px, 2.3vw, 11.5px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-stage em {
    font-size: clamp(18px, 5vw, 23px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-stage small {
    font-size: clamp(7.4px, 1.9vw, 9.5px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-stage > svg {
    width: clamp(28px, 7.3vw, 40px) !important;
    height: clamp(28px, 7.3vw, 40px) !important;
    padding: clamp(7px, 1.7vw, 10px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-nav {
    flex: 0 0 auto !important;
    height: clamp(60px, 7.8dvh, 72px) !important;
    margin-top: clamp(4px, 0.8dvh, 10px) !important;
    border-radius: 999px !important;
  }

  html.mobile-dashboard-lock .mobile-ref-nav button {
    height: clamp(56px, 7.2dvh, 68px) !important;
    font-size: clamp(8.5px, 2.2vw, 11px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-nav button svg {
    width: clamp(18px, 4.6vw, 22px) !important;
    height: clamp(18px, 4.6vw, 22px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-nav .mobile-ref-plus {
    width: clamp(64px, 14vw, 78px) !important;
    height: clamp(64px, 14vw, 78px) !important;
    transform: translateY(clamp(-20px, -2.3dvh, -13px)) !important;
  }
}

/* v85 final: menu inferior preso no rodape */
@media (max-width: 780px) {
  html.mobile-dashboard-lock body[data-view="kanban"] .mobile-reference-dashboard {
    padding-bottom: max(94px, calc(84px + env(safe-area-inset-bottom))) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-kanban {
    margin-bottom: 0 !important;
    max-height: calc(100dvh - 590px) !important;
  }

  html.mobile-dashboard-lock .mobile-ref-nav {
    position: fixed !important;
    left: clamp(20px, 6vw, 36px) !important;
    right: clamp(20px, 6vw, 36px) !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    z-index: 20 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    height: clamp(62px, 8dvh, 72px) !important;
    margin: 0 !important;
    border-radius: 999px !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  html.mobile-dashboard-lock .mobile-ref-nav .mobile-ref-plus {
    transform: translateY(clamp(-21px, -2.4dvh, -14px)) !important;
  }
}

/* v87 final final: home rolavel com menu fixo */
@media (max-width: 780px) {
  html.mobile-dashboard-lock body[data-view="kanban"] .mobile-reference-dashboard {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    padding-bottom: max(118px, calc(104px + env(safe-area-inset-bottom))) !important;
  }

  html.mobile-dashboard-lock body[data-view="kanban"] .mobile-reference-dashboard::-webkit-scrollbar {
    display: none;
  }

  html.mobile-dashboard-lock .mobile-ref-kanban {
    flex: 0 0 auto !important;
    height: clamp(205px, 28dvh, 260px) !important;
    max-height: none !important;
    margin-top: clamp(8px, 1.5dvh, 18px) !important;
    margin-bottom: 0 !important;
  }

  html.mobile-dashboard-lock .mobile-ref-stage {
    height: clamp(142px, 19dvh, 188px) !important;
  }
}

/* v88: estabilizacao mobile de ficha, mapa e calendario */
@media (max-width: 780px) {
  html,
  body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .app-shell,
  .workspace,
  .content-grid,
  .detail-panel,
  #dealForm,
  .list-panel,
  .deal-list {
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  body.deal-form-open,
  body.deal-form-open .app-shell,
  body.deal-form-open .workspace,
  body.deal-form-open .content-grid {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    transform: none !important;
  }

  body.deal-form-open .topbar,
  body.deal-form-open .metrics-grid,
  body.deal-form-open .operations-bar,
  body.deal-form-open .list-panel,
  body.deal-form-open .mobile-reference-dashboard,
  body.deal-form-open .mobile-ref-nav {
    display: none !important;
  }

  body.deal-form-open .detail-panel.create-mode,
  body.deal-form-open .detail-panel.edit-mode {
    position: fixed !important;
    inset: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transform: none !important;
  }

  body.deal-form-open #dealForm {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: max(14px, env(safe-area-inset-top)) clamp(14px, 4vw, 20px) calc(112px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  body.deal-form-open .form-page-top,
  body.deal-form-open .detail-head,
  body.deal-form-open .readiness-card,
  body.deal-form-open .field-flow,
  body.deal-form-open .form-grid,
  body.deal-form-open .required-uploads,
  body.deal-form-open .attachments,
  body.deal-form-open .section-row,
  body.deal-form-open .power-attorney-action,
  body.deal-form-open .proposal-panel,
  body.deal-form-open .cadence-panel,
  body.deal-form-open .seller-playbook {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.deal-form-open .detail-head h2 {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  body.deal-form-open .quick-actions,
  body.deal-form-open .field-flow-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.deal-form-open .form-grid {
    grid-template-columns: 1fr !important;
  }

  body.deal-form-open .readiness-topline div {
    grid-template-columns: minmax(0, auto) minmax(64px, 1fr) auto !important;
  }

  body.deal-form-open .progress-track {
    width: 100% !important;
    margin: 0 !important;
  }

  body.deal-form-open .form-actions {
    position: fixed !important;
    left: clamp(12px, 4vw, 20px) !important;
    right: clamp(12px, 4vw, 20px) !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    z-index: 2200 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr) !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  body[data-view="mapa"] .workspace,
  body[data-view="calendario"] .workspace,
  body[data-view="arquivos"] .workspace {
    width: 100vw !important;
    min-height: 100dvh !important;
    padding: 0 clamp(14px, 4vw, 22px) calc(116px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
  }

  body[data-view="mapa"] .topbar,
  body[data-view="mapa"] .metrics-grid,
  body[data-view="mapa"] .operations-bar,
  body[data-view="mapa"] .panel-head,
  body[data-view="mapa"] .status-tabs {
    display: none !important;
  }

  body[data-view="mapa"] .content-grid,
  body[data-view="calendario"] .content-grid,
  body[data-view="arquivos"] .content-grid {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
  }

  body[data-view="mapa"] .list-panel,
  body[data-view="calendario"] .list-panel {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 22px !important;
    overflow: hidden !important;
  }

  body[data-view="mapa"] .deal-list.map-view {
    height: calc(100dvh - 96px) !important;
    min-height: 720px !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  body[data-view="mapa"] .map-panel,
  body[data-view="mapa"] .client-map {
    height: 100% !important;
    min-height: 720px !important;
    width: 100% !important;
    border-radius: 20px !important;
  }

  body[data-view="mapa"] .map-location-button {
    right: 12px !important;
    top: 12px !important;
    min-height: 46px !important;
    padding: 0 14px !important;
    font-size: 0.76rem !important;
    border-radius: 999px !important;
  }

  body[data-view="calendario"] .calendar-view {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100dvh !important;
    padding-bottom: calc(132px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  body[data-view="calendario"] .calendar-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding-bottom: calc(132px + env(safe-area-inset-bottom)) !important;
  }

  body[data-view="calendario"] .calendar-grid-wrap,
  body[data-view="calendario"] .calendar-selected-day {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body:not([data-view="kanban"]) .sidebar {
    left: clamp(14px, 5vw, 28px) !important;
    right: clamp(14px, 5vw, 28px) !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    z-index: 1500 !important;
  }

  .auth-screen {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: max(28px, env(safe-area-inset-top)) clamp(18px, 6vw, 28px) max(22px, env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
  }

  .auth-card {
    width: min(100%, 440px) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: clamp(24px, 6vw, 34px) clamp(17px, 5vw, 26px) !important;
    gap: clamp(16px, 4.8vw, 26px) !important;
    overflow: hidden !important;
    border-radius: 30px !important;
    box-sizing: border-box !important;
  }

  .auth-brand {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .auth-brand img {
    width: min(230px, 58vw) !important;
    max-width: 100% !important;
    max-height: 92px !important;
    object-fit: contain !important;
  }

  .auth-copy h1 {
    max-width: 100% !important;
    font-size: clamp(1.34rem, 5.7vw, 1.74rem) !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    text-align: center !important;
  }

  .auth-kicker {
    font-size: clamp(0.72rem, 3vw, 0.86rem) !important;
  }

  .login-form,
  .login-field,
  .login-form > .primary-button,
  .auth-footnote {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .login-field {
    min-height: 62px !important;
    border-radius: 17px !important;
  }

  .login-field > svg {
    left: 18px !important;
    width: 25px !important;
    height: 25px !important;
  }

  .login-form .login-field input {
    height: 62px !important;
    padding-left: 56px !important;
    padding-right: 18px !important;
    font-size: 0.98rem !important;
  }

  .login-form .login-field-password input {
    padding-right: 58px !important;
  }

  .login-field-password button {
    right: 12px !important;
    width: 38px !important;
    height: 38px !important;
  }

  .login-form > .primary-button {
    min-height: 64px !important;
    margin-top: 8px !important;
    font-size: 1.08rem !important;
    border-radius: 17px !important;
  }

  .auth-footnote {
    justify-content: center !important;
    font-size: 0.76rem !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }
}

@media (max-width: 390px) {
  body.deal-form-open .quick-actions,
  body.deal-form-open .field-flow-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-view="mapa"] .deal-list.map-view {
    height: calc(100dvh - 94px) !important;
    min-height: 690px !important;
  }

  body[data-view="mapa"] .map-panel,
  body[data-view="mapa"] .client-map {
    min-height: 690px !important;
  }
}

/* v91: arquivos limpo e mapa mais alto no Chrome mobile real */
@media (max-width: 780px) {
  body[data-view="arquivos"] .topbar,
  body[data-view="arquivos"] .metrics-grid,
  body[data-view="arquivos"] .operations-bar,
  body[data-view="arquivos"] .status-tabs {
    display: none !important;
  }

  body[data-view="arquivos"] .workspace {
    padding-top: clamp(14px, 4vw, 22px) !important;
  }

  body[data-view="arquivos"] .content-grid {
    padding-bottom: calc(128px + env(safe-area-inset-bottom)) !important;
  }

  body[data-view="arquivos"] .list-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-height: calc(100dvh - 136px) !important;
    margin: 0 !important;
    border-radius: 22px !important;
    overflow: hidden !important;
  }

  body[data-view="arquivos"] .panel-head {
    padding: 20px 18px 14px !important;
  }

  body[data-view="arquivos"] .panel-head h2 {
    font-size: clamp(1.25rem, 5.5vw, 1.65rem) !important;
    line-height: 1.08 !important;
  }

  body[data-view="arquivos"] .panel-head p {
    max-width: 100% !important;
    font-size: 0.9rem !important;
    line-height: 1.35 !important;
  }

  body[data-view="arquivos"] .panel-head .filter-row {
    display: none !important;
  }

  body[data-view="arquivos"] .deal-list {
    min-height: calc(100dvh - 260px) !important;
    padding: 14px 14px calc(136px + env(safe-area-inset-bottom)) !important;
  }

  body[data-view="mapa"] .deal-list.map-view {
    height: max(calc(100dvh - 92px), calc(100vw * 2.28)) !important;
    min-height: clamp(720px, 228vw, 940px) !important;
  }

  body[data-view="mapa"] .list-panel {
    height: max(calc(100dvh - 92px), calc(100vw * 2.28)) !important;
    min-height: clamp(720px, 228vw, 940px) !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  body[data-view="mapa"] .map-panel,
  body[data-view="mapa"] .client-map {
    min-height: clamp(720px, 228vw, 940px) !important;
  }
}

@media (max-width: 390px) {
  body[data-view="mapa"] .deal-list.map-view {
    height: max(calc(100dvh - 92px), calc(100vw * 2.3)) !important;
    min-height: clamp(700px, 230vw, 910px) !important;
  }

  body[data-view="mapa"] .list-panel {
    height: max(calc(100dvh - 92px), calc(100vw * 2.3)) !important;
    min-height: clamp(700px, 230vw, 910px) !important;
    max-height: none !important;
  }

  body[data-view="mapa"] .map-panel,
  body[data-view="mapa"] .client-map {
    min-height: clamp(700px, 230vw, 910px) !important;
  }
}

/* v93: botoes da ficha sem cobrir campos no celular */
@media (max-width: 780px) {
  body.deal-form-open #dealForm {
    padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important;
  }

  body.deal-form-open .form-actions {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 18px 0 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr) !important;
    gap: 10px !important;
    padding: 10px !important;
    box-sizing: border-box !important;
  }

  body.deal-form-open .form-actions .danger-button,
  body.deal-form-open .form-actions .secondary-button,
  body.deal-form-open .form-actions .primary-button {
    min-width: 0 !important;
    min-height: 56px !important;
    white-space: normal !important;
  }
}

/* v94: mapa com respiro, sem virar tela cheia por baixo do menu */
@media (max-width: 780px) {
  body[data-view="mapa"] .workspace {
    padding: clamp(14px, 4vw, 22px) clamp(14px, 4vw, 22px) calc(116px + env(safe-area-inset-bottom)) !important;
  }

  body[data-view="mapa"] .content-grid {
    padding-bottom: calc(116px + env(safe-area-inset-bottom)) !important;
  }

  body[data-view="mapa"] .list-panel {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    background:
      radial-gradient(circle at 72% 12%, rgba(114, 216, 102, 0.12), transparent 34%),
      linear-gradient(180deg, rgba(12, 35, 57, 0.88), rgba(3, 13, 24, 0.96)) !important;
  }

  body[data-view="mapa"] .deal-list.map-view {
    height: clamp(500px, calc(100dvh - 210px), 640px) !important;
    min-height: 500px !important;
    max-height: 640px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body[data-view="mapa"] .map-panel,
  body[data-view="mapa"] .client-map {
    height: 100% !important;
    min-height: 500px !important;
    max-height: 640px !important;
    border-radius: 22px !important;
  }

  body[data-view="mapa"] .client-map {
    border: 1px solid rgba(149, 193, 230, 0.22) !important;
  }

  body[data-view="mapa"] .map-location-button {
    right: 12px !important;
    top: 12px !important;
    max-width: calc(100% - 84px) !important;
  }
}

@media (max-width: 390px) {
  body[data-view="mapa"] .deal-list.map-view {
    height: clamp(480px, calc(100dvh - 205px), 590px) !important;
    min-height: 480px !important;
    max-height: 590px !important;
  }

  body[data-view="mapa"] .map-panel,
  body[data-view="mapa"] .client-map {
    min-height: 480px !important;
    max-height: 590px !important;
  }
}

/* v95: mapa equilibrado, com menos faixa vazia antes do menu */
@media (max-width: 780px) {
  body[data-view="mapa"] .workspace {
    padding: 12px clamp(16px, 4.5vw, 24px) calc(112px + env(safe-area-inset-bottom)) !important;
    background:
      radial-gradient(circle at 54% 76%, rgba(114, 216, 102, 0.16), transparent 27%),
      linear-gradient(180deg, rgba(3, 13, 24, 0.98), rgba(2, 8, 15, 1)) !important;
  }

  body[data-view="mapa"] .content-grid {
    min-height: calc(100dvh - 128px) !important;
    padding-bottom: 0 !important;
  }

  body[data-view="mapa"] .list-panel {
    height: calc(100dvh - 148px) !important;
    min-height: 620px !important;
    max-height: 780px !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 22px 55px rgba(0, 0, 0, 0.36),
      0 0 38px rgba(114, 216, 102, 0.08) !important;
  }

  body[data-view="mapa"] .deal-list.map-view,
  body[data-view="mapa"] .map-view {
    height: 100% !important;
    min-height: 620px !important;
    max-height: 780px !important;
    background: rgba(3, 13, 24, 0.68) !important;
  }

  body[data-view="mapa"] .map-panel,
  body[data-view="mapa"] .client-map {
    height: 100% !important;
    min-height: 620px !important;
    max-height: 780px !important;
    border-radius: 24px !important;
  }

  body[data-view="mapa"] .map-floating-empty {
    top: 96px !important;
    width: min(260px, calc(100% - 92px)) !important;
    padding: 16px 18px !important;
    border-radius: 16px !important;
    line-height: 1.28 !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34) !important;
  }

  body[data-view="mapa"] .leaflet-control-attribution {
    display: none !important;
  }
}

@media (max-width: 390px) {
  body[data-view="mapa"] .list-panel {
    height: calc(100dvh - 146px) !important;
    min-height: 600px !important;
    max-height: 750px !important;
  }

  body[data-view="mapa"] .deal-list.map-view,
  body[data-view="mapa"] .map-view {
    min-height: 600px !important;
    max-height: 750px !important;
  }

  body[data-view="mapa"] .map-panel,
  body[data-view="mapa"] .client-map {
    min-height: 600px !important;
    max-height: 750px !important;
  }
}

/* v97: login desktop em tela cheia, sem coluna de celular ampliada */
@media (min-width: 781px) {
  body .auth-screen {
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    display: grid !important;
    place-items: center !important;
    padding: clamp(28px, 4.5vh, 52px) !important;
    overflow: hidden !important;
    background:
      radial-gradient(circle at 86% 28%, rgba(255, 214, 137, 0.88) 0 4.2%, rgba(255, 161, 73, 0.34) 9%, transparent 24%),
      radial-gradient(ellipse at 78% 32%, rgba(255, 182, 92, 0.2), transparent 30%),
      linear-gradient(90deg, rgba(1, 6, 12, 0.9) 0%, rgba(1, 6, 12, 0.38) 22%, rgba(1, 6, 12, 0.18) 50%, rgba(1, 6, 12, 0.46) 78%, rgba(1, 6, 12, 0.92) 100%),
      linear-gradient(180deg, rgba(2, 8, 17, 0.1), rgba(2, 8, 17, 0.72) 56%, rgba(1, 6, 12, 0.96) 100%),
      url("assets/calendar-solar-bg.jpeg") center center / cover no-repeat,
      #020913 !important;
  }

  body .auth-screen::before {
    background:
      radial-gradient(ellipse at 50% 10%, rgba(127, 205, 255, 0.12), transparent 28%),
      linear-gradient(90deg, rgba(1, 6, 12, 0.62), transparent 30%, transparent 70%, rgba(1, 6, 12, 0.62)),
      linear-gradient(180deg, rgba(1, 6, 12, 0.16), rgba(1, 6, 12, 0.36)) !important;
  }

  body .auth-screen::after {
    left: 0 !important;
    right: 0 !important;
    bottom: -12% !important;
    height: 34% !important;
    opacity: 0.8 !important;
  }

  body .auth-card {
    width: min(520px, calc(100vw - 96px)) !important;
    min-height: 0 !important;
    max-height: calc(100vh - 70px) !important;
    align-content: start !important;
    gap: 0 !important;
    padding: clamp(34px, 5vh, 48px) 42px 32px !important;
    overflow: hidden !important;
    border-radius: 30px !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(136, 215, 255, 0.14), transparent 18%),
      linear-gradient(180deg, rgba(7, 23, 39, 0.78), rgba(2, 12, 22, 0.9)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(120, 204, 255, 0.12),
      0 28px 70px rgba(0, 0, 0, 0.5),
      0 0 42px rgba(73, 180, 255, 0.13) !important;
  }

  body .auth-card::after {
    top: clamp(150px, 22vh, 194px) !important;
  }

  body .auth-brand {
    margin: 0 0 clamp(24px, 4vh, 36px) !important;
  }

  body .auth-brand img {
    width: min(330px, 82%) !important;
    max-height: 128px !important;
  }

  body .auth-copy {
    gap: 10px !important;
    margin: 0 0 26px !important;
  }

  body .auth-kicker {
    font-size: 0.76rem !important;
  }

  body .auth-copy h1 {
    font-size: clamp(1.72rem, 2.4vw, 2.12rem) !important;
  }

  body .login-form {
    gap: 16px !important;
  }

  body .login-field {
    gap: 9px !important;
  }

  body .login-field > span {
    font-size: 0.9rem !important;
  }

  body .login-form .login-field input {
    height: 60px !important;
    min-height: 60px !important;
    border-radius: 17px !important;
  }

  body .login-form > .primary-button {
    height: 68px !important;
    min-height: 68px !important;
    margin-top: 8px !important;
    border-radius: 17px !important;
    font-size: 1.16rem !important;
  }

  body .auth-footnote {
    margin-top: 2px !important;
    font-size: 0.82rem !important;
  }
}

@media (min-width: 781px) and (max-height: 650px) {
  body .auth-screen {
    padding: 18px 32px !important;
  }

  body .auth-card {
    width: min(500px, calc(100vw - 84px)) !important;
    max-height: calc(100vh - 32px) !important;
    padding: 24px 38px 20px !important;
  }

  body .auth-card::after {
    display: none !important;
  }

  body .auth-brand {
    margin-bottom: 14px !important;
  }

  body .auth-brand img {
    width: min(280px, 76%) !important;
    max-height: 78px !important;
  }

  body .auth-copy {
    gap: 6px !important;
    margin-bottom: 16px !important;
  }

  body .auth-kicker {
    font-size: 0.68rem !important;
  }

  body .auth-copy h1 {
    font-size: 1.58rem !important;
  }

  body .login-form {
    gap: 10px !important;
  }

  body .login-field {
    gap: 6px !important;
  }

  body .login-field > span {
    font-size: 0.8rem !important;
  }

  body .login-field > svg {
    bottom: 13px !important;
    width: 19px !important;
    height: 19px !important;
  }

  body .login-form .login-field input {
    height: 48px !important;
    min-height: 48px !important;
    padding-left: 52px !important;
    border-radius: 15px !important;
    font-size: 0.86rem !important;
  }

  body .login-field-password button {
    bottom: 5px !important;
    width: 38px !important;
    height: 38px !important;
  }

  body .login-form > .primary-button {
    height: 56px !important;
    min-height: 56px !important;
    margin-top: 4px !important;
    border-radius: 15px !important;
    font-size: 1.06rem !important;
  }

  body .login-form > .primary-button svg {
    width: 23px !important;
    height: 23px !important;
  }

  body .login-error {
    min-height: 14px !important;
    font-size: 0.72rem !important;
  }

  body .auth-footnote {
    font-size: 0.72rem !important;
    gap: 8px !important;
  }

  body .auth-footnote svg {
    width: 18px !important;
    height: 18px !important;
  }
}

