:root { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #111827; background: #f3f4f6; }
* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0; }
.shell.narrow { width: min(720px, calc(100% - 32px)); }
.card { background: white; border: 1px solid #e5e7eb; border-radius: 24px; padding: 24px; margin-bottom: 20px; box-shadow: 0 18px 50px rgba(17,24,39,.08); }
.card.soft { background: #f8fafc; box-shadow: none; }
.hero { display: flex; justify-content: space-between; gap: 24px; background: linear-gradient(135deg, #111827, #064e3b); color: white; }
.hero p { color: #d1d5db; max-width: 720px; }
.claim-hero { display: block; }
.eyebrow { color: #10b981; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1; margin: 0 0 14px; }
h2 { margin-top: 0; }
.stats { display: grid; grid-template-columns: auto auto; gap: 4px 12px; align-content: center; }
.stats strong { font-size: 42px; }
.stats span { color: #a7f3d0; align-self: center; }
.row, .stack, .admin-form { display: grid; gap: 14px; }
.row { grid-template-columns: 160px 1fr auto; align-items: end; }
.admin-form { grid-template-columns: 1.3fr 140px 1fr auto; align-items: end; }
label { display: grid; gap: 7px; font-weight: 750; }
input { border: 1px solid #d1d5db; border-radius: 14px; padding: 12px 14px; font: inherit; }
input, select, textarea { width: 100%; max-width: 100%; min-width: 0; }
button, .actions a { border: 0; border-radius: 999px; padding: 12px 18px; background: #111827; color: white; font-weight: 850; text-decoration: none; cursor: pointer; display: inline-block; }
.hero-actions { align-self: center; justify-content: flex-end; }
.hero-actions a { background: #ecfdf5; color: #065f46; }
.list { display: grid; gap: 12px; }
.item { display: flex; justify-content: space-between; gap: 18px; border: 1px solid #e5e7eb; border-radius: 18px; padding: 14px; }
.item p { color: #6b7280; margin: 6px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; justify-content: flex-end; }
.actions a { background: #ecfdf5; color: #065f46; padding: 9px 13px; }
.muted { color: #6b7280; }
code { background: #f3f4f6; padding: 2px 6px; border-radius: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; border-bottom: 1px solid #e5e7eb; padding: 10px; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #6b7280; }
.print-shell { width: min(1180px, calc(100% - 24px)); }
.print-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.print-label { break-inside: avoid; border: 1px dashed #9ca3af; border-radius: 16px; padding: 12px; display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; background: white; }
.print-label img { width: 96px; height: 96px; image-rendering: pixelated; }
.print-label strong, .print-label code, .print-label small { display: block; overflow-wrap: anywhere; }
.print-label small { color: #6b7280; font-size: 10px; }
@media (max-width: 900px) { .admin-form { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .hero, .item { flex-direction: column; } .row { grid-template-columns: 1fr; } }
@media print {
  :root { background: white; }
  .no-print { display: none !important; }
  .shell, .print-shell { width: 100%; margin: 0; padding: 0; }
  .print-sheet { grid-template-columns: repeat(2, 1fr); gap: 8mm; }
  .print-label { box-shadow: none; border: 1px solid #111827; border-radius: 4mm; page-break-inside: avoid; }
  a { color: inherit; }
}

select { border: 1px solid #d1d5db; border-radius: 14px; padding: 12px 42px 12px 14px; font: inherit; background: white; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-fields { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.contact-link { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 18px; text-decoration: none; color: #111827; background: #ecfdf5; border: 1px solid #a7f3d0; }
.contact-link span { color: #047857; overflow-wrap: anywhere; text-align: right; }
.user-landing .shell.narrow { width: min(648px, calc(90% - 16px)); }
.user-landing.landing-dark { background: radial-gradient(circle at top left, #0f766e, #020617 58%); min-height: 100vh; }
.user-landing.landing-sunset { background: linear-gradient(135deg, #312e81, #db2777 48%, #f97316); min-height: 100vh; }
.user-landing.landing-forest { background: linear-gradient(135deg, #052e16, #166534 52%, #84cc16); min-height: 100vh; }
.user-landing.landing-clean { background: linear-gradient(135deg, #f8fafc, #dbeafe); min-height: 100vh; }
.user-landing .card { background: rgba(255,255,255,.66); backdrop-filter: blur(8px); }
.user-landing .hero { background: rgba(17,24,39,.62); backdrop-filter: blur(8px); }

.user-landing.landing-mushroom-illustrated { background: url('/static/backgrounds/mushroom-illustrated.png') center/cover fixed; min-height: 100vh; }
.user-landing.landing-forest-watercolor { background: url('/static/backgrounds/forest-watercolor.png') center/cover fixed; min-height: 100vh; }
.user-landing.landing-psychedelic-shroom { background: #17051f url('/static/backgrounds/psychedelic-shroom.png') center/82vmin 82vmin fixed no-repeat; min-height: 100vh; }
.user-landing.landing-kaleidoscope-mandala { background: url('/static/backgrounds/kaleidoscope-mandala.png') center/cover fixed; min-height: 100vh; }
.user-landing.landing-outrun-sunset { background: url('/static/backgrounds/outrun-sunset.png') center/cover fixed; min-height: 100vh; }

.user-landing .hero.claim-hero { background: rgba(2, 6, 23, .52); backdrop-filter: blur(8px); }
.user-landing .contact-link { background: rgba(255,255,255,.63); backdrop-filter: blur(6px); }

.qr-preview-wrap { display: flex; justify-content: center; padding: 18px; }
.qr-preview { width: min(320px, 80vw); height: auto; image-rendering: pixelated; border-radius: 18px; border: 1px solid #e5e7eb; background: #fff; padding: 14px; }
.qr-preview-card .actions { justify-content: center; }

@media (max-width: 520px) {
  .shell, .shell.narrow { width: min(100% - 16px, 720px); padding: 10px 0 18px; }
  .user-landing .shell.narrow { width: min(90%, 648px); }
  .card { border-radius: 18px; padding: 16px; margin-bottom: 12px; }
  h1 { font-size: clamp(28px, 10vw, 40px); overflow-wrap: anywhere; }
  h2 { font-size: 22px; }
  label { gap: 6px; }
  input, select, textarea { font-size: 16px; }
  .inline-fields { grid-template-columns: minmax(84px, 32%) minmax(0, 1fr); gap: 8px; }
  .actions { justify-content: stretch; }
  .actions a, .actions button, button { width: 100%; text-align: center; }
  .contact-link { flex-direction: column; align-items: flex-start; }
  .contact-link span { text-align: left; }
}
