/* ATP Coaching / management window — inspired by original 3-tab logbook.
   All selectors are scoped to #dashboard-shell so the Public website stays intact. */
#public-shell[hidden],#dashboard-shell[hidden],#dash-mode-wrap[hidden],#dashboard-shell [hidden]{display:none!important}
body.booting #public-shell,body.booting #dashboard-shell{display:none!important}
#boot-screen{display:none;min-height:100vh;align-items:center;justify-content:center;background:#0e151b;color:#e7edf2;font:600 14px 'Be Vietnam Pro',system-ui;text-align:center;padding:24px}
body.booting #boot-screen{display:flex}
#dashboard-shell{min-height:100vh;background:#0e151b;color:#e7edf2;font:14px/1.55 'Be Vietnam Pro',system-ui,sans-serif}
#dashboard-shell *{box-sizing:border-box}
#dashboard-shell .dash-wrap{max-width:1120px;margin:0 auto;padding:0 22px}
#dashboard-shell .dash-header{position:sticky;top:0;z-index:24;background:#0e151bed;backdrop-filter:blur(14px);border-bottom:1px solid #2a3743}
#dashboard-shell .dash-head-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:18px;padding-bottom:12px}
#dashboard-shell .dash-brand{font:800 28px/.95 'Barlow Condensed',sans-serif;letter-spacing:.03em;color:#e7edf2}
#dashboard-shell .dash-brand b{color:#7ba2ff}
#dashboard-shell .dash-context{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:#93a1ad;font-size:12px;justify-content:flex-end}
#dashboard-shell .dash-context strong{color:#d9e4ef;font-weight:600}
#dashboard-shell .dash-top-btn{color:#e7edf2;border:1px solid #324355;background:#17232e;padding:9px 13px;border-radius:7px;font:600 12px 'Be Vietnam Pro',sans-serif;cursor:pointer}
#dashboard-shell .dash-top-btn:hover{background:#25384c}
#dashboard-shell .dash-top-btn.primary{background:#7ba2ff;color:#0b1220;border-color:#7ba2ff}
#dashboard-shell .dash-roleline{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:8px;font-size:12px;color:#93a1ad;flex-wrap:wrap}
#dashboard-shell .dash-role-pill{display:inline-flex;align-items:center;padding:5px 10px;border:1px solid #3c5884;background:#1d2b4d;color:#b7d0ff;font-size:11px;border-radius:5px;font-weight:700}
#dashboard-shell .dash-switcher{display:flex;gap:4px;padding:3px;border:1px solid #34465a;background:#15202b;border-radius:8px}
#dashboard-shell .dash-switcher button{padding:7px 12px;min-height:32px;border-radius:5px;border:0;background:transparent;color:#93a1ad;font:600 11px 'Be Vietnam Pro',sans-serif;cursor:pointer}
#dashboard-shell .dash-switcher button.selected{background:#7ba2ff;color:#101b29}
#dashboard-shell .dash-tabs{display:flex;overflow-x:auto;gap:3px;scrollbar-width:thin;scrollbar-color:#3e5061 transparent;max-width:100%;white-space:nowrap}
#dashboard-shell .dash-tabs button{background:transparent;color:#9ba9b7;border:0;border-bottom:3px solid transparent;padding:13px 16px;font:700 12px 'Be Vietnam Pro',sans-serif;cursor:pointer;min-height:46px}
#dashboard-shell .dash-tabs button.active{color:#e7edf2;border-bottom-color:#7ba2ff}
#dashboard-shell .dash-tabs button:hover{color:#fff}
#dashboard-shell main{padding:26px 22px 75px;display:block;max-width:1120px;margin:auto}
#dashboard-shell .dash-page-title{font:700 25px 'Barlow Condensed',sans-serif;letter-spacing:.025em;margin:0 0 18px}
#dashboard-shell .dash-main{display:flex;flex-direction:column;gap:19px}
#dashboard-shell .dash-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#dashboard-shell .dash-metric{background:#16202a;border:1px solid #2a3743;border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:3px;min-width:0}
#dashboard-shell .dash-metric strong{font:800 clamp(25px,2.7vw,35px)/1 'Barlow Condensed',sans-serif;overflow-wrap:anywhere;color:#e7edf2;font-variant-numeric:tabular-nums}
#dashboard-shell .dash-metric span{color:#9fb0bd;font-size:11px}
#dashboard-shell .dash-metric small{color:#8497a7;font-size:10px}
#dashboard-shell .dash-panel{background:#16202a;border:1px solid #2a3743;border-radius:8px;overflow:hidden}
#dashboard-shell .dash-panel-head{padding:15px 18px;border-bottom:1px solid #2a3743;display:flex;justify-content:space-between;align-items:center}
#dashboard-shell .dash-panel-head h2{font:700 21px 'Barlow Condensed',sans-serif;margin:0;color:#e7edf2}
#dashboard-shell .dash-booking{display:grid;grid-template-columns:90px minmax(0,1fr);gap:15px;padding:19px;border-bottom:1px solid #2a3743;align-items:flex-start}
#dashboard-shell .dash-booking:last-child{border-bottom:0}
#dashboard-shell .dash-booktime strong{font:800 30px/1 'Barlow Condensed',sans-serif;display:block;font-variant-numeric:tabular-nums}
#dashboard-shell .dash-booktime span{color:#94aac0;font-size:11px}
#dashboard-shell .dash-bookinfo{min-width:0}
#dashboard-shell .dash-bookinfo>strong{display:block;font-size:14px}
#dashboard-shell .dash-bookinfo>small{display:block;color:#96a7b6;font-size:11px;margin-top:4px}
#dashboard-shell .dash-bookmeta{display:flex;align-items:center;gap:10px;margin-top:10px;flex-wrap:wrap;color:#9caab7;font-size:11px}
#dashboard-shell .dash-pill{display:inline-flex;align-items:center;border-radius:99px;padding:4px 10px;background:#263443;color:#b1c4d8;font-size:10px;line-height:1.3;font-weight:700;white-space:nowrap}
#dashboard-shell .dash-pill.state-confirmed{background:#1d2b4d;color:#97b9ff}
#dashboard-shell .dash-pill.state-pending{background:#352b17;color:#f0b95a}
#dashboard-shell .dash-pill.state-completed,#dashboard-shell .dash-pill.state-active{background:#153b28;color:#77dda1}
#dashboard-shell .dash-pill.state-cancelled,#dashboard-shell .dash-pill.state-rejected,#dashboard-shell .dash-pill.state-blocked{background:#421e1d;color:#ff9c94}
#dashboard-shell .dash-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
#dashboard-shell .dash-btn{border:1px solid #344659;border-radius:6px;padding:9px 13px;background:#182631;color:#e7edf2;font:600 11px 'Be Vietnam Pro',system-ui;min-height:37px;cursor:pointer;transition:background .12s}
#dashboard-shell .dash-btn:hover:not(:disabled){background:#25394d}
#dashboard-shell .dash-btn.primary{background:#7ba2ff;border-color:#7ba2ff;color:#101820}
#dashboard-shell .dash-btn.primary:hover:not(:disabled){background:#9cbbff}
#dashboard-shell .dash-btn:disabled{opacity:.55;cursor:not-allowed}
#dashboard-shell .dash-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#dashboard-shell .dash-minor{color:#8799aa;font-size:11px}
#dashboard-shell .dash-hint{border-top:1px solid #2a3743;padding:13px 18px;color:#98aaba;font-size:11px;line-height:1.75}
#dashboard-shell .dash-empty{color:#8ea1b0;padding:23px;font-size:12px}
#dashboard-shell .dash-table-wrap{overflow-x:auto}
#dashboard-shell .dash-table{width:100%;border-collapse:collapse;min-width:640px}
#dashboard-shell .dash-table th{font-size:11px;color:#9bb0c3;font-weight:700;text-align:left;background:#1b2834;white-space:nowrap}
#dashboard-shell .dash-table td{color:#d9e5ee;font-size:12px;max-width:260px;overflow-wrap:anywhere}
#dashboard-shell .dash-table td,#dashboard-shell .dash-table th{padding:12px 15px;border-bottom:1px solid #2b3946;vertical-align:middle}
#dashboard-shell .dash-table tr:last-child td{border-bottom:0}
#dashboard-shell .dash-negative{color:#ff9991!important;font-weight:700}
#dashboard-shell .dash-positive{color:#7adba2!important;font-weight:700}
#dashboard-shell .dash-package-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));padding:16px;gap:12px}
#dashboard-shell .dash-package{border:1px solid #344658;border-radius:8px;padding:16px;background:#1c2832;display:flex;flex-direction:column;gap:12px}
#dashboard-shell .dash-package>div:first-child{display:flex;flex-direction:column;gap:3px}
#dashboard-shell .dash-package>div:first-child strong{font:700 22px 'Barlow Condensed',sans-serif}
#dashboard-shell .dash-package>div:first-child span{color:#96a7b6;font-size:11px}
#dashboard-shell .dash-package .dash-big{font:800 51px/.9 'Barlow Condensed',sans-serif}
#dashboard-shell .dash-package .dash-big small{font:500 12px 'Be Vietnam Pro',sans-serif;color:#9aacbb;margin-left:7px}
#dashboard-shell .dash-package p{margin:0;color:#a3b1bd;font-size:11px}
#dashboard-shell .dash-progress{background:#263748;height:7px;border-radius:10px;overflow:hidden}
#dashboard-shell .dash-progress i{display:block;height:100%;background:#7ba2ff;border-radius:10px}
#dashboard-shell .dash-coach{display:flex;align-items:center;gap:16px;border-bottom:1px solid #2a3743;padding:18px}
#dashboard-shell .dash-coach:last-child{border:0}
#dashboard-shell .dash-coach>div:nth-child(2){flex:1;min-width:0}
#dashboard-shell .dash-coach strong{display:block}
#dashboard-shell .dash-coach p{font-size:12px;color:#a6b3bf;margin:3px 0}
#dashboard-shell .dash-coach small{font-size:11px;color:#8ea4b4}
#dashboard-shell .dash-avatar{height:54px;width:54px;border-radius:10px;display:grid;place-items:center;background:#263d60;color:#aaccff;font:800 28px 'Barlow Condensed',sans-serif;flex-shrink:0}
#dashboard-shell .dash-book-form{padding:18px;display:grid;grid-template-columns:1fr 1.4fr auto;gap:12px;align-items:end}
#dashboard-shell .dash-book-form label{display:flex;flex-direction:column;gap:7px;color:#a8b9c8;font-size:11px}
#dashboard-shell .dash-book-form select{width:100%;height:40px;background:#1c2832;border:1px solid #344659;color:#e7edf2;border-radius:6px;font:12px 'Be Vietnam Pro',sans-serif;padding:7px}
#dashboard-shell .dash-loading{padding:45px 18px;text-align:center;background:#16202a;border:1px solid #2a3743;border-radius:8px;color:#93a1ad}
#dashboard-shell .dash-error{padding:25px;background:#311d20;color:#ffc2b8;border:1px solid #694044;border-radius:8px}
#dashboard-shell .dash-error p{font-size:12px;margin:9px 0 15px}
#dash-editor{max-width:550px;width:calc(100vw - 24px);max-height:min(92vh,820px);overflow-y:auto;background:#16202a;color:#e7edf2;border:1px solid #344658;border-radius:12px;padding:24px;box-shadow:0 30px 100px #000b}
#dash-editor::backdrop{background:rgba(0,0,0,.8)}
#dash-editor h2{font:700 28px 'Barlow Condensed',sans-serif;margin:0 0 9px}
#dash-editor p{color:#a1b3c3;font-size:11px;margin:0 0 13px}
#dash-editor .dash-edit-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#dash-editor label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#aabaca}
#dash-editor input:not([type=checkbox]),#dash-editor select,#dash-editor textarea{width:100%;color:#e7edf2;border:1px solid #344658;border-radius:6px;padding:10px;background:#1c2832;font:12px 'Be Vietnam Pro',system-ui}
#dash-editor .dash-edit-wide{grid-column:1/-1}
#dash-editor .dash-edit-check{display:flex;flex-direction:row;align-items:center;gap:8px;padding:7px 0}
#dash-editor .dash-edit-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}
#dash-editor .dash-edit-actions button{padding:10px;border-radius:6px;border:1px solid #42556a;background:#243545;color:#e7edf2;font:700 11px 'Be Vietnam Pro',sans-serif;cursor:pointer}
#dash-editor .dash-edit-actions button:hover{background:#36516d}
#dash-editor .dash-edit-actions button:disabled{opacity:.5}
#dash-editor #dash-edit-note{font-size:11px;color:#f0b95a;border:1px solid #574521;border-radius:6px;padding:10px;margin-top:14px}
#dash-editor #dash-edit-note.error{color:#ffa9a2;border-color:#67423d}
@media(max-width:850px){#dashboard-shell .dash-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#dashboard-shell .dash-book-form{grid-template-columns:1fr 1fr}#dashboard-shell .dash-book-form button{grid-column:1/-1}}
@media(max-width:560px){#dashboard-shell .dash-wrap{padding:0 14px}#dashboard-shell .dash-head-top{flex-wrap:wrap;gap:10px}#dashboard-shell .dash-context{gap:8px;width:100%;justify-content:space-between}#dashboard-shell .dash-top-btn{font-size:11px;padding:7px 10px}#dashboard-shell .dash-brand{font-size:25px}#dashboard-shell .dash-tabs button{padding:12px 13px}#dashboard-shell main{padding:20px 14px 60px}#dashboard-shell .dash-booking{grid-template-columns:70px 1fr;gap:8px;padding:15px 12px}#dashboard-shell .dash-booktime strong{font-size:25px}#dashboard-shell .dash-metric{padding:12px}#dashboard-shell .dash-metric strong{font-size:28px}#dashboard-shell .dash-book-form{grid-template-columns:1fr}#dashboard-shell .dash-book-form button{grid-column:auto}#dash-editor .dash-edit-fields,#dash-editor .dash-edit-actions{grid-template-columns:1fr}#dash-editor .dash-edit-wide{grid-column:auto}}
/* V8 public homepage content editor */
#dashboard-shell .cms-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;background:linear-gradient(125deg,#203753,#16202a);border:1px solid #334f72;border-radius:9px;padding:19px 22px;margin-bottom:18px;flex-wrap:wrap}
#dashboard-shell .cms-intro h2{font:800 29px 'Barlow Condensed',sans-serif;margin:0 0 7px}
#dashboard-shell .cms-intro p{font-size:12px;color:#adc1d5;margin:0;max-width:530px}
#dashboard-shell .cms-panel{margin-bottom:18px}
#dashboard-shell .cms-panel .dash-panel-head{display:flex;justify-content:space-between;align-items:center}
#dashboard-shell .cms-panel .dash-panel-head h2{font-size:22px}
#dashboard-shell .cms-note{font-size:11px;color:#a6b6c9}
#dashboard-shell .cms-panel-note{margin:15px 20px 0;background:#21354b;border:1px solid #3a5577;border-radius:6px;padding:12px;font-size:11px;color:#bad0e8;line-height:1.7}
#dashboard-shell .cms-form{padding:19px 20px;border-top:1px solid #2a3743}
#dashboard-shell .cms-form:first-of-type{border-top:0}
#dashboard-shell .cms-row-form{border-top:1px solid #2a3743}
#dashboard-shell .cms-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 17px;margin-bottom:15px}
#dashboard-shell .cms-field{display:flex;flex-direction:column;gap:7px;color:#a7bbcc;font-size:11px}
#dashboard-shell .cms-field input,#dashboard-shell .cms-field textarea,#dashboard-shell .cms-field select{background:#1c2832;color:#e7edf2;border:1px solid #3b5067;border-radius:7px;min-height:41px;padding:10px 12px;font:12px 'Be Vietnam Pro',sans-serif;width:100%;resize:vertical}
#dashboard-shell .cms-field textarea{min-height:85px}
#dashboard-shell .cms-field input:focus,#dashboard-shell .cms-field textarea:focus,#dashboard-shell .cms-field select:focus{outline:2px solid #7ba2ff}
#dashboard-shell .cms-wide{grid-column:1/-1}
#dashboard-shell .cms-checkbox{display:flex;align-items:center;gap:9px;color:#d5e2ef;font-size:12px;padding-top:20px}
#dashboard-shell .cms-checkbox input{width:17px;height:17px}
#dashboard-shell .cms-form-title{font:700 19px 'Barlow Condensed',sans-serif;margin:0 0 12px}
#dashboard-shell .cms-empty{padding:20px;color:#a2b3c3;font-size:12px}
#dashboard-shell .cms-price-row{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
#dashboard-shell .cms-price-row strong{width:180px;font-size:12px;padding-bottom:12px}
#dashboard-shell .cms-price-row .cms-field{min-width:180px;max-width:240px}
#dashboard-shell .cms-price-row .cms-wide{flex:1;min-width:220px}
@media(max-width:670px){#dashboard-shell .cms-grid{grid-template-columns:1fr}#dashboard-shell .cms-wide{grid-column:auto}#dashboard-shell .cms-intro{display:block}#dashboard-shell .cms-intro button{margin-top:12px}#dashboard-shell .cms-form{padding:15px}#dashboard-shell .cms-price-row{display:grid;grid-template-columns:1fr}#dashboard-shell .cms-price-row strong{width:auto}#dashboard-shell .cms-price-row .cms-field{max-width:unset}}
/* V16 — personal Coach/Client profiles, registrations, verified reviews */
#dashboard-shell .dash-profile-form{padding:20px;display:flex;flex-direction:column;gap:16px}
#dashboard-shell .dash-profile-head{display:flex;align-items:center;gap:16px;border-bottom:1px solid #2c3f51;padding-bottom:16px}
#dashboard-shell .dash-profile-head h3{font:700 25px 'Barlow Condensed',sans-serif;margin:0 0 3px}
#dashboard-shell .dash-profile-head p{color:#a9b8c5;font-size:12px;margin:0}
#dashboard-shell .dash-profile-head small{font-size:11px;color:#7f9bb2}
#dashboard-shell .dash-profile-avatar{width:84px;height:84px;flex:0 0 84px;object-fit:cover;border:1px solid #4c6380;border-radius:12px}
#dashboard-shell .dash-avatar-placeholder{display:grid;place-items:center;background:#243b5a;color:#b5c8e9;font:700 40px 'Barlow Condensed',sans-serif}
#dashboard-shell .dash-avatar-image{width:100%;height:100%;object-fit:cover;border-radius:9px}
#dashboard-shell .dash-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
#dashboard-shell .dash-form-grid>label{display:flex;flex-direction:column;gap:6px;color:#acbed1;font-size:12px}
#dashboard-shell .dash-form-grid input:not([type=checkbox]),#dashboard-shell .dash-form-grid select,#dashboard-shell .dash-form-grid textarea{
  width:100%;background:#1d2b38;border:1px solid #3b5269;color:#e8f1f8;padding:11px 12px;border-radius:7px;font:12px 'Be Vietnam Pro',sans-serif;min-height:40px}
#dashboard-shell .dash-form-grid input[type=file]{font-size:11px;cursor:pointer}
#dashboard-shell .dash-form-grid textarea{min-height:88px;resize:vertical}
#dashboard-shell .dash-form-grid .dash-form-wide{grid-column:1/-1}
#dashboard-shell .dash-form-grid .dash-check{flex-direction:row;align-items:start;gap:10px;color:#b9cce0}
#dashboard-shell .dash-profile-tip{font-size:11px;color:#8ea4b9;line-height:1.7;margin:0}
#dashboard-shell .dash-coach-list{display:flex;flex-direction:column}
#dashboard-shell .dash-coach-controls{margin-left:auto;display:flex;align-items:center}
#dashboard-shell .dash-public-contact{color:#8db5ff!important;font-size:11px!important}
#dashboard-shell .dash-feedback-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;padding:16px}
#dashboard-shell .dash-feedback{background:#1b2a39;border:1px solid #33495e;padding:16px;border-radius:9px}
#dashboard-shell .dash-feedback-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:9px}
#dashboard-shell .dash-feedback-top strong{font-size:18px;color:#f0b95a}
#dashboard-shell .dash-feedback-top span,#dashboard-shell .dash-feedback small{font-size:11px;color:#95abc0}
#dashboard-shell .dash-feedback p{font-size:12px;margin:8px 0 10px;color:#d9e9f6;white-space:pre-wrap}
#dashboard-shell .dash-feedback button{display:block;margin-top:12px}
.simple-review-summary{font-size:12px;color:#f0b95a;margin:10px 0 8px;font-weight:700}
@media(max-width:650px){#dashboard-shell .dash-form-grid{grid-template-columns:1fr}#dashboard-shell .dash-form-grid .dash-form-wide{grid-column:auto}#dashboard-shell .dash-coach{flex-wrap:wrap}#dashboard-shell .dash-coach-controls{width:100%;margin:0;justify-content:flex-start}#dashboard-shell .dash-profile-head{align-items:flex-start}}

/* V17: clickable brand returns to Public without logging out. */
#dashboard-shell .dash-brand-home{border:0;background:transparent;padding:3px 0;cursor:pointer;text-align:left}
#dashboard-shell .dash-brand-home:hover{color:#a6c5ff}
#dashboard-shell .dash-brand-home:focus-visible{outline:2px solid #7ba2ff;outline-offset:5px;border-radius:3px}

/* ATP V22 — Password reset workflow and featured Coach image upload */
#dash-reset-dialog{max-width:530px;width:calc(100vw - 28px);max-height:92vh;overflow:auto;background:#16202a;color:#e7edf2;border:1px solid #344658;border-radius:13px;padding:26px;box-shadow:0 24px 70px #000a}
#dash-reset-dialog::backdrop{background:rgba(0,0,0,.8)}
#dash-reset-dialog h2{font:800 29px 'Barlow Condensed',sans-serif;margin:0 0 9px}
#dash-reset-dialog p{font-size:12px;color:#afc0d0;line-height:1.7}
#dash-reset-password-form{display:grid;gap:14px;margin-top:14px}
#dash-reset-password-form label,#dashboard-shell .dash-password-note{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#aebfd0}
#dash-reset-password-form input,#dash-reset-password-form textarea,#dashboard-shell .dash-password-note textarea{width:100%;background:#1c2832;border:1px solid #344659;border-radius:7px;padding:11px;color:#ecf4ff;font:12px 'Be Vietnam Pro',sans-serif;resize:vertical}
#dash-reset-dialog .dash-btn{border:1px solid #344659;border-radius:6px;padding:11px 14px;background:#203449;color:#e7edf2;font-weight:700;cursor:pointer}
#dash-reset-dialog .dash-btn.primary{background:#7ba2ff;border-color:#7ba2ff;color:#101820}
#dash-reset-dialog .dash-reset-tools{display:flex;flex-wrap:wrap;gap:8px}
#dash-reset-note{border-radius:6px;background:#283848;padding:9px;min-height:32px;overflow-wrap:anywhere}
#dashboard-shell .cms-photo-preview{min-height:130px;border:1px dashed #47607a;border-radius:9px;background:#102031;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#8ca3b9;font-size:12px}
#dashboard-shell .cms-photo-preview img{max-width:100%;width:100%;max-height:245px;object-fit:contain;display:block}
#dashboard-shell .cms-photo-preview img[hidden],#dashboard-shell .cms-photo-preview span[hidden]{display:none}
#dashboard-shell .cms-field small{font-size:10px;color:#93aac0;line-height:1.7}

/* ATP Coaching V24 — sidebar workspace + role-aware horizontal sub-navigation */
#dashboard-shell{--dash-bg:#0d151e;--dash-line:#2a3b4b;--dash-panel-bg:#16212c}
#dashboard-shell .dash-workspace{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh;max-width:1700px;margin:0 auto;position:relative}
#dashboard-shell .dash-sidebar{background:#101923;border-right:1px solid var(--dash-line);padding:26px 16px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow-y:auto;z-index:42}
#dashboard-shell .dash-sidebar-head{padding:3px 12px 25px;border-bottom:1px solid #28394a}
#dashboard-shell .dash-sidebar-head .dash-brand{font-size:29px}
#dashboard-shell .dash-sidebar-head small{display:block;margin-top:11px;color:#7c93ad;letter-spacing:.17em;font-size:9px;font-weight:700}
#dashboard-shell .dash-nav-label{font-size:10px;letter-spacing:.13em;color:#718aa5;font-weight:800;margin:27px 11px 9px}
#dashboard-shell .dash-side-nav{display:flex;flex-direction:column;gap:5px}
#dashboard-shell .dash-side-item{width:100%;border:1px solid transparent;background:transparent;color:#abbccc;display:flex;align-items:center;gap:12px;padding:13px 12px;border-radius:11px;font:700 12px 'Be Vietnam Pro',system-ui;cursor:pointer;text-align:left;transition:background .14s,border-color .14s;min-height:46px}
#dashboard-shell .dash-side-item:hover{background:#1c2b3a;color:#edf5ff}
#dashboard-shell .dash-side-item.active{background:#193b6a;border-color:#295486;color:#e3efff;box-shadow:inset 3px 0 0 #7ba2ff}
#dashboard-shell .dash-side-icon{font:700 19px system-ui;display:grid;place-items:center;width:23px;color:#8db7fa;flex-shrink:0}
#dashboard-shell .dash-side-count{margin-left:auto;font-size:10px;color:#7d94ab;background:#1b2a38;border-radius:100px;min-width:23px;padding:3px 5px;text-align:center}
#dashboard-shell .dash-side-item.active .dash-side-count{color:#ccddff;background:#294d7d}
#dashboard-shell .dash-sidebar-bottom{margin-top:auto;padding:22px 10px 3px;border-top:1px solid #28394a}
#dashboard-shell .dash-return-public{background:transparent;color:#a4bedb;border:0;cursor:pointer;font:700 12px 'Be Vietnam Pro',system-ui;text-align:left;padding:8px 3px}
#dashboard-shell .dash-return-public:hover{color:#fff}
#dashboard-shell .dash-sidebar-caption{font-size:10px;color:#6c8198;margin-top:17px}
#dashboard-shell .dash-workarea{min-width:0;background:radial-gradient(ellipse 75% 50% at 90% 0%,#12253c 0%,transparent 75%),var(--dash-bg)}
#dashboard-shell .dash-header{position:relative;top:auto;z-index:22;border-bottom:1px solid #263849;background:#111c27ed}
#dashboard-shell .dash-header .dash-head-top{padding:17px clamp(16px,2.8vw,34px) 10px}
#dashboard-shell .dash-roleline{padding:0 clamp(16px,2.8vw,34px) 15px}
#dashboard-shell .dash-context{gap:9px}
#dashboard-shell .dash-header-brand{display:none}
#dashboard-shell .dash-mobile-menu{display:none;border:1px solid #39516b;color:#dceaff;background:#1a2b3b;border-radius:8px;min-height:37px;min-width:41px;font-size:19px;cursor:pointer}
#dashboard-shell .dash-page-content{max-width:none;margin:0;padding:30px clamp(16px,2.8vw,34px) 70px}
#dashboard-shell .dash-page-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:19px;min-width:0}
#dashboard-shell .dash-breadcrumb{font-size:10px;letter-spacing:.14em;color:#7d9dc1;font-weight:800;margin-bottom:5px}
#dashboard-shell .dash-page-title{font:750 clamp(27px,2.1vw,35px) 'Barlow Condensed',sans-serif;margin:0}
#dashboard-shell .dash-head-reload{white-space:nowrap}
#dashboard-shell .dash-tabs{border-bottom:1px solid #304050;gap:8px;margin:0 0 22px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#3e5061 transparent}
#dashboard-shell .dash-tabs button{font-size:12px;min-height:51px;padding:11px 17px;border-bottom-width:3px}
#dashboard-shell .dash-tabs button.active{color:#86b1fc;border-color:#7ba2ff}
#dashboard-shell .dash-sidebar-backdrop{display:none}
/* V30.16: Client uses the same visible vertical group menu as other roles. */
#dashboard-shell.dash-client-layout .dash-workspace{display:grid;max-width:1700px}
#dashboard-shell.dash-client-layout .dash-sidebar{display:flex}
#dashboard-shell.dash-client-layout .dash-header-brand{display:none}
#dashboard-shell.dash-client-layout .dash-page-content{max-width:none;margin:0}
#dashboard-shell.dash-client-layout .dash-header .dash-head-top,#dashboard-shell.dash-client-layout .dash-roleline{max-width:none;margin:0}
#dashboard-shell.dash-client-layout .dash-tabs{gap:8px}
@media(max-width:1000px){
 #dashboard-shell .dash-workspace{grid-template-columns:218px minmax(0,1fr)}
 #dashboard-shell .dash-sidebar{padding:18px 10px}
 #dashboard-shell .dash-sidebar-head{padding-left:8px;padding-right:8px}
 #dashboard-shell .dash-sidebar-head .dash-brand{font-size:25px}
 #dashboard-shell .dash-side-item{padding:11px 9px;gap:7px}
}
@media(max-width:770px){
 #dashboard-shell .dash-workspace{display:block}
 #dashboard-shell .dash-sidebar{position:fixed;top:0;bottom:0;left:0;width:min(300px,86vw);height:100dvh;transform:translateX(-105%);transition:transform .18s ease;box-shadow:8px 0 30px #0008;z-index:60;padding:23px 14px}
 #dashboard-shell.dash-nav-open .dash-sidebar{transform:translateX(0)}
 #dashboard-shell .dash-sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:55;border:0;background:#050c13b3;cursor:pointer}
 #dashboard-shell .dash-mobile-menu{display:block}
 #dashboard-shell .dash-header-brand{display:block;font-size:23px}
 #dashboard-shell .dash-head-identity{display:flex;align-items:center;gap:12px}
 #dashboard-shell .dash-header .dash-head-top{gap:8px;flex-wrap:wrap;padding-top:13px}
 #dashboard-shell .dash-context{margin-left:auto;gap:6px}
 #dashboard-shell .dash-context strong{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #dashboard-shell .dash-roleline{padding-bottom:10px}
 #dashboard-shell .dash-page-content{padding-top:23px}
 #dashboard-shell.dash-client-layout .dash-workspace{display:block}
 #dashboard-shell.dash-client-layout .dash-mobile-menu{display:block}
 #dashboard-shell.dash-client-layout .dash-header-brand{display:block}
}
@media(max-width:540px){
 #dashboard-shell .dash-header .dash-head-top{align-items:center}
 #dashboard-shell .dash-context{width:100%;justify-content:flex-end}
 #dashboard-shell .dash-page-head{align-items:flex-start}
 #dashboard-shell .dash-page-title{font-size:29px}
 #dashboard-shell .dash-head-reload{padding:8px 10px}
 #dashboard-shell .dash-tabs button{padding:11px 13px}
 #dashboard-shell .dash-breadcrumb{font-size:9px}
 #dashboard-shell .dash-header-brand{font-size:22px}
}
/* Keep the brand fully inside the fixed-width sidebar. */
#dashboard-shell .dash-sidebar-head .dash-brand{font-size:23px;letter-spacing:-.015em;white-space:nowrap}

/* ATP Coaching V25 — Helpdesk color-coded statuses and Admin-only archive actions. */
#dashboard-shell .dash-support-state{gap:6px;font-size:11px;font-weight:700;border:1px solid transparent;}
#dashboard-shell .dash-support-state::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;flex:0 0 7px;}
#dashboard-shell .dash-support-state.state-open{background:#173a5b;color:#91c6ff;border-color:#315e87;}
#dashboard-shell .dash-support-state.state-in_review{background:#4b3512;color:#f6cd72;border-color:#84611c;}
#dashboard-shell .dash-support-state.state-resolved{background:#153e2b;color:#85e5af;border-color:#286f4c;}
#dashboard-shell .dash-support-state.state-rejected{background:#452024;color:#ff9b9f;border-color:#833c44;}
#dashboard-shell .dash-support-state.state-archived{background:#28323f;color:#b7c5d2;border-color:#465465;}
#dashboard-shell .dash-support-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 15px;margin:8px 0;}
#dashboard-shell .dash-support-counts{display:flex;align-items:center;gap:10px 20px;flex-wrap:wrap;color:#b0c2d4;font-size:12px;}
#dashboard-shell .dash-support-counts b{font-variant-numeric:tabular-nums;color:#f2f7ff;font-size:13px;margin-left:4px;}
#dashboard-shell .dash-support-legend{display:flex;gap:8px;flex-wrap:wrap;margin:5px 0 20px;}
#dashboard-shell .dash-btn.dash-danger{color:#ffafb1;border-color:#7a3b43;background:#3a232b;}
#dashboard-shell .dash-btn.dash-danger:hover:not(:disabled){color:#ffe0e0;background:#622c35;}
#dashboard-shell .dash-btn.dash-restore{color:#a7d6ff;border-color:#466989;background:#1c3851;}
#dashboard-shell .dash-btn.dash-restore:hover:not(:disabled){background:#2b5578;}
#dashboard-shell .dash-archive-note{font-size:10px;color:#c2a3a3;margin-top:7px;line-height:1.5;}
#dashboard-shell .dash-support-bottom{border:1px solid #304355;border-radius:8px;background:#142230;margin-top:16px;}
@media(max-width:640px){#dashboard-shell .dash-support-counts{gap:7px 14px;}}

/* V30: badge only for unread or pending notifications; no static section counts. */
#dashboard-shell .v30-unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;border-radius:999px;margin-left:auto;padding:0 5px;background:#d63845;color:white;font-weight:800;font-size:10px;line-height:1;box-shadow:0 0 0 2px rgba(214,56,69,.14)}
#dashboard-shell .dash-tabs .v30-unread-badge{margin-left:8px}

#dash-editor #dash-edit-note{white-space:pre-wrap;overflow-wrap:anywhere}

/* V30.20.2 - days with no published shifts are valid days off */
.v30202-rest-label{font-size:.77rem;color:var(--muted,#a9bed5);margin:.2rem .1rem .5rem;}
.v30202-rest-label[hidden]{display:none!important;}

/* V30.21.4: overview cards are drawn from the same canonical daily session list. */
#dashboard-shell .dash-stats.dash-stats-overview{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:12px}
#dashboard-shell .dash-overview-warning{margin:12px 0;padding:12px;border:1px solid #85672e;border-radius:8px;overflow-wrap:anywhere}
@media(max-width:850px){#dashboard-shell .dash-stats.dash-stats-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V30.21.5 — client-request categories inside one Coach tab */
.dash-client-req-tabs{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 18px;border-bottom:1px solid var(--line,#2d4356);padding-bottom:12px}
.dash-client-req-option{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:9px 15px;background:var(--card,#152332);color:var(--text,#dbe9ff);border:1px solid var(--line,#38516b);border-radius:10px;cursor:pointer;font:inherit;font-size:13px;font-weight:600}
.dash-client-req-option:hover{border-color:#7195e8}
.dash-client-req-option.active{background:#274772;border-color:#83a6ff;color:#fff}
.dash-client-req-option:focus-visible{outline:2px solid #95b8ff;outline-offset:2px}
.dash-client-req-content .dash-panel,.dash-client-req-content .v29-panel{margin-top:0}
@media(max-width:480px){.dash-client-req-option{flex:1;justify-content:center;min-width:calc(50% - 6px);padding:10px 7px}}

/* V30.21.6 — compact Coach subnavigation, responsive and tab-only updates. */
#dashboard-shell .dash-merged{min-width:0;width:100%}
#dashboard-shell .dash-merged-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:6px 0 14px;border-bottom:1px solid #30465d;margin-bottom:14px}
#dashboard-shell .dash-merged-option{border:1px solid #35506a;background:#152638;color:#bed0e7;border-radius:8px;padding:10px 13px;font:600 12px 'Be Vietnam Pro',system-ui;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
#dashboard-shell .dash-merged-option.active{border-color:#82a7ff;background:#24436c;color:#fff}
#dashboard-shell .dash-merged-option:focus-visible{outline:2px solid #86aeff;outline-offset:2px}
#dashboard-shell .dash-merged-content{min-width:0}
#dashboard-shell #dash-edit-note{white-space:pre-line}
@media(max-width:520px){#dashboard-shell .dash-merged-tabs{gap:5px}#dashboard-shell .dash-merged-option{font-size:11px;padding:9px 10px}}

#dashboard-shell .dash-account-show-archived{display:flex;align-items:center;gap:8px;cursor:pointer;color:#bfd2eb;padding:12px 18px 4px;font-size:12px}
#dashboard-shell .dash-account-row[hidden]{display:none!important}

/* V30.21.23 archive readable references */
.archive-code{display:block;margin-top:4px;font-weight:400;font-size:11px;color:#9cb7e0}.archive-code summary{cursor:pointer;display:list-item;width:max-content;max-width:100%;color:#89b4ff}.archive-code code{display:block;max-width:320px;white-space:normal;overflow-wrap:anywhere;padding:4px 0;color:#b6c4db}

/* ATP V30.21.29 — passive agenda: no modal, auto-toast or reminder timer. */
.atp-daily-agenda{border:1px solid #37639a;border-radius:16px;padding:20px;margin:0 0 18px;background:linear-gradient(120deg,#142944 0%,#0e1c31 74%);box-shadow:0 12px 28px rgba(0,0,0,.13);color:#eef5ff}
.atp-daily-agenda header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.atp-daily-agenda header h2{margin:4px 0 0;font-size:22px;line-height:1.25;color:#fff}
.atp-daily-kicker{font-size:10px;letter-spacing:.09em;color:#89b6fa;font-weight:700}
.atp-daily-count{border:1px solid #416da5;color:#c7e2ff;background:#1d3a5c;border-radius:30px;padding:5px 11px;font-weight:700;font-size:12px;white-space:nowrap}
.atp-daily-items{display:grid;gap:8px}
.atp-daily-item{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border:1px solid #304662;background:rgba(10,20,36,.65);border-radius:11px;padding:12px 14px}
.atp-daily-time{font-size:19px;font-weight:800;color:#fff;white-space:nowrap;font-variant-numeric:tabular-nums}.atp-daily-time span{color:#8ab6e9}
.atp-daily-person{flex:1;min-width:180px;font-size:13px;color:#e5edf9;font-weight:600;overflow-wrap:anywhere}.atp-daily-person small{font-size:11px;font-weight:400;color:#b4c9e6}
.atp-daily-state{font-size:11px;background:#1e3955;color:#a9d2ff;border-radius:20px;padding:4px 9px}
.atp-daily-empty{margin:0;color:#adc3df;font-size:13px;padding:12px 0}
.atp-daily-view{margin-top:14px!important;min-height:40px}
.atp-daily-news{background:#282b36;border:1px solid #ad8649;border-radius:11px;padding:12px 14px;margin-bottom:12px;color:#f9e6c4}
.atp-daily-news strong{display:block;font-size:13px}.atp-daily-news p{font-size:12px;margin:6px 0;line-height:1.55}.atp-daily-news button{margin-top:6px}
@media(max-width:640px){.atp-daily-agenda{padding:14px}.atp-daily-agenda header h2{font-size:19px}.atp-daily-time{font-size:17px}.atp-daily-item{gap:7px}.atp-daily-state{margin-left:auto}}

/* V30.21.31: blue informational indicator; NOT an unread/task badge. */
#dashboard-shell .atp-today-info{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;white-space:nowrap;padding:3px 9px;margin-left:7px;border:1px solid #447bb9;border-radius:999px;background:#163b64;color:#b9dcff;font-size:10px;line-height:1.5;font-weight:700;letter-spacing:0;font-variant-numeric:tabular-nums;box-shadow:none}
#dashboard-shell .dash-side-item .atp-today-info{margin-left:auto}
#dashboard-shell .v30-unread-badge{flex-shrink:0}
@media(max-width:480px){#dashboard-shell .atp-today-info{font-size:9px;padding:3px 6px;margin-left:5px}}

/* V30.21.38: concise Coach profile editor */
.atp-profile-compact .atp-profile-section-title{border-top:1px solid #35465c;padding-top:16px;margin-top:4px;display:flex;flex-direction:column;gap:4px}
.atp-profile-section-title strong{color:#e9f4ff;font-size:14px}.atp-profile-section-title small{color:#91aaca;font-size:12px}
.atp-profile-advanced{background:#122135;border:1px solid #30445f;padding:11px 14px;border-radius:9px}
.atp-profile-advanced summary{cursor:pointer;font-weight:600;color:#b5d4ff}.atp-profile-advanced[open] summary{margin-bottom:12px}
.atp-profile-advanced .dash-form-grid{margin:0}.atp-profile-consent{display:flex!important;align-items:center;gap:10px;font-size:13px;min-height:22px}
.atp-profile-consent input{width:auto!important;flex:0 0 auto;margin:0}.atp-profile-compact label{min-width:0}

/* V30.21.46 — Client guides and Admin verified revenue */
.v29-revenue-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:15px 0}
.v29-revenue-summary>div{border:1px solid #335073;background:#132536;border-radius:12px;padding:14px;display:grid;gap:8px}
.v29-revenue-summary span{font-size:12px;color:#abc9e9}.v29-revenue-summary strong{font-size:clamp(17px,2vw,24px);overflow-wrap:anywhere}
.v29-revenue-table-wrap{width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid #34506e;border-radius:10px}
.v29-revenue-table{border-collapse:collapse;width:100%;min-width:1200px}
.v29-revenue-table th,.v29-revenue-table td{border-bottom:1px solid #30465e;padding:12px 10px;text-align:left;vertical-align:top;line-height:1.5}
.v29-revenue-table th{background:#1c3146;color:#d6e9ff;white-space:nowrap;font-size:12px}
.v29-revenue-table td{font-size:13px}.v29-revenue-table small{color:#a8bed8}
.v29-revenue-amount{font-weight:700;white-space:nowrap}
@media(max-width:640px){.v29-revenue-summary{grid-template-columns:1fr}}

.v29-finance-sections{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 15px}.v29-finance-sections .dash-btn{min-width:160px}[data-v29-finance-body][hidden]{display:none!important}@media(max-width:640px){.v29-finance-sections .dash-btn{flex:1;min-width:0}}
