
/* TodoPorras videotutorial library, intentionally lightweight and responsive. */
.tp-video-intro{max-width:760px;color:var(--muted,#53657b);margin-bottom:20px}
.tp-video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tp-video-card{min-width:0;background:#fff;border:1px solid #dce5ed;border-radius:16px;box-shadow:0 4px 16px #0724430d;overflow:hidden;scroll-margin-top:24px}
.tp-video-cover{height:134px;background:linear-gradient(145deg,#0b2746 0%,#0c5763 72%,#13a373 100%);display:flex;align-items:center;justify-content:center;position:relative;color:white}
.tp-video-cover-mark{display:grid;place-items:center;border-radius:50%;background:#ffffff20;border:1px solid #ffffff6a;width:60px;height:60px;font-size:24px;padding-left:4px}
.tp-video-cover-number{position:absolute;right:14px;top:12px;color:#dcf5e9;font-weight:800;font-size:12px;letter-spacing:.08em}
.tp-video-content{padding:16px 18px 18px;display:flex;flex-direction:column;gap:7px}
.tp-video-audience{font-size:12px;font-weight:750;color:#087247}
.tp-video-content h3{font-size:17px;line-height:1.35;margin:0;color:#071c38}
.tp-video-content p{font-size:14px;color:#53657b;margin:0 0 8px;min-height:42px}
.tp-video-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:auto}
.tp-video-play{font:inherit;font-size:13px;font-weight:750;background:#078c49;color:white;border:1px solid #078c49;border-radius:10px;min-height:42px;padding:8px 12px;cursor:pointer}
.tp-video-play:disabled{cursor:default;color:#526272;border-color:#d8e0e6;background:#f0f3f6}
.tp-video-actions a{font-size:13px;font-weight:750}
.tp-video-dialog{width:min(95vw,480px);max-height:95vh;padding:0;border:1px solid #bfd5d0;border-radius:16px;background:#fff;color:#071c38;box-shadow:0 20px 70px #0006;overflow:auto}
.tp-video-dialog::backdrop{background:#071c38ad}
.tp-video-dialog-head{padding:12px 16px;display:flex;gap:10px;align-items:center;justify-content:space-between}
.tp-video-dialog-head strong{font-size:15px;line-height:1.3}
.tp-video-dialog-head button{border:1px solid #d4dfe8;border-radius:8px;background:white;color:#071c38;min-height:42px;padding:8px 12px;cursor:pointer}
.tp-video-dialog video{display:block;width:100%;max-height:min(75vh,680px);background:#081c33}
#tpVideoError{font-size:13px;color:#a12d27;padding:0 14px}
.tp-video-help-link{display:inline-flex;align-items:center;gap:4px;max-width:100%;width:fit-content;min-height:38px;margin:10px 0;padding:7px 12px;border-radius:10px;color:#075e3e!important;background:#eafaf1!important;border:1px solid #a9dec4;text-decoration:none!important;font-size:13px!important;font-weight:750;line-height:1.35}
.tp-video-help-link:focus-visible,.tp-video-play:focus-visible,.tp-video-dialog button:focus-visible{outline:3px solid #137bc2;outline-offset:3px}
@media(max-width:920px){.tp-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tp-video-grid{grid-template-columns:1fr}.tp-video-cover{height:94px}.tp-video-cover-mark{width:52px;height:52px}.tp-video-content p{min-height:0}.tp-video-card{display:grid;grid-template-columns:106px minmax(0,1fr)}.tp-video-cover{height:100%;min-height:165px}.tp-video-content{padding:14px;gap:5px}.tp-video-audience{font-size:11px}.tp-video-content h3{font-size:15px}.tp-video-content p{font-size:12px}.tp-video-actions{gap:8px}.tp-video-play{font-size:12px;padding:7px 9px}.tp-video-actions a{font-size:12px}}
@media(max-width:390px){.tp-video-card{grid-template-columns:82px minmax(0,1fr)}.tp-video-cover-mark{width:40px;height:40px;font-size:19px}.tp-video-content{padding:12px}}
@media(prefers-reduced-motion:reduce){.tp-video-cover,.tp-video-help-link{transition:none}}

/* Persistent Help in the authenticated shell: desktop sidebar + mobile header. */
.tp-nav a.tp-global-help-link{color:var(--tp-muted,#6f8492);text-decoration:none;font:inherit;font-weight:760;min-height:44px}
.tp-nav a.tp-global-help-link:hover{color:var(--tp-green,#078c49);background:var(--tp-panel-2,#f3f7fb)}
.tp-mobile-help-link{display:none;align-items:center;justify-content:center;white-space:nowrap;text-decoration:none;min-height:40px;padding:8px 12px;border-radius:11px;border:1px solid #bad7c8;background:#effaf4;color:#086340;font-size:12px;font-weight:850}
.tp-mobile-help-link:hover{background:#dff6e8}
.tp-mobile-help-link:focus-visible,.tp-global-help-link:focus-visible,.tp-builder-video-shortcuts a:focus-visible,.tp-history-video-help a:focus-visible,.tp-profile-help-card a:focus-visible{outline:3px solid #137bc2;outline-offset:2px}
.tp-profile-help-card{display:flex;flex-direction:column;gap:10px}
.tp-profile-help-card h2{font-size:20px;margin:0}
.tp-profile-help-card p{line-height:1.5}
.tp-profile-help-card a{width:fit-content;font-size:13px;font-weight:800;text-decoration:none}
.tp-profile-help-card .tp-help-primary{padding:10px 12px;border-radius:10px;color:#05271b;background:#38d994}
.tp-profile-help-card .tp-help-secondary{color:var(--tp-green,#078c49)}
/* Keep builder guidance above the wizard fields, without competing with actions. */
.tp-builder-video-shortcuts{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;border:1px solid var(--tp-line,#dce5ed);border-radius:16px;background:var(--tp-panel,#fff);color:var(--tp-text,#071c38);margin:12px 0 20px;padding:14px 18px}
.tp-builder-video-shortcuts strong{display:block;font-size:14px;line-height:1.4}
.tp-builder-video-shortcuts p{color:var(--tp-muted,#53657b);font-size:12px;margin:3px 0 0;line-height:1.5}
.tp-builder-video-shortcuts nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.tp-builder-video-shortcuts a{display:inline-flex;min-height:40px;align-items:center;color:var(--tp-green,#067c48);background:var(--tp-panel-2,#eff9f3);border:1px solid var(--tp-line,#dce5ed);border-radius:10px;padding:9px 11px;text-decoration:none;font-size:12px;font-weight:800;line-height:1.3}
.tp-builder-video-shortcuts a:hover{border-color:#139c62}
/* Compact inline help in history and finished pools, never overlaid on rankings. */
.tp-history-video-help{background:var(--tp-panel,#fff);border:1px solid var(--tp-line,#dce5ed);border-radius:14px;padding:14px 16px;margin:14px 0 20px;color:var(--tp-text,#071c38)}
.tp-history-video-help>strong{font-size:14px;display:block;margin:0 0 8px}
.tp-history-video-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tp-history-video-links a{display:inline-flex;align-items:center;min-height:40px;padding:8px 11px;border:1px solid var(--tp-line,#dce5ed);border-radius:10px;background:var(--tp-panel-2,#f0f8f4);color:var(--tp-green,#087b49);text-decoration:none;font-size:12px;font-weight:800}
html[data-tp-theme="dark"] .tp-mobile-help-link{background:#153628;border-color:#38684e;color:#b1f2cb}
@media(max-width:820px){.tp-mobile-help-link{display:inline-flex}.tp-nav a.tp-global-help-link{display:none}}
@media(max-width:520px){.tp-mobile-help-link{margin-left:auto;padding:7px 10px}.tp-builder-video-shortcuts{padding:13px}.tp-builder-video-shortcuts nav{width:100%}.tp-builder-video-shortcuts a{flex:1 1 auto;justify-content:center;text-align:center}.tp-history-video-links{display:grid;grid-template-columns:1fr}.tp-history-video-links a{justify-content:center}}
