/* Strefa członka — styl zgodny z toastmasters.czest.pl (kolory marki Toastmasters) */
:root {
  --blue: #004165;        /* Loyal Blue */
  --blue-2: #00304b;
  --blue-3: #006094;      /* Blissful Blue */
  --maroon: #772432;      /* True Maroon */
  --maroon-2: #5c1b27;
  --yellow: #f2df74;      /* Happy Yellow */
  --gray: #a9b2b1;        /* Cool Gray */
  --ink: #16232c;
  --muted: #4a5661;
  --line: #e2e8ec;
  --soft: #f3f6f8;
  --ok: #1d7a45;
  --ok-bg: #e2f3e6;
  --warn: #6b5200;
  --warn-bg: #fbf1c7;
  --err: #8f1d1d;
  --err-bg: #f8e0e0;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(0, 40, 70, .12);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
body { margin: 0; font: 400 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: #fff; accent-color: var(--maroon); display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.015em; color: var(--blue-2); text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.8vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 2px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 560px; }
.mid { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 8px 14px; background: #fff; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .925rem; }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.spacer { flex: 1; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; }

/* nagłówek */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 8px 16px; min-height: 66px; flex-wrap: wrap; padding-block: 8px; }
.brand img { width: 170px; }
.zone { padding: 4px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--soft); color: var(--blue); }
.nav a[aria-current="page"] { color: var(--maroon); }
@media (max-width: 640px) {
  .brand img { width: 140px; }
  .nav { width: 100%; margin: 0; }
  .nav a { padding: 6px 10px; font-size: .95rem; }
}

/* przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-block-size: 44px; padding: 10px 22px; border: 2px solid var(--maroon); border-radius: 999px; background: var(--maroon); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--maroon-2); border-color: var(--maroon-2); }
.btn.ghost { background: transparent; border-color: #c5d3dc; color: var(--blue); }
.btn.ghost:hover { background: #fff; border-color: var(--blue); }
.btn.blue { background: var(--blue); border-color: var(--blue); }
.btn.blue:hover { background: var(--blue-2); border-color: var(--blue-2); }
.btn.small { min-block-size: 36px; padding: 6px 14px; font-size: .95rem; }
.btn.danger { background: #fff; border-color: #e6b7bd; color: var(--err); }
.btn.danger:hover { border-color: var(--err); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn.busy { cursor: progress; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* sekcje */
.page-head { padding: clamp(32px, 5vw, 56px) 0 clamp(24px, 4vw, 40px); background: linear-gradient(180deg, #eaf2f7, #fff); }
.page-head p.lead { max-width: 46em; margin: 0; color: var(--muted); font-size: 1.12rem; white-space: pre-line; }
.section { padding: clamp(28px, 5vw, 56px) 0; }
.section.tight { padding-top: 8px; }
.soft { background: var(--soft); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--maroon); font-size: 1rem; font-weight: 700; }
.eyebrow::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: currentColor; }
.card { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card.raised { box-shadow: var(--shadow); border-color: transparent; }
.card > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.callout { padding: 16px 20px; border-left: 4px solid var(--yellow); border-radius: var(--radius); background: #fffbe8; }
.callout.blue { border-left-color: var(--blue); background: #eef5f9; }
.callout > :last-child { margin-bottom: 0; }

/* komunikaty */
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.err { background: var(--err-bg); color: var(--err); }
.flash.info { background: #eef5f9; color: var(--blue-2); }
.status-line { min-height: 1.6em; margin: 0; font-weight: 600; }
.status-line.ok { color: var(--ok); }
.status-line.err { color: var(--err); }

/* pigułki statusu (nie tylko kolor — zawsze z tekstem) */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: var(--soft); color: var(--blue-2); font-size: .875rem; font-weight: 700; white-space: nowrap; }
.pill.voting { background: #fdf0f2; color: var(--maroon); }
.pill.submissions { background: #eef5f9; color: var(--blue); }
.pill.closed { background: #eceeef; color: #3f4a52; }
.pill.draft { background: var(--warn-bg); color: var(--warn); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.err { background: var(--err-bg); color: var(--err); }

/* karty konkursów */
.contest-card { display: flex; flex-direction: column; gap: 10px; }
.contest-card h3 { margin: 0; }
.contest-card p { margin: 0; color: var(--muted); }
.contest-card .btn { align-self: flex-start; margin-top: auto; }

/* formularze */
.form { display: grid; gap: 16px; }
.form label, .field-label { display: grid; gap: 6px; color: var(--blue-2); font-weight: 600; }
.form .hint { color: var(--muted); font-size: .925rem; font-weight: 400; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=number], .form select, .form textarea {
  width: 100%; min-block-size: 46px; padding: 10px 14px; border: 1.5px solid #cbd6dd; border-radius: 10px; background: #fbfcfd; color: var(--ink); font: inherit; font-weight: 400;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(0, 65, 101, .15); }
.form input:user-invalid { border-color: var(--err); }
.form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink); }
.form .check input { inline-size: 20px; block-size: 20px; margin-top: 2px; flex: none; }
.form fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.form legend { margin-bottom: 6px; padding: 0; color: var(--blue-2); font-weight: 700; }
.pw-field { position: relative; display: flex; }
.pw-field input { padding-right: 96px; }
.pw-toggle { position: absolute; inset-block: 4px; inset-inline-end: 4px; min-inline-size: 84px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--soft); color: var(--blue); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.pw-toggle[aria-pressed="true"] { background: #dbe8f0; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .95rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* zakładki (sposoby głosowania) */
.tabs { margin-top: 8px; }
.tablist { display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: inline proximity; scroll-padding-inline: 2.5rem; border-bottom: 1px solid var(--line); scrollbar-width: none; }
/* zanikające krawędzie, gdy są jeszcze zakładki poza ekranem (scroll-driven animation) */
@property --fade-start { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fade-end { syntax: "<length>"; inherits: false; initial-value: 0px; }
@supports (animation-timeline: scroll()) {
  .tablist {
    --fade-size: 2.5rem;
    mask:
      linear-gradient(black, black) no-clip subtract,
      linear-gradient(to right, black, transparent) 0 0 / var(--fade-start) 100% no-repeat no-clip,
      linear-gradient(to right, transparent, black) 100% 0 / var(--fade-end) 100% no-repeat no-clip;
    animation: tab-fade-start linear both, tab-fade-end linear both;
    animation-timeline: scroll(self inline);
    animation-range: 0 var(--fade-size), calc(100% - var(--fade-size)) 100%;
  }
}
@keyframes tab-fade-start { to { --fade-start: var(--fade-size); } }
@keyframes tab-fade-end { from { --fade-end: var(--fade-size); } }
.tablist [role="tab"] { position: relative; flex: none; scroll-snap-align: start; min-block-size: 44px; padding: 10px 14px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tablist [role="tab"]:hover { color: var(--blue); }
.tablist [role="tab"][aria-selected="true"] { color: var(--maroon); }
.tablist [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; inset: auto 0 0; border-block-end: 3px solid var(--maroon); }
.tablist .done-mark { margin-left: 6px; color: var(--ok); }
.tabpanel-inner { padding-top: 20px; }

/* panele głosowania */
.method-head { display: grid; gap: 4px; margin-bottom: 18px; }
.method-head p { margin: 0; }
.method-head .how { color: var(--muted); font-size: .95rem; }
.opts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, background .15s; }
.opt:hover { border-color: #bcd0dc; }
.opt.is-on, .opt:has(input:checked) { border-color: var(--maroon); background: #fdf6f7; }
.opt .txt { flex: 1; min-width: 0; font-weight: 600; color: var(--blue-2); }
.opt .txt small { display: block; color: var(--muted); font-weight: 400; }
.opt label { display: flex; align-items: center; gap: 14px; flex: 1; cursor: pointer; }
.opt input[type=radio], .opt input[type=checkbox] { inline-size: 22px; block-size: 22px; flex: none; margin: 0; }
.thumb { flex: none; width: 64px; aspect-ratio: 85 / 200; border-radius: 6px; object-fit: cover; background: var(--soft); border: 1px solid var(--line); }
.thumb-btn { flex: none; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }

/* podium */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.podium .slot { display: grid; gap: 4px; align-content: start; min-height: 92px; padding: 12px 14px; border: 2px dashed #c5d3dc; border-radius: 12px; background: var(--soft); }
.podium .slot.filled { border-style: solid; border-color: var(--maroon); background: #fff; }
.podium .slot b { color: var(--maroon); font-size: .9rem; }
.podium .slot span { color: var(--blue-2); font-weight: 600; line-height: 1.35; }
.podium .slot .linkbtn { justify-self: start; font-size: .875rem; }
@media (max-width: 640px) { .podium { grid-template-columns: 1fr; } .podium .slot { min-height: 0; } }
.place-btns { display: flex; gap: 6px; }
.place-btns button { min-inline-size: 44px; min-block-size: 44px; border: 1.5px solid #c5d3dc; border-radius: 10px; background: #fff; color: var(--blue-2); font: inherit; font-weight: 800; cursor: pointer; }
.place-btns button[aria-pressed="true"] { border-color: var(--maroon); background: var(--maroon); color: #fff; }

/* ranking */
.rank-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .rank-cols { grid-template-columns: 1fr; } }
.rank-cols h3 { font-size: 1.05rem; }
.rank-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.rank-list > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--maroon); border-radius: 12px; background: #fff; view-transition-name: match-element; scroll-margin: 16px; }
.rank-list > li::before { counter-increment: rank; content: counter(rank) "."; min-inline-size: 2ch; color: var(--maroon); font-weight: 800; }
.rank-list .txt { font-weight: 600; color: var(--blue-2); }
.move-btns { display: flex; gap: 4px; }
.move-btns button, .pool-list button.add { min-inline-size: 40px; min-block-size: 40px; border: 1.5px solid #c5d3dc; border-radius: 10px; background: #fff; color: var(--blue); font: inherit; font-weight: 800; cursor: pointer; }
.move-btns button:hover:not(:disabled) { border-color: var(--blue); }
.move-btns button:disabled { opacity: .35; cursor: default; }
.pool-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pool-list > li > button.pick { display: flex; align-items: center; gap: 12px; inline-size: 100%; padding: 12px 14px; border: 1.5px dashed #c5d3dc; border-radius: 12px; background: var(--soft); color: var(--blue-2); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.pool-list > li > button.pick:hover { border-color: var(--blue); background: #fff; }
.pool-list .plus { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; }
.empty-note { padding: 16px; border-radius: 12px; background: var(--soft); color: var(--muted); }
::view-transition-group(*) { animation-duration: .2s; }

/* gwiazdki — natywne radio w fieldset */
.stars-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; }
.stars-row:has(input:checked) { border-color: #d9c56a; }
.stars-row legend { float: left; flex: 1 1 16rem; min-width: 0; padding: 0; color: var(--blue-2); font-weight: 600; }
.stars-row legend + * { clear: both; }
/* kolejność w DOM 1→5 (strzałki działają naturalnie); podświetlenie „do zaznaczonej” przez :has() */
.stars { position: relative; display: inline-flex; gap: 2px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { display: grid; place-items: center; min-inline-size: 40px; min-block-size: 40px; color: #c2cbd1; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.stars:has(input[value="1"]:checked) label:nth-of-type(-n+1),
.stars:has(input[value="2"]:checked) label:nth-of-type(-n+2),
.stars:has(input[value="3"]:checked) label:nth-of-type(-n+3),
.stars:has(input[value="4"]:checked) label:nth-of-type(-n+4),
.stars:has(input[value="5"]:checked) label:nth-of-type(-n+5) { color: #c9970c; }
@media (hover: hover) {
  .stars:has(label:nth-of-type(1):hover) label:nth-of-type(-n+1),
  .stars:has(label:nth-of-type(2):hover) label:nth-of-type(-n+2),
  .stars:has(label:nth-of-type(3):hover) label:nth-of-type(-n+3),
  .stars:has(label:nth-of-type(4):hover) label:nth-of-type(-n+4),
  .stars:has(label:nth-of-type(5):hover) label:nth-of-type(-n+5) { color: #e0b53a; }
}
.stars input:focus-visible + label { outline: 3px solid var(--maroon); outline-offset: -2px; border-radius: 8px; }
.stars-val { min-inline-size: 7ch; color: var(--muted); font-size: .925rem; }

/* punkty */
.budget { position: sticky; top: 74px; z-index: 5; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 10px 16px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 700; }
.budget progress { flex: 1; min-width: 80px; height: 10px; accent-color: var(--yellow); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { min-inline-size: 40px; min-block-size: 40px; border: 1.5px solid #c5d3dc; border-radius: 10px; background: #fff; color: var(--blue); font: inherit; font-size: 1.2rem; font-weight: 800; cursor: pointer; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-inline-size: 2.5ch; text-align: center; color: var(--maroon); font-size: 1.2rem; font-weight: 800; }

/* pojedynki */
.duel { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.duel .vs { align-self: center; color: var(--muted); font-weight: 800; }
.duel button.side { display: grid; place-items: center; gap: 10px; min-height: 150px; padding: 20px; border: 2px solid var(--line); border-radius: 16px; background: #fff; color: var(--blue-2); font: inherit; font-size: 1.15rem; font-weight: 700; line-height: 1.35; text-align: center; cursor: pointer; box-shadow: 0 2px 12px rgba(0, 40, 70, .06); transition: border-color .15s, transform .15s; }
.duel button.side:hover { border-color: var(--maroon); transform: translateY(-2px); }
.duel button.side img { max-height: 320px; width: auto; border-radius: 8px; }
@media (max-width: 640px) { .duel { grid-template-columns: 1fr; } .duel .vs { justify-self: center; } }
.duel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; color: var(--muted); }
.duel-meta progress { flex: 1; min-width: 120px; accent-color: var(--maroon); }

/* wyniki */
.results { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.results li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 4px 10px; align-items: center; }
.results .place { grid-row: span 2; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--soft); color: var(--blue-2); font-weight: 800; }
.results li:first-child .place { background: var(--yellow); }
.results .name { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-weight: 600; color: var(--blue-2); }
.results .name small { color: var(--muted); font-weight: 600; }
.results .bar { height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.results .bar i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.results li:first-child .bar i { background: var(--maroon); }
.res-notes { margin: 14px 0 0; padding-left: 1.2em; color: var(--muted); }
.res-box { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }

/* tabele (panel admina) — responsywne */
.table-wrapper { overflow: auto; max-inline-size: 100%; container-type: inline-size; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrapper:focus-visible { outline-offset: 2px; }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .975rem; }
table.data caption { padding: 12px 14px; text-align: left; color: var(--blue-2); font-weight: 800; }
table.data th, table.data td { padding: 10px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data thead th { position: sticky; top: 0; z-index: 1; background: var(--soft); color: var(--blue-2); font-size: .9rem; }
table.data tbody th { color: var(--blue-2); font-weight: 700; }
table.data td.actions-cell { white-space: nowrap; }
table.data .sub { display: block; color: var(--muted); font-size: .875rem; font-weight: 400; word-break: break-all; }
@container (width < 700px) {
  table.data, table.data thead, table.data tbody, table.data tr, table.data th, table.data td { display: block; }
  table.data thead { display: none; }
  table.data tr { padding: 10px 0; border-top: 1px solid var(--line); }
  table.data th, table.data td { padding: 4px 14px; border: 0; }
  table.data td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; }
  table.data td.actions-cell { white-space: normal; padding-top: 8px; }
}
.inline-form { display: inline; }
.link-out { display: grid; gap: 6px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #eef5f9; }
.link-out .mono { word-break: break-all; }

/* kopiowanie */
.copy { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.copy .bubble { position: absolute; inset-block-end: calc(100% + 6px); inset-inline-start: 0; padding: 3px 10px; border-radius: 8px; background: var(--blue-2); color: #fff; font-size: .85rem; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.copy .bubble:not(:empty) { opacity: 1; }

/* rollup: wysyłka i raport */
.spec { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.spec li { position: relative; padding-left: 1.2em; }
.spec li::before { content: "•"; position: absolute; left: 0; color: var(--maroon); font-weight: 800; }
.drop { position: relative; display: grid; place-items: center; gap: 8px; padding: 32px 20px; border: 2px dashed #b9cad5; border-radius: 16px; background: var(--soft); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--blue); background: #eef5f9; }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop strong { color: var(--blue-2); font-size: 1.1rem; }
.analysis { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 20px; }
@media (max-width: 640px) { .analysis { grid-template-columns: 1fr; } .analysis .preview { max-width: 200px; } }
.preview { display: grid; gap: 8px; }
.preview img, .preview canvas { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: repeating-conic-gradient(#eef1f3 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.checks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 2px 8px; padding: 10px 12px; border-radius: 10px; background: var(--soft); }
.checks li .ico { grid-row: span 2; font-weight: 900; font-size: 1.1rem; line-height: 1.4; }
.checks li b { color: var(--blue-2); }
.checks li span { color: var(--muted); font-size: .95rem; }
.checks li.ok { background: var(--ok-bg); } .checks li.ok .ico { color: var(--ok); }
.checks li.warn, .checks li.uwaga { background: var(--warn-bg); } .checks li.warn .ico, .checks li.uwaga .ico { color: var(--warn); }
.checks li.err, .checks li.blad { background: var(--err-bg); } .checks li.err .ico, .checks li.blad .ico { color: var(--err); }
.checks li.info .ico { color: var(--blue); }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.swatch { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 2px; border-radius: 999px; background: #fff; font-size: .85rem; color: var(--ink); }
.swatch i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.score { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 1.4rem; font-weight: 800; }
.upload-progress { display: grid; gap: 6px; }
.upload-progress progress { width: 100%; height: 12px; accent-color: var(--maroon); }
.subm { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 560px) { .subm { grid-template-columns: 80px minmax(0, 1fr); } }
.subm .thumb { width: 100%; }
details.more { margin-top: 10px; }
details.more summary { color: var(--blue); font-weight: 700; cursor: pointer; }

/* dialog z podglądem */
dialog.lightbox { max-width: min(94vw, 720px); max-height: 94vh; padding: 0; border: 0; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
dialog.lightbox::backdrop { background: rgba(4, 14, 22, .82); backdrop-filter: blur(2px); }
dialog.lightbox .lb-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); }
dialog.lightbox .lb-head h2 { flex: 1; margin: 0; font-size: 1.05rem; }
dialog.lightbox .lb-body { padding: 12px; overflow: auto; max-height: calc(94vh - 64px); }
dialog.lightbox img { max-height: calc(94vh - 100px); width: auto; margin: 0 auto; border-radius: 6px; }

/* stopka */
.foot { margin-top: 48px; padding: 32px 0 28px; background: var(--blue-2); color: #d3e0e8; font-size: .95rem; }
.foot a { color: #fff; }
.foot .wrap { display: grid; gap: 14px; }
.foot .disclaimer { margin: 0; max-width: 60em; color: #a9bfcc; font-size: .85rem; }
