:root {
  color-scheme: light;
  --canvas: #f3f8f6;
  --paper: #fff;
  --mist: #e7f3ee;
  --tint: #d3f0e5;
  --line: #d6e2dd;
  --line-strong: #b4c8c0;
  --ink: #142b2a;
  --muted: #506861;
  --pine: #086456;
  --pine-hover: #064e43;
  --danger: #a32c20;
  --danger-tint: #fff0ed;
  --shadow: 0 16px 48px -32px #1c4a3c69;
  --radius: 20px;
  --body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --display: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 16px/1.65 var(--body);
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.3; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 5vw, 3.15rem); font-weight: 760; letter-spacing: -.035em; }
h2 { font-size: 1.28rem; font-weight: 720; letter-spacing: -.015em; }
h3 { font-size: 1rem; font-weight: 680; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:where(a, button, input, textarea):focus-visible { outline: 3px solid #178170; outline-offset: 4px; }
::selection { color: var(--ink); background: #bce7d8; }

.shell { width: min(100% - 64px, 1120px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: #f9fcfa; }
.header-content { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 780;
  font-size: 1.13rem;
  white-space: nowrap;
  letter-spacing: -.025em;
}
.brand-symbol {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px 10px 10px 4px;
  background: var(--pine);
}
.brand-symbol::before {
  content: "";
  display: block;
  width: 15px;
  height: 14px;
  border: 2px solid #e8fff5;
  border-radius: 3px 3px 3px 1px;
  box-shadow: inset 0 -4px #bde7da;
}
.header-context { color: var(--muted); font-size: .875rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .9375rem;
  line-height: 1.3;
  font-weight: 670;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.button-primary { color: #fff; background: var(--pine); border-color: var(--pine); }
.button-primary:hover { background: var(--pine-hover); border-color: var(--pine-hover); }
.button-secondary { color: #104a41; background: var(--mist); border-color: #b9d7cb; }
.button-secondary:hover { background: var(--tint); border-color: #99c6b5; }
.button-quiet { color: var(--ink); background: var(--paper); border-color: var(--line-strong); }
.button-quiet:hover { background: var(--mist); border-color: #91b3a6; }
.button-small { padding: 7px 10px; min-height: 38px; border-radius: 8px; font-size: .875rem; }
.button-full { width: 100%; }
.button:disabled, .photo-choice:disabled, .file-button:has(input:disabled) { opacity: .54; cursor: default; }
.small-link, .text-button {
  color: var(--pine);
  font-size: .875rem;
  font-weight: 660;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  border: none;
  background: none;
}
.text-button:disabled, [aria-disabled="true"] { opacity: .5; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.site-header .inline-actions { flex-wrap: nowrap; }
.site-header .help-entry-actions { flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; }
.help-entry-actions > * { white-space: nowrap; }
.help-entry-actions a { display: inline-flex; align-items: center; min-height: 40px; }
.muted, .field-note { color: var(--muted); overflow-wrap: anywhere; }
.field-note { font-size: .875rem; line-height: 1.6; }
.optional { color: var(--muted); display: contents; }
.counter { flex: none; font-size: .875rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.notice, .empty-state {
  padding: 14px 17px;
  border-radius: 10px;
  background: #edf4f0;
  color: var(--muted);
}
.empty-state { border: 1px dashed var(--line-strong); font-size: .875rem; }
.feedback { font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.feedback:empty { display: none; }
.feedback[data-tone=error], .notice[data-tone=error] {
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--danger-tint);
  color: var(--danger);
}
.feedback[data-tone=success] { color: var(--pine); }
.copy-buffer { position: fixed; inset: 0 auto auto -200vw; opacity: 0; }

.landing { padding-block: 64px 72px; }
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.19fr) minmax(0, .81fr);
  overflow: hidden;
  min-height: 505px;
  isolation: isolate;
  position: relative;
  background: linear-gradient(110deg, #f9fffb 0%, #eaf6ef 79%, #d6efe5 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.landing-copy { align-self: center; padding: clamp(36px, 6vw, 80px); padding-right: 0; position: relative; z-index: 2; }
.landing-copy h1 {
  font: 750 clamp(2.5rem, 5.75vw, 5.1rem)/1.12 var(--display);
  letter-spacing: -.055em;
  white-space: nowrap;
}
.landing-copy h1 span { color: var(--pine); }
.landing-copy p { color: var(--muted); margin-block: 24px 26px; max-width: 31ch; line-height: 1.8; }
.landing-copy > .button { min-height: 50px; padding-inline: 23px; }
.hero-art {
  align-self: stretch;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, #1748380d 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 22px, #1748380d 22px 23px),
    radial-gradient(ellipse at 56% 48%, #9dd3bc99 0%, transparent 68%);
  mask-image: linear-gradient(90deg, transparent, #000 22%);
}
.art-scan, .art-print {
  position: absolute;
  width: 47%;
  min-width: 145px;
  max-width: 250px;
  aspect-ratio: 1;
  border-radius: 22px;
  box-shadow: 6px 15px 28px #244f3f2c;
}
.art-scan {
  top: 22%;
  left: 12%;
  transform: rotate(-11deg);
  display: grid;
  grid-template: 1fr 1fr / 1fr 1fr;
  padding: 15%;
  gap: 20%;
  background: #17443b;
}
.art-scan i { width: 100%; height: 100%; border: 3px solid #c7f3df; border-radius: 3px; }
.art-scan i:last-of-type { border-color: transparent #c7f3df #c7f3df transparent; }
.art-scan b { position: absolute; right: 18%; left: 18%; top: 49%; height: 2px; background: #8dd8bc; }
.art-print {
  display: flex;
  flex-direction: column;
  gap: 7px;
  top: 43%;
  left: 39%;
  transform: rotate(11deg);
  padding: 14px;
  background: #fbfffc;
  aspect-ratio: 1 / 1.11;
}
.art-image {
  position: relative;
  overflow: hidden;
  flex: 1;
  border-radius: 11px;
  background:
    radial-gradient(circle at 67% 31%, #f4ede3 0 9%, transparent 9.2%),
    linear-gradient(145deg, #c0e6d6, #81b9a9);
}
.art-image::before, .art-image::after {
  content: "";
  position: absolute;
  background: #498372;
  width: 93%;
  height: 95%;
  transform: rotate(37deg);
  left: -8%;
  top: 60%;
  border-radius: 11px;
}
.art-image::after { background: #316353; left: 33%; top: 76%; transform: rotate(-29deg); }
.art-print i { width: 63%; height: 6px; border-radius: 6px; background: #b0c9bc; }
.art-print i:last-child { width: 46%; background: #d4e3da; }
.landing-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 28px; }
.landing-steps section { border-top: 2px solid #9fc7b8; padding-top: 17px; }
.landing-steps p { margin-top: 6px; color: var(--muted); }

.auth-shell {
  display: grid;
  grid-template-columns: .44fr 1fr;
  max-width: 690px;
  margin-block: 65px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.auth-stripe {
  background:
    repeating-linear-gradient(135deg, #ffffff15 0 1px, transparent 1px 23px),
    radial-gradient(ellipse at 0 10%, #1a8c73, #133c35 76%);
}
.auth-card { padding: 38px 42px; min-width: 0; }
.auth-card h1 { font-size: 2rem; }
.auth-card > p, .auth-card > form { margin-top: 15px; }
.auth-card > form > button { margin-top: 5px; }
.form-stack { display: grid; gap: 13px; }
.form-stack > fieldset { display: grid; gap: 13px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field { display: grid; gap: 6px; color: var(--ink); font-size: .875rem; font-weight: 650; }
input:not([type=file]), textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  min-height: 44px;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
}
input[readonly]:not([type=file]), textarea[readonly] { background: #f4f8f6; }
textarea { resize: vertical; }
form > .field-note, fieldset > .field-note { margin-top: -8px; }
form > button, fieldset > button { justify-self: start; }
input[type=file] { max-width: 100%; color: var(--muted); font-size: .875rem; }
input[type=file]::file-selector-button {
  margin-right: 8px;
  padding: 9px 12px;
  background: #f2f8f5;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
}
.auth-card form > button { justify-self: stretch; }

.dashboard { padding-block: 42px 72px; }
.page-lead { margin-bottom: 25px; }
.page-lead p { max-width: 52ch; margin-top: 8px; color: var(--muted); }
.dashboard > .feedback { margin-bottom: 14px; }
.admin-layout, .merchant-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.6fr);
  gap: 20px;
}
.merchant-layout {
  grid-template-columns: minmax(0, 1.58fr) minmax(280px, .8fr);
  grid-template-areas: "sections qr";
}
.merchant-sections { grid-area: sections; display: grid; gap: 20px; }
.project-directory-lead { display: flex; align-items: end; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.project-detail-lead > button { margin-bottom: 8px; }
.project-list .directory-row:last-child { padding-bottom: 0; }
.project-list .directory-info > p { margin-top: 5px; }
.panel, .qr-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.panel > .muted, .panel > .field-note { margin-top: 8px; }
.panel > .form-stack, .panel > form { margin-top: 17px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.merchant-directory .section-heading { margin-bottom: 12px; }
.state-label {
  border-radius: 6px;
  background: #eeefee;
  color: #4e5a54;
  padding: 3px 7px;
  flex: none;
  font-size: .8125rem;
  line-height: 1.4;
  font-weight: 680;
}
.state-label[data-active=true] { background: var(--tint); color: #145348; }
.directory-list, .asset-list, .selected-list, .share-images { list-style: none; padding: 0; margin: 0; }
.directory-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-block: 14px; border-top: 1px solid var(--line); }
.directory-info { min-width: 0; overflow-wrap: anywhere; }
.directory-heading { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.directory-username { font: .875rem/1.55 ui-monospace, "SFMono-Regular", monospace; margin-block: 4px 0; color: var(--muted); }
.directory-entry { display: inline-block; }
.directory-login { margin-block: 5px; }
.directory-actions, .asset-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.directory-actions { align-items: flex-start; flex: none; }

dialog {
  inset: 0;
  max-width: min(100% - 32px, 440px);
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: 0 30px 100px #09282033;
}
dialog::backdrop { background: #132d27a2; }
.dialog-content { padding: 24px; }
.dialog-content > :not(h2) { margin-top: 12px; }
.dialog-actions { justify-content: flex-end; }
#generation-quotas { width: min(100% - 32px, 660px); max-width: none; }
#generation-quotas .quota-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-top: 0; }
#generation-quotas .quota-heading h2 { min-width: 0; overflow-wrap: anywhere; }
#generation-quotas .quota-heading form { flex: none; }
#generation-quotas #quota-defaults:empty,
#generation-quotas #quota-next-reset:empty,
#generation-quotas #quota-projects:empty { display: none; }
#generation-quotas .quota-project { padding-block: 14px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
#generation-quotas .quota-project:last-child { padding-bottom: 0; }
#generation-quotas .quota-project > .directory-heading + p { margin-top: 6px; }
#generation-quotas .quota-project > form { margin-top: 12px; }
#generation-quotas .quota-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 12px; }
.photo-preview {
  width: min(920px, 100% - 24px);
  height: min(780px, 100% - 24px);
  max-width: none;
  max-height: none;
  padding: 12px;
  background: var(--paper);
}
.photo-preview[open] { display: flex; flex-direction: column; gap: 10px; }
.photo-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.photo-preview-title { font-size: 1rem; }
.photo-preview-header .button { flex: none; }
.photo-preview-stage {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--mist);
  border-radius: 10px;
}
.photo-preview-stage:focus-visible { outline: 3px solid #178170; outline-offset: 2px; }
.photo-preview-stage img {
  flex: none;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.photo-preview-stage[data-original=true] img { max-width: none; max-height: none; }
.photo-preview-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.photo-preview-trigger {
  display: block;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: zoom-in;
}
.photo-preview-trigger:disabled { cursor: default; }
.photo-expand { min-height: 38px; }
.mono { font-family: ui-monospace, "SFMono-Regular", monospace; }

.qr-panel {
  grid-area: qr;
  display: grid;
  gap: 12px;
  background: #eaf6f0;
}
.qr-display { padding: 13px; background: #fff; border-radius: 15px; }
.qr-display img { width: min(100%, 220px); height: auto; aspect-ratio: 1; margin-inline: auto; }
.qr-panel .inline-actions { justify-content: center; }
.qr-panel .entry-url { min-height: 38px; padding: 6px 8px; font-size: .875rem; }
.switch-setting { border-top: 1px solid #bad4ca; padding-top: 14px; }
.switch-setting > p { margin-top: 7px; }
.photo-form { padding: 13px; background: #f3f8f5; border-radius: 12px; border: 1px solid var(--line); }
.photo-form + .photo-form { margin-top: 9px; }
.photo-form + .feedback, .asset-list, #empty-assets { margin-top: 13px; }
.asset-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-block: 10px;
  border-top: 1px solid var(--line);
}
.asset-row img, .selected-row img {
  width: 82px;
  height: 75px;
  flex: none;
  object-fit: cover;
  border-radius: 9px;
  background: var(--mist);
}
.asset-details { min-width: 0; display: grid; gap: 5px; }
.asset-name { font-size: .9rem; overflow-wrap: anywhere; }
.video-player {
  display: block;
  width: 100%;
  max-height: min(60vh, 420px);
  aspect-ratio: 16 / 9;
  background: #102921;
  border-radius: 10px;
}
.asset-video-row { flex-wrap: wrap; }
.asset-video-row .video-player { width: min(100%, 240px); }
.asset-video-row .asset-details { flex: 1 1 160px; }

.guest-shell { max-width: 660px; }
.guest-main { padding-block: 23px 40px; }
.guest-lead {
  position: relative;
  padding: 25px;
  background: linear-gradient(115deg, #d4ede3, #eaf7f0);
  border: 1px solid #d1e5dc;
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.guest-lead::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 96px;
  height: 100%;
  background:
    repeating-linear-gradient(0deg, transparent 0 12px, #58867622 12px 13px),
    repeating-linear-gradient(90deg, transparent 0 12px, #58867622 12px 13px);
  mask-image: linear-gradient(90deg, transparent, #000 75%);
  pointer-events: none;
}
.guest-lead h1 { position: relative; z-index: 1; font-size: clamp(1.9rem, 6vw, 2.55rem); }
.guest-lead p { position: relative; z-index: 1; margin-top: 9px; }
.store-description { white-space: pre-wrap; overflow-wrap: anywhere; color: #345750; }
.guest-panel { margin-bottom: 15px; }
.info-card { margin-bottom: 14px; background: #e7f4ed; }
.info-card h1 { font-size: clamp(1.45rem, 4.8vw, 2rem); }
.info-card p { margin-top: 11px; color: var(--muted); }
.info-card .button { margin-top: 13px; }
.browser-guide { margin-top: 66px; padding: clamp(20px, 4vw, 30px); border-color: #a7cdbd; }
.browser-guide-pointer {
  position: fixed; z-index: 5; top: 0; right: 0; width: min(100%, 420px); height: 140px;
  background: var(--canvas); color: var(--pine); pointer-events: none;
}
.browser-guide-pointer > span { position: absolute; top: 43px; right: 141px; font-size: 20px; font-weight: 750; }
.browser-guide-pointer b { font: 900 30px/1 var(--body); letter-spacing: 2px; }
.browser-guide-pointer i {
  position: absolute; top: 19px; right: 27px; width: 105px; height: 94px;
  border-right: 7px solid currentColor; border-bottom: 7px solid currentColor; border-radius: 0 0 65px 0;
}
.browser-guide-pointer i::after {
  content: ""; position: absolute; right: -16px; top: 0; width: 25px; height: 25px;
  border-top: 7px solid currentColor; border-left: 7px solid currentColor; transform: rotate(45deg);
}
.browser-guide-eyebrow { color: var(--pine); font-size: .875rem; font-weight: 750; margin-bottom: 9px; }
.browser-guide h1 { font-size: clamp(1.35rem, 5.8vw, 1.8rem); letter-spacing: -.025em; }
.browser-guide-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 24px; }
.browser-guide-steps > li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.browser-guide-number { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pine); color: white; font-weight: 750; }
.browser-guide-steps h2 { font-size: 1.0625rem; line-height: 30px; }
.browser-guide-steps p { color: var(--muted); font-size: .875rem; margin-top: 5px; }
.browser-guide-dots { display: inline-block; font: 900 22px/1 var(--body); letter-spacing: 2px; color: var(--ink); vertical-align: middle; }
.browser-guide-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; margin-top: 10px; border: 2px solid var(--pine); border-radius: 10px; background: var(--mist); }
.browser-guide-menu > span { font-size: 24px; line-height: 1; color: var(--pine); }
.browser-guide-menu strong { font-size: 1rem; }
.browser-guide-menu small { color: var(--muted); font-size: .6875rem; margin-left: auto; }
.browser-guide-steps .browser-guide-note { font-size: .75rem; }
.browser-guide-next { margin-top: 22px; color: var(--pine); font-size: .875rem; }
.browser-guide-fallback { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.browser-guide-fallback p { color: var(--muted); font-size: .8125rem; }
.browser-guide-fallback .button { margin-top: 8px; width: 100%; }
.browser-guide > .feedback { margin-top: 10px; }
@media (max-height: 500px) {
  .browser-guide-pointer { position: absolute; height: 110px; }
  .browser-guide-pointer i { height: 72px; }
  .browser-guide { margin-top: 38px; }
}
.guest-main > .feedback:not(:empty) { margin-bottom: 10px; }
.photo-source { display: grid; gap: 8px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }
.note-modes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.note-modes .button { flex: 1 1 92px; }
.note-modes .button[aria-pressed=true], .video-choice[aria-pressed=true] {
  color: #fff;
  border-color: var(--pine);
  background: var(--pine);
}
.upload-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-block: 3px; }
.file-button { position: relative; min-height: 50px; }
.file-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-button input:disabled { cursor: default; }
.file-button:has(input:focus-visible) { outline: 3px solid #178170; outline-offset: 3px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.photo-grid:empty { display: none; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr)); gap: 10px; }
.video-grid:empty { display: none; }
.video-tile { display: grid; align-content: start; gap: 5px; min-width: 0; }
.video-tile .asset-actions { align-items: center; }
.photo-tile { min-width: 0; }
.photo-choice {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--mist);
  aspect-ratio: 1;
}
.photo-choice img { width: 100%; height: 100%; object-fit: cover; }
.photo-choice[aria-pressed=true] { border-color: var(--pine); }
.photo-mark {
  position: absolute;
  top: 5px;
  right: 5px;
  border-radius: 6px;
  font-size: .75rem;
  line-height: 1.5;
  padding: 2px 6px;
  color: #fff;
  background: #102921e8;
}
.photo-choice[aria-pressed=true] .photo-mark { background: #086456; }
.photo-caption { font-size: .875rem; color: var(--muted); line-height: 1.4; margin-top: 4px; overflow-wrap: anywhere; }
.photo-tile .photo-caption { padding-inline: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.photo-tile .asset-actions { gap: 4px; }
.upload-delete { min-height: 38px; }
.selected-list, #empty-selected { margin-top: 12px; }
.selected-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 9px; align-items: center; border-top: 1px solid var(--line); padding-block: 8px; }
.selected-row img { width: 70px; height: 66px; }
.selected-row .button-small { min-height: 44px; }
.selected-title { font-size: .875rem; font-weight: 700; }
.guest-panel > .feedback { margin-top: 7px; }
.field-line { display: flex; justify-content: space-between; gap: 6px; }
.field-line .field-note { font-weight: 400; font-variant-numeric: tabular-nums; }
.guest-action {
  display: grid;
  gap: 7px;
  text-align: center;
  padding: 12px 0 0;
}
.guest-action .button { min-height: 52px; }
.guest-action > .feedback:not(:empty) { margin-bottom: 4px; }
.share-actions, .share-article { margin-top: 15px; }
.share-article h2 { font-size: 1.5rem; }
.share-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-block: 14px; }
.share-image { min-width: 0; background: #f1f7f4; border-radius: 10px; overflow: hidden; }
.share-image:nth-child(1) { grid-column: 1 / -1; }
.share-image .photo-preview-trigger { width: 100%; }
.share-image .photo-preview-trigger:focus-visible { outline-offset: -4px; }
.share-image img { width: 100%; object-fit: contain; aspect-ratio: 1; background: #e7f0ec; }
.share-image:nth-child(1) img { aspect-ratio: auto; max-height: 420px; }
.share-image-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px; padding: 4px 9px; color: var(--muted); font-size: .875rem; }
.share-image-caption .small-link { display: inline-flex; align-items: center; min-height: 38px; }
.share-video { margin-block: 14px; }
.note-content { white-space: pre-wrap; overflow-wrap: anywhere; }
.share-fallback { display: grid; gap: 8px; border-top: 1px solid var(--line); margin-top: 15px; padding-top: 15px; }
.share-fallback .button { justify-self: start; }

@media (max-width: 850px) {
  .shell { width: calc(100% - 42px); }
  .landing { padding-top: 34px; }
  .landing-hero { min-height: 390px; }
  .admin-layout, .merchant-layout { gap: 16px; }
  .merchant-layout { grid-template-columns: minmax(0, 1.35fr) minmax(225px, .8fr); }
  .directory-row { align-items: start; flex-direction: column; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 30px); }
  .header-content { min-height: 58px; gap: 8px; }
  .site-header .button { min-height: 40px; padding: 8px 11px; font-size: .875rem; }
  .landing { padding-block: 19px 35px; }
  .landing-hero { display: flex; flex-direction: column; min-height: 0; border-radius: 21px; }
  .landing-copy { padding: 28px 21px 18px; align-self: stretch; }
  .landing-copy h1 { font-size: clamp(2rem, 8.8vw, 3.5rem); }
  .landing-copy p { margin-block: 15px 17px; }
  .hero-art { min-height: 205px; mask-image: linear-gradient(180deg, transparent, #000 18%); }
  .art-scan { top: 10%; left: 21%; width: 120px; min-width: 0; padding: 33px; border-radius: 14px; }
  .art-print { top: 22%; left: 47%; width: 117px; min-width: 0; padding: 9px; border-radius: 13px; }
  .landing-steps { grid-template-columns: 1fr; gap: 15px; padding-top: 21px; }
  .landing-steps section { padding-top: 12px; }
  .auth-shell { display: flex; flex-direction: column; max-width: 420px; margin-block: 25px; }
  .auth-stripe { height: 17px; }
  .auth-card { padding: 24px 19px; }
  .dashboard { padding-block: 24px 36px; }
  .page-lead { margin-bottom: 16px; }
  .admin-layout, .merchant-layout { grid-template-columns: 1fr; }
  .merchant-layout { grid-template-areas: "qr" "sections"; }
  .panel, .qr-panel { padding: 17px; border-radius: 16px; }
  .guest-main { padding-block: 15px 32px; }
  .guest-lead { padding: 19px; border-radius: 16px; }
  .guest-panel { margin-bottom: 12px; }
}
@media (max-width: 400px) {
  .selected-row { grid-template-columns: 51px minmax(0, 1fr) auto; gap: 7px; }
  .selected-row img { width: 51px; height: 56px; }
  .selected-row .button-small { padding-inline: 6px; }
  .selected-row .asset-actions { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

.brief-fields { display: grid; gap: 18px; margin-top: 6px; }
.brief-field { display: grid; gap: 6px; min-width: 0; }
.topic-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.topic-list { display: flex; flex-wrap: wrap; gap: 6px; }
.topic-list:empty, #topics-error:empty, #preview-status:empty { display: none; }
.topic-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--paper);
  color: var(--ink);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.brief-preview { display: grid; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.brief-preview > button { justify-self: start; }
.preview-result { padding: 14px; border: 1px solid var(--line); border-radius: 12px; overflow-wrap: anywhere; }
#preview-body { margin-top: 8px; white-space: pre-wrap; }
