/* Anomato v2, vizuálny jazyk podľa anomato.com */

/* Fonty: self-hosted, OFL (licencie v static/vendor/fonts/) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../vendor/fonts/inter-latin-600.75fb76ec3559.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: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../vendor/fonts/inter-latin-ext-600.8f9364515dfc.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: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../vendor/fonts/inter-latin-700.3714175d15f3.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: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../vendor/fonts/inter-latin-ext-700.39b692b06219.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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../vendor/fonts/ibm-plex-sans-latin-400.0ceb759015a6.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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../vendor/fonts/ibm-plex-sans-latin-ext-400.0e2c71ca88ef.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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../vendor/fonts/ibm-plex-sans-latin-500.767677e47513.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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../vendor/fonts/ibm-plex-sans-latin-ext-500.9e50dcc81c7e.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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../vendor/fonts/ibm-plex-sans-latin-600.e78568807d10.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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../vendor/fonts/ibm-plex-sans-latin-ext-600.4267dfb25bc2.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; }

:root {
  --teal: #00a2b8;
  --teal-dark: #007c91;
  --teal-darker: #00657a;
  /* biely text na #00a2b8 ma kontrast len 3:1, preto vypln tlacidiel = --teal-dark (4.9:1, AA) */
  --brand-from: #00517d;
  --brand-to: #00888b;
  --bg-teal: #e9fafa;
  --bg-gray: #f5f7f9;
  --tile: #eef3f5;
  --border: #e5e5e5;
  --text: #0a0a0a;
  --heading: #1b1f23;
  --muted: #4b5563;
  --radius-btn: 6px;
  --radius-card: 16px;
  --shadow-btn: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  color: var(--text); background: var(--bg-gray); -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); color: var(--heading); line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 20px; font-weight: 700; margin-top: 2.5rem; margin-bottom: .75rem; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--teal-dark); text-underline-offset: 2px; }
a:hover { color: var(--brand-from); }
.muted { color: var(--muted); }
.error { color: #b91c1c; font-size: 14px; }
form.inline { display: inline; }

:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; border-radius: 4px; box-shadow: 0 0 0 2px #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }
.skip-link:focus { left: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  max-width: 72rem; margin: 0 auto; padding: 0 20px; min-height: 64px;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 28px; width: auto; display: block; }
.nav { display: flex; gap: 24px; flex: 1; }
.nav a { color: var(--heading); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--teal-dark); }
.nav a[aria-current="page"] { color: var(--teal-dark); border-bottom-color: var(--teal); }
.user { display: flex; align-items: center; gap: 12px; margin-left: auto; font-size: 14px; }
.user .who { color: var(--muted); }
.user form { margin: 0; }

/* Layout */
main { max-width: 72rem; margin: 0 auto; padding: 32px 20px 64px; }
.page-head { margin-bottom: 24px; }
.page-head p { margin: 0; }
.back { display: inline-block; font-size: 14px; font-weight: 500; text-decoration: none; margin-bottom: 16px; }

/* Buttons */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500; line-height: 20px;
  padding: 8px 16px; border-radius: var(--radius-btn); cursor: pointer; text-decoration: none;
  border: 1px solid var(--teal-dark); background: var(--teal-dark); color: #fff; box-shadow: var(--shadow-btn);
  transition: background-color .15s, color .15s, border-color .15s;
}
button:hover, .btn:hover { background: var(--teal-darker); border-color: var(--teal-darker); color: #fff; }
.btn-secondary, button.btn-secondary {
  background: #fff; color: var(--teal-dark); border-color: var(--teal); box-shadow: none;
}
.btn-secondary:hover, button.btn-secondary:hover { background: var(--bg-teal); color: var(--teal-dark); border-color: var(--teal-dark); }
.btn-ghost, button.btn-ghost {
  background: transparent; color: var(--heading); border-color: transparent; box-shadow: none; padding: 6px 10px;
}
.btn-ghost:hover, button.btn-ghost:hover { background: var(--bg-gray); color: var(--teal-dark); border-color: transparent; }
.btn-lg { font-size: 15px; padding: 10px 22px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Cards */
.card {
  background: #fff; border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.card > h2:first-child, .card > .card-head:first-child h2 { margin-top: 0; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head h2 { margin: 0; }
.icon-tile {
  flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--tile); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-tile svg { width: 20px; height: 20px; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }

/* Tabuľky */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -24px; padding: 0 24px; }
table { border-collapse: collapse; width: 100%; min-width: 40rem; font-size: 15px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); background: var(--bg-gray); border-bottom-color: var(--border);
}
th:first-child { border-top-left-radius: 8px; } th:last-child { border-top-right-radius: 8px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafcfd; }
td.name { font-weight: 500; color: var(--heading); }
td.actions { text-align: right; white-space: nowrap; }
td form { margin: 0; }
td form.inline-form { display: inline; }
#new-key { display: block; padding: 10px 12px; background: var(--bg-gray); border-radius: 8px; word-break: break-all; user-select: all; }

/* Status badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 500; line-height: 20px; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-problem { background: #fee2e2; color: #991b1b; }
.badge-waiting { background: #fef3c7; color: #92400e; }
.badge-not_monitored { background: #f1f5f9; color: #475569; }
.sev { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }

/* Zoznamy a meta */
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--muted); }
.evidence { margin: 0; padding-left: 1.25rem; }
.evidence li { margin-bottom: 4px; }
.timeline { list-style: none; margin: 0; padding: 0; }

/* Detail incidentu: dopad, graf, zbalene polozky */
.impact-value { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.chart-figure { margin: 0 0 16px; }
.chart-figure svg { display: block; width: 100%; height: auto; max-width: 40rem; }
.chart-figure figcaption { font-size: 14px; margin-top: 8px; }
.collapsed-items { margin-top: 12px; }
.collapsed-items summary { cursor: pointer; font-weight: 500; color: var(--teal-dark); margin-bottom: 8px; }

/* Posudzovanie */
.card-action { margin-left: auto; }
.trust-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0 0 12px; }
.trust-metric { background: var(--bg-gray); border-radius: 10px; padding: 12px 16px; }
.trust-metric dt { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.trust-metric dd { margin: 0; font-size: 15px; }
.review-queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.review-item { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; }
.review-item:focus, .review-item:focus-within { border-color: var(--teal-dark); background: var(--bg-teal); }
.review-item:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }
.review-main { flex: 1 1 320px; min-width: 0; }
.review-main p { margin: 0 0 4px; }
.review-title { overflow-wrap: anywhere; }
kbd { font-family: var(--font-body); font-size: 12px; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; }
.timeline li { padding: 10px 0 10px 20px; border-left: 2px solid var(--border); position: relative; font-size: 15px; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 16px; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--teal);
}
.timeline time { color: var(--muted); font-size: 14px; margin-right: 8px; }

/* Formuláre */
label { display: block; font-size: 14px; font-weight: 500; color: var(--heading); margin-bottom: 6px; }
input[type="text"], input[type="password"], input[type="email"], input[type="date"], input[type="number"], input[type="time"], select {
  font-family: var(--font-body); font-size: 15px; color: var(--text); background: #fff;
  border: 1px solid #6b7280; border-radius: var(--radius-btn); padding: 8px 12px; min-height: 40px; width: 100%;
}
input:focus-visible, select:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 0; border-color: var(--teal-dark); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--teal-dark); }
.field { margin-bottom: 16px; }
.field-check label { display: flex; gap: 8px; align-items: baseline; font-weight: 400; }
.ws-switch { display: flex; align-items: center; gap: 8px; margin: 0 0 0 16px; font-size: 14px; }
.ws-switch label { margin: 0; color: var(--muted); }
.field-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.field-row .field { margin-bottom: 0; flex: 0 1 14rem; }
.helptext { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
ul.errorlist { list-style: none; margin: 0 0 8px; padding: 0; color: #b91c1c; font-size: 14px; }

/* Úvodná stránka */
.hero { background: linear-gradient(180deg, var(--bg-teal) 0%, #f4fcfc 100%); }
.hero-inner {
  max-width: 72rem; margin: 0 auto; padding: 96px 20px 112px;
  display: grid; gap: 48px; grid-template-columns: 1.1fr 1fr; align-items: center;
}
.hero h1 { font-size: 56px; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 20px; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 32rem; margin-bottom: 28px; }
.hero-card { background: #fff; border-radius: var(--radius-card); padding: 20px 24px; box-shadow: var(--shadow-card); }
.hero-card .row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 600; font-size: 14px; color: var(--heading); }
.hero-card .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.hero-card .alert, .card .alert { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 10px 12px; font-size: 13px; color: #92400e; }
.hero-card .alert strong { display: block; color: #78350f; font-weight: 600; }
.hero-card .bars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.hero-card .bars div { border-radius: 8px; padding: 10px 12px; font-size: 13px; font-weight: 500; }
.hero-card .bars .down { background: #fef2f2; color: #991b1b; }
.hero-card .bars .up { background: #fff7ed; color: #9a3412; }
.features { max-width: 72rem; margin: 0 auto; padding: 64px 20px 80px; }
.features .card { margin: 0; display: flex; gap: 16px; align-items: flex-start; }
.features .card h3 { margin-bottom: 4px; }
.features .card p { margin: 0; color: var(--muted); font-size: 15px; }
body.landing main { max-width: none; padding: 0; }

/* Prihlásenie */
.auth { min-height: calc(100vh - 65px); display: flex; align-items: center; justify-content: center; padding: 48px 16px; background: linear-gradient(180deg, var(--bg-teal) 0%, var(--bg-gray) 60%); }
body.auth-page main { max-width: none; padding: 0; }
.auth .card { width: 100%; max-width: 26rem; padding: 32px; margin: 0; }
.auth h1 { margin-bottom: 4px; }
.auth .lead { color: var(--muted); margin-bottom: 24px; }
.auth button[type="submit"] { width: 100%; margin-top: 8px; }
.auth .auth-alt { margin: 16px 0 0; text-align: center; font-size: 0.9rem; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 16px 64px; gap: 32px; }
  .hero h1 { font-size: 38px; }
}
@media (max-width: 640px) {
  .site-header .bar { gap: 12px; padding: 0 16px; flex-wrap: wrap; min-height: 56px; }
  .nav { order: 3; flex-basis: 100%; gap: 16px; padding-bottom: 8px; }
  .user .who { display: none; }
  main { padding: 24px 16px 48px; }
  .card { padding: 20px; }
  .table-wrap { margin: 0 -20px; padding: 0 20px; }
  h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* API dokumentacia: ukazky curl */
pre { overflow-x: auto; max-width: 100%; padding: 12px 16px; background: var(--bg-gray); border: 1px solid var(--border); border-radius: var(--radius-btn); font-size: 14px; }
/* Stav e-shopu */
.verdict { margin: 0 0 24px; }
.verdict .badge { font-size: 18px; padding: 8px 16px; }
.tiles { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px 20px; }
.tile h3 { margin: 0 0 8px; font-size: 16px; }
.tile p { margin: 0 0 6px; }
.tile p.muted { font-size: 14px; }
.coverage { margin-top: 24px; }
.coverage h2 { font-size: 16px; margin: 0 0 12px; }

/* Bezplatný audit */
.audit-card button[type="submit"] { width: 100%; margin-top: 8px; }
.audit-card .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--muted); }
.audit-card .check input { margin-top: 3px; flex: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* HTMX indikatory (includeIndicatorStyles je vypnute kvoli CSP, vlastne pravidla tu) */
.htmx-indicator {
  opacity: 0;
  transition: opacity 200ms ease-in;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}

/* samoobsluzne pripojenie zdrojov (R5) */
.steps-list { padding-left: 1.25rem; }
.steps-list li { margin-bottom: .75rem; }
.copy-row { display: flex; gap: .5rem; margin-top: .25rem; }
.copy-field { flex: 1; min-width: 0; font-family: ui-monospace, monospace; }
.access-requests { list-style: none; padding: 0; }
.access-requests li { margin-bottom: .25rem; }
.sources { list-style: none; padding: 0; }
.sources li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--border, #e2e8f0); }

/* N3 Task 3: oblast hlasok (base.html), verdikty, skupiny fronty, rychle stisenie */
.messages { max-width: 1120px; margin: 12px auto 0; padding: 0 16px; display: grid; gap: 8px; }
.messages:empty { display: none; }
.alert { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 10px 12px; font-size: 14px; color: #92400e; }
.alert-success, .alert-info { background: var(--bg-teal); border-color: var(--teal); color: #1b1f23; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert form { margin: 0; }
button.btn-link { background: none; border: 0; box-shadow: none; padding: 0; color: var(--teal-dark); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
button.btn-link:hover { background: none; color: var(--teal-darker); }
button.btn-secondary[aria-pressed="true"] { background: var(--teal-dark); color: #fff; border-color: var(--teal-dark); }
.review-group { list-style: none; border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; }
.review-group details summary, .mute-other summary { cursor: pointer; font-weight: 500; color: var(--teal-dark); margin: 8px 0; }
.review-group .review-queue { margin-top: 8px; }

/* Prehľad a zoznam incidentov (N3 Task 6) */
.badge-not_monitored { background: transparent; color: #64748b; padding-left: 0; }
.badge-warn { background: #fde68a; color: #78350f; }
.badge-confirmed { background: #e0f2fe; color: #075985; }
.sev { display: inline-block; padding: 1px 8px; border-radius: 6px; border: 1px solid transparent; }
.sev-fail { background: #fee2e2; color: #991b1b; }
.sev-warn { background: #fef3c7; color: #78350f; }
.sev-note { background: transparent; color: #475569; border-color: #94a3b8; }
.summary { margin: 0 0 24px; padding: 16px 24px; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.summary-line { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; margin: 0; font-size: 17px; }
.summary-item { color: var(--heading); text-decoration: none; }
.summary-item b { font-family: var(--font-head); font-size: 22px; }
.summary-fail b, .summary-fail { color: #991b1b; }
.summary-warn b, .summary-warn { color: #92400e; }
.summary-ok { background: #f0fdf4; }
.summary-good { color: #166534; font-weight: 600; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--heading); text-decoration: none; font-size: 14px; }
.chip-on { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.chip-n { font-weight: 600; }
.shop-search { display: flex; gap: 8px; margin: 0 0 16px; }
.shop-search input[type="search"] { flex: 1; max-width: 24rem; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 16px; }
.info-fold summary { cursor: pointer; font-weight: 600; color: var(--heading); }
.muted.block { display: block; font-size: 13px; font-weight: 400; }
.row-off td { opacity: .75; }
td:first-child, th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; }
th:first-child { background: var(--bg-gray); }
tbody tr:hover td:first-child { background: #fafcfd; }
@media (max-width: 640px) {
  table.cards { min-width: 0; }
  table.cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.cards, table.cards tbody, table.cards tr, table.cards td { display: block; width: 100%; }
  table.cards tr { padding: 12px 0; border-bottom: 1px solid var(--border); }
  table.cards td { border: 0; padding: 4px 0; position: static; background: transparent; }
  table.cards td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; }
  table.cards td.name { font-size: 16px; }
  table.cards td.actions { text-align: left; }
}

/* N3 Task 7: nastavenia, pocet v navigacii, chybove stranky */
.nav-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--teal-dark); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.settings-grid { display: grid; gap: 16px; }
.time-fields { display: flex; flex-wrap: wrap; gap: 16px; }
.time-fields .field { flex: 1 1 10rem; max-width: 14rem; }
.field-error { color: var(--danger, #b42318); font-weight: 500; margin-top: 4px; }
.error-page { text-align: center; padding: 64px 0; }
button[disabled], button.htmx-request { opacity: .6; cursor: progress; }
