/* Paleta WideScope: tekst #141414, szarości #6D6D6D / #E1E6ED / #EAE9E5, biel; czerwony #DB2A48 tylko jako akcent. */
:root {
  --bg: #ffffff; --ink: #141414; --muted: #6d6d6d; --soft: #e1e6ed; --soft2: #eae9e5;
  --red: #db2a48; --red-dark: #940000; --line: #e1e6ed; --card: #ffffff;
}
* { box-sizing: border-box; }
body { margin: 0; font: 18px/1.5 "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; background: var(--bg); color: var(--ink); }
main { max-width: 640px; margin: 0 auto; padding: 16px; }
a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--red-dark); }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 0.6em 0 0.4em; font-weight: 700; }
h2 { font-size: 1.2rem; margin: 0 0 0.3em; font-weight: 700; }
.top { background: var(--muted); color: #fff; padding: 8px 16px; display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; border-bottom: 4px solid var(--red); }
.top a, .top .link { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.45); }
.top a:hover { color: #fff; text-decoration-color: var(--red); }
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none !important; display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.02em; }
.brand img { width: 46px; height: 36px; background: #fff; border-radius: 8px; padding: 2px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.foot { max-width: 640px; margin: 28px auto 24px; padding: 14px 16px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; text-align: center; }
.foot .support { margin: 6px 0 0; font-weight: 600; color: var(--ink); }
.foot .wslogo { display: inline-block; margin-top: 4px; }
.foot .wslogo img { display: block; width: 130px; height: auto; }
.hero { display: flex; align-items: center; gap: 16px; margin: 8px 0 0; }
.hero img { width: 150px; flex: none; }
.hero h1 { margin: 0; }
.lead { font-size: 1.1rem; }
.hint { color: var(--muted); font-size: 0.9rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 20px 0; }
.stack { display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: 0.95rem; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
input, textarea, select { font: inherit; padding: 10px; border: 1px solid #9898b1; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--ink); }
button, .btn { font: inherit; font-size: 0.95rem; font-weight: 700; padding: 7px 14px; border: 2px solid var(--red); border-radius: 8px; background: var(--red); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { background: #b81e3a; border-color: #b81e3a; color: #fff; }
button.big { padding: 8px 16px; font-size: 1rem; }
button.danger { background: #fff; color: var(--red-dark); border-color: var(--red-dark); }
button.danger:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
button.danger:hover { background: var(--red-dark); color: #fff; }
.btn.alt { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn.alt:hover { background: var(--soft); border-color: var(--ink); color: var(--ink); }
button.link { background: none; border: 0; color: var(--ink); padding: 6px 0; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; font-weight: 600; }
button.link:hover { background: none; color: var(--red-dark); }
.top button.link { color: #fff; }
.top button.link:hover { color: #fff; }
form.inline { display: inline; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.flash { padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.flash.ok { background: var(--soft); border-left: 5px solid var(--ink); }
.flash.err { background: #fbe9ec; color: var(--red-dark); border-left: 5px solid var(--red); }
.dog { display: grid; grid-template-columns: 96px 1fr; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 14px 0; }
.dog.blocked { border-color: var(--red-dark); background: #fdf3f4; }
.photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--soft); }
.photo.none { object-fit: contain; padding: 6px; }
.dog .photo { width: 96px; height: 96px; aspect-ratio: auto; }
.dogbody h2 { margin: 0; }
.info { margin: 4px 0; color: var(--muted); font-size: 0.95rem; }
.counts { margin: 6px 0 10px; }
.stop { color: var(--red-dark); font-weight: 800; margin: 6px 0; }
.stop span { display: block; font-weight: 500; color: var(--ink); }
.list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.list li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.list .kennel { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.list .kennel .photo { width: 56px; flex: none; }
.list .kennel span { color: var(--muted); font-size: 0.9rem; }
.list .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tag { background: var(--red-dark); color: #fff !important; padding: 2px 8px; border-radius: 6px; font-weight: 700; }
.ranking { list-style: none; padding: 0; display: grid; gap: 8px; }
.rank { display: grid; grid-template-columns: 32px 64px 1fr auto; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; text-decoration: none; color: var(--ink); }
.rank:hover { background: #f6f7f9; color: var(--ink); }
.rank .pos { font-weight: 800; color: var(--red); font-size: 1.4rem; text-align: center; }
.rank .photo { width: 64px; }
.rname { display: grid; }
.rname span { color: var(--muted); font-size: 0.9rem; }
.rcounts { text-align: right; font-size: 0.85rem; color: var(--muted); }
.steps { padding-left: 1.2em; } .steps li { margin: 12px 0; }
/* Karta QR do wydruku */
.sheet { text-align: center; background: #fff; border: 2px dashed #9898b1; border-radius: 14px; padding: 24px; margin: 16px 0; }
.sheet-big { font-size: 3.2rem; font-weight: 900; margin: 0; line-height: 1.1; }
.sheet .qr svg { width: min(100%, 360px); height: auto; margin: 12px auto; display: block; }
.sheet-line { font-size: 1.4rem; font-weight: 700; margin: 6px 0; }
.sheet-url { color: var(--muted); font-size: 0.75rem; word-break: break-all; }
/* Telefon: elementy dotykowe min. 44 px (zalecenie WCAG / Apple / Google) */
@media (max-width: 600px), (pointer: coarse) {
  button, .btn { min-height: 44px; padding: 10px 18px; font-size: 1rem; }
  button.big { min-height: 48px; }
  button.link { min-height: 44px; padding: 10px 4px; }
  .top nav a, .top nav button.link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  .brand { min-height: 44px; }
  .rank { min-height: 64px; }
  .list .kennel { min-height: 44px; }
  input, select { min-height: 44px; }
}
@media (max-width: 420px) { .hero img { width: 110px; } .hero h1 { font-size: 1.4rem; } }
@media print {
  .top, .foot, .noprint { display: none !important; }
  body { background: #fff; }
  main { max-width: none; padding: 0; }
  .sheet { border: 0; padding: 0; }
  .sheet-big { font-size: 6rem; }
  .sheet .qr svg { width: 15cm; }
  .sheet-line { font-size: 2rem; }
}
