/* Automatická nápověda a videonávody — pravidla z prototypu (cssRules .st-*, #help), v pořadí kaskády, pod .agn
   (dock a dialog jsou v <body> mimo #main). Převedeno z prototypu, needitovat ručně. */
.agn #st-dock { position: fixed; right: 28px; bottom: 28px; z-index: 70; display: flex; align-items: flex-end; flex-direction: column; gap: 12px; font-family: Inter, sans-serif; }
@media (max-width: 800px) {
  .agn #st-dock { right: 16px; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .agn #st-dock * { transition: none !important; }
}
.agn .st-eyebrow { display: block; color: rgb(47, 91, 255); font-size: 11px; font-weight: 800; letter-spacing: 0.09em; margin-bottom: 9px; }
.agn .st-settings { display: flex; align-items: center; gap: 24px; padding: 24px; margin: 24px 0px; }
.agn .st-settings h2 { margin: 0px 0px 8px; font-size: 20px; }
.agn .st-settings p { margin: 0px; color: rgb(93, 102, 123); max-width: 760px; line-height: 1.6; }
.agn .st-switch { margin-left: auto; flex: 0 0 auto; position: relative; width: 50px; height: 28px; cursor: pointer; }
.agn .st-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0px; }
.agn .st-switch span { display: block; background: rgb(160, 168, 184); border-radius: 20px; height: 28px; transition: background 0.2s; }
.agn .st-switch span::after { content: ""; position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: white; transition: transform 0.2s; }
.agn .st-switch input:checked + span { background: rgb(47, 91, 255); }
.agn .st-switch input:checked + span::after { transform: translateX(22px); }
.agn .st-switch input:focus-visible + span { outline: rgb(47, 91, 255) solid 3px; outline-offset: 4px; }
.agn .st-fab { height: 58px; min-width: 58px; border: 0px; border-radius: 40px; background: rgb(47, 91, 255); color: rgb(255, 255, 255); display: flex; align-items: center; padding: 0px 17px; gap: 0px; cursor: pointer; box-shadow: rgba(47, 91, 255, 0.25) 0px 7px 24px; }
.agn .st-fab > span { border: 2px solid white; border-radius: 50%; width: 25px; height: 25px; display: grid; place-items: center; font-size: 18px; font-weight: 700; }
.agn .st-fab b { max-width: 0px; opacity: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.22s, opacity 0.22s, margin 0.22s; font: 600 14px Inter, sans-serif; }
.agn #st-dock:hover .st-fab b, .agn #st-dock:focus-within .st-fab b, .agn #st-dock.open .st-fab b { max-width: 100px; opacity: 1; margin-left: 10px; }
.agn .st-preview { width: 330px; padding: 22px; border: 1px solid rgb(225, 229, 239); border-radius: 22px; background: rgb(255, 255, 255); box-shadow: rgba(26, 36, 85, 0.17) 0px 12px 45px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.18s, transform 0.18s, visibility 0.18s; position: absolute; right: 0px; bottom: 72px; }
.agn .st-preview::after { content: ""; position: absolute; height: 20px; width: 100%; bottom: -20px; left: 0px; }
.agn #st-dock.open .st-preview { visibility: visible; opacity: 1; transform: none; }
@media (hover: hover) {
  .agn #st-dock:hover .st-preview { visibility: visible; opacity: 1; transform: none; }
}
.agn .st-preview h3 { font-size: 18px; line-height: 1.3; margin: 0px 0px 8px; }
.agn .st-preview p { font-size: 13px; line-height: 1.5; color: rgb(93, 102, 123); margin: 0px 0px 15px; }
.agn .st-thumb { position: relative; display: block; width: 100%; padding: 0px; border: 1px solid rgb(225, 229, 239); border-radius: 12px; overflow: hidden; background: rgb(242, 244, 247); cursor: pointer; }
.agn .st-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.agn .st-thumb > span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: rgb(47, 91, 255); color: rgb(255, 255, 255); display: grid; place-items: center; box-shadow: rgba(47, 91, 255, 0.25) 0px 3px 16px; }
.agn .st-thumb small { position: absolute; right: 8px; bottom: 8px; background: rgba(16, 19, 24, 0.8); color: white; border-radius: 5px; padding: 3px 6px; }
.agn .st-preview > a { display: block; font-size: 13px; font-weight: 600; color: rgb(47, 91, 255); margin: 16px 0px 8px; }
.agn .st-dismiss, .agn .st-secondary { padding: 0px; border: 0px; background: none; color: rgb(93, 102, 123); font: 12px Inter, sans-serif; cursor: pointer; }
.agn .st-secondary { display: block; font-size: 13px; margin-top: 13px; color: rgb(47, 91, 255); }
.agn .st-library { padding: 28px; margin: 24px 0px; }
.agn .st-library-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.agn .st-library h2 { margin: 0px 0px 8px; }
.agn .st-library-head p { color: rgb(93, 102, 123); margin: 0px; line-height: 1.5; }
.agn .st-progress { background: rgb(238, 241, 255); color: rgb(47, 91, 255); white-space: nowrap; padding: 10px 14px; border-radius: 30px; font-size: 13px; font-weight: 600; }
.agn .st-library-grid { display: grid; grid-template-columns: minmax(260px, 32%) minmax(0px, 1fr); gap: 24px; align-items: start; }
.agn .st-playlist { display: grid; gap: 5px; max-height: 550px; overflow: auto; padding-right: 8px; scrollbar-width: thin; }
.agn .st-lesson { display: flex; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 12px; background: rgb(255, 255, 255); padding: 13px 10px; color: rgb(16, 19, 24); font: 500 13px / 1.4 Inter, sans-serif; text-align: left; cursor: pointer; width: 100%; }
.agn .st-lesson:hover { background: rgb(242, 244, 247); }
.agn .st-lesson.selected { background: rgb(238, 241, 255); color: rgb(47, 91, 255); border-color: rgb(220, 227, 255); }
.agn .st-lesson small { margin-left: auto; font-size: 11px; color: rgb(93, 102, 123); white-space: nowrap; }
.agn .st-tick { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; border-radius: 50%; background: rgb(242, 244, 247); color: rgb(93, 102, 123); font-size: 10px; }
.agn .st-tick.seen { background: rgb(233, 244, 213); color: rgb(69, 103, 24); font-size: 14px; }
.agn .st-watch { min-width: 0px; background: rgb(248, 249, 252); border: 1px solid rgb(225, 229, 239); border-radius: 18px; overflow: hidden; }
.agn .st-watch-head { padding: 18px; display: flex; align-items: center; gap: 14px; }
.agn .st-watch-head h3 { font-size: 17px; margin: 0px; line-height: 1.4; }
.agn .st-watch-head > span { margin-left: auto; color: rgb(93, 102, 123); font-size: 12px; }
.agn .st-player { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0px; background: rgb(242, 244, 247); }
.agn .st-watch-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px; }
.agn .st-watch-footer > span { font-size: 11px; color: rgb(93, 102, 123); }
.agn .st-seen-control { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.agn .st-seen-control input { width: 19px; height: 19px; accent-color: rgb(47, 91, 255); }
.agn .st-dialog { padding: 0px; border: 1px solid rgb(225, 229, 239); border-radius: 22px; width: min(1040px, 94vw); max-width: 94vw; max-height: 94dvh; background: rgb(255, 255, 255); color: rgb(11, 13, 16); overflow: auto; }
.agn .st-dialog::backdrop { background: rgba(23, 32, 60, 0.56); backdrop-filter: none; }
.agn .st-dialog header { display: flex; align-items: center; gap: 20px; padding: 22px; }
.agn .st-dialog h2 { font-size: 21px; margin: 0px; }
.agn .st-close { margin-left: auto; flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid rgb(225, 229, 239); border-radius: 50%; background: white; font-size: 24px; cursor: pointer; }
.agn .st-dialog footer { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.agn .st-dialog a { font-size: 13px; color: rgb(47, 91, 255); }
.agn .st-lesson:focus-visible, .agn .st-fab:focus-visible, .agn .st-thumb:focus-visible, .agn .st-close:focus-visible { outline: rgb(47, 91, 255) solid 3px; outline-offset: 3px; }
@media (max-width: 800px) {
  .agn .st-library-grid { grid-template-columns: 1fr; }
  .agn .st-playlist { max-height: 230px; }
  .agn .st-library-head { align-items: flex-start; flex-direction: column; }
  .agn .st-library { padding: 18px; }
  .agn .st-watch-footer { flex-wrap: wrap; }
  .agn .st-settings { padding: 18px; }
  .agn .st-settings p { font-size: 13px; }
  .agn .st-preview { width: min(330px, -32px + 100vw); }
  .agn .st-dialog h2 { font-size: 17px; }
  .agn .st-dialog footer { flex-wrap: wrap; }
}
.agn #st-dock .st-fab, .agn #st-dock .st-fab:hover, .agn #st-dock .st-fab:focus { background: rgb(47, 91, 255); color: rgb(255, 255, 255); opacity: 1; }
.agn #st-dock .st-fab span, .agn #st-dock .st-fab b { color: rgb(255, 255, 255); }
.agn .st-preview { max-height: calc(100dvh - 120px); overflow: auto; }
html.agn.st-modal-open, html.agn.st-modal-open body { overflow: hidden; }
html.agn.st-modal-open #main:focus { outline: none; }
html.agn.st-modal-open #st-dock { visibility: hidden; }
