.aats-studio {
  --aats-red: #C60000;
  --aats-ink: #1f1d1d;
  --aats-muted: #72706f;
  --aats-line: #e5e0dc;
  --aats-soft: #f7f5f2;
  --aats-card: #ffffff;
  --aats-colour: #7C837E;
  --aats-opacity: .50;
}

.aats-studio,
.aats-studio * {
  box-sizing: border-box;
}

.aats-studio {
  width: 100%;
  color: var(--aats-ink);
  font-family: inherit;
  background: #fff;
}

.aats-shell {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.aats-header {
  max-width: 900px;
  margin-bottom: 34px;
}

.aats-brand-heading {
  margin-bottom: 12px;
  color: var(--aats-red);
  font-family: "Alike", Georgia, serif;
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.aats-kicker {
  color: var(--aats-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.aats-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 800;
}

.aats-subtitle {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--aats-muted);
  font-size: 17px;
  line-height: 1.6;
}

.aats-layout {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(560px, 1.35fr);
  gap: 34px;
  align-items: start;
}

.aats-preview-panel {
  position: sticky;
  top: 28px;
}

.aats-preview-card,
.aats-controls-panel {
  border: 1px solid var(--aats-line);
  border-radius: 24px;
  background: var(--aats-card);
  box-shadow: 0 18px 50px rgba(25, 20, 16, .055);
}

.aats-preview-card {
  padding: 24px;
}

.aats-preview-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 14px;
}

.aats-preview-heading-row h2,
.aats-section-head h2 {
  margin: 0;
  color: var(--aats-ink);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.aats-preview-heading-row span {
  color: var(--aats-muted);
  font-size: 13px;
  white-space: nowrap;
}

.aats-lens-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid #ebe7e3;
  border-radius: 21px;
  background:
    radial-gradient(circle at 50% 38%, #fff 0 36%, #fbfaf8 66%, #f4f1ed 100%);
}

.aats-demo-lens {
  position: relative;
  z-index: 2;
  width: min(82%, 400px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(104, 104, 104, .32);
  background: rgba(255,255,255,.35);
  box-shadow:
    inset 14px 12px 28px rgba(255,255,255,.58),
    inset -14px -12px 26px rgba(80,80,80,.11),
    0 18px 30px rgba(54, 50, 46, .16),
    0 0 0 7px rgba(255,255,255,.25);
}

.aats-lens-shadow {
  position: absolute;
  left: 50%;
  bottom: 11.5%;
  width: 48%;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(54,50,46,.22) 0, rgba(54,50,46,.06) 52%, transparent 72%);
  filter: blur(5px);
}

.aats-lens-tint {
  position: absolute;
  inset: 0;
  background: rgba(124, 131, 126, .5);
  transition: background .15s ease, opacity .15s ease;
}

.aats-lens-glass {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.54) 0 7%, transparent 28%),
    radial-gradient(circle at 70% 74%, transparent 0 50%, rgba(255,255,255,.12) 79%, rgba(255,255,255,.34) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.aats-lens-highlight {
  position: absolute;
  top: 10%;
  left: 17%;
  width: 38%;
  height: 13%;
  transform: rotate(-23deg);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.33), transparent);
  filter: blur(8px);
  opacity: .65;
}

.aats-lens-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(45,45,45,.28);
  border-radius: 50%;
  color: rgba(45,45,45,.45);
  font-family: "Alike", Georgia, serif;
  font-size: 18px;
  background: rgba(255,255,255,.10);
}

.aats-selection-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 48px;
  margin-top: 15px;
  padding: 11px 14px;
  border: 1px solid var(--aats-line);
  border-radius: 999px;
  font-size: 13px;
  text-align: center;
}

.aats-summary-dot,
.aats-colour-chip,
.aats-hex-preview {
  display: inline-block;
  flex: 0 0 auto;
  background: var(--aats-colour);
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,.1);
}

.aats-summary-dot { width: 10px; height: 10px; }
.aats-colour-chip { width: 16px; height: 16px; }
.aats-hex-preview { width: 34px; height: 34px; }

.aats-summary-separator { color: #aaa4a0; }

.aats-disclaimer,
.aats-action-note,
.aats-wheel-help {
  color: var(--aats-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.aats-disclaimer { margin: 13px 2px 0; }

.aats-controls-panel {
  overflow: hidden;
}

.aats-control-section {
  padding: 30px;
  border-bottom: 1px solid var(--aats-line);
}

.aats-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 20px;
}

.aats-section-head .aats-kicker {
  margin-bottom: 6px;
}

.aats-section-head p {
  margin: 5px 0 0;
  color: var(--aats-muted);
  font-size: 14px;
  line-height: 1.55;
}

.aats-current-value,
.aats-colour-value {
  flex: 0 0 auto;
  padding-top: 20px;
  font-size: 14px;
}

.aats-colour-value {
  display: flex;
  align-items: center;
  gap: 8px;
}

.aats-style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.aats-option-card,
.aats-preset,
.aats-reset,
.aats-copy,
.aats-whatsapp {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  text-decoration: none;
}

.aats-whatsapp:visited {
  color: #fff;
}

.aats-option-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 98px;
  padding: 16px;
  border: 1px solid #ded9d5;
  border-radius: 17px;
  background: #fff;
  color: var(--aats-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}

.aats-option-card:hover,
.aats-preset:hover {
  border-color: #c9c3be;
}

.aats-option-card:focus-visible,
.aats-preset:focus-visible,
.aats-reset:focus-visible,
.aats-copy:focus-visible,
.aats-hex-input:focus-visible {
  outline: 3px solid rgba(198,0,0,.18);
  outline-offset: 2px;
}

.aats-option-card.is-selected {
  border: 2px solid var(--aats-red);
  padding: 15px;
  background: rgba(198, 0, 0, .015);
}

.aats-style-demo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 1px solid #dad5d0;
  border-radius: 13px;
  background: var(--aats-colour);
}

.aats-style-demo-gradient {
  background: linear-gradient(to bottom, var(--aats-colour) 0%, color-mix(in srgb, var(--aats-colour) 46%, white) 72%, rgba(255,255,255,.86) 100%);
}

.aats-option-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.aats-option-copy strong {
  font-size: 15px;
  line-height: 1.25;
}

.aats-option-copy small {
  color: var(--aats-muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.aats-check {
  display: none;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--aats-red);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.is-selected > .aats-check {
  display: inline-flex;
}

.aats-colour-picker-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(210px, 1fr);
  gap: 30px;
  align-items: center;
  max-width: 720px;
  margin: 4px auto 26px;
}

.aats-wheel-wrap {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.aats-hue-wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    from 90deg,
    #ff0000 0deg,
    #ffff00 60deg,
    #00ff00 120deg,
    #00ffff 180deg,
    #0000ff 240deg,
    #ff00ff 300deg,
    #ff0000 360deg
  );
  cursor: crosshair;
  touch-action: none;
  box-shadow:
    0 14px 34px rgba(35, 30, 26, .11),
    0 0 0 1px rgba(45, 40, 36, .08);
  outline: none;
}

.aats-hue-wheel:focus-visible {
  box-shadow:
    0 14px 34px rgba(35, 30, 26, .11),
    0 0 0 4px rgba(198, 0, 0, .16);
}

.aats-wheel-inner {
  position: absolute;
  inset: 11.4%;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(45, 40, 36, .08),
    inset 0 5px 18px rgba(40, 35, 30, .045);
  pointer-events: none;
}

.aats-shade-square {
  --aats-hue-colour: hsl(135 100% 50%);
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 54.6%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.96);
  border-radius: 17px;
  background:
    linear-gradient(to top, #000 0%, rgba(0,0,0,0) 100%),
    linear-gradient(to right, #fff 0%, rgba(255,255,255,0) 100%),
    var(--aats-hue-colour);
  cursor: crosshair;
  touch-action: none;
  box-shadow:
    0 0 0 1px rgba(36,32,29,.18),
    0 7px 20px rgba(35,30,26,.10);
}

.aats-hue-pointer,
.aats-shade-pointer {
  position: absolute;
  z-index: 5;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,.48), 0 2px 8px rgba(0,0,0,.28);
  pointer-events: none;
}

.aats-hue-pointer {
  left: 94%;
  top: 50%;
}

.aats-shade-pointer {
  left: 50%;
  top: 50%;
}

.aats-colour-side {
  padding: 18px;
  border: 1px solid var(--aats-line);
  border-radius: 17px;
  background: var(--aats-soft);
}

.aats-hex-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.aats-hex-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.aats-hex-input {
  min-width: 0;
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border: 1px solid #d7d1cc;
  border-radius: 10px;
  background: #fff;
  color: var(--aats-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.aats-wheel-help {
  margin: 10px 0 0;
}

.aats-preset-heading {
  margin: 2px 0 12px;
  color: var(--aats-ink);
  font-size: 15px;
  font-weight: 800;
}

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

.aats-preset {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 9px 12px;
  border: 1px solid #ddd7d2;
  border-radius: 13px;
  background: #fff;
  color: var(--aats-ink);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.aats-preset.is-selected {
  border-color: var(--aats-red);
  box-shadow: inset 0 0 0 1px var(--aats-red);
}

.aats-preset-swatch {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--aats-swatch);
  box-shadow: 0 0 0 1px #c9c3bd;
}

.aats-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  padding: 30px 30px 10px;
  background: linear-gradient(180deg, rgba(250,248,246,.35), #fff 55%);
}

.aats-copy,
.aats-whatsapp {
  min-width: 0;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 15px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.aats-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--aats-red);
  background: var(--aats-red);
  color: #fff;
  box-shadow: 0 10px 26px rgba(198,0,0,.16);
}

.aats-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  font-size: 16px;
  line-height: 1;
}

.aats-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #167a52;
  background: #167a52;
  color: #fff;
  box-shadow: 0 10px 26px rgba(22,122,82,.15);
}

.aats-action-arrow {
  font-size: 20px;
  line-height: 1;
  transition: transform .18s ease;
}

.aats-copy:hover,
.aats-whatsapp:hover {
  transform: translateY(-1px);
}

.aats-copy:hover {
  background: #AD0000;
  border-color: #AD0000;
  box-shadow: 0 12px 30px rgba(198,0,0,.20);
}

.aats-whatsapp:hover {
  background: #116a47;
  border-color: #116a47;
  box-shadow: 0 12px 30px rgba(22,122,82,.19);
}

.aats-whatsapp:hover .aats-action-arrow {
  transform: translateX(3px);
}

.aats-reset-row {
  display: flex;
  justify-content: flex-start;
  padding: 0 30px 10px;
}

.aats-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #6f6b67;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.aats-reset:hover {
  color: var(--aats-red);
}

.aats-action-note {
  margin: 0;
  padding: 0 30px 25px;
  color: #706D69;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}

@media (max-width: 1180px) {
  .aats-layout {
    grid-template-columns: minmax(330px, .8fr) minmax(0, 1.2fr);
    gap: 24px;
  }
  .aats-lens-stage { min-height: 440px; }
}

@media (max-width: 900px) {
  .aats-shell {
    width: min(100% - 28px, 760px);
    padding-top: 28px;
  }
  .aats-layout { grid-template-columns: 1fr; }
  .aats-preview-panel { position: static; }
  .aats-lens-stage { min-height: 430px; }
  .aats-demo-lens { width: min(72%, 360px); }
}

@media (max-width: 680px) {
  .aats-shell {
    width: min(100% - 16px, 620px);
    padding: 18px 0 34px;
  }

  .aats-header { margin-bottom: 18px; }
  .aats-brand-heading { margin-bottom: 8px; font-size: 19px; }
  .aats-title { font-size: clamp(30px, 9vw, 38px); line-height: 1.02; }
  .aats-subtitle { margin-top: 9px; font-size: 14px; line-height: 1.5; }
  .aats-layout { gap: 16px; }

  .aats-preview-card,
  .aats-controls-panel {
    border-radius: 18px;
    box-shadow: none;
  }

  .aats-preview-card,
  .aats-control-section { padding: 16px; }

  .aats-preview-heading-row { margin: 6px 0 10px; }
  .aats-preview-heading-row h2,
  .aats-section-head h2 { font-size: 19px; }
  .aats-preview-heading-row span { font-size: 11px; }

  .aats-lens-stage {
    min-height: 278px;
    border-radius: 16px;
  }

  .aats-demo-lens {
    width: min(74vw, 238px);
    box-shadow:
      inset 9px 8px 18px rgba(255,255,255,.5),
      inset -8px -7px 16px rgba(80,80,80,.09),
      0 10px 18px rgba(54,50,46,.12);
  }

  .aats-lens-shadow { bottom: 8%; height: 22px; filter: none; opacity: .72; }
  .aats-lens-highlight { filter: blur(4px); }

  .aats-selection-summary {
    min-height: 42px;
    margin-top: 11px;
    padding: 9px 11px;
    gap: 5px;
    font-size: 11.5px;
  }

  .aats-disclaimer { margin-top: 10px; font-size: 11px; }

  .aats-section-head { gap: 10px; margin-bottom: 15px; }
  .aats-section-head p { margin-top: 4px; font-size: 13px; line-height: 1.45; }
  .aats-current-value,
  .aats-colour-value { padding-top: 17px; font-size: 12px; }

  /* Compact two-choice finish selector. */
  .aats-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .aats-option-card {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 78px;
    padding: 11px;
    border-radius: 14px;
  }

  .aats-option-card.is-selected { padding: 10px; }
  .aats-style-demo { width: 42px; height: 42px; flex-basis: 42px; border-radius: 10px; }
  .aats-option-copy { gap: 2px; }
  .aats-option-copy strong { font-size: 13px; }
  .aats-option-copy small { font-size: 10.5px; line-height: 1.25; }
  .aats-check { position: absolute; top: 7px; right: 7px; width: 21px; height: 21px; font-size: 12px; }

  .aats-colour-picker-wrap {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 350px;
    margin-bottom: 18px;
  }

  .aats-wheel-wrap { width: min(76vw, 286px); }
  .aats-colour-side { padding: 13px; border-radius: 14px; }
  .aats-hex-row { gap: 9px; }
  .aats-hex-preview { width: 30px; height: 30px; }
  .aats-hex-input { height: 40px; }
  .aats-wheel-help { font-size: 11.5px; line-height: 1.45; }

  .aats-preset-heading { margin: 4px 0 10px; font-size: 14px; }

  /* Nine presets become a compact 3 x 3 palette instead of a long list. */
  .aats-preset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .aats-preset {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 84px;
    padding: 9px 5px;
    border-radius: 13px;
    font-size: 10.5px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .aats-preset-swatch { width: 32px; height: 32px; flex-basis: 32px; }

  .aats-actions {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 16px 16px 8px;
  }

  .aats-copy,
  .aats-whatsapp {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 0 14px;
    border-radius: 14px;
    white-space: normal;
    text-align: center;
  }

  .aats-reset-row { justify-content: center; padding: 0 16px 7px; }
  .aats-action-note { padding: 0 16px 18px; font-size: 11.5px; line-height: 1.45; text-align: center; }
}

@media (max-width: 430px) {
  .aats-preview-heading-row { align-items: flex-start; }
  .aats-section-head { flex-direction: column; }
  .aats-current-value,
  .aats-colour-value { padding-top: 0; }
  .aats-colour-value strong { display: inline; }
  .aats-wheel-wrap { width: min(78vw, 270px); }
}

@media (max-width: 360px) {
  .aats-preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aats-style-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .aats-studio * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
