:root {
  --blue: #1b64c8;
  --blue-strong: #0b3f91;
  --blue-soft: #eef5ff;
  --line: #d9e2ef;
  --line-dark: #b8c6d8;
  --text: #172b4d;
  --muted: #5f6f89;
  --soft: #f4f6f9;
  --panel: #ffffff;
  --green: #07855f;
  --orange: #b65f00;
  --red: #c23934;
  --shadow: 0 1px 2px rgba(9, 30, 66, 0.12), 0 3px 8px rgba(9, 30, 66, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: #eef3f8;
  font-size: 14px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 16% 18%, rgba(27, 100, 200, 0.10), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(255, 183, 93, 0.16), transparent 26%),
    linear-gradient(135deg, #eef3f8 0%, #f8fbff 48%, #ffffff 100%);
}

.login-card {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 45px rgba(9, 30, 66, 0.16);
  padding: 26px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.login-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #ffb75d;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.login-brand small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.login-brand h1 {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.1;
}

.login-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.login-options {
  display: grid;
  gap: 10px;
}

.login-option {
  width: 100%;
  min-height: 54px;
  justify-content: flex-start;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--text);
  border-radius: 5px;
  padding: 12px;
  text-align: left;
}

.login-option:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.login-option strong {
  display: block;
  font-size: 14px;
}

.login-option small,
.login-note {
  color: var(--muted);
}

.login-note {
  display: block;
  margin-top: 16px;
  line-height: 1.4;
}

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

button,
.btn,
.file-btn {
  border: 1px solid #b8c6d8;
  background: #fff;
  color: var(--blue-strong);
  border-radius: 3px;
  padding: 7px 12px;
  cursor: pointer;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  line-height: 1;
}

button:hover,
.btn:hover,
.file-btn:hover {
  background: #f3f8ff;
}

.btn.primary,
button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn.danger,
button.danger {
  color: var(--red);
  border-color: #f0b8b5;
}

.btn.ghost,
button.ghost {
  background: #f7f9fc;
}

.app-top {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 54px;
  background: #fff;
  border-bottom: 3px solid var(--blue);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  box-shadow: 0 1px 0 rgba(9, 30, 66, 0.08);
  overflow: hidden;
}

.waffle {
  width: 25px;
  height: 25px;
  border: 0;
  display: grid;
  grid-template-columns: repeat(3, 5px);
  gap: 3px;
  padding: 3px;
  background: transparent;
}

.waffle span {
  width: 5px;
  height: 5px;
  background: #66788f;
  border-radius: 50%;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  color: #12345d;
  margin-right: 2px;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 0;
  flex: 1 1 auto;
  min-width: 260px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #b8c6d8 transparent;
}

.nav::-webkit-scrollbar {
  height: 5px;
}

.nav::-webkit-scrollbar-thumb {
  background: #b8c6d8;
  border-radius: 999px;
}

.nav button {
  border: 0;
  border-radius: 0;
  padding: 0 10px;
  color: #243b5a;
  background: transparent;
  min-height: 54px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.nav button.active {
  background: var(--blue-soft);
  color: var(--blue-strong);
  border-bottom: 3px solid var(--blue);
}

.top-search {
  flex: 0 1 360px;
  width: clamp(190px, 22vw, 360px);
  height: 34px;
  border: 1px solid #b8c6d8;
  border-radius: 3px;
  padding: 0 12px;
  color: var(--text);
}

.top-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  color: #67768a;
}

.profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.profile small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.1;
  color: #64748b;
}

.user-switch {
  width: 148px;
  height: 32px;
  border: 1px solid #d8e1ef;
  border-radius: 4px;
  background: #fff;
  color: #1f3558;
  padding: 0 8px;
  font-size: 12px;
  outline: none;
}

.user-switch:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(1, 118, 211, 0.15);
}

@media (max-width: 1280px) {
  .app-top {
    gap: 8px;
    padding: 0 10px;
  }

  .nav button {
    padding: 0 8px;
    font-size: 13px;
  }

  .top-search {
    flex-basis: 260px;
    width: 260px;
  }

  .top-icons .icon-btn[title="Ajuda"],
  .top-icons .icon-btn[title="Configurações"] {
    display: none;
  }
}

@media (max-width: 980px) {
  .brand {
    font-size: 18px;
  }

  .top-search {
    flex-basis: 190px;
    width: 190px;
  }

  .profile span:first-child {
    display: none;
  }
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}

.workspace {
  max-width: 1920px;
  margin: 0 auto;
  padding: 14px 14px 24px;
}

.object-header {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px 4px 0 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.object-icon {
  width: 36px;
  height: 36px;
  background: #ffb75d;
  color: #fff;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.object-title small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.object-title h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 650;
}

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

.metric-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  background: #092b5e;
  color: #fff;
  border-left: 1px solid #234b82;
  border-right: 1px solid #234b82;
}

.metric {
  padding: 10px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.metric small {
  display: block;
  color: #c7d7ee;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.metric strong {
  font-size: 18px;
}

.filters {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr auto;
  gap: 8px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-top: 0;
}

.filters select,
.filters input {
  min-height: 32px;
  border: 1px solid #b8c6d8;
  border-radius: 3px;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
}

.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  min-height: calc(100vh - 144px);
}

.subtabs {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
}

.subtabs button {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #304763;
  min-height: 42px;
  padding: 0 13px;
  white-space: nowrap;
}

.subtabs button.active {
  color: var(--blue-strong);
  border-bottom: 3px solid var(--blue);
  background: var(--blue-soft);
}

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

.pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 12px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: calc(100vh - 230px);
}

.formalization-board {
  background: #fff;
}

.formalization-toolbar {
  min-height: 42px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.formalization-toolbar strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.formalization-toolbar span {
  color: var(--muted);
  font-size: 12px;
}

.formalization-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.formalization-card {
  min-height: 74px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  color: var(--text);
}

.formalization-card small {
  color: #66788f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}

.formalization-card strong {
  font-size: 24px;
  line-height: 1;
}

.formalization-card span {
  color: var(--muted);
  font-size: 12px;
}

.mini-progress {
  width: 92px;
  height: 5px;
  border-radius: 999px;
  background: #e8edf4;
  overflow: hidden;
  margin-bottom: 5px;
}

.mini-progress span {
  display: block;
  height: 100%;
  background: var(--blue);
}

.doc-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
  max-width: 260px;
}

.doc-checklist button {
  border: 1px solid #d8e0ec;
  background: #fff;
  color: #465b78;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
}

.doc-checklist button.checked {
  border-color: #b9e8cf;
  background: #e8f6ef;
  color: var(--green);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f3f4f6;
  color: #66788f;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  white-space: nowrap;
}

tbody td {
  border-bottom: 1px solid var(--line);
  padding: 9px 12px;
  color: #273b59;
  vertical-align: middle;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover,
tbody tr.selected {
  background: #f3f8ff;
}

.linklike {
  color: #0b5cab;
  font-weight: 600;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  background: #e8f6ef;
  color: var(--green);
}

.status.warn {
  background: #fff2dd;
  color: var(--orange);
}

.status.danger {
  background: #fdebea;
  color: var(--red);
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.small-btn {
  min-height: 26px;
  padding: 4px 9px;
  font-size: 12px;
}

.small-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

.agenda-head {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.agenda-head small {
  color: #6b7a90;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
}

.agenda-head h2 {
  margin: 2px 0 4px;
  font-size: 20px;
}

.agenda-head p {
  margin: 0;
  color: var(--muted);
}

.agenda-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 8px;
}

.agenda-kpis article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  min-width: 92px;
}

.agenda-kpis strong {
  display: block;
  font-size: 20px;
}

.side-panel {
  border-left: 1px solid var(--line);
  padding: 16px;
  background: #fbfcfe;
}

.side-panel h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.side-muted {
  color: var(--muted);
  margin-bottom: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-box {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  padding: 10px;
}

.detail-box small {
  display: block;
  color: #75849a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  margin-bottom: 5px;
}

.board {
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 0;
  overflow: auto;
  height: calc(100vh - 188px);
}

.column {
  min-width: 220px;
  border-right: 1px solid var(--line);
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.column.drop-target {
  background: #edf5ff;
  box-shadow: inset 0 0 0 2px rgba(27, 100, 200, 0.35);
}

.column-head {
  background: #f3f4f6;
  border-bottom: 1px solid var(--line);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  font-weight: 650;
}

.column-list {
  padding: 10px;
  overflow: auto;
}

.deal-card {
  background: #fff;
  border: 1px solid #cfd9e6;
  border-radius: 4px;
  padding: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  overflow: visible;
  cursor: grab;
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.deal-card:active {
  cursor: grabbing;
}

.deal-card.dragging {
  opacity: 0.55;
  transform: rotate(1deg) scale(0.99);
  box-shadow: 0 8px 18px rgba(9, 30, 66, 0.18);
}

.deal-card h3 {
  margin: 0 0 6px;
  color: #0b5cab;
  font-size: 14px;
}

.deal-card p {
  margin: 3px 0;
  color: #41536d;
}

.menu-wrap {
  position: relative;
  display: inline-flex;
}

.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow);
  border-radius: 4px;
  padding: 6px 0;
}

.global-menu {
  position: fixed;
  right: auto;
  z-index: 80;
  width: 190px;
}

.archive-context {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcff;
  color: #213653;
}

.archive-context span {
  color: var(--muted);
  font-size: 13px;
}

.dropdown button {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #fff;
  justify-content: flex-start;
  color: #243b5a;
  padding: 8px 12px;
}

.dropdown button:hover {
  background: #f3f8ff;
}


.home-grid,
.dash-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 14px;
}

.dash-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  min-height: 210px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.dash-card.wide {
  grid-column: span 2;
}

.dash-card h3 {
  margin: 0 0 14px;
  color: #16365f;
  font-size: 18px;
  font-weight: 600;
}

.big-number {
  font-size: 38px;
  color: #216e6a;
  margin: 10px 0 6px;
}

.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 70px;
  gap: 10px;
  align-items: center;
  margin: 9px 0;
}

.bar {
  height: 18px;
  background: #e8eef6;
  border-radius: 3px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: #2d8cff;
}

.import-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 14px;
}

.import-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.import-card h3 {
  margin: 0 0 8px;
}

.import-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 20, 40, 0.28);
  display: grid;
  place-items: center;
}

.modal {
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 18px 60px rgba(9, 30, 66, 0.28);
  border: 1px solid var(--line-dark);
}

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

.modal-head h2 {
  margin: 0;
  font-size: 20px;
}

.modal-body {
  padding: 16px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--muted);
  font-size: 12px;
}

.field input,
.field select,
.field textarea {
  border: 1px solid #b8c6d8;
  border-radius: 3px;
  min-height: 34px;
  padding: 8px 10px;
}

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

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  background: #16365f;
  color: #fff;
  padding: 10px 14px;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.conversion-page {
  display: grid;
  gap: 12px;
}

.conversion-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.conversion-strip article {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}

.conversion-strip article:last-child {
  border-right: 0;
}

.conversion-strip small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.conversion-strip strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 22px;
}

.conversion-strip span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.report-page {
  padding: 14px;
}

.report-head {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.report-head small,
.section-title small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-head h2,
.section-title h3 {
  margin: 2px 0 4px;
  color: var(--text);
}

.report-head p {
  margin: 0;
  color: var(--muted);
}

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

.report-actions input {
  min-height: 34px;
  border: 1px solid #b8c6d8;
  border-radius: 3px;
  padding: 6px 10px;
  color: var(--text);
}

.report-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 12px;
}

.report-kpis article {
  background: #f8fbff;
  border-right: 1px solid var(--line);
  padding: 12px 14px;
}

.report-kpis article:last-child {
  border-right: 0;
}

.report-kpis small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.report-kpis strong {
  display: block;
  margin-top: 4px;
  color: var(--blue-dark);
  font-size: 22px;
}

.report-kpis span {
  color: var(--muted);
  font-size: 12px;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.report-card,
.report-table-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.report-card {
  padding: 14px;
}

.report-card h3 {
  margin: 0 0 12px;
}

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

.report-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.report-line:first-child {
  border-top: 0;
  padding-top: 0;
}

.report-line strong,
.report-line span {
  display: block;
}

.report-line span {
  color: var(--muted);
  font-size: 12px;
}

.report-line b {
  color: var(--blue-dark);
  white-space: nowrap;
}

.report-table-card {
  margin-top: 12px;
  overflow: hidden;
}

.section-title {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.empty-row {
  color: var(--muted);
  text-align: center;
  padding: 26px !important;
}

/* Inteligência Comercial */
.intel-shell {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: #f3f6fa;
}

.intel-products,
.prospecting-builder,
.prospecting-results,
.saved-strategies {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px;
  box-shadow: 0 1px 1px rgba(9, 30, 66, 0.04);
}

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

.section-heading small {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-heading h2 {
  margin: 3px 0 0;
  font-size: 19px;
  color: var(--text);
}

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

.product-card {
  min-height: 128px;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  padding: 14px;
  text-align: left;
  border-radius: 5px;
  color: var(--text);
  background: #fff;
}

.product-card.selected {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.product-card strong {
  color: #17365d;
}

.product-card small {
  color: var(--muted);
  line-height: 1.35;
}

.product-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: #ffb75d;
  color: #fff;
  font-weight: 800;
}

.strategy-badge {
  background: #e8f3ff;
  color: var(--blue-strong);
  border: 1px solid #bfd8fb;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
}

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

.prospecting-form label {
  display: grid;
  gap: 5px;
  color: #40536f;
  font-size: 12px;
  font-weight: 650;
}

.prospecting-form input,
.prospecting-form select {
  min-height: 36px;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
}

.field-warning {
  color: #b42318;
  font-size: 11px;
  font-weight: 500;
}

.prospecting-form .check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #f8fafc;
}

.prospecting-form .check-field input {
  min-height: auto;
}

.prospecting-actions,
.result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.empty-prospecting {
  min-height: 150px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--line-dark);
  background: #f8fafc;
}

.prospect-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.prospect-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1050px;
}

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

.prospect-table th {
  background: #f4f7fb;
  color: #40536f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
}

.prospect-table td strong,
.prospect-table td small {
  display: block;
}

.prospect-table td small {
  margin-top: 3px;
  color: var(--muted);
}

.score-tag {
  display: inline-flex;
  min-width: 34px;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 999px;
  background: #e7f7f1;
  color: var(--green);
  font-weight: 800;
}

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

.saved-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8fafc;
}

.saved-card span {
  font-size: 23px;
  font-weight: 750;
  color: var(--blue-strong);
}

.saved-card small {
  color: var(--muted);
}

.intelligence-metrics {
  background: #123a70;
}

.prospecting-actions button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.prospecting-results .side-muted {
  max-width: 760px;
}

.settings-layout {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.settings-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 16px;
}

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

.settings-head small,
.settings-card > small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-head h2,
.settings-card h2 {
  margin: 4px 0;
  color: var(--text);
  font-size: 18px;
}

.settings-head p {
  margin: 0;
  color: var(--muted);
}

.settings-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.settings-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 120px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.settings-row:first-child {
  border-top: 0;
}

.settings-row-head {
  background: #f4f6f9;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.settings-row strong {
  display: block;
  color: var(--text);
}

.settings-row small {
  color: var(--muted);
}

.settings-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.settings-pills span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--text);
  font-size: 12px;
}

mark.status-active,
mark.status-lost {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

mark.status-active {
  background: #dcfce7;
  color: #166534;
}

mark.status-lost {
  background: #fee2e2;
  color: #991b1b;
}

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

.quick-grid button {
  min-height: 74px;
  align-items: flex-start;
  justify-content: flex-start;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  text-align: left;
  flex-direction: column;
  line-height: 1.3;
}

.quick-grid strong {
  color: var(--text);
}

.quick-grid span {
  color: var(--muted);
  font-size: 12px;
}

.help-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.help-list article {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8fafc;
  padding: 12px;
}

.help-list h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 15px;
}

.help-list p {
  margin: 0;
  color: var(--muted);
}

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

  .side-panel {
    display: none;
  }

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

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

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

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

  .top-search {
    display: none;
  }

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

@media (max-width: 760px) {
  .app-top {
    overflow-x: auto;
  }

  .nav button {
    padding: 0 10px;
  }

  .object-header {
    flex-wrap: wrap;
  }

  .metric-strip,
  .home-grid,
  .dash-grid,
  .report-grid,
  .report-kpis,
  .conversion-strip,
  .import-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .product-grid,
  .prospecting-form,
  .saved-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
  }

  .settings-row,
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .settings-head {
    flex-direction: column;
  }
}
