:root {
  --jpm-navy: #07111F;
  --jpm-midnight: #0E2746;
  --jpm-steel: #284C73;
  --jpm-gold: #D9B56D;
  --jpm-cyan: #23D3EE;
  --jpm-bg: #F7F9FC;
  --jpm-surface: #FFFFFF;
  --jpm-line: #E5EBF2;
  --jpm-text: #17202E;
  --jpm-muted: #65758B;
  --jpm-success: #19B67A;
  --jpm-warning: #F2A93B;
  --jpm-danger: #E5484D;
  --jpm-info: #3B82F6;
  --radius-card: 22px;
  --radius-input: 14px;
  --radius-button: 999px;
  --shadow-card: 0 18px 50px rgba(7, 17, 31, 0.12);
  --shadow-panel: 0 24px 70px rgba(7, 17, 31, 0.16);
  --ink: var(--jpm-navy);
  --ink-soft: var(--jpm-steel);
  --bg: var(--jpm-bg);
  --surface: var(--jpm-surface);
  --line: var(--jpm-line);
  --gold: var(--jpm-gold);
  --gold-dark: #B99146;
  --mint: #d4f2ec;
  --shadow: var(--shadow-panel);
}

.document-template-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: 18px;
  margin-top: 18px;
}

.document-template-preview {
  min-height: 360px;
  max-height: 560px;
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

.placeholder-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.placeholder-list code,
.document-template-preview code {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(184, 134, 11, 0.12);
  color: #7c5a05;
}

.document-variable-library {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.document-variable-group {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.78);
}

.document-variable-group h5 {
  margin: 0;
  color: #334155;
  font-size: 0.88rem;
}

.document-variable-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.document-variable-button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.document-variable-button:hover {
  border-color: rgba(184, 134, 11, 0.45);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.document-variable-button small {
  color: #475569;
}

.document-variable-button em {
  color: #64748b;
  font-size: 0.78rem;
}

.document-variable-button.is-unknown {
  border-color: rgba(220, 38, 38, 0.35);
  background: #fff7f7;
}

.template-missing-variable {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 7px;
  background: #fee2e2;
  color: #991b1b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.document-template-filters {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.86);
}

.document-template-generator-card {
  margin-top: 1rem;
  border-top: 5px solid #7c3aed;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), #ffffff 46%);
}

.template-variable-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.template-variable-list span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
  font-size: 0.82rem;
}

.fleet-module-shell {
  display: grid;
  gap: 1.2rem;
}

.fleet-module-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.4rem;
  border-radius: 1.4rem;
  color: #f8fafc;
  background:
    radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.35), transparent 32%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 56%, #334155 100%);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.fleet-module-hero h2 {
  margin: 0.25rem 0 0.35rem;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.fleet-module-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(248, 250, 252, 0.78);
}

.fleet-module-legend {
  display: grid;
  gap: 0.5rem;
  min-width: 210px;
}

.fleet-module-legend span {
  display: inline-flex;
  justify-content: center;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.82rem;
  font-weight: 700;
}

.fleet-tab-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.55rem;
  border: 1px solid #d9e4f2;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7fbff 0%, #eef5fc 100%);
  box-shadow: 0 14px 32px rgba(13, 28, 52, 0.07);
}

.fleet-tab-bar .auth-tab {
  width: 100%;
  min-height: 3.6rem;
  border: 1px solid #d5e0ee;
  border-radius: 14px;
  background: #fff;
  color: #27456a;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  padding: 0.7rem 0.55rem;
  box-shadow: 0 8px 20px rgba(18, 43, 76, 0.06);
}

.fleet-tab-bar .auth-tab.active {
  border-color: #c79021;
  background: #fff8e8;
  color: #102442;
  box-shadow: 0 12px 26px rgba(199, 144, 33, 0.16);
}

.fleet-directory-head {
  color: #07111f;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.fleet-directory-head h2 {
  color: #07111f;
}

.fleet-directory-head p {
  color: #7d90aa;
}

.fleet-directory-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fleet-products-subpane {
  grid-template-columns: 1fr;
}

.fleet-products-list-card {
  border-top: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.fleet-directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.fleet-directory-toolbar input {
  width: min(100%, 360px);
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #fff;
  color: #07111f;
  font: inherit;
  padding: 0.82rem 1rem;
}

.fleet-view-toggle {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid #e1e8f2;
  border-radius: 10px;
  background: #fff;
}

.fleet-view-toggle button {
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #52657f;
  cursor: pointer;
}

.fleet-view-toggle button.active {
  background: #ff6b1a;
  color: #fff;
}

.fleet-card-wrap.table-wrap {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.fleet-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 1rem;
}

.fleet-card-grid.fleet-card-grid-list {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
}

.fleet-product-card {
  position: relative;
  display: grid;
  min-height: 470px;
  border: 1px solid #dfe6ef;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(13, 28, 52, 0.08);
}

.fleet-product-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 1rem;
  background: #fff;
}

.fleet-product-image-wrap img {
  width: 100%;
  height: 240px;
  object-fit: contain;
}

.fleet-product-image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 220px;
  border-radius: 12px;
  background: #f3f6fa;
  color: #7d90aa;
  font-weight: 900;
}

.fleet-public-pill {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.36rem 0.62rem;
  border-radius: 999px;
  background: #ff6b1a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.fleet-product-card-body {
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem 1rem 1rem;
}

.fleet-product-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.fleet-product-title-row h4 {
  margin: 0 0 0.2rem;
  color: #101828;
  font-size: 0.95rem;
  line-height: 1.25;
}

.fleet-product-title-row p {
  margin: 0;
  color: #8aa0bc;
  font-size: 0.78rem;
  font-weight: 700;
}

.fleet-card-kebab {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #07111f;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.fleet-product-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.fleet-product-badges span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f4f7fb;
  color: #1f2937;
  padding: 0.34rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 850;
}

.fleet-product-badges .fleet-stock-pill {
  background: #fff0e7;
  color: #ff6b1a;
}

.fleet-product-badges .fleet-warning-pill {
  background: #fff7d6;
  color: #9f6b00;
}

.fleet-product-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #edf1f6;
}

.fleet-product-footer span {
  display: block;
  color: #8aa0bc;
  font-size: 0.74rem;
  font-weight: 800;
}

.fleet-product-footer strong {
  color: #101828;
  font-size: 0.9rem;
}

.fleet-empty-card {
  grid-column: 1 / -1;
}

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

.fleet-report-wide {
  grid-column: 1 / -1;
}

.fleet-mini-stats {
  display: grid;
  gap: 0.5rem;
}

.fleet-mini-stats > div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid #edf1f6;
}

.fleet-products-subpane,
.fleet-pricing-subpane {
  align-items: start;
}

.fleet-product-editor-card {
  border-top: 5px solid #d97706;
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 26%);
}

.fleet-products-list-card {
  border-top: 0;
}

.fleet-units-board {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.2fr);
  gap: 1rem;
}

.fleet-units-command {
  grid-column: 1 / -1;
  border-top: 5px solid #059669;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.11), #ffffff 54%);
}

.fleet-unit-detail-card {
  grid-column: 1 / -1;
}

.fleet-unit-form {
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(15, 35, 61, 0.1);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(238, 246, 255, 0.86), rgba(255, 255, 255, 0.96));
}

.fleet-unit-form-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.fleet-unit-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 0.85rem;
}

.fleet-unit-form-grid label {
  display: grid;
  gap: 0.35rem;
  color: #40536d;
  font-size: 0.82rem;
  font-weight: 800;
}

.fleet-unit-form-grid input,
.fleet-unit-form-grid select,
.fleet-unit-form-grid textarea,
.compact-select {
  width: 100%;
  border: 1px solid #d5e0ee;
  border-radius: 12px;
  background: #fff;
  color: #102442;
  font: inherit;
  padding: 0.62rem 0.72rem;
}

.fleet-unit-note {
  grid-column: span 2;
}

.fleet-unit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.fleet-unit-actions .danger {
  border-color: rgba(229, 72, 77, 0.28);
  color: #b42318;
  background: #fff7f7;
}

.unit-source-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #eef4ff;
  color: #34517a;
  font-size: 0.76rem;
  font-weight: 800;
}

.fleet-pricing-dashboard-card {
  grid-column: 1 / -1;
  border-top: 5px solid #7c3aed;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), #ffffff 50%);
}

.fleet-pricing-kpis .client-summary-card strong {
  color: #5b21b6;
}

.fleet-pricing-detail {
  border: 1px dashed rgba(124, 58, 237, 0.28);
  background: rgba(250, 245, 255, 0.56);
}

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

  .fleet-module-hero,
  .fleet-units-board {
    grid-template-columns: 1fr;
  }

  .fleet-module-hero {
    display: grid;
  }

  .fleet-unit-form-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

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

  .fleet-report-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .fleet-unit-form-head {
    flex-direction: column;
  }

  .fleet-unit-form-grid,
  .fleet-unit-note {
    grid-template-columns: 1fr;
    grid-column: auto;
  }
}

.checkbox-grid {
  border: 1px solid rgba(12, 31, 45, 0.12);
  border-radius: 16px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0;
  padding: 1rem;
}

.checkbox-grid legend {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 0.35rem;
}

.checkbox-grid label {
  align-items: center;
  background: rgba(12, 31, 45, 0.04);
  border-radius: 12px;
  display: flex;
  flex-direction: row;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #f6f8fb 40%, #eef3f8 100%);
  line-height: 1.55;
}

body.admin-mode {
  background: #eef3f8;
}

body.admin-mode .bg-grid,
body.admin-mode .site-header,
body.admin-mode .nav-links,
body.admin-mode .btn-light,
body.admin-mode #btn-open-profile,
body.admin-mode #btn-open-client,
body.admin-mode .site-footer,
body.admin-mode main > section:not(#admin-panel-section) {
  display: none !important;
}

body.admin-mode #admin-panel-section {
  min-height: 100vh;
  padding: 0;
}

body.admin-mode #admin-panel-section .container {
  width: min(1560px, 96vw);
}

body.admin-mode #admin-panel-section .section-head {
  display: none;
}

body.admin-mode .panel-section#admin-panel-section .backoffice-shell {
  grid-template-columns: minmax(240px, 280px) minmax(760px, 1fr);
  padding: 1rem 0;
  min-width: 1040px;
}

body.admin-mode .panel-section#admin-panel-section .backoffice-sidebar {
  top: 1rem;
  max-height: calc(100vh - 2rem);
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.02em;
  margin: 0 0 0.7rem;
}

p {
  margin: 0 0 1rem;
}

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

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: linear-gradient(to right, rgba(15, 25, 41, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 25, 41, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at top right, #000 35%, transparent 75%);
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid rgba(14, 26, 43, 0.08);
}

.nav-wrap {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.brand-logo {
  display: block;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}

.brand-logo-header {
  width: clamp(206px, 22vw, 286px);
  height: 54px;
  max-height: 54px;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
  background: linear-gradient(135deg, #152b4a, #314f7d);
}

.brand-text {
  font-family: "Sora", sans-serif;
  font-weight: 700;
}

.backoffice-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid #d9e4f2;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.backoffice-brand img {
  width: 100%;
  max-width: 248px;
  height: 58px;
  object-fit: contain;
  object-position: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cart-button {
  border: 1px solid #d8e3f1;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0.48rem 0.56rem 0.48rem 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(7, 17, 31, 0.06);
}

.nav-cart-button span {
  min-width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e8eef7;
  color: #18375e;
  font-family: "Sora", sans-serif;
  font-size: 0.76rem;
}

.nav-cart-icon-button {
  width: 46px;
  height: 46px;
  justify-content: center;
  gap: 0;
  padding: 0;
  position: relative;
}

.nav-cart-icon-button .nav-cart-icon {
  min-width: 0;
  width: 21px;
  height: 21px;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  line-height: 1;
}

.nav-cart-icon-button #cart-nav-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 1.28rem;
  height: 1.28rem;
  border: 2px solid #fff;
  font-size: 0.66rem;
}

.nav-cart-button.has-items {
  border-color: rgba(214, 178, 91, 0.85);
  box-shadow: 0 10px 24px rgba(214, 178, 91, 0.22);
}

.nav-cart-button.has-items span {
  background: var(--gold);
  color: #111827;
}

.nav-cart-icon-button.has-items .nav-cart-icon {
  background: transparent;
  color: var(--ink);
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

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

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
  transform: none;
}

.btn-light {
  background: #fff;
  border-color: var(--line);
}

.btn-gold {
  color: #17253e;
  background: var(--gold);
  box-shadow: 0 10px 24px rgba(210, 151, 26, 0.36);
}

.btn-gold:hover {
  background: var(--gold-dark);
  color: #fff;
}

.btn-outline,
.btn-outline-dark {
  background: transparent;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-outline-dark {
  border-color: var(--line);
  color: var(--ink-soft);
}

.hero {
  padding: 4.7rem 0 3.2rem;
}

.hero-brand-logo {
  display: block;
  width: min(480px, 100%);
  aspect-ratio: 1320 / 320;
  height: auto;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(214, 184, 121, 0.3);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 34px rgba(20, 38, 64, 0.08);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.4rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.73rem;
  font-weight: 700;
  color: #4f6584;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-copy {
  color: var(--ink-soft);
  max-width: 58ch;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-stats {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.hero-stats li {
  min-width: 130px;
}

.hero-stats strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
}

.hero-stats span {
  font-size: 0.87rem;
  color: #4d607d;
}

.hero-car-card {
  background: var(--surface);
  border: 1px solid rgba(14, 26, 43, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}

.hero-car-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.hero-car-body {
  padding: 1.2rem 1.2rem 1.35rem;
}

.hero-car-body h2 {
  font-size: 1.3rem;
}

.pill {
  display: inline-block;
  margin-bottom: 0.8rem;
  background: #e8effa;
  color: #264161;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 0.9rem;
  color: #405472;
}

.price-line strong {
  color: #0f2138;
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
}

.section {
  padding: 4.2rem 0;
}

.section-head {
  margin-bottom: 1.6rem;
}

.section h2 {
  font-size: clamp(1.5rem, 3.1vw, 2.35rem);
}

.section-fleet {
  background: linear-gradient(180deg, #fff 0%, var(--jpm-bg) 100%);
  border-top: 1px solid rgba(7, 17, 31, 0.08);
  border-bottom: 1px solid rgba(7, 17, 31, 0.08);
}

.marketplace-hero {
  padding: 0.9rem 0 1.35rem;
  background:
    radial-gradient(circle at 12% 10%, rgba(35, 211, 238, 0.14), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(217, 181, 109, 0.22), transparent 25%),
    var(--jpm-bg);
}

.marketplace-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  gap: 0.85rem;
  align-items: stretch;
  padding: 0.95rem;
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.marketplace-hero-copy {
  min-height: 285px;
  padding: clamp(0.95rem, 2.1vw, 1.55rem);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.04), rgba(35, 211, 238, 0.08)),
    #f8fbff;
}

.marketplace-hero-copy h1 {
  max-width: 850px;
  font-size: clamp(1.9rem, 3.9vw, 3.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.marketplace-hero-side {
  display: grid;
  gap: 0.9rem;
}

.hero-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  max-width: 720px;
  margin-top: 0.95rem;
  padding: 0.55rem;
  border: 1px solid rgba(7, 17, 31, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(7, 17, 31, 0.08);
}

.hero-search span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(35, 211, 238, 0.12);
  color: var(--jpm-midnight);
  font-size: 1.4rem;
}

.hero-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  font: inherit;
  color: var(--jpm-text);
}

.hero-search input::placeholder {
  color: var(--jpm-muted);
}

.hero-quick-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-quick-links button {
  border: 1px solid rgba(7, 17, 31, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--jpm-midnight);
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hero-deal-card {
  display: grid;
  grid-template-rows: 128px auto;
  align-content: start;
  min-height: 224px;
  padding: 0;
  border-radius: 24px;
  background: #07111f;
  color: #fff;
  overflow: hidden;
}

.hero-deal-image {
  width: 100%;
  height: 128px;
  object-fit: cover;
  object-position: center 54%;
  padding: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #e9eef6 100%);
}

.hero-deal-content {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 0.75rem 0.95rem 0.95rem;
}

.hero-deal-card h2,
.hero-deal-card p,
.hero-deal-card .price-line,
.hero-deal-card .price-line strong {
  color: #fff;
}

.hero-deal-card .pill {
  justify-self: start;
  margin: 0;
  background: var(--jpm-gold);
  color: var(--jpm-midnight);
  box-shadow: 0 10px 22px rgba(217, 181, 109, 0.28);
}

.hero-deal-card h2,
.hero-deal-card p {
  margin: 0;
}

.price-line-muted {
  align-items: center;
  gap: 0.5rem;
}

.price-line-muted strong {
  font-size: 1.05rem;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  align-items: stretch;
}

.hero-mini-grid span,
.marketplace-benefits article {
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 17, 31, 0.07);
}

.hero-mini-grid span {
  display: grid;
  align-content: start;
  gap: 0.22rem;
  min-height: 66px;
  padding: 0.72rem 0.82rem;
  color: var(--jpm-midnight);
}

.hero-mini-grid strong {
  font-size: 0.88rem;
  line-height: 1.15;
}

.hero-mini-grid small {
  color: #617795;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.marketplace-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.75rem;
}

.marketplace-benefits article {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.85rem;
}

.marketplace-benefits strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--jpm-navy);
  color: #fff;
}

.marketplace-benefits span {
  color: var(--jpm-midnight);
  font-weight: 800;
}

.discover-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.discover-head h2 {
  max-width: 760px;
}

.discover-head p:not(.eyebrow) {
  max-width: 680px;
  margin: 0.35rem 0 0;
  color: var(--jpm-muted);
}
}

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

.filters label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #405472;
}

.filters input,
.filters select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.72rem 0.76rem;
  font-family: inherit;
}

.filters input:focus,
.filters select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #96a9c5;
  outline: none;
}

.fleet-count {
  margin: 1rem 0;
  color: #4f6584;
  font-weight: 600;
}

.storefront-topbar {
  margin-top: 1rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid #dce6f3;
  border-radius: 14px;
  background: linear-gradient(120deg, #f6fbff 0%, #ffffff 70%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.storefront-topbar p {
  margin: 0;
  font-size: 0.87rem;
  color: #3d5a83;
}

.category-rail {
  margin: 0.95rem 0 1.15rem;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.15rem 0.1rem 0.65rem;
  scroll-snap-type: x mandatory;
}

.category-card {
  border: 1px solid #d9e4f4;
  border-radius: 18px;
  background: #fff;
  min-width: 150px;
  padding: 0.82rem;
  display: grid;
  gap: 0.22rem;
  justify-items: start;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: #c2d5ee;
  box-shadow: 0 10px 20px rgba(13, 28, 52, 0.08);
}

.category-card.active {
  border-color: var(--jpm-navy);
  background: linear-gradient(130deg, var(--jpm-navy), var(--jpm-midnight));
  box-shadow: 0 12px 24px rgba(7, 17, 31, 0.22);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: rgba(217, 181, 109, 0.18);
  color: var(--jpm-midnight);
  font-size: 1.1rem;
  line-height: 1;
}

.category-name {
  margin: 0;
  font-size: 0.76rem;
  color: #1d3f68;
  font-weight: 700;
}

.category-count {
  margin: 0;
  font-size: 0.72rem;
  color: #4f6788;
}

.category-card.active .category-name,
.category-card.active .category-count {
  color: #fff;
}

.category-card.active .category-icon {
  background: rgba(217, 181, 109, 0.22);
  color: #fff;
}

.storefront-layout {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.discover-filters,
.discover-results-bar {
  border: 1px solid var(--jpm-line);
  background: #fff;
  box-shadow: 0 12px 34px rgba(7, 17, 31, 0.07);
}

.discover-filters {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 20px;
}

.discover-filters h3,
.discover-filters p,
.discover-results-bar p {
  margin: 0;
}

.discover-filters h3 {
  font-size: 1.08rem;
}

.discover-filters p,
.discover-results-bar p {
  color: var(--jpm-muted);
  font-size: 0.86rem;
}

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

.discover-results {
  display: grid;
  gap: 1.1rem;
}

.catalog-page-mode .section-fleet {
  min-height: calc(100vh - 76px);
  padding-top: 2.2rem;
  background:
    radial-gradient(circle at top right, rgba(217, 181, 109, 0.16), transparent 34%),
    linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
}

.catalog-page-hero {
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 1rem;
  align-items: stretch;
}

.catalog-page-hero > div:first-child,
.catalog-page-hero-card {
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(7, 17, 31, 0.08);
}

.catalog-page-hero > div:first-child {
  padding: clamp(1.3rem, 3vw, 2.2rem);
}

.catalog-page-hero h1 {
  max-width: 780px;
  margin: 0.25rem 0 0.7rem;
  color: var(--jpm-midnight);
  font-size: clamp(2.15rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.catalog-page-hero p {
  max-width: 680px;
  margin: 0;
  color: #536b8c;
  font-size: 1rem;
  line-height: 1.65;
}

.catalog-page-hero-card {
  padding: 1.15rem;
  display: grid;
  align-content: end;
  gap: 0.75rem;
  background:
    linear-gradient(145deg, rgba(12, 31, 54, 0.96), rgba(24, 55, 94, 0.94)),
    var(--jpm-midnight);
  color: #fff;
}

.catalog-page-hero-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  background: var(--jpm-gold);
  color: var(--jpm-midnight);
  font-size: 0.75rem;
  font-weight: 900;
}

.catalog-page-hero-card strong {
  font-family: "Sora", sans-serif;
  font-size: 1.25rem;
  line-height: 1.25;
}

.catalog-full-mode .discover-head {
  display: none;
}

.catalog-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.catalog-preview-mode .catalog-filter-bar,
.catalog-preview-mode [data-catalog-full-only],
.catalog-full-mode [data-catalog-preview-only] {
  display: none;
}

.discover-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 22px;
}

.catalog-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) repeat(4, minmax(140px, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid var(--jpm-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(7, 17, 31, 0.07);
}

.catalog-filter-bar label {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
  color: #334d6f;
  font-size: 0.78rem;
  font-weight: 800;
}

.catalog-filter-bar select,
.catalog-filter-bar input[type="number"] {
  width: 100%;
  min-height: 43px;
  border: 1px solid #d6e0ef;
  border-radius: 14px;
  background: #fff;
  color: var(--jpm-midnight);
  font: inherit;
  font-weight: 700;
  padding: 0.65rem 0.75rem;
}

.catalog-price-filter {
  border: 1px solid rgba(217, 181, 109, 0.32);
  border-radius: 18px;
  padding: 0.7rem 0.85rem;
  background: linear-gradient(135deg, rgba(217, 181, 109, 0.12), rgba(255, 255, 255, 0.95));
}

.catalog-price-filter strong {
  color: var(--jpm-navy);
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.catalog-price-filter input[type="range"] {
  width: 100%;
  accent-color: var(--jpm-gold);
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.05rem;
  align-items: stretch;
}

.fleet-grid.catalog-preview-carousel {
  display: flex;
  grid-template-columns: none;
  gap: 0.78rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0.3rem;
  padding: 0.12rem 0.15rem 0.78rem;
  scrollbar-width: thin;
}

.catalog-preview-card {
  flex: 0 0 clamp(188px, 18vw, 228px);
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(7, 17, 31, 0.1);
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.catalog-preview-card:hover,
.catalog-preview-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(217, 181, 109, 0.78);
  box-shadow: 0 22px 42px rgba(7, 17, 31, 0.2);
  outline: none;
}

.catalog-preview-image {
  width: 100%;
  height: 126px;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 0.5rem 0.65rem 0.35rem;
  background:
    radial-gradient(circle at 50% 10%, rgba(217, 181, 109, 0.14), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #edf4fb 100%);
}

.catalog-preview-copy {
  min-height: 122px;
  margin: 0.45rem;
  padding: 0.72rem;
  border: 1px solid #dce6f3;
  border-radius: 17px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  display: grid;
  align-content: space-between;
  gap: 0.45rem;
  color: var(--jpm-midnight);
}

.catalog-preview-copy h3 {
  margin: 0;
  color: var(--jpm-midnight);
  font-size: 0.9rem;
  line-height: 1.22;
  min-height: 2.25em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-preview-copy p {
  margin: 0;
  width: 100%;
  border: 1px solid rgba(217, 181, 109, 0.5);
  border-radius: 14px;
  padding: 0.48rem 0.55rem;
  background: linear-gradient(135deg, rgba(217, 181, 109, 0.22), rgba(217, 181, 109, 0.08));
  color: var(--jpm-navy);
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
  font-weight: 900;
}

.catalog-preview-copy span {
  display: block;
  margin-top: 0.12rem;
  color: #5d708f;
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
}

.catalog-preview-copy small {
  color: var(--jpm-navy);
  font-size: 0.72rem;
  font-weight: 900;
}

.catalog-preview-carousel::-webkit-scrollbar {
  height: 8px;
}

.catalog-preview-carousel::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #e8eef7;
}

.catalog-preview-carousel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(217, 181, 109, 0.95);
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 492px;
  border: 1px solid rgba(7, 17, 31, 0.08);
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(7, 17, 31, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px rgba(14, 26, 43, 0.13);
}

.product-media {
  position: relative;
  padding: 0.78rem;
  background:
    radial-gradient(circle at 50% 12%, rgba(217, 181, 109, 0.14), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #edf3fb 100%);
  display: grid;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.product-main-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #dbe6f5;
  display: block;
}

.product-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  border: 1px solid rgba(217, 181, 109, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--jpm-midnight);
  box-shadow: 0 10px 24px rgba(7, 17, 31, 0.1);
  padding: 0.28rem 0.62rem;
  font-size: 0.7rem;
  font-weight: 900;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.product-thumbs img {
  width: 100%;
  height: 68px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #dbe6f5;
  background: #fff;
}

.product-content {
  padding: 0.95rem;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.72rem;
}

.product-head {
  display: grid;
  gap: 0.4rem;
  min-height: 88px;
}

.product-segment {
  margin: 0 0 0.1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5573a2;
  font-weight: 700;
}

.product-head h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.25;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  margin: 0;
  color: #516b8d;
  font-size: 0.84rem;
  min-height: 1.25em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price-badge {
  border: 1px solid rgba(217, 181, 109, 0.35);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(217, 181, 109, 0.18), rgba(255, 255, 255, 0.92));
  padding: 0.7rem 0.75rem;
  min-width: 0;
  min-height: 82px;
  text-align: left;
}

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

.product-spec-pill {
  min-height: 38px;
  border: 1px solid #dce6f3;
  border-radius: 13px;
  background: #f8fbff;
  color: #284563;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.15;
  min-width: 0;
}

.product-spec-pill em {
  font-style: normal;
  flex: 0 0 auto;
  color: var(--jpm-gold);
}

.product-price-badge span {
  display: block;
  color: #5b7090;
  font-size: 0.76rem;
}

.product-price-badge strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--jpm-navy);
}

.product-price-badge small {
  color: #5b7090;
  font-size: 0.76rem;
}

.product-short-desc {
  margin: 0;
  color: #365273;
  font-size: 0.8rem;
  line-height: 1.45;
  min-height: 2.9em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.product-pricing-box {
  border: 1px solid #dee7f3;
  border-radius: 14px;
  padding: 0.65rem;
  background: #f9fbfe;
}

.product-pricing-box h4 {
  margin: 0 0 0.48rem;
  font-size: 0.78rem;
  color: #2f486a;
}

.product-price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.34rem;
}

.product-price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  color: #405472;
}

.product-price-list strong {
  color: #1c3453;
}

.product-details summary {
  cursor: pointer;
  color: #2f486a;
  font-weight: 600;
}

.product-details p {
  margin: 0.5rem 0 0;
  color: #496384;
  font-size: 0.85rem;
}

.product-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: auto;
}

.product-actions .btn {
  width: 100%;
  padding: 0.68rem 0.85rem;
  font-size: 0.84rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tags {
  margin-top: 0;
  min-height: 46px;
  display: flex;
  align-content: flex-start;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  background: #edf2fb;
  color: #365377;
}

.cart-side {
  position: sticky;
  top: 92px;
  border: 1px solid #d5e0ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(7, 17, 31, 0.08);
  padding: 0.95rem;
  display: grid;
  gap: 0.8rem;
}

.cart-section {
  min-height: calc(100vh - 76px);
  background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
}

body.cart-page-mode main > section:not(.cart-section) {
  display: none;
}

body.catalog-page-mode main > section:not(.section-fleet) {
  display: none;
}

.cart-page-top {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.cart-page {
  position: static;
  max-width: 920px;
  margin: 0 auto;
  padding: 1.15rem;
}

.cart-page .cart-side-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cart-page .cart-items {
  max-height: none;
  overflow: visible;
}

.cart-side-head h3 {
  margin: 0 0 0.2rem;
  font-size: 1.06rem;
}

.cart-side-head p {
  margin: 0;
  color: #516b8d;
  font-size: 0.82rem;
}

.cart-items {
  display: grid;
  gap: 0.65rem;
  max-height: 58vh;
  overflow: auto;
  padding-right: 0.2rem;
}

.cart-item {
  border: 1px solid #dee8f6;
  border-radius: 12px;
  padding: 0.65rem;
  background: #fbfdff;
  display: grid;
  gap: 0.35rem;
}

.cart-item-with-image {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.72rem;
  align-items: stretch;
}

.cart-page .cart-item-with-image {
  grid-template-columns: 128px minmax(0, 1fr);
}

.cart-item-thumb {
  width: 100%;
  height: 100%;
  min-height: 82px;
  border: 1px solid #dbe6f4;
  border-radius: 12px;
  object-fit: cover;
  background: #edf4fb;
}

.cart-page .cart-item-thumb {
  min-height: 102px;
}

.cart-item-thumb-placeholder {
  display: grid;
  place-items: center;
  color: #18375e;
  font-weight: 800;
}

.cart-item-body {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.cart-item-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
}

.cart-item-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.88rem;
  color: #18375e;
}

.cart-item-meta {
  margin: 0;
  color: #4e678a;
  font-size: 0.76rem;
}

.cart-item-price {
  margin: 0;
  color: #18375e;
  font-size: 0.81rem;
  font-weight: 700;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.cart-item-actions .btn {
  padding: 0.32rem 0.58rem;
  font-size: 0.74rem;
}

.cart-side-summary {
  border-top: 1px dashed #cfdced;
  padding-top: 0.62rem;
  display: grid;
  gap: 0.45rem;
}

.cart-side-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-side-summary span {
  color: #4f6584;
  font-size: 0.79rem;
}

.cart-side-summary strong {
  color: #17375c;
  font-family: "Sora", sans-serif;
  font-size: 0.9rem;
}

.cart-empty {
  border: 1px dashed #c9d8ed;
  border-radius: 12px;
  padding: 0.85rem;
  color: #557192;
  font-size: 0.82rem;
  background: #f8fbff;
}

.section-pricing {
  background: radial-gradient(circle at top right, #173258, #101f35 62%);
  color: #fff;
}

.section-pricing .eyebrow {
  color: var(--mint);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pricing-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
}

.pricing-card h3 {
  font-size: 1.3rem;
}

.pricing-card p {
  color: rgba(255, 255, 255, 0.78);
}

.pricing-value {
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  margin: 0.9rem 0 0.45rem;
}

.pricing-card ul {
  margin: 0;
  padding-left: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.featured {
  border-color: rgba(232, 182, 75, 0.55);
  background: rgba(232, 182, 75, 0.09);
}

#dlaczego {
  background:
    radial-gradient(circle at 10% 0%, rgba(217, 181, 109, 0.08), transparent 24%),
    linear-gradient(180deg, #fff 0%, #f6f9fd 100%);
}

#dlaczego .section-head {
  margin-bottom: 1.1rem;
}

.section#dlaczego {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.why-visual {
  position: relative;
  min-height: 190px;
  margin-bottom: 0.85rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(7, 17, 31, 0.08);
  box-shadow: 0 14px 30px rgba(7, 17, 31, 0.08);
  background: var(--jpm-midnight);
}

.why-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.82), rgba(7, 17, 31, 0.28) 58%, rgba(7, 17, 31, 0.08)),
    linear-gradient(0deg, rgba(7, 17, 31, 0.5), transparent 45%);
}

.why-visual img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

.why-visual-card {
  position: absolute;
  z-index: 1;
  left: clamp(1.1rem, 3vw, 2rem);
  bottom: clamp(0.85rem, 2vw, 1.35rem);
  width: min(390px, calc(100% - 2.2rem));
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(7, 17, 31, 0.72);
  color: #fff;
  backdrop-filter: blur(10px);
}

.why-visual-card span {
  display: inline-flex;
  margin-bottom: 0.36rem;
  color: var(--jpm-gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.why-visual-card strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  line-height: 1.16;
}

.why-visual-card p {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

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

.why-grid article {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0.78rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.72rem;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(7, 17, 31, 0.055);
}

.why-grid article img {
  width: 100%;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.why-grid article h3,
.why-grid article p {
  margin-left: 0;
  margin-right: 0;
}

.why-grid article h3 {
  margin-top: 0;
  margin-bottom: 0.22rem;
  font-size: 0.94rem;
}

.why-grid article p {
  margin-bottom: 0;
  color: #4f6584;
  font-size: 0.8rem;
  line-height: 1.35;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.testimonial-grid article {
  border-left: 4px solid var(--gold);
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1rem 1rem 1.1rem;
}

.testimonial-grid strong {
  color: #2f486a;
}

.section-faq {
  background: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(14, 26, 43, 0.08);
  border-bottom: 1px solid rgba(14, 26, 43, 0.08);
}

.faq-list {
  display: grid;
  gap: 0.6rem;
}

.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-list p {
  margin: 0.6rem 0 0;
  color: #4f6584;
}

.section-contact {
  background: linear-gradient(180deg, #f8fafc, #f4f8fc);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.2rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: #4f6584;
}

.contact-list li {
  margin-bottom: 0.38rem;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #415776;
  font-weight: 600;
}

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

#form-message {
  margin: 0;
  font-size: 0.85rem;
  color: #30567e;
}

.site-footer {
  border-top: 1px solid rgba(14, 26, 43, 0.1);
  padding: 1.2rem 0;
  font-size: 0.9rem;
  color: #4f6584;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hidden {
  display: none !important;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.panel-section {
  background: linear-gradient(180deg, #eef3f9 0%, #f8fbfe 100%);
  border-top: 1px solid rgba(14, 26, 43, 0.08);
}

.panel-userline {
  color: #4f6584;
  margin-top: 0.35rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.profile-card {
  background: #fff;
  border: 1px solid #d6e2f1;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 22px rgba(13, 28, 52, 0.09);
  display: grid;
  gap: 0.7rem;
}

.profile-card h3 {
  margin: 0;
}

.profile-card p {
  margin: 0;
  color: #4f6584;
  font-size: 0.9rem;
}

.backoffice-shell {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 1.2rem;
  align-items: start;
}

.panel-section .backoffice-shell,
.panel-section .panel-grid,
.panel-section .panel-grid-3,
.panel-section .admin-form,
.panel-section .price-split {
  grid-template-columns: 1fr;
}

.panel-section .backoffice-sidebar {
  position: static;
}

.panel-section#admin-panel-section .backoffice-shell {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
}

.panel-section#admin-panel-section .backoffice-sidebar {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
}

.panel-section#admin-panel-section .backoffice-content {
  min-height: 72vh;
}

.backoffice-sidebar {
  position: sticky;
  top: 92px;
  border: 1px solid #cfdbec;
  border-radius: 16px;
  padding: 0.95rem;
  background: linear-gradient(180deg, #fdfefe 0%, #f4f8fd 100%);
  box-shadow: 0 14px 28px rgba(13, 28, 52, 0.08);
}

.backoffice-title {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: #56739f;
  font-weight: 700;
}

.backoffice-nav {
  display: grid;
  gap: 0.48rem;
}

.backoffice-nav-dropdown {
  display: grid;
  gap: 0.35rem;
}

.backoffice-tab {
  width: 100%;
  border: 1px solid #d0deef;
  border-radius: 11px;
  background: #f5f9ff;
  color: #27456a;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  padding: 0.68rem 0.76rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.backoffice-tab[data-admin-nav-toggle] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.backoffice-tab[data-admin-nav-toggle]::after {
  content: "▾";
  flex: 0 0 auto;
  font-size: 0.78rem;
  opacity: 0.72;
  transform: rotate(-90deg);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.backoffice-nav-dropdown.expanded > .backoffice-tab[data-admin-nav-toggle]::after {
  opacity: 1;
  transform: rotate(0deg);
}

.backoffice-tab:hover {
  border-color: #c3d2e6;
  background: #eef4fc;
}

.backoffice-tab.active {
  color: #fff;
  border-color: #1d4476;
  background: linear-gradient(135deg, #1c416f 0%, #2f5f99 60%, #376cad 100%);
  box-shadow: 0 10px 20px rgba(22, 55, 96, 0.32);
}

.backoffice-submenu {
  display: grid;
  gap: 0.28rem;
  padding: 0.25rem 0 0.3rem 0.7rem;
  border-left: 2px solid #d5e3f3;
}

.backoffice-submenu.hidden {
  display: none;
}

.backoffice-submenu button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #426184;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  padding: 0.48rem 0.6rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.backoffice-submenu button:hover {
  border-color: #d7e3f2;
  background: #f7fbff;
  color: #1f416b;
}

.backoffice-submenu button.active {
  border-color: #bcd0ea;
  background: #eaf2fc;
  color: #1c416f;
  box-shadow: inset 3px 0 0 #376cad;
}

.nav-count-badge {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.36rem;
  border-radius: 999px;
  background: #d59a25;
  color: #081a2d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(213, 154, 37, 0.22);
}

.nav-count-badge.hidden {
  display: none;
}

.admin-cockpit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.command-center {
  display: grid;
  gap: 1.2rem;
}

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

.command-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(2.35rem, auto) 1fr;
  gap: 0.7rem;
  min-height: 132px;
  padding: 1.35rem 1.55rem;
  border: 1px solid #dfe6ef;
  border-radius: 14px;
  background: #fff;
  color: #07111f;
  text-align: left;
  box-shadow: 0 2px 8px rgba(13, 28, 52, 0.08);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.command-card:hover {
  transform: translateY(-2px);
  border-color: #d6b879;
  box-shadow: 0 12px 28px rgba(13, 28, 52, 0.12);
}

.command-card span {
  color: #7d90aa;
  font-size: 0.86rem;
  font-weight: 850;
}

.command-card strong {
  align-self: end;
  color: #07111f;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1;
}

.command-card em {
  position: absolute;
  top: 1.15rem;
  right: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #fff0e8;
  color: #ff6b2a;
  font-style: normal;
  font-weight: 900;
}

.command-card-attention {
  min-height: 126px;
}

.clients-report-view {
  display: grid;
  gap: 1rem;
}

.clients-report-view.hidden {
  display: none;
}

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

.clients-report-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(2.1rem, auto) 1fr;
  gap: 0.85rem;
  min-height: 126px;
  padding: 1.35rem 1.45rem;
  border: 1px solid #dfe6ef;
  border-radius: 14px;
  background: #fff;
  color: #07111f;
  text-align: left;
  box-shadow: 0 2px 8px rgba(13, 28, 52, 0.08);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.clients-report-card:hover,
.clients-report-card.active {
  transform: translateY(-2px);
  border-color: #ffd2b7;
  box-shadow: 0 14px 30px rgba(13, 28, 52, 0.12);
}

.clients-report-card.active {
  background: linear-gradient(135deg, #fff 0%, #fff4ec 100%);
}

.clients-report-card span {
  color: #7d90aa;
  font-size: 0.86rem;
  font-weight: 850;
}

.clients-report-card strong {
  align-self: end;
  color: #07111f;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1;
}

.clients-report-card i {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  min-width: 2.1rem;
  height: 2.1rem;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: #fff0e7;
  color: #ff6b1a;
  font-style: normal;
  font-weight: 900;
}

.clients-report-detail {
  scroll-margin-top: 1rem;
}

.clients-report-tables {
  align-items: start;
}

.command-section-title {
  margin: 0;
  color: #7d90aa;
  font-size: 0.9rem;
  font-weight: 900;
}

.command-panel {
  border: 1px solid #dfe6ef;
  border-radius: 14px;
  background: #fff;
  padding: 1.25rem 1.55rem;
  box-shadow: 0 2px 8px rgba(13, 28, 52, 0.08);
}

.command-panel h3 {
  margin: 0 0 1.15rem;
  color: #07111f;
}

.fleet-status-bars {
  display: grid;
  gap: 0.72rem;
}

.fleet-status-row {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(70px, auto);
  gap: 0.55rem 1rem;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.fleet-status-label {
  width: fit-content;
  border-radius: 999px;
  padding: 0.25rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.fleet-status-label::before {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  background: currentColor;
  vertical-align: 0.08rem;
}

.fleet-status-meta {
  justify-self: end;
  color: #8a9ab1;
  font-size: 0.82rem;
  font-weight: 850;
}

.fleet-status-meta strong {
  color: #07111f;
  margin-right: 0.35rem;
}

.fleet-status-track {
  grid-column: 1 / -1;
  height: 0.44rem;
  border-radius: 999px;
  background: #f3f5f8;
  overflow: hidden;
}

.fleet-status-fill {
  display: block;
  height: 100%;
  min-width: 0.35rem;
  border-radius: inherit;
}

.fleet-status-blue { background: #e8f0ff; color: #386fd6; }
.fleet-status-green { background: #e8f6f3; color: #27a39a; }
.fleet-status-violet { background: #efebff; color: #795ee8; }
.fleet-status-orange { background: #fff1e8; color: #ff6b2a; }
.fleet-status-red { background: #ffe9ef; color: #e34861; }
.fleet-status-gray { background: #eef2f7; color: #8292a8; }

.fleet-status-fill.fleet-status-blue { background: #386fd6; }
.fleet-status-fill.fleet-status-green { background: #27a39a; }
.fleet-status-fill.fleet-status-violet { background: #795ee8; }
.fleet-status-fill.fleet-status-orange { background: #ff6b2a; }
.fleet-status-fill.fleet-status-red { background: #e34861; }
.fleet-status-fill.fleet-status-gray { background: #8292a8; }

.command-alerts-panel summary {
  cursor: pointer;
  color: #07111f;
  font-weight: 900;
}

.command-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.admin-cockpit-kpi,
.admin-product-checklist-card,
.brand-control-card,
.admin-publish-checklist {
  border: 1px solid #d8e2ef;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 24px rgba(13, 28, 52, 0.06);
}

.admin-cockpit-kpi {
  display: grid;
  grid-template-rows: minmax(2.4rem, auto) 2.35rem minmax(1.15rem, auto);
  gap: 0.34rem;
  min-height: 138px;
  padding: 1.05rem;
  align-items: start;
}

.admin-cockpit-kpi span,
.admin-cockpit-kpi small {
  color: #5d7390;
  font-size: 0.82rem;
  line-height: 1.25;
}

.admin-cockpit-kpi span {
  display: flex;
  align-items: flex-start;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.admin-cockpit-kpi strong {
  display: flex;
  align-items: center;
  color: #07111f;
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  line-height: 1;
}

.admin-cockpit-kpi small {
  align-self: end;
}

.admin-cockpit-panels {
  align-items: start;
}

.admin-cockpit-alerts,
.admin-product-checklist,
.admin-quick-actions {
  display: grid;
  gap: 0.8rem;
}

.admin-cockpit-alert {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 1px solid #d8e2ef;
  border-left: 5px solid #d9b56d;
  border-radius: 14px;
  background: #ffffff;
}

.admin-cockpit-alert span {
  width: fit-content;
  border-radius: 999px;
  background: #edf3fb;
  color: #27456a;
  padding: 0.18rem 0.52rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-cockpit-alert.priority-krytyczny {
  border-left-color: #b42318;
}

.admin-cockpit-alert.priority-wysoki {
  border-left-color: #dc6803;
}

.admin-cockpit-alert.priority-średni {
  border-left-color: #d9b56d;
}

.admin-cockpit-alert.priority-niski {
  border-left-color: #376cad;
}

.admin-cockpit-alert p {
  margin: 0;
  color: #4f637d;
}

.admin-cockpit-alerts.is-focused,
.panel-card.is-focused {
  outline: 3px solid rgba(217, 181, 109, 0.32);
  outline-offset: 4px;
}

.admin-product-checklist-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem;
}

.admin-product-checklist-card small {
  display: block;
  color: #64748b;
  margin-top: 0.1rem;
}

.admin-product-checklist-card ul,
.brand-control-card ul {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-product-checklist-card li,
.publish-checklist-items span {
  border-radius: 999px;
  padding: 0.24rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-product-checklist-card li.done,
.publish-checklist-items span.done {
  background: #ecfdf3;
  color: #027a48;
}

.admin-product-checklist-card li.missing,
.publish-checklist-items span.missing {
  background: #fff6ed;
  color: #b54708;
}

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

.brand-control-card {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.brand-control-card img {
  width: 100%;
  height: auto;
}

.brand-control-card li {
  color: #384f6b;
  font-weight: 700;
}

.admin-publish-checklist {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
}

.publish-checklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.publish-checklist-head small {
  display: block;
  color: #64748b;
  margin-top: 0.15rem;
}

.publish-checklist-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.offer-quick-create-card {
  background:
    radial-gradient(circle at top right, rgba(184, 151, 92, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.offer-subtabs {
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.offer-subpane {
  display: grid;
  gap: 1rem;
}

.offer-subpane.hidden {
  display: none;
}

.offer-creator-form {
  grid-template-columns: 1fr;
  align-items: start;
}

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

.offer-creator-steps span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(184, 151, 92, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--jpm-midnight);
  font-weight: 800;
}

.offer-creator-steps strong,
.offer-section-title span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: var(--jpm-gold);
  color: var(--jpm-midnight);
  font-weight: 900;
}

.offer-creator-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

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

.offer-creator-column {
  display: grid;
  gap: 0.82rem;
  align-content: start;
  min-height: 100%;
  border: 1px solid #d8e2ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 1rem;
}

.offer-section-title {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(12, 31, 45, 0.08);
}

.offer-creator-column h4 {
  margin: 0 0 0.1rem;
  color: #1c416f;
}

.offer-section-title p {
  margin: 0;
  color: #6b7890;
  font-size: 0.82rem;
  line-height: 1.45;
}

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

.offer-creator-preview {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(12, 31, 45, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(184, 151, 92, 0.18), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  box-shadow: 0 18px 44px rgba(7, 17, 31, 0.08);
}

.offer-preview-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.offer-preview-brand img {
  max-width: 190px;
  height: 46px;
  object-fit: contain;
  object-position: left center;
}

.offer-preview-brand span {
  color: #6b7890;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.offer-creator-preview h4 {
  margin: 0;
  color: var(--jpm-midnight);
  font-size: 1.15rem;
}

.offer-creator-preview p {
  margin: 0;
  color: #526179;
}

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

.offer-preview-kpis article {
  display: grid;
  gap: 0.25rem;
  min-height: 82px;
  padding: 0.78rem;
  border: 1px solid rgba(12, 31, 45, 0.08);
  border-radius: 16px;
  background: #fff;
}

.offer-preview-kpis span,
.offer-preview-summary span {
  color: #6b7890;
  font-size: 0.78rem;
  font-weight: 800;
}

.offer-preview-kpis strong {
  color: var(--jpm-midnight);
  font-size: 1.05rem;
}

.offer-preview-summary {
  display: grid;
  gap: 0.45rem;
  padding: 0.82rem;
  border-radius: 16px;
  background: rgba(7, 17, 31, 0.04);
}

.compact-field {
  display: grid;
  gap: 0.35rem;
  min-width: 220px;
  color: #426184;
  font-size: 0.86rem;
  font-weight: 700;
}

.compact-field select {
  min-height: 38px;
  border: 1px solid #d7e3f2;
  border-radius: 10px;
  background: #fff;
  padding: 0.48rem 0.65rem;
  color: #1f416b;
  font: inherit;
}

.offer-advanced-options {
  border: 1px solid #d8e2ef;
  border-radius: 14px;
  background: #f8fbff;
  padding: 0.85rem;
}

.offer-advanced-options summary {
  color: #1c416f;
  cursor: pointer;
  font-weight: 800;
}

.offer-advanced-grid {
  margin-top: 0.85rem;
}

.jpm-offer-template {
  overflow: hidden;
  border: 1px solid rgba(184, 151, 92, 0.5);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(11, 17, 28, 0.96), rgba(24, 36, 57, 0.94)),
    #101827;
  color: #f8fafc;
  box-shadow: 0 24px 46px rgba(13, 28, 52, 0.22);
}

.jpm-offer-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 15% 15%, rgba(214, 184, 121, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.jpm-offer-logo {
  display: grid;
  place-items: center;
  min-width: 104px;
  min-height: 104px;
  border: 1px solid rgba(214, 184, 121, 0.72);
  border-radius: 22px;
  background: linear-gradient(145deg, #0a0f1b, #172134);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 16px 28px rgba(0, 0, 0, 0.28);
  text-transform: uppercase;
}

.jpm-offer-logo img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
  object-position: center;
}

.jpm-offer-wordmark {
  display: block;
  width: min(420px, 100%);
  aspect-ratio: 1400 / 260;
  height: auto;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 0.55rem;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.jpm-offer-hero-copy h3 {
  margin: 0.1rem 0 0.25rem;
  color: #ffffff;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
}

.jpm-offer-hero-copy p,
.jpm-offer-validity span,
.jpm-offer-content li,
.jpm-offer-note p {
  color: rgba(248, 250, 252, 0.76);
}

.jpm-offer-validity {
  min-width: 132px;
  border: 1px solid rgba(214, 184, 121, 0.44);
  border-radius: 16px;
  padding: 0.85rem;
  text-align: right;
  background: rgba(255, 255, 255, 0.08);
}

.jpm-offer-validity strong {
  display: block;
  color: #d6b879;
  font-size: 1.1rem;
}

.jpm-offer-car-photo {
  margin: 1rem 1.4rem 0;
  overflow: hidden;
  border: 1px solid rgba(214, 184, 121, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.jpm-offer-car-photo img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
}

.jpm-offer-car-photo figcaption {
  padding: 0.75rem 1rem;
  color: #fff;
  font-weight: 900;
}

.jpm-offer-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem 1.4rem;
}

.jpm-offer-kpis article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.07);
}

.jpm-offer-kpis span {
  display: block;
  color: rgba(248, 250, 252, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.jpm-offer-kpis strong {
  display: block;
  margin-top: 0.3rem;
  color: #ffffff;
  font-size: 1.28rem;
}

.jpm-offer-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 1rem;
  padding: 0 1.4rem 1.4rem;
}

.jpm-offer-content h4 {
  color: #d6b879;
  margin-bottom: 0.55rem;
}

.jpm-offer-content ul {
  margin: 0;
  padding-left: 1.2rem;
}

.jpm-offer-note {
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.jpm-offer-note strong {
  color: #d6b879;
}

.backoffice-content {
  min-width: 0;
}

.backoffice-pane {
  display: none;
  gap: 1rem;
}

.backoffice-pane.active {
  display: grid;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.panel-grid-full {
  grid-template-columns: 1fr;
}

.panel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 22px rgba(13, 28, 52, 0.08);
}

.panel-card h3 {
  margin-bottom: 0.5rem;
}

.panel-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.panel-card-head .eyebrow {
  margin-bottom: 0.25rem;
}

.panel-card-head h3 {
  margin-bottom: 0;
}

.panel-muted {
  margin: 0 0 1rem;
  color: #4f6584;
  font-size: 0.9rem;
}

.metric-card {
  display: grid;
  gap: 0.25rem;
  align-content: center;
  min-height: 118px;
}

.metric-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: #56739f;
  font-weight: 700;
}

.metric-value {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: #16375f;
}

.table-wrap {
  overflow-x: auto;
  background:
    linear-gradient(90deg, #fff 0, rgba(255, 255, 255, 0)) left center / 22px 100% no-repeat,
    linear-gradient(270deg, rgba(7, 24, 44, 0.1), rgba(7, 24, 44, 0)) right center / 34px 100% no-repeat;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.data-table th,
.data-table td {
  text-align: left;
  border-bottom: 1px solid #e4eaf2;
  padding: 0.55rem 0.5rem;
  font-size: 0.83rem;
  vertical-align: top;
}

.data-table th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5d7090;
}

.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.16rem 0.56rem;
  font-size: 0.73rem;
  font-weight: 700;
  background: #edf4fb;
  color: #284766;
  border: 1px solid #d6e2ef;
}

.admin-breadcrumb {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 0.75rem;
  padding: 0.36rem 0.72rem;
  border: 1px solid #dce7f4;
  border-radius: 999px;
  background: #fff;
  color: #385477;
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(9, 26, 47, 0.05);
}

.tag-success {
  border-color: #bfe8cd;
  background: #effaf3;
  color: #1d7a43;
}

.tag-warning {
  border-color: #ead29a;
  background: #fff7e5;
  color: #8a5d07;
}

.empty-state-card,
.admin-empty-state {
  display: grid;
  gap: 0.65rem;
  place-items: center;
  text-align: center;
  padding: 1.2rem;
  border: 1px dashed #c9d8eb;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9fe 100%);
}

.admin-empty-state span {
  color: #607796;
  font-size: 0.86rem;
}

.offer-advanced-options,
.admin-form details {
  border: 1px solid #dbe7f4;
  border-radius: 16px;
  background: #fbfdff;
  padding: 0.75rem;
}

.offer-advanced-options > summary,
.admin-form details > summary {
  cursor: pointer;
  color: #1a3558;
  font-weight: 900;
  list-style: none;
}

.offer-advanced-options > summary::-webkit-details-marker,
.admin-form details > summary::-webkit-details-marker {
  display: none;
}

.offer-advanced-options > summary::after,
.admin-form details > summary::after {
  content: "Rozwiń";
  float: right;
  color: #7a8daa;
  font-size: 0.76rem;
}

.offer-advanced-options[open] > summary::after,
.admin-form details[open] > summary::after {
  content: "Zwiń";
}

.status-pending {
  background: #fff6da;
  color: #9a6f00;
}

.status-warning {
  background: #fff0cf;
  color: #9a5a00;
}

.status-approved {
  background: #dbf6ea;
  color: #0b7040;
}

.status-rejected,
.status-cancelled {
  background: #ffe4e4;
  color: #902020;
}

.status-new,
.status-issued {
  background: #eef4ff;
  color: #224a88;
}

.status-in_progress {
  background: #fff6da;
  color: #9a6f00;
}

.status-resolved,
.status-paid {
  background: #dbf6ea;
  color: #0b7040;
}

.status-overdue {
  background: #ffe7e0;
  color: #9f2d11;
}

.status-under_review {
  background: #fff2d9;
  color: #986800;
}

.status-submitted_documents {
  background: #edf3ff;
  color: #234c86;
}

.status-received_documents {
  background: #fff2d9;
  color: #986800;
}

.status-car_reserved {
  background: #e6f4ff;
  color: #145a90;
}

.status-car_release_ordered {
  background: #efe8ff;
  color: #52318f;
}

.status-car_delivered {
  background: #dbf6ea;
  color: #0b7040;
}

.status-offer_prepared,
.status-draft {
  background: #edf3ff;
  color: #214988;
}

.status-sent {
  background: #e6f4ff;
  color: #145a90;
}

.status-accepted {
  background: #dbf6ea;
  color: #0b7040;
}

.status-declined,
.status-expired {
  background: #ffe4e4;
  color: #902020;
}

.status-delivered {
  background: #dbf6ea;
  color: #0b7040;
}

.status-returned,
.status-cancelled {
  background: #ffe4e4;
  color: #902020;
}

.status-verification,
.status-awaiting_pickup {
  background: #fff2d9;
  color: #986800;
}

.status-sold,
.status-shipped {
  background: #e6f4ff;
  color: #145a90;
}

.status-first_payment_failed {
  background: #ffe7e0;
  color: #9f2d11;
}

.admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.admin-form label {
  display: grid;
  gap: 0.34rem;
  font-size: 0.82rem;
  color: #405472;
  font-weight: 600;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.62rem 0.65rem;
  font-family: inherit;
}

.admin-form h4 {
  font-size: 0.88rem;
  margin: 0.1rem 0 0.65rem;
}

.admin-form-details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
  padding: 0.2rem 0.8rem 0.75rem;
}

.admin-form-details summary {
  cursor: pointer;
  color: #183154;
  font-weight: 800;
  padding: 0.7rem 0;
}

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

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

.fleet-product-form-card {
  border: 1px solid #dce7f3;
  border-radius: 20px;
  padding: 1rem;
  background:
    radial-gradient(circle at top right, rgba(215, 194, 144, 0.12), transparent 30%),
    #fff;
  box-shadow: 0 14px 34px rgba(17, 39, 66, 0.07);
  display: grid;
  gap: 0.9rem;
}

.fleet-product-form-card + .fleet-product-form-card {
  margin-top: 0.15rem;
}

.fleet-product-form-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.72rem;
  align-items: start;
}

.fleet-product-form-card-head > span {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #07182c;
  color: #d7c290;
  font-weight: 900;
  font-family: "Sora", sans-serif;
  box-shadow: 0 10px 24px rgba(7, 24, 44, 0.16);
}

.fleet-product-form-card-head h4 {
  margin: 0;
  color: #132740;
  font-size: 1rem;
}

.fleet-product-form-card-head p {
  margin: 0.18rem 0 0;
  color: #607492;
  line-height: 1.45;
  font-size: 0.84rem;
}

.fleet-product-form-card .admin-form-details {
  margin-top: 0.1rem;
  background: #f8fbff;
}

.client-spec-preview {
  border: 1px solid #dce7f3;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.96)),
    radial-gradient(circle at top right, rgba(217, 181, 109, 0.16), transparent 38%);
  padding: 0.85rem;
}

.client-spec-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.client-spec-preview-head strong {
  display: block;
  color: #132740;
  font-family: "Sora", sans-serif;
}

.client-spec-preview-head small {
  display: block;
  color: #607492;
  margin-top: 0.12rem;
}

.client-spec-preview .product-spec-grid {
  margin-top: 0;
}

.finance-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.8rem;
  align-items: end;
}

.finance-filters label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: #405472;
  font-weight: 600;
}

.finance-filters input,
.finance-filters select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.56rem 0.6rem;
  font-family: inherit;
}

.finance-filter-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.invoice-line-items {
  border: 1px solid #e2ebf6;
  border-radius: 12px;
  padding: 0.75rem;
  background: #f8fbff;
}

.invoice-line-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.invoice-line-row {
  display: grid;
  grid-template-columns: auto 1fr minmax(160px, 220px);
  gap: 0.55rem;
  align-items: center;
  border: 1px solid #dce7f3;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  background: #fff;
}

.invoice-line-row span {
  font-size: 0.83rem;
  color: #2f486a;
  font-weight: 600;
}

.invoice-line-row input[type="number"] {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
}

.kanban-board {
  display: block;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  background:
    linear-gradient(90deg, #fff 0, rgba(255, 255, 255, 0)) left center / 24px 100% no-repeat,
    linear-gradient(270deg, rgba(7, 24, 44, 0.12), rgba(7, 24, 44, 0)) right center / 36px 100% no-repeat;
}

.kanban-workspace {
  width: 100%;
  overflow: hidden;
}

.kanban-summary-grid {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) repeat(6, minmax(120px, 1fr));
  gap: 0.7rem;
  margin: 0.85rem 0 1rem;
  min-width: 980px;
}

.kanban-summary-card {
  min-height: 92px;
  border: 1px solid #dbe7f4;
  border-radius: 16px;
  background: #fff;
  padding: 0.75rem;
  display: grid;
  align-content: space-between;
  gap: 0.35rem;
  box-shadow: 0 10px 24px rgba(9, 26, 47, 0.05);
}

.kanban-summary-card-total {
  background: linear-gradient(135deg, #07182c 0%, #123250 100%);
  border-color: #07182c;
}

.kanban-summary-card span {
  color: #617491;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kanban-summary-card strong {
  color: #07182c;
  font-family: "Sora", sans-serif;
  font-size: 1.02rem;
  line-height: 1.15;
}

.kanban-summary-card small {
  color: #71839d;
  font-weight: 750;
}

.kanban-summary-card-total span,
.kanban-summary-card-total strong,
.kanban-summary-card-total small {
  color: #fff;
}

.kanban-lanes {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 0.75rem;
  align-items: stretch;
  min-width: 1180px;
}

.kanban-column {
  border: 1px solid #dbe7f4;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7fd 100%);
  min-height: 420px;
  padding: 0.65rem;
  display: grid;
  gap: 0.62rem;
  align-content: start;
  grid-template-rows: auto 1fr;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.kanban-column.is-drop-target {
  border-color: var(--brand-gold);
  box-shadow: 0 14px 34px rgba(199, 144, 33, 0.18);
  transform: translateY(-2px);
}

.kanban-column h4 {
  margin: 0;
  font-size: 0.78rem;
  color: #183154;
  display: grid;
  gap: 0.18rem;
  min-height: 2.8rem;
  line-height: 1.25;
}

.kanban-column h4 span {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.66rem;
  color: #617491;
  font-weight: 700;
  text-align: left;
  line-height: 1.25;
}

.kanban-column-body {
  display: grid;
  gap: 0.65rem;
  align-items: start;
}

.kanban-card {
  border: 1px solid #d4e3f3;
  border-radius: 16px;
  background: #fff;
  padding: 0.68rem;
  display: grid;
  gap: 0.48rem;
  width: 100%;
  min-height: 142px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.kanban-card:hover {
  border-color: #c79021;
  box-shadow: 0 10px 24px rgba(39, 69, 106, 0.12);
}

.kanban-card.is-dragging {
  opacity: 0.45;
  transform: rotate(1deg) scale(0.98);
}

.kanban-card-compact {
  align-items: stretch;
}

.kanban-card-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.38rem;
  align-items: stretch;
  min-height: 0;
}

.kanban-card-title {
  margin: 0;
  font-size: 0.82rem;
  color: #102741;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
  min-height: 2.05rem;
}

.kanban-card-meta {
  margin: 0;
  font-size: 0.76rem;
  color: #4e678a;
}

.kanban-card-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.kanban-card-meta-grid > div {
  display: grid;
  gap: 0.14rem;
  padding-bottom: 0.42rem;
  border-bottom: 1px solid #edf3f9;
}

.kanban-card-meta-grid > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.kanban-card-meta-grid span {
  color: #6b7f9b;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kanban-card-meta-grid strong {
  color: #233b5b;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.kanban-card-mrr {
  display: inline-grid;
  place-items: center;
  min-height: 1.8rem;
  font-family: "Sora", sans-serif;
  font-size: 0.8rem;
  color: #07182c;
  white-space: nowrap;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: #fff7e5;
  border: 1px solid #ecd39a;
  justify-self: start;
}

.kanban-card-model {
  margin: 0;
  color: #344f72;
  font-size: 0.77rem;
  font-weight: 750;
  line-height: 1.3;
  min-height: 2rem;
  overflow-wrap: anywhere;
}

.kanban-card-alert {
  margin: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #f7fafd;
  color: #30567e;
  font-size: 0.76rem;
  font-weight: 700;
}

.kanban-card-note {
  margin: 0;
  color: #4e678a;
  font-size: 0.78rem;
  line-height: 1.45;
  min-height: 2.2rem;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #eef3f8;
}

.kanban-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.42rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #edf3f9;
  align-items: center;
}

.kanban-card-actions .btn-small {
  justify-content: center;
  min-width: 0;
}

.kanban-card-open {
  min-height: 2rem;
  border-radius: 10px;
  font-weight: 850;
}

.kanban-action-menu {
  position: relative;
  justify-self: end;
}

.kanban-action-menu summary {
  list-style: none;
  width: 2.05rem;
  height: 2.05rem;
  display: grid;
  place-items: center;
  border: 1px solid #cad7e8;
  border-radius: 10px;
  background: #fff;
  color: #1f3757;
  font-weight: 900;
  cursor: pointer;
}

.kanban-action-menu summary::-webkit-details-marker {
  display: none;
}

.kanban-action-menu[open] summary {
  border-color: #d6b879;
  box-shadow: 0 8px 18px rgba(214, 184, 121, 0.18);
}

.kanban-action-menu-list {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.35rem);
  z-index: 15;
  display: flex;
  gap: 0.28rem;
  padding: 0.35rem;
  border: 1px solid #d8e3f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(9, 26, 47, 0.16);
}

.kanban-icon-btn {
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.btn-small {
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
}

.backoffice-nav-dropdown {
  position: relative;
}

.finance-subpane {
  display: none;
  width: 100%;
  min-width: 0;
}

.finance-subpane.active {
  display: grid;
  gap: 1rem;
}

.finance-kpi-grid {
  margin-bottom: 1rem;
}

#admin-pane-finance,
#admin-pane-finance > .panel-card,
#admin-pane-finance .finance-subpane,
#admin-pane-finance .panel-grid,
#admin-pane-finance .panel-card,
#admin-pane-finance .table-wrap {
  min-width: 0;
}

#admin-pane-finance > .panel-card {
  width: 100%;
  overflow: hidden;
}

#admin-pane-finance .panel-grid {
  width: 100%;
}

#admin-pane-finance .finance-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

#admin-pane-finance .client-summary-card {
  min-height: 104px;
  align-content: start;
}

#admin-pane-finance .table-wrap {
  width: 100%;
  max-width: 100%;
}

.finance-alert-list {
  display: grid;
  gap: 0.75rem;
}

.analytics-list {
  display: grid;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.analytics-list li {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(23, 37, 62, 0.1);
  border-radius: 14px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.72rem 0.85rem;
}

.analytics-section {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.analytics-section h4 {
  margin: 0;
}

.analytics-table-wrapper {
  margin: 0;
}

.fleet-product-thumb {
  border-radius: 12px;
  height: 86px;
  margin: 0.35rem 0.45rem 0 0;
  object-fit: cover;
  width: 128px;
}

.finance-alert-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
  border: 1px solid rgba(23, 37, 62, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
}

.finance-alert-card h5,
.finance-alert-card p {
  margin: 0;
}

.finance-alert-card.priority-critical {
  border-color: rgba(190, 24, 93, 0.3);
  background: rgba(255, 241, 242, 0.85);
}

.finance-alert-card.priority-high {
  border-color: rgba(217, 119, 6, 0.28);
  background: rgba(255, 251, 235, 0.85);
}

.finance-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.finance-flow span {
  border-radius: 999px;
  background: rgba(184, 151, 92, 0.14);
  color: #17253e;
  font-weight: 800;
  padding: 0.45rem 0.75rem;
}

.highlight-row {
  background: rgba(184, 151, 92, 0.08);
}

.compact-table pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
}

.orders-subpane {
  display: none;
  margin-top: 1rem;
}

.orders-subpane.active {
  display: block;
}

.link-button {
  border: 0;
  background: transparent;
  color: #1f5f96;
  font: inherit;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.client-notes-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  gap: 1rem;
  align-items: start;
}

.client-notes-timeline {
  display: grid;
  gap: 0.8rem;
}

.note-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0 1rem;
}

.client-note-card {
  border: 1px solid #dfe7f2;
  border-left: 5px solid #8ba4c2;
  border-radius: 16px;
  background: #fff;
  padding: 0.9rem;
  box-shadow: 0 12px 28px rgba(39, 69, 106, 0.08);
}

.client-note-card.is-pinned {
  border-color: #d6ae57;
  background: #fffaf1;
}

.client-note-card.priority-high {
  border-left-color: #c79021;
}

.client-note-card.priority-critical {
  border-left-color: #b93636;
}

.client-note-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.client-note-card h5,
.client-note-card p {
  margin: 0.35rem 0 0;
}

.note-badges,
.client-note-actions,
.client-note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.note-badge {
  border-radius: 999px;
  background: #edf4fb;
  color: #254a73;
  padding: 0.22rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.note-badge.priority {
  background: #f3efe4;
  color: #846018;
}

.note-badge.pinned {
  background: #fff0bd;
  color: #8a5c00;
}

.note-badge.follow {
  background: #e8f4ec;
  color: #1f6f3b;
}

.note-badge.overdue {
  background: #fde7e7;
  color: #a83232;
}

.client-note-meta {
  margin-top: 0.65rem;
  color: #4e678a;
  font-size: 0.78rem;
}

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

.kanban-card label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.76rem;
  color: #405472;
  font-weight: 600;
}

.kanban-card input,
.kanban-card select,
.kanban-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.42rem 0.48rem;
  font-family: inherit;
  font-size: 0.78rem;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  color: #2f486a;
  font-weight: 500;
}

.checkbox-line input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}

.price-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border: 1px solid #e4eaf2;
  border-radius: 12px;
  padding: 0.75rem;
  background: #f9fbfe;
}

.price-split label {
  margin-bottom: 0.4rem;
}

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

.inline-edit {
  width: 100%;
  min-width: 160px;
}

.data-table td .btn {
  margin: 0.12rem 0.2rem 0.12rem 0;
}

.application-preview-empty {
  color: #4f6584;
  font-size: 0.9rem;
}

.application-preview {
  display: grid;
  gap: 0.45rem;
}

.application-preview p {
  margin: 0;
  font-size: 0.86rem;
  color: #2f486a;
}

.application-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.application-preview-docs ul {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
}

.application-preview-docs li {
  margin-bottom: 0.28rem;
}

.product-dialog,
.checkout-dialog {
  width: min(1080px, 96vw);
  border: none;
  border-radius: 24px;
  padding: 0;
  box-shadow: 0 24px 70px rgba(10, 21, 40, 0.35);
}

.product-dialog::backdrop,
.checkout-dialog::backdrop {
  background: rgba(8, 17, 30, 0.62);
  backdrop-filter: blur(2px);
}

.product-dialog-body,
.checkout-dialog-body {
  padding: 1.1rem;
  background: #fff;
}

.product-dialog-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 1.1rem;
}

.product-dialog-gallery {
  display: grid;
  gap: 0.65rem;
}

.product-dialog-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid #d9e5f5;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
  padding: 0.72rem 0.85rem;
}

.product-dialog-visual-head span {
  color: #5b7090;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-dialog-visual-head strong {
  color: var(--jpm-midnight);
  font-family: "Sora", sans-serif;
  text-align: right;
}

.product-dialog-gallery-main {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border: 1px solid #d9e5f5;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 10%, rgba(217, 181, 109, 0.14), transparent 31%),
    linear-gradient(180deg, #f9fbff 0%, #edf3fb 100%);
  padding: 0.6rem;
}

.product-dialog-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.product-dialog-gallery-thumbs button {
  border: 1px solid #d8e4f3;
  border-radius: 14px;
  padding: 0.2rem;
  background: #fff;
  cursor: pointer;
}

.product-dialog-gallery-thumbs img {
  width: 100%;
  height: 54px;
  object-fit: contain;
}

.product-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.product-spec-tile {
  min-height: 78px;
  border: 1px solid #d9e5f5;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 10px 22px rgba(11, 31, 53, 0.06);
  padding: 0.72rem;
  display: grid;
  align-content: center;
  gap: 0.2rem;
}

.product-spec-tile span {
  color: #6d7f98;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-spec-tile strong {
  color: #0b1f35;
  font-family: "Sora", sans-serif;
  font-size: 0.9rem;
  line-height: 1.2;
}

.product-dialog-side {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.product-dialog-summary {
  border: 1px solid #d9e5f5;
  border-radius: 20px;
  background: #fff;
  padding: 0.9rem;
}

.product-dialog-summary .eyebrow {
  margin-bottom: 0.35rem;
}

.product-dialog-summary h3 {
  margin: 0;
  color: var(--jpm-midnight);
  font-size: 1.35rem;
}

.product-dialog-summary p:not(.eyebrow) {
  margin: 0.45rem 0 0;
  color: #526b8d;
  font-size: 0.9rem;
  line-height: 1.5;
}

.product-dialog-info {
  display: grid;
  gap: 0.5rem;
}

.product-dialog-info p {
  margin: 0;
  border: 1px solid #dce6f3;
  border-radius: 15px;
  background: #f8fbff;
  color: #4e678a;
  font-size: 0.84rem;
  padding: 0.68rem 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.product-dialog-info p strong {
  color: var(--jpm-midnight);
}

.product-dialog-info p span {
  text-align: right;
}

.product-dialog-price {
  border: 1px solid rgba(217, 181, 109, 0.42);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(217, 181, 109, 0.16), #fff);
  padding: 0.85rem;
}

.product-dialog-price strong {
  display: block;
  margin-top: 0.12rem;
  color: #16375f;
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
}

.product-dialog-price small {
  display: block;
  margin-top: 0.25rem;
  color: #667c99;
  font-size: 0.76rem;
  line-height: 1.35;
}

.product-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  border: 1px solid #d9e5f5;
  border-radius: 20px;
  background: #fff;
  padding: 0.85rem;
}

.product-config-grid label {
  display: grid;
  gap: 0.32rem;
  font-size: 0.81rem;
  color: #415776;
  font-weight: 600;
}

.product-config-grid input,
.product-config-grid select,
.product-config-grid textarea {
  width: 100%;
  border: 1px solid #d7e1ee;
  border-radius: 10px;
  padding: 0.64rem 0.68rem;
  font-family: inherit;
}

.checkout-steps {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 0.95rem;
  flex-wrap: wrap;
}

.checkout-step {
  border: 1px solid #d2dfee;
  background: #f4f8ff;
  color: #36567d;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.checkout-step.active {
  border-color: #1d4476;
  background: linear-gradient(135deg, #1c416f 0%, #2f5f99 60%, #376cad 100%);
  color: #fff;
}

.checkout-panes {
  border: 1px solid #dbe5f3;
  border-radius: 14px;
  padding: 0.85rem;
  background: #fbfdff;
}

.checkout-pane {
  display: none;
}

.checkout-pane.active {
  display: grid;
  gap: 0.72rem;
}

.checkout-cart-items {
  display: grid;
  gap: 0.55rem;
  max-height: 42vh;
  overflow: auto;
}

.checkout-cart-row {
  border: 1px solid #dbe6f4;
  border-radius: 11px;
  padding: 0.58rem;
  background: #fff;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
}

.checkout-cart-thumb,
.checkout-summary-thumb {
  width: 100%;
  height: 58px;
  border: 1px solid #dbe6f4;
  border-radius: 10px;
  object-fit: cover;
  background: #edf4fb;
}

.checkout-cart-thumb-placeholder,
.checkout-summary-thumb-placeholder {
  display: grid;
  place-items: center;
  color: #18375e;
  font-size: 0.72rem;
  font-weight: 800;
}

.checkout-cart-copy {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
}

.checkout-cart-row p {
  margin: 0;
  font-size: 0.82rem;
  color: #445e82;
}

.checkout-total-line {
  margin-top: 0.2rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #cfdcec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.checkout-total-line span {
  color: #4f6584;
}

.checkout-total-line strong {
  font-family: "Sora", sans-serif;
  color: #16375f;
}

.checkout-summary {
  display: grid;
  gap: 0.62rem;
}

.checkout-summary-block {
  border: 1px solid #dbe6f4;
  border-radius: 11px;
  padding: 0.62rem;
  background: #fff;
}

.checkout-summary-block h4 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}

.checkout-summary-block p {
  margin: 0;
  font-size: 0.82rem;
  color: #425d80;
}

.checkout-summary-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
}

.checkout-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

#checkout-message {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #30567e;
}

.auth-dialog {
  width: min(760px, 95vw);
  border: none;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 24px 70px rgba(10, 21, 40, 0.35);
}

.auth-recovery-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
}

.admin-client-action-dialog {
  width: min(840px, 95vw);
}

.crm-lead-dialog {
  width: min(1240px, 97vw);
}

.crm-lead-dialog .auth-dialog-body {
  max-height: min(88vh, 920px);
  overflow: auto;
}

.crm-lead-page {
  display: grid;
  gap: 1.05rem;
}

.crm-lead-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.34fr);
  justify-content: space-between;
  gap: 1rem;
  align-items: stretch;
  border: 1px solid #dce7f3;
  border-radius: 22px;
  padding: 1.05rem;
  background:
    radial-gradient(circle at top right, rgba(215, 194, 144, 0.18), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #eef5fc 100%);
}

.crm-lead-topbar h3,
.crm-side-card h4,
.crm-main-section h4 {
  margin: 0;
  color: #132740;
}

.crm-lead-topbar h3 {
  font-size: clamp(1.28rem, 2.4vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.crm-lead-topbar p {
  margin: 0.25rem 0 0;
  color: #5c708f;
  font-size: 0.88rem;
}

.crm-lead-value {
  min-width: 0;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  background: #07182c;
  color: #fff;
  display: grid;
  align-content: center;
  gap: 0.25rem;
  box-shadow: 0 16px 34px rgba(7, 24, 44, 0.16);
}

.crm-lead-value span {
  color: #d7c290;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.crm-lead-value strong {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.1;
}

.crm-lead-value-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.3rem;
}

.crm-lead-value-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(215, 194, 144, 0.55);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
}

.crm-lead-value-form input:focus {
  outline: 2px solid rgba(215, 194, 144, 0.45);
  border-color: #d7c290;
}

.crm-lead-value-form .btn {
  white-space: nowrap;
}

.crm-pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: stretch;
}

.crm-pipeline-step {
  border: 1px solid #dce7f3;
  border-radius: 14px;
  background: #fff;
  color: #4f6584;
  padding: 0.68rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-start;
  min-height: 3.25rem;
  text-align: left;
  cursor: pointer;
}

.crm-pipeline-step span {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #eef4fb;
  color: #27456a;
  font-size: 0.72rem;
}

.crm-pipeline-step.done {
  border-color: #cfe7d7;
  background: #f4fbf6;
  color: #1d6a3a;
}

.crm-pipeline-step.done span {
  background: #1d6a3a;
  color: #fff;
}

.crm-pipeline-step.current {
  border-color: var(--brand-gold);
  background: #fff9ec;
  color: #17253e;
  box-shadow: 0 12px 24px rgba(199, 144, 33, 0.14);
}

.crm-pipeline-step.current span {
  background: var(--brand-gold);
  color: #fff;
}

.crm-lead-layout {
  display: grid;
  grid-template-columns: minmax(235px, 0.82fr) minmax(500px, 1.75fr) minmax(225px, 0.78fr);
  gap: 1rem;
  align-items: start;
}

.crm-side-card,
.crm-main-card {
  border: 1px solid #dce7f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(22, 48, 82, 0.08);
}

.crm-side-card {
  padding: 1rem;
  display: grid;
  gap: 0.72rem;
}

.crm-side-card .btn.full {
  width: 100%;
}

.crm-main-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.crm-main-section {
  display: grid;
  gap: 0.72rem;
  align-items: start;
}

.crm-lead-edit-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.95rem;
  border: 1px solid #e1eaf5;
  border-radius: 14px;
  background: #f8fbff;
  align-items: end;
}

.crm-lead-edit-form label.full,
.crm-lead-note-form label.full {
  grid-column: 1 / -1;
}

.crm-lead-note-form {
  padding: 0.85rem;
  border: 1px solid #e1eaf5;
  border-radius: 14px;
  background: #fbfdff;
  align-items: end;
}

.crm-notes-list {
  display: grid;
  gap: 0.55rem;
}

.crm-note-item {
  display: grid;
  gap: 0.18rem;
  padding: 0.7rem;
  border: 1px solid #e3ebf5;
  border-radius: 12px;
  background: #fff;
}

.crm-note-item span {
  color: #687b96;
  font-size: 0.78rem;
}

.crm-note-item p {
  margin: 0;
  color: #314763;
  line-height: 1.45;
}

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

.crm-metric-grid > div {
  border: 1px solid #e0e9f4;
  border-radius: 12px;
  padding: 0.72rem;
  background: #f8fbff;
  display: grid;
  gap: 0.2rem;
  min-height: 4.7rem;
  align-content: start;
}

.crm-metric-grid span,
.crm-info-row span,
.crm-activity-item span {
  color: #607492;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.crm-metric-grid strong,
.crm-info-row strong,
.crm-activity-item strong {
  color: #132740;
  font-size: 0.88rem;
}

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

.crm-info-row {
  border-bottom: 1px solid #eef3f8;
  padding: 0.55rem 0;
  display: grid;
  gap: 0.2rem;
}

.crm-side-card .crm-info-row:last-of-type {
  border-bottom: none;
}

.crm-activity-list {
  display: grid;
  gap: 0.55rem;
}

.crm-activity-item {
  border-left: 3px solid var(--brand-gold);
  border-radius: 12px;
  padding: 0.62rem 0.7rem;
  background: #fbfdff;
  display: grid;
  gap: 0.15rem;
}

.crm-activity-item p {
  margin: 0;
  color: #4f6584;
  font-size: 0.85rem;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .crm-lead-topbar,
  .crm-lead-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .crm-metric-grid,
  .crm-info-grid,
  .crm-lead-edit-form,
  .admin-form-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .crm-pipeline,
  .crm-metric-grid,
  .crm-info-grid,
  .crm-lead-edit-form,
  .admin-form-grid,
  .admin-form-grid-compact {
    grid-template-columns: 1fr;
  }
}

.auth-dialog::backdrop {
  background: rgba(8, 17, 30, 0.62);
  backdrop-filter: blur(2px);
}

.auth-modal-body {
  padding: 1rem;
  background: #fff;
}

.auth-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.auth-modal-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.auth-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid #dce5f1;
  border-radius: 999px;
  padding: 0.2rem;
  margin-bottom: 0.95rem;
}

.auth-tab {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #4f6584;
  padding: 0.42rem 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.active {
  background: #e5eef8;
  color: #1d3554;
}

.auth-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.62rem;
}

.auth-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: #415776;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  border: 1px solid #d7e1ee;
  border-radius: 10px;
  padding: 0.64rem 0.68rem;
}

.auth-form select {
  width: 100%;
  border: 1px solid #d7e1ee;
  border-radius: 10px;
  padding: 0.64rem 0.68rem;
  font-family: inherit;
}

.auth-help {
  margin: 0;
  font-size: 0.76rem;
  color: #5b7090;
}

.client-detail {
  display: grid;
  gap: 1rem;
}

.client-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 0.7rem;
  margin: 0.75rem 0 0.9rem;
}

.client-summary-card {
  text-align: left;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  padding: 0.8rem;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  display: grid;
  gap: 0.25rem;
}

.client-summary-card span {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64758f;
  text-transform: uppercase;
}

.client-summary-card strong {
  font-family: "Sora", sans-serif;
  font-size: 1.45rem;
  color: #17253e;
}

.client-summary-card.active {
  border-color: #c79021;
  background: #fff9ed;
  box-shadow: 0 10px 24px rgba(210, 151, 26, 0.14);
}

.analytics-kpi-card:hover,
.analytics-kpi-card:focus-visible {
  border-color: rgba(199, 144, 33, 0.55);
  box-shadow: 0 14px 30px rgba(23, 37, 62, 0.1);
  transform: translateY(-1px);
}

.analytics-attention-action {
  appearance: none;
  border: 1px solid rgba(23, 37, 62, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 0.25rem;
  padding: 0.82rem 0.9rem;
  text-align: left;
}

.analytics-attention-action small {
  color: #c79021;
  font-weight: 800;
}

.compact-actions {
  gap: 0.35rem;
}

.client-detail-head {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: start;
  gap: 1rem;
  padding: 0.15rem 0 0.4rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.client-detail-head h4 {
  margin: 0 0 0.25rem;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.client-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.client-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.client-actions {
  position: relative;
}

.client-actions-button {
  min-width: 112px;
}

.client-row-actions {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
  width: 100%;
}

.client-row-actions-toggle {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 0;
  padding: 0;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-grid;
  place-items: center;
}

.client-actions-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 30;
  min-width: 260px;
  display: grid;
  gap: 0.2rem;
  padding: 0.5rem;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 36, 66, 0.16);
}

.client-row-actions-menu {
  min-width: 190px;
}

.client-actions-item {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 0.62rem 0.72rem;
  background: transparent;
  color: #102442;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.client-actions-item:hover {
  background: #f1f6fb;
}

.client-actions-item.danger-action {
  color: #9f1d1d;
}

.client-actions-item.danger-action:hover {
  background: #fff1f1;
}

.client-detail-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}

.client-detail-summary-item {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 0.2rem;
  padding: 0.75rem;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #fff;
}

.client-detail-summary-item span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64758f;
  text-transform: uppercase;
}

.client-detail-summary-item strong {
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
  color: #16263f;
  line-height: 1.25;
}

.client-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.client-360-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0 1rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.client-360-tab-bar .auth-tab {
  width: auto;
  min-height: 2.35rem;
  border: 1px solid #e1e8f2;
  border-radius: 999px;
  background: #fff;
  color: #7f91ad;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  font-weight: 800;
  padding: 0.52rem 0.9rem;
  box-shadow: 0 8px 18px rgba(18, 43, 76, 0.04);
}

.client-360-tab-bar .auth-tab.active {
  border-color: #ffe2c9;
  background: #fff0e7;
  color: #ff6b1a;
  box-shadow: none;
}

.client-tab-count {
  min-width: 1.35rem;
  height: 1.35rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #f0f4fa;
  color: #7c8da8;
  font-size: 0.75rem;
  line-height: 1;
}

.subtabs-as-dropdown-source,
.client-detail-tabs.subtabs-as-dropdown-source {
  display: none !important;
}

.subtab-dropdown {
  margin: 0.65rem 0 1rem;
}

.subtab-dropdown label {
  display: grid;
  gap: 0.35rem;
  color: #526070;
  font-size: 0.82rem;
  font-weight: 800;
}

.subtab-dropdown select {
  width: min(100%, 420px);
  border: 1px solid rgba(22, 38, 63, 0.16);
  border-radius: 14px;
  background: #fff;
  color: #16263f;
  font: inherit;
  font-weight: 800;
  padding: 0.78rem 0.9rem;
  box-shadow: 0 10px 28px rgba(22, 38, 63, 0.08);
}

.client-detail-pane {
  display: none;
  gap: 0.9rem;
}

.client-detail-pane.active {
  display: grid;
}

.client-profile-page-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 1rem;
  align-items: start;
}

.client-profile-side-stack {
  display: grid;
  gap: 1rem;
}

.client-profile-card {
  border: 1px solid #e1e8f2;
  border-radius: 12px;
  background: #fff;
  padding: 1.45rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.client-profile-card h4 {
  margin: 0 0 1rem;
  color: #111827;
}

.client-profile-contact-card {
  min-height: 19rem;
}

.client-profile-contact-summary {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.1rem;
}

.client-profile-contact-summary strong {
  font-size: 1rem;
}

.client-profile-contact-summary a {
  color: #ff6b1a;
  font-weight: 800;
}

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

.client-profile-pair-grid {
  margin: 1.1rem 0;
  padding: 1rem 0;
  border-top: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
}

.client-profile-pair-grid span {
  display: block;
  margin-bottom: 0.25rem;
  color: #8a9bb5;
  font-size: 0.78rem;
  font-weight: 800;
}

.client-profile-pair-grid strong {
  color: #111827;
}

.client-profile-form-grid.align-end {
  align-items: end;
}

.settings-toggles.compact {
  margin-top: 1rem;
}

.payment-policy-toggle {
  min-height: 2.7rem;
  align-self: end;
  background: #f6f8fb;
}

.client-list-cards {
  display: grid;
  gap: 0.65rem;
}

.client-mini-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid #e7edf5;
  border-radius: 12px;
  background: #fbfdff;
}

.client-mini-record > div {
  display: grid;
  gap: 0.2rem;
}

.client-mini-record strong {
  color: #111827;
}

.btn-link-like {
  border: 0;
  padding: 0;
  background: transparent;
  color: #145a90;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-link-like:hover {
  color: #0d3f67;
}

.client-orders-list-view {
  display: grid;
  gap: 0.9rem;
}

.order-detail-page {
  gap: 1rem;
}

.order-detail-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e4ebf5;
}

.order-detail-page-head h4 {
  margin: 0.1rem 0 0;
  font-size: 1.08rem;
}

.order-detail-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.55rem;
  border: 1px solid #d9e4f2;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5fc 100%);
  box-shadow: 0 14px 30px rgba(13, 28, 52, 0.07);
}

.order-detail-section-tabs .auth-tab {
  flex: 1 1 10rem;
  min-height: 3.25rem;
  border: 1px solid #d5e0ee;
  border-radius: 14px;
  background: #fff;
  color: #27456a;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(18, 43, 76, 0.06);
}

.order-detail-section-tabs .auth-tab.active {
  border-color: #c79021;
  background: #fff8e8;
  color: #102442;
  box-shadow: 0 12px 26px rgba(199, 144, 33, 0.16);
}

.invoice-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.55rem;
}

.invoice-brand img {
  width: min(230px, 52vw);
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.client-admin-settings {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 253, 0.96)),
    #fff;
  box-shadow: 0 14px 34px rgba(22, 38, 63, 0.06);
}

.client-admin-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e6edf5;
}

.client-admin-settings-head h4 {
  margin: 0.12rem 0 0;
  color: #16263f;
}

.client-admin-settings-form {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
}

.client-admin-settings-form .settings-field {
  grid-column: span 2;
  padding: 0.75rem;
  border: 1px solid #e5ecf5;
  border-radius: 10px;
  background: #fff;
}

.client-admin-settings-form .settings-field-wide {
  grid-column: span 3;
}

.client-admin-settings-form .settings-field > span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64758f;
}

.settings-toggles {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.settings-toggle {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.55rem !important;
  min-height: 54px;
  padding: 0.75rem;
  border: 1px solid #e5ecf5;
  border-radius: 10px;
  background: #fff;
  color: #26364f !important;
}

.settings-toggle input {
  width: auto !important;
  accent-color: var(--gold);
}

.settings-toggle-danger {
  border-color: #f1d6d6;
  background: #fff8f8;
}

.unit-eval-pane {
  display: none;
}

.unit-eval-pane.active {
  display: block;
}

.return-pane {
  display: none;
}

.return-pane.active {
  display: block;
}

.credit-actions {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.credit-required-docs {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(246, 241, 230, 0.58);
}

.credit-required-docs p {
  margin: 0 0 0.25rem;
}

#admin-unit-eval-progress-body textarea {
  min-width: 180px;
}

#admin-unit-eval-progress-body input[type="file"] {
  max-width: 220px;
  display: block;
  margin-bottom: 0.35rem;
}

.service-incident-detail {
  margin-top: 0;
}

.service-incident-card {
  border-top: 5px solid #0ea5e9;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), #ffffff 54%);
}

.service-incident-page {
  min-height: 520px;
}

.service-incident-page .panel-card-head {
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(12, 31, 45, 0.08);
}

.service-incident-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 1rem;
  align-items: start;
}

.service-incident-grid section {
  padding: 1rem;
  border: 1px solid rgba(12, 31, 45, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.service-incident-grid h5 {
  margin: 0 0 0.75rem;
  color: #102442;
}

.service-incident-decision-form {
  margin: 0;
}

@media (max-width: 900px) {
  .service-incident-grid {
    grid-template-columns: 1fr;
  }
}

.order-detail-grid {
  display: grid;
  gap: 0.8rem;
}

.order-detail-block {
  border: 1px solid #e0e8f3;
  border-radius: 12px;
  padding: 0.75rem;
  background: #fbfdff;
}

.order-detail-block h5 {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
}

.order-detail-section-panel {
  display: none;
}

.order-detail-section-panel.active {
  display: block;
}

@media (max-width: 1050px) {
  .client-360-tab-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fleet-tab-bar {
    grid-template-columns: 1fr;
  }

  .marketplace-hero-card,
  .marketplace-benefits {
    grid-template-columns: 1fr 1fr;
  }

  .marketplace-hero-copy {
    grid-column: 1 / -1;
  }

  .cart-side {
    grid-column: 1 / -1;
    position: static;
  }

  .hero-grid,
  .pricing-grid,
  .why-grid,
  .testimonial-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .category-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

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

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

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

  .why-visual,
  .why-visual img {
    min-height: 190px;
  }

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

  .catalog-page-hero {
    grid-template-columns: 1fr;
  }

  .catalog-price-filter {
    grid-column: 1 / -1;
  }

  .discover-filters {
    position: static;
  }

  .kanban-summary-grid {
    grid-template-columns: minmax(190px, 1.25fr) repeat(6, minmax(120px, 1fr));
    min-width: 980px;
  }

  .kanban-lanes {
    grid-template-columns: repeat(6, minmax(180px, 1fr));
    min-width: 1180px;
  }

  .product-card,
  .panel-grid,
  .panel-grid-3,
  .product-pricing,
  .backoffice-shell,
  .price-split {
    grid-template-columns: 1fr;
  }

  .panel-section#admin-panel-section .backoffice-shell {
    grid-template-columns: 1fr;
  }

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

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

  .backoffice-sidebar {
    position: static;
  }

  .panel-section#admin-panel-section .backoffice-sidebar {
    position: static;
  }

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

  .client-detail-actions {
    justify-content: flex-start;
  }

  .client-profile-page-grid,
  .client-profile-form-grid,
  .client-profile-pair-grid {
    grid-template-columns: 1fr;
  }

  .cart-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .btn-light {
    display: none;
  }

  .hero {
    padding-top: 2.8rem;
  }

  .clients-report-grid {
    grid-template-columns: 1fr;
  }

  .fleet-directory-toolbar,
  .fleet-directory-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .fleet-directory-toolbar input {
    width: 100%;
  }

  .fleet-card-grid,
  .fleet-card-grid.fleet-card-grid-list {
    grid-template-columns: 1fr;
  }

  .marketplace-hero {
    padding-top: 1.1rem;
  }

  .marketplace-hero-card,
  .marketplace-benefits,
  .hero-mini-grid,
  .command-center-grid,
  .discover-head,
  .discover-results-bar,
  .catalog-filter-bar,
  .why-grid,
  .hero-search {
    grid-template-columns: 1fr;
  }

  .marketplace-hero-card {
    padding: 0.65rem;
    border-radius: 22px;
  }

  .marketplace-hero-copy {
    min-height: auto;
    padding: 1rem;
  }

  .marketplace-hero-copy h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .product-spec-grid,
  .product-spec-pills,
  .product-config-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-dialog-info p {
    display: grid;
  }

  .product-dialog-info p span {
    text-align: left;
  }

  .hero-search {
    gap: 0.55rem;
  }

  .hero-search span {
    display: none;
  }

  .category-card {
    min-width: 136px;
  }

  .why-visual,
  .why-visual img {
    min-height: 180px;
  }

  .why-visual-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    margin: -4.2rem 0.75rem 0.75rem;
  }

  .why-grid article {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .why-grid article img {
    height: 70px;
  }

  .hero-grid,
  .fleet-grid,
  .storefront-layout,
  .category-rail,
  .product-card,
  .product-pricing,
  .pricing-grid,
  .why-grid,
  .testimonial-grid,
  .contact-grid,
  .backoffice-shell,
  .filters,
  .contact-form,
  .admin-form,
  .panel-grid,
  .panel-grid-3,
  .profile-grid,
  .finance-filters {
    grid-template-columns: 1fr;
  }

  .fleet-grid.catalog-preview-carousel {
    display: flex;
  }

  .catalog-preview-card {
    flex-basis: min(66vw, 225px);
  }

  .catalog-preview-image {
    height: 124px;
  }

  #admin-pane-finance .finance-kpi-grid {
    grid-template-columns: 1fr;
  }

  .admin-cockpit-grid,
  .admin-quick-actions,
  .brand-control-card {
    grid-template-columns: 1fr;
  }

  .kanban-summary-grid {
    min-width: 980px;
  }

  .kanban-lanes {
    min-width: 1120px;
  }

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

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

  .client-admin-settings-head,
  .client-admin-settings-form,
  .settings-toggles {
    grid-template-columns: 1fr;
  }

  .client-admin-settings-head {
    display: grid;
  }

  .client-admin-settings-form .settings-field,
  .client-admin-settings-form .settings-field-wide {
    grid-column: 1 / -1;
  }

  .invoice-line-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .product-dialog-content,
  .product-config-grid {
    grid-template-columns: 1fr;
  }

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

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

  .cart-item-with-image,
  .cart-page .cart-item-with-image {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .cart-item-thumb,
  .cart-page .cart-item-thumb {
    min-height: 76px;
  }

  .checkout-cart-row,
  .checkout-summary-item {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .checkout-cart-thumb,
  .checkout-summary-thumb {
    height: 52px;
  }

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

  .backoffice-nav {
    grid-template-columns: 1fr;
  }

  .backoffice-tab {
    font-size: 0.82rem;
  }

  .jpm-offer-hero,
  .jpm-offer-content,
  .jpm-offer-kpis {
    grid-template-columns: 1fr;
  }

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

  .offer-creator-steps,
  .offer-creator-main,
  .offer-creator-fields,
  .offer-mini-grid,
  .offer-preview-kpis {
    grid-template-columns: 1fr;
  }

  .offer-creator-preview {
    position: static;
  }

  .jpm-offer-validity {
    text-align: left;
  }

  .product-main-image {
    height: 205px;
  }

  .hero-car-card {
    transform: none;
  }

  .auth-actions {
    gap: 0.4rem;
  }

  .auth-actions .btn {
    padding: 0.58rem 0.78rem;
    font-size: 0.82rem;
  }

  .section {
    padding: 3.2rem 0;
  }
}
