﻿/* LEQUIFY — identidade visual alinhada ao site Lequinox (shared/brand-tokens.css) */

:root,
html[data-theme='dark'] {
  color-scheme: dark;
  --navy: #0b1420;
  --navy-deep: #070e16;
  --navy-elevated: #121c2a;
  --steel: #8c96a3;
  --emerald: #31c48d;
  --emerald-deep: #249e70;
  --accent: var(--emerald);
  --teal: var(--emerald);
  --teal-dark: var(--emerald-deep);
  --border: var(--line);
  --ice: #e6eef3;
  --diamond: #e6eef3;
  --white: #ffffff;
  --text: #e6eef3;
  --muted: #8c96a3;
  --line: rgba(140, 150, 163, 0.22);
  --danger: #ff8a8a;
  --on-primary: #062016;
  --bg: #070e16;
  --bg-2: #0b1420;
  --surface: #121c2a;
  --card: #151f2d;
  --panel: var(--surface);
  --input-bg: rgba(7, 14, 22, 0.78);
  --header-bg: rgba(7, 14, 22, 0.92);
  --overlay: rgba(0, 0, 0, 0.55);
  --media-bg: #101820;
  --hover-fill: rgba(230, 238, 243, 0.06);
  --pin-ring: #f4f7fa;
  --pin-fabricante: #16a34a;
  --pin-distribuidor: #0284c7;
  --pin-fornecedor: #d97706;
  --fab-bg: rgba(7, 14, 22, 0.88);
  --fab-border: rgba(230, 238, 243, 0.42);
  --atmosphere:
    radial-gradient(800px 420px at 0% 0%, color-mix(in srgb, var(--emerald) 10%, transparent), transparent 55%),
    linear-gradient(180deg, #0b1420, #070e16);
  --brand-shine: linear-gradient(105deg, #dce6ee 0%, #fff 28%, var(--emerald) 48%, #fff 62%, #dce6ee 100%);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --radius: 4px;
  --radius-lg: 6px;
  --header-h: 56px;
  --sidebar-w: 280px;
  --page-pad: clamp(0.75rem, 2.5vw, 1.35rem);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  --focus-ring: rgba(49, 196, 141, 0.22);
}

html[data-theme='light'] {
  color-scheme: light;
  --navy: #e8eef4;
  --navy-deep: #f4f7fa;
  --navy-elevated: #ffffff;
  --steel: #4e5d6c;
  --emerald: #178a60;
  --emerald-deep: #136e4c;
  --accent: var(--emerald);
  --teal: var(--emerald);
  --teal-dark: var(--emerald-deep);
  --border: var(--line);
  --ice: #12202e;
  --diamond: #12202e;
  --white: #ffffff;
  --text: #12202e;
  --muted: #4e5d6c;
  --line: rgba(18, 32, 48, 0.14);
  --danger: #c03535;
  --on-primary: #062016;
  --bg: #eef2f6;
  --bg-2: #e4ebf2;
  --surface: #ffffff;
  --card: #ffffff;
  --panel: var(--surface);
  --input-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.94);
  --overlay: rgba(15, 23, 34, 0.42);
  --media-bg: #dce4ec;
  --hover-fill: rgba(18, 32, 48, 0.05);
  --pin-ring: #ffffff;
  --fab-bg: rgba(255, 255, 255, 0.94);
  --fab-border: rgba(18, 32, 48, 0.18);
  --atmosphere:
    radial-gradient(800px 420px at 0% 0%, color-mix(in srgb, var(--emerald) 12%, transparent), transparent 55%),
    linear-gradient(180deg, #f7f9fb, #e8eef4);
  --brand-shine: linear-gradient(105deg, #0b1420 0%, #163044 28%, var(--emerald) 48%, #0b1420 62%, #163044 100%);
  --shadow: 0 16px 40px rgba(18, 32, 48, 0.12);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
.page-title,
.hero-brand,
.brand-text strong,
.product-name,
.detail-title,
.category-card strong,
.login-card h1 {
  font-family: var(--font-display);
}

button,
input,
select,
textarea {
  font-family: var(--font-body);
  font-weight: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
a.btn,
.btn {
  touch-action: manipulation;
}

.hidden {
  display: none !important;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html[data-theme='light'] .noise {
  opacity: 0.018;
}

.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--atmosphere);
}

@keyframes brandShine {
  0%,
  100% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 0% 50%;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Login */
.login-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(0.85rem, env(safe-area-inset-top)) max(0.85rem, env(safe-area-inset-right))
    max(0.85rem, env(safe-area-inset-bottom)) max(0.85rem, env(safe-area-inset-left));
}

.login-theme {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
}

.login-card {
  width: min(400px, 100%);
  max-height: min(90vh, 820px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.25rem;
  box-shadow: var(--shadow);
  animation: fadeUp 0.4s ease both;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.login-brand img {
  width: 40px;
  height: 40px;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.login-brand strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: transparent;
  background-image: var(--brand-shine);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: brandShine 4.8s ease-in-out infinite;
}

.login-brand small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: var(--emerald);
  font-weight: 300;
}

.login-card h1 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.login-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 300;
}

.login-error,
.login-ok {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 123, 123, 0.35);
  background: rgba(255, 123, 123, 0.08);
  color: var(--danger);
  border-radius: var(--radius);
  font-size: 0.85rem;
}

.login-ok {
  border-color: color-mix(in srgb, var(--emerald) 40%, transparent);
  background: color-mix(in srgb, var(--emerald) 10%, transparent);
  color: var(--emerald);
}

.login-switch {
  margin: 1.05rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.login-switch button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--emerald);
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
}

.login-switch button:hover {
  text-decoration: underline;
}

.login-lead strong {
  color: var(--ice);
  font-weight: 600;
}

.field-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0.15rem 0 0.45rem;
}

.otp-row {
  display: flex;
  gap: clamp(0.25rem, 1.5vw, 0.4rem);
  justify-content: space-between;
  margin: 0 0 1rem;
}

.otp-row input {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: 2.85rem;
  height: 2.85rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

.otp-row input:focus {
  border-color: color-mix(in srgb, var(--emerald) 55%, transparent);
}

/* App / topbar */
html,
body {
  min-height: 100%;
  min-height: 100dvh;
}

body {
  display: flex;
  flex-direction: column;
}

.app {
  flex: 1 1 auto;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.app > .main {
  /* grow when short; never shrink below content (evita footer por cima dos cards) */
  flex: 1 0 auto;
  min-height: calc(100dvh - var(--header-h));
}

/* Landing fora do fluxo do app: não compete altura com o footer do /sistema */
.landing-screen.hidden,
#landingScreen.hidden {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-h);
  height: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: max(0px, env(safe-area-inset-top)) max(0.85rem, env(safe-area-inset-right)) 0
    max(0.85rem, env(safe-area-inset-left));
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

/* Logo do cliente (white-label): proporção livre, sem corte no quadrado. */
.brand.is-tenant .brand-logo {
  width: auto;
  height: 34px;
  max-width: 168px;
  object-fit: contain;
  border-radius: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: transparent;
  background-image: var(--brand-shine);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: brandShine 4.8s ease-in-out infinite;
}

.brand-text small {
  margin-top: 0.2rem;
  font-size: 0.52rem;
  letter-spacing: 0.26em;
  color: var(--emerald);
  font-weight: 300;
}

.top-search {
  flex: 1;
  max-width: 680px;
}

.search-panel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 1080px;
}

.main-search {
  flex: 1;
  max-width: 1080px;
  width: 100%;
}

.search-wrap .main-search {
  max-width: none;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.3rem 0.3rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.search-bar:focus-within {
  border-color: color-mix(in srgb, var(--emerald) 50%, transparent);
}

.search-icon {
  width: 16px;
  height: 16px;
  color: var(--steel);
  flex-shrink: 0;
}

.search-bar input[type='search'] {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
  padding: 0.55rem 0.25rem;
}

.btn-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--steel);
  cursor: pointer;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.btn-icon:hover {
  color: var(--emerald);
}

.btn-icon:disabled,
.btn-primary:disabled,
.btn-ghost:disabled {
  opacity: 0.55;
  cursor: wait;
}

.search-thumb {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-thumb button {
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border: 0;
  background: var(--overlay);
  color: var(--ice);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.search-loc {
  position: relative;
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  align-self: stretch;
  margin: 0 0.15rem;
}

.search-loc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  border: 0;
  background: transparent;
  color: var(--ice);
  cursor: pointer;
  padding: 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  white-space: nowrap;
  flex-shrink: 0;
}

.search-loc-btn:hover,
.search-loc-btn.is-active,
.search-loc.is-open .search-loc-btn {
  color: var(--emerald);
}

.search-loc-pin,
.search-loc-chevron {
  flex-shrink: 0;
  color: currentColor;
}

.search-loc.is-open .search-loc-chevron {
  transform: rotate(180deg);
}

.search-loc-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 46;
  min-width: 72px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--navy-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.25rem 0;
}

.search-loc-option {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ice);
  text-align: left;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.search-loc-option:hover {
  background: color-mix(in srgb, var(--emerald) 10%, transparent);
}

.search-loc-option.is-selected {
  background: var(--emerald);
  color: var(--on-primary);
}

.search-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.search-bar #searchAiBtn,
.search-bar #searchClearBtn,
.search-bar #searchSubmitBtn {
  flex-shrink: 0;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.btn-theme {
  width: 38px;
  padding: 0;
  justify-content: center;
}

/* Alternador de tema — switch deslizante (knob à esquerda = escuro, à direita = claro) */
.theme-switch {
  --switch-w: 46px;
  --switch-h: 26px;
  --switch-knob: 20px;
  --switch-pad: 2px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.theme-switch-track {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: var(--switch-w);
  height: var(--switch-h);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--input-bg);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.theme-switch:hover .theme-switch-track,
.theme-switch:focus-visible .theme-switch-track {
  border-color: color-mix(in srgb, var(--emerald) 55%, var(--line));
}

.theme-switch:focus-visible .theme-switch-track {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}

.theme-switch-knob {
  position: absolute;
  top: 50%;
  left: var(--switch-pad);
  display: grid;
  place-items: center;
  width: var(--switch-knob);
  height: var(--switch-knob);
  border-radius: 50%;
  background: var(--emerald);
  color: var(--on-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transform: translateY(-50%);
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme='light'] .theme-switch-knob {
  transform: translate(calc(var(--switch-w) - var(--switch-knob) - var(--switch-pad) * 2), -50%);
}

.theme-switch-sun,
html[data-theme='light'] .theme-switch-moon {
  display: none;
}

html[data-theme='light'] .theme-switch-sun {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .theme-switch-knob {
    transition: none;
  }
}

.theme-picker {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.theme-picker .btn.is-on {
  background: var(--emerald);
  color: var(--on-primary);
  border-color: var(--emerald);
}

.page-title {
  margin: 0;
  margin-left: 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ice);
  white-space: nowrap;
}

.topbar-actions .btn-ghost {
  text-decoration: none;
  gap: 0.4rem;
  border: 0;
  box-shadow: none;
}

.topbar-actions .topbar-logout {
  color: color-mix(in srgb, var(--danger, #e45858) 88%, var(--text) 12%);
}

.topbar-actions .topbar-logout:hover {
  color: var(--danger, #e45858);
}

.topbar-actions .btn-ghost svg {
  flex-shrink: 0;
}

.btn,
.btn-primary,
.btn-ghost,
.btn-filter,
.btn-text,
.btn-outline {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn-primary,
a.btn-primary {
  background: var(--emerald);
  color: var(--on-primary);
  border: 0;
  box-shadow: none;
  min-height: 40px;
  padding: 0 1.1rem;
}

.btn-primary:hover {
  background: var(--emerald-deep);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ice);
  min-height: 40px;
  padding: 0 0.85rem;
  gap: 0.35rem;
}

.btn-ghost:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.btn-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: color-mix(in srgb, var(--emerald) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--emerald) 28%, transparent);
  color: var(--emerald);
  min-height: 42px;
  padding: 0 1rem;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.btn-filter.is-active {
  background: var(--emerald);
  color: var(--on-primary);
  border-color: var(--emerald);
}

.btn-text {
  background: transparent;
  border: 0;
  color: var(--emerald);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  padding: 0.25rem;
}

.btn-block {
  width: 100%;
}

.btn-outline {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--emerald) 40%, transparent);
  color: var(--emerald);
  padding: 0.4rem 0.65rem;
}

.btn-outline.is-on {
  background: var(--emerald);
  color: var(--on-primary);
}

.menu-btn {
  width: 40px;
  height: 38px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ice);
}

.badge {
  display: inline-flex;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--navy-deep);
  color: var(--emerald);
  font-size: 0.65rem;
  font-weight: 700;
}

.btn-filter.is-active .badge {
  background: var(--on-primary);
  color: var(--white);
}

/* Shell / main — sem sidebar fixa */
.shell {
  display: flex;
  flex: 1;
  min-height: calc(100vh - var(--header-h));
  align-items: stretch;
}

.filters-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 45;
  height: 100%;
  height: 100dvh;
  width: min(340px, 100%);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--navy-elevated);
  border-left: 1px solid var(--line);
  transform: translateX(105%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}

.filters-drawer.is-open {
  transform: none;
}

.filters-scroll {
  flex: 1;
  overflow-y: auto;
}

.filters-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.filters-head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filters-sidebar-head h2 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.filters-foot {
  padding: 1rem;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
}

.chip-active {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.32rem 0.22rem 0.72rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--emerald) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--emerald) 40%, transparent);
  color: var(--emerald);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
}

.chip-active button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--emerald);
  cursor: pointer;
  width: 1.15rem;
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  font-size: 0.9rem;
  border-radius: 50%;
}

.chip-active button:hover {
  background: var(--emerald);
  color: var(--on-primary);
}

.filter-group {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.filter-group summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.filter-group summary::-webkit-details-marker {
  display: none;
}

.filter-group summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--steel);
  border-bottom: 1.5px solid var(--steel);
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-top: -3px;
}

.filter-group[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.filter-group > *:not(summary) {
  padding: 0 1rem 0.9rem;
}

.filter-sub {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
  font-weight: 600;
}

.filter-sub:first-of-type {
  margin-top: 0;
}

.filter-search-wrap input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.55rem;
  outline: 0;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
}

.check-list {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-right: 0.15rem;
}

.check-list::-webkit-scrollbar {
  width: 5px;
}

.check-list::-webkit-scrollbar-thumb {
  background: rgba(140, 150, 163, 0.35);
  border-radius: 4px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--ice);
}

.check-item:hover {
  background: var(--hover-fill);
}

.check-item input {
  accent-color: var(--emerald);
  flex-shrink: 0;
}

.check-item .count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.72rem;
}

.check-item[hidden],
.check-item.is-hidden {
  display: none !important;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.field span {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select {
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.6rem;
  outline: 0;
}

.field input:focus,
.field select:focus {
  border-color: color-mix(in srgb, var(--emerald) 45%, transparent);
}

.field-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.field-check input[type='checkbox'] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--emerald, #31c48d);
}

.field-check span {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
  font-weight: 400;
}

.field-check a {
  color: var(--emerald, #31c48d);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.85rem;
}

/* Main — preenche a viewport em páginas curtas; cresce com o conteúdo sem encolher */
.main {
  flex: 1 0 auto;
  min-width: 0;
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 0.85rem var(--page-pad) 1.1rem;
  min-height: calc(100dvh - var(--header-h));
  overflow: visible;
}

.main:has(#viewAdmin.is-active) {
  width: min(1480px, 100%);
}

.view {
  display: none;
  animation: fadeUp 0.3s ease both;
}

.view.is-active {
  display: block;
}

.toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.toolbar-copy {
  min-width: 0;
  flex: 1;
}

.toolbar-results-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.toolbar-results-row .results-meta {
  flex-shrink: 0;
}

.toolbar-results-row .filter-chips {
  flex: 1;
  min-width: 0;
}

.results-meta {
  margin: 0;
  color: var(--ice);
  font-weight: 500;
}

.did-you-mean {
  margin: 0.4rem 0 0;
  color: var(--ice);
  font-size: 0.95rem;
  line-height: 1.45;
}

.did-you-mean-term {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--emerald);
  font: inherit;
  font-weight: 700;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  cursor: pointer;
}

.did-you-mean-term:hover,
.did-you-mean-term:focus-visible {
  color: var(--gold, #d4a017);
}

.catalog-stats {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr));
  gap: 1rem;
  padding: 0.35rem 0.15rem 1rem;
  overflow: visible;
}

.search-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 280px;
  color: var(--muted);
}

.search-loading p {
  margin: 0;
  font-size: 0.95rem;
}

.search-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(148, 163, 184, 0.28);
  border-top-color: var(--emerald, #31c48d);
  box-sizing: border-box;
  animation: searchSpin 0.7s linear infinite;
  will-change: transform;
}

@keyframes searchSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .search-spinner {
    animation: searchPulse 1.1s ease-in-out infinite;
    border-top-color: var(--emerald, #31c48d);
  }
}

@keyframes searchPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.app.is-compact .results-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 0.85rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  transform-origin: center center;
  will-change: transform;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.22s ease;
  z-index: 3;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    border-color: color-mix(in srgb, var(--emerald) 55%, transparent);
    transform: translateY(-3px);
    z-index: 2;
    box-shadow: var(--shadow);
  }

  .product-card:hover::before {
    background: var(--emerald);
  }
}

.product-media {
  aspect-ratio: 4 / 3;
  background: var(--media-bg);
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.product-media:has(.product-no-image),
.product-media.is-empty,
.detail-media:has(.product-no-image),
.detail-media.is-empty,
.compare-slot-media:has(.product-no-image) {
  cursor: default;
}

.product-no-image {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.08s linear;
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
  user-select: none;
  filter: none;
  mix-blend-mode: normal;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-media img {
    transform: scale(1.06);
  }
}

.product-media.is-zooming img {
  transform: scale(var(--zoom-scale, 1.85));
}

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1f1f1f;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, color 0.15s ease;
}

.fav-btn svg {
  display: block;
  pointer-events: none;
}

.fav-btn:hover,
.fav-btn:focus-visible {
  transform: scale(1.07);
  outline: none;
}

.fav-btn.is-on {
  color: #e11d48;
}

.fav-btn.is-on svg path {
  fill: currentColor;
}

.card-remove-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 6;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1f1f1f;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.card-remove-btn svg {
  display: block;
  pointer-events: none;
}

.card-remove-btn:hover,
.card-remove-btn:focus-visible {
  transform: scale(1.07);
  outline: none;
  color: #fff;
  background: #e11d48;
}

.side-nav .badge,
.topbar-actions .badge {
  margin-left: 0.15rem;
}

.side-nav a .badge {
  margin-left: auto;
}

.product-body {
  padding: 0.85rem 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  background-color: var(--surface);
}

.product-supplier {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
  font-weight: 600;
}

.product-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.chip {
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(140, 150, 163, 0.08);
}

.chip-similar {
  border-color: color-mix(in srgb, var(--emerald) 45%, transparent);
  color: var(--emerald);
}

.chip-market {
  border-color: color-mix(in srgb, var(--emerald) 35%, transparent);
  color: var(--emerald);
}

.product-price {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.95rem;
}

.product-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.55rem;
  align-items: stretch;
}

.product-actions button,
.product-actions a {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 2.35rem;
  min-height: 2.35rem;
  padding: 0 0.45rem;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  text-align: center;
}

.product-actions .btn-ghost,
.product-actions .btn-outline,
.product-actions .btn-primary,
.product-actions a.btn-primary {
  height: 2.35rem;
  min-height: 2.35rem;
  padding: 0 0.45rem;
}

.product-actions .btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.app.is-compact .product-actions {
  gap: 0.4rem;
}

.app.is-compact .product-actions button,
.app.is-compact .product-actions a {
  font-size: 0.6rem;
  letter-spacing: 0.035em;
  padding: 0 0.32rem;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1.25rem;
}

.pagination button {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ice);
  min-width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.pagination button.is-active {
  background: var(--emerald);
  color: var(--on-primary);
  border-color: var(--emerald);
  font-weight: 700;
}

.empty,
.idle {
  padding: 0.5rem 0 2rem;
  color: var(--muted);
}

.empty-hint {
  margin: 0.35rem 0 0.9rem;
  max-width: 42rem;
}

#emptyAiBtn {
  margin-top: 0.35rem;
}

.web-links {
  margin: 0.25rem 0 1.5rem;
}

.web-links-title {
  margin: 0 0 0.65rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
  font-weight: 600;
}

.web-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 0.75rem;
}

.web-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  min-height: 7.5rem;
}

.web-card:hover {
  border-color: color-mix(in srgb, var(--emerald) 50%, transparent);
}

.web-card-fonte {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald);
  font-weight: 600;
}

.web-card strong {
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ice);
}

.web-card small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.idle-head {
  margin-bottom: 1.25rem;
}

.idle-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 500;
  color: var(--ice);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
  gap: 0.85rem;
}

.category-card {
  appearance: none;
  border: 1px solid var(--line);
  border-top: 2px solid color-mix(in srgb, var(--emerald) 45%, transparent);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--emerald) 8%, transparent), transparent 42%),
    var(--card);
  border-radius: var(--radius);
  padding: 1.15rem 1rem 1rem;
  text-align: left;
  cursor: pointer;
  color: var(--ice);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 148px;
  transition: border-color 0.18s, transform 0.18s, background 0.18s;
  position: relative;
  overflow: hidden;
}

.category-card::after {
  content: '';
  position: absolute;
  inset: auto -20% -40% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--emerald) 12%, transparent), transparent 70%);
  pointer-events: none;
}

.category-card:hover {
  border-color: color-mix(in srgb, var(--emerald) 55%, transparent);
  transform: translateY(-2px);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--emerald) 14%, transparent), transparent 45%),
    var(--card);
}

.category-card:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}

.category-icon {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--emerald) 28%, transparent);
  background: var(--input-bg);
  display: grid;
  place-items: center;
  color: var(--emerald);
}

.category-icon svg {
  width: 22px;
  height: 22px;
}

.category-card strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.category-card span {
  margin-top: auto;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.home-lead {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 42rem;
  line-height: 1.45;
}

.idle-head .btn {
  margin-top: 1rem;
}

.trail-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.7rem;
  min-height: 2rem;
}

.trail-back {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ice);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.trail-back:hover {
  border-color: color-mix(in srgb, var(--emerald) 55%, transparent);
  color: var(--emerald);
}

.trail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  min-width: 0;
}

.trail-list a {
  color: var(--muted);
  text-decoration: none;
}

.trail-list a:hover {
  color: var(--emerald);
}

.trail-sep {
  color: var(--muted);
  opacity: 0.5;
  user-select: none;
}

.trail-current span {
  color: var(--ice);
  font-weight: 600;
}

.category-card.is-all {
  border-color: color-mix(in srgb, var(--emerald) 40%, transparent);
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.page-head h2,
.page-panel h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.page-head-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}

.page-head-actions .results-meta {
  margin: 0;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--emerald);
  font-weight: 600;
}

.page-panel {
  max-width: 560px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.settings-field {
  max-width: 280px;
  width: 100%;
  margin-top: 1rem;
}

.profile-dl {
  margin: 1.25rem 0 0;
}

.profile-form {
  margin-top: 1.15rem;
}

.profile-avatar-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.profile-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--emerald) 15%, transparent);
  color: var(--emerald);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.45rem;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-avatar-preview.has-photo {
  background: transparent;
  color: transparent;
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-actions {
  min-width: 0;
  flex: 1;
}

.profile-avatar-label {
  margin: 0 0 0.2rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.profile-avatar-block .profile-hint {
  margin-bottom: 0.55rem;
}

.profile-avatar-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.profile-hint {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.profile-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

#viewProfile .home-lead {
  margin: 0.35rem 0 0;
}

.profile-dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.profile-dl dt {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-dl dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
  text-align: right;
}

/* Compare — mesmo grid de 4 colunas p/ cards e specs */
.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.compare-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.compare-board {
  display: grid;
  grid-template-columns: 7rem repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0;
  align-items: stretch;
  padding-bottom: 0.85rem;
}

.compare-board-label {
  /* espaçador alinhado à coluna "Campo" */
  min-height: 1px;
}

.compare-slot {
  position: relative;
  min-height: 220px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.compare-slot.is-empty {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--emerald) 35%, transparent);
  background: color-mix(in srgb, var(--emerald) 4%, transparent);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--emerald);
  gap: 0.45rem;
  transition: background 0.15s, border-color 0.15s;
}

.compare-slot.is-empty:hover {
  background: color-mix(in srgb, var(--emerald) 10%, transparent);
  border-color: var(--emerald);
}

.compare-slot.is-empty .plus {
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 300;
}

.compare-slot.is-empty span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.compare-slot-remove {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 7;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ice);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.compare-slot-remove:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.compare-slot-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--media-bg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.compare-slot .fav-btn,
.compare-slot .quote-btn {
  width: 32px;
  height: 32px;
  top: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}

.compare-slot .fav-btn {
  right: auto;
  left: 8px;
}

.compare-slot .quote-btn {
  right: auto;
  left: 46px;
}

.compare-slot-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.compare-slot-body {
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.compare-slot-body .product-name {
  font-size: 0.82rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.compare-table {
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--card);
  overflow: hidden;
}

.compare-table:empty {
  display: none;
}

.compare-specs {
  display: flex;
  flex-direction: column;
}

.compare-row {
  display: grid;
  grid-template-columns: 7rem repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

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

.compare-row-label {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.35rem 0 0.85rem;
  font-weight: 500;
}

.compare-cell {
  min-width: 0;
  padding: 0.1rem 0.55rem;
  font-size: 0.85rem;
  color: var(--ice);
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.compare-cell.is-empty {
  color: var(--muted);
  opacity: 0.45;
}

.compare-row--diff .compare-row-label {
  color: var(--ice);
}

.compare-cell--diff {
  background: color-mix(in srgb, var(--accent, #3d8bfd) 14%, transparent);
  border-radius: 4px;
  outline: 1px solid color-mix(in srgb, var(--accent, #3d8bfd) 35%, transparent);
}

.compare-row--tech .compare-row-label {
  font-weight: 600;
}

.compare-cell--tech {
  font-variant-numeric: tabular-nums;
  font-weight: 560;
}

.compare-diff-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg, #0b1220);
  background: var(--accent, #3d8bfd);
  vertical-align: middle;
  font-weight: 650;
}

.compare-empty {
  padding: 1.5rem;
  color: var(--muted);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--overlay);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-card {
  width: min(640px, 100%);
  max-height: min(80vh, 720px);
  background: var(--navy-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeUp 0.25s ease both;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.modal-search {
  margin: 0.9rem 1.1rem 0.4rem;
}

.modal-meta {
  margin: 0 1.1rem 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.modal-did-you-mean {
  margin: 0 1.1rem 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.modal-did-you-mean .did-you-mean-term {
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
}

.modal-results {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 0.65rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Evita que os cards encolham e virem faixas vazias dentro do modal flex. */
.modal-results .product-card {
  flex: 0 0 auto;
  width: 100%;
  align-self: stretch;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.55rem;
  align-items: start;
}

.modal-results .product-card .product-media {
  width: 92px;
  height: 92px;
  min-width: 92px;
  min-height: 92px;
  max-height: none;
  aspect-ratio: unset;
  border-radius: calc(var(--radius) - 2px);
  cursor: default;
}

.modal-results .product-card .product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-results .product-card .product-body {
  padding: 0;
  min-width: 0;
}

.modal-results .product-card .product-name {
  font-size: 0.88rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.modal-results .product-card .product-meta {
  margin-top: 0.25rem;
}

.modal-results .product-card .product-price {
  margin-top: 0.35rem;
}

.modal-results .product-card .product-actions {
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.modal-results .product-card:hover {
  transform: none;
}

.modal-pagination {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem 0.85rem;
  border-top: 1px solid var(--line);
  background: var(--navy-elevated);
}

.modal-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--hover-fill);
}

.modal-row img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: var(--media-bg);
  border-radius: var(--radius);
}

.modal-row strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
}

.modal-row small {
  color: var(--muted);
  font-size: 0.75rem;
}

/* Menu / drawers / overlays */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--overlay);
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 45;
  height: 100%;
  height: 100dvh;
  width: min(320px, 100%);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--navy-elevated);
  border-right: 1px solid var(--line);
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}

.side-menu.is-open {
  transform: none;
}

.side-menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.side-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.side-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--emerald) 15%, transparent);
  color: var(--emerald);
  display: grid;
  place-items: center;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.side-avatar.has-photo {
  background: transparent;
  color: transparent;
  padding: 0;
}

.side-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.side-user strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.side-user small {
  color: var(--muted);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.side-nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
}

.side-nav a,
.side-nav button {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  color: var(--ice);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
}

.side-nav svg {
  flex-shrink: 0;
  color: currentColor;
}

.side-nav a:hover,
.side-nav button:hover {
  background: var(--hover-fill);
}

.side-nav a.is-active {
  background: color-mix(in srgb, var(--emerald) 12%, transparent);
  color: var(--emerald);
}

.side-nav button.is-danger {
  color: var(--danger);
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
  border-radius: 0;
  width: 100%;
  justify-content: flex-start;
}

.drawer-close {
  border: 0;
  background: transparent;
  color: var(--ice);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
}

/* Detail modal — centralizado, duas colunas */
.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--overlay);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.detail-card {
  position: relative;
  width: min(980px, 100%);
  max-height: min(88vh, 860px);
  background: var(--navy-elevated);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: fadeUp 0.28s ease both;
}

.detail-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}

.detail-close:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.detail-body {
  max-height: min(88vh, 860px);
  overflow-y: auto;
  padding: 1.5rem 1.5rem 1.35rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.2fr;
  gap: 1.5rem;
  align-items: start;
}

.detail-gallery {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.detail-media {
  aspect-ratio: 1;
  background: var(--media-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: zoom-in;
  position: relative;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.08s linear;
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

.detail-media.is-zooming img {
  transform: scale(var(--zoom-scale, 2));
}

.detail-thumbs {
  display: flex;
  gap: 0.45rem;
}

.detail-thumb {
  flex: 1;
  aspect-ratio: 1.4;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--media-bg);
}

.detail-info {
  min-width: 0;
  padding-right: 1.5rem;
}

.detail-category {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.detail-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--emerald);
  letter-spacing: 0.01em;
}

.detail-sub {
  margin: 0 0 0.85rem;
  color: var(--steel);
  font-size: 0.88rem;
}

.detail-price {
  margin: 0 0 1.15rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ice);
}

.detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.detail-spec {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.detail-spec dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.detail-spec dd {
  margin: 0;
  color: var(--ice);
  font-size: 0.88rem;
  font-weight: 500;
  word-break: break-word;
}

.detail-section {
  margin-bottom: 1.1rem;
}

.detail-section h3 {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald);
}

.detail-section p {
  margin: 0;
  color: var(--steel);
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.detail-actions .btn-primary,
.detail-actions .btn-outline,
.detail-actions .btn-ghost,
.detail-actions a.btn-primary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  text-decoration: none;
}

.suggest-box {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  background: var(--navy-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-height: 360px;
  overflow-y: auto;
  padding: 0.4rem 0;
}

.suggest-label {
  margin: 0.35rem 0.85rem 0.2rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
  font-weight: 600;
}

.suggest-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ice);
  text-align: left;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
}

.suggest-item small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
}

.suggest-item:hover {
  background: color-mix(in srgb, var(--emerald) 10%, transparent);
}

.detail-locs {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--steel);
  font-size: 0.88rem;
}

.detail-locs li + li {
  margin-top: 0.3rem;
}

.map-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(5, minmax(110px, 1fr)) auto;
  gap: 0.65rem 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
  overflow: visible;
  position: relative;
  z-index: 40;
}

.map-q {
  position: relative;
  z-index: 8;
  margin-bottom: 0;
}

.map-suggest.suggest-box {
  background: var(--card);
  box-shadow: var(--shadow);
}

.map-suggest .suggest-item {
  color: var(--text);
}

.map-suggest .suggest-item.is-active,
.map-suggest .suggest-item:hover {
  background: color-mix(in srgb, var(--emerald) 12%, transparent);
}

.map-suggest-empty {
  margin: 0;
  padding: 0.65rem 0.85rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.map-filter-actions {
  display: flex;
  gap: 0.4rem;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 1rem;
  min-height: calc(100dvh - 240px);
}

.map-stage {
  display: grid;
  grid-template-columns: 1fr minmax(10.5rem, 12rem);
  gap: 0.75rem;
  min-height: inherit;
  min-width: 0;
}

.map-legend {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 0.75rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
}

.map-legend-title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.map-legend ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.map-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text);
}

.map-list {
  overflow-y: auto;
  max-height: calc(100dvh - 240px);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-right: 0.2rem;
}

.map-canvas {
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}

.map-empty {
  color: var(--muted);
  padding: 1rem 0.2rem;
}

.supplier-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem;
  cursor: pointer;
}

.supplier-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.supplier-card strong {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

.supplier-place,
.supplier-meta {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.supplier-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.supplier-card.is-active {
  border-color: color-mix(in srgb, var(--emerald) 55%, transparent);
  background: color-mix(in srgb, var(--emerald) 8%, transparent);
}

.lequify-pin {
  background: transparent;
  border: 0;
}

.lequify-pin-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--pin-ring);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.lequify-pin-dot.is-fabricante {
  background: var(--pin-fabricante);
}

.lequify-pin-dot.is-distribuidor {
  background: var(--pin-distribuidor);
}

.lequify-pin-dot.is-fornecedor {
  background: var(--pin-fornecedor);
}

.leaflet-container {
  background: var(--bg-2);
  font-family: var(--font-body);
  color: var(--text);
}

.leaflet-container img,
.leaflet-tile {
  max-width: none !important;
}

.leaflet-control-zoom a {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}

.leaflet-control-zoom a:hover {
  background: var(--hover-fill) !important;
  color: var(--emerald) !important;
}

.leaflet-control-attribution {
  background: var(--surface) !important;
  color: var(--muted) !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #ffffff !important;
  color: #12202e !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.leaflet-popup-content {
  margin: 0.75rem 0.85rem;
  font-family: var(--font-body);
  color: #12202e !important;
}

.leaflet-popup-close-button {
  color: #12202e !important;
}

.leaflet-popup-close-button:hover {
  color: var(--emerald) !important;
}

.map-popup,
.map-popup strong {
  color: #12202e;
}

.map-popup strong {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.map-popup p {
  margin: 0.15rem 0;
  color: #3d4a57;
  font-size: 0.8rem;
}

.map-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.map-popup-actions .btn-xs {
  margin-top: 0;
}

.map-popup-actions a.btn-ghost {
  border: 1px solid #c5ced6;
  color: #12202e;
  background: #fff;
  text-decoration: none;
}

.map-popup-actions a.btn-ghost:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.btn-xs {
  min-height: 32px;
  padding: 0 0.7rem;
  font-size: 0.75rem;
}

.scroll-fabs {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.scroll-fab {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--fab-border);
  background: var(--fab-bg);
  color: var(--ice);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  backdrop-filter: blur(10px);
}

.scroll-fab:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.scroll-fab:disabled {
  opacity: 0.32;
  cursor: default;
  pointer-events: none;
}

.toast {
  position: fixed;
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  background: var(--emerald);
  color: var(--on-primary);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: calc(100vw - 2rem);
  text-align: center;
}

/* ——— Responsivo ——— */
@media (max-width: 1100px) {
  .topbar-label {
    display: none;
  }

  .topbar-actions {
    gap: 0.2rem;
  }

  .topbar-actions .btn-ghost {
    position: relative;
    padding: 0;
    width: 38px;
    min-width: 38px;
  }

  .map-filters {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .map-q {
    grid-column: 1 / -1;
  }

  .map-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .map-stage {
    grid-template-columns: 1fr;
  }

  .map-legend {
    position: static;
    order: -1;
  }

  .map-legend ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
  }

  .map-list {
    max-height: 280px;
  }

  .map-canvas {
    min-height: 360px;
    height: min(52vh, 520px);
  }

  .compare-board,
  .compare-row {
    grid-template-columns: 5.5rem repeat(6, minmax(140px, 1fr));
    gap: 0.5rem;
    width: max(100%, 64rem);
  }
}

@media (max-width: 900px) {
  .page-title {
    display: none;
  }

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

  .search-wrap,
  .main-search {
    max-width: none;
  }

  .btn-filter {
    width: 100%;
    justify-content: center;
  }

  .brand-text small {
    display: none;
  }

  .topbar {
    padding-top: max(0.45rem, env(safe-area-inset-top));
    padding-bottom: 0.45rem;
  }

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

  .page-head-actions {
    width: 100%;
  }

  .page-head-actions .btn {
    flex: 1;
  }

  .toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .map-filters {
    grid-template-columns: 1fr 1fr;
  }

  .map-filter-actions {
    grid-column: 1 / -1;
  }

  .map-filter-actions .btn {
    flex: 1;
  }

  .trail-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 840px) {
  .main-search {
    flex-wrap: wrap;
    padding: 0.45rem;
    gap: 0.35rem;
  }

  .search-bar input[type='search'] {
    flex: 1 1 8rem;
    min-width: 0;
  }

  .search-actions {
    flex: 1 1 100%;
    justify-content: stretch;
    padding-top: 0.35rem;
    border-top: 1px solid var(--line);
  }

  .search-actions .btn {
    flex: 1;
    min-height: 42px;
  }

  .topbar-label {
    display: none;
  }

  .topbar-actions {
    gap: 0.15rem;
  }

  .topbar-actions .btn-ghost {
    position: relative;
    padding: 0;
    width: 40px;
    min-width: 40px;
  }

  .topbar-actions .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    margin: 0;
  }
}

@media (max-width: 720px) {
  .detail-modal {
    padding: 0;
    place-items: stretch;
  }

  .detail-card {
    width: 100%;
    max-height: none;
    height: 100%;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  .detail-body {
    max-height: none;
    height: 100%;
    padding: 1.1rem var(--page-pad) 1.5rem;
  }

  .detail-close {
    top: max(0.5rem, env(safe-area-inset-top));
  }

  .filters-drawer {
    width: 100%;
  }

  .modal {
    padding: 0;
    place-items: stretch;
  }

  .modal-card {
    width: 100%;
    max-height: none;
    height: 100%;
    height: 100dvh;
    border-radius: 0;
  }

  .modal-search {
    flex-wrap: wrap;
  }

  .modal-search .btn {
    flex: 1 1 100%;
  }

  .modal-row {
    grid-template-columns: 48px 1fr;
  }

  .modal-row > button {
    grid-column: 1 / -1;
  }

  .suggest-box {
    max-height: min(50vh, 280px);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .login-card {
    padding: 1.35rem 1.1rem;
  }

  .page-panel {
    padding: 1.15rem;
  }

  .profile-dl > div {
    flex-direction: column;
    gap: 0.2rem;
  }

  .profile-dl dd {
    text-align: left;
  }

  .product-actions {
    grid-template-columns: 1fr 1fr;
  }

  .product-actions .btn-primary,
  .product-actions a.btn-primary {
    grid-column: 1 / -1;
  }

  .map-filters {
    grid-template-columns: 1fr;
  }

  .map-canvas {
    min-height: 280px;
    height: 42vh;
  }

  .category-card,
  .kit-card {
    min-height: 128px;
    padding: 0.95rem 0.85rem;
  }

  .scroll-fabs {
    bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .compare-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .compare-board-label {
    display: none;
  }

  .compare-slot {
    min-height: 180px;
  }

  .compare-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    padding: 0.75rem var(--page-pad);
  }

  .compare-row-label {
    display: block;
    padding: 0;
    color: var(--emerald);
  }

  .compare-cell.is-empty {
    display: none;
  }

  .compare-table {
    overflow: visible;
  }

  .supplier-actions {
    flex-wrap: wrap;
  }

  .supplier-actions .btn {
    flex: 1;
  }
}

@media (max-width: 400px) {
  .brand-text {
    display: none;
  }

  .otp-row input {
    height: 2.6rem;
    font-size: 1.05rem;
  }

  .search-loc-btn {
    padding: 0 0.4rem;
  }

  .search-loc-chevron {
    display: none;
  }
}

@media (max-width: 800px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-gallery {
    position: static;
  }

  .detail-media {
    max-height: 280px;
  }

  .detail-thumbs {
    display: none;
  }

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

  .detail-info {
    padding-right: 0;
  }

  .detail-body {
    padding: 1.15rem var(--page-pad) 1.5rem;
  }

  .detail-actions .btn-primary,
  .detail-actions .btn-outline,
  .detail-actions .btn-ghost,
  .detail-actions a.btn-primary {
    flex: 1 1 calc(50% - 0.5rem);
  }
}

.is-role-hidden {
  display: none !important;
}

.search-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.chip-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ice);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.chip-btn:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.idle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.quote-btn {
  position: absolute;
  top: 10px;
  right: 52px;
  z-index: 6;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1f1f1f;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.quote-btn.is-on {
  color: #0f766e;
}

.quote-btn.is-on svg path {
  stroke: currentColor;
}

.detail-ca-note {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.detail-ca-note a {
  color: var(--emerald);
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
  gap: 0.85rem;
}

.kit-scope-hint {
  grid-column: 1 / -1;
  margin: 0 0 0.15rem;
}

.kit-card {
  appearance: none;
  text-align: left;
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--emerald) 8%, transparent), transparent 42%),
    var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid color-mix(in srgb, var(--emerald) 45%, transparent);
  border-radius: var(--radius);
  padding: 1.15rem 1rem 1rem;
  color: var(--ice);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 148px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s, background 0.18s;
}

.kit-card::after {
  content: '';
  position: absolute;
  inset: auto -20% -40% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--emerald) 12%, transparent), transparent 70%);
  pointer-events: none;
}

.kit-card:hover {
  border-color: color-mix(in srgb, var(--emerald) 55%, transparent);
  transform: translateY(-2px);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--emerald) 14%, transparent), transparent 45%),
    var(--card);
}

.kit-card:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}

.kit-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--emerald) 28%, transparent);
  background: var(--input-bg);
  color: var(--emerald);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.kit-card-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.kit-card .eyebrow {
  margin: 0;
  position: relative;
  z-index: 1;
}

.kit-card strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

.kit-card span {
  margin-top: auto;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

.kit-slots {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.kit-slot header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 0.7rem;
}

.kit-slot h3 {
  margin: 0;
  font-size: 1.02rem;
}

.kit-slot header p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.kit-equivalents {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0.55rem;
  text-align: left;
  vertical-align: middle;
}

.quote-table-wrap {
  overflow-x: auto;
}

.quote-product {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.quote-product img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--hover-fill);
}

.quote-product small {
  display: block;
  color: var(--muted);
}

.quote-row-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-end;
  white-space: nowrap;
}

.qty-input {
  width: 4.2rem;
  padding: 0.35rem 0.4rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: inherit;
}

.quote-summary {
  margin: 1rem 0 0;
  margin-left: auto;
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.quote-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.quote-summary-total {
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
}

.quote-summary-total strong {
  color: var(--emerald);
}

.quote-freight-field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
}

.quote-freight-input {
  width: 5.5rem;
  padding: 0.35rem 0.4rem;
  text-align: right;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
}

.quote-freight-input:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 1px;
}

.quote-summary-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.quote-msg-teaser {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: color-mix(in srgb, var(--card) 88%, var(--emerald));
}

.quote-msg-teaser h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.quote-msg-teaser p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 48rem;
}

.quote-msg-shell {
  min-height: min(68vh, 720px);
}

.quote-msg-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--card);
  min-height: min(68vh, 720px);
}

.quote-msg-list-pane {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 92%, var(--bg));
  min-height: 0;
}

.quote-msg-toolbar {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.quote-msg-search {
  margin: 0;
}

.quote-msg-search input {
  width: 100%;
}

.quote-msg-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.quote-msg-filters .btn.is-active {
  background: color-mix(in srgb, var(--emerald) 18%, var(--card));
  color: var(--text);
}

.quote-msg-list {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem;
}

.quote-msg-avatar {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--emerald) 18%, var(--card));
  color: var(--emerald);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.quote-msg-avatar.is-lg {
  width: 2.85rem;
  height: 2.85rem;
  font-size: 0.85rem;
}

.quote-msg-item {
  appearance: none;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  padding: 0.7rem 0.65rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
}

.quote-msg-item:hover,
.quote-msg-item:focus-visible {
  background: var(--hover-fill);
  outline: none;
}

.quote-msg-item.is-active {
  border-color: color-mix(in srgb, var(--emerald) 45%, var(--line));
  background: color-mix(in srgb, var(--emerald) 12%, var(--card));
}

.quote-msg-item.is-unread {
  box-shadow: inset 3px 0 0 var(--emerald);
}

.quote-msg-item.is-unread .quote-msg-avatar {
  background: var(--emerald);
  color: var(--on-primary);
}

.quote-msg-item-body {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.quote-msg-item-top,
.quote-msg-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.quote-msg-item-top strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-msg-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quote-msg-item small {
  color: var(--muted);
  font-size: 0.72rem;
  flex-shrink: 0;
}

.quote-msg-empty-icon {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--emerald) 14%, var(--card));
  font-size: 1.35rem;
}

.quote-msg-waiting {
  margin: auto 0;
  padding: 1.15rem 1.2rem;
  border: 1px dashed color-mix(in srgb, var(--emerald) 40%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--emerald) 8%, var(--card));
  text-align: center;
}

.quote-msg-waiting strong {
  display: block;
  margin-bottom: 0.35rem;
}

.quote-msg-waiting p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.quote-msg-pane-title {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  min-width: 0;
}

.quote-msg-status {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quote-msg-status.is-nao_lida {
  color: var(--emerald);
}

.quote-msg-status.is-respondida {
  color: var(--text);
}

.quote-msg-status.is-aguardando {
  color: var(--muted);
}

.quote-msg-empty-list,
.quote-msg-pane-empty {
  display: grid;
  place-content: center;
  gap: 0.75rem;
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
}

.quote-msg-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--card);
}

.quote-msg-pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.quote-msg-pane-title {
  min-width: 0;
  flex: 1 1 180px;
}

.quote-msg-pane-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.quote-msg-pane-actions .quote-msg-delete {
  color: var(--danger, #b42318);
  border-color: color-mix(in srgb, var(--danger, #b42318) 35%, var(--line));
}

.quote-msg-pane-actions .quote-msg-delete:hover {
  background: color-mix(in srgb, var(--danger, #b42318) 12%, transparent);
}

.quote-msg-item-wrap {
  position: relative;
  display: grid;
}

.quote-msg-item-wrap .quote-msg-item {
  width: 100%;
  padding-right: 2.4rem;
}

.quote-msg-item-delete {
  position: absolute;
  top: 0.55rem;
  right: 0.45rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  line-height: 1;
  cursor: pointer;
}

.quote-msg-item-delete svg {
  display: block;
  flex-shrink: 0;
}

.quote-msg-item-wrap:hover .quote-msg-item-delete,
.quote-msg-item-wrap.is-active .quote-msg-item-delete {
  color: var(--danger, #b42318);
  background: color-mix(in srgb, var(--danger, #b42318) 10%, transparent);
}

.quote-msg-item-delete:hover {
  color: #fff;
  background: var(--danger, #b42318);
}

.quote-msg-pane-head h3 {
  margin: 0.15rem 0 0.2rem;
}

.quote-msg-lines {
  margin: 0;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 90%, var(--bg));
}

.quote-msg-lines summary {
  cursor: pointer;
  font-weight: 600;
}

.quote-msg-lines ul {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.quote-msg-stream {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.1rem 1.25rem;
}

.quote-msg-bubble {
  max-width: min(100%, 560px);
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.quote-msg-bubble.is-out {
  align-self: flex-end;
  background: color-mix(in srgb, var(--emerald) 14%, var(--card));
  border-color: color-mix(in srgb, var(--emerald) 35%, var(--line));
  border-bottom-right-radius: 6px;
}

.quote-msg-bubble.is-in {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}

.quote-msg-bubble header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.quote-msg-bubble header .quote-msg-avatar {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.62rem;
}

.quote-msg-bubble header div {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.quote-msg-bubble header strong {
  color: var(--text);
}

.quote-msg-subject,
.quote-msg-amount {
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.quote-msg-text {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 0.92rem;
}

.quote-msg-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.quote-msg-composer {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 1.1rem 1rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 92%, var(--bg));
}

.quote-msg-composer textarea {
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: var(--surface, var(--card));
  color: var(--text);
  font: inherit;
}

.quote-msg-composer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.quote-msg-amount-field {
  flex: 1 1 9rem;
  margin: 0;
}

.quote-msg-amount-field input {
  width: 100%;
  min-height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  background: var(--surface, var(--card));
  color: var(--text);
  font: inherit;
}

.quote-msg-attach {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.quote-msg-attach input[type='file'] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.quote-msg-composer .btn-primary {
  margin-left: auto;
}

.topbar-notif.has-unread .badge,
.topbar-notif .badge:not(.hidden) {
  display: inline-flex;
  background: var(--emerald);
  color: var(--navy-deep, #0b1420);
}

@media (max-width: 900px) {
  .quote-msg-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .quote-msg-list-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 42vh;
  }

  .quote-msg-layout.has-thread .quote-msg-list-pane {
    max-height: 34vh;
  }

  .quote-msg-pane {
    min-height: 48vh;
  }
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.history-item {
  appearance: none;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: inherit;
  cursor: pointer;
}

.history-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.history-panel-title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.history-item--actions {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0;
  cursor: default;
}

.history-item-main {
  appearance: none;
  flex: 1;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0.85rem 1rem;
}

.history-item-remove,
.history-item-save {
  align-self: stretch;
  min-width: 2.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.history-item.is-alert-hit {
  border-color: color-mix(in srgb, var(--accent, #3d8bfd) 55%, var(--line));
  box-shadow: inset 3px 0 0 var(--accent, #3d8bfd);
}

.history-item small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

.ingest-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.ingest-stats > div,
.admin-kpi {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1rem 1rem 0.95rem;
  overflow: hidden;
}

.admin-kpi::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: color-mix(in srgb, var(--emerald) 70%, transparent);
}

.ingest-stats strong,
.admin-kpi strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.ingest-stats span,
.admin-kpi span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-kpi small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.74rem;
  opacity: 0.95;
}

/* —— Admin shell: sidebar + workspace —— */
#viewAdmin.admin-shell {
  display: none;
}

#viewAdmin.admin-shell.is-active {
  display: grid;
  grid-template-columns: minmax(200px, 232px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  min-height: calc(100dvh - var(--header-h) - 2rem);
}

.admin-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 0.65rem);
  align-self: start;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: color-mix(in srgb, var(--card) 88%, var(--bg));
  padding: 1rem 0.85rem 1.1rem;
  max-height: calc(100dvh - var(--header-h) - 1.4rem);
  overflow: auto;
}

.admin-sidebar-head {
  padding: 0.15rem 0.55rem 0.95rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.75rem;
}

.admin-sidebar-head .eyebrow {
  margin: 0 0 0.2rem;
}

.admin-sidebar-head h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-nav-label {
  margin: 0.85rem 0.55rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-nav-label:first-child {
  margin-top: 0.15rem;
}

.admin-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: calc(var(--radius) + 2px);
  padding: 0.52rem 0.65rem;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.admin-nav a:hover {
  color: var(--ice);
  background: color-mix(in srgb, var(--emerald) 8%, transparent);
}

.admin-nav a.is-active {
  color: var(--ice);
  border-color: color-mix(in srgb, var(--emerald) 45%, var(--line));
  background: color-mix(in srgb, var(--emerald) 14%, transparent);
}

.admin-workspace {
  min-width: 0;
}

.admin-body {
  min-width: 0;
}

.admin-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.15rem;
}

.admin-section-head h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.admin-section-lead {
  margin: 0.35rem 0 0;
  max-width: 52rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.admin-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.admin-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-kpi-grid.is-compact {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.admin-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
}

.admin-quick-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--card);
  padding: 0.85rem 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-quick-link:hover {
  border-color: color-mix(in srgb, var(--emerald) 50%, var(--line));
  background: color-mix(in srgb, var(--emerald) 8%, var(--card));
}

.admin-quick-link strong {
  font-size: 0.9rem;
}

.admin-quick-link span {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.admin-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin-bottom: 0.25rem;
}

.admin-export-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-bar strong em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.78em;
  margin-left: 0.2rem;
}

.admin-coverage {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px dashed color-mix(in srgb, var(--line) 80%, var(--emerald));
  border-radius: calc(var(--radius) + 2px);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* legacy pill tabs kept for safety if markup reappears */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.15rem;
  position: sticky;
  top: calc(var(--header-h) + 0.35rem);
  z-index: 6;
  padding: 0.45rem 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
}

.admin-tabs a {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-tabs a.is-active {
  color: var(--ice);
  border-color: var(--emerald);
  background: color-mix(in srgb, var(--emerald) 12%, transparent);
}

.admin-tab-badge {
  background: color-mix(in srgb, #f59e0b 22%, var(--navy-deep));
  color: #fbbf24;
  border: 1px solid color-mix(in srgb, #f59e0b 45%, transparent);
  font-size: 0.68rem;
  min-width: 1.35rem;
  justify-content: center;
}

.admin-nav a.is-active .admin-tab-badge,
.admin-tabs a.is-active .admin-tab-badge {
  background: color-mix(in srgb, #f59e0b 35%, transparent);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem;
}

.admin-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1rem 1.05rem 1.1rem;
}

.admin-card > h3,
.admin-card > .admin-card-title,
.admin-sub {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.admin-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.admin-card-head h3 {
  margin: 0;
  font-size: 0.98rem;
}

.admin-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-bars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.admin-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.8rem;
}

.admin-bar-track {
  height: 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 80%, transparent);
  overflow: hidden;
}

html[data-theme='light'] .admin-bar-track {
  background: color-mix(in srgb, var(--line) 65%, #fff);
}

.admin-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--emerald) 70%, #0f766e), var(--emerald));
}

@media (max-width: 980px) {
  #viewAdmin.admin-shell.is-active {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .admin-sidebar {
    position: static;
    max-height: none;
    padding: 0.85rem 0.75rem;
  }

  .admin-sidebar-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.7rem;
  }

  .admin-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.35rem;
  }

  .admin-nav-label {
    grid-column: 1 / -1;
    margin: 0.55rem 0.2rem 0.15rem;
  }

  .admin-nav-label:first-child {
    margin-top: 0;
  }

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

  .admin-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }

  .admin-bar {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .admin-bar-track {
    order: 3;
  }
}

.ingest-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.ingest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ingest-list-scroll {
  max-height: min(42vh, 320px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0 0.75rem;
}

.ingest-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.ingest-list-scroll li:last-child {
  border-bottom: 0;
}

.market-ingest {
  margin-top: 1.75rem;
}

.market-ingest h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.market-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0 1rem;
  flex-wrap: wrap;
}

.scrape-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}
.scrape-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
}
.scrape-badge.is-on {
  color: #0b6b4a;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}
.scrape-badge.is-off {
  color: #8a4b12;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}
.scrape-hint {
  margin: 0.4rem 0 0.9rem;
}
.scrape-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

/* —— Ingestão (layout moderno) —— */
.ingest-page {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 1100px;
}
.ingest-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}
.ingest-title {
  margin: 0.15rem 0 0.4rem;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ice);
}
.ingest-lead {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 300;
}
.ingest-status-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}
.ingest-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
}
.ingest-pill.is-on {
  color: var(--emerald);
  border-color: color-mix(in srgb, var(--emerald) 40%, transparent);
  background: color-mix(in srgb, var(--emerald) 10%, transparent);
}
.ingest-pill.is-off,
.ingest-pill.is-warn {
  color: #d97706;
  border-color: color-mix(in srgb, #d97706 35%, transparent);
  background: color-mix(in srgb, #d97706 10%, transparent);
}
.ingest-pill.is-muted {
  color: var(--muted);
}
.ingest-banner {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--emerald);
  border-radius: var(--radius);
  font-size: 0.84rem;
  color: var(--muted);
  background: var(--card);
}
.ingest-banner.is-warn {
  border-left-color: #d97706;
}
.ingest-banner.is-info {
  border-left-color: var(--emerald);
}
.ingest-live {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ingest-live.is-busy {
  border-color: color-mix(in srgb, var(--emerald) 45%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--emerald) 12%, transparent);
}
.ingest-live-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.ingest-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald);
}
.ingest-live-status {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ice);
}
.ingest-live-progress,
.ingest-live-queue {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.ingest-live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ingest-log-wrap {
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
}
.ingest-log-wrap summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  list-style: none;
}
.ingest-log-wrap summary::-webkit-details-marker {
  display: none;
}
.ingest-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.05rem 1.1rem 1.15rem;
}
.ingest-panel--primary {
  border-top: 2px solid color-mix(in srgb, var(--emerald) 55%, transparent);
}
.ingest-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.ingest-panel-head h3 {
  margin: 0.1rem 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ice);
}
.ingest-toolbar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.ingest-search {
  flex: 1;
  min-width: min(100%, 240px);
}
.ingest-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--input-bg);
  color: inherit;
  padding: 0 0.85rem;
  font: inherit;
}
.ingest-search input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--emerald) 55%, transparent);
  box-shadow: 0 0 0 3px var(--focus-ring, rgba(49, 196, 141, 0.18));
}
.ingest-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.ingest-options label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ingest-options input,
.ingest-options select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--input-bg);
  color: inherit;
  padding: 0 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.ingest-checks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  padding-top: 0.25rem;
}
.ingest-disclose summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  cursor: pointer;
  list-style: none;
}
.ingest-disclose summary::-webkit-details-marker {
  display: none;
}
.ingest-disclose summary strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ice);
}
.ingest-disclose-hint {
  font-size: 0.78rem;
  color: var(--muted);
}
.ingest-disclose-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.ingest-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.ingest-kpi-row--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ingest-kpi {
  border: 1px solid var(--line);
  border-top: 2px solid color-mix(in srgb, var(--emerald) 40%, transparent);
  border-radius: var(--radius);
  padding: 0.75rem 0.8rem;
  background: var(--surface);
}
.ingest-kpi strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ice);
  letter-spacing: -0.02em;
}
.ingest-kpi span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ingest-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.ingest-split h4 {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ingest-empty {
  margin: 0;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scrape-supplier-list {
  display: flex;
  flex-direction: column;
  max-height: min(56vh, 620px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.scrape-supplier-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem 0.9rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.scrape-supplier-row:last-child {
  border-bottom: none;
}
.scrape-supplier-row:hover {
  background: var(--hover-fill, rgba(230, 238, 243, 0.05));
}
.scrape-supplier-row.is-queued {
  background: color-mix(in srgb, var(--emerald) 12%, transparent);
  box-shadow: inset 3px 0 0 var(--emerald);
}
.ingest-live.is-stopping {
  outline: 1px solid color-mix(in srgb, #e8a317 55%, transparent);
}
.scrape-supplier-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--emerald) 28%, transparent);
  background: color-mix(in srgb, var(--emerald) 10%, transparent);
  color: var(--emerald);
  font-size: 0.85rem;
  font-weight: 700;
}
.scrape-supplier-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.scrape-supplier-main strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ice);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scrape-supplier-main small {
  font-size: 0.72rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scrape-supplier-stat {
  text-align: right;
  min-width: 4.5rem;
}
.scrape-supplier-stat b {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--emerald);
  font-variant-numeric: tabular-nums;
}
.scrape-supplier-stat span {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.scrape-supplier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}
.btn-sm {
  min-height: 34px;
  padding: 0 0.75rem;
  font-size: 0.68rem;
}
@media (max-width: 900px) {
  .ingest-options,
  .ingest-split,
  .ingest-kpi-row,
  .ingest-kpi-row--compact {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .scrape-supplier-row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .scrape-supplier-stat,
  .scrape-supplier-actions {
    grid-column: 1 / -1;
  }
  .scrape-supplier-stat {
    text-align: left;
  }
  .scrape-supplier-actions .btn {
    flex: 1;
  }
  .ingest-options,
  .ingest-split,
  .ingest-kpi-row,
  .ingest-kpi-row--compact {
    grid-template-columns: 1fr;
  }
}
.scrape-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.scrape-urls,
.scrape-form input[type='text'],
.scrape-form select,
.scrape-label input[type='file'] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--input-bg, var(--surface, #fff));
  color: inherit;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font: inherit;
}
.scrape-urls {
  min-height: 7rem;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
}
.scrape-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0.75rem;
}
.scrape-row label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.scrape-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
}
.scrape-actions {
  margin-top: 0.25rem;
}
.scrape-progress {
  font-size: 0.88rem;
  color: var(--muted);
}
.scrape-log {
  margin: 0.55rem 0 0;
  max-height: 220px;
  overflow: auto;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
@media (max-width: 720px) {
  .scrape-row {
    grid-template-columns: 1fr;
  }
}

.market-source-list {
  margin-top: 0.5rem;
}

.ingest-list small {
  display: block;
  color: var(--muted);
}

.admin-users-wrap {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.admin-user-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.admin-user-row small {
  display: block;
  color: var(--muted);
}

.admin-user-row select {
  max-width: 180px;
}

.login-demo {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.login-demo > p {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.login-demo-btn {
  appearance: none;
  display: block;
  width: 100%;
  text-align: left;
  margin: 0 0 0.4rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  cursor: pointer;
}

.login-demo-btn:hover {
  border-color: var(--emerald);
}

.login-demo-btn strong {
  display: block;
  font-size: 0.82rem;
}

.login-demo-btn small {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.login-demo > span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.65rem 0.75rem;
  align-items: end;
  margin: 0 0 1rem;
}

.admin-form-wide {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.admin-form .field-span-2 {
  grid-column: span 2;
}

.admin-form-actions {
  display: flex;
  align-items: end;
  gap: 0.5rem;
  justify-content: flex-start;
}

/* White-label: cor e logo da empresa no formulário do admin. */
.admin-branding {
  margin: 0;
  padding: 0.75rem 0.9rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--emerald) 4%, transparent);
}

.admin-supplier-scope {
  margin: 0;
  padding: 0.75rem 0.9rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-supplier-scope legend,
.supplier-picks legend {
  padding: 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.admin-supplier-scope-actions,
.supplier-picks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.supplier-picks-search-row {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  margin: 0.35rem 0 0.5rem;
}

.supplier-picks-search-wrap {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.supplier-picks-search-row > .btn {
  flex: 0 0 auto;
  align-self: stretch;
  white-space: nowrap;
}

.supplier-picks-search {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ice);
  font-size: 0.88rem;
}

.supplier-picks-search:focus {
  outline: 2px solid color-mix(in srgb, var(--emerald) 55%, transparent);
  outline-offset: 1px;
  border-color: color-mix(in srgb, var(--emerald) 50%, var(--border));
}

.supplier-picks-empty[hidden] {
  display: none !important;
}

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

.admin-supplier-checklist,
.supplier-picks-list {
  max-height: 160px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem 0.5rem;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
}

.supplier-picks {
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
}

.supplier-picks .field-optional {
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.admin-branding legend {
  padding: 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-branding-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(180px, 1.2fr) minmax(180px, 1.2fr);
  gap: 0.75rem;
  align-items: start;
}

.admin-branding input[type='color'] {
  width: 100%;
  height: 38px;
  padding: 2px;
  cursor: pointer;
}

.admin-branding-preview {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-branding-preview img {
  max-height: 40px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
}

.admin-branding-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.admin-branding-check input {
  width: auto;
  margin: 0;
}

@media (max-width: 760px) {
  .admin-branding-grid {
    grid-template-columns: 1fr;
  }
}

.admin-form-filters .admin-form-actions {
  justify-content: flex-end;
  margin: 0;
}

.admin-form-filters {
  margin-bottom: 0.85rem;
}

.admin-card--filters {
  margin-bottom: 1rem;
}

.admin-dash-filters {
  margin-bottom: 0;
}

.admin-dash-filters__hint {
  grid-column: 1 / -1;
  margin: 0;
}

.admin-product-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem 0.85rem;
  align-items: end;
  margin: 0 0 1rem;
}

.admin-product-filters__q {
  grid-column: span 2;
}

.admin-product-filters .field {
  margin: 0;
  min-width: 0;
}

.admin-product-filters .field input,
.admin-product-filters .field select {
  width: 100%;
  min-height: 38px;
  height: 38px;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}

.admin-product-filters__check .admin-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  min-height: 38px;
  padding: 0 0.15rem;
}

.admin-product-filters__check .admin-check-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--ice);
  cursor: pointer;
}

.admin-product-filters__check .admin-check-row input {
  width: auto;
  min-height: 0;
  margin: 0;
}

.admin-product-filters__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  min-height: 38px;
}

.admin-product-filters__actions .btn {
  min-height: 38px;
  height: 38px;
  padding-top: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 1100px) {
  .admin-product-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-product-filters__q {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .admin-product-filters {
    grid-template-columns: 1fr;
  }

  .admin-product-filters__actions {
    justify-content: stretch;
  }

  .admin-product-filters__actions .btn {
    flex: 1;
  }
}

@media (min-width: 1100px) {
  .admin-form-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.admin-usage-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.admin-usage-legend {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 88%, var(--emerald));
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.admin-usage-sub {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.admin-usage-level {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
}

.admin-usage-level.is-alto {
  color: var(--on-primary);
  background: var(--emerald);
  border-color: transparent;
}

.admin-usage-level.is-medio {
  color: var(--text);
  background: color-mix(in srgb, var(--emerald) 18%, var(--card));
}

.admin-usage-level.is-baixo {
  color: var(--muted);
  background: var(--hover-fill);
}

.admin-usage-level.is-inativo {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 12%, var(--card));
  border-color: color-mix(in srgb, var(--danger) 28%, var(--line));
}

.admin-usage-row.is-alto td:first-child {
  box-shadow: inset 3px 0 0 var(--emerald);
}

.admin-usage-row.is-inativo td:first-child {
  box-shadow: inset 3px 0 0 var(--danger);
}

.admin-usage-table td,
.admin-usage-table th {
  white-space: nowrap;
}

.admin-usage-table td:nth-child(2),
.admin-usage-table td:nth-child(9) {
  white-space: normal;
  min-width: 10rem;
}

.admin-table-wrap {
  max-height: min(58vh, 520px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.admin-table-wrap .data-table {
  width: 100%;
  margin: 0;
}

.admin-table-wrap .data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--card);
  box-shadow: 0 1px 0 var(--line);
}

.admin-plan-id {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted, #6b7280);
}

.admin-plan-id code {
  font-size: inherit;
  background: transparent;
  padding: 0;
}

.admin-users {
  max-height: min(52vh, 460px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0 0.85rem;
}

.admin-pagination {
  justify-content: flex-start;
  margin: 0.35rem 0 0.85rem;
}

.admin-pagination .btn.is-active,
.admin-pagination button.is-active {
  background: var(--emerald);
  color: var(--on-primary);
  border-color: var(--emerald);
  font-weight: 700;
}

.admin-inline-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.4rem;
  align-items: center;
  min-width: 280px;
}

.admin-inline-fields input,
.admin-inline-fields select {
  width: 100%;
  min-width: 0;
  font-size: 0.85rem;
}

.admin-company-edit-row td {
  background: color-mix(in srgb, var(--card) 88%, var(--accent, #3d8b5a) 12%);
  border-top: none;
}

.admin-muted {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

.admin-matrix {
  overflow-x: auto;
  margin-bottom: 0.5rem;
}

@media (max-width: 800px) {
  .admin-form,
  .admin-form-wide {
    grid-template-columns: 1fr;
  }

  .admin-form .field-span-2 {
    grid-column: auto;
  }

  .admin-bar {
    grid-template-columns: 1fr auto;
  }

  .admin-bar-track {
    grid-column: 1 / -1;
  }
}

#viewProfile .page-panel {
  max-width: 720px;
}

@media (max-width: 800px) {
  .profile-form .field-row {
    grid-template-columns: 1fr;
  }

  .ingest-cols {
    grid-template-columns: 1fr;
  }

  .quote-btn {
    right: 48px;
  }
}

/* Footer institucional Lequinox (espelho do site em Docker :8080) */
.lq-container {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding-left: var(--page-pad, clamp(1.25rem, 4vw, 2.5rem));
  padding-right: var(--page-pad, clamp(1.25rem, 4vw, 2.5rem));
}

.site-footer {
  position: relative;
  margin-top: auto;
  flex-shrink: 0;
  z-index: 2;
  isolation: isolate;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 8% 0%, color-mix(in srgb, var(--emerald) 7%, transparent), transparent 55%),
    linear-gradient(180deg, rgba(18, 28, 42, 0.55), transparent 45%),
    var(--navy-deep);
  padding: clamp(3.25rem, 6.5vw, 5rem) 0 0;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--emerald) 15%, transparent) 15%,
    var(--emerald) 50%,
    color-mix(in srgb, var(--emerald) 15%, transparent) 85%,
    transparent 100%
  );
  opacity: 0.85;
  pointer-events: none;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.55fr repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4.5vw, 3.25rem);
  padding-bottom: clamp(2.75rem, 5vw, 3.75rem);
}

.footer-brand-block {
  display: grid;
  gap: 1.15rem;
  align-content: start;
  padding-right: clamp(0rem, 2vw, 1.5rem);
}

.footer-brand-block .brand {
  margin-bottom: 0.1rem;
}

.footer-lead {
  margin: 0;
  max-width: 34ch;
  color: var(--steel);
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.7;
}

.footer-col {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.footer-col h3 {
  margin: 0;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid color-mix(in srgb, var(--emerald) 22%, transparent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emerald);
}

.footer-col a,
.footer-col p {
  margin: 0;
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.5;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
  color: var(--ice);
  transform: translateX(3px);
}

.footer-links {
  display: grid;
  gap: 0.6rem;
}

.footer-mail {
  color: var(--ice) !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em;
  word-break: break-word;
}

.footer-mail:hover {
  color: var(--emerald) !important;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.2rem;
}

.footer-contacts a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--steel);
  background: rgba(255, 255, 255, 0.015);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.footer-contacts a:hover {
  color: var(--emerald);
  border-color: color-mix(in srgb, var(--emerald) 50%, transparent);
  background: color-mix(in srgb, var(--emerald) 8%, transparent);
  transform: translateY(-2px);
}

.footer-contacts svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.35rem 0 1.85rem;
  border-top: 1px solid var(--line);
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 300;
}

.footer-bottom-tag {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--emerald);
}

.footer-bottom-tag::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: var(--emerald);
  opacity: 0.7;
}

html[data-theme='light'] .site-footer {
  background:
    radial-gradient(ellipse 60% 80% at 8% 0%, color-mix(in srgb, var(--emerald) 8%, transparent), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), transparent 45%),
    var(--bg);
}

@media (max-width: 980px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-col a:hover {
    transform: none;
  }

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

  .footer-bottom-tag::before {
    display: none;
  }
}

/* Cookie consent (Lequify) */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(18, 28, 42, 0.94), rgba(7, 14, 22, 0.98));
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(110%);
  transition: transform 0.32s ease, opacity 0.32s ease;
  opacity: 0;
}

.cookie-banner.is-open {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner__inner {
  width: min(100%, 1100px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
}

.cookie-banner__title {
  margin: 0 0 0.3rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.cookie-banner__text {
  margin: 0;
  max-width: 68ch;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

.cookie-banner__text a {
  color: var(--emerald, #31c48d);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  flex-shrink: 0;
}

.cookie-banner__btn {
  min-width: 8rem;
  justify-content: center;
}

@media (max-width: 820px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }
}



/* —— Landing comercial (pré-login) —— */
.landing-screen {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  background: transparent;
}
.lp-top.lp-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  min-height: 56px;
  padding: 0.55rem clamp(0.85rem, 3vw, 1.75rem);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--bg, #0b1220) 78%, transparent);
  backdrop-filter: blur(14px);
}
.lp-site-brand {
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.lp-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
}
.lp-nav a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.lp-nav a:hover {
  color: var(--ice);
}
.lp-nav a[aria-current="page"] {
  color: var(--emerald);
}
.lp-nav .nav-cta {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--emerald);
  color: var(--emerald) !important;
  border-radius: var(--radius);
}
.lp-nav .nav-cta:hover {
  background: var(--emerald);
  color: var(--on-primary) !important;
}
.lp-header-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  position: relative;
  z-index: 32;
}
.lp-auth-btn {
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
}
.lp-site-header .lang-switch {
  position: relative;
  flex: 0 0 auto;
}
.lp-site-header .lang-switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.3rem 0.5rem 0.3rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--ice);
  cursor: pointer;
}
.lp-site-header .lang-switch-toggle:hover,
.lp-site-header .lang-switch.is-open .lang-switch-toggle {
  border-color: color-mix(in srgb, var(--emerald) 50%, transparent);
  color: var(--emerald);
}
.lp-site-header .lang-code {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.lp-site-header .lang-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.75;
}
.lp-site-header .lang-switch.is-open .lang-caret {
  transform: rotate(180deg);
}
.lp-site-header .lang-flag {
  display: inline-block;
  width: 18px;
  height: 13px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  background-size: cover;
  background-position: center;
}
.lp-site-header .lang-flag--br {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Crect width='20' height='14' fill='%23009c3b'/%3E%3Cpath d='M10 2.2 17.2 7 10 11.8 2.8 7Z' fill='%23ffdf00'/%3E%3Ccircle cx='10' cy='7' r='2.55' fill='%23002776'/%3E%3C/svg%3E");
}
.lp-site-header .lang-flag--us {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Crect width='20' height='14' fill='%23fff'/%3E%3Cpath d='M0 1.55h20M0 3.1h20M0 4.65h20M0 6.2h20M0 7.75h20M0 9.3h20M0 10.85h20M0 12.4h20' stroke='%23b22234' stroke-width='1.08'/%3E%3Crect width='8.2' height='7.5' fill='%233c3b6e'/%3E%3C/svg%3E");
}
.lp-site-header .lang-flag--es {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Crect width='20' height='14' fill='%23aa151b'/%3E%3Crect y='3.5' width='20' height='7' fill='%23f1bf00'/%3E%3C/svg%3E");
}
.lp-site-header .lang-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 50;
  min-width: 7.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid color-mix(in srgb, var(--emerald) 28%, transparent);
  border-radius: 6px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, transparent), var(--bg));
  box-shadow: var(--shadow);
}
.lp-site-header .lang-menu[hidden] {
  display: none;
}
.lp-site-header .lang-menu button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ice);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.lp-site-header .lang-menu button:hover,
.lp-site-header .lang-menu button[aria-selected="true"] {
  background: color-mix(in srgb, var(--emerald) 14%, transparent);
  color: var(--emerald);
}
.lp-site-header .nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.lp-site-header .nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ice);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.lp-site-header .nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.lp-site-header .nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.lp-site-header .nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
.lp-site-header .nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 28;
  background: rgba(3, 8, 14, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lp-site-header .nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lp-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.lp-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  flex-shrink: 0;
  background: transparent;
}
.lp-brand strong {
  display: block;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
}
.lp-brand small {
  letter-spacing: 0.18em;
  color: var(--accent);
  font-size: 0.65rem;
}
.lp-top-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.lp-hero {
  position: relative;
  isolation: isolate;
  min-height: min(58vh, 520px);
  display: grid;
  align-items: end;
  padding: 0;
  max-width: none;
}
.lp-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.lp-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.02);
  animation: lpHeroDrift 18s ease-in-out infinite alternate;
}
.lp-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, #0b1420 55%, transparent) 0%, color-mix(in srgb, #0b1420 88%, transparent) 100%),
    linear-gradient(90deg, color-mix(in srgb, #0b1420 70%, transparent) 0%, transparent 55%);
}
@keyframes lpHeroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.2%, -0.6%, 0); }
}
.lp-hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 6vh, 3.25rem) clamp(1rem, 5vw, 2.5rem) clamp(1.5rem, 4vh, 2.5rem);
  max-width: 38rem;
  animation: lpFadeUp 0.9s ease both;
}
@keyframes lpFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.lp-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: color-mix(in srgb, var(--muted) 80%, #fff);
  margin: 0 0 0.65rem;
}
.lp-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 6.5vw, 3.6rem);
  letter-spacing: 0.14em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  max-width: none;
  background: var(--brand-shine);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandShine 8s ease-in-out infinite;
}
.lp-hero-lead {
  font-size: 0.98rem;
  color: color-mix(in srgb, var(--muted) 70%, #e8eef4);
  max-width: 34rem;
  line-height: 1.5;
  margin: 0 0 1.15rem;
}
.lp-hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.lp-section {
  padding: clamp(1.5rem, 3.5vh, 2.5rem) clamp(1rem, 5vw, 2.5rem) 2.25rem;
  border-top: 1px solid var(--line);
  animation: lpFadeUp 0.7s ease 0.15s both;
  background:
    radial-gradient(900px 320px at 10% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    transparent;
}
.lp-section-head {
  max-width: 42rem;
  margin-bottom: 1.25rem;
}
.lp-section-head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  letter-spacing: -0.02em;
}
.lp-mod-lead {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  font-size: 0.95rem;
}
.lp-step {
  margin-bottom: 1.25rem;
}
.lp-step-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.lp-step-label span {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--accent);
  color: #0b1420;
  font-size: 0.78rem;
  font-weight: 700;
}
.lp-step-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1rem;
}
.lp-audience {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.lp-audience strong {
  color: var(--text);
}
.lp-mods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.lp-mod {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: start;
  text-align: left;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 86%, transparent);
  color: var(--text);
  border-radius: calc(var(--radius) + 2px);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.lp-mod:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.lp-mod-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.lp-mod-kicker {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.lp-mod strong {
  display: block;
  font-size: 1.12rem;
  margin-bottom: 0.25rem;
}
.lp-mod-tag {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}
.lp-mod-check {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: #0b1420;
  margin-top: 0.15rem;
}
.lp-mod.is-on {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, var(--card));
}
.lp-mod.is-on .lp-mod-check {
  background: var(--accent);
  border-color: var(--accent);
}
.lp-billing-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}
.lp-plan-hint {
  font-size: 0.8rem;
  color: var(--muted);
}
.lp-billing {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  padding: 0.15rem;
  background: color-mix(in srgb, var(--card) 80%, transparent);
}
.lp-billing button {
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  border-radius: 999px;
  font-size: 0.85rem;
}
.lp-billing button em {
  font-style: normal;
  color: var(--accent);
  font-size: 0.75rem;
  margin-left: 0.2rem;
}
.lp-billing button.is-on {
  background: var(--accent);
  color: #0b1420;
  font-weight: 600;
}
.lp-billing button.is-on em {
  color: #0b1420;
}
.lp-section-plans {
  background:
    radial-gradient(900px 320px at 8% 0%, color-mix(in srgb, var(--emerald) 11%, transparent), transparent 58%),
    radial-gradient(700px 280px at 92% 20%, color-mix(in srgb, var(--ice) 4%, transparent), transparent 55%),
    transparent;
}
.lp-section-plans .lp-section-head {
  max-width: 46rem;
}
.lp-section-plans .lp-eyebrow {
  color: var(--emerald);
}
.lp-plans-matrix {
  display: block;
}
.lp-compare-scroll {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--card) 96%, transparent));
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  animation: lpFadeUp 0.55s ease both;
}
.lp-compare-scroll::after {
  content: 'Deslize para comparar →';
  display: none;
  position: sticky;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: max-content;
  margin: 0.35rem 0.65rem 0.55rem;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--emerald);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--emerald) 35%, var(--line));
  pointer-events: none;
}
.lp-compare {
  width: 100%;
  min-width: 1080px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
}
.lp-compare .lp-col-features {
  width: 12.5rem;
}
.lp-compare .lp-col-plan {
  width: calc((100% - 12.5rem) / 5);
}
.lp-compare thead th {
  vertical-align: top;
  text-align: center;
  height: 1px; /* permite .lp-col-card height:100% igualar a linha */
  padding: 0.9rem 0.45rem 1rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
  position: sticky;
  top: 0;
  z-index: 2;
}
.lp-compare thead th.lp-col {
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  cursor: pointer;
  outline: none;
}
.lp-compare thead th.lp-col:focus-visible .lp-col-card,
.lp-compare tbody td.lp-col:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--emerald) 55%, transparent);
  outline-offset: 2px;
}
.lp-compare tbody td.lp-col {
  cursor: pointer;
  transition: background 0.18s ease;
}
.lp-compare tbody td.lp-col:hover:not(.is-selected) {
  background: color-mix(in srgb, var(--emerald) 6%, transparent);
}
.lp-compare thead th.lp-col:hover:not(.is-selected) .lp-col-card {
  border-color: color-mix(in srgb, var(--emerald) 35%, var(--line));
}
.lp-compare-corner {
  text-align: left !important;
  width: 12.5rem;
  max-width: 12.5rem;
  padding-left: 0.85rem !important;
  padding-right: 0.65rem !important;
  vertical-align: middle !important;
  height: auto !important;
  overflow: hidden;
}
.lp-compare-kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald);
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.lp-compare-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.lp-compare-legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.lp-compare-legend .lp-cmp-note {
  min-width: 0;
  padding: 0.12rem 0.4rem;
  font-size: 0.66rem;
}
.lp-col-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: stretch;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 19.5rem;
  padding: 0.9rem 0.65rem 0.8rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lp-plan-ico {
  display: grid;
  place-items: center;
  align-self: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0.1rem 0 0.15rem;
  border-radius: calc(var(--radius) + 2px);
  color: var(--ice);
  background: color-mix(in srgb, var(--emerald) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--emerald) 28%, var(--line));
}
.lp-col.is-highlight .lp-plan-ico {
  color: var(--emerald);
  background: color-mix(in srgb, var(--emerald) 16%, transparent);
  border-color: color-mix(in srgb, var(--emerald) 45%, transparent);
}
.lp-plan-ico-svg {
  display: block;
}
.lp-col-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: color-mix(in srgb, var(--line) 80%, transparent);
}
.lp-col.is-highlight .lp-col-card {
  border-color: color-mix(in srgb, var(--emerald) 55%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--emerald) 12%, transparent), transparent 52%),
    color-mix(in srgb, var(--card) 96%, transparent);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--emerald) 10%, transparent);
}
.lp-col.is-highlight .lp-col-card::before {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--emerald), transparent);
}
.lp-badge,
.lp-badge-slot {
  align-self: center;
  flex: 0 0 auto;
  height: 1.4rem;
  min-height: 1.4rem;
}
.lp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 0.45rem;
  border: 1px solid color-mix(in srgb, var(--emerald) 45%, transparent);
  background: color-mix(in srgb, var(--emerald) 14%, transparent);
  color: var(--emerald);
  border-radius: var(--radius);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-col.is-highlight .lp-badge {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--on-primary);
}
.lp-col-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-col.is-highlight .lp-col-name {
  color: var(--emerald);
}
.lp-col-headline {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
  height: 2.7em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.lp-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.2rem;
  margin-top: 0.1rem;
  min-height: 2rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-transform: none;
  color: var(--text);
  white-space: nowrap;
}
.lp-price small {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
}
.lp-save,
.lp-save-slot {
  display: block;
  height: 1rem;
  min-height: 1rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-save {
  color: var(--emerald);
}
.lp-col-blurb {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 300;
  height: 2.8em;
  max-height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.lp-plan-cta {
  margin-top: auto;
  flex: 0 0 auto;
  height: 2.4rem;
  min-height: 2.4rem;
  max-height: 2.4rem;
  padding: 0 0.45rem !important;
  border-radius: var(--radius);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-compare tbody th,
.lp-compare tbody td {
  padding: 0.7rem 0.35rem;
  text-align: center;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  vertical-align: middle;
  overflow: hidden;
}
.lp-compare tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--text);
  white-space: normal;
  position: sticky;
  left: 0;
  z-index: 1;
  width: 12.5rem;
  max-width: 12.5rem;
  padding-left: 0.85rem;
  padding-right: 0.65rem;
  background: color-mix(in srgb, var(--card) 98%, var(--bg));
  box-shadow: 1px 0 0 color-mix(in srgb, var(--line) 70%, transparent);
}
.lp-row-label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.3;
  white-space: normal;
}
.lp-row-label .lp-ico {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 0.12rem;
  color: var(--muted);
  opacity: 0.92;
}
.lp-row-label > span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.lp-compare tbody tr:hover .lp-row-label .lp-ico {
  color: var(--emerald);
  opacity: 1;
}
.lp-compare tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--hover-fill) 70%, transparent);
}
.lp-compare tbody tr:hover td,
.lp-compare tbody tr:hover th {
  background: color-mix(in srgb, var(--emerald) 8%, transparent);
}
.lp-compare tbody td.is-highlight {
  background: color-mix(in srgb, var(--emerald) 5%, transparent);
}
.lp-compare tbody tr:nth-child(even) td.is-highlight {
  background: color-mix(in srgb, var(--emerald) 7%, transparent);
}
.lp-compare tbody tr:hover td.is-highlight {
  background: color-mix(in srgb, var(--emerald) 11%, transparent);
}
.lp-compare tbody tr:last-child th,
.lp-compare tbody tr:last-child td {
  border-bottom: 0;
}
.lp-cmp-yes {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  color: var(--emerald);
  background: color-mix(in srgb, var(--emerald) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--emerald) 28%, transparent);
}
.lp-check {
  display: block;
}
.lp-cmp-no {
  color: color-mix(in srgb, var(--muted) 80%, transparent);
  font-weight: 500;
  font-size: 1.05rem;
}
.lp-cmp-note,
.lp-cmp-addon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  padding: 0.22rem 0.4rem;
  border-radius: var(--radius);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
}
.lp-cmp-note {
  color: var(--ice);
  background: color-mix(in srgb, var(--emerald) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--emerald) 22%, var(--line));
}
.lp-cmp-addon {
  color: var(--muted);
  background: transparent;
  border: 1px dashed color-mix(in srgb, var(--line) 95%, transparent);
}
.lp-plan-skeleton {
  min-height: 14rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  padding: 1.25rem;
  pointer-events: none;
  opacity: 0.7;
}
.lp-plan-skeleton div {
  height: 0.85rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--line) 80%, transparent);
  margin-bottom: 0.75rem;
  animation: lpPulse 1.2s ease-in-out infinite;
}
.lp-plan-skeleton div:first-child {
  width: 42%;
  height: 1.2rem;
}
.lp-plan-skeleton div:nth-child(2) {
  width: 55%;
  height: 2rem;
}
@keyframes lpPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

.lp-plan-notes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.lp-plan-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.95rem 1.05rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--emerald);
  background: color-mix(in srgb, var(--card) 82%, transparent);
}
.lp-note-ico {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: calc(var(--radius) + 2px);
  color: var(--emerald);
  background: color-mix(in srgb, var(--emerald) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--emerald) 28%, transparent);
}
.lp-plan-note strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 0.35rem;
}
.lp-plan-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 300;
}

.lp-fine,
.lp-error {
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 48rem;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .lp-compare {
    min-width: 960px;
  }
  .lp-compare .lp-col-features,
  .lp-compare-corner,
  .lp-compare tbody th {
    width: 11.25rem;
    max-width: 11.25rem;
  }
  .lp-compare .lp-col-plan {
    width: calc((100% - 11.25rem) / 5);
  }
}
@media (max-width: 900px) {
  .lp-plan-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lp-compare-scroll::after {
    display: inline-block;
  }
  .lp-compare {
    min-width: 860px;
    font-size: 0.8rem;
  }
  .lp-compare .lp-col-features,
  .lp-compare-corner,
  .lp-compare tbody th {
    width: 9.75rem;
    max-width: 9.75rem;
    padding-left: 0.65rem;
    padding-right: 0.5rem;
  }
  .lp-compare .lp-col-plan {
    width: calc((100% - 9.75rem) / 5);
  }
  .lp-col-card {
    min-height: 17.25rem;
    padding: 0.75rem 0.45rem 0.7rem;
  }
  .lp-plan-ico {
    width: 2.35rem;
    height: 2.35rem;
  }
  .lp-plan-ico-svg {
    width: 22px;
    height: 22px;
  }
  .lp-price {
    font-size: 1.05rem;
  }
  .lp-plan-cta {
    font-size: 0.62rem;
    letter-spacing: 0.02em;
  }
  .lp-row-label {
    font-size: 0.76rem;
    gap: 0.35rem;
  }
}
@media (max-width: 560px) {
  .lp-plan-notes {
    grid-template-columns: 1fr;
  }
  .lp-section-plans {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .lp-compare {
    min-width: 760px;
    font-size: 0.76rem;
  }
  .lp-compare .lp-col-features,
  .lp-compare-corner,
  .lp-compare tbody th {
    width: 8.5rem;
    max-width: 8.5rem;
    padding-left: 0.5rem;
    padding-right: 0.4rem;
  }
  .lp-compare .lp-col-plan {
    width: calc((100% - 8.5rem) / 5);
  }
  .lp-compare thead th.lp-col {
    padding-left: 0.28rem;
    padding-right: 0.28rem;
  }
  .lp-col-card {
    min-height: 15.75rem;
    gap: 0.22rem;
    padding: 0.65rem 0.35rem 0.6rem;
  }
  .lp-col-name {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }
  .lp-col-headline,
  .lp-col-blurb {
    font-size: 0.66rem;
  }
  .lp-badge {
    font-size: 0.52rem;
    padding: 0 0.35rem;
  }
  .lp-plan-ico {
    width: 2.1rem;
    height: 2.1rem;
  }
  .lp-row-label .lp-ico {
    width: 14px;
    height: 14px;
  }
  .lp-cmp-note,
  .lp-cmp-addon {
    font-size: 0.62rem;
    padding: 0.18rem 0.28rem;
  }
}
.lp-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}
.lp-foot a { color: var(--text); }
.login-back-landing {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}
.login-plan-hint {
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.admin-strategy {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.linkish {
  background: none;
  border: 0;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
@media (max-width: 1100px) {
  .lp-nav {
    position: fixed;
    inset: 56px 0 auto;
    z-index: 29;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.75rem 1rem 1rem;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }
  .lp-nav.is-open {
    display: flex;
  }
  .lp-nav a {
    padding: 0.85rem 0.35rem;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  }
  .lp-nav .nav-cta {
    margin-top: 0.65rem;
    text-align: center;
  }
  .lp-site-header .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .lp-top.lp-site-header {
    flex-wrap: nowrap;
  }
  .lp-hero {
    min-height: min(78vh, 640px);
  }
  .lp-hero h1 {
    letter-spacing: 0.1em;
  }
  .lp-mods {
    grid-template-columns: 1fr;
  }
  .lp-step-bar {
    align-items: flex-start;
  }
}

/* Billing / assinatura (perfil + página de planos) */
.billing-panel {
  margin: 1.5rem 0 1rem;
}
.plan-panel {
  margin-top: 0;
  max-width: 1100px;
}
.billing-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
}
.billing-manage {
  background: var(--card);
}
.billing-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}
.billing-head h3 {
  margin: 0.15rem 0;
  font-size: 1.25rem;
}
.billing-badge {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  white-space: nowrap;
}
.billing-badge.is-current {
  color: var(--emerald);
  border-color: color-mix(in srgb, var(--emerald) 45%, transparent);
  background: color-mix(in srgb, var(--emerald) 10%, transparent);
}
.billing-dl {
  margin-bottom: 0.75rem;
}
.billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.billing-change-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.billing-change-head h4 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}
.billing-cycle {
  display: inline-flex;
  gap: 0.35rem;
}
.billing-cycle .btn.is-on {
  border-color: var(--emerald);
  color: var(--emerald);
}
.billing-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}
.billing-plan-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  min-height: 100%;
}
.billing-plan-card.is-highlight {
  border-color: color-mix(in srgb, var(--emerald) 45%, transparent);
}
.billing-plan-card.is-current {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--emerald) 35%, transparent);
}
.billing-plan-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
}
.billing-plan-head h4 {
  margin: 0.1rem 0 0;
  font-size: 1.05rem;
}
.billing-plan-headline {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}
.billing-plan-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.billing-plan-price strong {
  font-size: 1.35rem;
}
.billing-plan-price span {
  color: var(--muted);
  font-size: 0.85rem;
}
.billing-plan-features {
  margin: 0 0 0.35rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
  flex: 1;
}
.billing-plan-card .btn-block {
  width: 100%;
  margin-top: auto;
}
.billing-footnote {
  margin: 1rem 0 0;
}
.profile-plan-teaser,
.settings-plan-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.15rem 0 0;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--emerald) 6%, transparent);
}
.profile-plan-teaser-label,
.settings-plan-card h3 {
  margin: 0.15rem 0;
  font-size: 1.15rem;
}
.side-plan {
  display: block;
  margin-top: 0.15rem;
  color: var(--emerald) !important;
  font-weight: 600;
}
@media (max-width: 720px) {
  .billing-head {
    flex-direction: column;
  }
  .billing-change-head {
    align-items: flex-start;
  }
}

/* Solicitação de novo fornecedor */
.supplier-request-card {
  width: min(640px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
}
.supplier-request-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 96px;
}
.supplier-request-form .field small {
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.35rem;
}
.supplier-request-file-hint {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
  word-break: break-word;
}
.supplier-request-feedback {
  margin: 0;
  grid-column: 1 / -1;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.92rem;
  line-height: 1.45;
}
.supplier-request-feedback.is-ok {
  border-color: color-mix(in srgb, var(--emerald) 45%, var(--line));
  color: var(--emerald);
}
.supplier-request-feedback.is-error {
  border-color: color-mix(in srgb, #c44 40%, var(--line));
  color: #c44;
}
.admin-request-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.75rem;
}
.admin-request-card p {
  margin: 0.45rem 0;
  line-height: 1.45;
}
.admin-request-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}
.admin-request-status {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}
.admin-request-status.is-pending {
  color: #b45309;
  border-color: color-mix(in srgb, #b45309 35%, var(--line));
}
.admin-request-status.is-approved {
  color: var(--emerald);
  border-color: color-mix(in srgb, var(--emerald) 40%, var(--line));
}
.admin-request-status.is-rejected {
  color: #b91c1c;
  border-color: color-mix(in srgb, #b91c1c 35%, var(--line));
}
.admin-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
  margin-top: 0.65rem;
}
.admin-request-note {
  flex: 1 1 180px;
  margin: 0;
}
@media (max-width: 720px) {
  .page-head-actions .js-supplier-request-open {
    width: 100%;
  }
}

/* Help modal */
.topbar-help {
  line-height: 0;
}

.topbar-help svg {
  display: block;
  flex-shrink: 0;
}

.help-modal-card {
  width: min(480px, 100%);
}

.help-modal-card .modal-head {
  gap: 0.5rem;
}

.help-modal-card .modal-head h3 {
  flex: 1;
  min-width: 0;
}

.help-back {
  width: 36px;
  min-width: 36px;
  padding: 0;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
}

.help-body {
  padding: 0.75rem 1.1rem 1.15rem;
  overflow: auto;
}

.help-menu {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.help-option {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--navy-elevated) 88%, var(--ice) 12%);
  color: var(--ice);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.help-option:hover,
.help-option:focus-visible {
  border-color: color-mix(in srgb, var(--emerald) 55%, var(--line));
  background: color-mix(in srgb, var(--emerald) 12%, var(--navy-elevated));
  outline: none;
}

.help-option span:last-child {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
}

.help-topic h4 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.help-topic p,
.help-topic li {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.45;
}

.help-topic ol,
.help-topic ul {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
}

.help-topic code {
  font-size: 0.8em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: color-mix(in srgb, var(--ice) 8%, transparent);
}

.help-muted {
  color: var(--muted) !important;
  font-size: 0.8rem !important;
}

.help-topic .btn {
  margin-top: 0.35rem;
  text-decoration: none;
}

/* Notificações (sininho) */
.notif-wrap {
  position: relative;
}

.topbar-notif {
  position: relative;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 80;
  width: min(360px, calc(100vw - 1.5rem));
  max-height: min(70vh, 480px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface, var(--navy-elevated));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.notif-panel.hidden {
  display: none !important;
}

.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--line);
}

.notif-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--emerald);
}

.notif-panel-title strong {
  color: var(--ice);
  font-size: 0.95rem;
}

.notif-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid var(--line);
}

.notif-panel-actions .btn,
.notif-panel-actions a.btn {
  text-decoration: none;
}

.notif-empty {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.notif-empty.hidden {
  display: none !important;
}

.notif-empty-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.35rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--emerald) 22%, transparent);
  color: var(--emerald);
  font-weight: 700;
  font-size: 1.25rem;
}

.notif-empty strong {
  color: var(--ice);
}

.notif-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.notif-list {
  overflow-y: auto;
  display: grid;
}

.notif-item {
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0.85rem 0.95rem;
  display: grid;
  gap: 0.2rem;
  cursor: pointer;
}

.notif-item:hover {
  background: color-mix(in srgb, var(--emerald) 8%, transparent);
}

.notif-item.is-unread {
  background: color-mix(in srgb, var(--emerald) 10%, transparent);
}

.notif-item strong {
  font-size: 0.88rem;
  color: var(--ice);
}

.notif-item span {
  font-size: 0.8rem;
  color: var(--steel, var(--muted));
  line-height: 1.4;
}

.notif-item small {
  font-size: 0.72rem;
  color: var(--muted);
}

.history-item.is-alert-paused {
  opacity: 0.72;
}

.history-item-toggle {
  min-width: 2.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
