/* Cabinet foundation follows Velok's white cards, compact table and open sidebar. */
.shell{
 --mat:#f7f8f9;--paper:#fff;--ink:#313b5e;--secondary:#74788d;--faint:#9a9cab;--line:#eaedf1;
 --accent:#557437;--accent-hover:#49622e;--accent-ink:#49622e;--accent-soft:#eef3e7;
 --group-surface:#fff;--group-line:#eaedf1;--subscription-surface:#f9fafb;--subscription-line:#eaedf1;--note-surface:#faf9f5;
 --radius:4px;--admin-shadow:0 3px 4px rgba(0,0,0,.03);
 width:100%;max-width:none;margin:0;background:var(--mat);color:var(--ink);font-family:'Panton','Segoe UI',Arial,sans-serif;
}
.shell .main{min-width:0;background:var(--mat)}
.shell .content{max-width:none;margin:0;padding:20px}
.shell .heading .eyebrow{display:none}
.shell .heading{gap:16px;margin-bottom:20px}
.shell h1{font-size:22px;font-weight:600;letter-spacing:0}
.shell .gym-title{margin:0 0 20px;font-size:22px;letter-spacing:0;font-weight:600}
.shell .sub{line-height:1.6}
.shell :is(.card,.panel,.report-period,.student-card){border:0;border-radius:4px;background:#fff;box-shadow:var(--admin-shadow)}
.shell .card{padding:20px}
.shell .card>h2{font-size:16px;font-weight:500}
.shell .stats,.shell .stats.stats-two{background:transparent;border:0;border-radius:0;gap:20px;margin-bottom:20px;align-items:stretch}
.shell .stat{
 position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:132px;padding:20px;
 border:0;border-radius:4px;background:white;box-shadow:var(--admin-shadow);
}
.shell .stat+.stat{border-left:0}
.shell .stat:has(.stat-symbol){padding-right:96px}
.shell .stat .value{order:0;font-size:26px;font-weight:600;line-height:1.25;letter-spacing:0;margin:0 0 7px;color:#313b5e}
.shell .stat .label{order:1;font-size:15px;font-weight:400;line-height:1.5;min-height:0;color:#74788d}
.shell .stat>small{order:2;display:block;margin-top:5px;font-size:12.1px;line-height:1.6;color:#9a9cab}
.shell .stat .metric-number{min-height:33px;min-width:0;padding:0;gap:8px;border:0;background:transparent;text-align:left}
.shell .stat .metric-number:hover{background:transparent;color:var(--accent)}
.shell .stat .metric-number>span{font-size:15px}
.shell .stat .metric-delta{order:3;display:block;margin-top:8px;font-size:12.1px;line-height:1.5}
.shell .stat .metric-delta span{margin-left:3px}
.shell .stat .money-value{font-size:26px;overflow-wrap:anywhere}
.shell .stat-symbol{position:absolute;right:20px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:#557437;color:white}
.shell .stat-symbol .ui-icon{width:25px;height:25px;color:white}
.shell button{border-radius:4px;min-height:42px}
.shell button.primary{background:#557437;border-color:#557437;color:white}
.shell button.primary:hover{background:#49622e;border-color:#49622e;color:white}
.shell button:not(.primary):not(.active):not(.selected):not(.quiet):hover{background:#f7f8f9}
.shell :is(input,select,textarea){min-height:44px;border-color:#e4e7ec;border-radius:4px;background:white}
.shell :is(input,select,textarea):focus{border-color:#8ea477;outline:2px solid #55743712;outline-offset:1px}
.shell :is(input,textarea)::placeholder{color:#a0a3b2}
.shell label{font-size:13.2px;color:#74788d}
.shell .checkbox input{min-height:18px}
.shell .toolbar{gap:12px}
.shell .toolbar input[type=search],.shell .toolbar #search{border:0;border-radius:25px;padding-inline:16px;background:#f7f8f9}
.shell :is(.tabs,.section-tabs,.notification-filters){display:flex;flex-wrap:wrap;gap:4px;padding:4px;background:#edf0f3;border:0;border-radius:6px;width:fit-content;max-width:100%}
.shell :is(.section-tabs,.notification-filters){margin-bottom:22px}
.shell :is(.tabs,.section-tabs,.notification-filters)>button{min-height:42px;padding:8px 12px;border:0;border-radius:4px;background:transparent;color:var(--secondary);font-size:13.2px;font-weight:500;line-height:1.4}
.shell :is(.tabs,.section-tabs,.notification-filters)>button.active{background:#557437;border-color:#557437;color:white}
.shell .panel table{color:#020202}
.shell .panel th,.shell .panel td{padding:13.6px;border-top:0;border-bottom:1px solid #eaedf1;font-size:14px;line-height:1.6}
.shell .panel th{background:#fff;color:#020202;font-weight:500}
.shell .panel td{color:#020202;font-weight:400}
.shell .panel td .name{font-weight:500}
.shell .panel tbody tr:hover{background:#fafbfc}
.shell .panel tbody tr:last-child td{border-bottom:0}
.shell .table-foot{padding:14px 20px;border-top:1px solid #eaedf1;background:white;font-size:12.1px}
.shell .avatar{background:#f1f2f4;color:#8a8d9c;font-size:12.1px}
.shell .badge{padding:5px 8px;border-radius:4px;font-size:12.1px}
.shell .badge.paid{background:#eef3e7;color:#557437}
.shell .badge.off{background:#f1f2f4;color:#74788d}
.shell .register-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;border-bottom:1px solid #eaedf1;background:white}
.shell .register-heading h2{margin:0;font-size:14px;line-height:1.5;font-weight:500;letter-spacing:0}
.shell .register-heading .actions{flex-shrink:0}
.shell .students-register{overflow:hidden}
.shell .students-register .register-toolbar{margin:0;padding:20px;border-bottom:1px solid #eaedf1;background:white}
.shell .students-register #students-table{min-width:0}
.shell .students-register #students-table .desktop-students{margin:0;border:0;border-radius:0;box-shadow:none}
.shell .students-register #students-table .mobile-students{padding:16px;background:#f7f8f9}
.shell .students-register #students-table .student-card{border:0;border-radius:4px;box-shadow:var(--admin-shadow)}
.shell .dashboard-detail-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:20px;align-items:start;margin-bottom:20px}
.shell .dashboard-detail-grid>*{min-width:0}
.shell .dashboard-group-panel{padding:0}
.shell .dashboard-group-panel .dashboard-groups{display:block;gap:0}
.shell .dashboard-group{padding:20px;background:#fff;border:0;border-radius:4px;box-shadow:var(--admin-shadow)}
.shell .dashboard-group-panel .dashboard-group{margin:0;padding:19px 20px;border:0;border-radius:0;border-bottom:1px solid #eaedf1;box-shadow:none}
.shell .dashboard-group-panel .dashboard-group:last-child{border-bottom:0}
.shell .dashboard-group .group-heading{display:flex;align-items:center;gap:16px;min-width:0}
.shell .dashboard-group .group-heading>div{flex:1;min-width:0}
.shell .dashboard-group .group-heading h2{margin:0 0 5px;font-size:14px;line-height:1.5;font-weight:500}
.shell .dashboard-group .group-heading .sub{font-size:12.1px}
.shell .dashboard-group .group-count{display:flex;align-items:center;justify-content:center;gap:5px;flex-shrink:0;min-height:34px;margin:0;padding:7px 10px;background:#eef3e7;font-size:12.1px;color:#557437}
.shell .dashboard-group .group-count .ui-icon{width:14px;height:14px}
.shell .birthday-panel{padding:0;margin:0;overflow:hidden}
.shell .birthday-panel h2{display:flex;align-items:center;gap:8px;margin:0;padding:20px;font-size:14px;font-weight:500;line-height:1.5;border-bottom:1px solid #eaedf1}
.shell .birthday-panel h2 .ui-icon{width:18px;height:18px;color:#8b8f9c}
.shell .birthday-panel .roster-person{width:calc(100% - 40px);margin-inline:20px;padding:10px 0;gap:10px;min-height:49px;border:0;border-bottom:1px solid #eaedf1}
.shell .birthday-panel .roster-person:last-of-type{border-bottom:0}
.shell .birthday-panel .roster-person .avatar{width:28px;height:28px;font-size:11px}
.shell .birthday-panel .roster-person>span:nth-child(2){display:block}
.shell .birthday-panel .roster-person strong{font-size:13.2px;line-height:1.5;font-weight:500}
.shell .birthday-panel .roster-person small{font-size:12.1px;line-height:1.5;margin:2px 0 0}
.shell .birthday-panel .badge{font-size:11px;padding:4px 7px}
.shell .birthday-panel .row-button{min-height:34px;margin:2px 20px 10px;padding:0;font-size:12.1px}
.shell .birthday-panel>p.sub{padding:20px}
.shell .group-settings-row{background:white;padding:20px;border-color:#eaedf1;border-radius:0}
.shell .group-settings-row:hover{background:#fafbfc}
.shell .group-row-title{font-size:14px;font-weight:500}
.shell .group-row-meta{font-size:13px}
.shell .gym-settings{background:white}
.shell .membership-card,.shell .payment-connection{background:#f9fafb;border:1px solid #eaedf1;border-radius:4px;box-shadow:none}
.shell .coach-note{background:#faf9f5;border-color:#efece3;border-radius:4px}
.shell .template-card{box-shadow:var(--admin-shadow)}
.shell .template-card summary{font-size:14px}
.shell .template-preview,.shell .note{background:#f7f8f9;border-radius:4px}
.shell .club-share,.shell .legacy-messenger-notice{background:#eef3e7;border-color:#e2e8db;box-shadow:none}
.shell .dashboard-feedback{margin-top:20px;background:white}
.shell .feedback-item{background:white}
.shell .feedback-item.feedback-new{background:#fafcf7;border-color:#e1e8da}
.shell .student-card{padding:18px}
.shell .student-card-group{background:#f7f8f9}
.shell .student-card-progress{border-color:#eaedf1}
.shell .sidebar-brand{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.shell .sidebar-brand .logo{min-width:0}
.shell .sidebar-toggle{display:flex;align-items:center;justify-content:center;flex-shrink:0;min-width:36px;min-height:36px;padding:8px;border:0;background:transparent;color:#8991a3}
.shell .sidebar-toggle:hover{background:#f7f8f9}
.shell .sidebar-toggle .ui-icon{width:19px;height:19px}
.shell .admin-header{display:none}
body:has(.shell) dialog{--mat:#f7f8f9;--ink:#313b5e;--secondary:#74788d;--line:#eaedf1;--accent:#557437;--accent-hover:#49622e;--accent-ink:#49622e;--accent-soft:#eef3e7;border:0;border-radius:4px;background:white;box-shadow:0 8px 30px #00000012;font-family:'Panton','Segoe UI',Arial,sans-serif}
body:has(.shell) dialog::backdrop{background:#313b5e55}
body:has(.shell) dialog :is(input,select,textarea){border-color:#e4e7ec;border-radius:4px}
body:has(.shell) dialog button.primary{background:#557437;border-color:#557437;color:white}
body:has(.shell) dialog button.primary:hover{background:#49622e;border-color:#49622e;color:white}

.shell .accounting-layout{grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
.shell .accounting-layout>*{min-width:0}
.shell .payment-register .desktop-payments{display:block}
.shell .payment-register .mobile-payments{display:none}
.shell .payment-register .amount-cell{text-align:right;font-weight:500}
.shell .payment-register .payment-group-name{display:block;font-size:14px;font-weight:500;line-height:1.5}
.shell .payment-register td .sub{display:block;font-size:12.1px;line-height:1.6;color:#9093a3}
.shell .panel .student-name{font-weight:500;color:#020202}
.shell .panel .student-name:hover{color:#557437}
.shell .payment-register .payment-edit-icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:36px;padding:0;border:0;border-radius:4px;background:transparent;color:#9297a8}
.shell .payment-register .payment-edit-icon:hover{background:#f7f8f9;color:#557437}
.shell .payment-edit-icon .ui-icon{width:17px;height:17px}
@media(min-width:1400px){.shell .accounting-layout{grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr)}}
@media(max-width:760px){
 .shell .payment-register .desktop-payments{display:none}
 .shell .payment-register .mobile-payments{display:block;padding:4px 16px 12px}
 .shell .payment-register .mobile-payments .log-item{padding:16px 0;border-color:#eaedf1}
 .shell .payment-register .mobile-payments .detail-line{padding:0 0 8px;border:0}
 .shell .payment-register .mobile-payments .log-item>p{font-size:13.2px;line-height:1.6}
 .shell .payment-register .mobile-payments .log-item>.sub{font-size:12.1px}
}

@media(min-width:761px){
 .shell{grid-template-columns:250px minmax(0,1fr)}
 .shell .sidebar{position:sticky;top:0;height:100dvh;padding:0;gap:0;background:white;border-right:1px solid #f1f2f4;overflow-y:auto;overscroll-behavior:contain}
 .shell .sidebar-brand{height:70px;min-height:70px;padding:0 16px 0 24px}
 .shell .sidebar .brand-logo{width:122px;height:auto}
 .shell .sidebar .mobile-gym-name{display:none}
 .shell .sidebar .nav{padding:16px 0;gap:0}
 .shell .sidebar .nav button{position:relative;min-height:44px;padding:10px 24px;border:0;border-radius:0;background:white;color:#81869b;font-size:14px;font-weight:400;gap:12px;white-space:normal}
 .shell .sidebar .nav button:hover{background:#fafbfc}
 .shell .sidebar .nav button.selected{background:white;color:#557437;font-weight:500}
 .shell .sidebar .nav button.selected::before{position:absolute;content:'';left:0;top:0;bottom:0;width:4px;background:#557437}
 .shell .sidebar .nav button .nav-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:20px;height:20px;background:transparent;color:currentColor}
 .shell .sidebar .nav-icon .ui-icon{width:20px;height:20px}
 .shell .side-foot{margin-top:auto;padding:20px 24px;color:#9a9cab;font-size:12.1px}
 .shell .side-foot .account-button{font-size:13px}
 .shell .admin-header{position:sticky;top:0;z-index:16;display:flex;align-items:center;justify-content:space-between;gap:20px;height:70px;padding:0 20px;border-bottom:1px solid #f1f2f4;background:white}
 .shell .admin-search{position:relative;display:flex;align-items:center;gap:10px;width:220px;min-width:140px;padding:0 14px;background:#f7f8f9;border:0;border-radius:25px;color:#a1a5b5}
 .shell .admin-search>input{width:100%;min-width:0;height:38px;min-height:38px;padding:8px 0;border:0;outline:0;background:transparent;box-shadow:none;font-size:13px}
 .shell .admin-search>input:focus{border:0;outline:0}
 .shell .admin-search:focus-within{box-shadow:0 0 0 2px #55743718}
 .shell .admin-search .ui-icon{width:17px;height:17px;flex-shrink:0}
 .shell .admin-search>button{display:none;align-items:center;justify-content:center;min-width:25px;min-height:30px;padding:3px;border:0;background:transparent;color:#9298aa}
 .shell .admin-search>button:hover{background:#eef3e7;color:#557437}
 .shell .admin-search-results{position:absolute;z-index:30;top:calc(100% + 8px);left:0;width:360px;max-width:min(440px,calc(100vw - 110px));max-height:360px;overflow-y:auto;padding:6px;border:0;border-radius:4px;background:white;box-shadow:0 6px 20px #313b5e18}
 .shell .admin-search-results[hidden]{display:none}
 .shell .admin-search-results button{display:flex;align-items:center;gap:10px;width:100%;min-height:58px;padding:10px;text-align:left;background:white;border:0;border-radius:4px}
 .shell .admin-search-results button:hover{background:#f7f8f9}
 .shell .admin-search-results button>span:not(.avatar){min-width:0}
 .shell .admin-search-results strong{display:block;font-size:13px;font-weight:500;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
 .shell .admin-search-results small{display:block;font-size:12.1px;line-height:1.6;color:#9a9cab;font-weight:400}
 .shell .admin-search-results p{padding:6px 10px;font-size:13px;line-height:1.5}
 .shell .admin-profile{display:flex;align-items:center;gap:10px;min-width:0;max-width:320px;padding:4px 0 4px 12px;border:0;background:transparent;text-align:left}
 .shell .admin-profile:hover{background:transparent}
 .shell .admin-profile>span{min-width:0}
 .shell .admin-profile strong{display:block;font-size:13px;font-weight:500;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .shell .admin-profile small{display:block;color:#9a9cab;font-size:12.1px;font-weight:400;line-height:1.5}
 .shell .admin-profile .avatar{width:35px;height:35px;background:#f7f8f9;color:#81869b}
 .shell .admin-profile>.ui-icon{width:14px;height:14px;color:#9a9cab}
 .shell .admin-service-label{font-size:14px;color:#81869b}
 .shell.sidebar-collapsed{grid-template-columns:80px minmax(0,1fr)}
 .shell.sidebar-collapsed .sidebar{overflow:visible}
 .shell.sidebar-collapsed .sidebar-brand{justify-content:center;padding:0}
 .shell.sidebar-collapsed .sidebar-brand .logo{display:none}
 .shell.sidebar-collapsed .sidebar .nav button{justify-content:center;padding-inline:20px}
 .shell.sidebar-collapsed .sidebar .nav-label,.shell.sidebar-collapsed .sidebar .side-foot{display:none}
 .shell.sidebar-collapsed .sidebar .feedback-count{position:absolute;top:3px;right:6px;margin:0;font-size:9px;min-width:15px;padding:2px 3px}
}
@media(max-width:1000px) and (min-width:761px){
 .shell .dashboard-detail-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:760px){
 .shell .sidebar{background:white;border-bottom:1px solid #eaedf1}
 .shell .sidebar-brand{flex-shrink:0}
 .shell .sidebar-toggle{display:none}
 .shell .sidebar .nav{background:white;border-top:1px solid #eaedf1;box-shadow:0 -2px 10px #00000004}
 .shell .sidebar .nav button{min-height:56px;padding:6px 2px;border:0;border-radius:4px;color:#81869b;font-size:12.1px}
 .shell .sidebar .nav button.selected{background:#f7f8f9;color:#557437}
 .shell .sidebar .nav button .nav-icon{background:transparent;color:currentColor}
 .shell .sidebar .nav button.selected::before{display:none}
 .shell .mobile-account-icon{background:#f7f8f9;border:0;border-radius:4px;color:#81869b}
 .shell .mobile-more-panel{border:0;border-radius:4px;box-shadow:0 3px 15px #00000012}
 .shell .mobile-more-panel button{font-size:14px}
 .shell .content{padding:20px 16px}
 .shell .gym-title{font-size:22px;margin-bottom:20px}
 .shell .stats,.shell .stats.stats-two{gap:12px;margin-bottom:20px}
 .shell .stat{padding:15px;min-height:130px}
 .shell .stat:has(.stat-symbol){padding-right:54px}
 .shell .stat .value,.shell .stat .money-value{font-size:24px}
 .shell .stat .label{font-size:13px;min-height:0}
 .shell .stat .metric-number{min-height:31px;margin:0 0 7px}
 .shell .stat .metric-delta{font-size:12.1px;margin-top:7px}
 .shell .stat .metric-delta span{display:block;margin-left:0}
 .shell .stat small{font-size:12.1px}
 .shell .stat-symbol{width:34px;height:34px;right:12px;top:17px;transform:none}
 .shell .stat-symbol .ui-icon{width:17px;height:17px}
 .shell .stats:not(.stats-two) .stat{padding-right:13px}
 .shell .stats:not(.stats-two) .stat-symbol{display:none}
 .shell .stats:not(.stats-two) .stat .value{font-size:23px}
 .shell .stats:not(.stats-two) .stat .label{font-size:12.1px}
 .shell .toolbar .tabs{padding:4px;gap:4px}
 .shell .dashboard-detail-grid{grid-template-columns:minmax(0,1fr);gap:20px}
 .shell .register-heading{padding:18px 16px;gap:12px}
 .shell .register-heading .actions{gap:6px}
 .shell .register-heading .actions button{padding:8px 10px;font-size:12.1px}
 .shell .students-register .register-toolbar{padding:16px}
 .shell .students-register #students-table .mobile-students{padding:12px}
 .shell .dashboard-group-panel .dashboard-group{padding:16px}
 .shell .dashboard-group .group-heading{gap:10px}
 .shell .dashboard-group .group-heading h2{font-size:14px}
 .shell .dashboard-group .group-heading .sub{font-size:12.1px}
 .shell .dashboard-group .group-count{padding:7px 8px;font-size:12.1px;gap:3px}
 .shell .birthday-panel h2{padding:18px 16px}
 .shell .birthday-panel .roster-person{width:calc(100% - 32px);margin-inline:16px;min-height:49px}
 .shell .birthday-panel .roster-person .avatar{width:26px;height:26px}
 .shell .birthday-panel .roster-person strong{font-size:13.2px}
 .shell .birthday-panel .roster-person small{font-size:12.1px}
 .shell .birthday-panel .badge{font-size:11px;padding:4px 6px}
 .shell .birthday-panel .row-button{margin-left:16px;margin-right:16px}
 .shell .group-settings-row{padding:18px}
 .shell .report-period{padding:16px}
 body:has(.shell) dialog{border-radius:12px 12px 0 0;box-shadow:none}
}
@media(max-width:350px){
 .shell .content{padding-inline:14px}
 .shell .stats,.shell .stats.stats-two{gap:10px}
 .shell .stat{padding:14px 12px}
 .shell .stat:has(.stat-symbol){padding-right:44px}
 .shell .stat-symbol{right:10px;width:28px;height:28px}
 .shell .stat-symbol .ui-icon{width:15px;height:15px}
 .shell .stat .value,.shell .stat .money-value{font-size:22px}
 .shell .stats:not(.stats-two) .stat{padding-inline:10px}
 .shell .stats:not(.stats-two) .stat .value{font-size:20px}
 .shell .dashboard-group .group-count{font-size:11px;padding:7px}
 .shell .dashboard-group .group-count .ui-icon{width:12px;height:12px}
 .shell .birthday-panel .roster-person .avatar{display:none}
}

/* Preserved product-specific controls and profile layout. */
@media(max-width:760px){
 .shell :is(.tabs,.section-tabs,.notification-filters){display:flex!important;width:100%;gap:4px;padding:4px}
 .shell :is(.tabs,.section-tabs,.notification-filters)>button{flex:1 1 auto;min-height:44px;padding:8px 5px;font-size:12.1px!important}
}

body:has(.shell) dialog .account-club-settings>summary{cursor:pointer;padding:12px 0;font-size:15px;font-weight:600;line-height:1.5}body:has(.shell) dialog .gym-settings{margin-top:12px;padding:16px;background:#f8faf6;border-color:#e4e9de}body:has(.shell) dialog .gym-settings h2{font-size:17px}

.file-picker{position:relative;display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:48px;padding:8px;border:1px dashed #cdd8c2;border-radius:7px;background:#f4f7ef;cursor:pointer}
.file-picker-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 14px;border:1px solid #dce4d4;border-radius:5px;background:white;color:#49622e;font-size:14px;font-weight:600;line-height:1.4}
.file-picker-button .ui-icon{width:18px;height:18px}
.file-picker-name{min-width:0;flex:1 1 120px;font-size:13px;line-height:1.5;color:#64717e;overflow-wrap:anywhere}
body .file-picker input[type=file]{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}
.file-picker:hover .file-picker-button{border-color:#8da577;background:#eef3e7}
.file-picker:focus-within{outline:2px solid #557437;outline-offset:3px}
@media(max-width:480px){.file-picker{gap:8px}.file-picker-name{flex-basis:100%;padding:0 4px}.file-picker-button{width:100%}}

.shell .due-filter{display:inline-flex;align-items:center;gap:8px;width:fit-content;max-width:100%;min-height:44px;padding:10px 12px;margin:0;border:1px solid #dfe4e9;border-radius:6px;background:white;color:var(--secondary);font-size:13.2px;line-height:1.4;font-weight:500;cursor:pointer}
.shell .due-filter input{flex:0 0 16px;min-width:16px;max-width:16px;padding:0;width:16px;height:16px;min-height:16px;margin:0;accent-color:#557437;flex-shrink:0}
.shell .due-filter .ui-icon{width:16px;height:16px;flex-shrink:0}
.shell .due-filter.is-active{background:#eef3e7;border-color:#bdd0ab;color:#49622e}
.shell .due-filter:focus-within{outline:2px solid #557437;outline-offset:2px}
@media(max-width:760px){.shell .due-filter{grid-column:1/-1;width:100%;font-size:13px;justify-content:flex-start}}

.shell .manager-overdue-info{max-width:900px;margin-bottom:22px;background:#f8faf6}
.shell .manager-overdue-info h2{display:flex;align-items:center;gap:9px}
.shell .manager-overdue-info h2 .ui-icon{color:#718864;width:18px;height:18px}
.shell .manager-overdue-info p{font-size:14px;line-height:1.65;margin:0 0 10px}
.shell .manager-overdue-info .sub{font-size:13px}
.shell .manager-overdue-destination{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:16px}
.shell .manager-overdue-destination p{margin:0;flex-basis:100%}

.shell .feedback-history{margin-top:22px;padding-top:18px;border-top:1px solid #dce5d4}
.shell .feedback-history>summary{font-size:15px;font-weight:600;cursor:pointer;min-height:40px;line-height:1.5}
.shell .feedback-history-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0 14px}
.shell .feedback-history-tools button{flex-shrink:0}
.shell .dashboard-feedback .feedback-item{background:white;box-shadow:none;padding:16px}
.shell .dashboard-feedback .feedback-body{margin:12px 0 0}
.shell .dashboard-feedback .feedback-history .empty{padding:20px 12px;font-size:14px}

.shell #news-form{display:grid;gap:26px;padding:28px}
.shell #news-form h2{margin:0;font-size:19px;line-height:1.4}
.shell #news-form>.field{display:grid;gap:10px;margin:0;min-width:0}
.shell #news-form>.field>label{margin:0;font-size:14px;font-weight:600;line-height:1.4}
.shell #news-form #news-text{min-height:148px;padding:14px;line-height:1.6;resize:vertical}
.shell #news-form .sub{margin:0;font-size:13px;line-height:1.55}
.shell #news-form #image-draft:empty,.shell #news-form #upload-status:empty{display:none}
.shell #news-form #image-draft{margin:2px 0 0;gap:12px}
.shell #news-form #upload-status{padding-top:2px}
.shell #news-form .compose-groups{padding-top:24px;border-top:1px solid var(--line)}
.shell .compose-group-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px;padding:10px;border:1px solid var(--line);border-radius:7px;background:#f7f9fb}
.shell #news-form .compose-group-list .checkbox{gap:10px;min-height:44px;margin:0;padding:9px 10px;font-size:14px;line-height:1.5;color:var(--ink);font-weight:400;border-radius:4px;cursor:pointer}
.shell #news-form .compose-group-list .checkbox:hover{background:white}
.shell #news-form .compose-group-list input{flex:0 0 18px;width:18px;height:18px;min-height:18px;min-width:18px;margin:0;padding:0;accent-color:#557437}
.shell .compose-group-list .checkbox span{min-width:0;overflow-wrap:anywhere}
.shell #news-form .compose-audience select{padding:12px 14px;min-height:46px}
.shell #news-form>button.primary{justify-self:start;min-height:46px;margin:0;padding:12px 20px}
.shell .compose-column>.footer-note{margin:14px 4px 0;font-size:12.1px;line-height:1.6}
@media(max-width:760px){
 .shell #news-form{padding:20px;gap:24px}
 .shell #news-form #news-text{min-height:144px}
 .shell .compose-group-list{grid-template-columns:minmax(0,1fr);padding:6px;gap:4px}
 .shell #news-form>button.primary{width:100%;justify-self:stretch}
}
@media(max-width:350px){.shell #news-form{padding:16px}}
/* A single profile sheet for managers and the service owner. */
body dialog:has(.account-profile){width:min(680px,calc(100% - 40px));padding:0;background:#f7f8f9;border-radius:4px}
body dialog:has(.account-profile)>.close{position:absolute;top:17px;right:17px;float:none;z-index:2;width:36px;height:36px;min-height:36px;border-radius:6px;background:#f5f6f8;color:#64717e}
.account-profile{min-width:0}
.account-profile .profile-header{display:flex;align-items:center;gap:14px;padding:26px 64px 24px 24px;background:white;border-bottom:1px solid #e7eaee}
.account-profile .profile-symbol{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:#557437;color:white}
.account-profile .profile-symbol .ui-icon{width:23px;height:23px}
.account-profile .profile-header h2{margin:0 0 4px;font-size:23px;line-height:1.3}
.account-profile .profile-header p{margin:0;color:#64717e;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.account-profile .profile-body{display:grid;gap:16px;padding:20px 24px}
.account-profile .profile-section{margin:0;padding:20px;border:0;border-radius:4px;background:white;min-width:0;box-shadow:0 3px 4px rgba(0,0,0,.03)}
.account-profile .profile-section h3{font-size:16px;line-height:1.4;margin:0 0 8px}
.account-profile .profile-section>.sub{margin:0;font-size:13px;line-height:1.6}
.account-profile .profile-section>summary{cursor:pointer;font-size:15px;font-weight:600;line-height:1.5;min-height:24px;padding:0}
.account-profile .profile-count{display:inline-flex;align-items:center;justify-content:center;margin-left:8px;padding:1px 7px;border-radius:4px;font-size:12px;background:#edf0f3;color:#64717e}
.account-profile .profile-section-body{padding-top:16px}
.account-profile .profile-current-club>.field{display:grid;gap:8px;margin:16px 0 0}
.account-profile .field>label{margin:0;font-size:13px;line-height:1.5}
.account-profile :is(input,select,textarea){font-size:15px;min-height:44px;border-radius:5px;border-color:#dfe4e9;background:white}
.account-profile select:disabled{color:#27313c;opacity:1;background:#f7f9fb}
.account-profile .account-club-settings{margin-top:18px;padding-top:14px;border-top:1px solid #e7eaee}
body dialog .account-profile .account-club-settings>summary{padding:0;font-size:14px;line-height:1.5;min-height:28px;cursor:pointer}
body dialog .account-profile .gym-settings{margin:16px 0 0;padding:0;background:transparent;border:0;box-shadow:none}
.account-profile .gym-settings>h2{display:none}
.account-profile .gym-settings .field{display:grid;gap:8px;margin:0 0 20px}
.account-profile .gym-settings .club-share{padding:16px;margin:0 0 20px}
.account-profile .gym-settings .club-share-url{font-size:22px}
.account-profile .gym-settings>button.primary{width:100%;min-height:46px}
.account-profile .profile-form{display:grid;gap:18px;margin:18px 0 0;padding:0;border:0}
.account-profile .profile-form .field{display:grid;gap:8px;margin:0}
.account-profile .profile-form>button{justify-self:start;min-height:44px}
.account-profile .profile-subsection{margin-top:16px;padding-top:14px;border-top:1px solid #edf0f3}
.account-profile .profile-subsection>summary{cursor:pointer;padding:3px 0;font-size:14px;line-height:1.5;color:#64717e}
.account-profile .account-club-row{padding:12px 0;gap:14px;border-color:#edf0f3;min-width:0}
.account-profile .account-club-row strong,.account-profile .account-club-row>span{min-width:0;overflow-wrap:anywhere;font-size:14px}
.account-profile .account-club-row button{font-size:13px;min-height:36px;flex-shrink:0}
.account-profile .account-messenger-status{display:grid;gap:0;margin:16px 0}
.account-profile .account-messenger-row{min-height:48px;padding:8px 0;gap:12px;border-bottom:1px solid #edf0f3}
.account-profile .account-messenger-row:last-child{border-bottom:0}
.account-profile .account-messenger-row>span{font-size:14px}
.account-profile .account-messenger-row button{font-size:13px;min-height:36px}
.account-profile .account-messenger-settings [data-messenger-auth-root]{margin-top:14px}
.account-profile .messenger-auth-buttons{gap:10px;margin-top:0}
.account-profile .messenger-auth-buttons button{min-height:44px;font-size:14px}
.account-profile #account-error:empty{display:none}
.account-profile #account-error{margin:0}
.account-profile .profile-footer{padding:16px 24px;background:white;border-top:1px solid #e7eaee}
.account-profile .profile-footer button{min-height:40px;padding:8px 0;margin:0;font-size:14px;border:0;background:transparent}
@media(max-width:760px){
 body dialog:has(.account-profile){width:100%;max-width:100%;border-radius:16px 16px 0 0;padding:0;max-height:92dvh}
 .account-profile .profile-header{padding:22px 60px 20px 20px;gap:12px}
 .account-profile .profile-header h2{font-size:22px}
 .account-profile .profile-body{padding:16px;gap:12px}
 .account-profile .profile-section{padding:18px}
 .account-profile .profile-footer{padding:14px 20px calc(14px + env(safe-area-inset-bottom))}
 .account-profile :is(input,select,textarea){font-size:16px}
 .account-profile .profile-form>button{width:100%}
}
@media(max-width:350px){.account-profile .profile-body{padding:12px}.account-profile .profile-section{padding:16px}.account-profile .gym-settings .club-share{padding:12px}.account-profile .gym-settings .club-share-url{font-size:20px}}

.account-profile select:disabled{appearance:none;-webkit-appearance:none;background-image:none}.account-profile .account-messenger-status{gap:8px}.account-profile .profile-footer button.primary{padding:10px 16px;background:#557437;color:white;border-radius:5px}

.account-profile .profile-header{position:sticky;top:0;z-index:3}.account-profile .profile-header>.profile-close{position:absolute;top:17px;right:17px;float:none;width:36px;height:36px;min-height:36px;padding:0;border:0;border-radius:6px;background:#f5f6f8;color:#64717e;font-size:20px}
body:has(.auth-shell){background:#f7f8f9;color:#313b5e}
.auth-shell .auth-card{border:0;border-radius:4px;box-shadow:0 3px 4px rgba(0,0,0,.03)}

#group-form .group-mode-hint{margin:10px 0 0;font-size:13px;line-height:1.6;color:#74788d}#group-form .group-mode-hint strong{display:block;color:#313b5e;font-weight:600}

/* Direct audience choice in the broadcast composer. */
.shell #news-form fieldset.compose-audience{border:0;padding:0;margin:0;min-width:0}
.shell #news-form .compose-audience legend{padding:0;margin:0 0 10px;font-size:14px;font-weight:600;line-height:1.4}
.shell .compose-audience-options{display:flex;flex-wrap:wrap;gap:8px}
.shell #news-form .compose-audience-option{position:relative;display:block;margin:0;cursor:pointer;font-size:14px;font-weight:600;line-height:1.4}
.shell #news-form .compose-audience-option input{position:absolute;opacity:0;width:1px;height:1px;min-width:0;min-height:0;margin:0}
.shell .compose-audience-option span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:11px 16px;border:1px solid var(--line);border-radius:5px;background:#f7f8f9;color:var(--ink)}
.shell .compose-audience-option input:checked+span{background:#557437;border-color:#557437;color:#fff}
.shell .compose-audience-option input:focus-visible+span{outline:2px solid #557437;outline-offset:3px}
.shell .compose-audience-option:hover span{border-color:#94a97c}
@media(max-width:350px){.shell .compose-audience-options{gap:6px}.shell .compose-audience-option span{padding:10px 11px}}

/* The same routes, labels and action order on phones and computers. */
.shell .club-nav .nav-secondary{display:none}
.shell .sidebar .club-nav .mobile-more-toggle{display:flex}
.shell .mobile-more-panel[hidden]{display:none}
.shell .mobile-more-panel button.selected{background:var(--accent-soft);color:var(--accent-ink)}
.shell .payment-register .payment-edit-icon{width:auto;min-height:42px;gap:7px;padding:8px 10px;white-space:nowrap;color:var(--accent-ink);font-size:13px}
.shell .mobile-payments .detail-line .student-name{min-width:0;text-align:left;font-size:14px;font-weight:500;line-height:1.5}
.shell .mobile-payments .detail-line>strong{flex-shrink:0}
@media(min-width:761px){
 .shell .club-nav .nav-secondary{display:none!important}
 .shell .sidebar .club-nav .mobile-more-toggle{display:flex}
 .shell .mobile-more-panel:not([hidden]){display:grid;gap:4px;padding:6px 12px 12px;margin:0 12px 12px;background:#f7f8f9;border-radius:4px}
 .shell .mobile-more-panel>p{display:none}
 .shell .mobile-more-panel button{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px;text-align:left;background:transparent;border:0;font-size:14px;font-weight:400}
 .shell .mobile-more-panel button:hover{background:var(--accent-soft)}
 .shell .mobile-more-panel .ui-icon{width:19px;height:19px;color:var(--secondary)}
 .shell.sidebar-collapsed .mobile-more-panel:not([hidden]){position:fixed;left:88px;top:210px;z-index:35;width:240px;margin:0;padding:8px;background:white;box-shadow:0 6px 24px #313b5e20}
 .shell .club-nav~.side-foot>.account-button{display:none}
}
@media(max-width:760px){
 .shell .admin-header{display:flex;align-items:center;min-height:62px;padding:10px 16px;background:#fff;border-bottom:1px solid var(--line)}
 .shell .admin-header>.admin-profile{display:none}
 .shell .admin-service-label{font-size:14px;color:var(--secondary)}
 .shell .admin-search{position:relative;display:flex;align-items:center;gap:10px;width:100%;min-width:0;padding:0 14px;border-radius:25px;background:#f7f8f9;color:var(--secondary)}
 .shell .admin-search>input{width:100%;height:40px;min-height:40px;border:0;background:transparent;padding:8px 0;font-size:16px}
 .shell .admin-search>input:focus{outline:0}
 .shell .admin-search:focus-within{box-shadow:0 0 0 2px #55743718}
 .shell .admin-search>button{display:none}
 .shell .admin-search>.ui-icon{width:17px;height:17px;flex-shrink:0}
 .shell .admin-search-results:not([hidden]){position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:30;display:grid;max-height:360px;overflow-y:auto;padding:6px;background:#fff;border-radius:4px;box-shadow:0 6px 24px #313b5e20}
 .shell .admin-search-results[hidden]{display:none}
 .shell .admin-search-results button{display:flex;align-items:center;gap:10px;padding:10px;border:0;text-align:left}
 .shell .admin-search-results button>span:not(.avatar){min-width:0}
 .shell .admin-search-results strong{display:block;font-size:14px;overflow-wrap:anywhere}
 .shell .admin-search-results small{display:block;margin-top:4px;font-size:12px;color:var(--secondary)}
 .shell .admin-search-results p{margin:8px;font-size:14px}
 .shell .heading{flex-wrap:wrap;align-items:center}
 .shell .heading>.actions>button:first-child{display:inline-flex}
 .shell .heading>.actions{display:flex;flex-wrap:wrap;gap:8px}
 .shell .heading>button{max-width:100%}
 .shell :is(.section-tabs,.notification-filters)>button{font-size:13.2px!important;padding:8px 10px}
 body:has(.shell) dialog .modal-footer{flex-direction:row;flex-wrap:wrap;gap:10px}
 body:has(.shell) dialog .modal-footer>button{width:auto;flex:1 1 120px;min-height:48px}
}
@media(max-width:760px){
 .shell :is(.tabs,.section-tabs,.notification-filters)>button{font-size:13.2px!important;min-width:0;white-space:normal;padding:8px 10px;line-height:1.4}
 .shell .toolbar .tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
 .shell .section-tabs{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .shell .section-tabs:has(>button:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Stable identity / status / action columns for every sign-in method. */
.account-profile .account-messenger-settings [data-messenger-auth-root]{margin-top:18px}
.account-profile .account-messenger-status{display:grid;gap:10px;margin:0}
.account-profile .account-messenger-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;min-height:78px;padding:14px;border:1px solid #eaedf1;border-radius:6px;background:#f7f8f9}
.account-profile .account-messenger-row:last-child{border-bottom:1px solid #eaedf1}
.account-profile .account-method-identity{display:flex;align-items:center;gap:12px;min-width:0}
.account-profile .account-method-identity>img{display:block;flex:0 0 32px;width:32px;height:32px;max-width:none;object-fit:contain;align-self:center}
.account-profile .account-method-copy{min-width:0}
.account-profile .account-method-copy strong{display:block;font-size:15px;line-height:1.4;font-weight:700;color:#313b5e}
.account-profile .account-method-copy small{display:block;margin-top:3px;font-size:12px;line-height:1.45;color:#74788d}
.account-profile .is-connected .account-method-copy small{color:#557437}
.account-profile .account-messenger-row .account-method-action{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:100px;min-height:40px;max-width:100%;padding:9px 12px;margin:0;font-size:13px;line-height:1.3;white-space:nowrap;border-radius:4px}
.account-profile .account-messenger-row .account-method-action:not(.quiet){background:white;border:1px solid #dfe4e9;color:#49622e}
.account-profile .account-messenger-row .account-method-action:not(.quiet):hover{background:#eef3e7;border-color:#a5b68f}
.account-profile .account-messenger-row .account-method-action.quiet{color:#74788d;background:transparent;border-color:transparent}
.account-profile .account-messenger-row .account-method-action:disabled{opacity:.5;cursor:not-allowed}
.account-profile .account-messenger-settings>.account-method-hint{margin-top:14px;font-size:12px;line-height:1.55}
.account-profile .messenger-auth-progress:empty{display:none}
@media(max-width:400px){
 .account-profile .account-messenger-row{padding:12px;gap:8px}
 .account-profile .account-method-identity{gap:9px}
 .account-profile .account-method-identity>img{flex-basis:28px;width:28px;height:28px}
 .account-profile .account-messenger-row .account-method-action{min-width:86px;padding:9px 8px;font-size:12px;min-height:44px}
 .account-profile .account-method-copy strong{font-size:14px}
}

/* Key data leads; supporting copy stays quieter. */
.shell{--ink:#263247;--secondary:#697386;--text-key:#1d2939}
.shell :is(h1,.gym-title){color:var(--text-key);font-weight:700}
.shell :is(.card>h2,.register-heading h2,.birthday-panel h2,.dashboard-group .group-heading h2,.group-row-title){color:var(--text-key);font-weight:700}
.shell .stat .value{color:var(--text-key);font-weight:700}
.shell .stat .label{color:#485367;font-weight:600}
.shell :is(.student-name,.panel .student-name,.mobile-payments .detail-line .student-name){color:var(--text-key);font-weight:700}
.shell .student-name:hover{color:var(--accent-ink)}
.shell :is(.student-card-person strong,.birthday-panel .roster-person strong,.admin-search-results strong){color:var(--text-key);font-weight:700}
.shell :is(.payment-register .payment-group-name,.payment-register .amount-cell,.mobile-payments .detail-line>strong){color:var(--text-key);font-weight:700}
.shell .panel th{color:#485367;font-weight:700;background:#fafbfc}
.shell .panel td{color:#344054}
.shell :is(.student-card-progress b,.expiry-date:not(.expiry-soon)){color:var(--text-key);font-weight:700}
.shell :is(.toolbar>label,.field>label,#news-form>.field>label,#news-form .compose-audience legend,.report-dates label){color:#485367}
.shell :is(.admin-profile strong,.mobile-account-text strong){color:var(--text-key);font-weight:700}
.shell :is(.mobile-more-panel button,.sidebar .nav button:not(.selected)){color:#566176}
.shell .sidebar .nav button.selected{color:var(--accent-ink)}
body:has(.shell) dialog{--ink:#263247;--secondary:#697386;--text-key:#1d2939}
body:has(.shell) dialog :is(h2,h3,.detail-line strong,.membership-card>strong){color:var(--text-key);font-weight:700}
body:has(.shell) dialog :is(.field>label,.coach-note>label){color:#485367}
.account-profile :is(.profile-header h2,.profile-section h3,.profile-section>summary,.account-club-row strong,.account-method-copy strong){color:#1d2939;font-weight:700}
.account-profile .profile-section>.sub{color:#697386}

/* Student cards share the page grid without a second inset container. */
@media(max-width:760px){
 .shell .students-register{background:transparent;box-shadow:none;overflow:visible}
 .shell .students-register .register-heading{border-radius:4px 4px 0 0}
 .shell .students-register .register-toolbar{border-radius:0 0 4px 4px;border-bottom:0}
 .shell .students-register #students-table{margin-top:12px}
 .shell .students-register #students-table .mobile-students{grid-template-columns:minmax(0,1fr);padding:0;background:transparent}
 .shell .students-register #students-table .student-card{width:100%;min-width:0;margin:0}
}

/* Desktop keeps every club destination visible; phones keep the compact menu. */
@media(min-width:761px){
 .shell,.shell.sidebar-collapsed{grid-template-columns:250px minmax(0,1fr)}
 .shell .sidebar,.shell.sidebar-collapsed .sidebar{overflow-y:auto;overflow-x:hidden}
 .shell .sidebar-toggle{display:none}
 .shell.sidebar-collapsed .sidebar-brand{justify-content:space-between;padding:0 16px 0 24px}
 .shell.sidebar-collapsed .sidebar-brand .logo{display:block}
 .shell.sidebar-collapsed .sidebar .nav-label{display:inline}
 .shell.sidebar-collapsed .sidebar .nav button{justify-content:flex-start;padding:10px 24px}
 .shell.sidebar-collapsed .sidebar .side-foot{display:block}
 .shell .sidebar .club-nav .nav-secondary{display:flex!important}
 .shell .sidebar .club-nav .mobile-more-toggle{display:none}
 .shell .sidebar .mobile-more-panel{display:none!important}
 .shell .club-nav~.side-foot>.account-button{display:block;text-align:left;min-height:44px}
}

.shell .sidebar .club-nav .nav-desktop-account{display:none}
@media(min-width:761px){
 .shell .sidebar .club-nav .nav-desktop-account{display:flex}
 .shell .club-nav~.side-foot>.account-button{display:none}
}
