:root {
  --navy: #0B2545;
  --navy-soft: #1a3658;
  --bg: #F7F7F4;
  --surface: #FFFFFF;
  --brass: #C8A951;
  --brass-hover: #B59640;
  --teal: #2A6F6F;
  --teal-soft: #e7f0f0;
  --ink: #1A1A1A;
  --muted: #5F5F5F;
  --line: #e6e3dc;
  --line-strong: #d3cfc4;
  --danger: #b3261e;
  --good: #1d6b3a;
  --warn-bg: #fdf6e3;
  --warn-border: #e6c97a;
  --warn-ink: #6b5400;
  --radius-card: 12px;
  --radius-input: 8px;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.06), 0 1px 2px rgba(11, 37, 69, 0.04);
  --shadow-md: 0 4px 16px rgba(11, 37, 69, 0.08);
  --hero-image: url("https://images.unsplash.com/photo-1518837695005-2083093ee35b?w=2400&h=560&fit=crop&q=80");
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2280%22%20height%3D%2280%22%20viewBox%3D%220%200%2080%2080%22%3E%3Cpath%20d%3D%22M80%200H0v80%22%20fill%3D%22none%22%20stroke%3D%22%231a1a1a%22%20stroke-width%3D%220.5%22%20stroke-opacity%3D%220.03%22%2F%3E%3C%2Fsvg%3E");
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
  color: var(--navy);
}
.wordmark-divider {
  width: 1px;
  height: 24px;
  background: var(--line-strong);
  margin: 0 4px;
}
.wordmark-primary {
  font-weight: 500;
  font-size: 19px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.wordmark-primary a { color: inherit; }
.wordmark-primary a:hover { text-decoration: none; }
.header-spacer { flex: 1; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
}
.header-cta:hover {
  background: var(--bg);
  color: var(--brass);
  text-decoration: none;
}
.header-cta-arrow {
  transition: transform 120ms ease;
}
.header-cta:hover .header-cta-arrow {
  transform: translateX(2px);
}
.header-account {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.header-account .email {
  color: var(--ink);
  font-weight: 500;
}
.header-logout {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.header-logout:hover {
  background: var(--bg);
  color: var(--ink);
}
.header-link {
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 4px 8px;
  border-radius: 4px;
}
.header-link:hover { color: var(--navy); background: var(--bg); }

.header-anon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.header-cta-emphasis {
  font-weight: 600;
  color: var(--brass);
}
.header-cta-emphasis:hover {
  background: var(--bg);
  color: var(--brass-hover);
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  padding: 3px 9px;
  border-radius: 999px;
  line-height: 1.5;
  white-space: nowrap;
}
.tier-badge.tier-listing {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.tier-badge.tier-studio {
  background: var(--brass);
  color: #fff;
}
.tier-badge.tier-suite {
  background: var(--navy);
  color: var(--brass);
  border: 1px solid var(--brass);
}

.auth-cta {
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.auth-cta-text { display: flex; flex-direction: column; gap: 2px; min-width: 200px; }
.auth-cta-text strong { color: var(--navy); font-size: 15px; font-weight: 600; }
.auth-cta-text span { color: var(--muted); font-size: 13px; }
.auth-cta-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.auth-cta-actions .btn { padding: 9px 16px; font-size: 14px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--surface);
  color: var(--navy);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--bg); text-decoration: none; }

.btn-primary.is-disabled-unauth {
  background: var(--line-strong);
  border-color: var(--line-strong);
  color: var(--muted);
  cursor: not-allowed;
}
.btn-primary.is-disabled-unauth:hover {
  background: var(--line-strong);
  border-color: var(--line-strong);
}

.gate-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.gate-close:hover { background: var(--bg); color: var(--ink); }

@media (max-width: 640px) {
  .site-header-inner { flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
  .header-account .email { display: none; }
  .auth-cta { flex-direction: column; align-items: stretch; }
  .auth-cta-actions { justify-content: stretch; }
  .auth-cta-actions .btn { flex: 1; }
}

.hero {
  position: relative;
  width: 100%;
  height: 280px;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 55%;
  overflow: hidden;
  line-height: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 37, 69, 0.55);
  pointer-events: none;
}
.hero-text {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0 24px;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 40px;
  z-index: 2;
  display: block;
}

.what-you-get {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  margin-bottom: 24px;
  background: rgba(200, 169, 81, 0.10);
  border: 1px solid rgba(200, 169, 81, 0.35);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.wyg-item { color: var(--navy); font-weight: 500; }
.wyg-dot { color: var(--brass); font-weight: 700; }

.container { max-width: 920px; margin: 0 auto; padding: 40px 24px 80px; }

.page-intro { margin-bottom: 28px; }
.page-intro h1 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 44px;
  letter-spacing: -0.005em;
  color: var(--navy);
  line-height: 1.1;
}
.page-intro p { margin: 0; color: var(--muted); font-size: 15px; max-width: 640px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 24px 24px 28px;
  box-shadow: inset 2px 0 0 var(--brass), var(--shadow-sm);
}
.card + .card { margin-top: 16px; }
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}
.card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 16px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.card-title-icon { color: var(--teal); flex-shrink: 0; }
.card-subtitle { font-size: 13px; color: var(--muted); }

label {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 6px;
}
label .req { color: var(--brass); margin-left: 2px; }
.hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin-top: 6px;
}
.field + .field { margin-top: 18px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.grid-2-uneven {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 16px;
}
@media (max-width: 640px) {
  .grid-2, .grid-2-uneven { grid-template-columns: 1fr; }
}

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 120ms, box-shadow 120ms;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.10);
}
textarea {
  font-family: "Inter", sans-serif;
  resize: vertical;
}
textarea.notes { min-height: 160px; }
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%235F5F5F' d='M0 0l5 6 5-6z'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.price-input {
  position: relative;
}
.price-input::before {
  content: "$";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}
.price-input input { padding-left: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-input);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 200ms, border-color 200ms, color 200ms;
  text-decoration: none;
}
.btn-primary {
  background: var(--brass);
  color: #FFFFFF;
  border-color: var(--brass);
  font-weight: 600;
}
.btn-primary:hover:not(:disabled) { background: var(--brass-hover); border-color: var(--brass-hover); text-decoration: none; }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.btn-primary .btn-arrow { transition: transform 200ms; }
.btn-primary:hover:not(:disabled) .btn-arrow { transform: translateX(2px); }
.btn-outline {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn-outline:hover:not(:disabled) { border-color: var(--navy); text-decoration: none; }
.btn-brass-outline {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--brass);
}
.btn-brass-outline:hover:not(:disabled) { background: rgba(200, 169, 81, 0.08); border-color: var(--brass-hover); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
  padding: 6px 10px;
  font-size: 12px;
}
.btn-ghost:hover { color: var(--navy); background: var(--bg); }
.btn-block { display: flex; justify-content: center; width: 100%; }

.submit-row {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.status { font-size: 13px; color: var(--muted); }
.status.error { color: var(--danger); }
.status.good { color: var(--good); }

.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-card);
  padding: 28px;
  text-align: center;
  background: var(--bg);
  transition: border-color 120ms, background 120ms;
  cursor: pointer;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--teal);
  background: var(--teal-soft);
}
.dropzone-icon { color: var(--teal); margin-bottom: 8px; }
.dropzone-title { font-weight: 500; color: var(--navy); font-size: 14px; margin-bottom: 4px; }
.dropzone-hint { color: var(--muted); font-size: 13px; }
.dropzone input[type="file"] { display: none; }

.photo-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.photo-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb .remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(11, 37, 69, 0.85);
  color: white;
  border: none;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-thumb .remove:hover { background: var(--navy); }
.photo-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.photo-meta-warn { color: var(--warn-ink); }

.results { display: none; margin-top: 32px; }
.results.show { display: block; }
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.results-title {
  font-weight: 500;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.gap-banner {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--warn-ink);
  line-height: 1.5;
}
.gap-banner strong { color: var(--warn-ink); font-weight: 600; }

.output-card .card-header { margin-bottom: 12px; }

.listing-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.listing-photo { margin: 0; }
.listing-photo-img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}
.listing-photo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-photo-num {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: rgba(11, 37, 69, 0.85);
  color: white;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.listing-photo figcaption {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  text-transform: capitalize;
}
.output {
  white-space: pre-wrap;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}
.output-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

details.debug { margin-top: 16px; }
details.debug summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}
details.debug summary::-webkit-details-marker { display: none; }
details.debug pre {
  margin-top: 10px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.55;
  overflow-x: auto;
}

.site-footer {
  max-width: 1024px;
  margin: 0 auto;
  padding: 32px 24px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(11, 37, 69, 0.2);
  border-top-color: var(--navy);
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loader {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  padding: 16px 18px;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
}
.loader[hidden] { display: none; }
.loader-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.loader-text {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.loader-text-done { color: var(--muted); font-weight: 400; }
.loader-text-active { color: var(--navy); }
.loader-check {
  width: 14px;
  height: 14px;
  color: var(--teal);
  flex-shrink: 0;
}
.loader-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass);
  flex-shrink: 0;
  animation: loaderPulse 1.1s ease-in-out infinite;
}
.loader-dot-pending {
  background: var(--line-strong);
  animation: none;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50%      { opacity: 1; transform: scale(1); }
}
.loader-bar {
  height: 3px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.loader-bar-fill {
  position: absolute;
  top: 0;
  left: -40%;
  height: 100%;
  width: 40%;
  background: var(--brass);
  border-radius: 2px;
  animation: loaderSweep 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes loaderSweep {
  0%   { left: -40%; }
  100% { left: 100%; }
}

.gate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.gate-backdrop[hidden] { display: none; }
.gate-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: inset 2px 0 0 var(--brass), 0 12px 32px rgba(11, 37, 69, 0.20);
  padding: 32px;
  max-width: 420px;
  width: 100%;
}
.gate-card h2 {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  color: var(--navy);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.gate-card p.sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}
.gate-card input[type="text"] {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.gate-error {
  display: none;
  margin-top: 10px;
  color: var(--danger);
  font-size: 13px;
}
.gate-error.show { display: block; }
.gate-help {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.gate-help a { color: var(--teal); }
.gate-submit { margin-top: 16px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 12px;
}
@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.pricing-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured { border-top: 3px solid var(--brass); padding-top: 26px; }
.pricing-card-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brass);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.pricing-card-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.pricing-card-price {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 38px;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}
.pricing-card-cadence {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}
.pricing-card-desc {
  margin: 12px 0 16px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
.pricing-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pricing-card-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink);
}
.pricing-card-check {
  width: 14px;
  height: 14px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 4px;
}
.pricing-card .btn { margin-top: auto; }

.pricing-footnote {
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  line-height: 1.55;
}
.pricing-footnote a { color: var(--teal); }

.success-actions { margin-top: 24px; }
.success-actions a {
  font-size: 14px;
  color: var(--teal);
  font-weight: 500;
}

.flier-section { margin-bottom: 20px; }
.flier-section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: -0.005em;
  margin: 0 0 12px;
}
.flier-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: inset 2px 0 0 var(--brass), var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.flier-preview-frame {
  width: 360px;
  height: 360px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #FFFFFF;
  position: relative;
}
.flier-placeholder {
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 14px;
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
}
.flier-error {
  color: var(--danger);
  font-size: 13px;
  text-align: center;
}

.flier-stage {
  position: fixed;
  top: -100000px;
  left: -100000px;
  width: 1080px;
  height: 1080px;
  z-index: -1;
  pointer-events: none;
}
.flier-stage.flier-stage-preview {
  position: static;
  width: 360px;
  height: 360px;
  pointer-events: auto;
  z-index: auto;
}
.flier-stage.flier-stage-preview .flier-canvas {
  transform: scale(0.33333333);
  transform-origin: top left;
}

.flier-canvas {
  width: 1080px;
  height: 1080px;
  position: relative;
  background: #FFFFFF;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0B2545;
  overflow: hidden;
}
.flier-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: #0B2545;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 48px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
}
.flier-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: #0B2545;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  padding: 0 30px;
  font-size: 18px;
  line-height: 1.2;
}
.flier-bottom-left { flex: 0 0 30%; font-weight: 700; }
.flier-bottom-center { flex: 0 0 40%; text-align: center; }
.flier-bottom-right { flex: 0 0 30%; text-align: right; }

.flier-content {
  position: absolute;
  top: 120px;
  left: 0;
  right: 0;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 50px;
}
.flier-photo-wrap {
  width: 980px;
  height: 540px;
  border: 1px solid #0B2545;
  overflow: hidden;
  box-sizing: border-box;
  background: #F2F2F2;
  display: grid;
  gap: 0;
}
.flier-photo-wrap.layout-1 { grid-template-columns: 1fr; }
.flier-photo-wrap.layout-2 {
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #0B2545;
}
.flier-photo-wrap.layout-3 {
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  background: #0B2545;
}
.flier-photo-wrap.layout-3 > img:first-child { grid-row: 1 / span 2; }
.flier-photo-wrap.layout-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  background: #0B2545;
}
.flier-photo {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  display: block;
}
.flier-qr {
  position: absolute;
  right: 28px;
  bottom: 110px;
  width: 110px;
  background: #FFFFFF;
  border: 1px solid #0B2545;
  border-radius: 6px;
  padding: 8px;
  z-index: 3;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.flier-qr[hidden] { display: none; }
.flier-qr img {
  width: 94px;
  height: 94px;
  display: block;
  margin: 0 auto;
}
.flier-qr-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0B2545;
  margin-top: 4px;
  line-height: 1.1;
}

.public-url-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: inset 2px 0 0 var(--brass), var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.public-url-meta { flex: 1 1 360px; min-width: 0; }
.public-url-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.public-url-row { display: flex; gap: 8px; }
.public-url-link {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--navy);
  word-break: break-all;
  text-decoration: none;
}
.public-url-link:hover { text-decoration: underline; }
.public-url-actions { display: flex; gap: 8px; flex-shrink: 0; }
.public-url-status {
  width: 100%;
  flex-basis: 100%;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.flier-photo-wrap.layout-2 .flier-photo,
.flier-photo-wrap.layout-3 .flier-photo,
.flier-photo-wrap.layout-4 .flier-photo {
  object-fit: contain;
  background: #0B2545;
}
.flier-boat-name {
  margin-top: 60px;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #0B2545;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  padding: 0 40px;
}
.flier-boat-name:empty { display: none; }
.flier-boat-name:empty + .flier-price { margin-top: 60px; }
.flier-price {
  margin-top: 30px;
  font-size: 64px;
  font-weight: 700;
  color: #C8A951;
  text-align: center;
  line-height: 1;
}
.flier-specs {
  margin-top: 30px;
  font-size: 22px;
  font-weight: 400;
  color: #5F5F5F;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.3;
  padding: 0 40px;
}
.flier-specs:empty { display: none; }

.flier-customize {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.flier-customize-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  letter-spacing: -0.005em;
  margin-bottom: 14px;
}
.flier-customize-section { margin-bottom: 14px; }
.flier-customize-section > label,
.flier-customize-grid label {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.flier-customize-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
.flier-customize-grid .flier-customize-full { grid-column: 1 / -1; }
.flier-customize input[type="text"],
.flier-customize select {
  width: 100%;
  font-size: 13px;
  padding: 8px 10px;
}
.flier-customize .price-input::before {
  font-size: 13px;
  left: 10px;
}
.flier-customize .price-input input { padding-left: 22px; }

.flier-photo-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 168px;
  overflow-y: auto;
}
.flier-thumb {
  position: relative;
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
}
.flier-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.flier-thumb.selected { border-color: var(--brass); }
.flier-thumb-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--brass);
  padding: 0 5px;
  border-radius: 9px;
  text-align: center;
  line-height: 18px;
  display: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.flier-thumb.selected .flier-thumb-badge { display: block; }
.flier-thumb.disabled { opacity: 0.4; cursor: not-allowed; }

.flier-selector-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

.flier-branding-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.flier-logo-preview {
  width: 56px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.flier-logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.flier-logo-preview-empty {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.flier-logo-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.flier-logo-upload-btn {
  font-size: 12px;
  padding: 6px 10px;
}
.flier-logo-clear {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  text-align: left;
}
.flier-logo-clear:hover { color: var(--danger); }
.flier-logo-input { display: none; }

.flier-logo {
  max-height: 44px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.flier-tagline {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 4px;
  line-height: 1.2;
}
.flier-bottom-left-stack > div + div,
.flier-bottom-left-stack > img + div { margin-top: 4px; }

.flier-reset-link {
  background: none;
  border: none;
  padding: 0;
  margin: 8px 0 0;
  color: var(--teal);
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
  font-size: 12px;
}
.flier-reset-link:hover { color: var(--navy); }

textarea.output {
  display: block;
  box-sizing: border-box;
  width: 100%;
  resize: none;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  padding: 8px 10px;
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  overflow: hidden;
  transition: border-color 120ms, background 120ms, box-shadow 120ms;
  outline: none;
}
textarea.output:hover { border-color: var(--line); }
textarea.output:focus {
  border-color: var(--navy);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.10);
}
textarea.output.output-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}
