:root {
  --bg: #f4f6f5;
  --panel: #ffffff;
  --ink: #17211d;
  --muted: #607067;
  --line: #d9e0dc;
  --soft: #edf2ef;
  --brand: #c91525;
  --brand-dark: #8f0f1a;
  --green: #1f7a4d;
  --amber: #a76000;
  --blue: #245a8d;
  --shadow: 0 18px 55px rgba(20, 31, 28, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 72px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  border-radius: 6px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 20px;
  line-height: 1.1;
}

h2 {
  font-size: 15px;
  line-height: 1.2;
}

h3 {
  font-size: 13px;
  line-height: 1.2;
}

.brand-block p,
.panel-title span,
.preview-bar span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.button,
.icon-button {
  min-height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  font-weight: 800;
}

.button {
  padding: 0 13px;
}

.button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.button.secondary:hover,
.icon-button:hover {
  border-color: #aebbb4;
  background: var(--soft);
}

.button.primary:hover {
  background: var(--brand-dark);
}

.builder-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 370px) minmax(280px, 340px) minmax(460px, 1fr);
  gap: 14px;
  padding: 14px;
}

.panel {
  min-height: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.panel-title,
.preview-bar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.panel-title strong {
  font-size: 12px;
  padding: 5px 8px;
  background: var(--soft);
  border-radius: 999px;
}

.controls-stack,
.editor-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.controls-stack {
  padding: 12px 14px 14px;
  border-bottom: 1px solid var(--line);
}

.control-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.field span,
.toggle span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 9px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 70px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201, 21, 37, 0.12);
}

.toggle,
.toggle-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px 0;
}

.vehicle-list {
  overflow: auto;
  padding: 10px;
}

.vehicle-card {
  width: 100%;
  display: grid;
  grid-template-columns: 20px 58px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.vehicle-card + .vehicle-card {
  margin-top: 8px;
}

.vehicle-card:hover,
.vehicle-card.active {
  border-color: #bfcac4;
  background: #f8faf9;
}

.vehicle-card.selected {
  border-color: rgba(201, 21, 37, 0.45);
}

.vehicle-card input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.vehicle-thumb {
  width: 58px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  background: var(--soft);
}

.vehicle-card h3 {
  font-size: 13px;
  line-height: 1.18;
  max-height: 32px;
  overflow: hidden;
}

.vehicle-meta {
  margin-top: 4px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.vehicle-price {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 900;
}

.tag-row {
  margin-top: 6px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.tag.brand {
  background: rgba(201, 21, 37, 0.1);
  color: var(--brand-dark);
}

.tag.green {
  background: rgba(31, 122, 77, 0.12);
  color: var(--green);
}

.tag.amber {
  background: rgba(167, 96, 0, 0.12);
  color: var(--amber);
}

.editor-panel {
  overflow: auto;
}

.editor-form,
.empty-state,
.data-health {
  padding: 14px;
}

.empty-state {
  color: var(--muted);
  font-size: 13px;
}

.editor-form[hidden],
.empty-state[hidden] {
  display: none;
}

.data-health {
  border-top: 1px solid var(--line);
}

.health-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.health-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.health-badge.ok {
  border-color: rgba(31, 122, 77, 0.26);
  color: var(--green);
  background: rgba(31, 122, 77, 0.08);
}

.health-badge.warn {
  border-color: rgba(167, 96, 0, 0.28);
  color: var(--amber);
  background: rgba(167, 96, 0, 0.08);
}

.preview-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.preview-nav {
  display: flex;
  gap: 6px;
}

.icon-button {
  width: 38px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.preview-canvas {
  min-height: 0;
  flex: 1;
  overflow: auto;
  display: grid;
  place-items: start center;
  padding: 18px;
}

.preview-frame {
  --scale: 0.58;
  width: calc(794px * var(--scale));
  height: calc(1123px * var(--scale));
  position: relative;
}

.preview-frame .sign-page {
  position: absolute;
  left: 0;
  top: 0;
  transform: scale(var(--scale));
  transform-origin: top left;
  box-shadow: var(--shadow);
}

.preview-empty {
  width: 100%;
  min-height: 360px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}

#printPages {
  position: fixed;
  left: -100000px;
  top: 0;
  width: 210mm;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

/* Demo UI refresh: modern SaaS shell without touching the printable A4 templates. */
:root {
  --app-bg: #eef2f5;
  --app-panel: #ffffff;
  --app-panel-strong: #f8fafb;
  --app-ink: #111827;
  --app-muted: #667085;
  --app-line: #dbe2e8;
  --app-soft: #edf5f3;
  --app-accent: #0f766e;
  --app-accent-strong: #0a5f59;
  --app-blue: #245a8d;
  --app-warn: #a76000;
  --app-shadow: 0 18px 42px rgba(24, 32, 43, 0.12);
}

body {
  height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef2f5 46%, #f4f6f8 100%);
  color: var(--app-ink);
}

.app-shell {
  height: 100vh;
  min-height: 0;
}

.topbar {
  min-height: 70px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(219, 226, 232, 0.86);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.brand-block {
  gap: 14px;
}

.mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 118, 110, 0.26);
  border-radius: 8px;
  background: #0b1218;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 14px;
}

h1 {
  color: var(--app-ink);
  font-size: 19px;
  font-weight: 820;
}

.brand-block p,
.panel-title span,
.preview-bar span {
  color: var(--app-muted);
}

.top-actions {
  gap: 9px;
}

.button,
.icon-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-color: var(--app-line);
  border-radius: 7px;
  background: #fff;
  color: var(--app-ink);
  box-shadow: 0 1px 1px rgba(17, 24, 39, 0.04);
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.button svg,
.icon-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.icon-button svg + .fallback-icon {
  display: none;
}

.button:hover,
.icon-button:hover {
  border-color: rgba(15, 118, 110, 0.32);
  background: #f8fbfb;
  box-shadow: 0 7px 18px rgba(24, 32, 43, 0.08);
}

.button:active,
.icon-button:active {
  transform: translateY(1px);
}

.button.primary {
  border-color: var(--app-accent);
  background: var(--app-accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--app-accent-strong);
}

.builder-grid {
  height: calc(100vh - 70px);
  flex: none;
  grid-template-columns: minmax(320px, 390px) minmax(330px, 390px) minmax(540px, 1fr);
  gap: 16px;
  padding: 16px;
}

.panel,
.preview-panel {
  border-color: rgba(219, 226, 232, 0.96);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 20px 46px rgba(24, 32, 43, 0.08);
}

.panel-title,
.preview-bar {
  min-height: 64px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border-bottom-color: var(--app-line);
}

.panel-title > div,
.preview-bar > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.panel-eyebrow {
  color: var(--app-accent) !important;
  font-size: 10px !important;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

h2 {
  color: var(--app-ink);
  font-size: 15px;
  font-weight: 840;
}

h3 {
  color: var(--app-ink);
  font-weight: 820;
}

.panel-title strong {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: var(--app-soft);
  color: var(--app-accent-strong);
}

.controls-stack {
  gap: 11px;
  padding: 14px 16px 16px;
  background: #fbfcfd;
}

.control-row {
  gap: 10px;
}

.field {
  gap: 6px;
}

.field span,
.toggle span {
  color: var(--app-muted);
  font-size: 10px;
  font-weight: 840;
}

.field input,
.field select,
.field textarea {
  min-height: 38px;
  border-color: var(--app-line);
  border-radius: 7px;
  background: #fff;
  color: var(--app-ink);
  box-shadow: inset 0 1px 0 rgba(17, 24, 39, 0.02);
}

.field textarea {
  min-height: 80px;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #c6d0d8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
}

.toggle input,
.vehicle-card input {
  accent-color: var(--app-accent);
}

.toggle-grid {
  gap: 9px;
}

.toggle-grid .toggle {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--app-line);
  border-radius: 7px;
  background: #fff;
}

.vehicle-list {
  padding: 12px;
}

.vehicle-card {
  grid-template-columns: 20px 68px 1fr;
  gap: 11px;
  padding: 9px;
  border-color: rgba(219, 226, 232, 0.78);
  border-radius: 8px;
  background: #fff;
}

.vehicle-card + .vehicle-card {
  margin-top: 9px;
}

.vehicle-card:hover,
.vehicle-card.active {
  border-color: rgba(15, 118, 110, 0.36);
  background: #f8fbfb;
}

.vehicle-card.active {
  box-shadow: inset 3px 0 0 var(--app-accent);
}

.vehicle-card.selected {
  border-color: rgba(15, 118, 110, 0.54);
}

.vehicle-thumb {
  width: 68px;
  border-radius: 7px;
  background: #e8eef1;
}

.vehicle-card h3 {
  color: var(--app-ink);
  font-weight: 820;
}

.vehicle-price {
  color: #0b1218;
  font-weight: 920;
}

.tag,
.health-badge {
  border-radius: 8px;
}

.tag.brand {
  background: rgba(36, 90, 141, 0.1);
  color: var(--app-blue);
}

.tag.green,
.health-badge.ok {
  background: rgba(15, 118, 110, 0.09);
  color: var(--app-accent-strong);
}

.tag.amber,
.health-badge.warn {
  background: rgba(167, 96, 0, 0.1);
  color: var(--app-warn);
}

.editor-panel {
  background: rgba(255, 255, 255, 0.98);
}

.editor-form,
.empty-state,
.data-health {
  padding: 16px;
}

.editor-form {
  gap: 12px;
}

.data-health {
  margin-top: auto;
  background: #fbfcfd;
}

.health-badges {
  gap: 7px;
}

.health-badge {
  min-height: 27px;
  border-color: var(--app-line);
}

.preview-panel {
  overflow: hidden;
}

.preview-nav {
  gap: 7px;
}

.icon-button {
  width: 38px;
}

.preview-canvas {
  padding: 18px;
  background:
    linear-gradient(180deg, #e9eef2 0%, #f5f7f9 100%);
}

.preview-frame .sign-page {
  box-shadow: var(--app-shadow);
}

.preview-empty {
  border-color: var(--app-line);
  background: #fff;
}

.sign-page {
  width: 794px;
  height: 1123px;
  background: #fff;
  color: #111;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sign-top {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 42px 16px;
  border-bottom: 8px solid var(--brand);
}

.dealer-name {
  font-size: 27px;
  font-weight: 950;
  letter-spacing: 0;
}

.dealer-sub {
  margin-top: 3px;
  color: #607067;
  font-size: 13px;
  font-weight: 800;
}

.sign-labels {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 310px;
}

.sign-label {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #f1f3f2;
  color: #26312d;
  font-size: 12px;
  font-weight: 950;
}

.sign-label.sold {
  background: #111;
  color: #fff;
}

.sign-media {
  height: 322px;
  flex: 0 0 322px;
  display: grid;
  place-items: center;
  background: #eef3f0;
  position: relative;
  overflow: hidden;
}

.sign-media img {
  position: relative;
  width: 54%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  display: block;
}

.image-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: #7c8982;
  font-weight: 900;
}

.sold-ribbon {
  position: absolute;
  right: -72px;
  top: 48px;
  width: 280px;
  height: 44px;
  display: grid;
  place-items: center;
  transform: rotate(38deg);
  background: #111;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.sign-main {
  flex: 1;
  min-height: 0;
  padding: 22px 42px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.title-price-row {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 28px;
  align-items: start;
}

.vehicle-title {
  font-size: 32px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
}

.vehicle-variant {
  margin-top: 8px;
  color: #3e4a44;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 760;
}

.price-box {
  min-height: 118px;
  padding: 16px 18px 14px;
  border: 3px solid var(--brand);
  border-radius: 8px;
  text-align: right;
}

.price-label {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.price-value {
  margin-top: 4px;
  font-size: 38px;
  line-height: 1;
  font-weight: 980;
}

.monthly-price {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e0e4e1;
  color: #2b3732;
  font-size: 13px;
  font-weight: 900;
}

.monthly-price strong {
  display: block;
  color: #111;
  font-size: 18px;
}

.highlight-note {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #f7ede8;
  border-left: 6px solid var(--brand);
  border-radius: 6px;
  color: #4f2a21;
  font-size: 14px;
  font-weight: 900;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-content: start;
}

.spec {
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid #dce3df;
  border-radius: 7px;
  background: #fbfcfb;
}

.spec-label {
  color: #68756f;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.spec-value {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 950;
  word-break: break-word;
}

.equipment-panel {
  min-height: 0;
  max-height: 138px;
  overflow: hidden;
  padding: 11px 14px;
  border: 1px solid #d2a14a;
  border-radius: 7px;
  background: #fffaf0;
}

.equipment-panel h3 {
  margin-bottom: 6px;
  color: #8f5f00;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.equipment-panel ul {
  margin: 0;
  padding-left: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 26px;
  row-gap: 2px;
}

.equipment-panel li {
  margin: 0;
  font-size: 11px;
  line-height: 1.16;
  font-weight: 760;
}

.sign-bottom {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 20px;
  align-items: end;
  border-top: 1px solid #dce3df;
  padding-top: 12px;
}

.contact-block {
  font-size: 12px;
  line-height: 1.45;
  color: #303d37;
  font-weight: 780;
}

.disclaimer {
  margin-top: 8px;
  color: #7b8680;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 650;
}

.qr-wrap {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.qr-wrap canvas {
  width: 118px;
  height: 118px;
  border: 1px solid #dce3df;
  background: #fff;
}

.qr-wrap span {
  color: #303d37;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.qr-fallback {
  width: 118px;
  min-height: 118px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid #dce3df;
  font-size: 9px;
  line-height: 1.2;
  word-break: break-all;
}

.sync-line {
  position: absolute;
  left: 42px;
  bottom: 10px;
  color: #9aa39e;
  font-size: 9px;
  font-weight: 700;
}

.layout-lysen {
  --tech-gold: #c8862b;
  --tech-gold-soft: #f0b34f;
  --tech-ink: #f8f3e7;
  --tech-muted: #bdb8ae;
  background: radial-gradient(circle at 72% 7%, rgba(201, 134, 43, 0.18), transparent 24%), #030404;
  color: var(--tech-ink);
}

.lysen-tech-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.layout-lysen > .lysen-tech-rail,
.layout-lysen > .lysen-tech-panels,
.layout-lysen > .lysen-tech-trust {
  position: relative;
  z-index: 2;
}

.layout-lysen > .lysen-tech-hero {
  position: relative;
  z-index: 3;
}

.layout-lysen > .lysen-tech-footer,
.layout-lysen > .lysen-tech-sync {
  z-index: 2;
}

.lysen-tech-hero {
  height: 432px;
  position: relative;
  overflow: hidden;
  background: #050606;
}

.lysen-tech-hero > img {
  position: absolute;
  inset: 0 0 auto auto;
  width: 74%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  opacity: 0.98;
  z-index: 0;
}

.lysen-tech-car-canvas {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 74%;
  height: 432px;
  opacity: 0;
  pointer-events: none;
}

.lysen-tech-car-canvas.ready {
  opacity: 0.98;
}

.layout-lysen.has-rendered-car .lysen-tech-hero > img {
  opacity: 0;
}

.lysen-tech-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--tech-muted);
}

.lysen-tech-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #030404 0%, rgba(3, 4, 4, 0.96) 22%, rgba(3, 4, 4, 0.58) 46%, rgba(3, 4, 4, 0.06) 78%),
    linear-gradient(0deg, #030404 0%, rgba(3, 4, 4, 0) 26%),
    radial-gradient(circle at 78% 8%, rgba(240, 179, 79, 0.18), transparent 22%);
}

.lysen-tech-brand,
.lysen-tech-labels,
.lysen-tech-title,
.lysen-tech-qr,
.layout-lysen .sold-ribbon {
  z-index: 2;
}

.lysen-tech-brand {
  position: absolute;
  left: 48px;
  top: 30px;
}

.lysen-tech-mark,
.lysen-tech-footer-brand {
  color: #fff;
  font-size: 34px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 5px;
}

.lysen-tech-mark span,
.lysen-tech-footer-brand span {
  font-size: 15px;
  letter-spacing: 2px;
}

.lysen-tech-labels {
  position: absolute;
  right: 42px;
  top: 34px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 300px;
}

.lysen-tech-labels span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(200, 134, 43, 0.58);
  color: var(--tech-gold-soft);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.lysen-tech-title {
  position: absolute;
  left: 48px;
  top: 104px;
  width: 330px;
}

.lysen-tech-make {
  color: #fff;
  font-size: 64px;
  line-height: 0.9;
  font-weight: 980;
}

.lysen-tech-model {
  margin-top: 4px;
  color: var(--tech-gold-soft);
  font-size: 58px;
  line-height: 0.9;
  font-weight: 980;
}

.lysen-tech-variant {
  margin-top: 16px;
  color: #f4efe3;
  font-size: 19px;
  line-height: 1.22;
  font-weight: 520;
}

.lysen-tech-rule {
  width: 104px;
  height: 2px;
  margin: 24px 0 16px;
  background: var(--tech-gold);
}

.lysen-tech-price-label {
  color: var(--tech-gold-soft);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.lysen-tech-price {
  margin-top: 3px;
  color: #fff;
  font-size: 48px;
  line-height: 1;
  font-weight: 980;
}

.lysen-tech-vat {
  margin-top: 6px;
  color: #e6dfd3;
  font-size: 13px;
  font-weight: 700;
}

.lysen-tech-qr {
  position: absolute;
  right: 52px;
  bottom: 28px;
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 14px;
  align-items: end;
}

.lysen-tech-qr span {
  max-width: 120px;
  color: #ebe6dc;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.lysen-tech-qr canvas {
  width: 118px;
  height: 118px;
  border: 3px solid #151515;
  background: #fff;
}

.lysen-tech-rail {
  height: 100px;
  margin: 0 36px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid rgba(200, 134, 43, 0.82);
  background: rgba(0, 0, 0, 0.72);
}

.lysen-tech-rail div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border-right: 1px solid rgba(200, 134, 43, 0.6);
  text-align: center;
}

.lysen-tech-rail div:last-child {
  border-right: 0;
}

.lysen-tech-rail span {
  color: #d1aa68;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.lysen-tech-rail strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.05;
  font-weight: 650;
}

.lysen-tech-panels {
  height: 330px;
  margin: 0 36px;
  display: grid;
  grid-template-columns: 34% 25% 41%;
  border-right: 1px solid rgba(200, 134, 43, 0.82);
  border-bottom: 1px solid rgba(200, 134, 43, 0.82);
  border-left: 1px solid rgba(200, 134, 43, 0.82);
  background: rgba(0, 0, 0, 0.78);
}

.lysen-tech-panel {
  min-width: 0;
  padding: 16px 20px;
  border-right: 1px solid rgba(200, 134, 43, 0.68);
}

.lysen-tech-panel:last-child {
  border-right: 0;
}

.lysen-tech-panel h3 {
  margin-bottom: 10px;
  color: var(--tech-gold-soft);
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
}

.lysen-tech-equipment ul {
  margin: 0;
  padding-left: 16px;
}

.lysen-tech-equipment li {
  margin: 0 0 3px;
  color: #eee8dd;
  font-size: 10.5px;
  line-height: 1.12;
  font-weight: 650;
}

.lysen-tech-energy-row {
  padding: 8px 0;
  border-top: 1px solid rgba(200, 134, 43, 0.58);
}

.lysen-tech-energy-row strong {
  display: block;
  color: #fff;
  font-size: 23px;
  line-height: 1;
  font-weight: 560;
}

.lysen-tech-energy-row span {
  display: block;
  margin-top: 4px;
  color: #e3d9c8;
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}

.lysen-tech-finance > span {
  color: #ded5c7;
  font-size: 13px;
  text-transform: uppercase;
}

.lysen-tech-finance > strong {
  display: block;
  margin-top: 4px;
  color: var(--tech-gold-soft);
  font-size: 42px;
  line-height: 1;
  font-weight: 860;
}

.lysen-tech-finance p {
  margin-top: 12px;
  color: #cfc7ba;
  font-size: 10px;
  line-height: 1.35;
}

.lysen-tech-finance-lines {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(200, 134, 43, 0.7);
}

.lysen-tech-finance-lines div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #ddd5c8;
  font-size: 10px;
  line-height: 1.55;
}

.lysen-tech-finance-lines b {
  color: #fff;
  font-weight: 760;
}

.lysen-tech-trust {
  height: 68px;
  margin: 0 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  border-right: 1px solid rgba(200, 134, 43, 0.82);
  border-bottom: 1px solid rgba(200, 134, 43, 0.82);
  border-left: 1px solid rgba(200, 134, 43, 0.82);
  background: rgba(0, 0, 0, 0.82);
}

.lysen-tech-trust div {
  padding: 0 20px;
  border-right: 1px solid rgba(200, 134, 43, 0.54);
  color: #efe8dc;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 650;
  text-transform: uppercase;
}

.lysen-tech-trust div:last-child {
  border-right: 0;
}

.lysen-tech-footer {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 28px;
  height: 120px;
  display: grid;
  grid-template-columns: 300px 1fr;
  column-gap: 28px;
  row-gap: 7px;
  align-content: center;
  align-items: center;
  border-top: 1px solid rgba(200, 134, 43, 0.8);
}

.lysen-tech-footer-brand {
  font-size: 36px;
}

.lysen-tech-tagline {
  margin-top: 16px;
  color: #c9b895;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.lysen-tech-contact {
  display: grid;
  gap: 5px;
  color: #f1eadf;
  font-size: 14px;
  font-weight: 650;
}

.lysen-tech-footer p {
  grid-column: 1 / -1;
  margin-top: 0;
  color: #8d887e;
  font-size: 8px;
  line-height: 1.2;
}

.lysen-tech-sync {
  position: absolute;
  left: 36px;
  bottom: 8px;
  color: #706b63;
  font-size: 8px;
  font-weight: 700;
}

.layout-lysen-light {
  --tech-gold: #c89235;
  --tech-gold-soft: #dca246;
  --tech-ink: #122027;
  --tech-muted: #65727a;
  background:
    radial-gradient(circle at 82% 9%, rgba(220, 162, 70, 0.2), transparent 24%),
    linear-gradient(180deg, #fbfaf6 0%, #f3f0e8 100%);
  color: var(--tech-ink);
}

.layout-lysen-light .lysen-tech-backdrop,
.layout-lysen-light .lysen-tech-shade {
  display: none;
}

.layout-lysen-light .lysen-tech-hero {
  background:
    linear-gradient(180deg, #f9f7f0 0%, #eee8dc 100%);
  border-bottom: 1px solid rgba(200, 146, 53, 0.44);
}

.layout-lysen-light .lysen-tech-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #f9f7f0 0%, rgba(249, 247, 240, 0.96) 26%, rgba(249, 247, 240, 0.64) 48%, rgba(249, 247, 240, 0.08) 82%),
    linear-gradient(0deg, #f9f7f0 0%, rgba(249, 247, 240, 0.74) 16%, rgba(249, 247, 240, 0) 40%);
}

.layout-lysen-light .lysen-tech-car-canvas.ready {
  opacity: 0.96;
}

.layout-lysen-light .lysen-tech-mark,
.layout-lysen-light .lysen-tech-footer-brand {
  color: #132027;
}

.layout-lysen-light .lysen-tech-labels span {
  border-color: rgba(200, 146, 53, 0.62);
  background: rgba(255, 255, 255, 0.72);
  color: #a66f16;
}

.layout-lysen-light .lysen-tech-make,
.layout-lysen-light .lysen-tech-price,
.layout-lysen-light .lysen-tech-energy-row strong,
.layout-lysen-light .lysen-tech-finance-lines b,
.layout-lysen-light .lysen-tech-rail strong {
  color: #121b20;
}

.layout-lysen-light .lysen-tech-model,
.layout-lysen-light .lysen-tech-price-label,
.layout-lysen-light .lysen-tech-panel h3,
.layout-lysen-light .lysen-tech-finance > strong {
  color: #c89235;
}

.layout-lysen-light .lysen-tech-variant,
.layout-lysen-light .lysen-tech-vat {
  color: #2d3c43;
}

.layout-lysen-light .lysen-tech-qr span {
  color: #26343b;
}

.layout-lysen-light .lysen-tech-qr canvas {
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(200, 146, 53, 0.48);
}

.layout-lysen-light .lysen-tech-rail {
  border-color: rgba(200, 146, 53, 0.74);
  background: rgba(255, 255, 255, 0.9);
}

.layout-lysen-light .lysen-tech-rail div {
  border-color: rgba(200, 146, 53, 0.34);
}

.layout-lysen-light .lysen-tech-rail span {
  color: #9a741f;
}

.layout-lysen-light .lysen-tech-panels,
.layout-lysen-light .lysen-tech-trust {
  border-color: rgba(200, 146, 53, 0.74);
  background: rgba(255, 255, 255, 0.82);
}

.layout-lysen-light .lysen-tech-panel {
  border-color: rgba(200, 146, 53, 0.36);
}

.layout-lysen-light .lysen-tech-equipment li,
.layout-lysen-light .lysen-tech-energy-row span,
.layout-lysen-light .lysen-tech-finance > span,
.layout-lysen-light .lysen-tech-finance p,
.layout-lysen-light .lysen-tech-finance-lines div {
  color: #34434a;
}

.layout-lysen-light .lysen-tech-energy-row,
.layout-lysen-light .lysen-tech-finance-lines {
  border-color: rgba(200, 146, 53, 0.5);
}

.layout-lysen-light .lysen-tech-trust div {
  border-color: rgba(200, 146, 53, 0.34);
  color: #17252d;
}

.layout-lysen-light .lysen-tech-footer {
  border-color: rgba(200, 146, 53, 0.74);
}

.layout-lysen-light .lysen-tech-tagline {
  color: #8d7c5b;
}

.layout-lysen-light .lysen-tech-contact {
  color: #17252d;
}

.layout-lysen-light .lysen-tech-footer p,
.layout-lysen-light .lysen-tech-sync {
  color: #7b8588;
}

.layout-premium {
  background: #111;
  color: #111;
}

.layout-premium .sign-top {
  height: 92px;
  padding: 24px 42px 16px;
  border-bottom: 0;
  background: #111;
  color: #fff;
}

.layout-premium .dealer-name {
  font-size: 30px;
}

.layout-premium .dealer-sub {
  color: #d7ded9;
}

.layout-premium .sign-labels {
  max-width: 220px;
}

.layout-premium .sign-label {
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 4px;
  background: transparent;
  color: #fff;
}

.layout-premium .sign-label.green,
.layout-premium .sign-label.amber {
  border-color: #fff;
  background: #fff;
  color: #111;
}

.layout-premium .sign-media {
  height: 410px;
  flex-basis: 410px;
  background: radial-gradient(circle at 50% 30%, #30342f 0, #171816 54%, #111 100%);
}

.layout-premium .sign-media img {
  width: 68%;
  height: auto;
}

.layout-premium .sign-main {
  margin: -22px 34px 28px;
  padding: 25px 30px 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  gap: 12px;
}

.layout-premium .title-price-row {
  grid-template-columns: 1fr 238px;
  gap: 22px;
  align-items: stretch;
}

.layout-premium .vehicle-title {
  max-width: 420px;
  font-size: 36px;
  line-height: 1;
}

.layout-premium .vehicle-variant {
  max-width: 430px;
  color: #4b554f;
  font-size: 15px;
}

.layout-premium .price-box {
  min-height: 116px;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: #111;
  color: #fff;
}

.layout-premium .price-label {
  color: #d7ded9;
}

.layout-premium .price-value {
  color: #fff;
  font-size: 33px;
}

.layout-premium .monthly-price {
  border-top-color: rgba(255, 255, 255, 0.22);
  color: #e5e9e6;
}

.layout-premium .monthly-price strong {
  color: #fff;
}

.layout-premium .highlight-note {
  background: #f1eee6;
  border-left-color: #111;
  color: #27231d;
}

.layout-premium .spec-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.layout-premium .spec {
  min-height: 50px;
  border: 0;
  border-radius: 0;
  background: #f1f3ef;
}

.layout-premium .equipment-panel {
  max-height: 88px;
  padding: 10px 12px;
  border: 0;
  border-left: 5px solid #111;
  border-radius: 0;
  background: #faf7f0;
}

.layout-premium .equipment-panel h3 {
  color: #27231d;
}

.layout-premium .equipment-panel ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}

.layout-premium .sign-bottom {
  grid-template-columns: 1fr 112px;
  gap: 18px;
  padding-top: 10px;
}

.layout-premium .qr-wrap canvas {
  width: 106px;
  height: 106px;
}

.layout-premium .sync-line {
  left: 36px;
  color: #858b87;
}

.layout-compact {
  background: #fff;
}

.layout-compact::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: 12px;
  background: var(--brand);
}

.layout-compact > * {
  position: relative;
  z-index: 1;
}

.layout-compact .sign-top {
  height: 58px;
  padding: 12px 34px 10px 48px;
  border-bottom: 1px solid #dce3df;
  background: #f7f9f8;
}

.layout-compact .dealer-name {
  font-size: 22px;
}

.layout-compact .dealer-sub {
  margin-top: 1px;
  font-size: 11px;
}

.layout-compact .sign-labels {
  max-width: 360px;
}

.layout-compact .sign-label {
  min-height: 20px;
  padding: 0 7px;
  border-radius: 3px;
  font-size: 9px;
}

.layout-compact .sign-media {
  height: 260px;
  flex-basis: 260px;
  border-top: 1px solid #edf1ef;
  border-bottom: 1px solid #dce3df;
  background: #fff;
}

.layout-compact .sign-media img {
  width: 43%;
  height: auto;
}

.layout-compact .sign-main {
  padding: 15px 34px 15px 48px;
  gap: 10px;
}

.layout-compact .title-price-row {
  grid-template-columns: 1fr 222px;
  gap: 14px;
  align-items: stretch;
}

.layout-compact .vehicle-title {
  font-size: 26px;
}

.layout-compact .vehicle-variant {
  margin-top: 5px;
  font-size: 13px;
}

.layout-compact .price-box {
  min-height: 88px;
  padding: 10px 12px;
  border-width: 2px;
  border-radius: 0;
  background: #fff;
}

.layout-compact .price-value {
  font-size: 29px;
}

.layout-compact .monthly-price {
  margin-top: 5px;
  padding-top: 5px;
  font-size: 10px;
}

.layout-compact .monthly-price strong {
  font-size: 14px;
}

.layout-compact .highlight-note {
  min-height: 26px;
  padding: 0 9px;
  border-radius: 0;
  font-size: 11px;
}

.layout-compact .spec-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid #dce3df;
  border-left: 1px solid #dce3df;
}

.layout-compact .spec {
  min-height: 50px;
  padding: 7px 8px;
  border: 0;
  border-right: 1px solid #dce3df;
  border-bottom: 1px solid #dce3df;
  border-radius: 0;
  background: #fff;
}

.layout-compact .spec-label {
  font-size: 9px;
}

.layout-compact .spec-value {
  margin-top: 3px;
  font-size: 14px;
}

.layout-compact .equipment-panel {
  max-height: 250px;
  padding: 10px 12px;
  border-color: #dce3df;
  border-radius: 0;
  background: #f8faf9;
}

.layout-compact .equipment-panel h3 {
  color: #3e4a44;
  font-size: 11px;
}

.layout-compact .equipment-panel ul {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 18px;
}

.layout-compact .equipment-panel li {
  font-size: 11px;
  line-height: 1.14;
}

.layout-compact .sign-bottom {
  grid-template-columns: 1fr 104px;
  gap: 14px;
  padding-top: 9px;
}

.layout-compact .qr-wrap {
  gap: 4px;
}

.layout-compact .qr-wrap canvas {
  width: 96px;
  height: 96px;
}

.layout-compact .qr-wrap span {
  font-size: 9px;
}

.layout-compact .contact-block {
  font-size: 10px;
}

.layout-compact .disclaimer {
  margin-top: 5px;
  font-size: 8px;
}

.layout-compact .sync-line {
  left: 48px;
}

/* 2026 template refresh for the three generic profiles. */
.layout-showroom {
  --template-accent: #0f766e;
  --template-deep: #111827;
  --template-soft: #eef6f4;
  background: #fbfcfb;
  color: #111827;
}

.layout-showroom::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  background: linear-gradient(90deg, #0f766e 0%, #245a8d 54%, #111827 100%);
}

.layout-showroom .sign-top {
  height: 76px;
  padding: 22px 42px 14px;
  border-bottom: 0;
  background: #fbfcfb;
}

.layout-showroom .dealer-name {
  color: var(--template-deep);
  font-size: 26px;
  font-weight: 850;
}

.layout-showroom .dealer-sub {
  color: #667085;
}

.layout-showroom .sign-label {
  min-height: 26px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 6px;
  background: #f3faf8;
  color: var(--template-accent);
}

.layout-showroom .sign-media {
  height: 344px;
  flex-basis: 344px;
  margin: 0 34px;
  border: 1px solid #dbe6e3;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66) 0%, rgba(226, 236, 233, 0.95) 100%),
    #e8efed;
}

.layout-showroom .sign-media::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.56), transparent);
}

.layout-showroom .sign-media img {
  width: 72%;
  filter: drop-shadow(0 24px 28px rgba(17, 24, 39, 0.16));
}

.layout-showroom .sign-main {
  padding: 22px 42px 18px;
  gap: 11px;
}

.layout-showroom .title-price-row {
  grid-template-columns: 1fr 260px;
  gap: 24px;
}

.layout-showroom .vehicle-title {
  color: var(--template-deep);
  font-size: 34px;
  line-height: 1;
}

.layout-showroom .vehicle-variant {
  color: #344054;
  font-weight: 720;
}

.layout-showroom .price-box {
  min-height: 112px;
  border: 0;
  border-radius: 8px;
  background: var(--template-deep);
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--template-accent);
}

.layout-showroom .price-label,
.layout-showroom .monthly-price {
  color: #c6d5d1;
}

.layout-showroom .price-value,
.layout-showroom .monthly-price strong {
  color: #fff;
}

.layout-showroom .spec-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.layout-showroom .spec {
  min-height: 54px;
  border-color: #dbe6e3;
  border-radius: 8px;
  background: #fff;
}

.layout-showroom .spec-label {
  color: var(--template-accent);
}

.layout-showroom .equipment-panel {
  max-height: 118px;
  border-color: #cddbd7;
  border-radius: 8px;
  background: #f7faf9;
}

.layout-showroom .equipment-panel h3 {
  color: var(--template-deep);
}

.layout-showroom .equipment-panel li {
  font-size: 10px;
  line-height: 1.12;
}

.layout-showroom .sign-bottom {
  border-top-color: #dbe6e3;
}

.layout-showroom .qr-wrap canvas {
  border-radius: 7px;
  border-color: #cddbd7;
}

.layout-showroom .sync-line {
  color: #98a2b3;
}

.layout-premium {
  --premium-gold: #d8a94a;
  --premium-cream: #f5f0e6;
  --premium-ink: #0b0d10;
  background: #0b0d10;
  color: #fff;
}

.layout-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(216, 169, 74, 0.16), transparent 30%),
    linear-gradient(180deg, transparent 0%, rgba(216, 169, 74, 0.1) 100%);
}

.layout-premium .sign-top {
  height: 86px;
  padding: 24px 40px 15px;
  border-bottom: 1px solid rgba(216, 169, 74, 0.38);
  background: transparent;
  color: #fff;
}

.layout-premium .dealer-name {
  color: #fff;
  font-size: 29px;
  font-weight: 760;
}

.layout-premium .dealer-sub {
  color: #b9b0a1;
}

.layout-premium .sign-label {
  min-height: 28px;
  border: 1px solid rgba(216, 169, 74, 0.54);
  border-radius: 4px;
  background: rgba(216, 169, 74, 0.08);
  color: var(--premium-gold);
}

.layout-premium .sign-label.green,
.layout-premium .sign-label.amber {
  border-color: rgba(245, 240, 230, 0.72);
  background: rgba(245, 240, 230, 0.12);
  color: #fff;
}

.layout-premium .sign-media {
  height: 382px;
  flex-basis: 382px;
  margin: 0 34px;
  border: 1px solid rgba(216, 169, 74, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 54% 35%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(180deg, #24282a 0%, #111315 72%, #0b0d10 100%);
}

.layout-premium .sign-media img {
  width: 78%;
  filter: drop-shadow(0 30px 34px rgba(0, 0, 0, 0.48));
}

.layout-premium .sign-main {
  margin: 14px 40px 28px;
  padding: 24px 26px 18px;
  border: 1px solid rgba(216, 169, 74, 0.3);
  border-radius: 8px;
  background: var(--premium-cream);
  color: var(--premium-ink);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.36);
  gap: 11px;
}

.layout-premium .title-price-row {
  grid-template-columns: 1fr 242px;
  gap: 22px;
}

.layout-premium .vehicle-title {
  max-width: 420px;
  color: var(--premium-ink);
  font-size: 35px;
  line-height: 1;
}

.layout-premium .vehicle-variant {
  color: #555047;
}

.layout-premium .price-box {
  min-height: 112px;
  border: 0;
  border-radius: 6px;
  background: var(--premium-ink);
  color: #fff;
}

.layout-premium .price-label {
  color: var(--premium-gold);
}

.layout-premium .price-value {
  color: #fff;
  font-size: 32px;
}

.layout-premium .monthly-price {
  border-top-color: rgba(216, 169, 74, 0.34);
  color: #dfd6c8;
}

.layout-premium .monthly-price strong {
  color: #fff;
}

.layout-premium .highlight-note {
  border-left: 0;
  border-radius: 6px;
  background: #e8dcc6;
  color: #3d3527;
}

.layout-premium .spec-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.layout-premium .spec {
  min-height: 50px;
  border: 1px solid #ded4c1;
  border-radius: 6px;
  background: #fffaf1;
}

.layout-premium .spec-label {
  color: #866220;
}

.layout-premium .equipment-panel {
  max-height: 92px;
  border: 1px solid #ded4c1;
  border-radius: 6px;
  background: #fffaf1;
}

.layout-premium .equipment-panel h3 {
  color: var(--premium-ink);
}

.layout-premium .equipment-panel ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout-premium .sign-bottom {
  grid-template-columns: 1fr 112px;
  border-top-color: #ded4c1;
}

.layout-premium .qr-wrap canvas {
  width: 106px;
  height: 106px;
  border-radius: 6px;
}

.layout-premium .sync-line {
  left: 40px;
  color: rgba(245, 240, 230, 0.48);
}

.layout-compact {
  --compact-ink: #17211d;
  --compact-red: #c91525;
  --compact-line: #cfd8d4;
  background: #f8faf9;
  color: var(--compact-ink);
}

.layout-compact::before {
  width: 18px;
  background:
    linear-gradient(180deg, #c91525 0%, #c91525 34%, #0f766e 34%, #0f766e 66%, #17211d 66%, #17211d 100%);
}

.layout-compact .sign-top {
  height: 64px;
  padding: 13px 34px 10px 52px;
  border-bottom: 1px solid var(--compact-line);
  background: #fff;
}

.layout-compact .dealer-name {
  color: var(--compact-ink);
  font-size: 23px;
  font-weight: 900;
}

.layout-compact .dealer-sub {
  color: #667085;
}

.layout-compact .sign-label {
  min-height: 22px;
  border-radius: 4px;
  background: #edf2ef;
}

.layout-compact .sign-media {
  height: 238px;
  flex-basis: 238px;
  margin-left: 18px;
  border-top: 0;
  border-bottom: 1px solid var(--compact-line);
  background:
    linear-gradient(90deg, #fff 0%, #eef3f0 100%);
}

.layout-compact .sign-media img {
  width: 48%;
  filter: drop-shadow(0 18px 20px rgba(23, 33, 29, 0.18));
}

.layout-compact .sign-main {
  padding: 16px 34px 16px 52px;
  gap: 10px;
}

.layout-compact .title-price-row {
  grid-template-columns: 1fr 230px;
}

.layout-compact .vehicle-title {
  color: var(--compact-ink);
  font-size: 27px;
  line-height: 1;
}

.layout-compact .vehicle-variant {
  color: #3d4943;
}

.layout-compact .price-box {
  min-height: 92px;
  border: 2px solid var(--compact-ink);
  border-radius: 6px;
  background: #fff;
}

.layout-compact .price-label {
  color: var(--compact-red);
}

.layout-compact .price-value {
  font-size: 30px;
}

.layout-compact .monthly-price strong {
  color: var(--compact-red);
}

.layout-compact .highlight-note {
  border-left-color: var(--compact-red);
  border-radius: 4px;
  background: #fff5f5;
}

.layout-compact .spec-grid {
  border-top: 1px solid var(--compact-line);
  border-left: 1px solid var(--compact-line);
  grid-template-columns: repeat(4, 1fr);
}

.layout-compact .spec {
  min-height: 52px;
  border-right: 1px solid var(--compact-line);
  border-bottom: 1px solid var(--compact-line);
  background: #fff;
}

.layout-compact .spec-label {
  color: #667085;
}

.layout-compact .spec-value {
  color: var(--compact-ink);
}

.layout-compact .equipment-panel {
  max-height: 250px;
  border: 1px solid var(--compact-line);
  border-radius: 6px;
  background: #fff;
}

.layout-compact .equipment-panel h3 {
  color: var(--compact-red);
}

.layout-compact .sign-bottom {
  border-top-color: var(--compact-line);
}

.layout-compact .qr-wrap canvas {
  border-radius: 4px;
}

.layout-compact .sync-line {
  left: 52px;
  color: #98a2b3;
}

@media (max-width: 1180px) {
  body {
    height: auto;
    overflow: auto;
  }

  .app-shell {
    height: auto;
    min-height: 100vh;
  }

  .builder-grid {
    height: auto;
    align-items: start;
    grid-template-columns: minmax(290px, 360px) minmax(500px, 1fr);
    grid-template-rows: minmax(0, calc(100vh - 102px)) auto;
  }

  .inventory-panel {
    grid-column: 1;
    grid-row: 1;
    height: min(760px, calc(100vh - 102px));
    min-height: 560px;
  }

  .editor-panel {
    grid-column: 1 / -1;
    grid-row: 2;
    height: auto;
    min-height: 0;
  }

  .preview-panel {
    grid-column: 2;
    grid-row: 1;
    height: min(760px, calc(100vh - 102px));
    min-height: 560px;
  }
}

@media (max-width: 780px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
    justify-content: stretch;
  }

  .top-actions .button {
    flex: 1;
  }

  .builder-grid {
    height: auto;
    grid-template-rows: none;
    grid-template-columns: 1fr;
  }

  .inventory-panel,
  .editor-panel,
  .preview-panel {
    grid-column: auto;
    grid-row: auto;
    height: auto;
    min-height: 0;
  }

  .vehicle-list {
    max-height: 420px;
  }

  .preview-panel {
    height: 700px;
    min-height: 600px;
  }
}

@page {
  size: A4;
  margin: 0;
}

@media print {
  html,
  body,
  #printPages,
  .sign-page,
  .sign-page * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  html,
  body {
    width: 210mm;
    background: #fff;
  }

  .app-shell {
    display: none;
  }

  #printPages {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    opacity: 1;
    pointer-events: auto;
    z-index: auto;
  }

  .sign-page {
    width: 210mm;
    height: 297mm;
    page-break-after: always;
    box-shadow: none;
  }

  .layout-lysen {
    background: radial-gradient(circle at 72% 7%, rgba(201, 134, 43, 0.18), transparent 24%), #030404 !important;
    color: var(--tech-ink) !important;
  }

  .layout-lysen .lysen-tech-backdrop {
    display: block !important;
  }

  .layout-lysen .lysen-tech-hero {
    background: transparent !important;
  }

  .layout-lysen .lysen-tech-hero > img {
    display: block !important;
    opacity: 0.98 !important;
  }

  .layout-lysen.has-rendered-car .lysen-tech-hero > img {
    opacity: 0.98 !important;
  }

  .layout-lysen .lysen-tech-car-canvas {
    display: none !important;
    opacity: 0 !important;
  }

  .layout-lysen .lysen-tech-shade {
    display: block !important;
  }

  .layout-lysen .lysen-tech-rail,
  .layout-lysen .lysen-tech-panels,
  .layout-lysen .lysen-tech-trust,
  .layout-lysen .lysen-tech-panel {
    background: transparent !important;
  }

  .layout-lysen.layout-lysen-light {
    background: #f7f4ed !important;
    color: #122027 !important;
  }

  .layout-lysen.layout-lysen-light .lysen-tech-backdrop,
  .layout-lysen.layout-lysen-light .lysen-tech-shade {
    display: none !important;
  }

  .layout-lysen.layout-lysen-light .lysen-tech-hero {
    background: linear-gradient(180deg, #f9f7f0 0%, #eee8dc 100%) !important;
  }

  .layout-lysen.layout-lysen-light .lysen-tech-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(90deg, #f9f7f0 0%, rgba(249, 247, 240, 0.96) 26%, rgba(249, 247, 240, 0.64) 48%, rgba(249, 247, 240, 0.08) 82%),
      linear-gradient(0deg, #f9f7f0 0%, rgba(249, 247, 240, 0.74) 16%, rgba(249, 247, 240, 0) 40%);
  }

  .layout-lysen.layout-lysen-light .lysen-tech-rail,
  .layout-lysen.layout-lysen-light .lysen-tech-panels,
  .layout-lysen.layout-lysen-light .lysen-tech-trust,
  .layout-lysen.layout-lysen-light .lysen-tech-panel {
    background: rgba(255, 255, 255, 0.88) !important;
  }

  .sign-page:last-child {
    page-break-after: auto;
  }
}
