/* Akademie RODu – doplňky k app.css (sdílený vzhled s ROD systémem) */
.hero { padding: 8px 0 4px; }
.hero h1 { font-size: 1.9rem; margin-bottom: 6px; }
.hero p { max-width: 720px; }
.courses { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.courses .card { display: flex; flex-direction: column; gap: 6px; height: 100%; }
.courses .card h2 { font-size: 1.1rem; margin: 0; }
.video { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; margin: 12px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-gate { display: block; }
.video-gate .video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #1d1d1b; color: #fff; font: inherit; font-weight: 700; font-size: 1.1rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; }
.video-gate .video-play:hover, .video-gate .video-play:focus-visible { background: #2d2d2a; }
.video-gate .video-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.15); font-size: 1.5rem; }
.video-gate .video-play small { font-weight: 400; font-size: .8rem; opacity: .8; max-width: 34em; text-align: center; }
.lesson-body { font-size: 1.05rem; line-height: 1.65; }
.lesson-body h3 { margin-top: 1.4em; }
.lessons-list { list-style: none; padding: 0; margin: 0; }
.lessons-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: baseline; }
.lessons-list li:last-child { border-bottom: 0; }
.tick { color: var(--ok, #2e7d32); font-weight: 700; }
.lock { opacity: .7; }
.pager { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 16px; }
.chips a { text-decoration: none; }
.courses .card.closed { opacity: .85; border-style: dashed; }
.notice { border-left: 4px solid var(--accent); }
/* testy */
.quiz .question { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; }
.quiz .question legend { font-weight: 600; padding: 0 4px; }
.quiz .question.right { border-color: var(--accent); }
.quiz .question.wrong { border-color: var(--bad); }
.quiz .option { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; }
.quiz .option.correct span { color: var(--accent); font-weight: 600; }
.quiz .option.bad span { color: var(--bad); text-decoration: line-through; }
.quiz .explain { margin: 8px 0 0; background: var(--field); border-radius: 8px; padding: 8px 10px; }
/* autoři a správa */
.status-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.qlist .qitem { border-top: 1px solid var(--line); padding: 10px 0; }
.qlist .qitem:first-child { border-top: 0; }
.diff { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; white-space: pre-wrap; background: var(--field); border-radius: 8px; padding: 8px 10px; overflow-x: auto; }
.diff .add { background: var(--ok-soft); color: var(--accent); display: block; }
.diff .del { background: var(--bad-soft); color: var(--bad); display: block; text-decoration: line-through; }
.diff .eq { display: block; color: var(--muted); }
.change-new { border-left: 4px solid var(--accent); }
.change-removed { border-left: 4px solid var(--bad); }
.change-changed { border-left: 4px solid var(--warn); }
/* osvědčení */
.cert { max-width: 760px; margin: 18px auto; padding: 42px 36px; text-align: center; background: var(--surface); border: 3px double #8d6e63; border-radius: 6px; }
.cert h1 { font-size: 1.5rem; margin: 6px 0 22px; letter-spacing: .02em; }
.cert-brand { font-weight: 800; letter-spacing: .08em; margin: 0; }
.cert-brand span { color: var(--accent); }
.cert-name { font-size: 1.9rem; font-weight: 700; margin: 10px 0 4px; }
.cert-course { font-size: 1.35rem; font-weight: 600; margin: 4px 0 8px; }
.cert-verify { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 28px; text-align: left; }
.cert .code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; }
/* přehledy a sestavy */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.kpi b { display: block; font-size: 1.35rem; line-height: 1.2; }
.kpi span { color: var(--muted); font-size: .88rem; }
.kpi.bad b { color: var(--bad); }
.progress { height: 6px; background: var(--line); border-radius: 3px; margin-top: 4px; min-width: 70px; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 12px; }
.report-bar { margin: 0 0 6px; }
.print-only { display: none; }
ul.cols { columns: 2 220px; padding-left: 18px; margin: 8px 0 0; }
@media print {
  header.top, .no-print, .flash, details > summary, .report-bar { display: none !important; }
  .print-only { display: block; }
  body, main { background: #fff !important; color: #000; padding: 0 !important; }
  main { max-width: none !important; }
  a { color: #000; text-decoration: none; }
  .card, .kpi { border: 1px solid #bbb; box-shadow: none; background: #fff; break-inside: avoid; }
  .table-wrap { overflow: visible !important; }
  table { font-size: 10pt; width: 100%; border-collapse: collapse; }
  th, td { border-bottom: 1px solid #ccc; padding: 4px 6px; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  .badge { border: 1px solid #999; background: none !important; color: #000 !important; }
  .progress { border: 1px solid #999; background: #fff; } .progress span { background: #555; }
  h1 { font-size: 16pt; } h2 { font-size: 13pt; margin-top: 14pt; }
  .cert { border-color: #8d6e63; margin: 0 auto; background: #fff; color: #000; }
}
input[type=datetime-local], input[type=url] { width: 100%; font: inherit; color: var(--ink); background: var(--field);
  border: 1px solid var(--field-line); border-radius: 8px; padding: 10px 12px; min-height: 44px; }
/* vizuální editor */
.editor { border: 1px solid var(--field-line); border-radius: 10px; background: var(--surface); }
.editor:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61, 107, 65, .15); }
.editor-bar { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; padding: 6px; border-bottom: 1px solid var(--line); background: var(--field); border-radius: 10px 10px 0 0; position: sticky; top: 0; z-index: 2; }
.editor-bar button { font: inherit; font-size: .88rem; background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 4px 9px; min-height: 32px; cursor: pointer; color: var(--ink); }
.editor-bar button:hover { background: var(--surface); border-color: var(--line); }
.editor-bar button.on { background: var(--surface); border-color: var(--field-line); box-shadow: inset 0 -2px 0 var(--accent); }
.editor-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.editor-link { display: flex; gap: 8px; align-items: center; padding: 8px; border-bottom: 1px solid var(--line); }
.editor-link[hidden] { display: none; }
.editor-link input { flex: 1; min-height: 36px; padding: 6px 10px; border: 1px solid var(--field-line); border-radius: 8px; font: inherit; }
.editor-area { padding: 12px 16px; outline: none; overflow-wrap: anywhere; }
.editor-area:empty::before, .editor-area > p:only-child:has(> br:only-child)::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.editor-area > p:only-child:has(> br:only-child)::before { position: absolute; }
.editor-area p { margin: 0 0 .7em; }
.lesson-body h2 { font-size: 1.3rem; margin: 1.2em 0 .4em; }
.lesson-body h3 { font-size: 1.1rem; margin: 1.1em 0 .3em; }
.lesson-body blockquote { margin: .8em 0; padding: 8px 14px; border-left: 4px solid var(--accent); background: var(--field); border-radius: 0 8px 8px 0; }
.lesson-body h2:first-child, .lesson-body h3:first-child { margin-top: 0; }
.quiz .order-item select, .quiz .match-item select { width: auto; min-height: 36px; padding: 4px 8px; }
.quiz .match-item { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.4fr); gap: 10px; align-items: center; }
.quiz .order-item.correct span, .quiz .match-item.correct .match-left { color: var(--accent); font-weight: 600; }
.quiz .order-item.bad span, .quiz .match-item.bad .match-left { color: var(--bad); }
@media (max-width: 520px) { .quiz .match-item { grid-template-columns: 1fr; gap: 4px; } }
/* studijní cesty */
.path-steps { list-style: none; padding: 0; margin: 12px 0; }
.path-step { display: flex; gap: 14px; align-items: flex-start; }
.path-step .step-no { flex: 0 0 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--field); border: 2px solid var(--line); }
.path-step.done .step-no { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.path-step.started .step-no { border-color: var(--accent); }
/* obrázky a Abecera v textech */
.lesson-body img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 10px 0; }
.editor-area img { max-width: 100%; height: auto; outline: 1px dashed var(--line); }
a.abecera { text-decoration: underline dotted; text-underline-offset: 3px; }
.editor-status { padding: 6px 10px; font-size: .88rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.editor-status[hidden] { display: none; }
/* cenové podmínky */
table.rules { width: 100%; border-collapse: collapse; margin: 0 0 8px; }
table.rules th, table.rules td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.rules tr.base td { background: var(--field); }
table.rules .nowrap { white-space: nowrap; }
/* ===== 0.7 veřejná část: katalog, karty, detail kurzu, autoři ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.nowrap { white-space: nowrap; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 6px; }
.ak-hero { margin: -24px -16px 8px; padding: 46px 16px 34px; background:
  radial-gradient(1200px 300px at 10% -10%, var(--accent-soft), transparent 70%),
  linear-gradient(180deg, var(--accent-soft), var(--bg)); border-bottom: 1px solid var(--line); }
.ak-hero-in { max-width: 1100px; margin: 0 auto; }
.ak-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 10px; letter-spacing: -.01em; }
.ak-search { display: flex; gap: 8px; max-width: 640px; margin: 18px 0 10px; }
.ak-search input { flex: 1; min-height: 50px; font-size: 1.05rem; border-radius: 12px; padding: 10px 16px; border: 1px solid var(--field-line); background: var(--surface); color: var(--ink); }
.ak-search .btn { min-height: 50px; padding: 0 22px; border-radius: 12px; }
.ak-hero-stats { color: var(--muted); font-size: .95rem; margin: 0; }
.ak-sec { margin: 30px 0 8px; }
.ak-sec > h2 { font-size: 1.3rem; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.small-link { font-size: .9rem; font-weight: 400; }
.cat-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.cat-tile { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  border-left: 5px solid var(--cat); transition: transform .12s, box-shadow .12s; }
.cat-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.cat-tile .cat-ic { grid-row: span 2; font-size: 1.7rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: color-mix(in srgb, var(--cat) 14%, transparent); }
.cat-tile .cat-name { font-weight: 650; line-height: 1.25; }
.cat-tile .cat-n { font-size: .82rem; color: var(--muted); }
.cat-tile.empty { opacity: .7; }
.cat-head { display: flex; gap: 14px; align-items: center; margin: 4px 0 12px; }
.cat-head .cat-ic { font-size: 2.2rem; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: color-mix(in srgb, var(--cat) 16%, transparent); flex: none; }
.cat-head h1 { margin: 0 0 2px; } .cat-head p { margin: 0; }
/* karty kurzů */
.cgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cgrid.featured { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ccard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  text-decoration: none; color: var(--ink); transition: transform .12s, box-shadow .12s; }
.ccard:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.09); }
.ccard:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ccard-img { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, color-mix(in srgb, var(--cat) 30%, var(--surface)), color-mix(in srgb, var(--cat) 8%, var(--surface))); }
.ccard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ccard-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; opacity: .85; }
.ccard-img .label { position: absolute; top: 10px; left: 10px; }
.ccard-img .label + .label { top: 40px; }
.ccard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ccard-body h3 { font-size: 1.08rem; margin: 0; line-height: 1.3; }
.ccard.big .ccard-body h3 { font-size: 1.2rem; }
.ccard-cats { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--cat); font-weight: 700; filter: saturate(.9); }
.ccard-sum { margin: 0; color: var(--muted); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ccard-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .84rem; color: var(--muted); }
.ccard-foot { margin: auto 0 0; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.ccard.closed { opacity: .88; } .ccard.closed .ccard-img { filter: grayscale(.4); }
.label { display: inline-block; font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #fff; color: #2b2b2b;
  box-shadow: 0 1px 3px rgba(0,0,0,.18); letter-spacing: .02em; }
.label-rod { background: #2f5d34; color: #fff; }
.label-recommended { background: #c08a1c; color: #fff; }
.label-required { background: #a3271b; color: #fff; }
.label-soon { background: #fff; color: #555; }
.path-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.path-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px dashed var(--accent); }
.path-tile:hover { background: var(--accent-soft); }
/* filtry */
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 10px; align-items: end; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 10px 0 8px; }
.filters label { font-size: .8rem; color: var(--muted); font-weight: 600; display: block; margin-bottom: 2px; }
.filters select, .filters input { width: 100%; min-height: 40px; padding: 6px 10px; }
.filters .f-q { grid-column: span 2; }
.filters .f-go { display: flex; gap: 8px; align-items: center; }
@media (max-width: 520px) { .filters { grid-template-columns: 1fr 1fr; } .filters .f-q { grid-column: 1 / -1; } }
.result-n { margin: 6px 0 12px; font-size: .9rem; }
.empty-state { text-align: center; padding: 26px; }
/* autoři */
.avatar-i { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-weight: 700; flex: none; }
.avatar-i.big { width: 72px; height: 72px; font-size: 1.4rem; } .avatar-i.huge { width: 120px; height: 120px; font-size: 2.2rem; }
.author-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.author-chip { display: flex; gap: 10px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); max-width: 320px; }
.author-chip img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.author-chip small, .authors small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.author-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.author-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; text-decoration: none; color: var(--ink); }
.author-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 4px; }
.profile-head { display: flex; gap: 20px; align-items: center; margin: 6px 0 18px; flex-wrap: wrap; }
.profile-head img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.profile-head h1 { margin: 0 0 4px; } .profile-head .lead { margin: 0 0 4px; }
/* detail kurzu */
.crumbs { font-size: .9rem; color: var(--muted); margin: 0 0 10px; }
.c-hero { position: relative; border-radius: 18px; overflow: hidden; margin: 0 0 18px; min-height: 180px; display: flex; align-items: flex-end;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cat) 30%, var(--surface)), color-mix(in srgb, var(--cat) 6%, var(--surface))); border: 1px solid var(--line); }
.c-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-hero.has-img { min-height: clamp(200px, 30vw, 360px); color: #fff; }
.c-hero.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,.72)); }
.c-hero-in { position: relative; z-index: 1; padding: 22px 24px; width: 100%; }
.c-hero h1 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 4px 0 6px; }
.c-hero .lead { margin: 0 0 8px; } .c-hero.has-img .lead { color: rgba(255,255,255,.9); }
.c-labels { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.c-hero-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .92rem; }
.chip-cat { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: .85rem; border: 1px solid var(--line); }
.c-hero.has-img .chip-cat { background: rgba(255,255,255,.9); color: #222; border: 0; }
.c-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
@media (max-width: 860px) { .c-layout { grid-template-columns: 1fr; } .c-side { order: -1; } }
.c-side { position: sticky; top: 76px; }
@media (max-width: 860px) { .c-side { position: static; } }
.side-box h2 { font-size: 1rem; margin: 0 0 8px; }
.side-price { font-size: 1.5rem; font-weight: 750; margin: 0 0 10px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 14px 0 6px; font-size: .92rem; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.plain-list { list-style: none; padding: 0; margin: 6px 0 0; } .plain-list li { margin: 3px 0; }
.authors { list-style: none; padding: 0; margin: 0; }
.authors li + li { margin-top: 10px; }
.authors a { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); }
.authors img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.module h3 { margin: 0 0 6px; font-size: 1.05rem; }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 16px; }
.gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--field); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.gallery a:hover img { transform: scale(1.04); }
.files { list-style: none; padding: 0; margin: 0 0 16px; }
.files li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.files li:last-child { border-bottom: 0; }
.files .fname { flex: 1; display: flex; flex-direction: column; }
.ficon { flex: none; width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; letter-spacing: .03em;
  background: var(--accent-soft); color: var(--accent); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 90vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 6px; }
.lightbox figcaption { color: #eee; margin-top: 8px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.lb-close { top: 14px; right: 14px; } .lb-prev { left: 14px; top: 50%; } .lb-next { right: 14px; top: 50%; }
/* správa: záložky, katalog, média, ořez */
.page-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.page-tabs a { padding: 8px 12px; text-decoration: none; border-radius: 8px 8px 0 0; color: var(--ink); }
.page-tabs a:hover { background: var(--accent-soft); }
.note-box { background: var(--warn-soft); border-left: 4px solid var(--warn); border-radius: 0 8px 8px 0; padding: 8px 12px; margin: 8px 0; }
.catalog-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 700px) { .catalog-card { grid-template-columns: 1fr; } }
.cat-cover { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cat-cover img, .cover-empty { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.cover-empty { display: grid; place-items: center; color: var(--muted); background: var(--field); font-size: .9rem; }
.pick-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick img { width: 110px; height: 74px; object-fit: cover; border-radius: 8px; border: 3px solid transparent; display: block; }
.pick input:checked + img { border-color: var(--accent); }
.pick input:focus-visible + img { outline: 3px solid var(--accent); outline-offset: 2px; }
.croppers { display: grid; gap: 16px; grid-template-columns: 1.2fr 1.6fr .8fr; align-items: start; margin: 8px 0 14px; }
@media (max-width: 860px) { .croppers { grid-template-columns: 1fr; } }
.cropper .crop-frame { width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--field); margin-top: 6px; }
.cropper canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.cropper canvas:active { cursor: grabbing; }
.cropper .crop-zoom { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 8px 0 4px; }
.cropper .crop-zoom input { flex: 1; }
.media-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-bottom: 18px; }
.media-item { display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.media-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.media-item .row-form { margin: 0; }
.files.card { padding: 4px 16px; }
@media (max-width: 520px) {
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cat-tile { grid-template-columns: 1fr; padding: 10px; border-left-width: 4px; }
  .cat-tile .cat-ic { grid-row: auto; width: 36px; height: 36px; font-size: 1.3rem; margin-bottom: 4px; }
  .cat-tile .cat-name { font-size: .92rem; }
  .ak-search { flex-direction: column; }
}
.media-item .row-form .check { white-space: nowrap; flex: 1 1 auto; } .media-item .row-form input[type=number] { flex: 0 0 80px; }
.editor-link a { font-size: .9rem; }
.notes { list-style: none; padding: 0; margin: 12px 0 0; } .notes li { border-top: 1px solid var(--line); padding: 8px 0; } .danger-zone { border-color: var(--bad); }
body.readonly main form[method=post], body.readonly main form[method=POST], body.readonly .editor-bar { display: none !important; }
.login-cta { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-left: 4px solid var(--accent); } .login-cta > div { flex: 1 1 320px; }
.result-box { border-left: 6px solid var(--accent); }
.result-box.bad { border-left-color: var(--bad); background: var(--bad-soft); }
.result-box.ok { background: var(--ok-soft); }
.result-head { font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; }
.result-box.bad .result-head { color: var(--bad); }
.pick-none { display: grid; place-items: center; width: 110px; height: 74px; border-radius: 8px; border: 3px solid transparent; background: var(--field); font-size: .85rem; color: var(--muted); } .pick input:checked + .pick-none { border-color: var(--accent); } .module-info { margin-top: 8px; } .module-head { display: flex; gap: 14px; align-items: flex-start; } .module-head img { width: 160px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; flex: none; } @media (max-width: 520px) { .module-head { flex-direction: column; } .module-head img { width: 100%; } }
.file-item { padding: 12px 14px; } .file-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; } .file-top input[type=text] { flex: 1 1 220px; }
.editor-library { padding: 8px 10px; border-bottom: 1px solid var(--line); max-height: 320px; overflow: auto; }
.editor-library[hidden] { display: none; }
.lib-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; font-size: .9rem; }
.lib-head button { margin-left: auto; }
.lib-images { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.lib-images button { padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; }
.lib-images button:hover { border-color: var(--accent); }
.lib-images img { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; display: block; }
.lib-files { list-style: none; padding: 0; margin: 0; }
/* 0.13: vlastní pozadí osvědčení */
.cert.has-bg { position: relative; overflow: hidden; border: 0; background: #fff; color: #1d1d1b; display: flex; flex-direction: column; justify-content: center; padding: 6% 9%; }
.cert.has-bg.landscape { max-width: 1000px; aspect-ratio: 297 / 210; }
.cert.has-bg.portrait { max-width: 707px; aspect-ratio: 210 / 297; }
.cert.has-bg > * { position: relative; z-index: 1; }
.cert.has-bg > .cert-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cert.has-bg .muted, .cert.has-bg .hint { color: inherit; opacity: .8; }
.cert.has-bg.light { color: #fff; }
.cert.has-bg.light .cert-brand span { color: #cfe6cf; }
.cert.has-bg .cert-verify img { background: #fff; padding: 4px; border-radius: 4px; }
@media print {
  .cert.has-bg { max-width: none; width: 100vw; height: 100vh; aspect-ratio: auto; margin: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cert.has-bg.light { color: #fff !important; }
}
/* šipky pořadí v osnově kurzu */
.move-btns { display: inline-flex; gap: 2px; align-items: center; margin-right: 6px; }
.move-btns .btn.link { padding: 2px 8px; min-width: 32px; min-height: 32px; text-decoration: none; }
.mod-move { margin-top: 4px; font-size: .9rem; }
.lessons-list li { align-items: center; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 8px 0 16px; }
.ready-list ul { margin: 6px 0; padding-left: 20px; } .ready-list li { margin: 2px 0; }

/* patička */
.foot { max-width: 1100px; margin: 24px auto 0; padding: 12px 16px 40px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
.foot a { color: inherit; }
@media print { .foot { display: none; } }
/* Přístupnost: odkaz „Přeskočit na obsah“ (viditelný po stisku Tab), viditelný fokus */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--surface, #fff); color: var(--accent); padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow); font-weight: 600; }
.skip-link:focus { top: 8px; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--bad) !important; box-shadow: 0 0 0 2px var(--bad-soft); }
.narrow > main { padding: 0; max-width: none; margin: 0; }

/* Barvy tlačítek podle toho, z jakého titulu je čelověk vidí (jako v Centrum.RODu.cz): zelená = člen (výchozí),
   modrá = z titulu funkce (pořadatel, garant, prodejce ve správě…), tyrkysová = Sebespráva, oranžová = správci aplikace; červená = nevratné akce */
:root{--aud-func:#2f6fb3;--aud-func-d:#245891;--aud-func-s:#e3edf8;--aud-admin:#b25b12;--aud-admin-d:#8c470d;--aud-admin-s:#fbead9;--aud-sam:#0b7a78;--aud-sam-d:#085d5b;--aud-sam-s:#daf0ef}
@media (prefers-color-scheme:dark){:root{--aud-func:#8bb8ea;--aud-func-d:#a9cbf0;--aud-func-s:#1e2a38;--aud-admin:#f0a868;--aud-admin-d:#f4bd8a;--aud-admin-s:#3a2a1c;--aud-sam:#6fd1cf;--aud-sam-d:#8edcda;--aud-sam-s:#163231}}
.ctx-func,.aud-func{--b:var(--aud-func);--bd:var(--aud-func-d);--bs:var(--aud-func-s)}
.ctx-admin,.aud-admin{--b:var(--aud-admin);--bd:var(--aud-admin-d);--bs:var(--aud-admin-s)}
.aud-sam{--b:var(--aud-sam);--bd:var(--aud-sam-d);--bs:var(--aud-sam-s)}
main:is(.ctx-func,.ctx-admin) .btn:not(.secondary):not(.danger):not(.link), .aud-func .btn:not(.secondary):not(.danger):not(.link), .aud-admin .btn:not(.secondary):not(.danger):not(.link), .aud-sam .btn:not(.secondary):not(.danger):not(.link){background:var(--b);border-color:var(--b);color:#fff}
main:is(.ctx-func,.ctx-admin) .btn:not(.secondary):not(.danger):not(.link):hover{background:var(--bd);border-color:var(--bd)}
main:is(.ctx-func,.ctx-admin) .btn.secondary:not(.danger), .aud-func .btn.secondary, .aud-admin .btn.secondary, .aud-sam .btn.secondary{color:var(--b);border-color:var(--b);background:var(--bs)}
@media (prefers-color-scheme:dark){main:is(.ctx-func,.ctx-admin) .btn:not(.secondary):not(.danger):not(.link){color:#111}}

/* odkaz zpět na Centrum.RODu.cz */
.to-centrum{white-space:nowrap;opacity:.85;border-left:1px solid currentColor;padding-left:.7em;margin-left:.2em}
.to-centrum:hover,.to-centrum:focus{opacity:1}

/* 0.26.0: Pro koho a kdy – 5 kroků */
.aud-steps .aud-step { border-top: 1px solid var(--line, #ddd); padding: 12px 0 6px; }
.aud-steps .aud-step:first-of-type { border-top: 0; }
.aud-steps .aud-step.muted { opacity: .6; }
.aud-steps h3 { margin: 0 0 8px; font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
.aud-steps .step-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent, #2b5c9a); color: #fff; font-size: .85rem; font-weight: 700; }
.aud-steps select[multiple] { width: 100%; }
.aud-people { max-height: 260px; overflow-y: auto; }
.aud-code { font-size: 1.2rem; letter-spacing: .15em; }
.aud-list { list-style: none; padding: 0; margin: 6px 0 0; }
.aud-list li { padding: 3px 0; }
