/* Color accents preserve the established desktop geometry. */
.stats article:nth-child(1){background:linear-gradient(130deg,#eef8ff,#fff 80%);border-color:#d3e8f6}.stats article:nth-child(2){background:linear-gradient(130deg,#fff5e5,#fff 80%);border-color:#f0e1c7}.stats article:nth-child(3){background:linear-gradient(130deg,#eaf8f0,#fff 80%);border-color:#d6eadf}.stats article:nth-child(1) strong{color:#267fad}.stats article:nth-child(2) strong{color:#a87831}.stats article:nth-child(3) strong{color:#388867}
#jobs-list .job-row{border-left-color:#4b9fc4}#jobs-list .job-row:has(.status.in_progress){border-left-color:#d8a357;background:linear-gradient(120deg,#fffaf0,#fff 55%)}#jobs-list .job-row:has(.status.complete){border-left-color:#6daa8b;background:linear-gradient(120deg,#f0faf4,#fff 55%)}
#clients-list .client-row{background:linear-gradient(145deg,#f0faf9,#fff 65%);border-color:#d4e9e5}#clients-list .client-row strong{color:#276c76}#clients-list .client-row .secondary{background:#eaf7f4;color:#347d76;border-color:#cce5df}
#jobs-calendar-events .job-row{background:linear-gradient(100deg,#f7f3fd,#fff 65%)}#jobs-calendar-events .status{background:#eee7fa;color:#7c5a9f}
.profile-section:nth-child(1),.profile-section:nth-child(2){background:#f3f9fe;border-color:#d8eaf6}.profile-section:nth-child(4){background:#f2faf6;border-color:#d8eadf}.profile-section:nth-child(5){background:#fffbf2;border-color:#eee3ca}.profile-section:nth-child(6){background:#f7f3fc;border-color:#e5ddf2}.profile-section:nth-child(7){background:#fbf3f8;border-color:#eddfeb}
.calendar-chip.team{background:#ebe3fa;color:#7450a8}.calendar-chip.job{background:#dcf2f5;color:#267c88}.calendar-chip.holiday{background:#fff0d1;color:#986923}.calendar-agenda-row.team{background:#f4effc;border-left-color:#9a7cc8}.calendar-agenda-row.job{background:#edf8f8;border-left-color:#54a8b0}.calendar-day.today .calendar-number{background:#26939e}
.portal-mobile-nav{display:none}
@media(max-width:700px){
 #workspace{padding-bottom:calc(94px + env(safe-area-inset-bottom,0px))}
 #workspace .preview-banner{padding:10px 16px;gap:8px;background:#112c42}
 #workspace .preview-banner strong{font-size:9px;letter-spacing:1px}
 #workspace .preview-banner span{font-size:9px;width:auto;flex:1;line-height:1.5}
 #workspace .preview-banner a{font-size:9px;margin-left:0}
 #workspace .sidebar{min-height:172px;padding:22px 17px 18px;background:linear-gradient(135deg,#10283e,#1b4a63);position:relative;overflow:visible}
 #workspace .sidebar>.brand{font-size:24px;max-width:185px;padding:0}
 #workspace .sidebar>.brand small{font-size:8px;letter-spacing:1.5px}
 #workspace .sidebar>nav{display:none}
 #workspace .sidebar #logout{position:absolute;top:17px;right:16px;min-height:44px;padding:10px 12px;font-size:10px;width:auto;background:#ffffff0a;margin:0}
 #workspace .sidebar-bottom{display:block;border:0;margin:15px 0 0;padding:0;max-width:calc(100% - 103px)}
 #workspace .sidebar-bottom strong{font-size:11px;color:#d9eaf3;line-height:1.7;overflow-wrap:anywhere}
 #workspace .sidebar-bottom small{font-size:9px;color:#9cc5d9;margin-top:5px;letter-spacing:.8px}
 #workspace .sidebar-matt{position:absolute;right:15px;bottom:12px;margin:0;padding:0;width:83px;line-height:0}
 #workspace .sidebar-matt img{width:83px;height:100px;object-fit:contain;filter:drop-shadow(0 5px 9px #0003)}
 #workspace .portal-mobile-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:80;flex-direction:row;flex-wrap:nowrap;align-items:stretch;gap:6px;margin:0;padding:9px 10px calc(9px + env(safe-area-inset-bottom,0px));background:#fffffff5;backdrop-filter:blur(16px);border-top:1px solid #dbe7f0;box-shadow:0 -6px 24px #1639500b}
 #workspace .portal-mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;flex:1;min-width:0;min-height:57px;border:0;border-radius:12px;background:transparent;color:#758b9b;padding:8px 3px;font-size:10px;font-weight:500;text-align:center}
 #workspace .portal-mobile-nav button svg{width:21px;height:21px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
 #workspace .portal-mobile-nav button span{display:block;width:auto;font-size:10px}
 #workspace .portal-mobile-nav button[aria-current=page]{background:#e9f5fa;color:#25849f}
 #workspace .portal-mobile-nav button[data-page=calendar][aria-current=page]{background:#f0eafa;color:#8760af}
 #workspace .portal-mobile-nav button[data-page=clients][aria-current=page]{background:#e9f7f2;color:#3c8a79}
 #workspace .portal-mobile-nav button[data-page=team][aria-current=page]{background:#fff4e2;color:#a77e38}
 #workspace .topbar{position:sticky;top:0;z-index:25;padding:12px 16px;background:#fffffff0;backdrop-filter:blur(12px);min-height:65px;gap:10px}
 #workspace .topbar .text-button{min-height:44px;border-radius:10px;padding:10px;font-size:10px}
 #workspace .content{padding:23px 16px 20px}
 #workspace .page-heading h1{font-size:29px;line-height:1.15;letter-spacing:-1px}
 #workspace .page-heading .eyebrow{font-size:8px;letter-spacing:1.5px}
 #workspace .page-heading p:last-child{font-size:13px;line-height:1.7}
 #workspace .stats{gap:8px}
 #workspace .stats article{padding:17px 11px;border-radius:14px}
 #workspace .stats span{font-size:9px;line-height:1.6}
 #workspace .stats strong{font-size:32px;margin-top:12px}
 #workspace .stats small{font-size:8px}
 #workspace #jobs-list,#workspace #clients-list{grid-template-columns:1fr;gap:13px}
 #workspace #jobs-list .job-row,#workspace #clients-list .client-row{padding:20px;gap:13px}
 #workspace #jobs-list .job-main strong{font-size:17px;line-height:1.45}
 #workspace .job-main small{font-size:12px;line-height:1.75;margin-top:9px}
 #workspace #jobs-list .text-button,#workspace #clients-list .secondary{min-height:46px;padding:12px 15px;font-size:12px;border-radius:10px}
 #workspace .job-row>.status{margin-left:0;font-size:10px;padding:8px 11px}
 #workspace .job-row>.job-main{flex-basis:100%;min-width:0}
 #workspace #jobs-calendar-events .job-row{flex-wrap:wrap;padding:20px}
 #workspace #jobs-calendar-events .text-button{margin-left:auto;min-height:44px;padding:11px 13px;background:#f0eafa;border-radius:9px;font-size:11px;color:#82619f}
 #workspace .panel summary{padding:22px 20px;min-height:64px;font-size:14px}
 #workspace .admin-form{grid-template-columns:1fr;padding:20px;gap:19px}
 #workspace .admin-form label{font-size:12px;line-height:1.7}
 #workspace .staff-actions{display:flex;flex-basis:100%;gap:10px;flex-wrap:wrap}
 #workspace .staff-actions select{flex:1;min-width:130px}
 #workspace #staff-list .client-row{padding:20px;gap:16px}
 #workspace #staff-list .client-row>div:first-child{flex-basis:100%;min-width:0}
 #workspace .calendar-toolbar{display:flex;flex-direction:column;padding:20px;gap:17px}
 #workspace .calendar-toolbar h2{font-size:23px;letter-spacing:-.7px}
 #workspace .calendar-controls{display:grid;grid-template-columns:46px minmax(0,1fr) 46px;gap:8px;width:100%}
 #workspace .calendar-controls button{min-height:46px;font-size:12px;padding:11px 8px}
 #workspace #calendar-add{grid-column:1/-1;min-height:48px;background:linear-gradient(115deg,#7154a5,#9270b9);border-color:#8663b0}
 #workspace .calendar-options{padding:0 20px 16px;gap:0 14px}
 #workspace .calendar-options label{min-height:44px;font-size:11px;gap:8px}
 #workspace .calendar-options input{width:18px;height:18px;accent-color:#6f86b0}
 #workspace .calendar-legend{width:100%;font-size:10px;gap:8px;line-height:1.8;margin-top:5px}
 #workspace .calendar-day{display:grid;grid-template-columns:repeat(3,6px);justify-content:center;align-content:start;column-gap:4px;row-gap:5px;min-height:66px;padding:7px 3px;border-color:#e4edf4}
 #workspace .calendar-number{grid-column:1/-1;width:auto;height:24px;font-size:12px;font-weight:600}
 #workspace .calendar-chip{width:6px;height:6px;padding:0;border-radius:50%;font-size:0;line-height:0;text-indent:-9999px;overflow:hidden;background:#d3a450}
 #workspace .calendar-chip.team{background:#9471bd}
 #workspace .calendar-chip.job{background:#489fa6}
 #workspace .calendar-chip.observance{background:#b5a080}
 #workspace .calendar-more{grid-column:1/-1;font-size:8px;color:#7a94a6;white-space:nowrap;text-align:center}
 #workspace .calendar-day.today .calendar-number{border-radius:7px;background:#e0f4f3;color:#25858e}
 #workspace .calendar-day.selected{background:#eff7fd;box-shadow:inset 0 0 0 2px #69a8c8}
 #workspace .calendar-day.outside .calendar-number{color:#b1c1cc}
 #workspace .calendar-day-panel{padding:20px}
 #workspace .calendar-day-panel>h2{font-size:18px;line-height:1.5}
 #workspace .calendar-agenda-row{padding:19px;gap:11px}
 #workspace .calendar-agenda-row strong{font-size:16px;line-height:1.5}
 #workspace .calendar-agenda-row p{font-size:13px;line-height:1.75}
 #workspace .calendar-agenda-row .text-button{min-height:44px;padding:10px 0;font-size:12px}
 #workspace .calendar-footnote{font-size:11px!important;line-height:1.8}
 input,select,textarea{font-size:16px;min-height:48px;padding:13px;border-radius:10px}
 input[type=checkbox]{min-height:auto}
 .primary,.secondary,.client-link{min-height:48px;font-size:13px;border-radius:10px}
 .text-button{min-height:44px}
 dialog{width:calc(100% - 16px)!important;max-height:calc(100dvh - 24px);padding:21px;border-radius:18px;margin:auto;overscroll-behavior:contain}
 .dialog-heading{position:sticky;top:-21px;z-index:2;background:white;padding:16px 0 12px;margin-top:-16px;border-bottom:1px solid #e5edf4;align-items:center}
 .dialog-heading h2{font-size:23px;line-height:1.3;margin:0;overflow-wrap:anywhere}
 .close-button{width:44px;height:44px;min-width:44px;font-size:24px}
 .profile-section{padding:17px;margin:14px 0}
 .profile-section h3{font-size:16px;margin-bottom:16px}
 .profile-grid,.profile-entry{grid-template-columns:1fr;gap:18px}
 .profile-section label,.profile-upload label,.calendar-event-form label{font-size:12px;line-height:1.7}
 .profile-section input,.profile-section select,.profile-section textarea{margin-top:7px}
 #profile-save-actions{position:sticky;bottom:-21px;margin:0 -21px;padding:14px 21px calc(14px + env(safe-area-inset-bottom,0px));border-top:1px solid #dbe8f0;box-shadow:0 -4px 16px #17395406;background:#fff;z-index:3}
 #save-profile{width:100%;min-height:49px}
 .profile-upload{padding:19px;gap:16px}
 .profile-upload input[type=file]{max-width:100%;font-size:13px}
 .client-file{gap:14px;padding:19px 0}
 .client-file strong{font-size:14px;line-height:1.7;overflow-wrap:anywhere}
 .client-file .text-button{min-height:44px;background:#ecf7fb;border-radius:8px;padding:10px 12px}
 .calendar-event-form{gap:18px}.calendar-event-form .calendar-checkbox{min-height:44px}
 .calendar-form-actions{display:flex;gap:10px}.calendar-form-actions .primary{flex:1}
 .auth-wrap{padding:16px}.auth-card{padding:27px 24px}.auth-card input{font-size:16px}
 #note-form>.primary,#save-job{width:100%;min-height:49px}
 .field-label{font-size:12px;margin-top:21px}
 .record-note{font-size:14px;line-height:1.8}
}
