* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: #f4f6f9; color: #122033; }
header { height: 64px; background: linear-gradient(90deg,#002b5c,#004a98); color: white; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.brand { font-weight: 800; font-size: 20px; }
.sub { opacity: .82; font-size: 13px; }
main { display: grid; grid-template-columns: 430px 1fr; gap: 22px; padding: 22px; min-height: calc(100vh - 64px); }
.panel, .preview { background: white; border-radius: 16px; box-shadow: 0 8px 28px rgba(0,0,0,.08); }
.panel { padding: 18px; height: fit-content; }
.preview { padding: 18px; display:grid; grid-template-columns: 320px minmax(0,1fr); gap:16px; align-items:start; overflow:auto; min-height: 580px; }
label { display:block; margin: 14px 0 7px; font-weight: 800; color:#003478; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; }
input, select { width:100%; padding: 12px 13px; border:1px solid #cfd7e3; border-radius: 10px; font-size: 15px; outline:none; background:white; }
input:focus, select:focus { border-color:#0057c8; box-shadow:0 0 0 3px rgba(0,87,200,.12); }
input:disabled { background:#eef2f7; }
.hint { color:#697789; font-size: 12px; margin-top: 6px; }
.row { display:grid; grid-template-columns: 1fr; gap: 0; }
.sliderBox { margin-top: 0; margin-bottom: 14px; padding: 13px; background:#f7f9fc; border:1px solid #e1e7ef; border-radius: 12px; }
.sliderTitle { font-weight: 900; color:#122033; }
input[type="range"] { padding: 0; }
button { width:100%; border:0; border-radius: 12px; padding: 13px 14px; margin-top: 14px; cursor:pointer; font-size: 16px; font-weight: 900; }
.primary { color:white; background:#0057d9; }
.primary:hover { background:#0048b7; }
.secondary { color:#003478; background:#eaf1fb; border:1px solid #cdddf3; }
.secondary:hover { background:#dfeaf8; }
button:disabled { opacity:.6; cursor:not-allowed; }
.status { margin-top: 14px; padding: 12px; border-radius: 12px; font-size: 14px; display:none; }
.status.ok { display:block; color:#09622a; background:#eaf8ef; border:1px solid #bbe8c9; }
.status.error { display:block; color:#991b1b; background:#fff0f0; border:1px solid #ffd0d0; }
.status.info { display:block; color:#17406f; background:#ecf5ff; border:1px solid #cde5ff; }
.hidden { display:none !important; }
#placeholder { color:#718096; font-weight:700; }
canvas { max-width:100%; height:auto; border-radius: 10px; box-shadow:0 8px 20px rgba(0,0,0,.18); }
.photoGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 18px; max-height: 260px; overflow: auto; padding: 6px; border: 1px solid #d6dce8; border-radius: 12px; background: #f7f9fc; }
.photoPick { appearance: none; border: 3px solid transparent; background: white; border-radius: 10px; padding: 0; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; margin: 0; }
.photoPick img { width: 100%; height: 100%; object-fit: contain; display: block; }
.photoPick.selected { border-color: #003478; box-shadow: 0 0 0 2px rgba(0,52,120,.2); }
.stepHint { margin-top: 14px; padding: 13px; border-radius: 12px; background: #fff8e5; border: 1px solid #f0d992; color: #6b4b00; font-weight: 800; font-size: 13px; }
.settingsPanel { margin-top: 14px; padding-top: 2px; border-top: 1px solid #e4eaf3; }
.switchRow { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; border: 1px solid #dbe4ef; border-radius: 12px; background: #f7f9fc; color: #003478; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.switch { margin: 0; display: inline-flex; align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switchTrack { width: 48px; height: 28px; border-radius: 999px; background: #c4cedb; position: relative; transition: .18s ease; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.switchTrack::after { content: ""; width: 22px; height: 22px; border-radius: 999px; background: #fff; position: absolute; top: 3px; left: 3px; transition: .18s ease; box-shadow: 0 2px 7px rgba(0,0,0,.24); }
.switch input:checked + .switchTrack { background: #0057d9; }
.switch input:checked + .switchTrack::after { transform: translateX(20px); }
.muted { opacity: .48; }
.optional { color:#7d8898; font-weight:700; text-transform:none; letter-spacing:0; }
.presetRow { display:grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.presetRow button { margin:0; padding:9px 8px; border-radius:10px; font-size:12px; background:#f0f5fc; color:#003478; border:1px solid #d1def0; }
@media(max-width: 900px) { main { grid-template-columns: 1fr; } }

.toolsPanel { align-self:start; position: sticky; top: 18px; display:block; }
.toolsPanel .primary, .toolsPanel .secondary { margin-top: 10px; }
.previewStage { min-height: 540px; border: 1px dashed #d5deeb; border-radius: 14px; background: #f8fafc; display:flex; align-items:center; justify-content:center; padding:14px; overflow:auto; }
@media(max-width: 1100px) { .preview { grid-template-columns: 1fr; } .toolsPanel { position: static; } }

/* Three-panel layout: setup | centered generated graphic | adjustments/export */
.threeCol {
  display: grid;
  grid-template-columns: 380px minmax(420px, 1fr) 320px;
  gap: 22px;
  padding: 22px;
  min-height: calc(100vh - 64px);
  align-items: start;
}
.setupPanel, .toolsPanel { padding: 18px; height: fit-content; }
.previewCenter {
  min-width: 0;
  min-height: calc(100vh - 108px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.previewCenter .previewStage {
  width: 100%;
  min-height: calc(100vh - 108px);
  background: white;
  border: 1px dashed #d5deeb;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: auto;
}
.toolsPanel {
  position: sticky;
  top: 22px;
  display: block;
}
.toolsPanel.hidden { display: none !important; }
.toolsPanel .sliderBox { margin-top: 0; }
@media(max-width: 1200px) {
  .threeCol { grid-template-columns: 360px minmax(360px, 1fr); }
  .toolsPanel { grid-column: 1 / -1; position: static; }
}
@media(max-width: 900px) {
  .threeCol { grid-template-columns: 1fr; padding: 14px; }
  .previewCenter, .previewCenter .previewStage { min-height: 420px; }
}

.modeChooser {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px;
}
.modeCard {
  width: min(420px, 100%);
  min-height: 210px;
  background: white;
  border: 1px solid #d9e3ef;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.09);
  padding: 26px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.modeCard:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0,0,0,.13); border-color:#0057d9; }
.modeCard h2 { margin: 0 0 10px; color:#003478; font-size: 28px; }
.modeCard p { color:#5d6b7a; font-size: 16px; line-height: 1.45; margin: 0; }
.smallButton { padding: 10px 12px; font-size: 13px; margin-top: 0; margin-bottom: 12px; }
body[data-mode="thank"] .sliderBox { display: none; }
body[data-mode="thank"] .toolsPanel { display: block; }
body[data-mode="thank"] .toolsPanel.hidden { display: none !important; }
@media(max-width: 850px) { .modeChooser { flex-direction: column; } }
body[data-mode="delivery"] .sliderBox { display: none; }
body[data-mode="delivery"] .toolsPanel { display: block; }
body[data-mode="delivery"] .toolsPanel.hidden { display: none !important; }

.modeChooser { flex-wrap: wrap; }
body[data-mode="soldUpload"] .toolsPanel { display: block; }
body[data-mode="soldUpload"] .toolsPanel.hidden { display: none !important; }


.passwordOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 52, 120, 0.96), rgba(0, 17, 40, 0.96));
  padding: 24px;
}
.passwordOverlay.hidden {
  display: none;
}
.passwordCard {
  width: min(420px, 100%);
  background: #ffffff;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  text-align: center;
}
.passwordCard h1 {
  margin: 0 0 8px;
  color: #003478;
  font-size: 28px;
  line-height: 1.1;
}
.passwordCard p {
  margin: 0 0 18px;
  color: #667085;
  font-weight: 700;
}
.passwordCard input {
  text-align: center;
  font-size: 22px;
  letter-spacing: 6px;
  font-weight: 900;
}
.passwordCard button {
  margin-top: 14px;
  background: #003478;
  color: #fff;
}
.passwordCard button:hover {
  background: #00295f;
}
.passwordError {
  min-height: 22px;
  margin-top: 12px;
  color: #b42318;
  font-size: 14px;
  font-weight: 800;
}
body.locked {
  overflow: hidden;
}


/* Polished thumbnail home screen */
.modeChooser {
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 34px 24px;
}

.modeCardRich {
  width: min(360px, 100%);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d9e3ef;
  border-radius: 22px;
}

.modeCardRich:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(0,0,0,.16);
  border-color: #0057d9;
}

.modeThumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
  background: #0b1530;
  border-bottom: 1px solid #e4ebf3;
}

.modeBody {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.modeBadge {
  align-self: flex-start;
  background: #eaf3ff;
  color: #003478;
  border: 1px solid #cddff8;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.modeCardRich h2 {
  margin: 4px 0 0;
  font-size: 25px;
  color: #003478;
  line-height: 1.05;
}

.modeCardRich p {
  margin: 0;
  color: #526172;
  font-size: 15px;
  line-height: 1.4;
}

.modeCardRich ul {
  margin: 4px 0 0;
  padding-left: 18px;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.modeCardRich li {
  margin: 3px 0;
}

@media(max-width: 850px) {
  .modeCardRich {
    width: min(420px, 100%);
  }
}


/* Workflow badge color polish */
.modeBadge {
  border-width: 1px;
  border-style: solid;
}
.badgeVehicle { background:#e8f3ff; color:#004a98; border-color:#b8d9ff; }
.badgeSold { background:#fff0f3; color:#b4233a; border-color:#ffc9d3; }
.badgeFollow { background:#eff8ff; color:#026aa2; border-color:#b9e6fe; }
.badgePickup { background:#ecfdf3; color:#027a48; border-color:#abefc6; }
.badgeExternal { background:#fff7ed; color:#c2410c; border-color:#fed7aa; }
.badgeLease { background:#f4f3ff; color:#5925dc; border-color:#d9d6fe; }


/* Animated top bar polish */
header {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(100deg, #002b5c, #0057d9, #003478, #001b3f);
  background-size: 300% 300%;
  animation: headerGradientMove 9s ease infinite;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 50%, rgba(40, 189, 247, .34), transparent 24%),
    radial-gradient(circle at 86% 45%, rgba(255,255,255,.16), transparent 22%);
  animation: headerGlowPulse 4.5s ease-in-out infinite alternate;
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 0%, transparent 42%, rgba(255,255,255,.18) 50%, transparent 58%, transparent 100%);
  transform: translateX(-120%);
  animation: headerShine 5.5s ease-in-out infinite;
}

header .brand {
  text-shadow: 0 3px 12px rgba(0,0,0,.35);
  letter-spacing: .01em;
}

header .sub {
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  opacity: .95;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

@keyframes headerGradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes headerGlowPulse {
  0% { opacity: .55; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.04); }
}

@keyframes headerShine {
  0%, 42% { transform: translateX(-120%); }
  58%, 100% { transform: translateX(120%); }
}


/* Driving car header overlay */
.headerCar {
  position: absolute;
  left: -130px;
  bottom: -6px;
  height: 54px;
  width: auto;
  z-index: 4;
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,.35));
  animation:
    carDriveAcross var(--car-speed, 9s) linear infinite,
    carBob 1.1s ease-in-out infinite;
}

.headerCar.pop {
  animation:
    carDriveAcross var(--car-speed, 9s) linear infinite,
    carBob 1.1s ease-in-out infinite,
    carPop .35s ease;
}

@keyframes carDriveAcross {
  0% { transform: translateX(-150px) translateY(0) scaleX(1); }
  100% { transform: translateX(calc(100vw + 220px)) translateY(0) scaleX(1); }
}

@keyframes carBob {
  0%, 100% { bottom: -6px; }
  50% { bottom: -2px; }
}

@keyframes carPop {
  0% { scale: 1; }
  45% { scale: 1.22; rotate: -4deg; }
  100% { scale: 1; rotate: 0deg; }
}

/* Home screen sections */
.modeChooser {
  display: block;
  padding: 34px 24px;
}

.homeGroup {
  width: min(1480px, 100%);
  margin: 0 auto 34px;
}

.homeGroupHeader {
  color: #122033;
  margin: 0 0 18px;
  text-align: left;
}

.homeGroupHeader h2 {
  margin: 0 0 5px;
  font-size: 30px;
  color: #003478;
  letter-spacing: -.02em;
}

.homeGroupHeader p {
  margin: 0;
  color: #667085;
  font-weight: 700;
  line-height: 1.4;
}

.modeGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.printablesGroup {
  margin-top: 10px;
}

.emptyPrintables {
  min-height: 210px;
  border: 2px dashed #cdd8e6;
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  color: #667085;
}

.emptyIcon {
  font-size: 42px;
  margin-bottom: 8px;
}

.emptyPrintables h3 {
  margin: 0 0 6px;
  color: #003478;
  font-size: 24px;
}

.emptyPrintables p {
  margin: 0;
  font-weight: 700;
}

/* Smooth header car animation fix */
header {
  position: relative;
  overflow: hidden;
  background-size: 300% 300%;
}
.headerCar {
  left: 0;
  bottom: -6px;
  will-change: transform;
  transform: translate3d(-180px, 0, 0);
  animation: carDriveSmooth 10s linear infinite;
}
.headerCar.pop {
  animation: carDriveSmooth 10s linear infinite, carPop .35s ease;
}
@keyframes carDriveSmooth {
  0% { transform: translate3d(-180px, 0, 0) scaleX(1); }
  100% { transform: translate3d(calc(100vw + 180px), 0, 0) scaleX(1); }
}

/* Keep simple template workflows simple: sliders only show where adjustment is allowed. */
body:not([data-mode="vehicle"]):not([data-mode="soldUpload"]) .toolsPanel .sliderBox {
  display: none !important;
}
body[data-mode="appointmentPrintable"] #downloadBtn {
  display: none !important;
}
.badgePrintable {
  background: #f3f0ff;
  color: #53389e;
}

/* Favorites */
.modeCardRich {
  position: relative;
}
.favoriteBtn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: auto;
  margin: 0;
  border: 1px solid rgba(255,255,255,.70);
  border-radius: 999px;
  background: rgba(0, 28, 68, .72);
  color: #ffffff;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  cursor: pointer;
  backdrop-filter: blur(7px);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}
.favoriteBtn span {
  color: #ffd35a;
}
.favoriteBtn:hover {
  transform: translateY(-1px) scale(1.03);
  background: rgba(0, 52, 120, .92);
}
.favoriteBtn.active {
  background: linear-gradient(135deg, #ffc83d, #fff2a8);
  color: #583800;
  border-color: #fff0a6;
  box-shadow: 0 0 0 3px rgba(255, 207, 64, .30), 0 0 26px rgba(255, 199, 47, .78);
}
.favoriteBtn.active span {
  color: #8b5b00;
}
.modeCardRich.isFavorite {
  border-color: #ffd35a !important;
  box-shadow: 0 0 0 3px rgba(255, 211, 90, .28), 0 18px 52px rgba(255, 179, 0, .30), 0 10px 30px rgba(0,0,0,.09);
}
.modeCardRich.isFavorite:hover {
  box-shadow: 0 0 0 3px rgba(255, 211, 90, .38), 0 24px 60px rgba(255, 179, 0, .40), 0 18px 44px rgba(0,0,0,.13);
}
.favoriteClone {
  cursor: pointer;
}
.favoritesGroup {
  margin-bottom: 30px;
}
.emptySectionGroup .emptyPrintables {
  min-height: 150px;
}

/* Click-to-explode header car */
.headerCar.exploding {
  object-fit: contain;
  z-index: 8;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,.38));
  transition: opacity .22s ease;
}


/* Section tabs under the header */
.sectionTabs {
  width: min(1480px, calc(100% - 48px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,52,120,.12);
  box-shadow: 0 12px 34px rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
}
.sectionTab {
  margin: 0;
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  background: transparent;
  color: #003478;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.sectionTab:hover {
  transform: translateY(-1px);
  background: rgba(0,52,120,.08);
}
.sectionTab.active {
  background: linear-gradient(135deg, #003478, #0b61c9);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0,52,120,.25);
}

/* Welcome message after login */
.introOverlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: radial-gradient(circle at top, rgba(11,97,201,.28), transparent 36%), rgba(5, 13, 28, .72);
  backdrop-filter: blur(12px);
}
.introOverlay.hidden {
  display: none !important;
}
.introCard {
  width: min(620px, 100%);
  border-radius: 28px;
  padding: 30px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid rgba(0,52,120,.14);
  box-shadow: 0 28px 90px rgba(0,0,0,.35);
  color: #172033;
}
.introBadge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: #e9f2ff;
  color: #003478;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.introCard h1 {
  margin: 0 0 12px;
  font-size: 34px;
  color: #003478;
  letter-spacing: -.03em;
}
.introCard p {
  margin: 0 0 12px;
  color: #344054;
  font-weight: 650;
  line-height: 1.55;
}
.introCard a {
  color: #0057b8;
  font-weight: 900;
}
.introThanks {
  color: #003478 !important;
  font-weight: 950 !important;
}
.introLetsGo {
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 18px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #12b76a, #079455);
  color: white;
  font-size: 17px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(7, 148, 85, .28);
}
.introLetsGo:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(7, 148, 85, .34);
}

@media (max-width: 700px) {
  .sectionTabs { grid-template-columns: 1fr; width: min(100% - 28px, 1480px); }
  .introCard { padding: 24px; }
}

/* Animated app background */
body {
  background:
    radial-gradient(circle at 10% 18%, rgba(40,189,247,.20), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(0,87,217,.16), transparent 24%),
    radial-gradient(circle at 50% 92%, rgba(18,183,106,.13), transparent 28%),
    linear-gradient(135deg, #f4f7fb, #eef5ff, #f7fbff);
  background-size: 140% 140%, 130% 130%, 150% 150%, 240% 240%;
  animation: appBackgroundDrift 16s ease-in-out infinite alternate;
}
@keyframes appBackgroundDrift {
  0% { background-position: 0% 0%, 100% 0%, 50% 100%, 0% 50%; }
  100% { background-position: 12% 18%, 84% 16%, 56% 82%, 100% 50%; }
}
.panel, .previewCenter .previewStage, .modeCardRich, .emptyPrintables, .sectionTabs {
  backdrop-filter: blur(10px);
}

/* Editor nav: tabs become one big Home button while inside a template */
.editorHomeButton {
  margin: 0;
  border: 0;
  border-radius: 18px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #003478, #0b61c9);
  color: white;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(0,52,120,.25);
}
body[data-editor="true"] .sectionTabs {
  grid-template-columns: 1fr;
}
body[data-editor="true"] .sectionTab {
  display: none;
}
body[data-editor="true"] .editorHomeButton:not(.hidden) {
  display: block !important;
}
body[data-editor="true"] .editorHomeButton.hidden {
  display: none !important;
}

/* Buttons live with the inputs on the left now */
.setupPanel > #generateBtn {
  margin-top: 18px;
}
.setupPanel > #downloadBtn {
  margin-top: 10px;
}
body:not([data-mode="vehicle"]):not([data-mode="soldUpload"]) .toolsPanel {
  display: none !important;
}

/* Logo title */
header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brandLogo {
  height: 38px;
  width: auto;
  max-width: min(310px, 52vw);
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}
header .brand span {
  color: #fff;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .brandLogo { height: 30px; max-width: 45vw; }
  header .brand span { font-size: 16px; }
  header .sub { display: none; }
}

/* Red flash when the driving GIF is clicked */
header.headerFlashRed {
  animation: headerRedFlash .36s ease, headerGradientMove 9s ease infinite;
}
@keyframes headerRedFlash {
  0% { box-shadow: inset 0 0 0 0 rgba(255,0,0,0), 0 2px 10px rgba(0,0,0,.18); }
  35% { background: linear-gradient(100deg,#5b0000,#ff1f1f,#910000) !important; box-shadow: inset 0 0 70px rgba(255,0,0,.92), 0 0 44px rgba(255,0,0,.58); }
  100% { box-shadow: inset 0 0 0 rgba(255,0,0,0), 0 2px 10px rgba(0,0,0,.18); }
}

/* Four home tabs now that Favorites is its own section */
.sectionTabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
body[data-editor="true"] .sectionTabs {
  grid-template-columns: 1fr;
}

/* Default-person picker after welcome */
.personOverlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: 22px;
  background: radial-gradient(circle at top, rgba(40,189,247,.24), transparent 36%), rgba(4, 14, 31, .78);
  backdrop-filter: blur(12px);
}
.personOverlay.hidden { display: none !important; }
.personCard {
  width: min(520px, 100%);
  border-radius: 28px;
  padding: 30px;
  background: linear-gradient(180deg, #ffffff, #f4f9ff);
  border: 1px solid rgba(0,52,120,.14);
  box-shadow: 0 28px 90px rgba(0,0,0,.36);
  color: #172033;
}
.personCard h1 {
  margin: 0 0 10px;
  color: #003478;
  font-size: 32px;
  letter-spacing: -.03em;
}
.personCard p {
  margin: 0 0 18px;
  color: #344054;
  font-weight: 700;
  line-height: 1.5;
}
.personCard select {
  margin-bottom: 16px;
}

.favoriteEmpty {
  min-height: 210px;
  border: 2px dashed rgba(255, 211, 90, .70);
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  color: #5f4a00;
  font-weight: 850;
  box-shadow: inset 0 0 38px rgba(255, 211, 90, .18);
}

/* Latest cleanup: remove GIF background and return to a polished animated background */
html {
  min-height: 100%;
  background: #071a33 !important;
}
body {
  background:
    radial-gradient(circle at 18% 20%, rgba(0, 87, 217, .24), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(46, 144, 250, .20), transparent 24%),
    radial-gradient(circle at 64% 88%, rgba(0, 52, 120, .24), transparent 30%),
    linear-gradient(135deg, #eef5ff 0%, #dfeeff 38%, #f7fbff 100%) !important;
  background-size: 140% 140%, 130% 130%, 150% 150%, 240% 240% !important;
  animation: appBackgroundFloat 18s ease-in-out infinite alternate !important;
}
body::before,
body::after {
  display: none !important;
  content: none !important;
}

/* Five home tabs: Favorites, Sales, Service, Finance, Identity */
.sectionTabs {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
body[data-editor="true"] .sectionTabs {
  grid-template-columns: 1fr !important;
}

/* Explosion-style top bar flash */
header.headerFlashRed {
  animation: headerExplosionFlash 1.35s ease-out, headerGradientMove 9s ease infinite !important;
}
@keyframes headerExplosionFlash {
  0% {
    background: linear-gradient(100deg,#002b5c,#0057d9,#003478) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
  }
  16% {
    background: radial-gradient(circle at center, #fff7b8 0%, #ffcf33 22%, #ff6b00 48%, #8f0000 100%) !important;
    box-shadow: inset 0 0 60px rgba(255,255,180,.95), 0 0 48px rgba(255,106,0,.85);
  }
  38% {
    background: radial-gradient(circle at center, #ffffff 0%, #ffd75a 18%, #ff4500 48%, #4b0000 100%) !important;
    box-shadow: inset 0 0 90px rgba(255,255,255,.75), 0 0 70px rgba(255,45,0,.88);
  }
  68% {
    background: linear-gradient(100deg,#350000,#b91500,#ff8a00,#2b0000) !important;
    box-shadow: inset 0 0 50px rgba(255,102,0,.65), 0 0 40px rgba(255,70,0,.5);
  }
  100% {
    background: linear-gradient(100deg,#002b5c,#0057d9,#003478) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
  }
}

.identityCard {
  width: min(560px, 100%);
  margin: 0 auto;
  border-radius: 24px;
  padding: 30px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,52,120,.14);
  box-shadow: 0 18px 50px rgba(0, 31, 75, .16);
  text-align: center;
}
.identityCard h3 {
  margin: 6px 0 8px;
  color: #003478;
  font-size: 26px;
}
.identityCard p {
  color: #475467;
  font-weight: 750;
  line-height: 1.45;
}
.identityCard label {
  display: block;
  margin-top: 18px;
  text-align: left;
}
.identityStatus {
  margin-top: 12px;
  color: #027a48;
  font-weight: 900;
  min-height: 20px;
}

/* Six home tabs: Favorites, Sales, Service, Finance, E-Mail, Identity */
.sectionTabs {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}
body[data-editor="true"] .sectionTabs {
  grid-template-columns: 1fr !important;
}
.badgeEmail {
  background: linear-gradient(135deg, #e9f2ff, #d8eaff);
  color: #003478;
}
.emailTemplateNote {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,52,120,.08);
  color: #003478;
  font-weight: 800;
  line-height: 1.35;
}
body[data-mode="emailSignature"] .previewStage {
  align-items: center;
}
body[data-mode="emailSignature"] canvas {
  max-width: min(100%, 760px);
  image-rendering: auto;
}
@media (max-width: 1050px) {
  .sectionTabs { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  body[data-editor="true"] .sectionTabs { grid-template-columns: 1fr !important; }
}
@media (max-width: 700px) {
  .sectionTabs { grid-template-columns: 1fr !important; }
}


.downloadSuccessOverlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 18, 42, .56);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
}
.downloadSuccessOverlay:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
  animation: successOverlayFade .18s ease both;
}
.downloadSuccessCard {
  width: min(430px, 94vw);
  text-align: center;
  padding: 30px 28px 26px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(48, 213, 125, .34), transparent 36%),
    linear-gradient(145deg, rgba(0, 52, 120, .96), rgba(6, 24, 55, .98));
  box-shadow: 0 28px 90px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.16) inset;
  transform: translateY(18px) scale(.94);
  animation: successCardPop .42s cubic-bezier(.18, 1.22, .35, 1) both;
  position: relative;
  overflow: hidden;
}
.downloadSuccessCard::before, .downloadSuccessCard::after {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(42, 197, 104, .16);
  filter: blur(1px);
  animation: successPulse 1.7s ease-in-out infinite alternate;
}
.downloadSuccessCard::before { top: -78px; left: -58px; }
.downloadSuccessCard::after { right: -72px; bottom: -86px; animation-delay: .25s; }
.downloadSuccessBurst {
  width: 76px;
  height: 76px;
  margin: 0 auto 15px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 44px;
  font-weight: 950;
  background: linear-gradient(135deg, #20d46c, #8affb1);
  color: #07351b;
  box-shadow: 0 0 0 8px rgba(46, 224, 122, .16), 0 16px 38px rgba(32, 212, 108, .34);
  position: relative;
  z-index: 1;
  animation: successCheckBounce .62s cubic-bezier(.2,1.35,.28,1) both;
}
.downloadSuccessCard h2, .downloadSuccessCard p, .downloadSuccessActions { position: relative; z-index: 1; }
.downloadSuccessCard h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.4px; }
.downloadSuccessCard p { margin: 0 auto 22px; max-width: 340px; color: rgba(255,255,255,.86); line-height: 1.45; }
.downloadSuccessActions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.downloadSuccessActions button {
  border-radius: 999px;
  min-height: 46px;
  font-weight: 900;
}
.downloadSuccessActions .secondary {
  background: rgba(255,255,255,.11);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
}
@keyframes successOverlayFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes successCardPop {
  0% { opacity: 0; transform: translateY(22px) scale(.9); }
  70% { opacity: 1; transform: translateY(-2px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes successCheckBounce {
  0% { transform: scale(.45) rotate(-12deg); opacity: 0; }
  60% { transform: scale(1.12) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes successPulse {
  from { transform: scale(.92); opacity: .55; }
  to { transform: scale(1.15); opacity: .9; }
}
@media (max-width: 520px) { .downloadSuccessActions { grid-template-columns: 1fr; } }

.successToast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 380px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(18, 118, 62, .96), rgba(39, 174, 96, .96));
  color: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.18) inset;
  transform: translateY(22px) scale(.94);
  opacity: 0;
  pointer-events: none;
}
.successToast.show {
  animation: successPop 2.6s ease forwards;
}
.successToast strong { display:block; font-size: 15px; letter-spacing: .2px; }
.successToast span { display:block; font-size: 13px; opacity: .92; margin-top: 2px; }
.successIcon {
  width: 38px; height: 38px; border-radius: 999px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.4);
  font-weight: 900; font-size: 22px;
  box-shadow: 0 0 22px rgba(255,255,255,.22);
}
@keyframes successPop {
  0% { opacity: 0; transform: translateY(22px) scale(.94); }
  12% { opacity: 1; transform: translateY(0) scale(1.04); }
  20% { transform: translateY(0) scale(1); }
  82% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(12px) scale(.98); }
}
@media (max-width: 700px) {
  .successToast { left: 16px; right: 16px; bottom: 16px; min-width: 0; max-width: none; }
}

/* Download success confetti */
.successConfetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 10001;
}
.successConfetti span {
  position: absolute;
  top: -22px;
  width: 10px;
  height: 16px;
  border-radius: 3px;
  opacity: .96;
  animation-name: confettiFall;
  animation-timing-function: cubic-bezier(.15,.75,.35,1);
  animation-fill-mode: forwards;
}
.successConfetti span.circle {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}
@keyframes confettiFall {
  0% { transform: translate3d(0,-20px,0) rotate(0deg); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: translate3d(var(--confetti-drift, 38px), 108vh, 0) rotate(760deg); opacity: 0; }
}

.logoOverlayControls {
  margin-top: 14px;
  padding: 13px;
  border-radius: 14px;
  background: #f7f9fc;
  border: 1px solid #dfe8f4;
}
.logoOverlayControls.hidden { display: none !important; }
.logoOverlayOptions.hidden { display: none !important; }
.logoOverlayOptions { margin-top: 10px; }
.logoOverlayOptions .secondary { margin-top: 10px; }
.checkboxRow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  cursor: pointer;
  margin: 0;
}
.checkboxRow input { width: auto; margin: 0; }
.logoDragLayer {
  position: fixed;
  z-index: 9999;
  pointer-events: auto;
  cursor: grab;
  display: block;
  visibility: visible;
  background: transparent;
  user-select: none;
  touch-action: none;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.45));
  opacity: 1;
  max-width: none;
}
.logoDragLayer.dragging {
  cursor: grabbing;
  outline: 2px solid rgba(255,212,71,.85);
  outline-offset: 5px;
  border-radius: 8px;
}


.directDragLayer {
  position: fixed;
  z-index: 9998;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  border: 2px dashed rgba(255, 212, 71, .9);
  background: rgba(255, 212, 71, .08);
  color: rgba(255,255,255,.92);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
  box-shadow: 0 12px 26px rgba(0,0,0,.20);
  border-radius: 14px;
}
.directDragLayer.hidden { display: none; }
.directDragLayer.dragging {
  cursor: grabbing;
  border-color: #fff2a8;
  background: rgba(255, 212, 71, .18);
  box-shadow: 0 0 0 5px rgba(255, 212, 71, .22), 0 18px 36px rgba(0,0,0,.26);
}
.directDragLayer-head {
  border-radius: 999px;
}
canvas.canvasDraggingLayer { cursor: grabbing !important; }
canvas { touch-action: none; }


/* Draggable template adjust panel */
#adjustGraphicBtn.hidden { display: none !important; }
#adjustGraphicBtn { margin-top: 14px; }
.adjustHeader { margin-bottom: 14px; }
.toolAccordion {
  border: 1px solid #dfe8f4;
  background: #f7f9fc;
  border-radius: 16px;
  padding: 12px 13px;
  margin-bottom: 14px;
}
.toolAccordion summary {
  cursor: pointer;
  font-weight: 950;
  color: #123c7c;
  list-style: none;
  margin-bottom: 10px;
}
.toolAccordion summary::-webkit-details-marker { display: none; }
.toolAccordion summary::after { content: '▾'; float: right; opacity: .65; }
.toolAccordion:not([open]) summary { margin-bottom: 0; }
.toolAccordion:not([open]) summary::after { content: '▸'; }
.graphicAssetsBox {
  border: 1px solid #dfe8f4;
  background: #f7f9fc;
  border-radius: 16px;
  padding: 12px 13px;
}
.graphicAssetGrid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 2px;
}
.assetTile {
  border: 2px solid #d8e3f1;
  background: #ffffff;
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.assetTile.dark { background: linear-gradient(135deg,#0b2348,#06142a); }
.assetTile:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(0,40,100,.14); }
.assetTile.selected { border-color: #ffd447; box-shadow: 0 0 0 4px rgba(255,212,71,.28); }
.assetTile img { max-width: 100%; max-height: 48px; object-fit: contain; }
.assetTile span { font-size: 12px; font-weight: 900; color: #163c74; text-align: center; }
.assetTile.dark span { color: #fff; }
.logoOverlayOptions { margin-top: 12px; }
.logoOverlayOptions .secondary { margin-top: 10px; }

/* Invisible drag hit areas: no yellow labels/outlines, but still clickable. */
.directDragLayer {
  border: 0 !important;
  background: transparent !important;
  color: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
  opacity: 1;
}
.directDragLayer.dragging {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.directDragLayer::after { content: none !important; }

/* Adjust Graphic button floats on the right side once a draggable graphic has been generated. */
#adjustGraphicBtn {
  position: fixed;
  right: 24px;
  top: 132px;
  width: 320px;
  max-width: calc(100vw - 48px);
  z-index: 9992;
  box-shadow: 0 14px 32px rgba(0, 52, 120, .22);
}
.dragEnabledNote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #eaf8ef;
  color: #09622a;
  border: 1px solid #bbe8c9;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.dragEnabledNote::before { content: '✓'; }
body:not([data-template-type="draggable"]) #adjustGraphicBtn { display: none !important; }
.logoDragLayer { pointer-events: none; }
body[data-template-type="draggable"]:has(#toolsPanel:not(.hidden)) .logoDragLayer { pointer-events: auto; }
@media(max-width: 900px) {
  #adjustGraphicBtn { position: static; width: 100%; max-width: none; }
}


/* Adjust Graphic launcher lives on the right side above the preview for draggable templates. */
.previewCenter {
  position: relative;
  flex-direction: column;
  align-items: stretch;
}
.adjustActionRow {
  display: none !important;
}
#adjustGraphicBtn.adjustLauncher {
  width: auto;
  max-width: 220px;
  margin: 0 0 0 auto;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 950;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bcd2ef;
  color: #073b7a;
  box-shadow: 0 12px 28px rgba(0, 52, 120, .16);
}
#adjustGraphicBtn.adjustLauncher:not(.hidden) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
body:not([data-template-type="draggable"]) #adjustGraphicBtn {
  display: none !important;
}

.adjustActionRow:has(#adjustGraphicBtn.hidden) { display: none; }

/* Final success popup polish */
#downloadSuccessOverlay #createAnotherGraphic {
  background: #ffffff;
  color: #003478;
  border: 1px solid rgba(255,255,255,.92);
}
#downloadSuccessOverlay #createAnotherGraphic:hover {
  background: #f2f7ff;
}


/* ===== Combined Brighton Ford creative suite ===== */
.workspaceSwitcher {
  width: min(980px, calc(100% - 48px));
  margin: 22px auto 2px;
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,52,120,.14);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(0,52,120,.10);
}
.workspaceSwitch {
  min-height: 72px;
  padding: 12px 18px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  color: #003478;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.workspaceSwitch > span { grid-row: 1 / 3; font-size: 28px; text-align: center; }
.workspaceSwitch strong { font-size: 17px; line-height: 1.1; }
.workspaceSwitch small { color: #68778a; font-weight: 750; margin-top: 3px; }
.workspaceSwitch:hover { transform: translateY(-1px); background: #edf6ff; }
.workspaceSwitch.active { color: #fff; background: linear-gradient(135deg,#003478,#0877d1); box-shadow: 0 10px 24px rgba(0,52,120,.26); }
.workspaceSwitch.active small { color: rgba(255,255,255,.82); }

.graphicMakerLaunch { text-decoration: none; color: inherit; border: 2px solid rgba(0,84,166,.22); overflow: hidden; }
.graphicMakerLaunch:hover { border-color: #0877d1; }
.graphicMakerPreview {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #e9eef5;
  border-bottom: 1px solid rgba(0,52,120,.12);
}
.gmToolbar { height: 36px; background: linear-gradient(135deg,#002f6c,#005eb8); display:flex; align-items:center; gap:6px; padding:0 10px; color:white; font-size:10px; font-weight:900; }
.gmToolbar i { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.55); }
.gmToolbar span { margin-left:auto; }
.gmRail { position:absolute; left:0; top:36px; bottom:0; width:42px; background:#fff; display:flex; flex-direction:column; gap:12px; padding:14px 10px; box-shadow:2px 0 8px rgba(0,0,0,.08); }
.gmRail i { width:22px; height:22px; border-radius:7px; background:#dce9f7; }
.gmCanvas { position:absolute; left:72px; right:28px; top:62px; bottom:24px; padding:22px; border-radius:10px; background:linear-gradient(135deg,#003478 0 48%,#fff 48%); box-shadow:0 12px 30px rgba(0,52,120,.22); }
.gmCanvas b { color:#fff; font-size:23px; line-height:.9; letter-spacing:-.04em; display:block; }
.gmCanvas em { position:absolute; right:14px; bottom:14px; color:#003478; font-size:11px; font-style:normal; font-weight:900; }
.badgeGraphicMaker { background:#e8f4ff; color:#004b91; }
.launchStudioButton { margin-top:16px; display:inline-flex; padding:10px 14px; border-radius:10px; background:#005eb8; color:#fff; font-weight:950; }

@media (max-width: 700px) {
  .workspaceSwitcher { width:min(100% - 28px,980px); }
  .workspaceSwitch { grid-template-columns:30px 1fr; padding:10px; }
  .workspaceSwitch > span { font-size:22px; }
  .workspaceSwitch strong { font-size:14px; }
  .workspaceSwitch small { font-size:10px; }
}


/* Brighton Ford Creative Suite unified dark theme */
:root{--suite-navy-950:#020b14;--suite-navy-900:#051321;--suite-navy-850:#071a2d;--suite-navy-800:#0a2037;--suite-blue:#005eb8;--suite-blue-bright:#168cde;--suite-line:#1d3d56;--suite-text:#e9f3fb;--suite-muted:#91aabd}
body{background:radial-gradient(circle at 72% 0,rgba(0,94,184,.2),transparent 31%),linear-gradient(180deg,#03101f 0,#06182b 58%,#030d19 100%);color:var(--suite-text);min-height:100vh}
header.suiteTopbar{height:76px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 4vw;background:linear-gradient(90deg,rgba(0,43,92,.98),rgba(0,74,152,.98));border-bottom:1px solid rgba(171,211,242,.2);box-shadow:0 8px 25px rgba(0,0,0,.28);animation:none;overflow:visible}
header.suiteTopbar::before,header.suiteTopbar::after{display:none}.suiteTopbar .brand{display:flex;align-items:center;gap:13px;font-size:13px;text-shadow:none}.suiteTopbar .brandLogo{width:205px;max-height:50px;object-fit:contain}.suiteTopbar .brand span{padding-left:12px;border-left:1px solid rgba(255,255,255,.25);font-weight:800}.suiteTopbar .sub{justify-self:end;padding:8px 13px;border-radius:999px;background:rgba(4,23,42,.34);border:1px solid rgba(255,255,255,.18);color:#d9efff;font-size:10px;text-shadow:none}
.workspaceSwitcher{position:static;justify-self:center;display:flex;gap:5px;padding:5px;margin:0;background:rgba(2,18,35,.34);border:1px solid rgba(255,255,255,.12);border-radius:10px;box-shadow:none;width:auto;max-width:none}
.workspaceSwitch{width:auto;min-width:172px;display:grid;grid-template-columns:25px 1fr;grid-template-rows:auto auto;column-gap:8px;padding:8px 12px;border:0;border-radius:7px;background:transparent;color:#c7ddec;text-decoration:none;box-shadow:none}.workspaceSwitch>span{grid-row:1/3;align-self:center;font-size:18px}.workspaceSwitch strong{font-size:11px;line-height:1.1}.workspaceSwitch small{font-size:8px;color:#88a8bf;margin-top:2px}.workspaceSwitch:hover{background:rgba(255,255,255,.08);color:#fff}.workspaceSwitch.active{background:#fff;color:#004a98;box-shadow:0 4px 13px rgba(0,0,0,.23)}.workspaceSwitch.active small{color:#56738a}
.sectionTabs{background:#061625!important;border-bottom:1px solid var(--suite-line)!important;box-shadow:0 8px 20px rgba(0,0,0,.15)!important}.sectionTab,.editorHomeButton{color:#9db5c7!important;background:transparent!important;border-color:transparent!important}.sectionTab:hover,.editorHomeButton:hover{background:#102b46!important;color:#fff!important}.sectionTab.active{background:linear-gradient(135deg,#073566,#005eb8)!important;color:#fff!important;border-color:#1686db!important}
.modeChooser{min-height:calc(100vh - 132px);background:transparent}.homeGroup{background:transparent!important}.homeGroupHeader h2{color:#fff!important}.homeGroupHeader p{color:#8fa8ba!important}
.modeCard,.modeCardRich{background:linear-gradient(180deg,#0b2037,#07182a)!important;border:1px solid var(--suite-line)!important;box-shadow:0 9px 25px rgba(0,0,0,.25)!important;color:var(--suite-text)!important}.modeCard:hover,.modeCardRich:hover{border-color:#2d83bf!important;box-shadow:0 18px 40px rgba(0,0,0,.4)!important}.modeCard h2,.modeCardRich h2{color:#fff!important}.modeCard p,.modeCardRich p{color:#9fb5c6!important}.modeCardRich ul{color:#c4d5e2!important}.modeThumb{background:#03101d!important;border-bottom-color:var(--suite-line)!important}.modeBadge{background:#0e3152!important;color:#76c7ff!important;border-color:#285a7d!important}
.graphicMakerLaunch{border-color:#277eb8!important}.launchStudioButton{background:linear-gradient(135deg,#005eb8,#168cde)!important;color:#fff!important}
.threeCol,main{background:transparent}.panel,.preview,.setupPanel,.toolsPanel{background:linear-gradient(180deg,#0b2037,#07182a)!important;border:1px solid var(--suite-line)!important;box-shadow:0 12px 32px rgba(0,0,0,.28)!important;color:var(--suite-text)!important}.previewCenter .previewStage,.previewStage{background:#071522!important;border-color:#284860!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02),0 12px 32px rgba(0,0,0,.25)!important}
label{color:#7bc8ff}.hint,.optional,#placeholder{color:#7895aa}.sliderBox,.settingsPanel,.switchRow,.photoGrid{background:#091d31!important;border-color:#24455f!important;color:#d9e8f3!important}.photoPick{background:#061421!important}.stepHint{background:#102b46!important;border-color:#2c648c!important;color:#bfe4ff!important}
input,select{background:#051421;color:#e8f2f9;border-color:#31516a}input:focus,select:focus{border-color:#168cde;box-shadow:0 0 0 3px rgba(22,140,222,.15)}input:disabled{background:#102235;color:#7890a3}
.primary{background:linear-gradient(135deg,#005eb8,#168cde)}.primary:hover{background:linear-gradient(135deg,#0873cc,#22a0ee)}.secondary{background:#102a46;color:#dceaf6;border-color:#31516a}.secondary:hover{background:#173754}
.passwordOverlay{background:radial-gradient(circle at 50% 10%,rgba(0,94,184,.35),transparent 38%),rgba(1,8,17,.96)}.passwordCard,.introCard,.personCard,.downloadSuccessCard{background:linear-gradient(180deg,#0c2541,#07182b)!important;color:#eaf4fb!important;border:1px solid rgba(154,205,244,.22)!important}.passwordCard h1,.introCard h1,.personCard h1,.downloadSuccessCard h2{color:#fff!important}.passwordCard p,.introCard p,.personCard p,.downloadSuccessCard p{color:#a9bfd0!important}
@media(max-width:1000px){header.suiteTopbar{grid-template-columns:1fr auto;padding:0 18px}.suiteTopbar .sub{display:none}.workspaceSwitch{min-width:145px}.workspaceSwitch small{display:none}}
@media(max-width:700px){header.suiteTopbar{height:auto;min-height:72px;grid-template-columns:1fr;padding:9px 14px}.suiteTopbar .brand{justify-self:center}.workspaceSwitcher{display:none}.suiteTopbar .brandLogo{width:190px}.suiteTopbar .brand span{display:none}}
