:root {
  color-scheme: light;
  --ink: #1d1f1b;
  --muted: #74776d;
  --paper: #f3f0e8;
  --paper-deep: #ebe6db;
  --card: #fbfaf6;
  --line: rgba(38, 41, 34, 0.12);
  --line-strong: rgba(38, 41, 34, 0.18);
  --accent: #f6c938;
  --accent-soft: #fff0ad;
  --stage: #171a16;
  --stage-soft: #252922;
  --danger: #be4a35;
  --radius-lg: 28px;
  --radius-md: 19px;
  --shadow: 0 24px 60px rgba(35, 31, 20, 0.09);
  font-family:
    "Avenir Next", "SF Pro Display", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(246, 201, 56, 0.18), transparent 26rem),
    radial-gradient(circle at 96% 18%, rgba(151, 168, 139, 0.14), transparent 25rem),
    var(--paper);
}

body:not(.access-granted) {
  overflow: hidden;
}

body:not(.access-granted) .app-shell {
  visibility: hidden;
  pointer-events: none;
}

body.access-granted .access-gate {
  display: none;
}

.access-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 24px;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 227, 127, 0.32), transparent 28rem),
    radial-gradient(circle at 85% 90%, rgba(124, 149, 123, 0.2), transparent 30rem),
    #eee9dd;
}

.access-gate::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.access-orbit {
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(56, 61, 51, 0.1);
  border-radius: 50%;
}

.access-orbit--one {
  width: min(76vw, 920px);
  height: min(76vw, 920px);
  transform: rotate(22deg) scaleY(0.42);
}

.access-orbit--two {
  width: min(55vw, 680px);
  height: min(55vw, 680px);
  border-color: rgba(208, 164, 20, 0.16);
  transform: rotate(-17deg) scaleY(0.52);
}

.access-card {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(420px, calc(100vw - 36px));
  flex-direction: column;
  align-items: center;
  padding: 38px 38px 30px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(250, 247, 239, 0.86)),
    var(--card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(42, 37, 23, 0.15);
  backdrop-filter: blur(18px);
}

.access-logo {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--ink);
  background: var(--accent);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(206, 158, 0, 0.2);
  transform: rotate(-3deg);
}

.access-logo svg {
  width: 37px;
}

.access-eyebrow {
  margin: 0 0 9px;
  color: #969589;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.access-card h1 {
  margin: 0;
  font-family:
    "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.access-description {
  max-width: 290px;
  margin: 11px 0 24px;
  color: #85877d;
  font-size: 11px;
  line-height: 1.7;
}

.access-field {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}

.access-field span {
  color: #77796f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.access-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(38, 41, 34, 0.12);
  border-radius: 12px;
  outline: 0;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.access-field input:focus {
  border-color: rgba(198, 148, 0, 0.72);
  box-shadow: 0 0 0 4px rgba(246, 201, 56, 0.13);
}

.access-submit {
  width: 100%;
  min-height: 47px;
  margin-top: 12px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: #1f221c;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(31, 34, 28, 0.16);
}

.access-submit:hover {
  background: #2a2d25;
}

.access-error {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 10px;
}

.access-note {
  margin: 8px 0 0;
  color: #a3a49a;
  font-size: 8px;
  letter-spacing: 0.06em;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(217, 164, 0, 0.35);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.43;
}

.page-grain {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.app-shell {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--ink);
  background: var(--accent);
  border: 1px solid rgba(72, 58, 0, 0.12);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(206, 158, 0, 0.16);
  transform: rotate(-3deg);
}

.brand-mark svg {
  width: 31px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.privacy-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: #53574d;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(39, 34, 22, 0.04);
  backdrop-filter: blur(10px);
}

.privacy-chip svg {
  width: 18px;
  color: #708269;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: start;
}

.workbench {
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 2px 21px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #8a8a7f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h1,
.editor-heading h2 {
  margin: 0;
  font-family:
    "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.section-heading h1 {
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.12;
}

.image-count {
  flex: none;
  margin-bottom: 5px;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.photo-stage {
  position: relative;
  min-height: min(60vh, 670px);
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    radial-gradient(circle at 50% 32%, #32382f, var(--stage) 70%);
  background-size: 36px 36px, 36px 36px, auto;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.photo-stage::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  border-radius: inherit;
}

.drop-zone {
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.drop-zone:hover {
  border-color: rgba(255, 212, 59, 0.52);
}

.drop-zone.is-dragging {
  background: rgba(246, 201, 56, 0.08);
  border-color: var(--accent);
}

.empty-state {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 44px;
  color: white;
  text-align: center;
}

.upload-orbit {
  display: grid;
  width: 118px;
  height: 118px;
  margin-bottom: 26px;
  place-items: center;
  border: 1px solid rgba(246, 201, 56, 0.35);
  border-radius: 50%;
  box-shadow:
    0 0 0 12px rgba(246, 201, 56, 0.035),
    0 0 0 24px rgba(246, 201, 56, 0.016);
}

.upload-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  color: var(--ink);
  background: var(--accent);
  border-radius: 21px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transform: rotate(3deg);
  transition: transform 200ms ease;
}

.drop-zone:hover .upload-icon {
  transform: rotate(0) translateY(-3px);
}

.upload-icon svg {
  width: 32px;
}

.empty-state h2 {
  margin: 0 0 9px;
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.empty-state p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
}

.choose-files {
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.canvas-wrap {
  position: absolute;
  inset: 22px;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
}

.canvas-wrap[hidden] {
  display: none;
}

#preview-canvas {
  display: block;
  max-width: 100%;
  max-height: calc(min(60vh, 670px) - 44px);
  width: auto;
  height: auto;
  background: #ddd8cd;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.stage-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(17, 19, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  backdrop-filter: blur(7px);
}

.drop-cue {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(20, 22, 18, 0.78);
  backdrop-filter: blur(6px);
}

.drop-cue span {
  padding: 14px 22px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  background: var(--accent);
  border-radius: 999px;
}

.drop-zone.is-dragging .drop-cue {
  display: grid;
}

.stage-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 7px 0;
}

.stage-tools > p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #8ba17d;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(139, 161, 125, 0.13);
}

.stage-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.text-button,
.soft-button {
  border: 0;
  cursor: pointer;
  border-radius: 10px;
}

.text-button {
  padding: 9px 11px;
  color: var(--muted);
  font-size: 11px;
  background: transparent;
}

.text-button:hover:not(:disabled) {
  color: var(--danger);
  background: rgba(190, 74, 53, 0.06);
}

.soft-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  color: #4b4d45;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
}

.soft-button:hover {
  background: white;
  border-color: var(--line-strong);
}

.soft-button svg {
  width: 15px;
}

.filmstrip-panel {
  margin-top: 20px;
  padding: 17px 18px 18px;
  background: rgba(255, 255, 255, 0.39);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
}

.filmstrip-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.filmstrip-heading span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.filmstrip-heading small {
  color: #94968d;
  font-size: 10px;
}

.photo-strip {
  display: flex;
  gap: 10px;
  min-height: 88px;
  padding: 1px 1px 5px;
  overflow-x: auto;
  scrollbar-color: rgba(52, 50, 42, 0.18) transparent;
}

.strip-empty {
  display: grid;
  width: 100%;
  min-height: 80px;
  place-items: center;
  color: #9b9d94;
  font-size: 11px;
  border: 1px dashed rgba(54, 53, 45, 0.13);
  border-radius: 12px;
}

.photo-card {
  position: relative;
  flex: 0 0 112px;
  height: 78px;
  padding: 3px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 12px;
  transition:
    border-color 150ms ease,
    transform 150ms ease;
}

.photo-card:hover {
  transform: translateY(-2px);
}

.photo-card.is-selected {
  border-color: #272a23;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.photo-card-index {
  position: absolute;
  bottom: 7px;
  left: 7px;
  min-width: 20px;
  padding: 2px 5px;
  color: white;
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  background: rgba(16, 18, 15, 0.66);
  border-radius: 5px;
  backdrop-filter: blur(5px);
}

.remove-photo {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 20px;
  height: 20px;
  padding: 0;
  place-items: center;
  color: white;
  cursor: pointer;
  opacity: 0;
  background: rgba(17, 18, 15, 0.7);
  border: 0;
  border-radius: 50%;
  transition: opacity 140ms ease;
}

.photo-card:hover .remove-photo,
.photo-card:focus-within .remove-photo {
  opacity: 1;
}

.remove-photo svg {
  width: 11px;
}

.editor-panel {
  position: sticky;
  top: 22px;
  margin-top: 74px;
  padding: 27px 26px 23px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(250, 248, 242, 0.8)),
    var(--card);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(49, 43, 27, 0.09);
  backdrop-filter: blur(16px);
}

.editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.editor-heading h2 {
  font-size: 28px;
  line-height: 1.15;
}

.fixed-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
  padding: 5px 8px;
  color: #77786f;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  background: #f1eee5;
  border-radius: 999px;
}

.fixed-badge svg {
  width: 13px;
}

.field-stack {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 26px;
}

.field {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field-label {
  color: #777970;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.field-row {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 12px;
}

.field-row--weather {
  grid-template-columns: 1.35fr 0.65fr;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(39, 40, 34, 0.11);
  border-radius: 12px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.input-shell:focus-within {
  background: white;
  border-color: rgba(198, 148, 0, 0.68);
  box-shadow: 0 0 0 4px rgba(246, 201, 56, 0.12);
}

.input-shell input,
.input-shell select {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  color: #272921;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  border: 0;
  outline: 0;
}

.input-shell select {
  padding-right: 28px;
  cursor: pointer;
  appearance: none;
}

.input-shell--select::after {
  position: absolute;
  right: 14px;
  width: 6px;
  height: 6px;
  content: "";
  border-right: 1.5px solid #8e9087;
  border-bottom: 1.5px solid #8e9087;
  pointer-events: none;
  transform: translateY(-2px) rotate(45deg);
}

.input-shell--weekday {
  padding: 0 12px;
}

.weekday-display {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
}

.auto-badge {
  color: #b0b0a6;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.input-shell--time input {
  padding-right: 45px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.input-shell--temperature input {
  padding-right: 38px;
  appearance: textfield;
}

.input-shell--temperature input::-webkit-inner-spin-button,
.input-shell--temperature input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.temperature-unit {
  position: absolute;
  right: 12px;
  color: #77796f;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
}

.field-note {
  position: absolute;
  right: 11px;
  color: #b0b0a6;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.input-shell--location {
  padding-left: 12px;
}

.input-shell--location > svg {
  flex: 0 0 17px;
  width: 17px;
  color: #9b9d94;
}

.input-shell--location input {
  padding-left: 8px;
}

.address-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.address-dot {
  width: 6px;
  height: 6px;
  background: #777a70;
  border-radius: 1px;
  user-select: none;
}

.style-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 13px;
  background: #1f231d;
  border-radius: 14px;
}

.style-preview {
  position: relative;
  display: grid;
  flex: 0 0 104px;
  height: 54px;
  padding: 8px 9px;
  align-content: center;
  color: white;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.13), transparent),
    #596052;
  border-radius: 8px;
}

.style-preview::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(105deg, rgba(255,255,255,0.12), transparent 52%);
}

.style-preview b {
  position: relative;
  z-index: 1;
  font-size: 16px;
  line-height: 1;
}

.style-preview i {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 54px;
  width: 2px;
  background: var(--accent);
}

.style-preview em {
  position: relative;
  z-index: 1;
  margin: 4px 0 0 60px;
  font-size: 6px;
  font-style: normal;
  letter-spacing: 0.03em;
}

.style-note > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.style-note strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
}

.style-note small {
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
  line-height: 1.4;
}

.export-block {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 23px;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: #1f221c;
  border: 1px solid #1f221c;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(31, 34, 28, 0.14);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(31, 34, 28, 0.18);
}

.primary-button:active:not(:disabled) {
  transform: translateY(0);
}

.primary-button svg {
  width: 18px;
}

.primary-button--outline {
  color: #3b3d35;
  background: transparent;
  border-color: rgba(37, 39, 32, 0.16);
  box-shadow: none;
}

.primary-button--outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(37, 39, 32, 0.25);
  box-shadow: none;
}

.primary-button.is-busy::before {
  width: 13px;
  height: 13px;
  content: "";
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.primary-button.is-busy svg {
  display: none;
}

.primary-button--outline.is-busy::before {
  border-color: rgba(31, 34, 28, 0.16);
  border-top-color: #1f221c;
}

.status-message {
  min-height: 17px;
  margin-top: 13px;
  color: #85877e;
  font-size: 9.5px;
  line-height: 1.55;
  text-align: center;
}

.status-message.is-error {
  color: var(--danger);
}

.status-message.is-success {
  color: #657a59;
}

.local-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 17px 0 0;
  padding-top: 16px;
  color: #a0a198;
  font-size: 8.5px;
  border-top: 1px solid rgba(38, 41, 34, 0.075);
}

.local-note svg {
  width: 13px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 29px 4px 0;
  color: #9a9b91;
  font-size: 8px;
  letter-spacing: 0.12em;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1120px) {
  .app-shell {
    width: min(100% - 34px, 980px);
  }

  .main-grid {
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 17px;
  }

  .editor-panel {
    padding: 24px 21px 20px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .editor-panel {
    position: static;
    margin-top: 4px;
  }

  .field-row {
    grid-template-columns: 0.82fr 1.18fr;
  }

  .photo-stage {
    min-height: min(65vh, 670px);
  }

  #preview-canvas {
    max-height: calc(min(65vh, 670px) - 44px);
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: calc(100% - 24px);
    padding-top: 13px;
  }

  .topbar {
    min-height: 56px;
    margin-bottom: 19px;
  }

  .brand-mark {
    width: 41px;
    height: 41px;
    border-radius: 13px;
  }

  .brand-mark svg {
    width: 26px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    font-size: 9px;
  }

  .privacy-chip {
    padding: 8px 10px;
  }

  .privacy-chip span {
    display: none;
  }

  .privacy-chip svg {
    width: 17px;
  }

  .section-heading {
    align-items: flex-start;
    padding-bottom: 16px;
  }

  .section-heading h1 {
    max-width: 240px;
    font-size: 31px;
  }

  .image-count {
    margin-top: 2px;
  }

  .photo-stage {
    min-height: 460px;
    border-radius: 22px;
  }

  .drop-zone {
    inset: 11px;
    border-radius: 16px;
  }

  .canvas-wrap {
    inset: 14px;
  }

  #preview-canvas {
    max-height: 430px;
  }

  .empty-state {
    padding: 28px 18px;
  }

  .upload-orbit {
    width: 102px;
    height: 102px;
  }

  .empty-state h2 {
    font-size: 23px;
  }

  .empty-state p {
    max-width: 230px;
    line-height: 1.6;
  }

  .stage-tools {
    align-items: flex-start;
    padding: 12px 2px 0;
  }

  .stage-tools > p {
    max-width: 190px;
    line-height: 1.5;
  }

  .stage-actions {
    flex: none;
  }

  .filmstrip-panel {
    padding: 14px;
    border-radius: 16px;
  }

  .filmstrip-heading small {
    display: none;
  }

  .photo-card {
    flex-basis: 102px;
  }

  .editor-panel {
    padding: 23px 19px 19px;
    border-radius: 22px;
  }

  .editor-heading h2 {
    font-size: 27px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .fix-grid {
    display: block;
  }

  .style-note {
    align-items: flex-start;
  }

  .style-preview {
    flex-basis: 96px;
  }

  .site-footer {
    padding-top: 22px;
  }

  .site-footer span:first-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
