:root {
  color-scheme: light;
  --navy: #111936;
  --navy-2: #1c2748;
  --navy-3: #2b385d;
  --blue: #3158d4;
  --blue-soft: #eef2ff;
  --green: #168f55;
  --green-soft: #eaf8f0;
  --amber: #a15c07;
  --amber-soft: #fff6df;
  --red: #b42318;
  --red-soft: #fff0ee;
  --ink: #151b2b;
  --muted: #667085;
  --muted-2: #8a94a6;
  --line: #e4e8ef;
  --line-strong: #d7dce5;
  --page: #f5f7fa;
  --surface: #ffffff;
  --sidebar: #10172f;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 8px 24px rgba(17, 25, 54, 0.07);
  --shadow-lg: 0 22px 60px rgba(17, 25, 54, 0.14);
  --sidebar-width: 252px;
  --topbar-height: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
}

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

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

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

h1,
h2,
h3,
strong {
  overflow-wrap: anywhere;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #748096;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: #aeb9d0;
}

.brand-lockup {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.brand-lockup small {
  margin-top: 1px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  opacity: 0.68;
  text-transform: uppercase;
}

.brand-lockup--light {
  color: #fff;
}

.brand-lockup--dark {
  color: var(--navy);
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.13);
  color: var(--navy);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.button {
  min-height: 44px;
  gap: 9px;
  padding: 10px 17px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

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

.button:active {
  transform: translateY(0);
}

.button--primary {
  background: var(--navy);
  box-shadow: 0 7px 16px rgba(17, 25, 54, 0.16);
  color: #fff;
}

.button--primary:hover {
  background: var(--navy-2);
}

.button--secondary {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--navy);
}

.button--secondary:hover {
  border-color: #bcc4d1;
  background: #fafbfc;
}

.button--whatsapp {
  border: 1px solid #b9e7cf;
  background: var(--green-soft);
  color: #087342;
}

.button--compact {
  min-height: 38px;
  padding: 8px 13px;
}

.button--tiny {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 12px;
}

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

.icon-button {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: transparent;
  color: #667085;
}

.icon-button:hover {
  background: #eef1f5;
  color: var(--navy);
}

.icon-button--small {
  width: 30px;
  height: 30px;
}

.icon-button--small .icon {
  width: 17px;
  height: 17px;
}

.icon-button--inverse {
  color: #aab4ca;
}

.icon-button--inverse:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input,
select {
  min-height: 42px;
  padding: 9px 11px;
}

textarea {
  resize: vertical;
  padding: 11px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #8397db;
  box-shadow: 0 0 0 3px rgba(49, 88, 212, 0.11);
}

input::placeholder,
textarea::placeholder {
  color: #9aa3b1;
}

.field-label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}

.security-copy {
  display: block;
  color: #8992a2;
  line-height: 1.5;
  text-align: center;
}

/* Login e instalação */

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(340px, 0.92fr) minmax(480px, 1.08fr);
}

.login-visual {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: 42px clamp(34px, 5vw, 76px);
  background:
    radial-gradient(circle at 15% 20%, rgba(72, 101, 188, 0.24), transparent 26rem),
    linear-gradient(145deg, #10172f, #1b274b);
  color: #fff;
}

.login-copy {
  max-width: 610px;
  margin: auto 0;
  padding: 56px 0;
}

.login-copy h1 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-size: clamp(38px, 4.2vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.login-copy > p {
  max-width: 540px;
  margin-bottom: 28px;
  color: #c3cce0;
  font-size: 17px;
  line-height: 1.65;
}

.login-benefits {
  display: grid;
  gap: 13px;
}

.login-benefits span {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #e4e8f2;
  font-weight: 650;
}

.login-benefits .icon {
  color: #8fa8ff;
}

.login-footnote {
  margin: 0;
  color: #8f9ab3;
  font-size: 12px;
}

.login-form-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 30px;
  background: #f7f8fa;
}

.auth-card {
  width: min(100%, 420px);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.auth-card h2 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

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

.auth-card .field-label {
  margin-bottom: 16px;
}

.auth-card .button {
  margin-top: 5px;
  margin-bottom: 18px;
}

.mobile-brand {
  display: none;
}

.setup-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 0, rgba(49, 88, 212, 0.12), transparent 35rem),
    var(--page);
}

.setup-card {
  width: min(100%, 720px);
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.setup-card .brand-lockup {
  margin-bottom: 44px;
}

.setup-card .brand-mark {
  background: var(--navy);
  color: #fff;
}

.setup-card h1 {
  max-width: 15ch;
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(29px, 5vw, 43px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.setup-card > p {
  max-width: 600px;
  color: var(--muted);
  font-size: 16px;
}

.setup-card pre {
  overflow-x: auto;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid #dbe1ea;
  border-radius: 12px;
  background: #f5f7fa;
  color: #29324a;
  font-size: 12px;
  white-space: pre-wrap;
}

/* Estrutura principal */

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

.sidebar {
  position: fixed;
  z-index: 60;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 22px 16px 16px;
  background:
    radial-gradient(circle at 20% 10%, rgba(80, 108, 194, 0.18), transparent 20rem),
    var(--sidebar);
  color: #c7cede;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px 25px;
}

.sidebar-close {
  display: none;
}

.sidebar-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.nav-section {
  padding: 0 12px 8px;
  color: #78839d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav-section--spaced {
  margin-top: 17px;
}

.nav-item {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 12px;
  padding: 10px 11px;
  border-radius: 10px;
  color: #aeb7ca;
  font-size: 13px;
  font-weight: 700;
  transition: background 150ms ease, color 150ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.nav-item.is-active {
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  color: var(--navy);
}

.nav-item .icon {
  width: 19px;
  height: 19px;
}

.nav-item span {
  min-width: 0;
  flex: 1;
}

.nav-item b {
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 10px;
  background: #30416f;
  color: #fff;
  font-size: 10px;
}

.nav-item.is-active b {
  background: var(--navy);
}

.sync-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 2px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
}

.sync-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 4px;
  border-radius: 50%;
  background: #48c889;
  box-shadow: 0 0 0 4px rgba(72, 200, 137, 0.1);
}

.sync-card--ready .sync-dot,
.sync-card--pending .sync-dot {
  background: #65a8ff;
  box-shadow: 0 0 0 4px rgba(101, 168, 255, 0.12);
}

.sync-card--warning .sync-dot {
  background: #f0b44d;
  box-shadow: 0 0 0 4px rgba(240, 180, 77, 0.12);
}

.sync-card--error .sync-dot {
  background: #ef5b63;
  box-shadow: 0 0 0 4px rgba(239, 91, 99, 0.12);
}

.sync-card strong,
.sync-card small {
  display: block;
}

.sync-card strong {
  color: #e5e9f2;
  font-size: 11px;
}

.sync-card small {
  margin-top: 3px;
  color: #8792aa;
  font-size: 9px;
  line-height: 1.4;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.sidebar-user-copy strong,
.sidebar-user-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-copy strong {
  color: #fff;
  font-size: 12px;
}

.sidebar-user-copy small {
  color: #8390a9;
  font-size: 10px;
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: #e9edf5;
  color: var(--navy);
  font-size: 11px;
  font-weight: 850;
}

.avatar--top {
  display: none;
}

.avatar--small {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  font-size: 9px;
}

.avatar--large {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  font-size: 14px;
}

.app-main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  height: var(--topbar-height);
  align-items: center;
  gap: 22px;
  padding: 0 clamp(20px, 3vw, 38px);
  border-bottom: 1px solid rgba(226, 230, 237, 0.88);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.menu-button {
  display: none;
}

.global-search {
  display: flex;
  width: min(100%, 440px);
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f8fa;
  color: #8a94a5;
}

.global-search input {
  min-height: 39px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
}

.global-search kbd {
  padding: 2px 6px;
  border: 1px solid #dce1e8;
  border-radius: 5px;
  background: #fff;
  color: #8b94a3;
  font-family: inherit;
  font-size: 9px;
}

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

.notification-button {
  position: relative;
}

.notification-button span {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--red);
}

.page {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 29px clamp(18px, 3vw, 38px) 54px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 23px;
}

.page-heading h1 {
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.page-heading p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.page-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

/* Elementos compartilhados */

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 21px 16px;
}

.panel-head h2,
.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.panel-help {
  color: #8a94a4;
  font-size: 11px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #41506f;
  font-size: 11px;
  font-weight: 800;
}

.text-link .icon {
  width: 15px;
  height: 15px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.notice,
.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.5;
}

.notice {
  margin: 14px 0;
  padding: 12px;
}

.notice .icon,
.toast .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.notice--error,
.toast--error {
  border: 1px solid #f0c4be;
  background: var(--red-soft);
  color: var(--red);
}

.notice--info {
  border: 1px solid #d5def8;
  background: var(--blue-soft);
  color: #304681;
}

.toast {
  position: fixed;
  z-index: 100;
  top: 84px;
  right: 24px;
  max-width: min(420px, calc(100vw - 32px));
  align-items: center;
  padding: 13px 13px 13px 15px;
  border: 1px solid #bde3cd;
  background: #effaf4;
  box-shadow: var(--shadow-lg);
  color: #096b3d;
}

.toast .icon-button {
  width: 28px;
  height: 28px;
  margin-left: 5px;
}

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

.empty-state h2,
.empty-state h3,
.empty-state strong {
  margin: 12px 0 5px;
  color: var(--navy);
}

.empty-state p {
  margin: 0 0 16px;
}

.empty-state.compact {
  min-height: 110px;
}

.empty-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: #eef1f6;
  color: var(--navy);
}

.empty-mini {
  margin: 0 21px 21px;
  padding: 24px;
  border-radius: 12px;
  background: #f7f8fa;
  color: var(--muted);
  text-align: center;
}

.status,
.priority,
.source-chip,
.proposal-status,
.simulation-status,
.stock-status,
.sync-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.status {
  min-height: 25px;
  padding: 6px 9px;
  background: #eef1f5;
  color: #596475;
}

.status--new {
  background: #eef2ff;
  color: #3655b3;
}

.status--contacted {
  background: #edf7ff;
  color: #246a99;
}

.status--qualified {
  background: #f2efff;
  color: #6249a8;
}

.status--simulation {
  background: var(--amber-soft);
  color: var(--amber);
}

.status--proposal {
  background: #eaf7f2;
  color: #08754a;
}

.status--negotiation {
  background: #e8f6ff;
  color: #166890;
}

.status--won {
  background: var(--green-soft);
  color: #087342;
}

.status--lost {
  background: var(--red-soft);
  color: var(--red);
}

.priority {
  min-height: 23px;
  padding: 5px 8px;
  background: #f0f2f5;
  color: #697386;
}

.priority--high {
  background: var(--amber-soft);
  color: var(--amber);
}

.priority--urgent {
  background: var(--red-soft);
  color: var(--red);
}

.priority--low {
  background: #edf5f7;
  color: #52717a;
}

.source-chip {
  min-height: 24px;
  padding: 5px 8px;
  background: #f0f2f6;
  color: #626e80;
}

.search-box {
  display: flex;
  min-width: 210px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #8a94a4;
}

.search-box input {
  min-height: 38px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
}

.search-box--wide {
  width: min(100%, 440px);
}

.list-toolbar,
.pipeline-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.list-toolbar {
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
}

.pipeline-toolbar {
  margin-bottom: 17px;
}

.pipeline-hint {
  margin-left: auto;
  color: #8993a3;
  font-size: 11px;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
  color: #7b8595;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf0f4;
  color: #485365;
  font-size: 12px;
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fafbfc;
}

.data-table td small,
.table-primary {
  display: block;
}

.data-table td small {
  margin-top: 3px;
  color: #8b94a4;
  font-size: 10px;
}

.table-primary {
  color: var(--navy);
  font-weight: 800;
}

.is-overdue {
  color: var(--red) !important;
  font-weight: 750;
}

.text-success {
  color: var(--green) !important;
}

/* Dashboard */

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

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

.metric-card {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(17, 25, 54, 0.045);
}

.metric-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: #eef1f6;
  color: var(--navy);
}

.metric-icon .icon {
  width: 19px;
  height: 19px;
}

.metric-copy {
  min-width: 0;
}

.metric-copy span,
.metric-copy strong,
.metric-copy small {
  display: block;
}

.metric-copy span {
  color: #788294;
  font-size: 10px;
  font-weight: 750;
}

.metric-copy strong {
  margin: 2px 0;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.metric-copy small {
  overflow: hidden;
  color: #8f98a8;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card--warning .metric-icon {
  background: var(--amber-soft);
  color: var(--amber);
}

.metric-card--navy {
  border-color: var(--navy);
  background: var(--navy);
}

.metric-card--navy .metric-icon {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.metric-card--navy .metric-copy span,
.metric-card--navy .metric-copy small {
  color: #aab4cb;
}

.metric-card--navy .metric-copy strong {
  color: #fff;
}

.metric-card--success .metric-icon {
  background: var(--green-soft);
  color: var(--green);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 15px;
  margin-bottom: 15px;
}

.funnel-list {
  display: grid;
  gap: 11px;
  padding: 2px 21px 18px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 115px 1fr 25px;
  align-items: center;
  gap: 10px;
  color: #657084;
  font-size: 11px;
}

.funnel-row strong {
  color: var(--navy);
  text-align: right;
}

.funnel-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f4;
}

.funnel-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy), #4d67b7);
}

.conversion-strip {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 21px 21px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #f3f5f8;
}

.conversion-strip > span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
}

.conversion-strip strong,
.conversion-strip small {
  display: block;
}

.conversion-strip strong {
  color: var(--navy);
  font-size: 11px;
}

.conversion-strip small {
  color: #8a94a3;
  font-size: 10px;
}

.conversion-value {
  margin-left: auto;
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
}

.bank-ranking {
  display: grid;
  padding: 0 21px 17px;
}

.bank-rank {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f4;
}

.bank-rank:last-child {
  border-bottom: 0;
}

.rank-number {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #eff2f6;
  color: #586375;
  font-size: 10px;
  font-weight: 850;
}

.bank-rank > div {
  min-width: 0;
  flex: 1;
}

.bank-rank strong,
.bank-rank small {
  display: block;
}

.bank-rank strong {
  color: var(--navy);
  font-size: 11px;
}

.bank-rank small {
  overflow: hidden;
  margin-top: 2px;
  color: #8b94a4;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bank-rank > b {
  color: var(--green);
  font-size: 10px;
}

.attention-panel {
  overflow: hidden;
}

/* Kanban */

.kanban {
  display: grid;
  grid-auto-columns: minmax(255px, 1fr);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 13px;
  scroll-snap-type: x proximity;
}

.kanban-column {
  min-height: 560px;
  overflow: hidden;
  border: 1px solid #e3e7ed;
  border-radius: 14px;
  background: #eef1f5;
  scroll-snap-align: start;
}

.kanban-head {
  display: flex;
  height: 49px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border-bottom: 1px solid #dfe4ea;
  background: #f8f9fb;
}

.kanban-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-head strong {
  color: #344054;
  font-size: 11px;
}

.kanban-head b {
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 8px;
  background: #e7eaf0;
  color: #657084;
  font-size: 10px;
}

.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6d7a8f;
}

.stage-dot--new {
  background: #526ed0;
}

.stage-dot--contacted {
  background: #3c8fc1;
}

.stage-dot--qualified {
  background: #765fba;
}

.stage-dot--simulation {
  background: #c17714;
}

.stage-dot--proposal {
  background: #24986b;
}

.stage-dot--negotiation {
  background: #237ca3;
}

.kanban-list {
  min-height: 510px;
  padding: 10px;
}

.kanban-list.is-drag-over {
  background: rgba(49, 88, 212, 0.065);
  box-shadow: inset 0 0 0 2px rgba(49, 88, 212, 0.22);
}

.lead-card {
  margin-bottom: 9px;
  padding: 13px;
  border: 1px solid #dfe4eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(17, 25, 54, 0.045);
  cursor: grab;
}

.lead-card.is-dragging {
  opacity: 0.5;
}

.lead-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lead-card h3 {
  margin: 9px 0 3px;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.25;
}

.lead-card p {
  min-height: 34px;
  margin-bottom: 10px;
  color: #707b8c;
  font-size: 10px;
  line-height: 1.45;
}

.lead-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 8px 9px;
  border-radius: 8px;
  background: #f5f7fa;
  color: #8791a1;
  font-size: 9px;
}

.lead-value strong {
  color: var(--navy);
  font-size: 11px;
}

.lead-score {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  color: #7e8899;
  font-size: 9px;
}

.lead-score i,
.client-score i,
.context-score i {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eaf0;
}

.lead-score i b,
.client-score i b,
.context-score i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--navy);
}

.lead-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #edf0f3;
  color: #8a94a4;
  font-size: 9px;
}

.lead-card-meta span:not(.avatar) {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.lead-card-meta .icon {
  width: 12px;
  height: 12px;
}

.kanban-empty {
  display: grid;
  min-height: 78px;
  place-items: center;
  border: 1px dashed #cad1dc;
  border-radius: 10px;
  color: #9aa3b2;
  font-size: 10px;
}

.mobile-stage-select {
  display: none;
}

/* Atendimento */

.lead-summary-grid {
  display: grid;
  grid-template-columns: minmax(400px, 0.9fr) minmax(500px, 1.1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.profile-card,
.vehicle-interest-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 19px;
}

.profile-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid #edf0f4;
}

.profile-card-head > div {
  min-width: 0;
  flex: 1;
}

.profile-card-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.25;
}

.profile-card-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.score-ring {
  --score: 0;
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 58%, transparent 60%),
    conic-gradient(var(--navy) calc(var(--score) * 1%), #e9edf3 0);
  color: var(--navy);
  font-size: 10px;
  font-weight: 850;
}

.facts-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 18px;
  margin: 16px 0 0;
}

.facts-list div {
  min-width: 0;
}

.facts-list dt,
.facts-list dd {
  margin: 0;
}

.facts-list dt {
  color: #8a94a4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.facts-list dd {
  overflow: hidden;
  margin-top: 3px;
  color: #344054;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-interest-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(280px, 1.3fr);
}

.vehicle-visual {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  background: #edf0f4;
}

.vehicle-visual img,
.vehicle-visual .vehicle-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-fallback {
  display: grid;
  min-height: 100%;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, #f8f9fb, #e9edf3);
  color: #9ba6b6;
}

.vehicle-fallback .icon {
  width: 52px;
  height: 52px;
}

.stock-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(17, 25, 54, 0.9);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.vehicle-interest-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 19px;
}

.vehicle-interest-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.32;
}

.vehicle-price {
  margin: 7px 0 15px;
  color: var(--navy);
  font-size: 21px;
  letter-spacing: -0.035em;
}

.vehicle-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: auto;
}

.vehicle-facts span,
.vehicle-facts small {
  display: block;
}

.vehicle-facts span {
  min-width: 0;
  padding: 9px;
  border-radius: 8px;
  background: #f5f7fa;
  color: #3f4a5c;
  font-size: 10px;
  font-weight: 750;
}

.vehicle-facts small {
  margin-bottom: 2px;
  color: #9099a8;
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.followup-panel {
  margin-bottom: 28px;
}

.followup-form {
  display: grid;
  grid-template-columns: 1fr 0.55fr 0.8fr 1.35fr auto;
  align-items: end;
  gap: 10px;
  padding: 0 20px 20px;
}

.followup-form label,
.form-grid label {
  display: grid;
  gap: 6px;
  color: #667085;
  font-size: 10px;
  font-weight: 800;
}

.followup-form input,
.followup-form select,
.form-grid input,
.form-grid select,
.form-grid textarea {
  font-size: 11px;
}

.finance-workspace {
  margin-bottom: 28px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.finance-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 11px;
}

.finance-kpis article {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(17, 25, 54, 0.04);
}

.finance-kpis span,
.finance-kpis strong {
  display: block;
}

.finance-kpis span {
  color: #828c9d;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.finance-kpis strong {
  margin-top: 4px;
  color: var(--navy);
  font-size: 17px;
  letter-spacing: -0.025em;
}

.finance-kpi--best {
  border-color: var(--navy) !important;
  background: var(--navy) !important;
}

.finance-kpi--best span {
  color: #aab4ca;
}

.finance-kpi--best strong {
  color: #fff;
}

.term-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.term-strip > span:first-child {
  margin-right: 5px;
  color: #7f8999;
  font-size: 10px;
  font-weight: 750;
}

.term-strip b {
  display: grid;
  min-width: 35px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: #f0f2f5;
  color: #8a94a3;
  font-size: 9px;
}

.term-strip b.has-proposal {
  background: var(--blue-soft);
  color: #3853a7;
}

.simulation-state {
  margin-left: auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber) !important;
  font-size: 9px !important;
  font-weight: 850 !important;
}

.proposal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 11px;
}

.proposal-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(17, 25, 54, 0.045);
}

.proposal-card.is-best {
  border-color: var(--navy);
  box-shadow: 0 8px 22px rgba(17, 25, 54, 0.11);
}

.proposal-card-head {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
}

.bank-avatar,
.bank-name i {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  background: #e9edf5;
  color: var(--navy);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.bank-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.proposal-card-head > div {
  min-width: 0;
  flex: 1;
}

.proposal-card-head strong,
.proposal-card-head small {
  display: block;
}

.proposal-card-head strong {
  color: var(--navy);
  font-size: 11px;
}

.proposal-card-head small {
  color: #8791a1;
  font-size: 8px;
}

.best-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #087342;
  font-size: 8px;
  font-weight: 850;
}

.best-chip .icon {
  width: 11px;
  height: 11px;
}

.proposal-main {
  padding: 17px 0 13px;
}

.proposal-main span,
.proposal-main strong {
  display: block;
}

.proposal-main span {
  color: #858f9f;
  font-size: 9px;
}

.proposal-main strong {
  margin-top: 2px;
  color: var(--navy);
  font-size: 20px;
  letter-spacing: -0.035em;
}

.proposal-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0;
}

.proposal-card dl div {
  min-width: 0;
  padding: 7px;
  border-radius: 7px;
  background: #f5f7fa;
}

.proposal-card dt,
.proposal-card dd {
  margin: 0;
}

.proposal-card dt {
  color: #919aa8;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.proposal-card dd {
  overflow: hidden;
  margin-top: 2px;
  color: #3e4859;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proposal-table-panel {
  overflow: hidden;
  box-shadow: none;
}

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

.proposal-table tr.is-best-row {
  background: #f4f7ff;
}

.bank-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bank-name i {
  width: 27px;
  height: 27px;
  border-radius: 8px;
}

.proposal-status,
.simulation-status {
  padding: 6px 8px;
  background: #f0f2f5;
  color: #687386;
}

.proposal-status--approved,
.proposal-status--selected,
.simulation-status--approved,
.simulation-status--contracted {
  background: var(--green-soft);
  color: #087342;
}

.proposal-status--rejected,
.simulation-status--rejected {
  background: var(--red-soft);
  color: var(--red);
}

.simulation-status--requested,
.simulation-status--collecting,
.simulation-status--submitted,
.simulation-status--partially_approved {
  background: var(--amber-soft);
  color: var(--amber);
}

.best-check {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
}

.best-check .icon {
  width: 14px;
  height: 14px;
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.45fr);
  align-items: start;
  gap: 14px;
}

.activity-composer {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 8px;
  margin: 0 20px 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f7f8fa;
}

.activity-composer input,
.activity-composer select {
  min-height: 38px;
  font-size: 11px;
}

.timeline {
  padding: 0 20px 19px;
}

.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  padding-bottom: 17px;
}

.timeline article:not(:last-child)::before {
  position: absolute;
  top: 34px;
  bottom: 0;
  left: 16px;
  width: 1px;
  background: #e2e6ec;
  content: "";
}

.timeline-icon {
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #dfe4eb;
  border-radius: 10px;
  background: #fff;
  color: #596882;
}

.timeline-icon .icon {
  width: 16px;
  height: 16px;
}

.timeline strong {
  color: #344054;
  font-size: 11px;
}

.timeline p {
  margin: 3px 0;
  color: #5e6879;
  font-size: 11px;
}

.timeline small {
  color: #969eab;
  font-size: 9px;
}

.client-goal-card {
  padding: 20px;
}

.client-goal-card h2 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 17px;
}

.client-goal-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.client-goal-card li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-goal-card li > span {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #eff2f6;
  color: var(--navy);
}

.client-goal-card li > span .icon {
  width: 17px;
  height: 17px;
}

.client-goal-card li strong,
.client-goal-card li small {
  display: block;
}

.client-goal-card li strong {
  color: #495466;
  font-size: 10px;
}

.client-goal-card li small {
  color: #7e8999;
  font-size: 9px;
}

.internal-note {
  margin: 17px 0 0;
  padding: 12px;
  border-radius: 10px;
  background: #f5f7fa;
  color: #657084;
  font-size: 10px;
  line-height: 1.55;
}

/* Dialog */

.hub-dialog {
  width: min(92vw, 760px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: var(--shadow-lg);
}

.hub-dialog::backdrop {
  background: rgba(9, 14, 30, 0.62);
  backdrop-filter: blur(3px);
}

.dialog-card {
  max-height: 92vh;
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
}

.dialog-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
}

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

.form-span {
  grid-column: 1 / -1;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

/* Conversas */

.inbox {
  display: grid;
  min-height: calc(100vh - 175px);
  grid-template-columns: minmax(250px, 0.78fr) minmax(430px, 1.35fr) minmax(240px, 0.58fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.inbox-list {
  border-right: 1px solid var(--line);
  background: #fafbfc;
}

.inbox-list-head {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.inbox-list-head .search-box {
  width: 100%;
  min-width: 0;
}

.inbox-tabs {
  display: flex;
  gap: 4px;
  margin-top: 9px;
}

.inbox-tabs button {
  padding: 5px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #7c8696;
  font-size: 9px;
  font-weight: 800;
}

.inbox-tabs button.is-active {
  background: #e9edf4;
  color: var(--navy);
}

.conversation-list {
  max-height: calc(100vh - 270px);
  overflow-y: auto;
}

.conversation-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border-bottom: 1px solid #edf0f4;
}

.conversation-row:hover {
  background: #f4f6f8;
}

.conversation-row.is-active {
  border-left: 3px solid var(--navy);
  background: #eef1f6;
}

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

.conversation-copy strong,
.conversation-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-copy strong {
  color: #344054;
  font-size: 11px;
}

.conversation-copy small {
  margin-top: 2px;
  color: #818b9b;
  font-size: 9px;
}

.conversation-meta {
  align-self: flex-start;
  text-align: right;
}

.conversation-meta time,
.conversation-meta b {
  display: block;
}

.conversation-meta time {
  color: #959daa;
  font-size: 8px;
}

.conversation-meta b {
  min-width: 18px;
  height: 18px;
  margin-top: 7px;
  margin-left: auto;
  padding: 3px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-size: 8px;
  text-align: center;
}

.chat-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #f5f7fa;
}

.chat-head {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.chat-head > div {
  min-width: 0;
  flex: 1;
}

.chat-head strong,
.chat-head small {
  display: block;
}

.chat-head strong {
  color: var(--navy);
  font-size: 12px;
}

.chat-head small {
  overflow: hidden;
  color: #818b9b;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-list {
  display: flex;
  min-height: 360px;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 18px;
}

.message {
  max-width: min(78%, 520px);
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: 0 3px 9px rgba(17, 25, 54, 0.04);
}

.message p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.message span {
  display: block;
  margin-top: 5px;
  font-size: 8px;
}

.message--customer {
  align-self: flex-start;
  border: 1px solid #e0e5ec;
  background: #fff;
  color: #354052;
}

.message--customer span {
  color: #929ba9;
}

.message--mine {
  align-self: flex-end;
  background: var(--navy);
  color: #fff;
}

.message--mine span {
  color: #aeb7cc;
  text-align: right;
}

.message-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.message-composer textarea {
  min-height: 48px;
  max-height: 120px;
  resize: none;
  font-size: 11px;
}

.composer-status {
  grid-column: 1 / -1;
  color: #8b94a4;
  font-size: 8px;
}

.context-panel {
  padding: 17px;
  border-left: 1px solid var(--line);
  background: #fff;
}

.context-profile {
  display: grid;
  place-items: center;
  padding: 6px 0 17px;
  text-align: center;
}

.context-profile strong,
.context-profile small {
  display: block;
}

.context-profile strong {
  margin-top: 8px;
  color: var(--navy);
  font-size: 12px;
}

.context-profile small {
  margin-top: 2px;
  color: #7f8999;
  font-size: 9px;
}

.context-score {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
  margin-bottom: 16px;
  padding: 11px;
  border-radius: 10px;
  background: #f5f7fa;
}

.context-score span {
  color: #6f7a8c;
  font-size: 9px;
  font-weight: 750;
}

.context-score strong {
  color: var(--navy);
  font-size: 10px;
}

.context-score i {
  grid-column: 1 / -1;
}

.context-vehicle {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.context-vehicle > img,
.context-vehicle > .vehicle-fallback {
  width: 100%;
  height: 110px;
  min-height: 110px;
  object-fit: cover;
}

.context-vehicle > span:last-child {
  display: block;
  padding: 10px;
}

.context-vehicle small,
.context-vehicle strong,
.context-vehicle b {
  display: block;
}

.context-vehicle small {
  color: #8c95a4;
  font-size: 8px;
  text-transform: uppercase;
}

.context-vehicle strong {
  margin-top: 3px;
  color: #3a4557;
  font-size: 10px;
  line-height: 1.4;
}

.context-vehicle b {
  margin-top: 6px;
  color: var(--navy);
  font-size: 13px;
}

/* Clientes e estoque */

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 13px;
}

.client-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.client-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-card-head > div {
  min-width: 0;
  flex: 1;
}

.client-card-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
}

.client-card-head p {
  overflow: hidden;
  margin: 2px 0 0;
  color: #808a9a;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-score {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin: 15px 0;
}

.client-score span {
  color: #778294;
  font-size: 9px;
  font-weight: 750;
}

.client-score strong {
  color: var(--navy);
  font-size: 10px;
}

.client-score i {
  grid-column: 1 / -1;
}

.client-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 0 14px;
}

.client-card dl div {
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: #f5f7fa;
}

.client-card dt,
.client-card dd {
  margin: 0;
}

.client-card dt {
  color: #939ba8;
  font-size: 7px;
  text-transform: uppercase;
}

.client-card dd {
  overflow: hidden;
  margin-top: 2px;
  color: #3f4a5b;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-badge {
  gap: 6px;
  padding: 7px 10px;
  background: var(--green-soft);
  color: #087342;
}

.sync-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.vehicle-table-list {
  padding: 5px 14px 14px;
}

.vehicle-row {
  display: grid;
  grid-template-columns: 76px minmax(260px, 1fr) 125px 90px 38px;
  align-items: center;
  gap: 13px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f4;
}

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

.vehicle-row-image {
  width: 76px;
  height: 57px;
  overflow: hidden;
  border-radius: 9px;
  background: #edf0f4;
}

.vehicle-row-image img,
.vehicle-row-image .vehicle-fallback {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.vehicle-row-image .vehicle-fallback .icon {
  width: 25px;
  height: 25px;
}

.vehicle-row-copy {
  min-width: 0;
}

.vehicle-row-copy strong,
.vehicle-row-copy span,
.vehicle-row-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-row-copy strong {
  color: var(--navy);
  font-size: 11px;
}

.vehicle-row-copy span {
  margin-top: 2px;
  color: #707b8c;
  font-size: 9px;
}

.vehicle-row-copy small {
  margin-top: 3px;
  color: #969eaa;
  font-size: 8px;
}

.vehicle-row-price {
  color: var(--navy);
  font-size: 12px;
}

.stock-status {
  padding: 6px 9px;
  background: #f0f2f5;
  color: #697386;
}

.stock-status--available {
  background: var(--green-soft);
  color: #087342;
}

.sidebar-backdrop {
  display: none;
}

/* Responsividade */

@media (max-width: 1250px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .proposal-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .followup-form {
    grid-template-columns: repeat(3, 1fr);
  }

  .followup-notes {
    grid-column: span 2;
  }

  .inbox {
    grid-template-columns: minmax(240px, 0.72fr) minmax(420px, 1.28fr);
  }

  .context-panel {
    display: none;
  }

  .client-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 1020px) {
  :root {
    --sidebar-width: 230px;
  }

  .dashboard-grid,
  .lead-summary-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-interest-card {
    grid-template-columns: 220px 1fr;
  }

  .history-layout {
    grid-template-columns: 1fr;
  }

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

  .global-search {
    max-width: 320px;
  }
}

@media (max-width: 820px) {
  .sidebar {
    width: min(286px, 86vw);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-close {
    display: inline-flex;
  }

  .sidebar-backdrop {
    position: fixed;
    z-index: 55;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(8, 13, 27, 0.55);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .app-main {
    margin-left: 0;
  }

  .menu-button {
    display: inline-flex;
  }

  .topbar {
    gap: 10px;
  }

  .topbar-actions .button span {
    display: none;
  }

  .topbar-actions .button {
    width: 38px;
    padding: 0;
  }

  .avatar--top {
    display: grid;
  }

  .page {
    padding-top: 22px;
  }

  .inbox {
    grid-template-columns: 240px minmax(390px, 1fr);
    overflow-x: auto;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }

  .mobile-brand {
    display: block;
    margin-bottom: 32px;
    color: var(--navy);
    font-size: 17px;
    font-weight: 900;
  }
}

@media (max-width: 680px) {
  .topbar {
    height: 62px;
    padding: 0 13px;
  }

  .global-search {
    flex: 1;
    min-width: 0;
  }

  .global-search kbd,
  .notification-button {
    display: none;
  }

  .page {
    padding: 18px 13px 42px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .page-heading h1 {
    font-size: 23px;
  }

  .page-actions {
    width: 100%;
    overflow-x: auto;
  }

  .page-actions .button {
    flex: 1;
  }

  .metrics-grid,
  .metrics-grid--three {
    grid-template-columns: 1fr 1fr;
  }

  .metric-card {
    padding: 13px;
  }

  .metric-icon {
    width: 34px;
    height: 34px;
  }

  .metric-copy strong {
    font-size: 20px;
  }

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

  .panel-head {
    padding: 17px 15px 13px;
  }

  .funnel-list {
    padding: 2px 15px 15px;
  }

  .funnel-row {
    grid-template-columns: 92px 1fr 22px;
  }

  .conversion-strip {
    margin: 0 15px 15px;
  }

  .attention-panel .data-table {
    min-width: 760px;
  }

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

  .pipeline-toolbar .search-box {
    width: 100%;
  }

  .pipeline-hint {
    margin-left: 0;
  }

  .kanban {
    grid-auto-columns: minmax(84vw, 1fr);
  }

  .mobile-stage-select {
    display: grid;
    gap: 4px;
    margin-top: 10px;
    color: #8791a1;
    font-size: 8px;
  }

  .mobile-stage-select select {
    min-height: 35px;
    font-size: 10px;
  }

  .lead-summary-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-interest-card {
    grid-template-columns: 1fr;
  }

  .vehicle-visual {
    min-height: 220px;
  }

  .followup-form {
    grid-template-columns: 1fr;
    padding: 0 15px 15px;
  }

  .followup-notes {
    grid-column: auto;
  }

  .finance-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .finance-kpis article {
    padding: 13px;
  }

  .finance-kpis strong {
    font-size: 14px;
  }

  .term-strip {
    overflow-x: auto;
  }

  .term-strip > span:first-child {
    display: none;
  }

  .simulation-state {
    flex: 0 0 auto;
  }

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

  .proposal-table {
    min-width: 970px;
  }

  .activity-composer {
    grid-template-columns: 1fr;
    margin: 0 15px 15px;
  }

  .timeline {
    padding: 0 15px 15px;
  }

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

  .form-span {
    grid-column: auto;
  }

  .inbox {
    display: block;
    min-height: auto;
    overflow: visible;
  }

  .inbox-list {
    border-right: 0;
  }

  .conversation-list {
    max-height: 230px;
  }

  .chat-panel {
    min-height: 560px;
    border-top: 1px solid var(--line);
  }

  .message {
    max-width: 88%;
  }

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

  .vehicle-row {
    grid-template-columns: 70px minmax(0, 1fr) auto;
  }

  .vehicle-row-price {
    grid-column: 2;
  }

  .stock-status {
    grid-column: 3;
    grid-row: 1;
  }

  .vehicle-row > .icon-button {
    grid-column: 3;
    grid-row: 2;
  }

  .list-toolbar {
    flex-wrap: wrap;
    padding: 13px;
  }

  .list-toolbar .search-box {
    width: 100%;
  }

  .auth-card {
    padding: 27px 22px;
  }

  .login-form-panel {
    padding: 18px;
  }

  .toast {
    top: 72px;
    right: 13px;
  }
}

/* Estoque mestre do Leonardo Hub */
.inventory-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.inventory-kpis article {
  display: grid;
  gap: 3px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.inventory-kpis span,
.inventory-kpis small {
  color: var(--muted);
  font-size: 9px;
}

.inventory-kpis strong {
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
}

.inventory-kpis .has-error strong {
  color: var(--red);
}

.inventory-toolbar {
  gap: 10px;
}

.vehicle-row--managed {
  grid-template-columns: 76px minmax(260px, 1fr) 125px 155px auto;
}

.vehicle-row-statuses {
  display: grid;
  justify-items: start;
  gap: 5px;
}

.publication-status {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f0f2f5;
  color: #697386;
  font-size: 8px;
  font-weight: 850;
  white-space: nowrap;
}

.publication-status--published {
  background: var(--green-soft);
  color: #087342;
}

.publication-status--queued {
  background: var(--amber-soft);
  color: var(--amber);
}

.publication-status--error {
  background: var(--red-soft);
  color: var(--red);
}

.stock-status--reserved {
  background: var(--amber-soft);
  color: var(--amber);
}

.stock-status--sold,
.stock-status--inactive {
  background: #eef0f4;
  color: #6f7888;
}

.vehicle-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 14px;
}

.vehicle-editor,
.vehicle-editor-aside {
  display: grid;
  gap: 14px;
}

.vehicle-editor-aside {
  position: sticky;
  top: 82px;
}

.vehicle-form-section {
  overflow: hidden;
}

.vehicle-form-section .form-grid {
  padding: 0 21px 22px;
}

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

.form-grid--vehicle label > span,
.photo-url-field > span {
  color: #4d586b;
  font-size: 10px;
  font-weight: 850;
}

.form-grid--vehicle label small,
.photo-url-field small {
  color: #9098a7;
  font-size: 8px;
  font-weight: 650;
}

.section-step {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  background: #eef1f7;
  color: var(--navy);
  font-size: 9px;
  font-weight: 900;
}

.vehicle-photo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0 21px 15px;
}

.vehicle-photo-grid figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0;
  border-radius: 10px;
  background: #eef1f4;
}

.vehicle-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-upload-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 21px 14px;
  padding: 18px;
  border: 1px dashed #cbd2dd;
  border-radius: 13px;
  background: #f8f9fb;
  color: var(--navy);
}

.photo-upload-box > .icon {
  width: 22px;
  height: 22px;
}

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

.photo-upload-box strong {
  font-size: 11px;
}

.photo-upload-box span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.photo-upload-box input {
  margin-left: auto;
  max-width: 260px;
  font-size: 9px;
}

.photo-url-field {
  display: grid;
  gap: 6px;
  padding: 0 21px 22px;
}

.vehicle-publish-card {
  display: grid;
  gap: 18px;
  padding: 20px 21px;
}

.publish-toggle {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.publish-toggle input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--navy);
}

.publish-toggle strong,
.publish-toggle small {
  display: block;
}

.publish-toggle strong {
  color: var(--navy);
  font-size: 11px;
}

.publish-toggle small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

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

.publication-summary,
.publication-flow {
  padding: 19px;
}

.publication-hero {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 13px 0;
  padding: 12px;
  border-radius: 12px;
  background: #f2f4f7;
  color: var(--navy);
}

.publication-hero--published {
  background: var(--green-soft);
  color: #087342;
}

.publication-hero--queued {
  background: var(--amber-soft);
  color: var(--amber);
}

.publication-hero--error {
  background: var(--red-soft);
  color: var(--red);
}

.publication-hero .icon {
  width: 20px;
  height: 20px;
}

.publication-hero strong,
.publication-hero small {
  display: block;
}

.publication-hero strong {
  font-size: 10px;
}

.publication-hero small {
  margin-top: 2px;
  font-size: 8px;
  line-height: 1.45;
}

.publication-summary dl {
  margin: 0 0 14px;
}

.publication-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #edf0f4;
}

.publication-summary dt,
.publication-summary dd {
  margin: 0;
  font-size: 9px;
}

.publication-summary dt {
  color: var(--muted);
}

.publication-summary dd {
  color: var(--navy);
  font-weight: 850;
  text-align: right;
}

.publication-summary form,
.publication-summary > .button {
  margin-top: 8px;
}

.publication-flow ol {
  display: grid;
  gap: 10px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.publication-flow li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9199a7;
}

.publication-flow li b {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  background: #eef0f4;
  font-size: 9px;
}

.publication-flow li strong,
.publication-flow li small {
  display: block;
}

.publication-flow li strong {
  font-size: 9px;
}

.publication-flow li small {
  font-size: 8px;
}

.publication-flow li.is-done {
  color: #087342;
}

.publication-flow li.is-done b {
  background: var(--green-soft);
}

@media (max-width: 1120px) {
  .vehicle-editor-layout {
    grid-template-columns: 1fr;
  }

  .vehicle-editor-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-row--managed {
    grid-template-columns: 70px minmax(0, 1fr) auto;
  }

  .vehicle-row--managed .vehicle-row-price {
    grid-column: 2;
  }

  .vehicle-row--managed .vehicle-row-statuses {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .vehicle-row--managed > .button {
    grid-column: 3;
  }
}

@media (max-width: 760px) {
  .inventory-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid--vehicle,
  .vehicle-editor-aside {
    grid-template-columns: 1fr;
  }

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

  .photo-upload-box,
  .vehicle-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .photo-upload-box input {
    margin-left: 0;
    max-width: 100%;
  }

  .vehicle-form-actions .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .vehicle-row--managed {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .vehicle-row--managed .vehicle-row-statuses,
  .vehicle-row--managed > .button {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .vehicle-row--managed .vehicle-row-statuses {
    display: flex;
    flex-wrap: wrap;
  }
}

/* CRM inteligente · RC4 */

.smart-form {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px;
}

.smart-priority-panel {
  margin-top: 16px;
}

.priority-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.priority-dashboard-card {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.priority-dashboard-card:hover {
  transform: translateY(-2px);
  border-color: #9fb2df;
  box-shadow: 0 12px 24px rgba(17, 25, 54, .08);
}

.priority-dashboard-card > span:nth-child(2) {
  min-width: 0;
}

.priority-dashboard-card strong,
.priority-dashboard-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority-dashboard-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.priority-dashboard-card > b {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 12px;
  background: #edf2ff;
  color: #15214b;
}

.priority-dashboard-card--hot > b,
.priority-dashboard-card--high > b {
  background: #15214b;
  color: #fff;
}

.smart-form-section + .smart-form-section {
  margin-top: 24px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.smart-form .panel-head {
  padding: 0 0 16px;
}

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

.priority-command,
.stock-opportunities,
.buying-profile-panel {
  margin-top: 14px;
}

.priority-list {
  display: grid;
  gap: 8px;
  padding: 0 20px 20px;
}

.priority-client {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid #aab3c2;
  border-radius: 13px;
  background: #fff;
}

.priority-client--hot {
  border-left-color: var(--navy);
  background: linear-gradient(90deg, #f2f5ff, #fff 28%);
}

.priority-client--high {
  border-left-color: #3158d4;
}

.priority-client--warm {
  border-left-color: #d39a32;
}

.priority-score {
  display: grid;
  min-height: 58px;
  place-content: center;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.priority-score strong {
  font-size: 22px;
  line-height: 1;
}

.priority-score span {
  margin-top: 4px;
  color: #b8c1d4;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.priority-client-main {
  min-width: 0;
}

.priority-client-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.priority-client-title h3 {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
}

.priority-client-title p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.reason-chips,
.proposal-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reason-chips {
  margin-top: 9px;
}

.reason-chips span,
.proposal-awards span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #526075;
  font-size: 8px;
  font-weight: 750;
}

.priority-client-action {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.priority-label {
  color: var(--navy);
  font-size: 9px;
  font-weight: 850;
}

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

.match-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.match-card > img,
.match-card > .vehicle-fallback {
  width: 150px;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.match-card > div:last-child {
  padding: 14px;
}

.match-card h3 {
  margin: 8px 0 2px;
  color: var(--navy);
  font-size: 12px;
}

.match-card p {
  margin: 0;
  color: #657084;
  font-size: 10px;
}

.match-count {
  color: #3158d4;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.match-clients {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.match-clients a {
  color: #405172;
  font-size: 9px;
  font-weight: 700;
}

.commercial-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
  padding: 10px 11px;
  border-radius: 10px;
  background: #f3f5f9;
}

.commercial-score span,
.commercial-score b,
.commercial-score small {
  display: block;
}

.commercial-score b {
  color: var(--navy);
  font-size: 10px;
}

.commercial-score small {
  margin-top: 2px;
  color: #788397;
  font-size: 8px;
}

.commercial-score strong {
  color: var(--navy);
  font-size: 22px;
}

.commercial-score--hot {
  background: var(--navy);
}

.commercial-score--hot b,
.commercial-score--hot strong {
  color: #fff;
}

.commercial-score--hot small {
  color: #b9c3d7;
}

.score-ring--priority {
  width: 60px;
  height: 60px;
  background:
    radial-gradient(circle at center, #fff 58%, transparent 60%),
    conic-gradient(#3158d4 calc(var(--score) * 1%), #e9edf3 0);
  font-size: 15px;
}

.priority-reasons {
  display: grid;
  gap: 6px;
  margin: 15px 0;
}

.priority-reasons span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #455167;
  font-size: 9px;
  font-weight: 700;
}

.priority-reasons .icon {
  width: 13px;
  height: 13px;
  color: #3158d4;
}

.profile-freshness {
  color: #7e899b;
  font-size: 9px;
}

.buying-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 0 20px 12px;
}

.buying-profile-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e7eaf0;
  border-radius: 11px;
  background: #f8f9fb;
}

.buying-profile-grid span,
.buying-profile-grid strong {
  display: block;
}

.buying-profile-grid span {
  color: #8791a1;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.buying-profile-grid strong {
  margin-top: 5px;
  color: var(--navy);
  font-size: 11px;
}

.preference-block {
  padding: 0 20px 20px;
}

.preference-block > span {
  color: #667085;
  font-size: 9px;
  font-weight: 800;
}

/* Radar comercial: favoritos e navegação do cliente */
.customer-radar-panel {
  margin: 14px 0;
  overflow: hidden;
}

.customer-radar-head {
  align-items: flex-start;
  padding-bottom: 18px;
  background: linear-gradient(115deg, #fff 0%, #fff 62%, #f1f4fb 100%);
  border-bottom: 1px solid #edf0f4;
}

.customer-radar-head p {
  max-width: 700px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.radar-head-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.radar-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid #dfe4ec;
  border-radius: 999px;
  background: #fff;
  color: #5c687a;
  font-size: 10px;
  font-weight: 750;
}

.radar-chip b {
  color: var(--navy);
  font-size: 12px;
}

.radar-chip .icon {
  width: 15px;
  height: 15px;
}

.radar-chip--favorite {
  border-color: #cfd8f1;
  background: #f0f3fb;
  color: var(--navy);
}

.radar-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border-bottom: 1px solid #e9edf3;
  background: #e9edf3;
}

.radar-insights article {
  min-width: 0;
  padding: 15px 20px;
  background: #f9fafc;
}

.radar-insights span,
.radar-insights strong,
.radar-insights small {
  display: block;
}

.radar-insights span {
  color: #8791a1;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.radar-insights strong {
  margin-top: 4px;
  overflow: hidden;
  color: var(--navy);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radar-insights small {
  margin-top: 2px;
  overflow: hidden;
  color: #8a94a5;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}

.favorite-vehicle-card {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(190px, .78fr) minmax(250px, 1.22fr);
  overflow: hidden;
  border: 1px solid #dfe4ec;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(17, 25, 54, .07);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.favorite-vehicle-card:hover {
  transform: translateY(-2px);
  border-color: #bfcbe8;
  box-shadow: 0 15px 30px rgba(17, 25, 54, .11);
}

.favorite-vehicle-media {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  background: #eef1f5;
}

.favorite-vehicle-media > img,
.favorite-vehicle-media > .vehicle-fallback {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.vehicle-interest-badge,
.favorite-vehicle-media > .stock-status {
  position: absolute;
  z-index: 1;
  top: 12px;
}

.vehicle-interest-badge {
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(17, 25, 54, .92);
  box-shadow: 0 5px 14px rgba(17, 25, 54, .18);
  color: #fff;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.vehicle-interest-badge .icon {
  width: 12px;
  height: 12px;
  color: #d6b66a;
}

.favorite-vehicle-media > .stock-status {
  right: 12px;
  max-width: calc(100% - 130px);
  box-shadow: 0 4px 12px rgba(17, 25, 54, .11);
}

.favorite-vehicle-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 17px;
}

.favorite-vehicle-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 13px;
}

.favorite-vehicle-title > div {
  min-width: 0;
}

.favorite-vehicle-title span {
  display: block;
  color: #71809a;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.favorite-vehicle-title h3 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.25;
}

.favorite-vehicle-title > strong {
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 14px;
  white-space: nowrap;
}

.favorite-vehicle-facts {
  margin: 10px 0 0;
  color: #626f83;
  font-size: 10px;
  font-weight: 650;
}

.favorite-signal-time {
  margin: 6px 0 15px;
  color: #98a1af;
  font-size: 8px;
}

.favorite-vehicle-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: auto;
}

.favorite-vehicle-actions .button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 10px;
}

.favorite-vehicle-actions .button .icon {
  width: 14px;
  height: 14px;
}

.favorite-site-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: #526075;
  font-size: 9px;
  font-weight: 800;
}

.favorite-site-link .icon {
  width: 13px;
  height: 13px;
}

.radar-empty-state {
  display: flex;
  min-height: 128px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px;
  padding: 22px;
  border: 1px dashed #cbd3df;
  border-radius: 14px;
  background: #fafbfc;
}

.radar-empty-state > span {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: #edf1f8;
  color: var(--navy);
}

.radar-empty-state strong,
.radar-empty-state p {
  display: block;
  margin: 0;
}

.radar-empty-state strong {
  color: var(--navy);
  font-size: 12px;
}

.radar-empty-state p {
  max-width: 620px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.recent-views-block {
  padding: 4px 20px 20px;
}

.recent-views-block > .muted {
  margin: 0;
  padding: 14px;
  border: 1px dashed #cbd3df;
  border-radius: 12px;
  background: #fafbfc;
  color: var(--muted);
  font-size: 10px;
}

.radar-subhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0 10px;
  border-top: 1px solid #edf0f4;
}

.radar-subhead h3 {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
}

.radar-subhead > small {
  color: #939cab;
  font-size: 8px;
}

.recent-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.recent-vehicle-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid #e4e8ef;
  border-radius: 12px;
  background: #fff;
}

.recent-vehicle-image {
  width: 66px;
  height: 54px;
  overflow: hidden;
  border-radius: 9px;
  background: #eef1f5;
}

.recent-vehicle-image > img,
.recent-vehicle-image > .vehicle-fallback {
  width: 100%;
  height: 100%;
  min-height: 54px;
  object-fit: cover;
}

.recent-vehicle-card > div:nth-child(2) {
  min-width: 0;
}

.recent-vehicle-card span,
.recent-vehicle-card strong,
.recent-vehicle-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-vehicle-card span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #748096;
  font-size: 7px;
  font-weight: 850;
  text-transform: uppercase;
}

.recent-vehicle-card span .icon {
  width: 11px;
  height: 11px;
}

.recent-vehicle-card strong {
  margin-top: 3px;
  color: var(--navy);
  font-size: 10px;
}

.recent-vehicle-card small {
  margin-top: 2px;
  color: #7b8697;
  font-size: 8px;
}

.recent-favorite-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin-top: 5px;
  padding: 3px 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--navy);
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-favorite-tag .icon {
  width: 10px;
  height: 10px;
  color: #9a6b12;
}

.favorite-history {
  margin: 0 20px 20px;
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  background: #fafbfc;
}

.favorite-history summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 13px;
  color: #536075;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.favorite-history summary::-webkit-details-marker {
  display: none;
}

.favorite-history summary .icon {
  width: 14px;
  height: 14px;
}

.favorite-history summary span {
  margin-left: auto;
  color: #929baa;
  font-size: 8px;
  font-weight: 650;
}

.favorite-history-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.favorite-history-list article {
  display: grid;
  min-width: 0;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px;
  border: 1px solid #e7eaf0;
  border-radius: 10px;
  background: #fff;
}

.favorite-history-image {
  width: 48px;
  height: 40px;
  overflow: hidden;
  border-radius: 7px;
}

.favorite-history-image > img,
.favorite-history-image > .vehicle-fallback {
  width: 100%;
  height: 100%;
  min-height: 40px;
  object-fit: cover;
}

.favorite-history-list article > div:nth-child(2) {
  min-width: 0;
}

.favorite-history-list strong,
.favorite-history-list span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-history-list strong {
  color: #4d596c;
  font-size: 9px;
}

.favorite-history-list span,
.favorite-history-list a {
  color: #929baa;
  font-size: 8px;
}

.favorite-history-list a {
  font-weight: 800;
}

.followup-form {
  grid-template-columns: repeat(5, minmax(135px, 1fr));
}

.followup-form > button {
  align-self: end;
}

.inline-start-finance {
  display: flex;
  width: min(100%, 480px);
  gap: 8px;
  margin: 16px auto 0;
}

.proposal-awards {
  min-height: 24px;
  margin: -5px 0 11px;
}

.proposal-awards span {
  background: var(--blue-soft);
  color: #3853a7;
}

.attachment-list {
  display: grid;
  min-width: 135px;
  gap: 5px;
}

.attachment-list > a {
  display: flex;
  max-width: 190px;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  color: #3158d4;
  font-size: 9px;
  font-weight: 750;
  text-overflow: ellipsis;
}

.attachment-list .icon {
  width: 13px;
  height: 13px;
}

.attachment-form input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.attachment-form label {
  cursor: pointer;
}

.dialog-card--wide {
  width: min(92vw, 900px);
}

.form-grid label small {
  color: #8993a3;
  font-size: 8px;
  font-weight: 500;
}

@media (max-width: 1100px) {
  .priority-dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .buying-profile-grid,
  .form-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .followup-form {
    grid-template-columns: repeat(3, minmax(135px, 1fr));
  }

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

  .radar-insights,
  .recent-vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .favorite-vehicle-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .priority-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .smart-form {
    padding: 15px;
  }

  .form-grid--three,
  .buying-profile-grid {
    grid-template-columns: 1fr;
  }

  .priority-list,
  .match-grid,
  .buying-profile-grid,
  .preference-block {
    padding-right: 15px;
    padding-left: 15px;
  }

  .priority-client {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .priority-client-action {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
  }

  .match-card {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .match-card > img,
  .match-card > .vehicle-fallback {
    width: 105px;
    min-height: 140px;
  }

  .followup-form {
    grid-template-columns: 1fr;
  }

  .customer-radar-head,
  .radar-subhead {
    align-items: flex-start;
    flex-direction: column;
  }

  .radar-head-chips {
    justify-content: flex-start;
  }

  .radar-insights,
  .recent-vehicle-grid,
  .favorite-history-list {
    grid-template-columns: 1fr;
  }

  .favorite-vehicle-grid,
  .recent-views-block {
    padding-right: 15px;
    padding-left: 15px;
  }

  .favorite-vehicle-card {
    grid-template-columns: 1fr;
  }

  .favorite-vehicle-media,
  .favorite-vehicle-media > img,
  .favorite-vehicle-media > .vehicle-fallback {
    min-height: 220px;
    max-height: 260px;
  }

  .favorite-vehicle-title {
    display: block;
  }

  .favorite-vehicle-title > strong {
    display: block;
    margin-top: 8px;
  }

  .favorite-site-link {
    margin-left: 0;
  }

  .inline-start-finance {
    align-items: stretch;
    flex-direction: column;
  }
}

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

  .metric-copy small {
    white-space: normal;
  }

  .facts-list {
    grid-template-columns: 1fr;
  }

  .finance-kpis {
    grid-template-columns: 1fr;
  }

  .dialog-card {
    padding: 18px 14px;
  }
}

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


/* Administração e operação de produção — RC4 */

.metric-card--danger .metric-icon {
  background: var(--red-soft);
  color: var(--red);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.52fr) minmax(0, 1.48fr);
  align-items: start;
  gap: 15px;
}

.admin-layout > .panel {
  min-width: 0;
}

.security-chip,
.database-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #cce7d8;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.security-chip .icon {
  width: 14px;
  height: 14px;
}

.database-chip {
  border-color: #d8deec;
  background: #f0f3f9;
  color: var(--navy);
  letter-spacing: .08em;
}

.admin-form {
  display: grid;
  gap: 13px;
  padding: 0 20px 20px;
}

.admin-form label,
.password-reset-card label {
  display: grid;
  gap: 6px;
}

.admin-form label > span,
.password-reset-card label > span {
  color: #596579;
  font-size: 10px;
  font-weight: 800;
}

.admin-form .button {
  justify-self: start;
}

.admin-form--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcfd;
}

.admin-form--compact .button {
  align-self: end;
}

.form-guidance {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: -1px 0 2px;
  padding: 10px 11px;
  border-radius: 10px;
  background: #f3f5f8;
  color: #687387;
  font-size: 10px;
}

.form-guidance .icon {
  width: 15px;
  height: 15px;
  color: var(--navy);
}

.team-list {
  border-top: 1px solid var(--line);
}

.team-member {
  border-bottom: 1px solid var(--line);
}

.team-member:last-child {
  border-bottom: 0;
}

.team-member > summary {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  list-style: none;
}

.team-member > summary::-webkit-details-marker {
  display: none;
}

.team-member > summary > .icon {
  width: 17px;
  height: 17px;
  color: #8a94a6;
  transition: transform 160ms ease;
}

.team-member[open] > summary > .icon {
  transform: rotate(90deg);
}

.team-member.is-inactive > summary {
  opacity: .62;
}

.team-member-copy {
  min-width: 0;
}

.team-member-copy strong,
.team-member-copy small {
  display: block;
}

.team-member-copy strong {
  color: var(--navy);
  font-size: 12px;
}

.team-member-copy small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-chip,
.account-state,
.job-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.role-chip {
  background: #edf1f7;
  color: var(--navy);
}

.role-chip--seller {
  background: var(--blue-soft);
  color: #3650a3;
}

.role-chip--finance {
  background: var(--green-soft);
  color: var(--green);
}

.role-chip--manager {
  background: var(--amber-soft);
  color: var(--amber);
}

.account-state {
  background: #f0f2f5;
  color: #7d8797;
}

.account-state.is-active {
  background: var(--green-soft);
  color: var(--green);
}

.team-member-details {
  padding: 0 20px 18px 72px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.mini-stats div {
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.mini-stats div:last-child {
  border-right: 0;
}

.mini-stats dt,
.mini-stats dd {
  margin: 0;
}

.mini-stats dt {
  color: #7c8798;
  font-size: 9px;
  font-weight: 750;
}

.mini-stats dd {
  margin-top: 2px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
}

.team-actions-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr);
  gap: 10px;
}

.password-reset-card {
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 16px;
  border: 1px solid #d8deec;
  border-radius: 13px;
  background: #f4f6fa;
}

.password-reset-card h3 {
  margin: 1px 0 3px;
  color: var(--navy);
  font-size: 14px;
}

.password-reset-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.health-banner {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding: 18px 20px;
  border: 1px solid #cce7d8;
  border-radius: var(--radius);
  background: linear-gradient(110deg, #f5fcf8, #fff);
  box-shadow: var(--shadow);
}

.health-banner.needs-attention {
  border-color: #f0d7ad;
  background: linear-gradient(110deg, #fff9ec, #fff);
}

.health-banner .health-icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: var(--green);
  color: #fff;
}

.health-banner.needs-attention .health-icon {
  background: var(--amber);
}

.health-banner h2 {
  margin: 0;
  color: var(--navy);
  font-size: 17px;
}

.health-banner p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

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

.check-list {
  display: grid;
  padding: 0 20px 18px;
}

.check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(100px, auto);
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f4;
}

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

.check-row-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: var(--amber-soft);
  color: var(--amber);
}

.check-row-icon.is-ok {
  background: var(--green-soft);
  color: var(--green);
}

.check-row-icon .icon {
  width: 15px;
  height: 15px;
}

.check-row strong,
.check-row small {
  display: block;
}

.check-row strong {
  color: var(--navy);
  font-size: 11px;
}

.check-row small {
  overflow: hidden;
  max-width: 440px;
  margin-top: 2px;
  color: #8a94a6;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-row > b {
  color: #475367;
  font-size: 10px;
  text-align: right;
}

.signal-list {
  display: grid;
  margin: 0;
  padding: 0 20px;
}

.signal-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f4;
}

.signal-list dt,
.signal-list dd {
  margin: 0;
}

.signal-list dt {
  color: var(--muted);
  font-size: 10px;
}

.signal-list dd {
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  text-align: right;
}

.worker-note {
  display: flex;
  gap: 10px;
  margin: 13px 20px 18px;
  padding: 11px 12px;
  border-radius: 11px;
  background: #f1f3f7;
  color: var(--navy);
}

.worker-note p,
.worker-note strong,
.worker-note span {
  display: block;
  margin: 0;
}

.worker-note strong {
  font-size: 10px;
}

.worker-note span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.worker-note .icon {
  width: 17px;
  height: 17px;
}

.job-status {
  background: #eef1f5;
  color: #626e81;
}

.job-status--done {
  background: var(--green-soft);
  color: var(--green);
}

.job-status--pending,
.job-status--processing {
  background: var(--amber-soft);
  color: var(--amber);
}

.job-status--failed {
  background: var(--red-soft);
  color: var(--red);
}

.technical-detail {
  max-width: 310px;
  color: #7b8596 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px !important;
}

.table-actions {
  display: flex;
  justify-content: flex-end;
  padding: 12px 18px 18px;
  border-top: 1px solid var(--line);
}

.integration-event-list {
  display: grid;
  padding: 0 20px 18px;
}

.integration-event-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f4;
}

.integration-event-list article:last-child {
  border-bottom: 0;
}

.integration-event-list strong,
.integration-event-list small {
  display: block;
}

.integration-event-list strong {
  color: var(--navy);
  font-size: 11px;
}

.integration-event-list small {
  margin-top: 2px;
  color: #8791a2;
  font-size: 9px;
}

.integration-event-list p {
  margin: 4px 0 0;
  color: var(--red);
  font-size: 9px;
}

.event-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--amber-soft);
  color: var(--amber);
}

.event-mark--done {
  background: var(--green-soft);
  color: var(--green);
}

.event-mark--failed {
  background: var(--red-soft);
  color: var(--red);
}

.event-mark .icon {
  width: 15px;
  height: 15px;
}

@media (max-width: 1120px) {
  .admin-layout,
  .team-actions-grid {
    grid-template-columns: 1fr;
  }

  .admin-layout > .panel:first-child {
    position: static;
  }
}

@media (max-width: 820px) {
  .diagnostics-grid {
    grid-template-columns: 1fr;
  }

  .team-member > summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .team-member > summary .account-state {
    display: none;
  }

  .team-member > summary > .icon {
    display: none;
  }
}

@media (max-width: 680px) {
  .health-banner {
    align-items: flex-start;
    padding: 15px;
  }

  .health-banner h2 {
    font-size: 15px;
  }

  .admin-form--compact,
  .mini-stats {
    grid-template-columns: 1fr;
  }

  .mini-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mini-stats div:last-child {
    border-bottom: 0;
  }

  .team-member > summary {
    padding: 13px 15px;
  }

  .team-member-details {
    padding: 0 15px 15px;
  }

  .role-chip {
    display: none;
  }

  .check-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .check-row > b {
    grid-column: 2;
    text-align: left;
  }

  .signal-list div {
    display: grid;
    gap: 3px;
  }

  .signal-list dd {
    text-align: left;
  }
}

/* Leonardo Hub 7.0 · central de comando e leitura confortável */

@media (min-width: 821px) {
  body {
    font-size: 15px;
  }

  .nav-item {
    min-height: 46px;
    font-size: 14px;
  }

  .nav-section,
  .eyebrow {
    font-size: 11px;
  }

  .sync-card strong,
  .sidebar-user-copy strong {
    font-size: 13px;
  }

  .sync-card small,
  .sidebar-user-copy small {
    font-size: 11px;
  }

  .global-search input {
    font-size: 13px;
  }

  .page-heading h1 {
    font-size: 31px;
  }

  .page-heading p {
    font-size: 15px;
  }

  .panel-head h2,
  .section-heading h2 {
    font-size: 19px;
  }

  .panel-head p,
  .section-heading p,
  .panel-help,
  .text-link,
  .text-button {
    font-size: 13px;
  }

  .button {
    font-size: 14px;
  }

  .metric-copy span,
  .metric-copy small {
    font-size: 12px;
  }

  .metric-copy strong {
    font-size: 27px;
  }

  .funnel-row,
  .facts-list,
  .timeline,
  .activity-composer,
  .client-score,
  .profile-card p,
  .data-table,
  .table-wrap table {
    font-size: 13px;
  }

  .form-grid label > span,
  .smart-form label > span,
  .admin-form label > span {
    font-size: 12px;
  }

  .form-grid label small,
  .favorite-signal-time,
  .attachment-list > a {
    font-size: 10px;
  }

  .favorite-vehicle-title span,
  .vehicle-interest-badge,
  .radar-insights span,
  .radar-insights small {
    font-size: 10px;
  }

  .favorite-vehicle-title h3,
  .favorite-vehicle-title > strong,
  .radar-insights strong {
    font-size: 15px;
  }

  .favorite-vehicle-facts {
    font-size: 12px;
  }

  .favorite-vehicle-actions .button {
    font-size: 12px;
  }
}

.ai-command-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, .85fr);
  gap: 28px;
  overflow: hidden;
  margin-bottom: 15px;
  padding: 28px;
  border: 1px solid #25345f;
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 18%, rgba(81, 111, 207, .34), transparent 22rem),
    linear-gradient(135deg, #101832 0%, #172347 100%);
  box-shadow: 0 18px 45px rgba(17, 25, 54, .18);
  color: #fff;
}

.ai-command-card::after {
  position: absolute;
  width: 240px;
  height: 240px;
  right: -100px;
  bottom: -150px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  content: "";
}

.ai-command-main {
  position: relative;
  z-index: 1;
  align-self: center;
}

.ai-command-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: #cbd6f4;
  font-size: 12px;
  letter-spacing: .02em;
}

.ai-command-label > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.ai-command-label .icon {
  width: 16px;
  height: 16px;
}

.ai-command-label strong {
  color: #fff;
  font-size: 13px;
}

.ai-command-label em {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: #aebce3;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  text-transform: uppercase;
}

.ai-command-main h2 {
  max-width: 760px;
  margin: 0 0 9px;
  color: #fff;
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.ai-command-main p {
  max-width: 760px;
  margin: 0;
  color: #c7d0e8;
  font-size: 15px;
}

.ai-command-main > small {
  display: block;
  margin-top: 14px;
  color: #91a3d2;
  font-size: 12px;
  font-weight: 700;
}

.ai-command-snapshot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .075);
  backdrop-filter: blur(8px);
}

.ai-command-snapshot > div {
  min-width: 0;
  padding: 20px 15px 16px;
  border-right: 1px solid rgba(255, 255, 255, .1);
}

.ai-command-snapshot > div:nth-child(3) {
  border-right: 0;
}

.ai-command-snapshot span,
.ai-command-snapshot strong,
.ai-command-snapshot small {
  display: block;
}

.ai-command-snapshot span {
  min-height: 34px;
  color: #b8c3df;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.ai-command-snapshot strong {
  margin: 5px 0;
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.ai-command-snapshot small {
  color: #8293c0;
  font-size: 10px;
}

.ai-command-snapshot > a {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 15px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.ai-command-snapshot > a:hover {
  background: rgba(255, 255, 255, .06);
}

.ai-command-snapshot > a .icon {
  width: 16px;
  height: 16px;
}

.command-metrics {
  margin-bottom: 15px;
}

.command-queue-panel {
  overflow: hidden;
  margin-bottom: 15px;
}

.command-panel-head {
  border-bottom: 1px solid var(--line);
}

.command-panel-head p {
  margin: 5px 0 0;
  color: var(--muted);
}

.command-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #59657a;
  font-size: 11px;
  font-weight: 750;
}

.command-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.command-task-list {
  display: grid;
}

.command-task {
  display: grid;
  grid-template-columns: 62px minmax(210px, 1.05fr) minmax(260px, 1.3fr) minmax(170px, .7fr) auto;
  align-items: center;
  gap: 17px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.command-task:last-child {
  border-bottom: 0;
}

.command-task:hover {
  background: #fafbfe;
}

.command-task--hot {
  box-shadow: inset 4px 0 0 var(--navy);
}

.command-task--high {
  box-shadow: inset 4px 0 0 #526cb4;
}

.command-task--warm {
  box-shadow: inset 4px 0 0 #d49a2a;
}

.command-score {
  display: grid;
  width: 58px;
  height: 58px;
  place-content: center;
  border: 1px solid #dbe2f2;
  border-radius: 16px;
  background: #f0f3fb;
  text-align: center;
}

.command-score strong,
.command-score span {
  display: block;
}

.command-score strong {
  color: var(--navy);
  font-size: 21px;
  line-height: 1;
}

.command-score span {
  margin-top: 4px;
  color: #76829a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.command-person {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.command-person > div {
  min-width: 0;
}

.command-person h3,
.command-person p,
.command-person small {
  display: block;
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-person h3 {
  color: var(--navy);
  font-size: 15px;
}

.command-person p {
  margin-top: 2px;
  color: #5e687b;
  font-size: 12px;
}

.command-person small {
  margin-top: 3px;
  color: #8a94a5;
  font-size: 10px;
}

.command-recommendation {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #e0e5f0;
  border-radius: 12px;
  background: #f7f8fc;
}

.command-recommendation span,
.command-recommendation strong {
  display: block;
}

.command-recommendation span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #536697;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.command-recommendation span .icon {
  width: 13px;
  height: 13px;
}

.command-recommendation strong {
  margin-top: 5px;
  color: #263049;
  font-size: 12px;
  line-height: 1.35;
}

.command-task-meta {
  display: grid;
  justify-items: start;
  gap: 5px;
}

.command-task-meta small,
.command-task-meta b {
  color: #7a8495;
  font-size: 10px;
  font-weight: 650;
}

.command-dashboard-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
}

.command-signals-panel {
  overflow: hidden;
}

.command-signals-panel .priority-dashboard-grid {
  padding: 0 20px 20px;
}

.priority-dashboard-card em {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #38496f;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority-next-action {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #dfe5f2;
  border-radius: 12px;
  background: #f7f9fd;
}

.priority-next-action span,
.priority-next-action strong {
  display: block;
}

.priority-next-action span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #536697;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.priority-next-action span .icon {
  width: 14px;
  height: 14px;
}

.priority-next-action strong {
  margin-top: 5px;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.35;
}

.client-ai-advisor {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 15px;
  padding: 19px 21px;
  border: 1px solid #ced8ee;
  border-radius: 17px;
  background: linear-gradient(105deg, #f8faff 0%, #eef3ff 100%);
  box-shadow: 0 7px 20px rgba(17, 25, 54, .06);
}

.client-ai-advisor--hot,
.client-ai-advisor--high {
  border-color: #aabbe4;
}

.client-ai-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
}

.client-ai-symbol .icon {
  width: 22px;
  height: 22px;
}

.client-ai-copy {
  min-width: 0;
}

.client-ai-copy > span {
  color: #536697;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.client-ai-copy h2 {
  margin: 4px 0;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.25;
}

.client-ai-copy p {
  margin: 0;
  color: #627089;
  font-size: 12px;
}

.client-ai-score {
  min-width: 82px;
  padding: 8px 15px;
  border-left: 1px solid #d4ddef;
  text-align: center;
}

.client-ai-score strong,
.client-ai-score span,
.client-ai-score small {
  display: block;
}

.client-ai-score strong {
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
}

.client-ai-score span {
  margin-top: 4px;
  color: #76829a;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.client-ai-score small {
  margin-top: 3px;
  color: #52638c;
  font-size: 9px;
  font-weight: 750;
}

.client-ai-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.proposal-dialog-intro {
  margin: -3px 0 16px;
  padding: 12px 14px;
  border: 1px solid #dbe3f4;
  border-radius: 11px;
  background: #f5f8ff;
  color: #526079;
  font-size: 13px;
}

.proposal-core-fields {
  padding-bottom: 17px;
}

.proposal-advanced {
  margin-top: 3px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fafbfc;
}

.proposal-advanced > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 14px 15px;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.proposal-advanced > summary::-webkit-details-marker {
  display: none;
}

.proposal-advanced > summary > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: #edf1f8;
}

.proposal-advanced > summary .icon {
  width: 15px;
  height: 15px;
}

.proposal-advanced > summary > small {
  color: #7d8799;
  font-size: 11px;
  font-weight: 500;
}

.proposal-advanced > summary > .icon {
  transition: transform .18s ease;
}

.proposal-advanced[open] > summary > .icon {
  transform: rotate(180deg);
}

.proposal-advanced > .form-grid {
  padding: 2px 15px 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1280px) {
  .ai-command-card {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr);
  }

  .command-task {
    grid-template-columns: 58px minmax(190px, .9fr) minmax(230px, 1.2fr) auto;
  }

  .command-task-meta {
    display: none;
  }

  .client-ai-advisor {
    grid-template-columns: auto minmax(260px, 1fr) auto;
  }

  .client-ai-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 1000px) {
  .ai-command-card,
  .command-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .command-task {
    grid-template-columns: 58px minmax(190px, .8fr) minmax(230px, 1fr) auto;
  }
}

@media (max-width: 820px) {
  .ai-command-card {
    padding: 21px;
  }

  .ai-command-main h2 {
    font-size: 25px;
  }

  .command-panel-head {
    align-items: flex-start;
  }

  .command-live {
    display: none;
  }

  .command-task {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .command-score {
    width: 50px;
    height: 50px;
  }

  .command-recommendation {
    grid-column: 2 / -1;
  }

  .client-ai-advisor {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

@media (max-width: 600px) {
  .ai-command-card {
    gap: 20px;
    padding: 18px;
    border-radius: 17px;
  }

  .ai-command-main h2 {
    font-size: 22px;
  }

  .ai-command-main p {
    font-size: 13px;
  }

  .ai-command-snapshot {
    grid-template-columns: 1fr;
  }

  .ai-command-snapshot > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .ai-command-snapshot span {
    min-height: 0;
  }

  .ai-command-snapshot strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 24px;
  }

  .command-task {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 14px;
  }

  .command-score {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .command-person .avatar {
    display: none;
  }

  .command-recommendation,
  .command-task > .button {
    grid-column: 1 / -1;
  }

  .command-task > .button {
    width: 100%;
  }

  .client-ai-advisor {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 16px;
  }

  .client-ai-score {
    display: none;
  }

  .client-ai-actions {
    grid-column: 1 / -1;
  }

  .client-ai-actions .button {
    flex: 1;
  }

  .proposal-advanced > summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .proposal-advanced > summary > small {
    display: none;
  }
}
