/* Portal wystawcy — układy ekranów A1–A6 (docs/design/HANDOFF.md). Komponenty bazowe: static/css/ds.css. */

/* ---------- Wspólne ---------- */
.p-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 10px 0 14px; }
.p-head h1 { font-size: 30px; }
.p-head .segmented a { min-height: 40px; display: inline-flex; align-items: center; }
.p-section { margin-top: 24px; }
.p-section > h2 { font-size: 20px; margin-bottom: 10px; }
.p-h2 { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.p-empty { text-align: center; padding: 32px 16px; }
.p-empty p { margin: 0 0 16px; color: var(--ds-muted); }
.p-empty--launch { padding: 40px 20px; }
.p-empty--launch h2 { margin: 0 0 10px; }
.p-empty--launch p { max-width: 520px; margin-inline: auto; margin-bottom: 20px; }
.p-meta { font-size: 13px; color: var(--ds-muted); margin-top: 3px; }
.p-link { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; }
.p-rank { font-weight: 800; font-size: 11px; letter-spacing: .06em; padding: 4px 8px; border-radius: 3px; text-transform: uppercase;
  background: var(--ds-navy); color: #fff; line-height: 1.1; }
.p-rank--international, .p-rank--european, .p-rank--world { background: var(--ds-blue); }
.p-tag { font-weight: 700; font-size: 11px; padding: 4px 8px; border-radius: 3px; background: #fff; color: #0B1426; line-height: 1.1; }
.p-tag--open { background: var(--ds-ok-bg); color: var(--ds-ok-text); }
.p-tag--closed { background: var(--ds-neutral-bg); color: var(--ds-ink); }
/* Wystawa odwołana (0.15.0): czerwony znacznik, powód pod nazwą w kalendarzu, ramka na stronie wystawy. */
.p-tag--cancelled { background: var(--ds-red-bg); color: var(--ds-red-text); text-transform: uppercase; letter-spacing: .04em; }
.pill--cancelled { background: var(--ds-red-bg); color: var(--ds-red-text); font-size: 12px; padding: 3px 8px; text-transform: uppercase; letter-spacing: .04em; }
.pill--cancelled::before { display: none; }
.p-show__why { display: block; margin-top: 4px; font-size: 12px; color: var(--ds-red-text); overflow-wrap: anywhere; }
.p-cancelled { margin: 12px 0 4px; padding: 12px 14px; border-radius: 10px; background: var(--ds-red-bg); color: var(--ds-red-text);
  border: 1px solid currentColor; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.p-photo-ph { background: linear-gradient(135deg, var(--ds-navy), var(--ds-ring)); display: grid; place-items: center; color: rgba(255,255,255,.55); }
.p-photo-ph .rosette { font-size: 44px; opacity: .6; }
.p-back { position: absolute; top: 12px; left: 14px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.95);
  display: grid; place-items: center; font-size: 20px; font-weight: 700; color: #0B1426; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.p-fav { width: 48px; height: 48px; border-radius: 8px; border: 0; background: transparent; box-shadow: inset 0 0 0 2px var(--ds-navy);
  color: var(--ds-navy); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; flex: none; }
.p-fav[aria-pressed="true"] { background: var(--ds-red-bg); color: #C8322B; box-shadow: inset 0 0 0 2px #C8322B; }
.p-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; margin: 0; }
.p-dl dt { color: var(--ds-muted); }
.p-dl dd { margin: 0; font-weight: 700; }

/* Obraz nagłówka wystawy (0.15.1, templates/portal/_show_visual.html): zdjęcie organizatora, ilustracja AI albo
   placeholder — granat z dużą rozetą RingPass (dekoracja) oraz miasto i daty dużym krojem. */
.p-visual { position: absolute; inset: 0; width: 100%; height: 100%; }
img.p-visual { object-fit: cover; }
.p-visual--ai picture, .p-visual--ai img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.p-visual--ph { overflow: hidden; color: #fff; display: flex; align-items: flex-end;
  background: radial-gradient(120% 90% at 85% 20%, #2A5D8F 0%, transparent 60%), linear-gradient(135deg, var(--ds-ink) 0%, #13284A 55%, #1F4E79 100%); }
.p-visual__mark { position: absolute; right: -6%; top: 50%; width: auto; height: 150%; transform: translateY(-50%) rotate(-8deg);
  opacity: .1; pointer-events: none; }
.p-visual__text { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 0 16px 16px; min-width: 0; max-width: 100%; }
.p-visual__city { font-family: var(--ds-font-display, inherit); font-weight: 900; font-stretch: 125%; font-size: 30px; line-height: 1;
  letter-spacing: -0.02em; overflow-wrap: anywhere; }
.p-visual__dates { font: 700 13px/1.2 var(--ds-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ds-gold, #E3B341); }
.p-hero .p-visual__text { padding-bottom: 44px; }
.p-hero .p-visual__mark { right: 4%; }
@media (min-width: 900px) {
  .p-visual__city { font-size: 44px; }
  .p-visual__dates { font-size: 15px; }
  .p-visual__text { padding: 0 24px 22px; }
  .p-hero .p-visual__text { padding: 0 max(32px, calc((100% - 1100px) / 2)) 52px; }
  .p-hero .p-visual__city { font-size: 56px; }
}

/* ---------- A1 · Kalendarz ---------- */
.p-chips { margin: 0 -16px 14px; padding: 0 16px 4px; }
.p-chips .chip { height: 40px; }
.p-filters { margin: -4px 0 14px; }
.p-filters summary { cursor: pointer; font-weight: 700; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; color: var(--ds-ring); }
.p-filters form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px 0 4px; }
.p-filters select { min-width: 0; max-width: 100%; }  /* długie nazwy ras nie rozpychają strony na telefonie */
.p-cal { display: grid; gap: 10px; align-items: start; }
.p-cal__list { display: flex; flex-direction: column; gap: 10px; }

.p-feature__media { height: 132px; position: relative; background: var(--ds-navy); }
.p-feature__media { overflow: hidden; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.p-feature__tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.p-datebadge { position: absolute; top: 10px; right: 10px; background: #0B1426; color: #fff; border-radius: 6px; padding: 6px 8px; text-align: center; line-height: 1; }
.p-datebadge b { display: block; font-size: 20px; font-stretch: 125%; font-weight: 900; }
.p-datebadge span { display: block; font: 700 10px var(--ds-font-mono); letter-spacing: .1em; margin-top: 3px; }
.p-feature__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.p-feature__title { font-size: 17px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; color: inherit; text-decoration: none; }
.p-feature__title:hover { text-decoration: underline; }
.p-cta-row { display: flex; gap: 8px; align-items: center; }
.p-cta-row .btn { flex: 1; font-size: 15px; border-radius: 8px; }
.countdown__label { color: #C9D3E6; opacity: 1; }
.countdown__time .sep { color: #6F82A6; opacity: 1; }
.countdown.is-closed .countdown__time { font-size: 17px; font-stretch: 100%; letter-spacing: 0; }

.p-show { display: flex; gap: 12px; align-items: center; padding: 12px; position: relative; }
.p-show .datebox { border-right: 1px solid var(--ds-line); padding-right: 10px; line-height: 1; }
.p-show .datebox__m { margin-top: 4px; font-size: 10px; letter-spacing: .1em; }
.p-show__name { font-size: 15px; font-weight: 700; line-height: 1.2; color: inherit; text-decoration: none; }
.p-show__name::after { content: ""; position: absolute; inset: 0; }  /* cała karta klikalna */
.p-show__name:focus-visible { outline: none; }
.p-show:has(.p-show__name:focus-visible) { outline: 3px solid var(--ds-gold); outline-offset: 2px; }
.p-show__meta { font-size: 12px; color: var(--ds-muted); margin-top: 3px; }
.p-show .pill { margin-top: 6px; font-weight: 700; }
.p-show__fav { font-size: 16px; color: #C8322B; flex: none; }

.p-map { display: flex; flex-direction: column; gap: 10px; }
.p-map__hint { margin: 0; }
.p-map__city { padding: 14px 16px; scroll-margin-top: 72px; }
.p-map__city h2 { font-size: 17px; font-weight: 800; }
.p-map__city ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; }
.p-map__city li a { display: flex; gap: 10px; min-height: 44px; align-items: center; padding: 6px 0; text-decoration: none; color: var(--ds-ink); font-weight: 600; }
.p-map__city li a:hover .grow { text-decoration: underline; }
.p-map__city li + li { border-top: 1px solid var(--ds-line); }
.p-map__city .pill { flex: none; }
.p-map__date { font-family: var(--ds-font-mono); font-weight: 700; font-size: 13px; color: var(--ds-muted); flex: none; min-width: 44px; }
.p-map__city:target, .p-map__city.is-active { box-shadow: inset 0 0 0 2px var(--ds-gold), var(--ds-shadow-card); }
.p-mapwrap { display: grid; gap: 14px; margin-top: 4px; }
.p-mapfig { margin: 0; padding: 10px 8px 12px; }
.p-mapsvg { display: block; width: 100%; height: auto; max-height: 70vh; }
.p-mapsvg__land { fill: var(--ds-surface-2); stroke: var(--ds-line-strong); stroke-width: 2; stroke-linejoin: round; }
.p-mappt { cursor: pointer; }
.p-mappt__hit { fill: transparent; }
.p-mappt__dot { fill: var(--ds-navy); stroke: #fff; stroke-width: 3; transition: r .15s; }
.p-mappt.is-open .p-mappt__dot { fill: var(--ds-gold); stroke: var(--ds-ink); stroke-width: 2.5; }
.p-mappt__n { font: 800 20px var(--ds-font); fill: #fff; text-anchor: middle; pointer-events: none; }
.p-mappt.is-open .p-mappt__n { fill: #0B1426; }
.p-mappt__label { font: 700 22px var(--ds-font); fill: var(--ds-ink); paint-order: stroke; stroke: var(--ds-surface);
  stroke-width: 5px; stroke-linejoin: round; pointer-events: none; }
.p-mappt:hover .p-mappt__dot, .p-mappt:focus-visible .p-mappt__dot, .p-mappt.is-active .p-mappt__dot { stroke: var(--ds-red); stroke-width: 4; }
.p-mappt:focus { outline: none; }
.p-maplegend { display: flex; gap: 16px; justify-content: center; font-size: 13px; color: var(--ds-muted); margin-top: 6px; }
.p-maplegend span { display: inline-flex; align-items: center; gap: 6px; }
.p-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ds-navy); display: inline-block; }
.p-dot.is-open { background: var(--ds-gold); box-shadow: inset 0 0 0 2px var(--ds-ink); }
@media (min-width: 900px) {
  .p-mapwrap { grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); align-items: start; }
  .p-mapfig { position: sticky; top: 80px; }
}

@media (min-width: 900px) {
  .p-cal { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
  .p-cal > .card { position: sticky; top: 96px; }
  .p-feature__media { height: 240px; }
  .p-feature__title { font-size: 22px; }
  .p-chips { margin: 0 0 14px; padding: 0 0 4px; flex-wrap: wrap; }
}

/* ---------- A2 · Strona wystawy ---------- */
.p-hero { height: 250px; position: relative; background: var(--ds-navy); }
.p-hero { overflow: hidden; }
.p-hero .ai-badge { bottom: 40px; }  /* dolne 28 px przykrywa arkusz strony (.p-sheet) */
.p-sheet { margin-top: -28px; position: relative; background: var(--ds-paper); border-radius: var(--ds-r-sheet) var(--ds-r-sheet) 0 0;
  padding: 18px 16px 0; display: flex; flex-direction: column; gap: 14px; }
.p-sheet h1 { font-size: 24px; line-height: 1; letter-spacing: -0.03em; }
.p-sheet__cols { display: flex; flex-direction: column; gap: 18px; }
.p-sheet__col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.p-prices { background: var(--ds-surface); border-radius: 12px; overflow: hidden; }
.p-prices__row { display: grid; grid-template-columns: 1fr 64px 76px; padding: 9px 12px; font-size: 14px; border-top: 1px solid var(--ds-surface-2); gap: 8px; }
.p-prices__row--3 { grid-template-columns: 1fr 64px 76px 76px; }
.p-prices__row--1 { grid-template-columns: 1fr 90px; }
.p-prices__row > :not(:first-child) { text-align: right; }
.p-prices__row .final { color: var(--ds-muted); }
.p-prices__head { font: 700 11px var(--ds-font-mono); letter-spacing: .04em; color: var(--ds-muted); background: var(--ds-surface-2); padding: 10px 12px; border-top: 0; text-transform: uppercase; }
.p-prices__note { padding: 8px 12px; font-size: 13px; color: var(--ds-muted); border-top: 1px solid var(--ds-surface-2); }
.p-addons { list-style: none; margin: 0; padding: 0; background: var(--ds-surface); border-radius: 12px; }
.p-addons li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; font-size: 14px; border-top: 1px solid var(--ds-surface-2); }
.p-addons li:first-child { border-top: 0; }

.p-stats__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.p-stats__total { font-size: 22px; font-stretch: 125%; font-weight: 900; }
.p-bars { display: grid; grid-template-columns: repeat(var(--n, 10), 1fr); gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; }
.p-bars li { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.p-bars .bar { height: 56px; display: flex; align-items: flex-end; }
.p-bars .bar span { display: block; width: 100%; background: var(--ds-ring); border-radius: 2px; min-height: 2px; }
.p-bars .is-mine .bar span { background: #C8322B; }
.p-bars .lbl { font: 500 10px var(--ds-font-mono); color: var(--ds-muted); text-align: center; }
.p-bars .is-mine .lbl { color: #C8322B; font-weight: 700; }
.p-judges details summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 17px; }
.p-judges details summary::after, .p-set summary::after { content: "▾"; font-size: 14px; color: var(--ds-muted); }
.p-judges details[open] summary::after, .p-set details[open] summary::after { content: "▴"; }
.p-judges summary::-webkit-details-marker, .p-set summary::-webkit-details-marker { display: none; }
.p-judges ul { list-style: none; margin: 0 0 12px; padding: 0; background: var(--ds-surface); border-radius: 12px; }
.p-judges li { padding: 10px 12px; border-top: 1px solid var(--ds-surface-2); font-size: 14px; display: flex; justify-content: space-between; gap: 12px; }
.p-judges li:first-child { border-top: 0; }
.p-judges .is-mine { background: var(--ds-info-bg); font-weight: 700; }
.p-action { background: var(--ds-paper); }
.p-action__time { line-height: 1.2; }
.p-action__time small { display: block; font-size: 11px; color: var(--ds-muted); }
.p-action__time b { font-size: 16px; font-stretch: 125%; font-weight: 900; white-space: nowrap; }
.p-action .btn { flex: 1; font-weight: 800; }

@media (min-width: 900px) {
  .p-hero { height: 360px; max-width: 1120px; margin: 24px auto 0; border-radius: 20px; overflow: hidden; }
  .p-sheet { max-width: 1072px; margin: -48px auto 0; padding: 28px 32px 0; }
  .p-sheet h1 { font-size: 44px; }
  .p-sheet__cols { flex-direction: row; gap: 32px; }
  .p-sheet__col { flex: 1; }
  .p-action { max-width: 1072px; margin: 24px auto 0; }
}

/* ---------- A3 · Moje psy ---------- */
.p-dogs { display: grid; gap: 12px; }
.p-dog { display: flex; gap: 14px; padding: 12px; align-items: center; position: relative; }
.p-dog__photo { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; background: var(--ds-surface-2); }
.p-dog__photo.p-photo-ph { display: grid; place-items: center; }
.p-dog__photo.p-photo-ph .rosette { font-size: 26px; }
.p-dog__name { font-size: 16px; font-weight: 800; line-height: 1.2; color: inherit; text-decoration: none; }
.p-dog__name::after { content: ""; position: absolute; inset: 0; }
.p-dog__titles { font-size: 12px; font-weight: 700; color: var(--ds-gold-text); margin-top: 2px; }
.p-dog .pill { margin-top: 6px; }
.p-doghero { display: flex; gap: 16px; align-items: flex-start; }
.p-doghero img, .p-doghero .p-photo-ph { width: 112px; height: 112px; border-radius: 14px; object-fit: cover; flex: none; }
.p-docs { list-style: none; margin: 0; padding: 0; }
.p-docs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ds-line); font-size: 14px; }
.p-form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.p-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.p-form legend { font-size: 17px; font-weight: 800; margin-bottom: 8px; padding: 0; }
.p-form .field ul:not(.errorlist) { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.p-form .field ul:not(.errorlist) label { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px;
  border: 1.5px solid var(--ds-line-strong); border-radius: 8px; background: var(--ds-surface); font-weight: 600; cursor: pointer; }
.p-form .field ul:not(.errorlist) label:has(input:checked) { border-color: var(--ds-navy); box-shadow: inset 0 0 0 1px var(--ds-navy); }
.p-check { display: flex; gap: 12px; align-items: flex-start; min-height: 48px; font-size: 15px; cursor: pointer; }
.p-check input { width: 24px; height: 24px; margin: 0; accent-color: var(--ds-navy); flex: none; }
.p-grid2 { display: grid; gap: 16px; }
@media (min-width: 700px) { .p-grid2 { grid-template-columns: 1fr 1fr; } .p-dogs { grid-template-columns: 1fr 1fr; } }

/* ---------- A4 · Kreator ---------- */
.p-wiz { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.p-wiz__bar { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; }
.p-wiz__bar a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ds-ink); text-decoration: none; }
.p-wiz h1 { font-size: 28px; line-height: .95; margin-top: 8px; }
.p-wiz .steps { gap: 4px; }
.p-minidog { display: flex; gap: 12px; align-items: center; padding: 10px; }
.p-minidog img, .p-minidog .p-photo-ph { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.p-minidog .p-photo-ph .rosette { font-size: 20px; }
.p-opts { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; }
.p-opt { border-radius: var(--ds-r-card); background: var(--ds-surface); box-shadow: inset 0 0 0 1px var(--ds-line); overflow: hidden; }
.p-opt:has(input:checked) { outline: 2px solid var(--ds-navy); outline-offset: -2px; }
.p-opt label { display: flex; gap: 12px; align-items: flex-start; padding: 14px; cursor: pointer; min-height: 56px; }
.p-opt input[type=radio], .p-opt input[type=checkbox] { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--ds-navy); flex: none; }
.p-opt__main { flex: 1; min-width: 0; }
.p-opt__top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 16px; font-weight: 700; }
.p-opt.is-suggested .p-opt__top { font-size: 17px; }
.p-opt__sub { font-size: 13px; color: var(--ds-muted); margin-top: 2px; }
.p-opt .tag-suggest { margin-top: 8px; }
.p-opt__why { background: var(--ds-info-bg); padding: 12px 14px; font-size: 13px; line-height: 1.45; color: var(--ds-navy); }
.p-opt.is-disabled { background: transparent; color: var(--ds-muted-2); }
.p-opt.is-disabled label { cursor: not-allowed; }
.p-opt.is-disabled .p-opt__sub { color: var(--ds-muted-2); }
.p-opt.is-disabled .p-opt__sub a { color: var(--ds-ring); font-weight: 700; position: relative; z-index: 1; display: inline-block; padding: 12px 0; margin: -12px 0; }
.p-opt__extra { padding: 0 14px 14px 50px; }
.p-opt__extra .errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--ds-red-text); font-size: 13px; font-weight: 600; }
.p-wiz__foot { display: flex; gap: 10px; }
.p-wiz__foot .btn { min-height: 52px; border-radius: 10px; }
.p-wiz__foot .btn--secondary { min-width: 96px; }
.p-wiz__foot .btn:not(.btn--secondary) { flex: 1; font-weight: 800; }
.p-sum { background: var(--ds-surface); border-radius: var(--ds-r-card); overflow: hidden; }
.p-sum__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--ds-line); font-size: 15px; }
.p-sum__row:first-child { border-top: 0; }
.p-sum__row small { display: block; color: var(--ds-muted); font-size: 13px; }
.p-sum__total { background: var(--ds-surface-2); font-weight: 800; font-size: 18px; }
.p-sum__total b { font-stretch: 125%; font-weight: 900; font-size: 22px; }
@media (min-width: 900px) { .p-wiz .action-bar { position: static; } }

/* ---------- A5 · Zgłoszenia i bilet ---------- */
.p-entry { display: flex; gap: 12px; padding: 12px; align-items: center; position: relative; }
.p-entry .datebox { border-right: 1px solid var(--ds-line); padding-right: 10px; line-height: 1; }
.p-entry .datebox__m { margin-top: 4px; font-size: 10px; }
.p-entry__num { font-size: 22px; font-stretch: 125%; font-weight: 900; letter-spacing: -0.03em; text-align: right; min-width: 48px; }
.p-entry__num small { display: block; font: 700 9px var(--ds-font-mono); letter-spacing: .1em; color: var(--ds-muted); }

.p-ticketpage { max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; color: #EEF1F7; }
.p-ticketpage__bar { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; }
.p-ticketpage__bar a { color: #EEF1F7; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.p-ticket { background: #F6F4EF; color: #0B1426; border-radius: 18px; display: flex; flex-direction: column; position: relative; }
.p-ticket__top { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.p-ticket .pill { font-size: 12px; font-weight: 700; padding: 4px 9px; }
.p-ticket .pill:not(.pill--ok):not(.pill--accepted):not(.pill--withdrawn):not(.pill--error) { background: #E7EBF2; color: #0B1426; }
.p-ticket .pill--ok { background: #DDF2E6; color: #0F5E36; }
.p-ticket .pill--withdrawn { background: #fff; color: #4A4F5C; }
.p-ticket__show { font-size: 13px; font-weight: 600; color: #4A4F5C; }
.p-ticket__num { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.p-ticket__num .mono-label { color: #4A4F5C; font-size: 11px; }
.p-ticket__big { font-size: 96px; line-height: .82; font-stretch: 125%; font-weight: 900; letter-spacing: -0.05em; margin-top: 6px; }
.p-ticket__nonum { font-size: 20px; font-weight: 800; line-height: 1.15; margin-top: 8px; max-width: 12em; }
.p-ticket__photo { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; }
.p-ticket__dog { font-size: 17px; font-weight: 800; }
.p-ticket__sub { font-size: 13px; color: #4A4F5C; }
.p-perf { position: relative; height: 0; border-top: 2px dashed #C9C2B3; margin: 0 16px; }
.p-perf::before, .p-perf::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: #0A1224; }
.p-perf::before { left: -30px; } .p-perf::after { right: -30px; }
.p-ticket__bottom { padding: 16px 18px 18px; display: flex; gap: 16px; align-items: center; }
.p-qr { width: 120px; height: 120px; flex: none; background: #fff; border-radius: 6px; padding: 2px; }
.p-qr svg { width: 100%; height: 100%; display: block; shape-rendering: crispEdges; }
.p-ticket dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; font-size: 13px; align-items: baseline; margin: 0; }
.p-ticket dt { color: #4A4F5C; }
.p-ticket dd { margin: 0; font-weight: 700; }
.p-ticket dd.ring { font-size: 22px; font-stretch: 125%; font-weight: 900; }
.p-set { background: #121C33; border-radius: 12px; padding: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.p-set__t { font-size: 14px; font-weight: 700; }
.p-set__s { font-size: 12px; color: #9AA6BF; }
.p-set form { margin: 0; }
.p-set details { width: 100%; }
.p-set summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; }
.p-set .field label, .p-set .p-check { color: #EEF1F7; }
.p-switch { width: 56px; height: 48px; border: 0; background: transparent; padding: 10px 0; cursor: pointer; flex: none; position: relative; }
.p-switch::before { content: ""; display: block; width: 48px; height: 28px; border-radius: 99px; background: #2C3B5E; margin-left: auto; }
.p-switch::after { content: ""; position: absolute; top: 13px; right: 23px; width: 22px; height: 22px; border-radius: 50%; background: #9AA6BF; transition: right .15s; }
.p-switch[aria-pressed="true"]::before { background: #F2C14E; }
.p-switch[aria-pressed="true"]::after { right: 3px; background: #0A1224; }
@media (prefers-reduced-motion: reduce) { .p-switch::after { transition: none; } }
.p-ticketpage .messages li { color: #0B1426; }
.p-ticketpage .btn--secondary { color: #EEF1F7; box-shadow: inset 0 0 0 2px #EEF1F7; }
.p-ticketpage select { background: #0A1224; color: #EEF1F7; border-color: #2C3B5E; }

/* ---------- A6 · Wyniki i postęp ---------- */
.p-res { display: flex; flex-direction: column; gap: 14px; }
.p-res__dog { padding: 14px; }
.p-res__head { display: flex; gap: 12px; align-items: center; }
.p-res__head img, .p-res__head .p-photo-ph { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.p-res__head .p-photo-ph .rosette { font-size: 20px; }
.p-checklist { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.p-checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.p-checklist .ico { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.p-checklist .ok .ico { background: var(--ds-ok); color: #fff; }
.p-checklist .no .ico { border: 2px solid var(--ds-warn); color: var(--ds-warn-text); background: var(--ds-warn-bg); }
.p-checklist small { display: block; color: var(--ds-muted); font-size: 12px; }
.p-progress { margin-top: 12px; }
.p-progress .progress { height: 10px; border-radius: 5px; }
.p-progress__label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; font-weight: 700; }
.p-results { list-style: none; margin: 12px 0 0; padding: 0; }
.p-results li { padding: 12px 0; border-top: 1px solid var(--ds-line); display: flex; flex-direction: column; gap: 6px; }
.p-results .badges { display: flex; flex-wrap: wrap; gap: 4px; }
.p-cwc { margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ds-muted); }
/* Pole szczegółów dodatku (numer auta) tylko po zaznaczeniu dodatku. */
.p-opt:not(:has(input[type=checkbox]:checked)) .p-opt__extra { display: none; }
/* Zakres dni w bloku daty (7–8, 29–30) — w jednej linii. */
.datebox__d.p-range { font-size: 17px; white-space: nowrap; letter-spacing: -0.05em; }
/* Szersze zakresy („22–23”, „31.10–1.11”) nie wchodzą w 54 px — blok daty rośnie zamiast nachodzić na kreskę. */
.p-show .datebox:has(.p-range), .p-entry .datebox:has(.p-range) { width: auto; min-width: 54px; }
.p-show .datebox__d.p-range, .p-entry .datebox__d.p-range { font-size: 16px; font-stretch: 100%; letter-spacing: -0.02em; }
/* Radio (płeć) jako duże przyciski — Django renderuje <div><div><label><input>…</label></div></div>. */
.p-form [role=radiogroup] > div { display: flex; gap: 8px; flex-wrap: wrap; }
.p-form [role=radiogroup] label { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border: 1.5px solid var(--ds-line-strong); border-radius: 8px; background: var(--ds-surface); font-weight: 600; font-size: 15px; cursor: pointer; }
.p-form [role=radiogroup] label:has(input:checked) { border-color: var(--ds-navy); box-shadow: inset 0 0 0 1px var(--ds-navy); }
.p-form [role=radiogroup] input { width: 20px; height: 20px; margin: 0; accent-color: var(--ds-navy); }

/* ---------- A3 · Odczyt rodowodu ze zdjęcia ---------- */
.p-scan { display: flex; flex-direction: column; gap: 10px; padding: 16px; margin-bottom: 16px; border: 2px dashed var(--ds-line-strong); box-shadow: none; }
.p-scan__text { font-size: 14px; color: var(--ds-text-2); }
.note--ok { background: var(--ds-ok-bg); color: var(--ds-ok-text); }
.p-reading { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 32px 20px; margin-top: 8px; }
.p-reading h1 { font-size: 26px; margin: 0; }
.p-reading p { margin: 0; max-width: 420px; }
.p-spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--ds-line); border-top-color: var(--ds-gold); animation: p-spin 1s linear infinite; }
@keyframes p-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .p-spinner { animation-duration: 3s; } }
.p-notify .p-check { padding: 8px 0; }
.p-notify .p-check + .p-check { border-top: 1px solid var(--ds-line); }

/* Formularz psa (0.16.1): uwaga o zgodności z rodowodem i tytuły ZKwP jako chipy z polami wyboru. */
.p-accuracy { border-left: 4px solid var(--ds-warn); }
.p-titles__list { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-radius: 12px; background: var(--ds-surface-2); }
.p-form .p-tchip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--ds-line-strong); border-radius: 999px; background: var(--ds-surface); color: var(--ds-ink);
  font-size: 14px; font-weight: 600; cursor: pointer; }
.p-tchip input { width: 18px; height: 18px; margin: 0; accent-color: var(--ds-navy); flex: none; }
.p-form .p-tchip:has(input:checked) { border-color: var(--ds-navy); box-shadow: inset 0 0 0 1px var(--ds-navy); }
.p-tchip:has(input:focus-visible) { outline: 3px solid rgba(19,40,74,.35); outline-offset: 2px; }
.p-titles .field { margin-top: 6px; }
.field > .p-check + .help { margin-top: -10px; padding-left: 36px; }

/* Zdjęcia z aparatu (0.20.4): templates/portal/_upload.html + upload.js. Bez JS widać zwykły input pliku. */
.p-upload__file, .js-upload .p-upload__native { position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; border: 0 !important; margin: 0 !important; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.p-upload { position: relative; min-width: 0; }
.p-upload__pick { display: flex; flex-wrap: wrap; gap: 8px; }
.p-upload__pick .btn { flex: 0 1 auto; min-width: 0; white-space: normal; }
@media (max-width: 600px) { .p-upload__pick .btn { flex: 1 1 auto; } }
.p-upload__pick .btn svg { flex: none; }
.p-upload__preview { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border: 1.5px solid var(--ds-line-strong);
  border-radius: 10px; background: var(--ds-surface); min-width: 0; }
.p-upload__img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; flex: none; background: var(--ds-surface-2); }
.p-upload__doc { width: 72px; height: 88px; display: grid; place-items: center; flex: none; border-radius: 6px;
  background: var(--ds-red-bg); color: var(--ds-red-text); font: 800 16px/1 var(--ds-font); }
.p-upload__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.p-upload__name { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.p-upload__actions { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; }
.p-upload__actions .btn { min-height: 44px; padding: 0 14px; font-size: 15px; }
.p-upload__msg { font-size: 13px; color: var(--ds-muted); }
.p-upload__msg:empty { display: none; }
.p-upload.has-file .p-upload__msg:not(.is-error) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }  /* nazwa jest w podglądzie — tylko dla czytnika */
.p-upload__msg.is-error { color: var(--ds-red-text); font-weight: 600; }
.p-upload.is-busy .p-upload__pick, .p-upload.is-busy .p-upload__actions { opacity: .6; pointer-events: none; }
.p-upload__keep { min-height: 40px; align-items: center; }
.p-upload__current { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.p-scan .p-upload__tip { font-size: 13px; }
.p-upload [hidden] { display: none !important; }
