:root {
  --pw-bg: #1e2420;
  --pw-paper: #fff;
  --pw-text: #222;
  --pw-accent: #e07a26;
  --pw-muted: #667;
}
* { box-sizing: border-box; }
body.pw {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, #2f4a3c, var(--pw-bg));
  color: #e8f0ea;
  min-height: 100vh;
  padding: 1rem 1rem 3rem;
}
.pw-top { max-width: 820px; margin: 0 auto 1rem; }
.pw-brand-logo {
  display: block;
  max-height: 96px;
  max-width: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 0 .65rem;
  background: #000;
  border-radius: 8px;
}
.pw-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: #9bb5a6; margin: 0 0 .35rem; }
.pw-top h1 { margin: 0; font-size: 1.6rem; }
.pw-kiosk-badge {
  display: inline-block; margin-top: .5rem; padding: .2rem .55rem;
  border-radius: 999px; background: rgba(224,122,38,.25); color: #ffd2a8; font-size: .8rem; font-weight: 700;
}
.pw-errors {
  max-width: 820px; margin: 0 auto 1rem; padding: .85rem 1rem;
  background: #3a1f1f; border: 1px solid #a35a4e; border-radius: 8px; color: #ffd0c8;
}
.pw-form { max-width: 820px; margin: 0 auto; }
.pw-doc {
  background: var(--pw-paper);
  color: var(--pw-text);
  border-radius: 8px;
  padding: 1.35rem 1.4rem 2rem;
  box-shadow: 0 16px 50px rgba(0,0,0,.35);
}
.pw-doc-head { display: flex; gap: 1rem; margin-bottom: 1rem; }
.pw-logo { max-width: 72px; max-height: 96px; width: auto; height: auto; object-fit: contain; background: #000; border-radius: 6px; }
.pw-biz-info { color: #555; font-size: .9rem; margin-top: .25rem; white-space: pre-line; }
.pw-title { text-align: center; font-family: Georgia, serif; font-size: 1.25rem; margin: .5rem 0 1rem; line-height: 1.3; }
.pw-warning {
  background: #fff3f0; border: 1px solid #e0a090; padding: .7rem .85rem;
  border-radius: 4px; margin-bottom: 1rem; font-size: .92rem;
}
.pw-adopt {
  margin: 0 0 1.25rem;
  padding: 1rem 1.05rem;
  border: 2px solid var(--pw-accent);
  border-radius: 8px;
  background: #fff8f1;
  font-family: system-ui, sans-serif;
}
.pw-adopt h3 {
  margin: 0 0 .55rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #8a3d08;
}
.pw-adopt-legal {
  margin: 0 0 .85rem;
  font-size: .9rem;
  line-height: 1.45;
  color: #333;
}
.pw-adopt-fields {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr);
  gap: .65rem;
  margin-bottom: .75rem;
}
@media (max-width: 700px) {
  .pw-adopt-fields { grid-template-columns: 1fr; }
}
.pw-adopt-status { font-size: .88rem; color: #666; font-weight: 600; margin: .35rem 0 0; }
.pw-adopt-status.is-ok { color: #2f7d5c; }
.pw-draw-slot {
  display: grid;
  gap: .3rem;
  margin: .45rem 0;
  padding: .45rem .55rem;
  border: 1px dashed var(--pw-accent);
  border-radius: 6px;
  background: rgba(224,122,38,.08);
  font-family: system-ui, sans-serif;
  max-width: 100%;
}
.pw-draw-slot.is-filled { border-style: solid; background: #fffaf4; }
.pw-draw-slot.is-error { border-color: #c0392b; background: #fff0ee; }
.pw-draw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.pw-draw-label {
  font-size: .78rem;
  font-weight: 700;
  color: #8a3d08;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.pw-draw-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  touch-action: none;
  cursor: crosshair;
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 4px;
}
.pw-draw-canvas.is-locked {
  cursor: pointer;
  background: #fff;
}
.pw-draw-stage {
  position: relative;
  display: grid;
}
.pw-draw-stage .pw-draw-canvas { grid-area: 1 / 1; }
.pw-draw-hint {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  pointer-events: none;
  padding: .35rem .55rem;
  border-radius: 4px;
  background: rgba(255,255,255,.88);
  border: 1px dashed #c07a3a;
  color: #8a3d08;
  font-size: .78rem;
  font-weight: 750;
  text-align: center;
  max-width: 92%;
}
.pw-draw-stamp {
  cursor: pointer;
  user-select: none;
}
.pw-draw-stamp:hover { border-color: #c45a12; background: #fff3e8; }
.pw-draw-stamp.is-filled .pw-draw-hint { display: none; }
.pw-draw-stamp:focus { outline: 2px solid var(--pw-accent); outline-offset: 2px; }
.pw-draw-initial { max-width: 12rem; }
.pw-draw-signature { width: 100%; }
.pw-adopt .pw-draw-slot { margin: 0; }
.pw-mark {
  display: inline-block;
  vertical-align: middle;
  margin: .15rem .2rem;
  padding: .15rem .3rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}
.pw-mark img {
  display: block;
  max-width: 100%;
  height: auto;
}
.pw-mark-initial img { width: 140px; height: 64px; object-fit: contain; }
.pw-mark-signature { display: block; width: 100%; max-width: 420px; margin: .45rem 0; }
.pw-mark-signature img { width: 100%; max-height: 110px; object-fit: contain; }
.pw-mark-empty {
  display: inline-block;
  padding: .25rem .45rem;
  border: 1px dashed #bbb;
  border-radius: 4px;
  color: #888;
  font-size: .8rem;
  font-family: system-ui, sans-serif;
}
.pw-draw-clear,
.pw-draw-reset {
  flex: 0 0 auto;
  border: 1px solid #a35a4e;
  background: #fff;
  border-radius: 4px;
  padding: .28rem .65rem;
  font-size: .78rem;
  font-weight: 750;
  color: #8a2e22;
  cursor: pointer;
  line-height: 1.1;
}
.pw-draw-clear:hover,
.pw-draw-reset:hover {
  background: #fff0ee;
  border-color: #8a2e22;
}
.pw-body { font-family: Georgia, "Times New Roman", serif; line-height: 1.45; font-size: .98rem; }
.pw-body p { margin: 0 0 .85rem; }
.pw-token {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem;
  margin: .25rem .15rem; padding: .35rem .5rem; border-radius: 6px;
  border: 1px dashed var(--pw-accent); background: rgba(224,122,38,.08);
  font-family: system-ui, sans-serif; font-size: .82rem; font-weight: 650; color: #8a3d08;
}
.pw-body .pw-draw-slot { display: inline-grid; vertical-align: middle; }
.pw-body .pw-draw-signature { display: grid; width: 100%; margin: .65rem 0; }
.pw-section { margin-top: 1.35rem; padding-top: 1rem; border-top: 1px solid #ddd; font-family: system-ui, sans-serif; }
.pw-section h3 { margin: 0 0 .75rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; color: #555; }
.pw-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; }
.pw-span2 { grid-column: 1 / -1; }
@media (max-width: 700px) { .pw-grid { grid-template-columns: 1fr; } .pw-span2 { grid-column: auto; } }
.pw-section label, .pw-grid label {
  display: grid; gap: .25rem; font-size: .82rem; color: #555; font-weight: 600;
}
.pw-section input[type="text"],
.pw-section input[type="email"],
.pw-section input[type="tel"],
.pw-section input[type="date"],
.pw-grid input {
  border: 1px solid #bbb; border-radius: 4px; padding: .55rem .65rem;
  font-size: 1rem; font-weight: 500; color: #222; background: #fafafa;
}
.pw-check { display: flex !important; gap: .55rem; align-items: flex-start; margin: .45rem 0; font-size: .92rem; color: #333; font-weight: 500 !important; }
.pw-upload {
  border: 1px dashed #999; border-radius: 8px; padding: .85rem; margin: .55rem 0; background: #f7f7f7;
}
.pw-muted { color: var(--pw-muted); font-size: .88rem; }
.pw-muted.tiny { font-size: .8rem; }
.pw-actions { margin-top: 1.5rem; text-align: center; }
.pw-submit {
  display: inline-block; border: 0; border-radius: 8px; padding: .85rem 1.4rem;
  background: var(--pw-accent); color: #fff; font-weight: 800; font-size: 1.05rem; cursor: pointer;
  text-decoration: none;
}
.pw-submit:hover { filter: brightness(1.05); }
.pw-done { max-width: 560px; margin: 3rem auto; text-align: center; }
.pw-done h1 { margin: 0 0 .5rem; }
.waiver-lookup {
  max-width: 640px;
  margin: 0 auto 1.25rem;
  padding: 1rem 1.15rem 1.15rem;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.waiver-lookup h2 { margin: 0 0 .4rem; font-size: 1.15rem; }
.waiver-lookup > p { margin: 0 0 .35rem; color: #c8d6ce; font-size: .92rem; }
.waiver-lookup-prompt { margin: 0 0 .85rem; font-weight: 800; color: #f1c40f; }
.waiver-lookup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-bottom: .85rem;
}
@media (max-width: 640px) { .waiver-lookup-grid { grid-template-columns: 1fr; } }
.waiver-lookup label {
  display: grid;
  gap: .25rem;
  font-size: .82rem;
  font-weight: 600;
  color: #9bb5a6;
}
.waiver-lookup input {
  border: 1px solid #4a5c52;
  border-radius: 6px;
  padding: .55rem .65rem;
  font-size: 1rem;
  color: #111;
  background: #fff;
}
.waiver-lookup .pw-submit { margin-top: .15rem; }
.waiver-lookup-result {
  margin: .85rem 0 0;
  padding: .75rem .85rem;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1.4;
}
.waiver-lookup-result.is-yes { background: #1f4a32; color: #d6ffe8; border: 1px solid #3d8a5e; }
.waiver-lookup-result.is-no { background: #3a2a14; color: #ffe7b8; border: 1px solid #b8862a; }
.waiver-lookup-error { margin: .65rem 0 0; color: #ffd0c8; font-weight: 600; }
.pw-list { max-width: 640px; margin: 0 auto; display: grid; gap: .75rem; }
.pw-list-card {
  display: grid; gap: .25rem; padding: 1rem 1.15rem; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: #e8f0ea; text-decoration: none;
}
.pw-list-card span { color: #9bb5a6; font-size: .9rem; }
.pw-list-card:hover { border-color: var(--pw-accent); }
.pw-existing-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(440px, calc(100vw - 2rem));
}
.pw-existing-dialog::backdrop {
  background: rgba(12, 18, 14, .62);
}
.pw-existing-card {
  background: #fff;
  color: #222;
  border-radius: 10px;
  padding: 1.25rem 1.35rem 1.15rem;
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
  font-family: system-ui, sans-serif;
}
.pw-existing-card h2 {
  margin: 0 0 .65rem;
  font-size: 1.15rem;
  color: #1e2420;
}
.pw-existing-msg {
  margin: 0 0 .45rem;
  font-size: .98rem;
  line-height: 1.45;
  color: #333;
}
.pw-existing-sub {
  margin: 0 0 1.1rem;
  font-size: .9rem;
  color: #555;
  line-height: 1.4;
}
.pw-existing-actions {
  display: flex;
  gap: .65rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.pw-existing-cancel,
.pw-existing-continue {
  border-radius: 8px;
  padding: .65rem 1.1rem;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
}
.pw-existing-cancel {
  border: 1px solid #bbb;
  background: #f4f4f4;
  color: #333;
}
.pw-existing-continue {
  border: 0;
  background: var(--pw-accent, #e07a26);
  color: #fff;
}
.pw-minor-bring {
  border-top: 2px solid var(--pw-accent, #e07a26);
  background: #fff8f1;
  margin-left: -0.35rem;
  margin-right: -0.35rem;
  padding: 1rem 1rem 1.15rem;
  border-radius: 8px;
}
.pw-bring-choice {
  border: 0;
  margin: 0 0 .85rem;
  padding: 0;
}
.pw-bring-choice legend {
  font-weight: 700;
  margin-bottom: .55rem;
  color: #333;
}
.pw-bring-other-fields {
  margin-top: .5rem;
  padding-top: .75rem;
  border-top: 1px dashed #e0a878;
}
.pw-bring-ack {
  margin: .85rem 0 .65rem;
  font-weight: 600;
}
body.pw.is-kiosk .pw-doc { max-width: 920px; margin: 0 auto; font-size: 1.05rem; }
body.pw.is-kiosk .pw-token input,
body.pw.is-kiosk .pw-grid input { font-size: 1.1rem; padding: .7rem .8rem; }

.site-copyright {
  margin: 1.5rem auto 0;
  padding: 1rem 1.25rem 1.5rem;
  text-align: center;
  font-size: .68rem;
  line-height: 1.45;
  color: var(--pw-muted, #667);
  opacity: .8;
  max-width: 720px;
}
body.park-host > header.park-nav {
  display: flex !important;
  flex-wrap: wrap !important;
  position: relative !important;
  z-index: 2000 !important;
  visibility: visible !important;
}
