/* Barlow a Barlow Semi Condensed (Jeremy Tribby, SIL Open Font License 1.1), hostováno na vlastním serveru. */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/barlow-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/barlow-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/barlow-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/barlow-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlowsemicondensed-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlowsemicondensed-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlowsemicondensed-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlowsemicondensed-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #EDF2F4;
  --surface: #FFFFFF;
  --surface-2: #F7FAFB;
  --ink: #10202B;
  --ink-2: #4A5D69;
  --ink-3: #74868F;
  --line: #C9D6DC;
  --accent: #0A5C78;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCEBF1;
  --red: #B8152E;
  --red-soft: #FBE8EB;
  --green: #0F703C;
  --green-soft: #E1F2E8;
  --amber: #D69500;
  --amber-soft: #FFF4D6;
  --board-pass: #0B4EA2;
  --board-red: #C8102E;
  --font: "Barlow", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-cond: "Barlow Semi Condensed", "Barlow", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0A1720; --surface: #11232D; --surface-2: #0E1E27; --ink: #E3ECF0; --ink-2: #A2B5BF; --ink-3: #7A8E98;
    --line: #23404D; --accent: #5EB6D8; --accent-ink: #06202B; --accent-soft: #15384A; --red: #FF7183; --red-soft: #3A1A21;
    --green: #4FD394; --green-soft: #133426; --amber: #F2BE45; --amber-soft: #3A2E10; --board-pass: #0B4EA2; --board-red: #D61F3A;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-in { max-width: 760px; margin: 0 auto; padding: 14px 16px 0; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { min-width: 0; }
.brand h1 { margin: 0; font-family: var(--font-cond); font-weight: 700; font-size: 1.4rem; line-height: 1.1; }
.brand p { margin: 3px 0 0; color: var(--ink-2); font-size: .875rem; line-height: 1.3; }
.seg { flex: none; display: flex; border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; }
.seg button { appearance: none; border: 0; background: transparent; padding: 5px 12px 6px; min-width: 74px; cursor: pointer;
  display: grid; justify-items: center; line-height: 1.1; }
.seg button + button { border-left: 1.5px solid var(--ink); }
.seg b { font-family: var(--font-cond); font-weight: 700; font-size: 1.3rem; }
.seg span { font-size: .75rem; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg button[aria-pressed="true"] span { color: inherit; }
.seg button:disabled { cursor: not-allowed; }
.seg button:disabled:not([aria-pressed="true"]) { opacity: .4; }
.tabs { display: flex; gap: 2px; margin: 8px -10px 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { appearance: none; border: 0; background: none; cursor: pointer; white-space: nowrap; padding: 8px 10px 9px;
  font-family: var(--font-cond); font-weight: 600; font-size: 1.0625rem; color: var(--ink-2); border-bottom: 3px solid transparent; }
.tabs button[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs button:disabled { opacity: .4; cursor: not-allowed; }

/* layout and type */
main { max-width: 760px; margin: 0 auto; padding: 22px 16px 28px; }
h2 { margin: 0 0 8px; font-family: var(--font-cond); font-weight: 700; font-size: 1.85rem; line-height: 1.15; }
h3 { margin: 30px 0 10px; font-family: var(--font-cond); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
p { margin: 0 0 12px; }
.lead { font-size: 1.15rem; max-width: 60ch; }
.note { color: var(--ink-2); max-width: 64ch; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.ok { color: var(--green); }
.bad { color: var(--red); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 6px 0 4px; }
.tag { font-family: var(--font-cond); font-weight: 700; color: var(--accent); letter-spacing: .01em; }

/* buttons */
.btn { appearance: none; cursor: pointer; min-height: 44px; padding: 9px 18px; border-radius: 10px; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink); font-family: var(--font-cond); font-weight: 600; font-size: 1.0625rem; line-height: 1.2; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.big { min-height: 52px; padding: 12px 28px; font-size: 1.2rem; }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.danger-fill { background: var(--red); border-color: var(--red); color: #fff; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-link { appearance: none; border: 0; background: none; padding: 4px 0; cursor: pointer; color: var(--ink-2);
  text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) {
  .btn:hover:not(:disabled) { filter: brightness(1.08); }
  .btn-link:hover { color: var(--ink); }
}
.actionbar { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 18px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--paper); border-top: 1px solid var(--line); }
.actionbar .grow { flex: 1; }
.confirm { margin: 16px 0 0; padding: 14px 16px; border: 1.5px solid var(--amber); background: var(--amber-soft); border-radius: 10px; }
.confirm p { margin: 0 0 10px; }
.confirm .row { margin: 0; }
.list { display: grid; gap: 12px; }
.empty { padding: 22px 18px; border: 1.5px dashed var(--line); border-radius: 14px; }

/* stats */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 14px; }
.fig b { display: block; font-family: var(--font-cond); font-weight: 700; font-size: 2.3rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fig span { display: block; color: var(--ink-2); font-size: .9rem; line-height: 1.3; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
th { font-family: var(--font-cond); font-weight: 600; color: var(--ink-2); }
th.num, td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart { margin: 4px 0 10px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .bar-pass { fill: var(--green); }
.chart .bar-fail { fill: var(--red); }
.chart .thr { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 5 4; }
.chart .base { stroke: var(--line); stroke-width: 1; }
.chart text { fill: var(--ink-2); font-family: var(--font-cond); font-weight: 600; font-size: 12px;
  paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 4px 0 8px; }
input[type="search"], select { min-height: 44px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); }
select { min-width: 0; }
.check { display: flex; gap: 8px; align-items: center; color: var(--ink-2); white-space: nowrap; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.count { color: var(--ink-2); font-size: .95rem; margin: 6px 0 12px; }
footer { max-width: 760px; margin: 0 auto; padding: 6px 16px 30px; color: var(--ink-3); font-size: .8125rem; line-height: 1.45; }
footer p { margin: 0 0 6px; }
footer a { color: inherit; }
@media (max-width: 520px) {
  .brand h1 { font-size: 1.2rem; }
  .brand p { font-size: .8rem; }
  .seg button { min-width: 62px; padding: 4px 10px 5px; }
  h2 { font-size: 1.55rem; }
  .fig b { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.noscript { max-width: 760px; margin: 24px auto; padding: 0 16px; font-size: 1.1rem; }
.transfer-msg { margin: 10px 0 0; font-weight: 600; }
.transfer-msg.ok { color: var(--green); }
.transfer-msg.bad { color: var(--red); }
.reset { margin-top: 26px; }

/* link back to the site */
.home-link { display: inline-block; margin: 0 0 2px; color: var(--ink-3); font-size: .8125rem; text-decoration: none; }
@media (hover: hover) { .home-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }

/* landing page */
.site-head { max-width: 760px; margin: 0 auto; padding: 28px 16px 6px; }
.site-head h1 { margin: 0; font-family: var(--font-cond); font-weight: 700; font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1.05; }
.site-head p { margin: 8px 0 0; color: var(--ink-2); max-width: 56ch; }
.apps { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.app { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.app img { width: 72px; height: 72px; border-radius: 16px; }
.app b { display: block; font-family: var(--font-cond); font-weight: 700; font-size: 1.35rem; line-height: 1.15; }
.app span { display: block; margin-top: 4px; color: var(--ink-2); line-height: 1.4; }
@media (hover: hover) { .app:hover { border-color: var(--ink-3); } }
