:root{
  --ps-navy:#0b2f66;
  --ps-navy-2:#082654;
  --ps-blue:#1268e8;
  --ps-blue-2:#0b57c9;
  --ps-blue-soft:#eaf3ff;
  --ps-red:#e13a3e;
  --ps-red-soft:#fff0f1;
  --ps-green:#16915d;
  --ps-green-soft:#eaf8f1;
  --ps-orange:#d77a13;
  --ps-orange-soft:#fff5e8;
  --ps-purple:#7557c7;
  --ps-purple-soft:#f3efff;
  --ps-bg:#f3f7fc;
  --ps-panel:#ffffff;
  --ps-line:#dbe4f0;
  --ps-line-2:#e8eef6;
  --ps-text:#10213d;
  --ps-muted:#697891;
  --ps-sidebar:224px;
  --ps-shadow:0 8px 28px rgba(16,50,95,.07);
  --ps-radius:15px;
}

*{scrollbar-color:#b8c7da transparent;scrollbar-width:thin}
html{background:var(--ps-bg)}
body{font-family:"Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif!important;color:var(--ps-text)!important}
body.ps-themed{background:var(--ps-bg)!important;padding-left:var(--ps-sidebar);min-height:100vh;transition:padding-left .18s ease}
body.ps-themed.ps-sidebar-collapsed{padding-left:76px}
body.embedded{padding-left:0!important;background:#f7f9fc!important}
body.embedded .ps-sidebar{display:none!important}

.ps-sidebar{position:fixed;left:0;top:0;bottom:0;width:var(--ps-sidebar);z-index:5000;background:linear-gradient(180deg,var(--ps-navy) 0%,var(--ps-navy-2) 100%);color:#fff;display:flex;flex-direction:column;padding:18px 13px 14px;box-shadow:10px 0 30px rgba(7,33,72,.11);transition:width .18s ease;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#8aa9d3 transparent;-webkit-overflow-scrolling:touch}
.ps-sidebar-collapsed .ps-sidebar{width:76px;padding-left:10px;padding-right:10px}
.ps-brand{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:4px 8px 16px;border-bottom:1px solid rgba(255,255,255,.12)}
.ps-brand-logo{display:block;width:172px;max-width:100%;height:auto}
.ps-brand-mark{display:none;width:40px;height:auto}
.ps-brand-copy{min-width:0}.ps-brand-copy small{display:block;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#b9d3fa;padding-left:4px}
/* Do not shrink tall menus into the viewport: the whole left rail scrolls.
   This also keeps account/logout reachable on short screens and at large zoom. */
.ps-nav{display:flex;flex-direction:column;gap:5px;padding-top:16px;flex:1 0 auto;min-height:0}
.ps-brand-logo svg,.ps-brand-mark svg{display:block;width:100%;height:auto}
.ps-nav-label{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.15}
.ps-nav-section{flex:0 0 auto}
.ps-sidebar::-webkit-scrollbar{width:6px}
.ps-sidebar::-webkit-scrollbar-track{background:transparent}
.ps-sidebar::-webkit-scrollbar-thumb{background:#8aa9d3;border-radius:6px}
.ps-sidebar:focus-visible{outline:2px solid #b9d3fa;outline-offset:-2px}
.ps-sidebar :is(a,button):focus-visible{outline:2px solid #b9d3fa;outline-offset:-2px}
.ps-sidebar .ps-version{white-space:normal;overflow-wrap:anywhere}
.ps-sidebar .ps-user-copy{min-width:0}
.ps-sidebar .ps-user-copy strong{max-width:100%}
.ps-nav-section{padding:9px 10px 4px;color:#82ace3;font-size:10px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;white-space:nowrap}
.ps-nav a{flex:0 0 auto;display:flex;align-items:center;gap:11px;min-height:43px;padding:9px 10px;border-radius:11px;color:#dce9fb;text-decoration:none;font-size:13px;font-weight:650;white-space:nowrap;transition:.14s ease}
.ps-nav a:hover{background:rgba(255,255,255,.09);color:#fff;transform:translateX(1px)}
.ps-nav a.active{background:linear-gradient(90deg,#1676f3,#1268e8);color:#fff;box-shadow:0 8px 22px rgba(0,65,170,.28)}
.ps-nav .ps-icon{width:24px;height:24px;flex:0 0 24px;display:grid;place-items:center;border-radius:7px;background:rgba(255,255,255,.08);font-size:13px;font-weight:900}
.ps-nav a.active .ps-icon{background:rgba(255,255,255,.16)}
.ps-sidebar-foot{flex:0 0 auto;min-width:0;grid-template-columns:minmax(0,1fr);border-top:1px solid rgba(255,255,255,.12);padding:12px 7px 0;display:grid;gap:8px;white-space:nowrap}
.ps-user{display:flex;gap:9px;align-items:center;padding:7px 5px}.ps-avatar{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--ps-navy);font-weight:900;font-size:12px}.ps-user-copy strong{font-size:12px;display:block;max-width:145px;overflow:hidden;text-overflow:ellipsis}.ps-user-copy small{font-size:10px;color:#9fc0eb}.ps-sidebar-tools{display:flex;gap:6px}.ps-side-btn{appearance:none;border:1px solid rgba(255,255,255,.15)!important;background:rgba(255,255,255,.07)!important;color:#dce9fb!important;border-radius:9px!important;min-height:32px!important;margin:0!important;padding:6px 8px!important;font-size:11px!important;width:auto!important;flex:1}.ps-side-btn:hover{background:rgba(255,255,255,.14)!important}.ps-version{font-size:10px;color:#749dd0;padding:0 4px}
.ps-sidebar-collapsed .ps-brand-copy,.ps-sidebar-collapsed .ps-nav-section,.ps-sidebar-collapsed .ps-nav-label,.ps-sidebar-collapsed .ps-user-copy,.ps-sidebar-collapsed .ps-version,.ps-sidebar-collapsed .ps-brand-logo{display:none}.ps-sidebar-collapsed .ps-brand{padding-left:6px;padding-right:6px;align-items:center}.ps-sidebar-collapsed .ps-brand-mark{display:block}.ps-sidebar-collapsed .ps-nav a{justify-content:center;padding-left:8px;padding-right:8px}.ps-sidebar-collapsed .ps-sidebar-tools{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;min-width:0}.ps-sidebar-collapsed .ps-side-btn{display:block;min-width:0;width:100%!important;max-width:100%;margin-top:0!important;font-size:0!important}.ps-sidebar-collapsed .ps-side-btn:before{content:"⇥";font-size:15px}

/* Top bars become light and calm instead of black. */
body.ps-themed>header{position:sticky;top:0;z-index:900;background:rgba(255,255,255,.96)!important;color:var(--ps-text)!important;border-bottom:1px solid var(--ps-line)!important;box-shadow:0 4px 18px rgba(18,65,125,.04)!important;padding:13px 22px!important;backdrop-filter:blur(10px);min-height:64px}
body.ps-themed>header b{color:var(--ps-navy)!important;font-weight:850!important;letter-spacing:-.015em}
body.ps-themed>header span{color:var(--ps-muted)!important;opacity:1!important}
body.ps-themed>header a,body.ps-themed>header .header-link,body.ps-themed>header .back,body.ps-themed>header .nav a{background:#f7faff!important;color:var(--ps-navy)!important;border:1px solid var(--ps-line)!important;box-shadow:none!important}
body.ps-themed>header a:hover,body.ps-themed>header .header-link:hover,body.ps-themed>header .back:hover{background:var(--ps-blue-soft)!important;border-color:#bdd6fb!important}

body.ps-themed main{max-width:1500px!important;margin:18px auto!important;padding:0 22px 30px!important}
body.ps-themed.ps-journal main{max-width:none!important;margin:0!important;padding:16px 18px 18px!important}
body.embedded main{margin:0!important;padding:10px!important;max-width:none!important}

/* Global controls */
body.ps-themed input,body.ps-themed select,body.ps-themed textarea{border:1px solid #cdd9e8!important;border-radius:10px!important;background:#fff!important;color:var(--ps-text)!important;box-shadow:0 1px 2px rgba(17,50,95,.02);outline:none;transition:border-color .14s,box-shadow .14s}
body.ps-themed input:focus,body.ps-themed select:focus,body.ps-themed textarea:focus{border-color:#6da6ef!important;box-shadow:0 0 0 3px rgba(18,104,232,.10)!important}
body.ps-themed label{color:#61728c!important;font-weight:650}
body.ps-themed button{background:linear-gradient(180deg,#1974ef,#0f63df)!important;border-color:#0f63df!important;color:#fff!important;border-radius:10px!important;box-shadow:0 5px 13px rgba(18,104,232,.12);transition:transform .1s,box-shadow .12s,filter .12s}
body.ps-themed button:hover{filter:brightness(.98);box-shadow:0 7px 18px rgba(18,104,232,.17);transform:translateY(-1px)}
body.ps-themed button:active{transform:translateY(0)}
body.ps-themed .secondary,body.ps-themed .schedule-btn,body.ps-themed .former-btn,body.ps-themed .today-btn{background:#fff!important;color:var(--ps-navy)!important;border:1px solid #cdd9e8!important;box-shadow:none}
body.ps-themed .danger-btn,body.ps-themed button.danger,body.ps-themed .member-action{background:#fff!important;color:#bd292f!important;border-color:#efc5c7!important;box-shadow:none!important}
body.ps-themed .member-action.restore{color:var(--ps-green)!important;border-color:#b8ddca!important}

/* Reusable cards and panels */
body.ps-themed .card,body.ps-themed .toolbar,body.ps-themed .subtoolbar,body.ps-themed .journal-wrap,body.ps-themed .formbox,body.ps-themed .buybox,body.ps-themed .account,body.ps-themed .coach-card,body.ps-themed .archive-card{border-color:var(--ps-line)!important;background:var(--ps-panel)!important;box-shadow:var(--ps-shadow)!important}
body.ps-themed .card{border-radius:var(--ps-radius)!important}
body.ps-themed h1,body.ps-themed h2,body.ps-themed h3{color:var(--ps-navy)!important;letter-spacing:-.012em}
body.ps-themed .muted,body.ps-themed .hint,body.ps-themed .period-hint{color:var(--ps-muted)!important}
body.ps-themed .pill{background:var(--ps-blue-soft)!important;color:#2c5d9d!important}
body.ps-themed .note{background:#f5f9ff!important;color:#47617e!important;border:1px solid #e0ebf8!important}

/* Journal - keep the dense square-cell workflow. */
body.ps-journal .toolbar{border-radius:14px!important;padding:12px!important;grid-template-columns:170px 210px minmax(250px,1fr) 132px 132px 110px 150px!important;gap:9px!important;box-shadow:0 7px 22px rgba(20,67,126,.055)!important}
body.ps-journal .toolbar label{font-size:11px!important;margin-bottom:4px!important}
body.ps-journal .toolbar select,body.ps-journal .toolbar input,body.ps-journal .toolbar button{min-height:38px!important;padding:8px 9px!important;font-size:13px!important}
body.ps-journal .subtoolbar{margin-top:9px!important;border-radius:12px!important;padding:8px 10px!important;gap:7px!important;box-shadow:none!important}
body.ps-journal .subtoolbar button{min-height:34px!important;padding:7px 10px!important;font-size:12px!important}
body.ps-journal .legend{margin:8px 2px!important;padding:7px 9px;border-radius:10px;background:rgba(255,255,255,.72);border:1px solid var(--ps-line-2)}
body.ps-journal .legend span{color:#51617a!important}
body.ps-journal .sw{border-color:#c8d3e1!important}
body.ps-journal .journal-wrap{border-radius:13px!important;max-height:calc(100vh - 306px)!important;box-shadow:0 8px 24px rgba(23,63,113,.06)!important;background:#fff!important}
body.ps-journal table{font-size:12.5px!important}
body.ps-journal th,body.ps-journal td{border-right:1px solid #d9e2ee!important;border-bottom:1px solid #d9e2ee!important;height:46px!important}
body.ps-journal thead th{height:var(--journal-header-height)!important;background:#f4f8fd!important;color:#263b59!important}
body.ps-journal thead th:first-child{width:var(--journal-athlete-col)!important;min-width:var(--journal-athlete-col)!important;max-width:var(--journal-athlete-col)!important;background:#edf4fd!important;color:var(--ps-navy)!important;padding:0 11px!important}
body.ps-journal tbody td:first-child{width:var(--journal-athlete-col)!important;min-width:var(--journal-athlete-col)!important;max-width:var(--journal-athlete-col)!important;padding:0 10px!important;background:#fff!important;box-shadow:5px 0 10px rgba(28,62,108,.035)}
body.ps-journal .date-head{font-size:12px!important}.ps-journal .date-head small{color:#74839a!important;font-size:10px}.ps-journal .date-head .time{font-size:9px!important;color:#8490a2!important}
body.ps-journal .cell{height:46px!important;font-size:21px!important;color:#13294a!important;transition:background .08s,box-shadow .08s!important}
body.ps-journal .cell:hover{outline:2px solid var(--ps-blue)!important;outline-offset:-2px!important;filter:none!important;z-index:2}
body.ps-journal .cell.active,body.ps-journal .cell.blank,body.ps-journal .cell.future{background:#fff!important}
body.ps-journal .cell.inactive{background:#fff0f1!important}
body.ps-journal .cell.purchase{background:#dff5e8!important}
body.ps-journal .cell.frozen{background:#e6f1ff!important}
body.ps-journal .cell.today-col{box-shadow:inset 2px 0 #bdd7fb,inset -2px 0 #bdd7fb;background-image:linear-gradient(rgba(234,243,255,.45),rgba(234,243,255,.45))!important}
body.ps-journal .today-head{background:#e4f0ff!important;color:#0b5ccf!important;box-shadow:inset 0 -3px 0 var(--ps-blue)!important}
body.ps-journal .athlete-cell{grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important}
body.ps-journal .athlete-name{color:#132a4b!important;font-size:12.5px!important}.ps-journal .athlete-meta{font-size:10px!important;color:#75839a!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}.ps-journal .sub-count{font-size:14px!important;color:#1e3657}.ps-journal .sub-count small{font-size:9px!important;color:#8190a6!important;line-height:1.25}
body.ps-journal .medical-chip{font-size:9px!important;padding:2px 5px!important}
body.ps-journal .statusline{background:#fff;border:1px solid var(--ps-line-2);padding:7px 10px;border-radius:9px;color:#6b7b92!important;margin-top:7px!important}
body.ps-journal .menu{border-color:var(--ps-line)!important;box-shadow:0 18px 45px rgba(18,52,98,.19)!important}.ps-journal .menu button{background:#fff!important;color:var(--ps-text)!important;box-shadow:none!important}.ps-journal .menu button:hover{background:var(--ps-blue-soft)!important}
body.ps-journal .notice{border:1px solid #f3dec0!important;background:#fff9ef!important}

.journal-summary{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:8px;margin:9px 0}.journal-kpi{background:#fff;border:1px solid var(--ps-line);border-radius:12px;padding:9px 11px;display:flex;align-items:center;gap:9px;box-shadow:0 5px 17px rgba(20,67,126,.045)}.journal-kpi-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:var(--ps-blue-soft);color:var(--ps-blue);font-weight:900}.journal-kpi.red .journal-kpi-icon{background:var(--ps-red-soft);color:var(--ps-red)}.journal-kpi.orange .journal-kpi-icon{background:var(--ps-orange-soft);color:var(--ps-orange)}.journal-kpi.green .journal-kpi-icon{background:var(--ps-green-soft);color:var(--ps-green)}.journal-kpi b{font-size:18px;color:#183153;display:block;line-height:1}.journal-kpi span{display:block;font-size:10px;color:#7a879b;margin-top:3px}.journal-kpi-sub{font-size:9px!important;color:#9aa5b4!important;margin-top:2px!important}

/* Management */
body.ps-manage main{max-width:1460px!important}.ps-manage .grid{gap:14px!important}.ps-manage .card{padding:17px!important}.ps-manage .card h2{font-size:17px!important;margin-bottom:12px!important}.ps-manage .card h2:before{content:"";display:inline-block;width:5px;height:18px;border-radius:5px;background:var(--ps-blue);vertical-align:-3px;margin-right:8px}.ps-manage .scroll-list,.ps-manage .client-list{border-color:var(--ps-line)!important;background:#fbfdff!important}.ps-manage .coach-card{box-shadow:none!important;background:#f9fbfe!important}.ps-manage .coach-group{border-color:#e3ebf5!important}.ps-manage .staff-section-title{background:#edf4fd!important;color:#335b8f!important;border-color:#d8e5f4!important}.ps-manage .staff-badge{background:var(--ps-blue-soft)!important;color:#265c9e!important}.ps-manage .staff-badge.choreo{background:#fff0f5!important;color:#b43a68!important}.ps-manage .archive-scroll{max-height:420px!important}.ps-manage details{border-color:var(--ps-line-2)!important}.ps-manage summary{color:#365a88!important;font-weight:700}.ps-manage .workspace-head,.ps-manage .edit-head{background:var(--ps-navy)!important}.ps-manage .workspace-panel,.ps-manage .edit-modal{border-radius:16px!important}.ps-manage .day:has(input:checked){background:var(--ps-blue)!important;border-color:var(--ps-blue)!important}.ps-manage .schedule-slot.active{border-color:#99bff0!important;box-shadow:0 0 0 2px rgba(18,104,232,.05)}

/* Payroll */
body.ps-payroll main{max-width:1460px!important}.ps-payroll .grid{grid-template-columns:minmax(360px,.9fr) minmax(620px,1.55fr)!important;gap:14px!important}.ps-payroll .card{padding:17px!important}.ps-payroll .metric{background:#f5f9ff!important;border:1px solid #e2ebf7}.ps-payroll .rate-row{border-color:#e2eaf4!important}.ps-payroll .coach-card{box-shadow:none!important;background:#f9fbfe!important}.ps-payroll .coach-total-row.top{background:#f0faf5!important;border-color:#cdebdc!important}.ps-payroll .amount{color:var(--ps-green)!important}.ps-payroll th{background:#f1f6fc!important;color:#425a78!important}.ps-payroll .table-wrap{border-color:var(--ps-line)!important}

/* Trainees */
body.ps-trainees main{max-width:1480px!important}.ps-trainees .card{border-color:var(--ps-line)!important;box-shadow:var(--ps-shadow)!important}.ps-trainees .tab.active,.ps-trainees .tabs button.active{background:var(--ps-blue)!important;color:#fff!important;border-color:var(--ps-blue)!important}.ps-trainees iframe{border-color:var(--ps-line)!important;background:#fff!important}.ps-trainees .assignment,.ps-trainees .trainee-card{border-color:var(--ps-line)!important;background:#fbfdff!important}

/* Athlete */
body.ps-athlete main{max-width:1420px!important}.ps-athlete .metric,.ps-athlete .profile-item{background:#f5f9ff!important;border:1px solid #e4edf8}.ps-athlete .table-wrap{border-color:var(--ps-line)!important}.ps-athlete th{background:#f1f6fc!important;color:#425a78!important}.ps-athlete .sub,.ps-athlete .formbox,.ps-athlete .buybox{border-color:var(--ps-line)!important}.ps-athlete .medical-status{border-radius:11px!important}

/* Access */
body.ps-access main{max-width:1120px!important}.ps-access .grid{grid-template-columns:390px 1fr!important;gap:14px!important}.ps-access .account{box-shadow:none!important;background:#fbfdff!important}

/* Login keeps brand identity but no sidebar. */
body.ps-login{background:radial-gradient(circle at 15% 15%,#e8f2ff 0,#f4f8fd 32%,#f7f9fc 62%,#eef4fb 100%)!important;position:relative;overflow:hidden}
body.ps-login:before,body.ps-login:after{content:"";position:fixed;border-radius:999px;filter:blur(2px);opacity:.8;pointer-events:none}.ps-login:before{width:420px;height:420px;left:-220px;bottom:-140px;background:linear-gradient(145deg,#0d63dd,#0b2f66)}.ps-login:after{width:220px;height:20px;right:-30px;top:90px;background:var(--ps-red);transform:rotate(-18deg)}
body.ps-login .card{position:relative;z-index:2;border-color:#d8e3f1!important;border-radius:20px!important;box-shadow:0 25px 70px rgba(10,45,92,.16)!important;padding:30px!important}.ps-login .brand{color:var(--ps-blue)!important;letter-spacing:.08em}.ps-login h1{color:var(--ps-navy)!important}.ps-login button{background:linear-gradient(180deg,#1974ef,#0f63df)!important}

@media(max-width:1180px){
  /* Keep the desktop sidebar geometry identical on every section. */
  body.ps-journal .toolbar{grid-template-columns:1fr 1fr 1.4fr 1fr 1fr!important}.ps-journal .toolbar>div:nth-last-child(-n+2){grid-column:auto}.journal-summary{grid-template-columns:repeat(3,1fr)}
  .ps-payroll .grid{grid-template-columns:1fr!important}
}
@media(max-width:860px){
  body.ps-themed{padding-left:0}.ps-sidebar{display:none}.journal-summary{grid-template-columns:repeat(2,1fr)}
  body.ps-themed>header{padding:10px 12px!important}.ps-journal .toolbar{grid-template-columns:1fr 1fr!important}.ps-journal .toolbar>div:nth-child(3){grid-column:1/-1}.ps-journal .journal-wrap{max-height:calc(100vh - 400px)!important}
}
body.embedded .journal-summary{display:none!important}

/* Statistics */
body.ps-statistics main{max-width:1500px!important}
body.ps-statistics .stats-toolbar,body.ps-statistics .kpi,body.ps-statistics .card{border-color:var(--ps-line)!important;box-shadow:var(--ps-shadow)!important}
body.ps-statistics .primary{background:linear-gradient(180deg,#1974ef,#0f63df)!important;color:#fff!important}
body.ps-statistics .preset{background:#fff!important;color:var(--ps-navy)!important;border-color:#cdd9e8!important;box-shadow:none!important}
body.ps-statistics .preset.active{background:var(--ps-blue-soft)!important;color:var(--ps-blue-2)!important;border-color:#9ec4f7!important}


/* Payment collection touch cells: override global themed button fill. */
body.ps-collections .touch-btn{background:#fff!important;color:transparent!important;border:1px solid #d4deea!important;box-shadow:none!important;transform:none!important;filter:none!important}
body.ps-collections .touch-btn.ready{background:#fff!important;color:transparent!important;border-color:#1268e8!important;box-shadow:inset 0 0 0 1px #1268e8!important}
body.ps-collections .touch-btn.ready:hover{background:#f7fbff!important;border-color:#0f63df!important;box-shadow:inset 0 0 0 1px #0f63df,0 0 0 2px rgba(18,104,232,.08)!important}
body.ps-collections .touch-btn.marked,body.ps-collections .touch-btn.allow{background:#eaf8f0!important;color:#148454!important;border-color:#84d1a8!important;box-shadow:none!important}
body.ps-collections .touch-btn.deny{background:#fff0f1!important;color:#c62f35!important;border-color:#ef9ba0!important;box-shadow:none!important}
body.ps-collections .touch-btn:disabled{background:#fff!important;color:transparent!important;border-color:#e8edf3!important;box-shadow:none!important}

/* Management workspace overlays must respect the persistent sidebar.
   Otherwise the sticky athlete-name column in archived journals is hidden under navigation. */
body.ps-manage .workspace-overlay{left:var(--ps-sidebar)!important}
body.ps-manage.ps-sidebar-collapsed .workspace-overlay{left:76px!important}
body.ps-manage .edit-overlay{left:var(--ps-sidebar)!important}
body.ps-manage.ps-sidebar-collapsed .edit-overlay{left:76px!important}
@media(max-width:860px){
  body.ps-manage .workspace-overlay,body.ps-manage .edit-overlay{left:0!important}
}

/* v0.9.51 — one horizontal coordinate system for every page.
   The persistent sidebar must never create page-level horizontal scrolling.
   Wide journals/tables keep their own internal scroll containers. */
html,body{max-width:100%;overflow-x:hidden!important}
body.ps-themed{width:auto!important;min-width:0!important}
body.ps-themed>header,body.ps-themed>main{width:auto!important;min-width:0!important;box-sizing:border-box!important}
body.ps-themed main>*{min-width:0}
body.ps-themed .card,body.ps-themed .grid,body.ps-themed .row,body.ps-themed .summary,body.ps-themed .profile-grid,body.ps-themed .subscription-layout,body.ps-themed .wallet-layout,body.ps-themed .medical-layout,body.ps-themed .freeze-grid{min-width:0}
body.ps-themed .card>*,body.ps-themed .grid>*,body.ps-themed .row>*,body.ps-themed .summary>*,body.ps-themed .profile-grid>*,body.ps-themed .subscription-layout>*,body.ps-themed .wallet-layout>*,body.ps-themed .medical-layout>*,body.ps-themed .freeze-grid>*{min-width:0}

/* Management overlays are viewport panels to the right of the sidebar.
   Use explicit right/top/bottom coordinates instead of inset + left override. */
body.ps-manage .workspace-overlay,body.ps-manage .edit-overlay{
  left:var(--ps-sidebar)!important;
  right:0!important;
  top:0!important;
  bottom:0!important;
  width:auto!important;
  max-width:none!important;
  box-sizing:border-box!important;
}
body.ps-manage.ps-sidebar-collapsed .workspace-overlay,body.ps-manage.ps-sidebar-collapsed .edit-overlay{left:76px!important}
body.ps-manage .workspace-panel,body.ps-manage .edit-modal{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
body.ps-manage .workspace-frame{display:block;min-width:0!important;max-width:100%!important}

@media(max-width:860px){
  body.ps-manage .workspace-overlay,body.ps-manage .edit-overlay{left:0!important}
}

/* v0.9.52 — unified geometry for every full-screen/modal window. */
body.embedded{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding-left:0!important;
  overflow-x:hidden!important;
}
body.embedded main{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:14px 16px 24px!important;
  transform:none!important;
}
body.embedded main>*{min-width:0!important;max-width:100%!important}
body.embedded .table-wrap,body.embedded .journal-wrap{max-width:100%!important;overflow:auto!important}

/* Modal backdrops on regular CRM pages are centered in the working area, not
   underneath the persistent navigation. */
@media(min-width:861px){
  body.ps-themed .modal-bg,body.ps-themed .modal-backdrop{
    left:var(--ps-sidebar)!important;
    right:0!important;
    top:0!important;
    bottom:0!important;
    width:auto!important;
    max-width:none!important;
    box-sizing:border-box!important;
  }
  body.ps-themed.ps-sidebar-collapsed .modal-bg,body.ps-themed.ps-sidebar-collapsed .modal-backdrop{left:76px!important}
}
body.ps-themed .modal,body.ps-themed .edit-modal{
  min-width:0!important;
  max-width:calc(100% - 32px)!important;
  box-sizing:border-box!important;
}

/* The management iframe must never inherit or keep a horizontal offset from a
   previously opened wide journal. */
body.ps-manage .workspace-panel{min-width:0!important;max-width:100%!important;overflow:hidden!important}
body.ps-manage .workspace-frame{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important}


/* Trials 20260912.4: pending cards stay white; results keep their status colours. */
/* Scoped to the redesigned trials page: no journal, leads or payment styling changes. */
body[data-trials-ux] .state-booked {
  --status-bg: #ffffff;
  --status-line: #d5dae3;
}
body[data-trials-ux] .state-attended {
  --status-color: #27824f;
  --status-bg: #edf9f0;
  --status-ink: #166534;
  --status-line: #c4e1ce;
}
/* Legend reflects the white pending card rather than suggesting a violet fill. */
body[data-trials-ux] .trials-legend .state-booked .legend-dot {
  background: #ffffff;
  border: 1px solid #aab4c2;
  border-radius: 3px;
}

/* Sidebar labels use one global geometry on every workspace. */

/* v0.9.55-ui.20260913.32 — immutable desktop sidebar geometry.
   Page-local CSS must never change navigation width, row height or line spacing. */
@media (min-width:861px){
  :root{--ps-sidebar:240px}
  body.ps-themed{padding-left:240px!important;transition:none!important}
  body.ps-themed.ps-sidebar-collapsed{padding-left:76px!important}
  body.ps-themed .ps-sidebar{
    width:240px!important;
    min-width:240px!important;
    max-width:240px!important;
    padding:18px 13px 14px!important;
    box-sizing:border-box!important;
    transition:none!important;
  }
  body.ps-themed.ps-sidebar-collapsed .ps-sidebar{
    width:76px!important;
    min-width:76px!important;
    max-width:76px!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }
  body.ps-themed .ps-nav{gap:5px!important;padding-top:16px!important}
  body.ps-themed .ps-nav-section{padding:9px 10px 4px!important;font-size:10px!important;line-height:12px!important}
  body.ps-themed .ps-nav a{
    width:100%!important;
    height:43px!important;
    min-height:43px!important;
    max-height:43px!important;
    padding:0 10px!important;
    gap:11px!important;
    font-size:13px!important;
    line-height:1!important;
    box-sizing:border-box!important;
    transform:none!important;
  }
  body.ps-themed .ps-nav a:hover{transform:none!important}
  body.ps-themed .ps-nav .ps-icon{
    width:24px!important;
    min-width:24px!important;
    max-width:24px!important;
    height:24px!important;
    min-height:24px!important;
    max-height:24px!important;
    flex:0 0 24px!important;
    font-size:13px!important;
    line-height:24px!important;
  }
  body.ps-themed .ps-nav-label{
    display:block!important;
    min-width:0!important;
    font-size:13px!important;
    line-height:16px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.ps-themed .ps-brand{padding:4px 8px 16px!important;gap:8px!important}
  body.ps-themed .ps-brand-logo{width:172px!important;max-width:172px!important}
  body.ps-themed .ps-sidebar-foot{padding:12px 7px 0!important;gap:8px!important}
}

/* v0.9.55-ui.20260913.34 — unified CRM visual system.
   One control geometry and one modal/card language across all workspaces.
   Business logic and status semantics stay page-specific. */
:root{
  --ps-ui-control-h:40px;
  --ps-ui-control-radius:10px;
  --ps-ui-card-radius:16px;
  --ps-ui-modal-radius:18px;
  --ps-ui-border:#d8e4f1;
  --ps-ui-border-strong:#c7d7e9;
  --ps-ui-surface:#ffffff;
  --ps-ui-surface-soft:#f7faff;
  --ps-ui-shadow:0 8px 28px rgba(16,50,95,.065);
  --ps-ui-shadow-modal:0 26px 75px rgba(8,32,72,.24);
}

/* ---------- common form geometry ---------- */
body.ps-themed :is(input,select,textarea){
  box-sizing:border-box!important;
  border:1px solid var(--ps-ui-border-strong)!important;
  border-radius:var(--ps-ui-control-radius)!important;
  background:#fff!important;
  color:var(--ps-text)!important;
  font-family:inherit!important;
  font-size:13px!important;
  box-shadow:0 1px 2px rgba(17,50,95,.02)!important;
}
body.ps-themed :is(input:not([type=checkbox]):not([type=radio]),select){
  min-height:var(--ps-ui-control-h)!important;
  padding:8px 11px!important;
}
body.ps-themed textarea{padding:10px 11px!important;min-height:82px!important;line-height:1.45!important;resize:vertical}
body.ps-themed :is(input,select,textarea):focus{
  border-color:#6da6ef!important;
  box-shadow:0 0 0 3px rgba(18,104,232,.10)!important;
  outline:0!important;
}
body.ps-themed label{font-size:12px!important;color:#61728c!important;font-weight:700!important}

/* ---------- one primary button geometry everywhere ---------- */
body.ps-themed button:where(:not(.ps-side-btn):not(.touch-btn):not(.mr-kpi):not(.card-main):not(.free-slot):not(.slot):not(.stat-card):not(.visit-tile):not(.result-link)){
  min-height:var(--ps-ui-control-h)!important;
  padding:8px 14px!important;
  border-radius:var(--ps-ui-control-radius)!important;
  border:1px solid var(--ps-blue)!important;
  background:linear-gradient(180deg,#1974ef,#0f63df)!important;
  color:#fff!important;
  font-family:inherit!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1.15!important;
  box-shadow:0 5px 13px rgba(18,104,232,.12)!important;
  cursor:pointer!important;
  transform:none!important;
  transition:background .13s ease,border-color .13s ease,box-shadow .13s ease,opacity .13s ease!important;
}
body.ps-themed button:where(:not(.ps-side-btn):not(.touch-btn):not(.mr-kpi):not(.card-main):not(.free-slot):not(.slot):not(.stat-card):not(.visit-tile):not(.result-link)):hover{
  background:#0f63df!important;
  border-color:#0b5bcf!important;
  box-shadow:0 7px 18px rgba(18,104,232,.17)!important;
  filter:none!important;
  transform:none!important;
}
body.ps-themed button:disabled{opacity:.5!important;cursor:not-allowed!important;box-shadow:none!important;transform:none!important}

/* Secondary / navigation buttons — same geometry, calm white surface. */
body.ps-themed :is(
  button.secondary,button.light,button.soft-btn,button.mr-secondary,button.btn-light,
  button.schedule-btn,button.former-btn,button.today-btn,button.ghost,
  button.preset,button.mode-btn:not(.active),button.plan-mode-tab:not(.active),
  .tabs button:not(.active),.dossier-tabs button:not([aria-selected="true"])
){
  background:#fff!important;
  color:var(--ps-navy)!important;
  border-color:var(--ps-ui-border-strong)!important;
  box-shadow:none!important;
}
body.ps-themed :is(
  button.secondary,button.light,button.soft-btn,button.mr-secondary,button.btn-light,
  button.schedule-btn,button.former-btn,button.today-btn,button.ghost,
  button.preset,button.mode-btn:not(.active),button.plan-mode-tab:not(.active),
  .tabs button:not(.active),.dossier-tabs button:not([aria-selected="true"])
):hover{
  background:var(--ps-blue-soft)!important;
  border-color:#a9c9f4!important;
  color:#0b57c9!important;
  box-shadow:none!important;
}

/* Active tabs use exactly the same blue primary language. */
body.ps-themed :is(.tabs button.active,.plan-mode-tab.active,.mode-btn.active,.preset.active){
  background:var(--ps-blue)!important;
  color:#fff!important;
  border-color:var(--ps-blue)!important;
  box-shadow:0 5px 13px rgba(18,104,232,.14)!important;
}

/* Destructive actions keep the same shape, but never masquerade as primary actions. */
body.ps-themed :is(button.danger,button.danger-btn,button.btn-danger,.member-action:not(.restore)){
  background:#fff!important;
  color:#bd292f!important;
  border-color:#efc5c7!important;
  box-shadow:none!important;
}
body.ps-themed :is(button.danger,button.danger-btn,button.btn-danger,.member-action:not(.restore)):hover{
  background:var(--ps-red-soft)!important;
  color:#ad2329!important;
  border-color:#e7aeb1!important;
  box-shadow:none!important;
}
body.ps-themed .member-action.restore{
  background:#fff!important;color:var(--ps-green)!important;border-color:#b8ddca!important;box-shadow:none!important
}

/* Compact action rows: same design, smaller intentional size. */
body.ps-themed :is(.actions,.row-actions,.card-actions,.confirmation-buttons,.dialog-actions,.modal-actions,.drawer-actions,.client-dialog-footer){gap:7px!important}
body.ps-themed :is(.actions,.row-actions,.card-actions,.confirmation-buttons) button:not(.touch-btn):not(.card-main){
  min-height:32px!important;
  padding:6px 10px!important;
  border-radius:8px!important;
  font-size:11.5px!important;
}

/* Icon-only close/refresh buttons use one square size. */
body.ps-themed :is(button.close-edit,button.icon-btn,button.more-button,[data-close]){
  min-width:36px!important;
  width:36px!important;
  height:36px!important;
  min-height:36px!important;
  padding:0!important;
  border-radius:10px!important;
}

/* ---------- status buttons retain semantic colours, but share geometry ---------- */
body.ps-trials[data-trials-ux] .trials-button{
  min-height:40px!important;border-radius:10px!important;padding:8px 13px!important;font-size:13px!important;font-weight:800!important;box-shadow:none!important;transform:none!important
}
body.ps-trials[data-trials-ux] .trials-button:not(.primary):not(.positive):not(.negative){background:#fff!important;color:#234369!important;border-color:var(--ps-ui-border-strong)!important}
body.ps-trials[data-trials-ux] .trials-button.primary{background:var(--ps-blue)!important;color:#fff!important;border-color:var(--ps-blue)!important}
body.ps-trials[data-trials-ux] .trials-button.positive{background:#ecfaf6!important;color:#0b7161!important;border-color:#acd9cb!important;background-image:none!important}
body.ps-trials[data-trials-ux] .trials-button.negative{background:#fff5f5!important;color:#ae2c3a!important;border-color:#eac4c8!important;background-image:none!important}
body.ps-trials[data-trials-ux] .card-actions .trials-button,
body.ps-trials[data-trials-ux] .confirmation-buttons .trials-button{min-height:32px!important;padding:6px 9px!important;font-size:11.5px!important;border-radius:8px!important}

/* Medical registry controls are filters, not primary actions. */
body.ps-medical :is(.mr-quick button,.mr-category-buttons button,.mr-secondary,.mr-pagination button){
  min-height:36px!important;padding:7px 11px!important;border-radius:9px!important;font-size:12px!important;font-weight:700!important;box-shadow:none!important;transform:none!important
}
body.ps-medical :is(.mr-quick button,.mr-category-buttons button,.mr-secondary,.mr-pagination button):not([aria-pressed="true"]){background:#fff!important;color:#25466f!important;border-color:#cddbeb!important}
body.ps-medical :is(.mr-quick button,.mr-category-buttons button)[aria-pressed="true"]{background:var(--ps-blue)!important;color:#fff!important;border-color:var(--ps-blue)!important}

/* Payment collection touch matrix intentionally remains a 28px state control. */
body.ps-collections .touch-btn{width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border-radius:7px!important;transform:none!important;box-shadow:none!important}

/* Personal free-window buttons remain compact green slot controls. */
body.ps-personal :is(.free-slot,.slot){min-height:31px!important;padding:5px 9px!important;border-radius:9px!important;background:#e9f8f0!important;color:#11814e!important;border:1px solid #a8ddc0!important;box-shadow:none!important;transform:none!important}
body.ps-personal :is(.free-slot,.slot):hover{background:#d7f2e3!important;border-color:#75c99c!important;box-shadow:none!important;transform:none!important}

/* ---------- cards / filters / sections ---------- */
body.ps-themed :is(
  .card,.panel,.toolbar,.subtoolbar,.formbox,.buybox,.account,.coach-card,.archive-card,
  .finance-card,.metric,.kpi,.trials-metric,.mr-controls,.mr-table-card,.week-card
){
  border:1px solid var(--ps-ui-border)!important;
  border-radius:var(--ps-ui-card-radius)!important;
  background:var(--ps-ui-surface)!important;
  box-shadow:var(--ps-ui-shadow)!important;
}
body.ps-themed :is(.toolbar,.subtoolbar,.stats-toolbar,.periodbar,.week-toolbar,.mr-controls){background:#fff!important}
body.ps-themed :is(.hint,.note,.matrix-note,.modal-meta,.sub-box){border-radius:11px!important;background:#f5f9ff!important;border:1px solid #e0ebf8!important;color:#59708e!important}

/* Hero cards share the same soft-white/blue visual language as Personal sessions/Leads. */
body.ps-themed :is(.funnel-hero,.collections-hero,.trainee-hero,.personal-hero,.profile-hero){
  border:1px solid #d7e6f6!important;
  border-radius:18px!important;
  box-shadow:0 12px 34px rgba(18,65,125,.10)!important;
}

/* ---------- dialogs / overlays ---------- */
body.ps-themed :is(.modal-bg,.modal-backdrop){background:rgba(9,30,65,.46)!important;backdrop-filter:blur(2px)}
body.ps-themed dialog::backdrop{background:rgba(9,30,65,.46)!important;backdrop-filter:blur(2px)}
body.ps-themed :is(.modal,.edit-modal,.client-dialog,.trials-modal,.trials-drawer){
  border:1px solid #d8e4f1!important;
  border-radius:var(--ps-ui-modal-radius)!important;
  background:#fff!important;
  box-shadow:var(--ps-ui-shadow-modal)!important;
  color:var(--ps-text)!important;
}
body.ps-themed :is(.modal,.edit-modal,.client-dialog,.trials-modal,.trials-drawer) :is(h2,h3){color:var(--ps-navy)!important;letter-spacing:-.012em}
body.ps-themed :is(.modal-actions,.dialog-actions,.client-dialog-footer){display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important}
body.ps-themed :is(.modal-actions,.dialog-actions,.client-dialog-footer) button{width:auto!important;min-width:108px!important;margin:0!important}

/* Personal booking modal is the approved reference: keep its full-width final CTA. */
body.ps-personal #saveBooking{width:100%!important;min-width:0!important;margin-top:10px!important}

/* ---------- standard tables outside dense attendance matrices ---------- */
body.ps-themed:not(.ps-journal) :is(.table-wrap,.wallet-history){border-color:var(--ps-ui-border)!important;border-radius:12px!important;background:#fff!important}
body.ps-themed:not(.ps-journal) .table-wrap table th{
  background:#eef4fb!important;color:#425c7a!important;font-size:10px!important;font-weight:800!important;letter-spacing:.035em!important
}
body.ps-themed:not(.ps-journal) .table-wrap table td{border-bottom-color:#e5ecf5!important}
body.ps-themed:not(.ps-journal) .table-wrap table tbody tr:hover td{background:#fbfdff}

/* ---------- page-specific cleanup for old one-off styles ---------- */
body.ps-access button:not(.ps-side-btn){margin-top:10px}
body.ps-access .actions button{margin:0!important}
body.ps-payroll :is(button,input,select){min-height:40px!important;border-radius:10px!important}
body.ps-trainees .tabs{display:flex;gap:6px;background:#fff;border:1px solid var(--ps-ui-border);border-radius:14px;padding:6px;width:max-content;max-width:100%;box-shadow:0 6px 18px rgba(16,50,95,.04)}
body.ps-trainees .tabs button{margin:0!important}
body.ps-statistics .tabs{background:#fff;border:1px solid var(--ps-ui-border);border-radius:14px;padding:6px;gap:6px;width:max-content;max-width:100%;box-shadow:0 6px 18px rgba(16,50,95,.04)}
body.ps-statistics .tab{margin:0!important}
body.ps-manage :is(.workspace-panel,.edit-modal){border-radius:18px!important;box-shadow:var(--ps-ui-shadow-modal)!important}

/* Lead-name pseudo-button behaves as a text link, not a blue CTA. */
body.ps-leads button.lead-name{
  min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#0b57c9!important;box-shadow:none!important;font-size:inherit!important;font-weight:850!important;display:inline!important;text-align:left!important
}
body.ps-leads button.lead-name:hover{text-decoration:underline!important;background:transparent!important;box-shadow:none!important}

/* Medical KPI cards remain card-controls rather than standard buttons. */
body.ps-medical button.mr-kpi{transform:none!important;box-shadow:none!important}

/* Athlete dossier has its own dense micro-controls; normalize only full-size action buttons. */
body.ps-athlete .dossier :is(.edit-client-button,.medical-edit-button,.soft-btn){min-height:40px!important;border-radius:10px!important;font-size:13px!important;font-weight:800!important}
body.ps-athlete .dossier .text-btn{min-height:30px!important;border-radius:8px!important;font-size:11.5px!important;padding:5px 9px!important}
body.ps-athlete .dossier .dossier-tabs button{min-height:38px!important;border-radius:6px 6px 0 0!important}

/* Stable focus language across every workspace. */
body.ps-themed :is(button,a,input,select,textarea,[tabindex]):focus-visible{outline:3px solid rgba(67,135,230,.58)!important;outline-offset:2px!important}

@media(max-width:860px){
  body.ps-themed :is(.modal-actions,.dialog-actions,.client-dialog-footer){flex-wrap:wrap!important}
  body.ps-themed :is(.modal-actions,.dialog-actions,.client-dialog-footer) button{flex:1 1 140px!important}
}

/* v36 — clickable brand home and stable help link */
.ps-brand-home{display:block;width:100%;text-decoration:none;color:inherit;border-radius:10px;transition:transform .12s ease,filter .15s ease}
.ps-brand-home:hover{transform:translateY(-1px);filter:brightness(1.06)}
.ps-brand-home:focus-visible{outline:2px solid #b9d3fa;outline-offset:3px}
.ps-sidebar-collapsed .ps-brand-home{display:flex;justify-content:center}

/* v37 — destructive actions are deliberately quieter and slightly more compact.
   They remain recognisably dangerous, but no longer dominate dense admin screens. */
:root{
  --ps-danger-ink:#a34b52;
  --ps-danger-border:#e6c9cc;
  --ps-danger-bg:#fffafa;
  --ps-danger-hover:#fff2f3;
  --ps-danger-hover-border:#dcb5b9;
  --ps-danger-hover-ink:#913d45;
}
body.ps-themed :is(
  button.danger,
  button.danger-btn,
  button.btn-danger,
  .member-action:not(.restore),
  button.finish-intern-btn,
  .dossier .entry-footer button.text-btn,
  .freeze-item button
){
  min-height:30px!important;
  height:auto!important;
  padding:5px 9px!important;
  border-radius:8px!important;
  background:var(--ps-danger-bg)!important;
  color:var(--ps-danger-ink)!important;
  border:1px solid var(--ps-danger-border)!important;
  box-shadow:none!important;
  font-size:11px!important;
  font-weight:750!important;
  line-height:1.2!important;
  white-space:nowrap;
}
body.ps-themed :is(
  button.danger,
  button.danger-btn,
  button.btn-danger,
  .member-action:not(.restore),
  button.finish-intern-btn,
  .dossier .entry-footer button.text-btn,
  .freeze-item button
):hover{
  background:var(--ps-danger-hover)!important;
  color:var(--ps-danger-hover-ink)!important;
  border-color:var(--ps-danger-hover-border)!important;
  box-shadow:0 4px 10px rgba(145,61,69,.07)!important;
  transform:translateY(-1px)!important;
  filter:none!important;
}
body.ps-themed :is(
  button.danger,
  button.danger-btn,
  button.btn-danger,
  .member-action:not(.restore),
  button.finish-intern-btn,
  .dossier .entry-footer button.text-btn,
  .freeze-item button
):active{
  transform:translateY(0)!important;
  box-shadow:none!important;
}
/* Dense tables and action rows should stay especially unobtrusive. */
body.ps-themed :is(.row-actions,.action-row,.plan-actions,.coach-head-actions,.modal-actions,.client-dialog-footer) :is(
  button.danger,
  button.danger-btn,
  button.btn-danger,
  .member-action:not(.restore),
  button.finish-intern-btn,
  .dossier .entry-footer button.text-btn
){
  min-height:29px!important;
  padding:4px 8px!important;
  font-size:10.8px!important;
}

/* v0.9.59 — journal focus mode follows the existing sidebar arrow.
   When navigation is collapsed, keep the filter row and devote the rest of the
   viewport to the attendance matrix. Expanding the sidebar restores all tools. */
@media (min-width:861px){
  body.ps-journal.ps-sidebar-collapsed main{margin-top:6px!important;padding-top:6px!important}
  body.ps-journal.ps-sidebar-collapsed .ps-page-hero,
  body.ps-journal.ps-sidebar-collapsed .journal-summary,
  body.ps-journal.ps-sidebar-collapsed .subtoolbar,
  body.ps-journal.ps-sidebar-collapsed .legend{display:none!important}
  body.ps-journal.ps-sidebar-collapsed .toolbar{margin-top:0!important}
  body.ps-journal.ps-sidebar-collapsed .journal-wrap{max-height:calc(100vh - 150px)!important}
}

/* The open menu stays inside the scrollable sidebar, including on mobile. */
.ps-sidebar .ps-branch-picker {align-self:stretch;min-width:0;margin:7px 0 0;font:600 13px/1.35 "Segoe UI",Arial,sans-serif}
.ps-sidebar .ps-branch-picker summary {display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;list-style:none;background:#ffffff12;border:1px solid #ffffff38;border-radius:8px;padding:8px 10px;color:#f2f7ff}
.ps-sidebar .ps-branch-picker summary::-webkit-details-marker {display:none}
.ps-sidebar .ps-branch-picker summary::after {content:"";width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);flex:none}
.ps-sidebar .ps-branch-picker[open] summary::after {transform:rotate(225deg)}
.ps-sidebar .ps-branch-options {display:grid;gap:2px;padding:4px 0 0}
.ps-sidebar .ps-branch-options a {display:block;color:#f3f7ff;text-decoration:none;border-radius:6px;padding:7px 10px}
.ps-sidebar .ps-branch-options a[aria-current=true] {background:#134d87}
.ps-sidebar .ps-branch-options a:hover {background:#ffffff20}
.ps-sidebar .ps-branch-status {margin:4px 0 0;padding:5px 10px;color:#fff3d8;font-size:12px;line-height:1.45}
.ps-sidebar .ps-branch-status:empty {display:none}
.ps-sidebar .ps-branch-picker :is(summary,a):focus-visible {outline:2px solid #b9ddff;outline-offset:-2px}
