/* FanzPix Create Card — design tokens from Figma Make prototype */
:root {
  --navy: #001833;
  --navy-deep: #001224;
  --panel: #001a38;
  --panel-2: #002244;
  --yellow: #ffcb05;
  --yellow-hover: #ffe14d;
  --ink: #001833;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --muted-2: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --danger: #ce1141;
  --ok: #3dd68c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  --radius: 12px;
  --radius-lg: 14px;
  --max: 1280px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
}

/* The builder renders inside the shop's own theme, so every base rule below
   is scoped to .page. Left global they would restyle the theme's header,
   footer and buttons along with the builder. */
.page,
.page *,
.page *::before,
.page *::after {
  box-sizing: border-box;
}

.page {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
}

.page [hidden],
.toast-error[hidden] {
  display: none !important;
}

.page img {
  max-width: 100%;
  display: block;
}

.page button,
.page input {
  font-family: inherit;
}

.page button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

/* Page intro */
.page {
  padding: 40px 0 72px;
}

.page-title {
  margin: 0 0 4px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.page-sub {
  margin: 0 0 28px;
  color: var(--muted);
  font-weight: 500;
}

/* Stepper */
.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.step-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  cursor: default;
}

.step-btn.is-current {
  background: var(--yellow);
  color: var(--ink);
}

.step-btn.is-done {
  color: var(--yellow);
  cursor: pointer;
}

.step-btn.is-done:hover {
  background: rgba(255, 255, 255, 0.05);
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid currentColor;
  font-size: 11px;
}

.step-btn.is-current .step-num {
  border-color: var(--ink);
}

.step-btn.is-done .step-num {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

/* Layout */
.layout {
  display: grid;
  gap: 40px;
  align-items: start;
}

.preview-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.card-orbit {
  width: 280px;
  height: 392px;
  perspective: 1100px;
  cursor: grab;
  user-select: none;
}

.card-orbit:active {
  cursor: grabbing;
}

.card-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-orbit.is-dragging .card-3d {
  transition: none;
}

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow: var(--shadow);
  background: #050505;
}

.card-back {
  transform: rotateY(180deg);
}

.card-art {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
}

.template-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

.photo-window {
  position: absolute;
  left: 9.2%;
  width: 82.7%;
  top: 14.9%;
  height: 57.4%;
  z-index: 1;
  overflow: hidden;
  background: #050505;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The same photo, blurred, sitting behind the real one. When the shopper
   shrinks their photo the gap fills with this instead of going blank.
   Scaled up so the blur's own soft edges never reach the window. */
.photo-window .photo-blur {
  position: absolute;
  inset: 0;
  transform: scale(1.15);
  filter: blur(14px) brightness(0.8);
  z-index: 0;
}

/* Sits above the blur; transformed live as the sliders move.
   contain, not cover: an upload is never cropped on the shopper's behalf —
   the whole picture shows and they zoom in if they want a crop. */
.photo-window #cardPhoto {
  position: absolute;
  inset: 0;
  z-index: 1;
  object-fit: contain;
  transform-origin: center;
}

.back-fields {
  position: absolute;
  left: 22.05%;
  width: 54.58%;
  top: 24.55%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.back-row {
  display: grid;
  grid-template-columns: 40.5% 1fr;
  column-gap: 3.5%;
  align-items: center;
  padding: 11px 0 10px 3.6%;
  border-bottom: 1px solid #d4a45c;
}

/* The card frame already prints a rule below the last field. */
.back-row:last-child {
  border-bottom: 0;
}

.back-label,
.back-value {
  font-family: Oswald, Inter, sans-serif;
  font-weight: 600;
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}

.back-label {
  color: #ddb565;
  overflow: hidden;
  white-space: nowrap;
}

.back-value {
  color: #e8eaef;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.flip-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.btn-flip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(255, 203, 5, 0.25);
}

.btn-flip:hover {
  background: var(--yellow-hover);
}

.flip-hint {
  font-size: 11px;
  color: var(--muted-2);
}

/* Summary */
.summary {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.summary-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.summary-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.summary-variant {
  font-weight: 800;
  font-size: 14px;
}

.summary-price {
  color: var(--yellow);
  font-weight: 900;
  font-size: 16px;
}

.summary-list {
  display: grid;
  gap: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.summary-row span:first-child {
  color: var(--muted);
}

.summary-row span:last-child {
  font-weight: 700;
  text-align: right;
}

/* Step panel */
.step-panel h2 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 900;
}

.lede {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.hidden {
  display: none !important;
}

/* Format cards */
.format-list {
  display: grid;
  gap: 12px;
}

.format-card {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 14px;
  align-items: start;
  text-align: left;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: 0.15s ease;
}

.format-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.format-card.is-selected {
  border-color: var(--yellow);
  background: rgba(255, 203, 5, 0.06);
}

.radio {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
}

.format-card.is-selected .radio {
  border-color: var(--yellow);
}

.format-card.is-selected .radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.format-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.format-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.best-value {
  background: var(--yellow);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 6px;
}

.format-desc {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.format-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--yellow);
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.check {
  color: var(--ok);
  font-weight: 900;
}

.tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 203, 5, 0.08);
  border: 1px solid rgba(255, 203, 5, 0.2);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.btn-back {
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  color: var(--white);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(255, 203, 5, 0.22);
}

.btn-primary:hover {
  background: var(--yellow-hover);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Upload */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 28px;
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  text-align: center;
  transition: 0.15s ease;
}

.dropzone:hover,
.dropzone.is-drag {
  border-color: var(--yellow);
  background: rgba(255, 203, 5, 0.06);
}

.drop-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.drop-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.drop-preview {
  display: none;
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  overflow: hidden;
}

.dropzone.has-file .drop-preview {
  display: block;
}

.dropzone.has-file .drop-idle {
  display: none;
}

/* The thumbnail of the file just picked. contain, like the frame itself, so
   the shopper's first sight of their photo is the whole of it. */
.drop-preview img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #050505;
}

.photo-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.photo-actions button {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-change {
  background: var(--yellow);
  color: var(--ink);
}

.btn-remove {
  border: 1px solid var(--line-strong);
}

.ideas-kicker {
  margin: 22px 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.ideas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
}

/* Forms */
.field-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field-span {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.field input:focus {
  border-color: var(--yellow);
}

.step-error {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(206, 17, 65, 0.12);
  border: 1px solid rgba(206, 17, 65, 0.45);
  font-size: 13px;
}

.step-error-head {
  margin: 0;
  color: #ff8fa8;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.step-error ul {
  margin: 6px 0 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.step-error li {
  margin-top: 2px;
  font-weight: 600;
}

.field input.is-invalid {
  border-color: var(--danger);
  background: rgba(206, 17, 65, 0.08);
}

.dropzone.is-invalid {
  border-color: var(--danger);
}

.league-grid.is-invalid,
.team-grid.is-invalid,
.template-grid.is-invalid {
  padding: 8px;
  margin: -8px;
  border-radius: 12px;
  outline: 1px solid var(--danger);
  outline-offset: -1px;
}

.section-label {
  display: block;
  margin: 22px 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.league-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.league-btn {
  padding: 10px 8px;
  border-radius: var(--radius-lg);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.league-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.league-btn.is-selected {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

.team-grid {
  display: grid;
  gap: 8px;
}

.team-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-align: left;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
}

.team-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.team-btn.is-selected {
  border-color: var(--yellow);
  background: rgba(255, 203, 5, 0.08);
}

.team-name {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.team-abbr {
  margin: 2px 0 0;
  font-size: 10px;
  color: var(--muted-2);
}

.tick {
  margin-left: auto;
  color: var(--yellow);
  font-weight: 900;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.template-btn {
  padding: 4px;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  background: var(--panel);
  text-align: left;
}

.template-btn.is-selected {
  border-color: var(--yellow);
}

.template-btn img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
}

.template-btn p {
  margin: 6px 2px 2px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}

.template-btn.is-selected p {
  color: var(--white);
}

/* Review */
.order-card,
.props-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}

.kicker {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.order-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.order-name {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.order-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.order-price {
  color: var(--yellow);
  font-weight: 900;
  font-size: 18px;
}

.props-list {
  display: grid;
  gap: 10px;
}

.prop-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.prop-row:last-of-type {
  border-bottom: 0;
}

.prop-row span:first-child {
  color: var(--muted);
}

.prop-row span:last-child {
  font-weight: 700;
  text-align: right;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  font-weight: 900;
}

.total-row strong {
  color: var(--yellow);
  font-size: 22px;
}

.fineprint {
  margin: 10px 0 0;
  text-align: center;
  color: var(--muted-2);
  font-size: 12px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 8, 20, 0.72);
}

.modal.is-open {
  display: grid;
}

.modal-card {
  width: min(440px, 100%);
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 24px;
}

.modal-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.modal-card p {
  color: var(--muted);
  margin: 0 0 16px;
}

.modal-props {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.modal-props li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.modal-props span:first-child {
  color: var(--muted);
}

.toast-error {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #3b0d18;
  border: 1px solid #ce1141;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 90;
}

.toast-error.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 1024px) {
  .layout {
    grid-template-columns: 320px 1fr;
  }

  .preview-col {
    position: sticky;
    top: 24px;
  }

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

  .league-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 639px) {
  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .format-card {
    grid-template-columns: 22px 1fr;
  }

  .format-price {
    grid-column: 2;
  }
}

/* ------------------------------------------------------------- my cards */
.mycards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 22px;
}

.mycard {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.mycard:hover { border-color: var(--yellow); }

.mycard img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.mycard-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 280 / 392;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.mycard-title {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 800;
}

.mycard-meta {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.mycards-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: end;
  gap: 14px;
  max-width: 640px;
  margin-top: 8px;
}
.mycards-form .btn-primary { flex: none; }


/* ------------------------------------------------------- photo adjusting */
.adjust {
  margin: 16px 0 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.adjust-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.btn-reset {
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn-reset:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }

.adjust-row { display: block; margin-bottom: 14px; }
.adjust-row:last-of-type { margin-bottom: 0; }

.adjust-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}
.adjust-label output { color: var(--yellow); font-weight: 700; }

.adjust-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.adjust-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  font-style: normal;
  color: var(--muted-2);
}
.adjust-scale em { font-style: normal; }
.adjust-scale .mid { color: var(--yellow); }

/* One slider look across browsers - the theme's own range styling varies. */
.adjust input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}
.adjust input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.adjust input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  cursor: pointer;
}
.adjust input[type="range"]:focus-visible { outline: 2px solid rgba(255, 203, 5, 0.6); outline-offset: 3px; }

@media (max-width: 520px) {
  .adjust-pair { grid-template-columns: 1fr; gap: 14px; }
}
