@charset "UTF-8";
:root {
  --ink: #233d39;
  --muted: #6a7e78;
  --purple: #7561b7;
  --purple-dark: #5e4b9b;
  --mint: #eaf5f3;
  --line: #d9e5df;
  --yellow: #ffda7e;
  --white: #fff;
  --font: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--mint);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
button,
a {
  touch-action: manipulation;
}
svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
button svg {
  pointer-events: none;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
label:has(input:focus-visible),
.dropzone:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 5px;
}
input:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}
.site-header {
  max-width: 1280px;
  padding: 23px 40px 21px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: 1px;
}
.brand-bottom {
  display: block;
  font-size: 14px;
  letter-spacing: 5px;
  margin-top: 3px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 44px;
  position: relative;
  background: var(--purple);
  color: #fff;
  border-radius: 14px;
  transform: rotate(-6deg);
}
.brand-mark svg {
  width: 29px;
  height: 29px;
  stroke-width: 1.7;
}
.brand-spark {
  position: absolute;
  right: -8px;
  top: -8px;
  color: #b0872e;
  font-size: 21px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-left: auto;
  margin-right: 36px;
  font-size: 15px;
}
.nav-current {
  font-weight: 700;
  position: relative;
}
.nav-current:after {
  content: "";
  position: absolute;
  bottom: -13px;
  height: 3px;
  left: 5px;
  right: 5px;
  background: var(--purple);
  border-radius: 3px;
}
.text-button {
  padding: 5px 0;
  background: none;
  border: 0;
  font-size: 15px;
  color: var(--muted);
}
.text-button:hover {
  color: var(--purple-dark);
}
.local-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cbded5;
  background: #f5fbf8;
  border-radius: 30px;
  font-size: 14px;
  padding: 9px 15px;
}
.local-badge svg {
  width: 17px;
  height: 17px;
  color: #5f8876;
}
.connection-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cba650;
  margin-left: 4px;
}
.connection-dot.ready {
  background: #4e927a;
}
main {
  max-width: 1200px;
  margin: auto;
  padding: 0 40px;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 268px;
  padding: 27px 3px 17px;
  gap: 20px;
}
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow span {
  width: 17px;
  height: 2px;
  background: #88aaa1;
}
.intro h1 {
  font-size: clamp(32px, 3.4vw, 45px);
  line-height: 1.4;
  letter-spacing: 1.5px;
  margin: 0 0 15px;
  font-weight: 800;
}
.title-accent {
  position: relative;
  color: var(--purple-dark);
  display: inline-block;
}
.title-accent svg {
  position: absolute;
  left: -2%;
  bottom: -6px;
  width: 104%;
  height: 15px;
  stroke: #c6a656;
  stroke-width: 3;
}
.intro-description {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
}
.mobile-break {
  display: none;
}
.intro-art {
  position: relative;
  width: 360px;
  align-self: center;
  margin-right: 15px;
}
.intro-art img {
  width: 100%;
  display: block;
}
.art-sticker {
  position: absolute;
  bottom: 0;
  right: 65px;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 5px;
  padding: 3px 12px;
  transform: rotate(-3deg);
  box-shadow: 0 2px 0 #cdb67940;
}
.steps {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin: 2px 0 25px;
  padding: 17px 30px;
  background: #f7fbf9;
  border: 1px solid #dbe7e1;
  border-radius: 16px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
  color: #7f908a;
}
.step-number {
  display: grid;
  place-items: center;
  background: #e8eeea;
  border: 1px solid #d8e1db;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 700;
  width: 33px;
  height: 33px;
  flex-shrink: 0;
}
.steps li.active .step-number {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
  box-shadow: 0 0 0 5px #ebe7f4;
}
.steps li.active strong {
  color: var(--ink);
}
.steps li.done .step-number {
  background: #d8eade;
  color: #47735e;
  border-color: #bbd7c6;
}
.steps strong {
  display: block;
  font-size: 15px;
}
.steps li div > span {
  display: block;
  font-size: 12px;
  margin-top: 1px;
}
.step-line {
  width: 70px;
  max-width: 6vw;
  border-top: 1px dashed #c5d8cf;
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
}
.workbench,
.result-panel {
  background: white;
  border: 1px solid #d9e4de;
  border-radius: 23px;
  box-shadow: 0 5px 0 #d5e5de50;
}
.workbench {
  padding: 25px 26px 20px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 21px;
}
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: 0.5px;
}
.section-heading h2 svg {
  width: 21px;
  height: 21px;
  color: var(--purple);
}
.result-tag {
  font-size: 12px;
  color: #73678d;
  background: #f0edf7;
  border-radius: 5px;
  padding: 3px 9px;
  white-space: nowrap;
}
.uploads {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  position: relative;
}
.upload-card {
  min-width: 0;
  position: relative;
  background: #f9f8fd;
  border: 1px solid #e7e3f2;
  border-radius: 16px;
  padding: 13px 12px 10px;
}
.face-card {
  background: #f5faf7;
  border-color: #daebe0;
}
.card-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}
.card-label h3 {
  font-size: 15px;
  margin: 0;
  white-space: nowrap;
}
.mini-number {
  display: grid;
  place-items: center;
  border-radius: 7px;
  width: 23px;
  height: 23px;
  background: #e7e1f7;
  font-size: 13px;
  color: #6e5b9e;
  font-weight: 700;
  flex-shrink: 0;
}
.face-card .mini-number {
  background: #dceee2;
  color: #578268;
}
.chip {
  font-size: 11px;
  color: #8a819e;
  margin-left: auto;
  white-space: nowrap;
}
.face-card .chip {
  color: #6f917d;
}
.dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 241px;
  border: 1.5px dashed #c9c0df;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.face-card .dropzone {
  border-color: #bad6c4;
}
.dropzone:hover,
.dropzone.dragover {
  background: #f1eefb;
  border-color: var(--purple);
}
.face-card .dropzone:hover,
.face-card .dropzone.dragover {
  background: #ebf6ef;
  border-color: #73a385;
}
.dropzone.busy {
  pointer-events: none;
  opacity: 0.65;
}
.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.upload-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  padding: 16px 5px;
}
.upload-illustration svg {
  width: 82px;
  height: 72px;
  stroke: none;
}
.upload-empty strong {
  font-size: 16px;
  font-weight: 650;
}
.upload-empty > span:not(.upload-illustration):not(.choose-file) {
  color: var(--muted);
  font-size: 13px;
}
.choose-file {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 5px;
  padding: 7px 17px;
  border: 1px solid #d7d0e6;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #695795;
  box-shadow: 0 2px 0 #e8e2f1;
  background: #fff;
}
.face-card .choose-file {
  color: #557e65;
  border-color: #c7ddce;
  box-shadow: 0 2px 0 #e1eee5;
}
.choose-file svg {
  width: 16px;
  height: 16px;
}
.file-caption {
  font-size: 12px;
  color: #7b8580;
  line-height: 1.5;
  margin: 9px 0 0;
  text-align: center;
  min-height: 18px;
}
.plus-sign {
  position: absolute;
  left: 50%;
  top: 135px;
  transform: translateX(-50%);
  font-size: 23px;
  border: 1px solid #d9e2db;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 50%;
  z-index: 2;
  color: #87978f;
  line-height: 1;
}
.photo-preview {
  width: 100%;
  height: 241px;
  object-fit: contain;
  background: #edf1ed;
}
.replace-label {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #ffffffed;
  border: 1px solid #d8dfd8;
  box-shadow: 0 2px 6px #203d3920;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 13px;
}
.remove-photo {
  display: block;
  background: none;
  border: 0;
  text-decoration: underline;
  font-size: 12px;
  color: #8c6572;
  margin: 5px auto 0;
}
.format-tip {
  font-size: 12px;
  color: #8b958f;
  text-align: center;
  margin: 13px 0 21px;
}
.section-heading > span:not(.result-tag) {
  font-size: 12px;
  color: #8a9790;
}
.style-picker {
  margin: 0;
  padding: 0;
  border: 0;
}
.style-picker legend {
  font-size: 15px;
  font-weight: 650;
  width: 100%;
  margin-bottom: 11px;
}
.style-picker legend span {
  float: right;
  font-size: 12px;
  font-weight: 400;
  color: #8b958f;
}
.style-options {
  display: flex;
  gap: 12px;
}
.style-option {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid #e1e7e2;
  border-radius: 12px;
  cursor: pointer;
  min-width: 0;
}
.style-option:has(input:checked) {
  border-color: #a394cb;
  background: #f7f5fc;
}
.style-option > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.style-option strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
}
.style-option small {
  display: block;
  font-size: 11px;
  color: #8c938c;
  margin-top: 1px;
}
.style-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
}
.natural-icon {
  background: #e9e4f4;
  color: #7a69a5;
}
.illustration-icon {
  background: #fff0c9;
  color: #b69146;
}
.style-icon svg {
  width: 21px;
  height: 21px;
}
.radio-check {
  margin-left: auto;
  width: 17px;
  height: 17px;
  border: 1px solid #d3dcd4;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: transparent;
}
.radio-check svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
}
.style-option:has(input:checked) .radio-check {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  color: #74867b;
  margin: 21px 0 15px;
  cursor: pointer;
}
.consent input {
  accent-color: var(--purple);
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex-shrink: 0;
}
.generate-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  background: var(--purple);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 650;
  box-shadow: 0 4px 0 var(--purple-dark);
  transition:
    background 0.2s,
    transform 0.2s;
}
.generate-button:not(:disabled):hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
}
.generate-button:disabled {
  background: #b5a8d0;
  box-shadow: 0 4px 0 #a596c0;
  color: #fff;
}
.generate-button svg {
  width: 23px;
  height: 23px;
}
.button-spark {
  position: absolute;
  margin-left: 235px;
  font-size: 21px;
  color: #e3d8fd;
}
.action-hint {
  font-size: 12px;
  text-align: center;
  color: #8a968e;
  margin: 13px 0 0;
  min-height: 19px;
}
.error-message {
  padding: 11px 13px;
  background: #fff1ec;
  color: #9a483d;
  border: 1px solid #f3d3c7;
  font-size: 14px;
  border-radius: 9px;
  margin: 0 0 15px;
}
.result-panel {
  padding: 25px 22px 20px;
  background: #fefefd;
  min-height: 652px;
  display: flex;
  flex-direction: column;
}
.result-panel .section-heading {
  margin-bottom: 0;
}
.result-empty {
  position: relative;
  text-align: center;
  flex: 1;
  padding: 44px 0 28px;
}
.empty-photo {
  background: white;
  border: 1px solid #d6ddd4;
  padding: 12px 12px 8px;
  width: 199px;
  margin: 0 auto 27px;
  box-shadow: 4px 7px 0 #e3e8df;
  transform: rotate(7deg);
  position: relative;
}
.empty-inner {
  height: 184px;
  background: #f0f2e9;
  border: 1px solid #e4e7dd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #9ba58e;
}
.empty-inner svg {
  width: 52px;
  height: 52px;
  stroke-width: 1.2;
}
.empty-inner span {
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1.8;
}
.polaroid-caption {
  font-size: 10px;
  letter-spacing: 2px;
  color: #a1a793;
  display: block;
  margin-top: 10px;
  font-family: var(--font);
}
.photo-tape {
  position: absolute;
  top: -13px;
  left: 62px;
  width: 72px;
  height: 25px;
  background: #e1d6b994;
  transform: rotate(-9deg);
  clip-path: polygon(0 8%, 100% 0, 96% 100%, 3% 92%);
}
.result-empty h3,
.result-loading h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 650;
}
.result-empty p {
  margin: 0;
  font-size: 13px;
  color: #8b958a;
  line-height: 1.9;
}
.result-doodle {
  position: absolute;
  top: 60px;
  left: 3px;
  color: #d1bd75;
  font-size: 32px;
  transform: rotate(10deg);
}
.result-doodle.second {
  left: auto;
  right: -4px;
  top: 253px;
  font-size: 40px;
  color: #b7aad0;
}
.kind-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-top: 1px dashed #dbe1d4;
  padding-top: 18px;
  margin-top: auto;
}
.kind-note svg {
  width: 19px;
  height: 19px;
  margin-top: 3px;
  color: #7e9a7b;
}
.kind-note p {
  margin: 0;
}
.kind-note strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
  color: #708367;
  margin-bottom: 5px;
}
.kind-note p span {
  font-size: 11px;
  color: #94a08b;
  display: block;
  line-height: 1.8;
}
.result-loading {
  text-align: center;
  padding: 55px 0 35px;
  flex: 1;
}
.developing-camera {
  position: relative;
  background: #eee8fa;
  color: var(--purple);
  border-radius: 24px;
  width: 100px;
  height: 85px;
  display: grid;
  place-items: center;
  margin: 15px auto 30px;
  animation: bob 2s ease-in-out infinite;
}
.developing-camera svg {
  width: 50px;
  height: 50px;
}
.developing-camera span {
  position: absolute;
  right: -10px;
  top: -20px;
  font-size: 35px;
  color: #bd9d4b;
}
.result-loading > p {
  font-size: 13px;
  color: var(--muted);
}
.indeterminate {
  overflow: hidden;
  height: 5px;
  background: #ece8f5;
  border-radius: 6px;
  max-width: 230px;
  margin: 24px auto;
}
.indeterminate span {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: 6px;
  background: var(--purple);
  animation: progress 1.8s ease-in-out infinite;
}
.result-loading p.wait-note {
  font-size: 12px;
  line-height: 1.9;
  color: #8b958f;
}
.result-ready {
  padding: 22px 0 25px;
}
.result-image-wrap {
  position: relative;
  background: #f1f4ef;
  border: 1px solid #e3e7e0;
  border-radius: 13px;
  overflow: hidden;
  min-height: 170px;
}
.result-image-wrap img {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  display: block;
}
.result-image-wrap > span {
  position: absolute;
  bottom: 9px;
  right: 9px;
  padding: 3px 9px;
  border-radius: 6px;
  background: #ffffffde;
  color: #5d6e62;
  font-size: 11px;
}
.compare-switch {
  display: flex;
  background: #f0f2ed;
  padding: 4px;
  border-radius: 10px;
  margin: 16px auto 0;
  max-width: 240px;
}
.compare-switch button {
  flex: 1;
  border: 0;
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 13px;
  color: #7b887d;
  background: none;
}
.compare-switch button.selected {
  background: white;
  box-shadow: 0 1px 4px #0000000f;
  color: var(--purple-dark);
  font-weight: 600;
}
.result-note {
  text-align: center;
  font-size: 12px;
  color: #859080;
  line-height: 1.8;
  margin: 16px 0;
}
.download-button {
  border: 1px solid #ad9ccd;
  background: #f4f0fb;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 11px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #715b9b;
}
.download-button:hover {
  background: #e9e0f8;
}
.download-button svg {
  width: 19px;
  height: 19px;
}
.photo-tips {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 24px 0 0;
  padding: 21px 18px 21px 21px;
  background: #e1eee7;
  border-radius: 15px;
  border: 1px solid #d7e6dc;
}
.tip-label {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
  color: #68816e;
}
.tip-label svg {
  width: 19px;
  height: 19px;
}
.photo-tips p {
  margin: 0;
  font-size: 11px;
  line-height: 1.8;
  color: #879788;
}
.photo-tips strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #5f7b67;
}
footer {
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 0 40px 29px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: #99a79d;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #788d7f;
  font-size: 12px;
}
.footer-brand svg {
  width: 17px;
  height: 17px;
}
footer .text-button {
  margin-left: auto;
  font-size: 12px;
  color: #819687;
}
dialog {
  max-width: 540px;
  width: calc(100% - 32px);
  border: 1px solid #d8e4db;
  border-radius: 22px;
  padding: 28px;
  color: var(--ink);
  background: white;
  box-shadow: 0 24px 100px #233d3926;
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #193c3560;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.dialog-heading h2 {
  font-size: 22px;
  line-height: 1.5;
  margin: 0;
}
.close-dialog:not(.dialog-primary) {
  padding: 7px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f4ef;
}
.close-dialog svg {
  width: 19px;
  height: 19px;
}
dialog p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}
.help-list {
  list-style: none;
  counter-reset: help;
  padding: 0;
  margin: 0;
}
.help-list li {
  counter-increment: help;
  position: relative;
  padding: 0 0 12px 40px;
}
.help-list li:before {
  content: counter(help);
  position: absolute;
  left: 0;
  top: 0;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: #ede6f9;
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 650;
}
.help-list strong {
  font-size: 16px;
}
.help-list p {
  margin: 7px 0 10px;
  font-size: 14px;
}
.dialog-note {
  font-size: 13px;
  padding: 14px;
  background: #f4f6ef;
  border-radius: 12px;
  line-height: 1.8;
  color: #7b8d72;
}
.dialog-primary {
  display: block;
  width: 100%;
  padding: 12px 15px;
  border: 0;
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  margin-top: 22px;
  font-size: 16px;
}
.dialog-primary:hover {
  background: var(--purple-dark);
}
dialog code {
  font-size: 13px;
  background: #f1f3ee;
  border-radius: 4px;
  padding: 2px 4px;
}
dialog pre {
  font-size: 12px;
  padding: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f1eef8;
  border-radius: 10px;
  color: #6e5b91;
  line-height: 2;
}
.settings-detail {
  font-size: 13px;
}
.config-status {
  border: 1px solid #e8ddaf;
  background: #fff9e8;
  padding: 11px 13px;
  border-radius: 10px;
  color: #957d39;
  font-size: 14px;
}
.config-status.ready {
  background: #edf7ee;
  border-color: #cee4d1;
  color: #587f5e;
}
.privacy-step {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}
.privacy-step > svg {
  margin-top: 5px;
  color: var(--purple);
}
.privacy-step p {
  margin: 0;
  font-size: 14px;
}
.privacy-step strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 4px;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 22px;
  border-radius: 12px;
  box-shadow: 0 8px 30px #203c3920;
  background: #304b40;
  color: white;
  font-size: 14px;
  z-index: 20;
  width: max-content;
  max-width: 90vw;
  text-align: center;
}
@keyframes bob {
  50% {
    transform: translateY(-7px) rotate(3deg);
  }
}
@keyframes progress {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(390%);
  }
}
@media (min-width: 1400px) {
  main,
  .site-header,
  footer {
    max-width: 1280px;
  }
  .intro {
    min-height: 280px;
  }
  .dropzone,
  .photo-preview {
    height: 260px;
  }
  .result-panel {
    min-height: 670px;
  }
  .result-empty {
    padding-top: 50px;
  }
}
@media (max-width: 1050px) {
  .site-header {
    padding-inline: 26px;
  }
  main,
  footer {
    padding-inline: 26px;
  }
  .studio-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(285px, 1fr);
    gap: 18px;
  }
  .workbench {
    padding: 23px 18px 20px;
  }
  .result-panel {
    padding: 24px 18px 20px;
  }
  .card-label {
    gap: 5px;
  }
  .card-label h3 {
    font-size: 14px;
  }
  .chip {
    display: none;
  }
  .style-option {
    padding: 10px;
    gap: 7px;
  }
  .style-icon {
    width: 30px;
    height: 32px;
  }
  .style-option small {
    font-size: 10px;
  }
  .style-option strong {
    font-size: 13px;
  }
  .intro-art {
    width: 310px;
    margin-right: 0;
  }
  .intro h1 {
    font-size: 36px;
  }
  .intro-description {
    font-size: 14px;
  }
  .photo-tips {
    gap: 20px;
  }
  .tip-label {
    font-size: 12px;
  }
}
@media (max-width: 850px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .result-panel {
    min-height: 0;
    display: block;
  }
  .result-panel .result-empty {
    padding: 25px 0 30px;
  }
  .empty-photo {
    width: 160px;
    margin-bottom: 20px;
  }
  .empty-inner {
    height: 125px;
  }
  .empty-inner svg {
    width: 38px;
    height: 38px;
  }
  .empty-inner span {
    font-size: 12px;
  }
  .result-doodle {
    left: 22%;
    top: 40px;
  }
  .result-doodle.second {
    right: 21%;
    top: 160px;
  }
  .kind-note {
    justify-content: center;
  }
  .kind-note p span br {
    display: none;
  }
  .kind-note p span {
    font-size: 12px;
  }
  .kind-note strong {
    font-size: 13px;
  }
  .result-ready {
    max-width: 500px;
    margin: auto;
  }
  .result-image-wrap img {
    max-height: 450px;
  }
  .intro-art {
    width: 270px;
  }
  .intro h1 {
    font-size: 32px;
  }
  .intro {
    min-height: 240px;
  }
  .steps {
    gap: 13px;
    padding: 17px 19px;
  }
  .steps li {
    min-width: 0;
    flex: 1;
    gap: 9px;
  }
  .step-line {
    width: 20px;
  }
  .steps li div > span {
    font-size: 11px;
  }
  .steps strong {
    font-size: 14px;
  }
  .site-header nav {
    margin-right: 0;
    gap: 25px;
  }
  .brand {
    font-size: 17px;
  }
  .photo-tips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    padding: 18px 20px;
  }
  .tip-label {
    grid-column: 1/-1;
  }
  .photo-tips p {
    font-size: 12px;
  }
  .photo-tips strong {
    font-size: 13px;
  }
  .upload-empty {
    padding: 20px 5px;
  }
  .dropzone,
  .photo-preview {
    height: 245px;
  }
  .chip {
    display: block;
    font-size: 12px;
  }
  .card-label h3 {
    font-size: 16px;
  }
  .style-option strong {
    font-size: 15px;
  }
  .style-option small {
    font-size: 12px;
  }
  .consent,
  .format-tip,
  .action-hint {
    font-size: 13px;
  }
  .section-heading > span:not(.result-tag) {
    font-size: 13px;
  }
  .style-picker legend span {
    font-size: 13px;
  }
  .file-caption {
    font-size: 13px;
  }
}
@media (max-width: 600px) {
  .site-header {
    padding: 18px 18px 16px;
    gap: 10px;
  }
  .brand {
    gap: 9px;
    font-size: 16px;
  }
  .brand-bottom {
    font-size: 11px;
    letter-spacing: 4px;
  }
  .brand-mark {
    width: 40px;
    height: 39px;
    border-radius: 12px;
  }
  .brand-mark svg {
    width: 25px;
    height: 25px;
  }
  .site-header nav {
    gap: 0;
    margin: 0 0 0 auto;
  }
  .nav-current {
    display: none;
  }
  .text-button {
    font-size: 13px;
  }
  .local-badge {
    padding: 7px 10px;
    font-size: 0;
    gap: 0;
  }
  .local-badge svg {
    width: 18px;
    height: 18px;
  }
  .connection-dot {
    margin-left: 6px;
    width: 6px;
    height: 6px;
  }
  main {
    padding: 0 16px;
  }
  .intro {
    min-height: 0;
    padding: 29px 3px 25px;
    display: block;
    position: relative;
  }
  .intro-copy {
    position: relative;
    z-index: 1;
  }
  .eyebrow {
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }
  .intro h1 {
    font-size: 31px;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
  }
  .intro-description {
    font-size: 13px;
    line-height: 1.9;
    max-width: 245px;
  }
  .mobile-break {
    display: block;
  }
  .intro-art {
    position: absolute;
    right: -5px;
    bottom: 16px;
    width: 140px;
    opacity: 0.95;
  }
  .art-sticker {
    display: none;
  }
  .steps {
    padding: 15px 12px;
    margin-bottom: 18px;
    gap: 8px;
    border-radius: 13px;
  }
  .steps li {
    gap: 7px;
    align-items: center;
  }
  .step-number {
    width: 25px;
    height: 25px;
    font-size: 13px;
  }
  .steps strong {
    font-size: 12px;
    white-space: nowrap;
  }
  .steps li div > span {
    display: none;
  }
  .step-line {
    width: 12px;
    flex-shrink: 0;
  }
  .steps li.active .step-number {
    box-shadow: 0 0 0 3px #ebe7f4;
  }
  .workbench {
    padding: 21px 15px 19px;
    border-radius: 19px;
  }
  .section-heading {
    margin-bottom: 17px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading > span:not(.result-tag) {
    font-size: 11px;
  }
  .uploads {
    gap: 13px;
  }
  .upload-card {
    padding: 10px 8px 9px;
    border-radius: 13px;
  }
  .card-label {
    gap: 5px;
    margin-bottom: 9px;
  }
  .mini-number {
    width: 20px;
    height: 20px;
    font-size: 11px;
    border-radius: 6px;
  }
  .card-label h3 {
    font-size: 13px;
  }
  .chip {
    display: none;
  }
  .dropzone,
  .photo-preview {
    height: 215px;
    min-height: 215px;
  }
  .upload-illustration svg {
    width: 65px;
    height: 65px;
  }
  .upload-empty {
    gap: 7px;
    padding: 15px 3px;
  }
  .upload-empty strong {
    font-size: 13px;
  }
  .upload-empty > span:not(.upload-illustration):not(.choose-file) {
    font-size: 10px;
    white-space: nowrap;
  }
  .choose-file {
    font-size: 12px;
    padding: 7px 10px;
    gap: 5px;
  }
  .choose-file svg {
    width: 14px;
    height: 14px;
  }
  .plus-sign {
    width: 26px;
    height: 26px;
    font-size: 20px;
    top: 126px;
  }
  .file-caption {
    font-size: 10px;
    line-height: 1.6;
    min-height: 32px;
  }
  .format-tip {
    font-size: 10px;
    margin: 13px 0 22px;
  }
  .style-picker legend {
    font-size: 14px;
  }
  .style-picker legend span {
    font-size: 10px;
    margin-top: 2px;
  }
  .style-options {
    gap: 9px;
  }
  .style-option {
    padding: 11px 8px;
    gap: 7px;
  }
  .style-icon {
    width: 27px;
    height: 31px;
    border-radius: 7px;
  }
  .style-icon svg {
    width: 18px;
    height: 18px;
  }
  .style-option strong {
    font-size: 12px;
  }
  .style-option small {
    font-size: 9px;
    white-space: nowrap;
  }
  .radio-check {
    width: 14px;
    height: 14px;
  }
  .radio-check svg {
    width: 10px;
    height: 10px;
  }
  .consent {
    font-size: 11px;
    margin: 19px 0 17px;
  }
  .consent input {
    margin-top: 0;
  }
  .action-hint {
    font-size: 10px;
    line-height: 1.7;
    margin-top: 13px;
  }
  .generate-button {
    font-size: 17px;
    min-height: 52px;
  }
  .button-spark {
    margin-left: 220px;
  }
  .result-panel {
    border-radius: 19px;
    padding: 22px 20px 20px;
  }
  .result-empty {
    padding-top: 30px !important;
  }
  .result-doodle {
    left: 12%;
  }
  .result-doodle.second {
    right: 12%;
  }
  .result-tag {
    font-size: 11px;
  }
  .photo-tips {
    grid-template-columns: 1fr;
    padding: 18px 20px;
    gap: 12px;
  }
  .photo-tips p {
    font-size: 12px;
  }
  .photo-tips strong {
    display: inline;
    font-size: 12px;
    margin-right: 10px;
  }
  .tip-label {
    font-size: 13px;
  }
  footer {
    padding: 0 18px 24px;
    flex-wrap: wrap;
    gap: 8px 13px;
    margin-top: 24px;
  }
  footer > span:nth-child(2) {
    display: none;
  }
  .footer-brand {
    font-size: 11px;
  }
  footer .text-button {
    font-size: 11px;
  }
  .kind-note strong {
    font-size: 12px;
  }
  .kind-note p span {
    font-size: 11px;
  }
  .toast {
    font-size: 13px;
    padding: 11px 16px;
  }
  dialog {
    padding: 23px;
  }
  .dialog-heading h2 {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Readable controls for young readers, including small screens. */
.steps {
  justify-content: space-around;
}
.steps li div > span {
  font-size: 14px;
}
.steps strong {
  font-size: 16px;
}
.step-number {
  width: 36px;
  height: 36px;
}
.section-heading > span:not(.result-tag) {
  font-size: 14px;
}
.card-label h3 {
  font-size: 16px;
}
.chip {
  font-size: 12px;
}
.upload-empty > span:not(.upload-illustration):not(.choose-file) {
  font-size: 14px;
}
.file-caption {
  font-size: 13px;
}
.choose-file {
  font-size: 15px;
}
.format-tip {
  font-size: 13px;
}
.style-picker legend {
  font-size: 16px;
}
.style-picker legend span {
  font-size: 13px;
}
.style-option strong {
  font-size: 15px;
}
.style-option small {
  font-size: 13px;
}
.consent {
  font-size: 14px;
}
.action-hint {
  font-size: 13px;
}
.kind-note strong {
  font-size: 14px;
}
.kind-note p span {
  font-size: 13px;
}
.result-empty p,
.result-note {
  font-size: 14px;
}
.photo-tips p {
  font-size: 13px;
}
.photo-tips strong {
  font-size: 14px;
}
@media (max-width: 1050px) {
  .chip {
    display: none;
  }
  .style-option {
    gap: 7px;
  }
  .style-option small {
    font-size: 12px;
  }
  .steps li div > span {
    font-size: 12px;
  }
}
@media (max-width: 850px) {
  .steps li div > span {
    font-size: 12px;
  }
  .steps strong {
    font-size: 14px;
  }
  .style-option small {
    font-size: 13px;
  }
  .chip {
    display: block;
  }
  .intro-description {
    font-size: 16px;
  }
}
@media (max-width: 600px) {
  .intro h1 {
    font-size: 32px;
    letter-spacing: 0;
  }
  .intro-description {
    font-size: 14px;
    line-height: 1.9;
  }
  .mobile-break {
    display: block;
  }
  .eyebrow {
    font-size: 13px;
  }
  .intro-art {
    display: none;
  }
  .steps {
    gap: 8px;
    padding: 14px 8px;
  }
  .steps li {
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
  }
  .steps li div > span {
    font-size: 10px;
  }
  .steps strong {
    font-size: 13px;
  }
  .step-number {
    width: 29px;
    height: 29px;
    font-size: 15px;
  }
  .steps li.active .step-number {
    box-shadow: 0 0 0 3px #ebe7f4;
  }
  .workbench {
    padding: 22px 15px 20px;
  }
  .section-heading {
    margin-bottom: 18px;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .section-heading > span:not(.result-tag) {
    font-size: 12px;
  }
  .uploads {
    gap: 14px;
  }
  .upload-card {
    padding: 11px 8px 9px;
  }
  .card-label h3 {
    font-size: 14px;
  }
  .mini-number {
    width: 21px;
    height: 21px;
    font-size: 12px;
  }
  .chip {
    display: none;
  }
  .upload-empty strong {
    font-size: 14px;
  }
  .upload-empty > span:not(.upload-illustration):not(.choose-file) {
    font-size: 12px;
  }
  .choose-file {
    font-size: 14px;
    padding: 7px 10px;
  }
  .file-caption {
    font-size: 12px;
  }
  .format-tip {
    font-size: 11px;
  }
  .style-picker legend {
    font-size: 15px;
  }
  .style-picker legend span {
    font-size: 11px;
  }
  .style-option {
    flex-wrap: wrap;
    gap: 6px;
    padding: 11px 9px;
  }
  .style-option strong {
    font-size: 14px;
  }
  .style-option small {
    font-size: 11px;
  }
  .radio-check {
    position: absolute;
    top: 8px;
    right: 8px;
  }
  .style-icon {
    width: 25px;
    height: 27px;
  }
  .style-option > span:nth-of-type(2) {
    flex-basis: 100%;
  }
  .consent {
    font-size: 13px;
    line-height: 1.8;
  }
  .action-hint {
    font-size: 12px;
  }
  .button-spark {
    margin-left: 205px;
  }
  .kind-note p span {
    font-size: 12px;
  }
  .kind-note strong {
    font-size: 13px;
  }
  .photo-tips p {
    font-size: 13px;
  }
  .photo-tips strong {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Camera capture uses the same photo cards and confirmation flow as uploads. */
.camera-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 1px solid #d7cfea;
  border-radius: 9px;
  background: #fff;
  color: #695795;
  font-size: 14px;
  font-weight: 600;
}
.camera-button svg {
  width: 18px;
  height: 18px;
}
.camera-button:hover {
  background: #eee8fa;
}
.face-card .camera-button {
  color: #557e65;
  border-color: #c7ddce;
}
.face-card .camera-button:hover {
  background: #e6f2e9;
}
.camera-button:disabled {
  opacity: 0.5;
}
#camera-dialog {
  max-width: 580px;
}
#camera-dialog .dialog-heading {
  margin-bottom: 8px;
}
#camera-dialog .camera-note {
  margin: 0 0 16px;
  font-size: 14px;
}
.camera-viewfinder {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: 380px;
  overflow: hidden;
  background: #233d39;
  border: 1px solid #d0dfd5;
  border-radius: 14px;
}
.camera-viewfinder video,
.camera-viewfinder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
#camera-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: #c0d3c9;
  font-size: 15px;
}
#camera-placeholder svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.4;
}
#camera-dialog .camera-status {
  min-height: 27px;
  font-size: 14px;
  margin: 12px 0 16px;
  line-height: 1.8;
}
.camera-actions {
  display: flex;
  gap: 12px;
}
.camera-actions button {
  flex: 1;
}
.camera-primary,
.camera-secondary {
  min-height: 48px;
  border-radius: 10px;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.camera-primary {
  border: 1px solid var(--purple);
  background: var(--purple);
  color: white;
}
.camera-primary:hover {
  background: var(--purple-dark);
}
.camera-secondary {
  border: 1px solid #d7d0e5;
  background: #f8f6fc;
  color: var(--purple-dark);
}
.camera-secondary:hover {
  background: #eee8fa;
}
.camera-primary:disabled,
.camera-secondary:disabled {
  opacity: 0.45;
}
.camera-primary svg {
  width: 21px;
  height: 21px;
}
.camera-file-fallback {
  display: block;
  margin: 16px auto 0;
  min-height: 36px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.camera-retry {
  width: 100%;
  margin-top: 12px;
}
#camera-error {
  font-size: 14px;
  padding: 12px;
  border: 1px solid #ead3d2;
  border-radius: 10px;
  background: #fff5f3;
  color: #985d58;
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  #camera-dialog {
    padding: 22px 18px;
  }
  #camera-dialog .dialog-heading h2 {
    font-size: 20px;
  }
  .camera-actions {
    gap: 9px;
  }
  .camera-primary,
  .camera-secondary {
    font-size: 15px;
    padding: 10px 11px;
  }
  .format-tip {
    line-height: 1.9;
  }
}
/* A quieter creation desk and a shared local exhibition. */
.intro {
  min-height: 205px;
  padding-block: 12px;
}
.intro-art {
  width: 280px;
}
.steps {
  padding-block: 13px;
}
.result-panel {
  min-height: 560px;
}
.result-empty {
  padding-top: 40px;
}
.gallery-result-link {
  display: block;
  text-align: center;
  color: var(--purple-dark);
  font-size: 15px;
  margin: 14px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-header nav {
  gap: 26px;
}
.gallery-local {
  color: var(--muted);
  font-size: 14px;
}
.gallery-main {
  padding-top: 40px;
}
.gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 35px;
}
.gallery-eyebrow {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 2px;
  margin: 0 0 8px;
}
.gallery-heading h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.5;
  margin: 0;
  letter-spacing: 2px;
}
.gallery-heading h1 span {
  color: var(--purple-dark);
}
.gallery-heading h1 b {
  font-size: 34px;
  font-weight: 400;
  margin-left: 14px;
  color: #bd9e45;
}
.gallery-heading p:last-child {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 16px;
}
.gallery-create {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  min-height: 46px;
  padding: 11px 21px;
  background: var(--purple);
  color: white;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.gallery-create:hover {
  background: var(--purple-dark);
}
.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 24px;
  gap: 10px;
  font-size: 15px;
}
.gallery-toolbar > div {
  display: flex;
  gap: 18px;
  align-items: center;
}
.gallery-auto {
  color: var(--muted);
  font-size: 13px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.artwork-card {
  position: relative;
  min-width: 0;
  padding: 10px 10px 0;
  background: white;
  border: 1px solid #dae3db;
  border-radius: 17px;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 4px 0 #d5e5de70;
  transition: transform 0.2s;
}
.artwork-card:hover {
  transform: translateY(-4px);
}
.artwork-card > img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  background: #f0f3ed;
  border-radius: 10px;
}
.artwork-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 5px 18px;
}
.artwork-details strong {
  font-size: 16px;
  font-weight: 650;
}
.artwork-details time {
  font-size: 13px;
  color: var(--muted);
}
.artwork-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  border-radius: 6px;
  background: #fffffff0;
  color: #70618f;
  padding: 3px 8px;
  font-size: 12px;
}
.gallery-empty {
  text-align: center;
  padding: 55px 15px 65px;
  background: #f7fbf8;
  border: 1px dashed #cbded2;
  border-radius: 20px;
}
.gallery-empty > span {
  font-size: 64px;
  color: #bda451;
  line-height: 1;
}
.gallery-empty h2 {
  font-size: 23px;
  margin: 20px 0 12px;
}
.gallery-empty p {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 25px;
}
.gallery-more {
  display: block;
  margin: 30px auto 0;
  border: 1px solid #c7bcd9;
  background: #f6f3fb;
  border-radius: 12px;
  padding: 10px 28px;
  color: var(--purple-dark);
  font-size: 15px;
}
.gallery-footnote {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 35px 0;
}
.artwork-dialog {
  max-width: 900px;
}
.artwork-dialog > img {
  display: block;
  width: 100%;
  max-height: 65dvh;
  object-fit: contain;
  background: #f0f3ed;
  border-radius: 12px;
}
.artwork-close {
  border: 0;
  background: #f1f3ee;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  width: 38px;
  height: 38px;
}
.artwork-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 850px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .result-panel {
    min-height: 0;
  }
}
@media (max-width: 600px) {
  .site-header nav {
    gap: 15px;
  }
  .site-header .gallery-nav {
    font-size: 14px;
  }
  .intro {
    min-height: 0;
    padding-block: 25px;
  }
  .intro h1 {
    margin-bottom: 8px;
  }
  .intro-description {
    max-width: none;
  }
  .gallery-main {
    padding-top: 18px;
  }
  .gallery-heading {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 24px;
    gap: 17px;
  }
  .gallery-heading p:last-child {
    font-size: 14px;
  }
  .gallery-heading h1 b {
    font-size: 28px;
  }
  .gallery-toolbar {
    font-size: 13px;
  }
  .gallery-local {
    display: none;
  }
  .gallery-auto {
    font-size: 12px;
  }
  .gallery-toolbar > div {
    gap: 12px;
  }
  .artwork-card {
    padding: 7px 7px 0;
    border-radius: 12px;
  }
  .artwork-details {
    padding: 12px 2px;
  }
  .artwork-details strong {
    font-size: 14px;
  }
  .artwork-details time {
    font-size: 11px;
  }
  .artwork-badge {
    top: 14px;
    left: 14px;
    font-size: 11px;
  }
  .gallery-empty {
    padding: 40px 15px;
  }
  .gallery-empty h2 {
    font-size: 20px;
  }
  .artwork-caption {
    flex-wrap: wrap;
  }
}
.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.scene-option {
  position: relative;
  min-width: 0;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 11px;
  background: #fff;
  text-align: center;
  color: var(--ink);
  transition: border-color 0.15s;
}
.scene-option img {
  display: block;
  width: 100%;
  height: 85px;
  object-fit: cover;
  object-position: center top;
  border-radius: 7px;
  background: #e2ebe5;
}
.scene-option span {
  display: block;
  padding-top: 4px;
  font-size: 14px;
  font-weight: 600;
}
.scene-option:hover {
  border-color: #c7b9df;
}
.scene-option[aria-pressed="true"] {
  border-color: var(--purple);
  background: #eee7fa;
  color: var(--purple-dark);
}
.scene-option[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  font-size: 13px;
}
.scene-option:disabled {
  opacity: 0.65;
}
.scene-status {
  margin: 10px 0 1px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.uploads {
  align-items: start;
}
.face-card .dropzone {
  min-height: 310px;
}
@media (max-width: 600px) {
  .uploads {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .plus-sign {
    display: none;
  }
  .scene-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .scene-option img {
    height: 90px;
  }
  .face-card .dropzone {
    min-height: 230px;
  }
  .scene-status {
    font-size: 13px;
  }
}
/* Preserve the entire landscape composition in presets and the exhibition. */
.scene-option img {
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
}
.artwork-card > img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.result-image-wrap img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
@media (max-width: 600px) {
  .scene-option img {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
@media(max-width:600px) { .scene-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
