/* Lettlab Vada customer pages: a kennel studbook sheet of heavy matte card, punched for a two-ring binder on the left with a
   hairline margin rule; litters are ruled register entries. The puppy page is the same sheet used as a growth journal.
   Registry teal is the one accent (available status, the waiting-list button, the weight line). */
:root {
  --bg: #e9ece6;
  --ink: #182420;
  --muted: #5d6762;
  --card: #fdfcf8;
  --rule: #d8dcd6;
  --margin: #c7a9a3;
  --teal: #1b5b66;
  --teal-soft: #e3eef0;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
.hide { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }

.sheet-wrap { max-width: 640px; margin: 0 auto; padding: 28px 14px 60px; }
.card-wrap { max-width: 460px; margin: 0 auto; padding: 28px 14px 60px; }
.sheet { position: relative; background: var(--card); padding: 26px 22px 22px 58px; border-radius: 3px; box-shadow: 0 14px 30px -22px #182420aa;
  background-image: linear-gradient(90deg, transparent 44px, var(--margin) 44px, var(--margin) 45px, transparent 45px); }
.ring { position: absolute; left: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 2px #18242040; }
.ring.r1 { top: 70px; } .ring.r2 { bottom: 70px; }
.sheet-head h1, .sheet h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; }
.intro { margin: 8px 0 0; color: var(--muted); white-space: pre-wrap; }
.kennel { margin: 0 0 4px; color: var(--muted); font-weight: 600; }
.flash { margin: 16px 0 0; padding: 10px 12px; background: var(--teal-soft); font-weight: 600; }

/* litters as register entries */
.litter { margin-top: 26px; padding-top: 18px; border-top: 1.5px solid var(--ink); }
.litter h2 { margin: 0; font-size: 22px; font-weight: 800; }
.lt-meta { margin: 2px 0 0; color: var(--muted); }
.parents { margin: 6px 0 0; font-size: 15.5px; }
.parents span { color: var(--muted); }
.parents span + span, .parents span:nth-of-type(2) { margin-left: 10px; }
.lt-notes { margin: 8px 0 0; font-size: 15.5px; white-space: pre-wrap; }
.lt-empty { margin: 10px 0 0; color: var(--muted); }
.register { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 16px; }
.register th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 4px 6px; border-bottom: 1.5px solid var(--ink); }
.register td { padding: 8px 6px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.register td.ph { width: 52px; padding-left: 0; }
.register td.ph img { width: 46px; height: 46px; object-fit: cover; border-radius: 3px; display: block; }
.register td.nm { font-weight: 700; }
.register td.sx { width: 24px; font-size: 18px; color: var(--muted); }
.register td.stt { text-align: right; white-space: nowrap; }
.register td.stt span { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: 3px; border: 1.5px solid var(--rule); color: var(--muted); }
.register tr.st-available td.stt span { border-color: var(--teal); background: var(--teal); color: #fff; }
.register tr.st-reserved td.stt span { border-color: var(--teal); color: var(--teal); }
.register tr.st-sold td { color: var(--muted); }
.none { color: var(--muted); margin-top: 22px; }

/* waiting list form */
.wait-form { margin-top: 30px; padding-top: 18px; border-top: 1.5px solid var(--ink); display: grid; gap: 12px; }
.wait-form h2 { margin: 0; font-size: 22px; }
.hint { margin: -4px 0 0; color: var(--muted); font-size: 14.5px; }
.f { display: grid; gap: 4px; }
.f span { font-size: 14px; color: var(--muted); font-weight: 600; }
.f input, .f select, .f textarea { min-height: 50px; padding: 10px 12px; border: 1.5px solid var(--rule); border-radius: 4px; background: #fff; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } .sheet { padding-left: 46px; background-image: linear-gradient(90deg, transparent 34px, var(--margin) 34px, var(--margin) 35px, transparent 35px); } .ring { left: 9px; } }
/* the register on a phone: a long status goes onto two lines instead of running off the sheet */
@media (max-width: 480px) { .register { font-size: 15px; } .register th, .register td { padding-left: 4px; padding-right: 4px; } .register td.stt { white-space: normal; } .register td.stt span { padding: 2px 6px; } }
.go { min-height: 58px; border: 0; border-radius: 6px; background: var(--teal); color: #fff; font-weight: 700; font-size: 18px; cursor: pointer; }
.sheet-foot { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--rule); display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.sheet-foot b { color: var(--ink); }
.sheet-foot p { margin: 4px 0; }
.sheet-foot a { color: inherit; font-weight: 600; }
.powered { margin-top: 6px; font-size: 12px; }

/* my place in the queue */
.place { margin: 6px 0 0; font-size: 84px; font-weight: 800; line-height: 1; color: var(--teal); font-variant-numeric: tabular-nums; }
.place:empty { display: none; }
.place-line { margin: 6px 0 0; font-size: 21px; font-weight: 800; }
.offer-link { display: grid; gap: 2px; margin-top: 16px; padding: 14px 16px; background: var(--teal); color: #fff; text-decoration: none; border-radius: 4px; }
.offer-link span { opacity: .9; font-size: 15px; }
.offer-link.done { background: var(--teal-soft); color: var(--teal); }
.rows { margin-top: 18px; border-top: 1.5px solid var(--ink); }
.srow { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.srow span { color: var(--muted); font-size: 15px; }
.srow b { font-weight: 600; text-align: right; }
.who { margin: 12px 0 0; color: var(--muted); }
.leave { margin-top: 18px; }
.leave button, .actions button { min-height: 50px; padding: 0 20px; border: 1.5px solid var(--rule); border-radius: 6px; background: transparent; font-weight: 600; cursor: pointer; }

/* growth journal */
.journal h1 { font-size: 34px; }
.meta { margin: 4px 0 0; color: var(--muted); }
.parents:empty { display: none; }
.weight-box { display: flex; align-items: flex-end; gap: 14px; margin-top: 16px; }
.weight-box:has(b:empty) { display: none; }
.spark { flex: 1; height: 64px; }
.spark polyline { fill: none; stroke: var(--teal); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.weight-box b { font-size: 26px; font-weight: 800; color: var(--teal); white-space: nowrap; }
.journal h2 { margin: 26px 0 0; font-size: 20px; padding-bottom: 6px; border-bottom: 1.5px solid var(--ink); }
.entries { list-style: none; margin: 0; padding: 0; }
.entry { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.e-head { margin: 0; font-size: 14px; font-weight: 700; color: var(--teal); }
.entry img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 3px; margin-top: 8px; display: block; }
.entry .weight { margin: 4px 0 0; font-size: 22px; font-weight: 800; }
.e-text { margin: 6px 0 0; white-space: pre-wrap; }
.sigbox { margin-top: 22px; padding: 14px; border: 1.5px dashed var(--ink); }
.sigbox p { margin: 0 0 6px; font-weight: 600; }
.sigbox img { max-width: 260px; width: 100%; display: block; }
.sheet-foot .qr svg { width: 120px; height: 120px; }
.actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.actions button { border-color: var(--ink); }

/* reservation offer */
.offer h1 { font-size: 26px; }
.hello { margin: 8px 0 0; }
.offer-pup { display: flex; gap: 14px; align-items: center; margin-top: 16px; }
.offer-pup img { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; }
.offer-pup div { display: grid; }
.offer-pup b { font-size: 24px; font-weight: 800; }
.offer-pup span { color: var(--muted); }
.msg { margin: 14px 0 0; padding: 10px 12px; background: var(--teal-soft); white-space: pre-wrap; }
.choice { margin-top: 20px; display: grid; gap: 10px; }
.choice p { margin: 0; font-weight: 600; }
.choice button { min-height: 56px; border-radius: 6px; font-weight: 700; cursor: pointer; border: 1.5px solid var(--ink); background: transparent; }
.choice .yes { background: var(--teal); border-color: var(--teal); color: #fff; }
.done { margin: 20px 0 0; padding: 12px 14px; background: var(--teal-soft); font-weight: 600; }
.done.declined, .done.withdrawn { background: #eef0ec; color: var(--muted); }
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 600; margin-top: 10px; }

@media print { body { background: #fff; } .no-print { display: none !important; } .sheet { box-shadow: none; border: 1px solid #999; } .ring { display: none; } }

.powered a { color: inherit; text-decoration: none; }
