:root {
  --brand-navy: #0B1320;
  --brand-blue: #1565FF;
  --brand-slate: #64748B;
  --brand-light: #E2E8F0;
  --brand-white: #FFFFFF;
  --brand-glow: rgba(21, 101, 255, 0.24);
  --primary: var(--brand-navy);
  --primary-dark: #07111f;
  --accent: var(--brand-blue);
  --bg-light: #f7faff;
  --text-muted: var(--brand-slate);
  --panel-border: var(--brand-light);
  --panel-shadow: 0 12px 30px rgba(13, 32, 56, 0.08);
  --blue: var(--brand-blue);
  --green: #2f9d58;
  --teal: var(--brand-blue);
  --orange: #5b9cff;
  --red: #d94c4c;
  --magenta: #315cbd;
  --purple: #0b49c9;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Marketing layout */
.marketing-body {
  background: #ffffff;
  color: #172033;
}

.marketing-navbar {
  min-height: 76px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(215, 224, 234, 0.9);
  box-shadow: 0 10px 30px rgba(13, 32, 56, 0.08);
  backdrop-filter: blur(14px);
}

.marketing-navbar .navbar-toggler {
  border: 1px solid #d7e0ea;
}

.marketing-navbar .navbar-toggler-icon {
  filter: invert(18%) sepia(26%) saturate(1228%) hue-rotate(174deg) brightness(89%) contrast(93%);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 800;
}

.brand-lockup:hover {
  color: var(--primary);
}

.navbar-dark .brand-lockup,
.navbar-dark .brand-lockup:hover {
  color: #fff;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-blue), #5b9cff);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-icon.brand-logo {
  background: none;
  color: inherit;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 10px 26px var(--brand-glow);
}

.marketing-navbar .nav-link {
  color: #4f5f73;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
}

.marketing-navbar .nav-link:hover,
.marketing-navbar .nav-link.active {
  color: var(--primary);
}

.navbar-cta {
  min-width: 104px;
  font-weight: 800;
}

.marketing-hero {
  position: relative;
  padding: 136px 0 72px;
  background:
    linear-gradient(135deg, rgba(11, 19, 32, 0.98), rgba(16, 31, 51, 0.9)),
    radial-gradient(circle at 78% 18%, rgba(21, 101, 255, 0.24), transparent 34%),
    linear-gradient(45deg, rgba(91, 156, 255, 0.16), transparent 46%);
  color: #fff;
  overflow: hidden;
}

.marketing-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--blue);
}

.hero-title {
  max-width: 700px;
  margin-bottom: 1.2rem;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 1.7rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.3rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-proof i {
  margin-right: 0.35rem;
  color: var(--teal);
}

.hero-metrics {
  max-width: 620px;
  margin-top: 1.55rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-metrics div {
  min-height: 88px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: #ffffff;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.1;
}

.hero-metrics span {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.product-preview {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.lead-desk-preview {
  transform: translateY(6px);
}

.preview-toolbar {
  min-height: 48px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dce5ee;
  background: #f8fbfd;
}

.preview-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 0.25rem;
  border-radius: 999px;
  background: #c9d5df;
}

.preview-label {
  color: #536273;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-summary-grid {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  background: linear-gradient(180deg, #ffffff, #f7fbfd);
  border-bottom: 1px solid #dce5ee;
}

.preview-summary-grid div {
  min-height: 82px;
  padding: 0.8rem;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #ffffff;
}

.preview-summary-grid span,
.preview-summary-grid strong {
  display: block;
}

.preview-summary-grid span {
  color: #667485;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-summary-grid strong {
  margin-top: 0.35rem;
  color: var(--primary);
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 900;
}

.preview-filter-row {
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  border-bottom: 1px solid #dce5ee;
  background: #ffffff;
}

.preview-filter-row span {
  min-height: 34px;
  padding: 0.5rem 0.65rem;
  border-radius: 999px;
  background: #eaf3f7;
  color: #315065;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  white-space: normal;
}

.preview-table {
  min-width: 520px;
}

.preview-head,
.preview-row {
  display: grid;
  grid-template-columns: 0.9fr 1.8fr 0.7fr 0.9fr 0.9fr;
}

.preview-head span {
  padding: 0.7rem 0.75rem;
  background: #edf3f8;
  color: #536273;
  font-size: 0.73rem;
  font-weight: 900;
}

.preview-row span {
  padding: 0.78rem 0.75rem;
  border-top: 1px solid #e5ebf1;
  color: #2b394a;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.preview-row.selected span {
  background: #dff2ff;
}

.preview-row span:last-child {
  color: var(--primary);
  font-weight: 900;
}

.preview-action-strip {
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  border-top: 1px solid #dce5ee;
  background: #f8fbfd;
}

.preview-action-strip span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #ffffff;
  color: #315065;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.preview-action-strip i {
  color: var(--teal);
  font-size: 0.95rem;
}

.section-padding {
  padding: 92px 0;
}

.bg-soft {
  background: #f4f8fb;
}

.section-heading {
  max-width: 740px;
  margin: 0 auto 3rem;
}

.section-heading h2,
.section-title {
  color: #172033;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.section-heading p,
.section-copy {
  color: #667485;
  font-size: 1.05rem;
  line-height: 1.7;
}

.service-card,
.step-card,
.trust-stat {
  border: 1px solid #dfe7ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(13, 32, 56, 0.08);
}

.service-card {
  padding: 1.4rem;
}

.service-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #eaf7f4;
  color: var(--teal);
  font-size: 1.35rem;
}

.service-card h3,
.step-card h3 {
  margin-bottom: 0.65rem;
  color: #172033;
  font-size: 1.08rem;
  font-weight: 900;
}

.service-card p,
.step-card p {
  margin-bottom: 0;
  color: #667485;
  font-size: 0.94rem;
  line-height: 1.65;
}

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

.step-card {
  min-height: 210px;
  padding: 1.35rem;
}

.step-card span {
  display: inline-flex;
  margin-bottom: 1.1rem;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 900;
}

.trust-panel {
  padding: 2rem;
  border: 1px solid #dfe7ef;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(13, 32, 56, 0.08);
}

.trust-panel h2 {
  margin-bottom: 0;
  color: #172033;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 900;
}

.trust-stat {
  min-height: 108px;
  padding: 1.1rem;
}

.trust-stat strong {
  display: block;
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 900;
}

.trust-stat span {
  display: block;
  margin-top: 0.4rem;
  color: #667485;
  font-size: 0.88rem;
  font-weight: 700;
}

.testimonial {
  margin: 1.25rem 0 0;
  padding-left: 1rem;
  border-left: 4px solid var(--accent);
  color: #405066;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 700;
}

.cta-banner {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #ffffff;
  box-shadow: 0 24px 56px rgba(7, 26, 49, 0.2);
}

.cta-banner h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 900;
}

.cta-banner p {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.02rem;
}

.marketing-footer {
  padding: 56px 0 26px;
  background: var(--brand-navy);
  color: #dce5ee;
}

.footer-brand {
  color: #ffffff;
}

.footer-copy {
  max-width: 360px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.marketing-footer h3 {
  margin-bottom: 0.8rem;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.marketing-footer a,
.marketing-footer span {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  font-size: 0.94rem;
}

.marketing-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom span {
  margin-bottom: 0;
  font-size: 0.84rem;
}

/* Navbar */
.navbar.bg-primary {
  background: linear-gradient(90deg, var(--brand-navy), #101f33) !important;
}

.navbar.bg-dark {
  background: linear-gradient(90deg, var(--brand-navy), #101f33) !important;
}

.btn-primary,
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #0b49c9;
  border-color: #0b49c9;
}

.btn-outline-primary {
  color: var(--brand-blue);
  border-color: rgba(21, 101, 255, 0.42);
}

.bg-primary {
  background-color: var(--brand-navy) !important;
}

.bg-accent {
  background-color: #dce9ff !important;
  color: var(--brand-navy) !important;
}

/* Hero */
.hero-section {
  min-height: 100vh;
  padding-top: 80px;
  padding-bottom: 60px;
  background:
    radial-gradient(circle at top left, rgba(21, 101, 255, 0.24), transparent 34%),
    linear-gradient(135deg, var(--brand-navy), #07111f);
  color: #fff;
}

.hero-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-accent {
  color: var(--accent);
}

.text-light-50 {
  color: rgba(255, 255, 255, 0.7);
}

/* Buttons */
.btn-accent {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 10px 28px var(--brand-glow);
}

.btn-accent:hover {
  background-color: #0b49c9;
  border-color: #0b49c9;
  color: #fff;
}

/* Features */
.feature-card {
  background-color: #fff;
  border-radius: 1rem;
  border: 1px solid #e3e6f0;
}

/* Steps */
.list-steps {
  list-style: none;
  padding-left: 0;
}

.list-steps li + li {
  margin-top: 1rem;
}

/* App preview */
.app-preview-card {
  border: 1px solid #e3e6f0;
}

/* Pricing */
.pt-6 {
  padding-top: 6rem;
}

.pricing-card {
  border: 1px solid #e3e6f0;
}

/* Footer */
footer {
  font-size: 0.875rem;
}

/* Auth pages */
.auth-body {
  background:
    radial-gradient(circle at top left, rgba(21, 101, 255, 0.24), transparent 34%),
    linear-gradient(135deg, var(--brand-navy), #07111f);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
}

.signup-auth-body {
  align-items: flex-start;
  padding: 2rem 0;
}

.signup-auth-body .auth-wrapper {
  max-width: 760px;
}

.auth-card {
  border-radius: 1.5rem;
}

/* Dashboard layout */
.dashboard-body {
  background:
    radial-gradient(circle at 18% 0%, rgba(21, 101, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(16, 43, 78, 0.05), rgba(238, 244, 248, 0.2) 220px),
    var(--bg-light);
  color: #172033;
}

.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.dashboard-sidebar {
  width: 260px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 30% 0%, rgba(21, 101, 255, 0.28), transparent 34%),
    linear-gradient(180deg, var(--brand-navy), #07111f);
  box-shadow: 10px 0 34px rgba(7, 17, 31, 0.2);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 10;
}

.dashboard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dashboard-header {
  min-height: 76px;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--panel-border);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 8;
}

.dashboard-content {
  flex: 1;
  padding: 1.1rem 1.25rem 1.6rem;
}

.sheet-body .dashboard-content {
  padding: 0.8rem;
}

.compact-dashboard-header {
  min-height: 64px;
}

.dashboard-brand {
  min-height: 76px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-brand h5 {
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  padding: 4px;
  object-fit: contain;
  background:
    center / 82% no-repeat url("../mytruckingleads-logo-icon.png"),
    #fff;
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0;
  box-shadow: 0 10px 24px var(--brand-glow);
  overflow: hidden;
}

.workspace-kicker {
  display: inline-block;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.dashboard-user {
  color: #485568;
  font-weight: 700;
}

.sidebar-link {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0.58rem 0.75rem;
  border-radius: 8px;
  color: rgba(226, 232, 240, 0.82);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.sidebar-link i {
  width: 1.25rem;
  margin-right: 0.45rem;
  font-size: 1rem;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(226, 232, 240, 0.1);
  color: #fff;
  transform: translateX(2px);
}

.sidebar-link.active {
  position: relative;
  background: linear-gradient(135deg, rgba(21, 101, 255, 0.26), rgba(91, 156, 255, 0.12));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.16), 0 8px 18px rgba(21, 101, 255, 0.2);
}

.sidebar-link.active::before {
  content: "";
  width: 3px;
  align-self: stretch;
  border-radius: 999px;
  background: var(--brand-blue);
  margin: -0.2rem 0.48rem -0.2rem -0.35rem;
}

.disabled-link {
  opacity: 0.5;
  pointer-events: none;
}

.tool-panel {
  background-color: #fff;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: var(--panel-shadow);
  overflow: hidden;
}

.panel-heading {
  min-height: 43px;
  padding: 0.62rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-heading span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.panel-heading i {
  font-size: 1rem;
}

.panel-heading-blue {
  background: linear-gradient(90deg, var(--brand-blue), #0b49c9);
}

.panel-heading-green {
  background: linear-gradient(90deg, #1d4ed8, var(--brand-blue));
}

.panel-heading-orange {
  background: linear-gradient(90deg, #315cbd, var(--brand-blue));
}

.panel-heading-red {
  background: linear-gradient(90deg, var(--red), #c8394e);
}

.panel-heading-magenta {
  background: linear-gradient(90deg, #0b49c9, #315cbd);
}

.panel-heading-purple {
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-blue));
}

.panel-badge {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  padding: 0.16rem 0.5rem;
  font-size: 0.68rem;
  line-height: 1.2;
}

.tool-panel .card-body {
  padding: 0.9rem;
}

.dashboard-toolbar {
  margin-bottom: 1rem;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.metric-chip {
  min-height: 66px;
  padding: 0.75rem 0.85rem;
  background: #fff;
  border: 1px solid var(--panel-border);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(13, 32, 56, 0.06);
}

.metric-chip:nth-child(2) {
  border-left-color: var(--orange);
}

.metric-chip:nth-child(3) {
  border-left-color: var(--teal);
}

.metric-chip strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1;
  color: #172033;
}

.metric-chip span {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: end;
}

.filter-grid > div {
  grid-column: span 2;
}

.filter-grid .filter-action {
  grid-column: span 2;
}

.filter-grid .filter-action .btn {
  width: 100%;
}

.form-label.small {
  margin-bottom: 0.25rem;
  color: #536273;
  font-weight: 800;
}

.form-control,
.form-select {
  border-color: #ced8e3;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.2rem rgba(31, 126, 208, 0.14);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.table-summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0.45rem 0.6rem;
  margin-bottom: 0.65rem;
  border-radius: 6px;
  background: #f4f7fb;
  color: #526174;
  font-size: 0.84rem;
  font-weight: 700;
}

.data-table {
  border: 1px solid #e7edf3;
}

.data-table thead th {
  background: #f4f7fb;
  color: #536273;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody td {
  font-size: 0.86rem;
  vertical-align: middle;
}

.compact-progress {
  height: 0.5rem;
  margin-top: 0.35rem;
  background-color: #e8eef5;
}

#newEntrantsList {
  padding-left: 1rem;
}

#newEntrantsList li + li {
  margin-top: 0.45rem;
}

#insuranceAlertsContainer.alert {
  background: #f4f9ff;
  border-color: #d7e8f8;
  color: #38506a;
}

.alert-sm {
  border-radius: 6px;
}

/* Spreadsheet lead desk */
.sheet-panel {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.sheet-topbar {
  min-height: 72px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #d8e0ea;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
}

.sheet-title-stack {
  min-width: 220px;
  text-align: left;
}

.sheet-topbar h5 {
  font-weight: 800;
  color: #172033;
  font-size: 1.05rem;
}

.sheet-topbar p {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.sheet-action-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.sheet-action-btn {
  min-height: 32px;
  padding: 0.38rem 0.85rem;
  border: 0;
  border-radius: 8px;
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 10px 20px var(--brand-glow);
  font-size: 0.74rem;
  font-weight: 800;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.sheet-action-btn:hover {
  background: #0b49c9;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(21, 101, 255, 0.28);
}

.sheet-tab-row {
  padding: 0.35rem 0.75rem;
  border-bottom: 1px solid #d9e2ec;
  background: #fbfcfe;
}

.sheet-tabs {
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.sheet-tabs .nav-link {
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: #edf3f8;
  color: #3f536a;
  border: 1px solid #d9e2ec;
  font-size: 0.82rem;
  font-weight: 800;
}

.sheet-tabs .nav-link.active {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
  box-shadow: 0 10px 24px var(--brand-glow);
}

.sheet-filter-bar {
  min-height: 62px;
  padding: 0.8rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 0.7rem;
  align-items: end;
  border-bottom: 1px solid #d9e2ec;
  background: #fff;
}

.sheet-filter-bar .form-control-sm,
.sheet-filter-bar .form-select-sm {
  min-height: 32px;
  font-size: 0.82rem;
}

.filter-field {
  min-width: 0;
}

.filter-field.month-field {
  min-width: 170px;
}

.filter-field.state-field {
  min-width: 80px;
}

.filter-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 0.45rem;
  min-width: 190px;
}

.sheet-status-row {
  min-height: 40px;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d9e2ec;
  background: #f6f9fc;
}

.sheet-summary {
  color: #526174;
  font-size: 0.83rem;
  font-weight: 700;
}

.sheet-table-wrap {
  width: 100%;
  max-height: calc(100vh - 270px);
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
}

.sheet-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.sheet-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 32px;
  padding: 0.34rem 0.45rem;
  background: #f1f5f9;
  border-right: 1px solid #d8dde4;
  border-bottom: 1px solid #c7ced8;
  color: #4e5a68;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: none;
  white-space: normal;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.sheet-table tbody td {
  min-height: 28px;
  padding: 0.28rem 0.38rem;
  border-right: 1px solid #e0e3e8;
  border-bottom: 1px solid #dde2e8;
  color: #202936;
  font-size: 0.7rem;
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.sheet-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.sheet-table tbody tr:hover td {
  background: #edf5ff;
}

.sheet-table .icon-cell {
  padding: 0.18rem 0.2rem;
}

.sheet-table .check-col {
  width: 34px;
  text-align: center;
}

.sheet-table .icon-col {
  width: 48px;
  text-align: center;
}

.sheet-table .name-cell {
  font-weight: 800;
}

.sheet-table .name-cell,
.sheet-table .email-cell {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}

.email-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.email-link:hover,
.email-link:focus {
  color: var(--accent-blue, #2563eb);
}

.sheet-col-resizer {
  position: absolute;
  top: 0;
  right: -3px;
  z-index: 4;
  width: 7px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
}

.sheet-col-resizer:hover,
.sheet-col-resizer.active {
  background: #2f80ed;
}

body.sheet-column-resizing,
body.sheet-column-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

.sheet-table .muted-cell {
  color: #667485;
}

.sheet-table .sheet-icon-btn {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 0.68rem;
}

.sheet-table .badge {
  font-size: 0.68rem;
  line-height: 1;
}

.utility-drawer {
  margin-top: 0.8rem;
  background: #fff;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(13, 32, 56, 0.06);
}

.utility-drawer summary {
  min-height: 42px;
  padding: 0.65rem 0.85rem;
  color: #3a4a5f;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  list-style: none;
}

.utility-drawer summary::-webkit-details-marker {
  display: none;
}

.utility-drawer summary i {
  margin-right: 0.4rem;
  color: var(--blue);
}

.utility-grid {
  padding: 0.8rem;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr) minmax(320px, 1fr);
  gap: 0.8rem;
  border-top: 1px solid var(--panel-border);
}

.utility-wide {
  grid-column: 1 / -1;
}

/* Insurance renewal desk */
.renewal-body .dashboard-content {
  padding: 0.8rem;
}

.renewal-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.renewal-stat {
  min-height: 84px;
  padding: 0.95rem 1rem;
  border: 1px solid var(--panel-border);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(13, 32, 56, 0.06);
}

.renewal-stat span {
  display: block;
  margin-bottom: 0.45rem;
  color: #667485;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.renewal-stat strong {
  display: block;
  color: #172033;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 900;
}

.renewal-stat.stat-urgent {
  border-left-color: var(--red);
}

.renewal-stat.stat-soon {
  border-left-color: var(--orange);
}

.renewal-stat.stat-later {
  border-left-color: var(--teal);
}

.renewal-panel {
  min-height: calc(100vh - 174px);
}

.renewal-filter-bar {
  min-height: 62px;
  padding: 0.65rem 0.75rem;
  display: grid;
  grid-template-columns: 180px 170px 190px minmax(220px, 1fr) minmax(170px, auto);
  gap: 0.6rem;
  align-items: end;
  border-bottom: 1px solid #d9e2ec;
  background: #fff;
}

.renewal-filter-bar .form-control-sm,
.renewal-filter-bar .form-select-sm {
  min-height: 32px;
  font-size: 0.82rem;
}

.renewal-table-wrap {
  max-height: calc(100vh - 300px);
}

.renewal-table {
  min-width: 1160px;
}

/* DOT analytics and CRM */
.analytics-body .dashboard-content {
  padding: 0.8rem;
}

.analytics-search-panel {
  margin-bottom: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff, #f7faff);
  box-shadow: 0 18px 42px rgba(13, 32, 56, 0.08);
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(360px, 0.58fr);
  gap: 1rem;
  align-items: end;
}

.analytics-search-copy {
  margin-bottom: 0;
}

.analytics-search-copy h5 {
  color: #172033;
  font-weight: 900;
}

.analytics-search-copy p {
  color: #667485;
  font-size: 0.9rem;
}

.analytics-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
  width: 100%;
}

.analytics-search-input {
  min-width: 0;
}

.analytics-search-input .form-label {
  color: #4f6073;
  font-weight: 900;
}

.analytics-search-form .form-control {
  min-height: 46px;
}

.analytics-search-form .btn {
  min-height: 46px;
  padding-left: 1rem;
  padding-right: 1rem;
  white-space: nowrap;
}

.analytics-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.analytics-profile-card {
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(13, 32, 56, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.analytics-profile-card:hover {
  border-color: rgba(21, 101, 255, 0.24);
  box-shadow: 0 22px 52px rgba(13, 32, 56, 0.1);
}

.analytics-profile-card {
  padding: 0.95rem;
}

.carrier-lookup-card {
  padding: 1rem;
}

.analytics-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid #e3ebf2;
}

.analytics-card-header h5 {
  font-weight: 900;
  color: #172033;
}

.analytics-details {
  color: #526174;
}

.carrier-profile-dossier {
  display: grid;
  gap: 1rem;
}

.profile-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background:
    radial-gradient(circle at 18% 0%, rgba(21, 101, 255, 0.18), transparent 34%),
    linear-gradient(135deg, var(--brand-navy), #101f33);
  box-shadow: 0 24px 70px rgba(11, 19, 32, 0.22);
}

.profile-hero h2 {
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
}

.profile-identifiers,
.profile-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-actions .btn {
  min-height: 36px;
  border-radius: 8px;
  font-weight: 850;
}

.profile-identifiers span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(226, 232, 240, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #eaf2ff;
  font-size: 0.82rem;
  font-weight: 800;
}

.primary-profile-link {
  border-color: rgba(21, 101, 255, 0.3);
  background: rgba(21, 101, 255, 0.12);
  color: var(--brand-blue);
}

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

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.7rem;
}

.profile-facts-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-facts div {
  min-height: 70px;
  padding: 0.75rem;
  border: 1px solid #e4ebf2;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.profile-facts div:hover {
  transform: translateY(-2px);
  border-color: rgba(21, 101, 255, 0.24);
  box-shadow: 0 14px 28px rgba(13, 32, 56, 0.08);
}

.profile-facts span {
  display: block;
  margin-bottom: 0.25rem;
  color: #6b7b8d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-facts strong {
  display: block;
  color: #172033;
  font-size: 0.94rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.carrier-profile-stack {
  display: grid;
  gap: 0.85rem;
}

.carrier-lookup-loading {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 136px;
  padding: 1rem;
  border: 1px solid #d7e7f2;
  border-radius: 8px;
  background: #f3f8fc;
}

.carrier-lookup-loading strong {
  display: block;
  color: #172033;
  font-weight: 900;
}

.carrier-lookup-loading p {
  margin: 0.25rem 0 0;
  color: #667485;
  font-size: 0.9rem;
  line-height: 1.45;
}

.carrier-record-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid #e3ebf2;
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 0%, rgba(21, 101, 255, 0.24), transparent 34%),
    linear-gradient(135deg, var(--brand-navy) 0%, #101f33 100%);
  box-shadow: 0 18px 46px rgba(11, 19, 32, 0.18);
}

.carrier-record-header h5 {
  margin: 0.2rem 0;
  color: #fff;
  font-weight: 900;
}

.carrier-record-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
}

.carrier-record-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.carrier-source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.carrier-source-link:hover {
  color: #fff;
  background: rgba(21, 101, 255, 0.22);
  border-color: rgba(91, 156, 255, 0.42);
  transform: translateY(-1px);
}

.carrier-safety-summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 0.85rem;
  padding: 0.95rem;
  border: 1px solid #dce7ef;
  border-radius: 10px;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
}

.carrier-safety-summary small {
  grid-column: 1 / -1;
  color: #6b7787;
  font-weight: 800;
}

.carrier-safety-main p {
  margin: 0.55rem 0 0;
  color: #4d5c6c;
  font-size: 0.86rem;
  line-height: 1.45;
}

.analytics-field-label,
.carrier-detail-grid span,
.carrier-cargo-row span,
.carrier-safety-stats span {
  display: block;
  margin-bottom: 0.35rem;
  color: #667485;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.safety-rating-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 0.3rem 0.65rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: normal;
}

.safety-good {
  color: #13795b;
  background: #e9f8f0;
}

.safety-watch {
  color: #946200;
  background: #fff7dc;
}

.safety-danger {
  color: #b42318;
  background: #fff1f0;
}

.safety-neutral {
  color: #516173;
  background: #eef3f7;
}

.safety-panel-good {
  border-color: #bdebd5;
  background: #f1fbf6;
}

.safety-panel-watch {
  border-color: #f6dc8f;
  background: #fffaf0;
}

.safety-panel-danger {
  border-color: #f6b6b0;
  background: #fff6f5;
}

.safety-panel-neutral {
  border-color: #dce7ef;
  background: #f7fafc;
}

.carrier-safety-stats,
.carrier-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.carrier-crash-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 0.85rem;
  padding: 0.95rem;
  border: 1px solid #e4d5a5;
  border-radius: 8px;
  background: #fffaf0;
}

.carrier-crash-panel > div:first-child strong {
  display: block;
  color: #172033;
  font-size: 1.1rem;
  font-weight: 900;
}

.carrier-crash-panel p {
  margin: 0.4rem 0 0;
  color: #667485;
  font-size: 0.86rem;
  line-height: 1.45;
}

.carrier-crash-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.carrier-crash-grid div {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid #efe2b8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.carrier-crash-grid span {
  display: block;
  margin-bottom: 0.25rem;
  color: #667485;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.carrier-crash-grid strong {
  display: block;
  color: #172033;
  font-size: 1.1rem;
  font-weight: 900;
}

.carrier-rich-profile {
  display: grid;
  gap: 0.8rem;
  padding: 0.95rem;
  border: 1px solid #dbe8f3;
  border-radius: 8px;
  background: #f7fbfe;
}

.carrier-rich-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.carrier-rich-header strong {
  display: block;
  color: #172033;
  font-size: 1.05rem;
  font-weight: 900;
}

.carrier-rich-header p,
.muted-note {
  margin: 0.35rem 0 0;
  color: #667485;
  font-size: 0.86rem;
  line-height: 1.45;
}

.carrier-rich-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  padding: 0.3rem 0.65rem;
  border: 1px solid #c9d8e6;
  border-radius: 8px;
  color: #315065;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.carrier-rich-link:hover {
  color: #172033;
  background: #eef6fc;
}

.carrier-rich-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
}

.carrier-rich-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.carrier-rich-grid div,
.carrier-rich-section {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid #e3ebf2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.carrier-rich-grid span {
  display: block;
  margin-bottom: 0.3rem;
  color: #667485;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.carrier-rich-grid strong {
  display: block;
  color: #172033;
  font-size: 0.94rem;
  line-height: 1.35;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.carrier-rich-grid small {
  display: block;
  margin-top: 0.25rem;
  color: #667485;
  font-size: 0.78rem;
  line-height: 1.35;
}

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

.mini-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.mini-table th,
.mini-table td {
  padding: 0.5rem;
  border-bottom: 1px solid #e3ebf2;
  color: #172033;
  text-align: left;
}

.mini-table th {
  color: #667485;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.empty-inline {
  color: #667485;
  font-size: 0.86rem;
}

.carrier-safety-stats div,
.carrier-detail-grid div,
.carrier-cargo-row {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid #e3ebf2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.carrier-safety-stats strong,
.carrier-detail-grid strong,
.carrier-cargo-row strong {
  display: block;
  color: #172033;
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.analytics-contact-grid span {
  display: block;
  margin-bottom: 0.35rem;
  color: #667485;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.analytics-contact-grid div {
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid #e3ebf2;
  border-radius: 8px;
  background: #f7fafc;
}

.analytics-contact-grid strong {
  display: block;
  color: #172033;
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.premium-intelligence-panel {
  grid-column: 1 / -1;
}

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

.intelligence-grid div {
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid #e3ebf2;
  border-radius: 8px;
  background: #f7fafc;
}

.intelligence-grid span {
  display: block;
  margin-bottom: 0.35rem;
  color: #667485;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.intelligence-grid strong {
  display: block;
  color: #172033;
  font-size: 0.9rem;
  line-height: 1.45;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: #667485;
  font-size: 0.9rem;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #eaf3f7;
  color: #315065;
  font-size: 0.78rem;
  font-weight: 800;
}

.upgrade-alert {
  border: 1px solid #f0d28a;
  border-radius: 8px;
  background: #fff8e7;
  color: #5a4315;
  font-size: 0.88rem;
  font-weight: 800;
}

.upgrade-field-note {
  margin-top: 0.25rem;
  color: #8a6518;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 0.9rem;
}

.settings-panel {
  padding: 1rem;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(13, 32, 56, 0.06);
}

.settings-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid #e3ebf2;
}

.settings-panel-header h5 {
  font-weight: 900;
  color: #172033;
}

.settings-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.settings-stat-grid div {
  min-height: 78px;
  padding: 0.8rem;
  border: 1px solid #e3ebf2;
  border-radius: 8px;
  background: #f7fafc;
}

.settings-stat-grid span,
.settings-access-list span {
  display: block;
  color: #667485;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-stat-grid strong {
  display: block;
  margin-top: 0.35rem;
  color: #172033;
  font-size: 1.1rem;
  font-weight: 900;
}

.settings-access-list {
  display: grid;
  gap: 0.45rem;
}

.settings-access-list span {
  min-height: 30px;
  padding: 0.42rem 0.55rem;
  border-radius: 7px;
  text-transform: none;
}

.settings-access-list .is-enabled {
  background: #eaf7f4;
  color: #1b6b55;
}

.settings-access-list .is-locked {
  background: #fff4df;
  color: #855b16;
}

.team-invite-form {
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(180px, 1fr) auto;
  gap: 0.6rem;
  align-items: end;
}

.settings-team-table {
  margin-top: 0.9rem;
  max-height: 360px;
}

.crm-table {
  min-width: 0;
}

.crm-table th:nth-child(1),
.crm-table td:nth-child(1) { width: 18%; }

.crm-table th:nth-child(2),
.crm-table td:nth-child(2) { width: 9%; }

.crm-table th:nth-child(3),
.crm-table td:nth-child(3) { width: 8%; }

.crm-table th:nth-child(4),
.crm-table td:nth-child(4) { width: 11%; }

.crm-table th:nth-child(5),
.crm-table td:nth-child(5) { width: 12%; }

.crm-table th:nth-child(6),
.crm-table td:nth-child(6) { width: 12%; }

.crm-table th:nth-child(7),
.crm-table td:nth-child(7) { width: 20%; }

.crm-table th:nth-child(8),
.crm-table td:nth-child(8) { width: 10%; }

.sheet-table .btn,
.sheet-table .sheet-icon-btn {
  white-space: normal;
  line-height: 1.1;
}

/* Cards */
.card {
  border-radius: 8px;
}

/* Utilities */
.text-light-50 {
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 991.98px) {
  .marketing-navbar .navbar-collapse {
    padding: 1rem 0;
  }

  .marketing-hero {
    padding: 118px 0 64px;
  }

  .product-preview {
    max-width: 680px;
    margin: 0 auto;
  }

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

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

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

  .dashboard-layout {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .dashboard-header {
    position: relative;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

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

  .filter-grid > div,
  .filter-grid .filter-action {
    grid-column: span 1;
  }

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

  .sheet-tabs {
    width: 100%;
  }

  .sheet-tabs .nav-item,
  .sheet-tabs .nav-link {
    flex: 1;
  }

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

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

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

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

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

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

  .analytics-search-panel,
  .analytics-search-form,
  .profile-section-grid,
  .profile-facts,
  .profile-facts-wide,
  .settings-grid,
  .team-invite-form {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    display: grid;
  }

  .profile-actions {
    justify-content: flex-start;
  }

  .carrier-record-header {
    flex-direction: column;
  }

  .carrier-record-actions {
    justify-content: flex-start;
  }

  .carrier-rich-header {
    flex-direction: column;
  }

  .carrier-safety-stats,
  .carrier-detail-grid,
  .carrier-rich-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 575.98px) {
  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .marketing-hero {
    padding: 108px 0 56px;
  }

  .hero-title {
    font-size: 2.45rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-proof {
    display: grid;
    gap: 0.65rem;
  }

  .hero-metrics,
  .preview-summary-grid,
  .preview-action-strip {
    grid-template-columns: 1fr;
  }

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

  .preview-table {
    min-width: 470px;
  }

  .section-padding {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .trust-panel,
  .cta-banner {
    padding: 1.4rem;
    border-radius: 16px;
  }

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

  .dashboard-content {
    padding: 0.85rem;
  }

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

  .sheet-filter-bar {
    grid-template-columns: 1fr;
  }

  .sheet-table-wrap {
    max-height: 58vh;
    overflow-x: auto;
  }

  .sheet-table {
    min-width: 980px;
  }

  .renewal-summary-grid,
  .renewal-filter-bar {
    grid-template-columns: 1fr;
  }

  .renewal-table-wrap {
    max-height: 54vh;
  }

  .analytics-contact-grid,
  .analytics-search-panel,
  .analytics-search-form,
  .carrier-safety-summary,
  .carrier-safety-stats,
  .carrier-detail-grid,
  .carrier-crash-panel,
  .carrier-rich-grid,
  .carrier-rich-grid.compact,
  .intelligence-grid,
  .analytics-workspace {
    grid-template-columns: 1fr;
  }

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