.tpl-retro-futuristic-synth.template-shell {
  background:
    linear-gradient(#2a004d 1px, transparent 1px),
    linear-gradient(90deg, #2a004d 1px, transparent 1px),
    #0b001a;
  background-size: 30px 30px;
  padding: 34px;
  color: #e0e0e0;
  font-family: "Inter", Arial, sans-serif;
}

.tpl-retro-futuristic-synth .template-retro-synth-box {
  background: rgba(11, 0, 26, 0.88);
  border: 2px solid #00ffff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), inset 0 0 20px rgba(0, 255, 255, 0.1);
  padding: 44px 48px;
  position: relative;
  overflow: hidden;
}

.tpl-retro-futuristic-synth .template-retro-synth-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1));
  background-size: 100% 4px;
  opacity: 0.5;
  pointer-events: none;
}

.tpl-retro-futuristic-synth .template-retro-synth-bottom {
  position: relative;
  z-index: 1;
}

.tpl-retro-futuristic-synth .template-retro-synth-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid #ff00ff;
  padding-bottom: 20px;
  margin-bottom: 34px;
}

.tpl-retro-futuristic-synth .template-section-title {
  font-family: Syncopate, "Inter", Arial, sans-serif;
}

.tpl-retro-futuristic-synth .template-from-name {
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff;
}

.tpl-retro-futuristic-synth .template-retro-synth-meta {
  text-align: right;
  color: #00ffff;
}

.tpl-retro-futuristic-synth .template-title {
  font-size: 20px;
  letter-spacing: 0.2em;
  color: #00ffff;
}

.tpl-retro-futuristic-synth .template-retro-synth-ref {
  margin: 10px 0;
  font-size: 20px;
  color: #fff;
}

.tpl-retro-futuristic-synth .template-retro-synth-client {
  position: relative;
  z-index: 1;
  background: rgba(255, 0, 255, 0.05);
  border: 1px solid rgba(255, 0, 255, 0.3);
  padding: 20px;
  margin-bottom: 28px;
}

.tpl-retro-futuristic-synth .template-retro-synth-notes {
  border-color: rgba(0, 255, 255, 0.2);
}

.tpl-retro-futuristic-synth .template-section-title {
  color: #00ffff;
}

.tpl-retro-futuristic-synth .template-retro-synth-bottom {
  display: flex;
  gap: 24px;
  margin-top: 30px;
}

.tpl-retro-futuristic-synth .template-retro-synth-notes {
  flex: 1;
  background: rgba(0, 255, 255, 0.05);
  padding: 20px;
}

.tpl-retro-futuristic-synth .template-totals-box {
  width: 300px;
  border: 1px solid rgba(255, 0, 255, 0.45);
  background: rgba(255, 0, 255, 0.05);
}

.tpl-retro-futuristic-synth .template-subline {
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
}

.tpl-retro-futuristic-synth .template-retro-synth-header .template-subline {
  font-size: 12px;
  color: #00ffff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tpl-retro-futuristic-synth .template-to-name {
  color: #fff;
  font-size: 14px;
}

.tpl-retro-futuristic-synth .template-section-title {
  border-bottom: 0;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
}

.tpl-retro-futuristic-synth .template-items-head {
  font-family: Syncopate, "Inter", Arial, sans-serif;
  letter-spacing: 2px;
  font-weight: 400;
}

.tpl-retro-futuristic-synth .template-total-final {
  color: #00ffff;
  border-top: 2px solid #00ffff;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.tpl-retro-futuristic-synth .template-brandline {
  position: static;
  margin-top: 14px;
  color: #00ffff;
}

.template-item-retro-futuristic-synth .preview-item-amt {
  color: #eee;
}

/* Extracted from shared selector blocks */
.tpl-retro-futuristic-synth .template-retro-synth-header,
.tpl-retro-futuristic-synth .template-from-name,
.tpl-retro-futuristic-synth .template-title,
.tpl-retro-futuristic-synth .template-items-head,
.tpl-retro-futuristic-synth .preview-item-row,
.tpl-retro-futuristic-synth .template-total-row,
.tpl-retro-futuristic-synth .template-pay-block,
.tpl-retro-futuristic-synth .template-items-head {
  flex-shrink: 0;
}
