.pf-paper {
  box-sizing: border-box;
  width: 11in;
  height: 8.5in;
  padding: .22in .32in .2in;
  display: flex;
  flex-direction: column;
  gap: .07in;
  overflow: hidden;
  color: #0A1931;
  background: #fff;
  font-family: 'Inter', sans-serif;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.pf-summary-header {
  min-height: .45in;
  padding-bottom: .06in;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .2in;
  border-bottom: 2px solid #2C5EBD;
}
.pf-summary-brand { display: flex; align-items: center; gap: .08in; }
.pf-summary-brand img { width: .36in; height: .36in; border: 1px solid #CBD5E1; border-radius: .055in; object-fit: cover; }
.pf-summary-brand strong { color: #0A1931; font-size: 14pt; line-height: 16pt; }
.pf-summary-header-actions { display: flex; align-items: center; gap: .06in; }
.pf-summary-header-qr { width: .37in; height: .37in; padding: .018in; border: 1px solid #D8E0EA; border-radius: .035in; background: #FFFFFF; }
.pf-summary-header-url { color: #2C5EBD; font: 700 6pt/8pt 'JetBrains Mono', monospace; }
.pf-summary-resort {
  min-height: .72in;
  padding: .07in .11in;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.8in;
  align-items: center;
  gap: .13in;
  border: 1px solid #D8E0EA;
  border-radius: .08in;
  background: #FFFFFF;
}
.pf-summary-resort-copy { min-width: 0; }
.pf-summary-resort-title-line { min-width: 0; display: flex; align-items: center; gap: .075in; }
.pf-summary-resort h1 { min-width: 0; margin: 0; overflow: hidden; color: #0A1931; font-size: 17pt; font-weight: 800; line-height: 19pt; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.pf-summary-resort-title-line > span:last-child { margin-left: .045in; color: #475569; font: 600 6.3pt/8pt 'JetBrains Mono', monospace; white-space: nowrap; }
.pf-summary-resort p { margin: .018in 0 0; color: #515F7A; font-size: 6.8pt; line-height: 8pt; }
.pf-summary-resort .pf-summary-location { display: flex; align-items: center; gap: .04in; }
.pf-summary-location .pf-country-flag-emoji { min-width: .08in; font-size: 4.5pt; }
.pf-summary-location .pf-country-flag-wrap { width: .09in; height: .067in; border-radius: .01in; }
.pf-summary-resort .pf-summary-times { color: #64748B; font: 500 5.2pt/7pt 'JetBrains Mono', monospace; }
.pf-summary-totals { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pf-summary-total { min-width: 0; padding: 0 .06in; display: flex; flex-direction: column; border-left: 1px solid #E2E8F0; }
.pf-summary-total:first-child { border-left: 0; }
.pf-summary-total span { color: #64748B; font: 700 5.8pt/8pt 'JetBrains Mono', monospace; letter-spacing: .035em; text-transform: uppercase; white-space: nowrap; }
.pf-summary-total strong { margin-top: .015in; font-size: 19pt; line-height: 21pt; }
.pf-summary-daily, .pf-summary-detail {
  padding: .075in .1in .085in;
  border: 1px solid #D8E0EA;
  border-radius: .08in;
  background: #FFFFFF;
  break-inside: avoid;
}
.pf-summary-daily { height: 1.05in; flex-shrink: 0; display: flex; flex-direction: column; }
.pf-summary-section-heading { min-height: .19in; display: flex; align-items: baseline; justify-content: space-between; gap: .14in; }
.pf-summary-section-heading h2 { margin: 0; color: #0A1931; font-size: 9.5pt; line-height: 12pt; }
.pf-summary-section-heading span { color: #64748B; font: 500 5.2pt/7pt 'JetBrains Mono', monospace; text-align: right; }
.pf-summary-bars { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: stretch; gap: .06in; }
.pf-summary-bar-column { min-width: 0; display: grid; grid-template-rows: .18in 1fr .12in .11in; justify-items: center; align-items: end; }
.pf-summary-bar-column > strong { align-self: center; font: 700 7pt/9pt 'JetBrains Mono', monospace; }
.pf-summary-bar-track { position: relative; width: 58%; height: 100%; border-bottom: 1px solid #CBD5E1; }
.pf-summary-bar-track > span { position: absolute; right: 0; bottom: 0; left: 0; min-height: .04in; border-radius: .025in .025in 0 0; }
.pf-summary-bar-column > b { color: #0A1931; font-size: 6.5pt; line-height: 8pt; }
.pf-summary-bar-column > small { color: #64748B; font: 500 5pt/6pt 'JetBrains Mono', monospace; white-space: nowrap; }
.pf-summary-detail { min-height: 0; padding-top: .045in; flex: 1; display: flex; flex-direction: column; }
/* Always print the detailed grid with a readable light palette. */
#app .pf-paper .wxg-host {
  --wxg-text: #1E293B !important; --wxg-strong: #0A1931 !important;
  --wxg-muted: #64748B !important; --wxg-border: #E2E8F0 !important;
  --wxg-border-strong: #CBD5E1 !important; --wxg-head: #F1F5F9 !important;
  --wxg-night: #F1F5F9 !important; --wxg-accent: #2C5EBD !important;
  --wxg-line: #64748B !important; --wxg-warm: #EA580C !important;
  --wxg-cold: #2563EB !important; --wxg-surface: #FFFFFF !important;
}
.pf-summary-detail > .wxg-host { margin-top: .035in; }
.pf-summary-detail .wxg-table { max-width: 100%; font-size: 8pt; }
.pf-summary-detail .wxg-table th, .pf-summary-detail .wxg-table td { height: 28px; }
.pf-summary-detail .wxg-label { font-size: 6.5pt; }
.pf-summary-detail .wxg-label small { font-size: 6pt; }
.pf-summary-detail .wxg-date td { height: 26px; font-size: 7pt; letter-spacing: 0; }
.pf-summary-detail .wxg-icon-row td { height: 40px; }
.pf-summary-detail .wxg-snow-row td { height: 60px; }
.pf-summary-detail .wxg-snow b { font-size: 9pt; }
.pf-summary-detail .wxg-line-row td { height: 66px; }
.pf-summary-detail-note, .pf-summary-empty { margin: .045in 0 0; color: #64748B; font: 500 5.5pt/8pt 'JetBrains Mono', monospace; }
.pf-summary-footer { min-height: .19in; display: flex; align-items: center; justify-content: space-between; gap: .14in; color: #64748B; font: 500 5pt/7pt 'JetBrains Mono', monospace; }
.pf-summary-footer span:first-child { color: #2C5EBD; font-weight: 700; white-space: nowrap; }
.pf-summary-footer span:last-child { max-width: 4.4in; text-align: right; }
#forecast-share-sheet { display: none; }

#forecast-print-dialog {
  margin: auto; width: min(96vw, 960px); max-width: 96vw; max-height: 94dvh;
  padding: 0; border: 1px solid #334760; border-radius: 16px;
  background: #122038; color: #f8fafc; box-shadow: 0 30px 90px #050d2080;
}
#forecast-print-dialog[open] { display: flex; flex-direction: column; }
#forecast-print-dialog::backdrop { background: rgb(5 14 30 / 75%); }
.pf-print-toolbar, .pf-print-actions { display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.pf-print-toolbar { justify-content: space-between; }
.pf-print-toolbar h2 { font: 700 21px/1.2 Inter,sans-serif; letter-spacing: -.035em; }
.pf-print-context, .pf-print-actions > span { font: 500 12px/1.4 'JetBrains Mono',monospace; color: #c1d2e8; }
.pf-print-context { margin-top: 4px; }
#forecast-print-dialog button { border: 1px solid #536783; border-radius: 7px; padding: 7px 12px; font-weight: 600; }
#forecast-print-dialog button:focus-visible { outline: 2px solid #a9cfff; outline-offset: 2px; }
.pf-print-toolbar button { font-size: 22px; line-height: 1; }
.pf-print-desk { min-height: 0; overflow: auto; padding: clamp(8px, 2vw, 24px); background: #d5deea; }
.pf-print-viewport { width: 100%; }
.pf-print-viewport .pf-paper { margin: 0 auto; box-shadow: 0 3px 12px #1e344c33; color-scheme: light; }
.pf-print-actions { flex-wrap: wrap; font-size: 13px; }
.pf-print-actions > span { margin-right: auto; }
#forecast-print-dialog .pf-print-submit { color: #09244d; background: #acd2ff; border-color: #acd2ff; }
@media (max-width: 480px) {
  .pf-print-actions, .pf-print-toolbar { gap: 8px; padding: 12px; }
  .pf-print-actions > span { font-size: 10px; }
}
