/* ============================ Adept údržby (#/adept) ============================ */
.ad { min-height: 100vh; background: radial-gradient(90% 60% at 90% -10%, color-mix(in srgb, var(--c5) 16%, transparent), transparent 60%), var(--bg); }
.ad-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px clamp(12px, 3vw, 28px); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ad-title { display: grid; line-height: 1.15; margin-right: auto; }
.ad-title strong { font-size: 16px; }
.ad-nav button.is-on { color: var(--ink); }
.ad-me { display: flex; align-items: center; gap: 8px; }
.ad-me small { font-size: 11.5px; color: var(--muted); margin-left: 4px; }
.ad-me .chip { cursor: pointer; border: 1px solid var(--line); }
.ad-main { width: min(1240px, 100%); margin: 0 auto; padding: clamp(16px, 3vw, 32px) clamp(12px, 3vw, 28px) 60px; display: grid; gap: 22px; }
.ad-h { font-size: 20px; margin-top: 6px; }
.ad-note { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.ad-small { font-size: 12.5px; }
.ad-join .join-card { width: min(600px, 100%); }

/* prehľad */
.ad-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(16px, 3vw, 34px); align-items: center; padding: clamp(18px, 3vw, 30px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.ad-hero h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; margin: 4px 0 10px; }
.ad-hero p { color: var(--ink-2); line-height: 1.55; }
.ad-steps { display: grid; gap: 10px; }
.ad-step { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.ad-step h3 { font-size: 15.5px; }
.ad-step p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ad-step-n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface-3); color: var(--ink); border: 2px solid var(--line-strong); }
.ad-step.is-done .ad-step-n, .ad-step.is-ok .ad-step-n { background: var(--c5); border-color: var(--c5); color: #fff; }
.ad-step.is-warn .ad-step-n { background: var(--warn); border-color: var(--warn); color: #fff; }
.ad-step.is-bad .ad-step-n { background: var(--bad); border-color: var(--bad); color: #fff; }
.ad-step.is-locked { opacity: .7; }
.ad-bar { height: 6px; border-radius: 99px; background: var(--surface-3); margin-top: 8px; overflow: hidden; }
.ad-bar i { display: block; height: 100%; background: var(--c5); border-radius: inherit; }
.ad-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ad-topic { position: relative; display: grid; grid-template-rows: 110px auto; text-align: left; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); padding: 0; cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.ad-topic:hover { transform: translateY(-2px); border-color: var(--c5); }
.ad-topic-img { background-size: cover; background-position: center; filter: saturate(.9); }
.ad-topic-n { position: absolute; top: 10px; left: 10px; font-weight: 800; font-size: 13px; padding: 3px 9px; border-radius: 99px; background: rgba(0,0,0,.65); color: #fff; }
.ad-topic-t { display: grid; gap: 3px; padding: 12px 14px 14px; }
.ad-topic-t b { font-size: 15px; }
.ad-topic-t small { font-size: 12.5px; color: var(--muted); }
.ad-topic.is-done .ad-topic-t small { color: var(--c5); font-weight: 650; }
.ad-topic-score { position: absolute; top: 10px; right: 10px; font-weight: 800; font-size: 12.5px; padding: 3px 9px; border-radius: 99px; color: #fff; background: var(--ok); }
.ad-topic-score.is-mid { background: var(--warn); }
.ad-topic-score.is-low { background: var(--bad); }

/* kurz */
.ad-course { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.ad-toc { position: sticky; top: 78px; display: grid; gap: 4px; }
.ad-toc-i { display: grid; grid-template-columns: 28px minmax(0, 1fr) 16px; gap: 8px; align-items: center; text-align: left; padding: 9px 10px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-size: 13.5px; }
.ad-toc-i span { font-weight: 800; font-size: 12px; }
.ad-toc-i b { font-weight: 650; color: var(--ink-2); }
.ad-toc-i i { font-style: normal; color: var(--c5); font-weight: 800; }
.ad-toc-i:hover { background: var(--surface-2); }
.ad-toc-i.is-cur { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-1); }
.ad-toc-i.is-cur b { color: var(--ink); }
.ad-player { display: grid; gap: 12px; min-width: 0; }
.ad-stage { box-shadow: 0 18px 50px rgba(0, 0, 0, .3); }
.ad-ctrl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.ad-dots { display: flex; gap: 4px; align-items: center; min-width: 0; }
.ad-dots .ps-dot.is-cur i { background: var(--c5); height: 8px; }
.ad-card { padding: clamp(14px, 2.4vw, 22px); border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.ad-card.is-static { display: none; }
.ad-card .act { margin: 0; }

/* test */
.ad-panel { padding: clamp(18px, 3vw, 30px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); display: grid; gap: 14px; max-width: 860px; }
.ad-panel h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; }
.ad-rules { display: grid; gap: 8px; padding-left: 20px; line-height: 1.5; }
.ad-crit { background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.ad-test { display: grid; gap: 16px; max-width: 900px; width: 100%; margin: 0 auto; }
.ad-tprog { display: grid; grid-template-columns: repeat(40, minmax(0, 1fr)); gap: 3px; }
.ad-tprog button { height: 10px; border: 0; border-radius: 3px; background: var(--surface-3); cursor: pointer; padding: 0; }
.ad-tprog button.is-ans { background: color-mix(in srgb, var(--c5) 70%, var(--surface-3)); }
.ad-tprog button.is-crit { box-shadow: inset 0 -3px 0 var(--warn); }
.ad-tprog button.is-cur { outline: 2px solid var(--ink); outline-offset: 1px; }
.ad-q { padding: clamp(18px, 3vw, 30px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); display: grid; gap: 16px; }
.ad-q-k { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ad-q-n { font-size: 13px; font-weight: 700; color: var(--muted); margin-left: auto; }
.ad-q h2 { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.3; letter-spacing: -.01em; }
.ad-opts { display: grid; gap: 10px; }
.ad-opt { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; font-size: 15.5px; line-height: 1.4; transition: border-color .15s, background .15s; }
.ad-opt b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-3); font-weight: 800; }
.ad-opt:hover { border-color: var(--line-strong); }
.ad-opt.is-sel { border-color: var(--c5); background: color-mix(in srgb, var(--c5) 14%, var(--surface-2)); }
.ad-opt.is-sel b { background: var(--c5); color: #fff; }
.ad-qnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ad-qdone { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 650; }

/* hodnotenie */
.ad-report { display: grid; gap: 18px; padding: clamp(18px, 3vw, 34px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); max-width: 980px; width: 100%; margin: 0 auto; }
.ad-rep-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.ad-rep-head h1 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; margin: 4px 0; }
.ad-rep-logo { width: 90px; height: 22px; flex: none; }
.ad-level { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); }
.ad-level h2 { font-size: clamp(20px, 2.6vw, 26px); margin: 2px 0 6px; }
.ad-level p { color: var(--ink-2); line-height: 1.5; }
.ad-level.is-ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent); --lc: var(--ok); }
.ad-level.is-warn { border-color: color-mix(in srgb, var(--warn) 50%, transparent); --lc: var(--warn); }
.ad-level.is-bad { border-color: color-mix(in srgb, var(--bad) 50%, transparent); --lc: var(--bad); }
.ad-level .kicker { color: var(--lc); }
.ad-ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: radial-gradient(closest-side, var(--surface-2) 78%, transparent 79%), conic-gradient(var(--lc, var(--c5)) calc(var(--p) * 1%), var(--surface-3) 0); }
.ad-ring b { font-size: 28px; line-height: 1; }
.ad-ring small { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.ad-sec { display: grid; gap: 10px; }
.ad-sec h3 { font-size: 16px; }
.ad-areas { display: grid; gap: 8px; }
.ad-area { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) 86px 86px; gap: 12px; align-items: center; font-size: 14px; }
.ad-area-l i { font-style: normal; color: var(--warn); }
.ad-area-bar { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.ad-area-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ok); }
.ad-area.is-mid .ad-area-bar i { background: var(--warn); }
.ad-area.is-low .ad-area-bar i { background: var(--bad); }
.ad-area-p { font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; }
.ad-area-s { font-size: 12px; font-weight: 750; text-align: center; padding: 3px 8px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); }
.ad-area.is-mid .ad-area-s { background: var(--warn-soft); color: var(--warn); }
.ad-area.is-low .ad-area-s { background: var(--bad-soft); color: var(--bad); }
.ad-crit-ok { color: var(--ok); font-weight: 650; }
.ad-crit-bad { color: var(--bad); font-weight: 650; }
.ad-actions { display: grid; gap: 8px; padding-left: 20px; line-height: 1.5; }
.ad-wrong { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); break-inside: avoid; }
.ad-wrong-q { font-weight: 650; }
.ad-wrong-a { color: var(--bad); font-size: 14px; }
.ad-wrong-c { color: var(--ok); font-size: 14px; }
.ad-wrong-e { color: var(--muted); font-size: 13.5px; }
.ad-wrong .btn { justify-self: start; margin-top: 4px; }
.ad-sign { display: none; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 18px; }
.ad-sign div { border-top: 1px solid #555; padding-top: 6px; font-size: 12px; }
.ad-rep-actions { gap: 10px; flex-wrap: wrap; }

@media (min-width: 900px) and (max-height: 760px) { .ad-course { grid-template-columns: 190px minmax(0, 1fr); } }
@media (max-width: 899px) {
  .ad-hero { grid-template-columns: 1fr; }
  .ad-course { grid-template-columns: 1fr; }
  .ad-toc { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .ad-toc-i { flex: none; grid-template-columns: auto auto 12px; }
  .ad-card.is-static { display: block; }
  .ad-area { grid-template-columns: minmax(0, 1fr) 80px; }
  .ad-area-bar { grid-column: 1 / -1; grid-row: 2; }
  .ad-area-s { display: none; }
  .ad-tprog { grid-template-columns: repeat(20, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ad-nav { order: 3; width: 100%; justify-content: space-between; }
  .ad-me small { display: none; }
  .ad-step { grid-template-columns: auto minmax(0, 1fr); }
  .ad-step .btn { grid-column: 1 / -1; }
  .ad-level { grid-template-columns: 1fr; justify-items: start; }
}

/* tlač hodnotenia: biely papier, bez navigácie */
.print-only { display: none; }
@media print {
  .route-adept .ad-top, .route-adept .no-print { display: none !important; }
  .route-adept, .route-adept body, .route-adept .ad { background: #fff !important; }
  .route-adept .ad-main { padding: 0; }
  .route-adept .ad-report { box-shadow: none; border: 0; padding: 0; color: #111; background: #fff; --surface-2: #f5f6f4; --surface-3: #e6e8e4; --line: #d6d9d4; --ink: #111; --ink-2: #222; --muted: #555; }
  .route-adept .ad-report * { color-adjust: exact; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .route-adept .ad-ring { background: radial-gradient(closest-side, #f5f6f4 78%, transparent 79%), conic-gradient(var(--lc, #138a5b) calc(var(--p) * 1%), #e6e8e4 0); }
  .route-adept .ad-rep-logo { filter: invert(1); }
  .route-adept .ad-sign { display: grid; }
  .route-adept .ad-sec { break-inside: avoid; }
}
