/* Pickleball video library with free guest previews, optimized for mobile. */
.thpb-staff-entry,.thpb-staff-entry *,.thpb-staff-library,.thpb-staff-library *{box-sizing:border-box}
.thpb-staff-entry{display:flex;align-items:center;gap:12px;text-decoration:none!important;border-radius:15px;border:1px solid #b9dbc4;background:linear-gradient(135deg,#eaf7ee,#fff);padding:13px 15px;color:#134b31!important;box-shadow:0 2px 12px #12553d12}
.thpb-staff-entry>span:first-child{font-size:29px;line-height:1}.thpb-staff-entry>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.thpb-staff-entry strong{font-size:15px}.thpb-staff-entry small{font-size:12px;line-height:1.35;color:#52745f}.thpb-staff-entry b{font-size:25px;color:#3b9162}
.thpb-staff-library{display:grid;gap:14px;min-width:0}
.thpb-staff-back{color:#136542;font-size:13px;text-decoration:none!important;font-weight:750}
.thpb-staff-heading{padding:18px;background:linear-gradient(120deg,#115537,#21754e);border-radius:17px;color:white}
.thpb-staff-heading span{font-size:11px;font-weight:800;letter-spacing:.09em;color:#d3f1db}
.thpb-staff-heading h1{font-size:21px;margin:4px 0 8px;line-height:1.25;color:#fff}
.thpb-staff-heading p{font-size:13px;line-height:1.5;color:#e1f7e8;margin:0}
.thpb-staff-group-select{display:grid;gap:6px;padding:13px;border:1px solid #e1ebe3;border-radius:16px;background:#fff}
.thpb-staff-group-select label{display:grid;gap:6px}
.thpb-staff-group-select span{font-size:12px;font-weight:800;letter-spacing:.04em;color:#41624e}
.thpb-staff-group-select select{width:100%;min-height:46px;border:1px solid #c8dbcf;border-radius:12px;background:#fbfdfb;color:#173d2c;padding:11px 12px;font-family:inherit;font-size:15px;outline-offset:2px}
.thpb-staff-group-select select:focus{border-color:#2d8e61;background:#fff;box-shadow:0 0 0 3px #2d8e6117}
.thpb-staff-group-desc{font-size:13px;line-height:1.5;color:#4f6e59;margin:0}
/* Search and lesson cards, optimized for narrow app screens. */
.thpb-staff-video-search{display:grid;gap:7px;padding:14px;border:1px solid #e0ece4;border-radius:16px;background:#fff;min-width:0}
.thpb-staff-video-search label{display:block;color:#315a43;font-size:13px;font-weight:800}
.thpb-staff-search-controls{display:flex;gap:9px;align-items:stretch}
.thpb-staff-search-controls input{flex:1;min-width:0;height:46px;border-radius:12px;border:1px solid #c9ded0;background:#f8fbf9;padding:10px 12px;font-family:inherit;font-size:15px;color:#173c2a}
.thpb-staff-search-controls input:focus{border-color:#278052;outline:2px solid #27805232;outline-offset:1px;background:#fff}
.thpb-staff-search-controls button{flex:none;border:0;border-radius:12px;background:#166c49;color:#fff;min-height:46px;padding:0 18px;font-size:14px;font-weight:800;cursor:pointer}
.thpb-staff-results-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 1px}
.thpb-staff-results-head h2{font-size:17px;color:#16492e;margin:0 0 4px}
.thpb-staff-results-head p{font-size:13px;line-height:1.45;margin:0;color:#597361}
.thpb-staff-results-head a{flex:none;color:#186d49;text-decoration:underline;font-size:12px;font-weight:800}
.thpb-staff-search-empty{display:grid;place-items:center;text-align:center;gap:8px;background:#f9fcfa;border:1px dashed #d4e4db;padding:24px 16px;border-radius:16px;color:#28513b}
.thpb-staff-search-empty>span{font-size:42px;line-height:1;color:#99bbab}
.thpb-staff-search-empty strong{font-size:15px}
.thpb-staff-search-empty p{margin:0;font-size:13px;color:#617b6b;line-height:1.45}
.thpb-staff-list{display:grid;gap:9px;border:1px solid #e3ede5;border-radius:17px;padding:12px;background:#fff;min-width:0}
.thpb-staff-list-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:1px 2px 4px}
.thpb-staff-list-header h2{font-size:16px;color:#16492e;margin:0}
.thpb-staff-list-header>span{font-size:11px;font-weight:800;background:#e9f5ed;padding:6px 9px;border-radius:999px;color:#22714a;white-space:nowrap}
.thpb-staff-lesson{display:flex;align-items:center;gap:11px;border:1px solid #e3ebe5;background:#fbfdfb;border-radius:14px;padding:10px;color:#1d5038;text-decoration:none!important;min-width:0;transition:background .2s,border-color .2s}
.thpb-staff-lesson:focus-visible{outline:3px solid #5aaa80;outline-offset:2px}
.thpb-staff-lesson.is-active{border-color:#6bab86;background:#f0f9f3;box-shadow:inset 3px 0 #238458}
.thpb-staff-thumb{display:grid;place-items:center;flex:0 0 54px;height:51px;background:linear-gradient(145deg,#1a7851,#0d4932);border-radius:11px;box-shadow:0 3px 10px #155f421c}
.thpb-staff-thumb span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#ffffff27;color:#fff;font-size:13px;padding-left:2px}
.thpb-staff-lesson-body{min-width:0;flex:1;display:grid;gap:5px}
.thpb-staff-title{font-size:14px;line-height:1.4;font-weight:800;color:#194d34;overflow-wrap:anywhere}
.thpb-staff-lesson-meta{font-size:11px;color:#64806d;line-height:1.35;overflow-wrap:anywhere}
.thpb-staff-check{flex:0 0 auto;font-size:10px;font-weight:800;color:#276447;background:#e6f4e9;border-radius:999px;padding:5px 7px;max-width:77px;text-align:center;white-space:normal}
.thpb-staff-check.is-current{background:#d6eadf;color:#155b3c}.thpb-staff-check.is-done{background:#dff3e6;color:#15683d}
.thpb-staff-lesson-arrow{font-size:20px;line-height:1;color:#56866b;flex:0 0 auto}
.thpb-staff-current{display:grid;gap:11px;padding:15px;border-radius:17px;border:1px solid #dbe8de;background:#fff;min-width:0}
.thpb-staff-current-head span{font-weight:800;font-size:10px;letter-spacing:.08em;color:#2f8b5a}
.thpb-staff-current-head h2{margin:3px 0 0;font-size:21px;line-height:1.28;color:#144e34}
.thpb-staff-player{width:100%;position:relative;aspect-ratio:16/9;background:#0c1e15;overflow:hidden;border-radius:12px}
.thpb-staff-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.thpb-staff-external{display:inline-block;color:#197448;font-size:13px;font-weight:750;overflow-wrap:anywhere}
.thpb-staff-lesson-note{padding:12px;background:#f1f8f2;border-radius:12px;color:#244b35;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.thpb-staff-lesson-note h3{font-size:15px;color:#17573b;margin:0 0 6px}
.thpb-staff-lesson-note p{margin:0 0 10px}.thpb-staff-lesson-note p:last-child{margin-bottom:0}
.thpb-staff-complete button{min-height:43px;border:0;border-radius:10px;padding:10px 15px;background:#196c4a;color:#fff;font-weight:800;font-size:13px;cursor:pointer}
.thpb-staff-done{font-size:12px;color:#387457;margin:0}.thpb-staff-empty,.thpb-staff-note{background:#f5f9f6;border:1px solid #e0ebdf;padding:15px;border-radius:12px;font-size:13px;color:#53675a}
@media(max-width:380px){.thpb-staff-check{font-size:10px}.thpb-staff-entry{padding:11px}.thpb-staff-entry strong{font-size:14px}}

.thpb-video-login-banner{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px 15px;background:#f0f8f2;border:1px solid #b4d7bf;border-radius:14px;color:#1a5134}
.thpb-video-login-banner>div{flex:1 1 190px}.thpb-video-login-banner strong{font-size:14px}.thpb-video-login-banner p{font-size:12px;line-height:1.55;margin:5px 0 0;color:#456b53}
.thpb-video-login-banner a{display:inline-flex;justify-content:center;align-items:center;min-height:42px;padding:9px 15px;border-radius:10px;background:#146743!important;color:#fff!important;font-size:13px;font-weight:800;text-decoration:none!important;white-space:normal;text-align:center}

/* App-native video editing: refined mobile UI */
.thpb-video-manager-toggle a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;background:linear-gradient(135deg,#165c3f,#1f7a53);color:white!important;text-decoration:none!important;border-radius:12px;font-weight:800;font-size:13px;box-shadow:0 8px 20px #0f5b3d20}
.thpb-video-manager{display:grid;gap:14px;min-width:0}
.thpb-video-manager-head{background:linear-gradient(135deg,#eff8f2,#ffffff);border:1px solid #d3e7d9;border-radius:18px;padding:16px}
.thpb-video-manager-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;background:#dff1e6;color:#165c3f;font-size:11px;font-weight:900;letter-spacing:.04em;margin-bottom:8px}
.thpb-video-manager-head h2{font-size:19px;line-height:1.25;color:#15573a;margin:0 0 6px}
.thpb-video-manager-head p{margin:0;color:#54735d;font-size:13px;line-height:1.6}
.thpb-video-manager-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.thpb-video-manager-stats>div{background:#fff;border:1px solid #dbeadf;border-radius:14px;padding:10px 8px;text-align:center}
.thpb-video-manager-stats strong{display:block;font-size:18px;line-height:1.1;color:#155b3c}
.thpb-video-manager-stats span{display:block;font-size:11px;line-height:1.35;color:#617267;margin-top:3px}
.thpb-video-manager-tip{padding:13px 14px;background:#f8fbf8;border:1px dashed #cbdcca;border-radius:14px;color:#3b5f49;font-size:13px;line-height:1.55}
.thpb-video-manager-notice{padding:12px 13px;background:#f2f8e9;border:1px solid #bcd8a7;border-radius:12px;color:#28502b;font-size:13px}
.thpb-video-manager-card{padding:0;border-radius:18px;background:#fff;border:1px solid #dcebe0;min-width:0;overflow:hidden;box-shadow:0 4px 16px #134f3508}
.thpb-video-manager-card summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:12px;padding:14px 15px}
.thpb-video-manager-card summary::-webkit-details-marker{display:none}
.thpb-video-card-icon{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:12px;background:#ebf7ef;font-size:19px}
.thpb-video-card-title{flex:1;min-width:0;display:grid;gap:2px}
.thpb-video-card-title strong{font-size:15px;line-height:1.3;color:#165c3f}
.thpb-video-card-title small{font-size:12px;line-height:1.45;color:#65756a}
.thpb-video-card-arrow{flex:0 0 auto;font-size:24px;color:#4f8d68;transform:rotate(90deg);transition:transform .2s ease}
.thpb-video-manager-card[open] .thpb-video-card-arrow{transform:rotate(-90deg)}
.thpb-video-manager-card form,.thpb-video-group-edit{padding:0 15px 15px}
.thpb-video-form-grid{display:grid;gap:12px}
.thpb-video-field{display:grid;gap:6px;font-size:13px;font-weight:750;color:#254a35}
.thpb-video-field span{font-size:13px;font-weight:800;color:#234834}
.thpb-video-field input:not([type=checkbox]),.thpb-video-field select,.thpb-video-field textarea{width:100%;min-height:46px;border:1px solid #c8dbcf;border-radius:12px;background:#fbfdfb;color:#173d2c;padding:11px 12px;font-family:inherit;font-size:15px;outline-offset:2px}
.thpb-video-field input:focus,.thpb-video-field select:focus,.thpb-video-field textarea:focus{border-color:#2d8e61;background:#fff;box-shadow:0 0 0 3px #2d8e6117}
.thpb-video-field textarea{resize:vertical;min-height:96px;line-height:1.5}
.thpb-video-field small{font-weight:400;color:#607266;font-size:12px;line-height:1.45}
.thpb-video-field--full{grid-column:1/-1}
.thpb-video-manager-card .thpb-video-guest-check{display:flex;align-items:flex-start;gap:10px;padding:13px;background:#eef8f0;border-radius:12px;border:1px solid #d9eadf}
.thpb-video-guest-check input{width:20px;height:20px;flex:none;margin:2px 0 0}
.thpb-video-guest-check span{display:grid;gap:3px}.thpb-video-guest-check strong{font-size:14px;color:#1d573c}.thpb-video-guest-check small{font-weight:400;color:#52705c;font-size:12px;line-height:1.4}
.thpb-video-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
.thpb-video-submit{display:inline-flex;align-items:center;justify-content:center;min-height:46px;border:0;border-radius:12px;padding:12px 16px;background:linear-gradient(135deg,#146944,#208257);color:white;font-weight:800;font-size:14px;cursor:pointer;box-shadow:0 8px 18px #1668441f}
.thpb-video-cancel{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 16px;border-radius:12px;background:#f6f8f6;border:1px solid #d6e4d9;color:#27553d!important;text-decoration:none!important;font-weight:800;font-size:14px}
.thpb-video-empty-card{margin:0 15px 15px;padding:14px;background:#f7faf7;border:1px dashed #d4e4d8;border-radius:14px;color:#496251}.thpb-video-empty-card strong{display:block;color:#184b34;margin-bottom:4px}
.thpb-video-trash{padding:14px 15px 15px;border-top:1px solid #edf2ee}.thpb-video-trash button{background:#fff7f7;color:#a83c3c;font-weight:750;border:1px solid #eec7c7;border-radius:12px;padding:11px 12px;cursor:pointer;width:100%}
.thpb-video-group-edit{display:grid;gap:14px}.thpb-video-group-edit form{padding:12px 0 0;margin-top:0}.thpb-video-group-edit form+form{padding-top:16px;border-top:1px solid #e7eee8}
.thpb-video-manager-list{display:grid;gap:10px;border:1px solid #dcebe0;border-radius:18px;padding:14px;background:#fff}
.thpb-video-manager-list-head{display:grid;gap:3px}.thpb-video-manager-list-head strong{font-size:16px;color:#15573a}.thpb-video-manager-list-head small{font-size:12px;color:#63746a}
.thpb-video-row{display:flex;justify-content:space-between;align-items:center;gap:10px;min-width:0;padding:12px;border:1px solid #edf2ee;border-radius:14px;background:#fbfdfb}
.thpb-video-row-main{min-width:0;display:grid;gap:4px}.thpb-video-row-title{font-size:14px;font-weight:800;color:#1a5037;overflow-wrap:anywhere}.thpb-video-row-main small{font-size:12px;color:#63746a;line-height:1.45}
.thpb-video-row a{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border-radius:10px;background:#eaf6ee;color:#176a48;text-decoration:none!important;font-weight:800;font-size:13px}
@media(min-width:760px){.thpb-video-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.thpb-video-manager-stats{grid-template-columns:1fr}.thpb-video-manager-card summary{align-items:flex-start}.thpb-video-card-arrow{display:none}.thpb-video-actions>*{width:100%}.thpb-video-row{align-items:flex-start;flex-direction:column}.thpb-video-row a{width:100%}}

/* Compact status on extra-narrow screens. */
@media(max-width:360px){.thpb-staff-lesson{gap:8px;padding:9px}.thpb-staff-thumb{flex-basis:44px;height:45px}.thpb-staff-check{font-size:9px;max-width:65px}.thpb-staff-lesson-arrow{display:none}.thpb-staff-search-controls button{padding:0 12px}}

/* Admin lesson and group order controls (mobile first; no drag gesture required). */
.thpb-video-sort-content{display:grid;gap:10px;padding:0 14px 16px}
.thpb-video-sort-content h4{font-size:15px;font-weight:850;margin:9px 0 0;color:#165c3f}
.thpb-video-sort-content p{font-size:12px;color:#657568;margin:0 0 4px;line-height:1.5}
.thpb-video-sort-list{display:grid;gap:8px}
.thpb-video-sort-row{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid #dcebe1;background:#fafdfa;border-radius:12px;min-width:0}
.thpb-video-sort-row>strong,.thpb-video-sort-title{flex:1;min-width:0;font-size:13px;color:#164b33;overflow-wrap:anywhere}
.thpb-video-sort-title{display:grid;gap:3px}
.thpb-video-sort-title strong{font-size:13px}
.thpb-video-sort-title small{font-size:11px;color:#687d6e}
.thpb-video-sort-number{flex:0 0 28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#e7f3ea;font-size:12px;font-weight:800;color:#24704b}
.thpb-video-move-controls{display:flex;flex:0 0 auto;gap:5px}
.thpb-video-move-controls form{margin:0;padding:0;display:block}
.thpb-video-move-controls button{min-width:37px;min-height:40px;border-radius:10px;border:1px solid #b9dbc7;background:#e9f6ef;color:#135c3e;font-size:19px;font-weight:800;cursor:pointer}
.thpb-video-move-controls button:disabled{background:#f2f4f2;border-color:#e5ebe6;color:#aebbb0;cursor:default}
.thpb-video-sort-group-picker{display:grid;gap:7px;padding:4px 0 7px!important}
.thpb-video-sort-group-picker label{font-size:12px;font-weight:800;color:#315e42}
.thpb-video-sort-group-picker select{width:100%;min-height:46px;border:1px solid #c8dbcf;border-radius:12px;background:#fbfdfb;color:#173d2c;padding:11px 12px;font-family:inherit;font-size:15px}
.thpb-video-sort-group-picker>button{min-height:40px;border:0;border-radius:10px;background:#e7f4eb;color:#155c3e;font-weight:800}
.thpb-video-sort-empty{padding:13px!important;background:#f6faf7;border:1px dashed #d9e8dd;border-radius:12px}
@media(max-width:360px){.thpb-video-sort-row{gap:6px;padding:8px}.thpb-video-sort-number{flex-basis:24px}.thpb-video-move-controls button{min-width:34px}}
