:root {
  --brand: #0E2A47;
  --accent: #D96B43;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #EAE5DC;
  color: var(--brand);
}

.print-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #DDD5C8;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.pt-left, .pt-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
}
.pt-primary { background: var(--brand); color: #fff; }
.pt-ghost { background: #F5F1EA; color: var(--brand); border-color: #DDD5C8; }
.pt-select-wrap { font-size: 0.88rem; color: #526170; display: flex; align-items: center; gap: 6px; }
.pt-select-wrap select { padding: 7px 10px; border-radius: 8px; border: 1px solid #DDD5C8; font-family: inherit; }

.standee-stage {
  padding: 32px 16px 56px;
  display: flex;
  justify-content: center;
}

.standee {
  background: #FAF8F4;
  border: 1px solid #DFD7CA;
  box-shadow: 0 24px 60px rgba(14, 42, 71, 0.16);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  text-align: center;
}

.standee.size-a5 {
  width: 148mm;
  height: 209mm;
  padding: 9mm 11mm 7mm;
  border-radius: 6px;
}

.standee.size-a4 {
  width: 210mm;
  height: 296mm;
  padding: 15mm 18mm 12mm;
  border-radius: 6px;
}

.standee-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6mm;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
}

.standee-header { padding-top: 4mm; }
.standee-logo { max-height: 14mm; margin: 0 auto 3mm; object-fit: contain; }
.standee-emblem { font-size: 20pt; color: var(--accent); line-height: 1; margin-bottom: 2mm; }
.standee-kicker {
  margin: 0 0 1.5mm;
  font-size: 7pt;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--accent);
}
.standee-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21pt;
  margin: 0 0 1.5mm;
  color: var(--brand);
  line-height: 1.15;
}
.standee.size-a4 .standee-title { font-size: 30pt; }
.standee-sub { margin: 0; font-size: 9pt; color: #5C6B7A; }

.standee-qr-block {
  margin: 3mm 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.qr-frame {
  background: #fff;
  padding: 3.5mm;
  border-radius: 14px;
  border: 2px solid var(--brand);
  box-shadow: 0 8px 24px rgba(14, 42, 71, 0.08);
  display: inline-block;
}
.qr-frame svg { display: block; width: 48mm; height: 48mm; }
.standee.size-a4 .qr-frame svg { width: 74mm; height: 74mm; }

.qr-cta {
  margin: 3mm 0 1mm;
  font-size: 11pt;
  font-weight: 700;
  color: var(--brand);
}
.standee.size-a4 .qr-cta { font-size: 15.5pt; }
.qr-cta-sub { margin: 0 0 1.5mm; font-size: 7.5pt; color: #5C6B7A; }
.qr-url {
  margin: 0;
  font-family: ui-monospace, monospace;
  font-size: 8.5pt;
  color: var(--accent);
  font-weight: 600;
}

.standee-wifi {
  display: flex;
  align-items: center;
  gap: 4.5mm;
  background: #fff;
  border: 1px solid #E2DACE;
  border-radius: 12px;
  padding: 3mm 4mm;
  text-align: left;
}
.sw-qr svg { width: 20mm; height: 20mm; display: block; }
.standee.size-a4 .sw-qr svg { width: 30mm; height: 30mm; }
.sw-label {
  font-size: 7.5pt;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1mm;
}
.sw-row { font-size: 8.8pt; color: #526170; margin-bottom: 0.8mm; }
.standee.size-a4 .sw-row { font-size: 11.5pt; }
.sw-row strong {
  font-family: ui-monospace, monospace;
  color: var(--brand);
}

.standee-footer {
  border-top: 1px solid #E2DACE;
  padding-top: 2.5mm;
  margin-top: 3mm;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7.5pt;
  color: #5C6B7A;
}
.standee-wm { font-weight: 600; color: var(--brand); }

@media print {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: 100%;
    background: #fff !important;
    overflow: hidden;
  }
  .no-print { display: none !important; }
  .standee-stage {
    padding: 0 !important;
    margin: 0 !important;
    display: block;
  }
  .standee {
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    break-inside: avoid;
    page-break-inside: avoid;
    page-break-after: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .standee.size-a5 { width: 148mm; height: 208mm; max-height: 208mm; }
  .standee.size-a4 { width: 210mm; height: 295mm; max-height: 295mm; }
}
