/* Actual workspace layout redesign. All business forms remain server-rendered. */
body[data-page=workspace].staff207-ready.staff204-counter .portal-top{display:none!important}
body[data-page=workspace].staff207-ready:not(.staff204-counter) .portal-sidebar{display:grid!important}
body[data-page=workspace].staff207-ready:not(.staff204-counter) .portal-top nav{display:flex!important}
body[data-page=workspace].staff207-ready.staff204-counter .portal-shell{display:block!important;max-width:1640px!important;width:100%;padding:16px clamp(12px,2vw,28px)!important;margin:auto}
body[data-page=workspace] .staff207-header{padding:12px 16px!important;border-radius:14px;gap:10px;margin:0 0 14px;background:#111827;border:1px solid #253143}
.staff207-top{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:space-between;min-width:0}.staff207-brand{display:flex;align-items:center;gap:10px;min-width:0}.staff207-brand img{width:42px;height:42px;border-radius:10px;object-fit:contain;background:#fff;flex:none}.staff207-brand h2{font-size:18px;line-height:1.2;margin:0;color:#f4f6fb}.staff207-brand small{color:#f48b96;display:block;font-size:10px;font-weight:700;letter-spacing:.04em}.staff207-brand span{display:block;color:#b0bacb;font-size:11px;font-variant-numeric:tabular-nums}.staff207-top-actions{display:flex;gap:6px;align-items:center}.staff207-top-actions :is(a,button){min-height:40px;padding:8px 11px;font-size:13px;white-space:nowrap}.staff207-stats{display:flex!important;gap:5px;flex-wrap:wrap;justify-content:center;flex:1 1 360px;min-width:0}.staff207-stats>a{flex:1 1 80px;min-width:0!important;align-items:center;justify-content:center!important;gap:6px!important;padding:7px 9px!important;min-height:40px!important;background:#0d1421!important}.staff207-stats small{font-size:11px;white-space:nowrap}.staff207-stats strong{font-size:18px!important;white-space:nowrap}.staff207-stats [data-staff206-waiting]{color:#f6c35c}.staff207-header .staff193-tools{border-top:1px solid #293448;padding-top:9px;gap:6px}.staff207-header .staff193-tools>a,.staff207-header .arena200-report-actions :is(a,button){flex:0 1 auto!important;min-height:38px!important;padding:7px 12px!important;white-space:normal!important}.staff207-header .staff193-tools .arena200-report-actions{flex:1 1 auto;justify-content:flex-end}.staff207-layout{display:grid!important;grid-template-columns:minmax(0,2.05fr) minmax(300px,1fr)!important;gap:18px!important;align-items:start}.staff207-layout .staff201-main{display:grid;gap:18px;min-width:0}.staff207-layout .staff201-queue .arena200{grid-template-columns:1fr!important;gap:16px!important}.staff207-layout #timeline177{padding:18px!important}.staff207-layout #timeline177 .tlrow{margin:8px 0!important}.staff207-layout #timeline177 .tltrack{height:48px!important}.staff207-layout #timeline177 .tlbooking{height:42px!important;top:3px!important}.staff207-layout #timeline177 .timeline15{min-width:1800px!important}.staff207-layout #schedule{margin:0!important;padding:0!important;min-width:0}.staff207-layout #schedule .portal-filter{display:none}.staff207-layout #schedule .quick178-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}.staff207-layout #schedule .quick178-machine{min-height:190px!important}.staff207-layout .arena200-box{padding:16px!important}.staff207-wait-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important;align-items:start}.staff207-wait-fields>label{margin:0!important;min-width:0}.staff207-layout .staff201-empty{min-height:180px!important}.staff207-layout .staff201-bookbar{margin-top:12px;padding:12px!important}.staff207-layout .staff201-bookbar button{min-width:130px}.staff207-layout .staff202-categories small{font-size:11px}.staff207-layout .staff202-links a{min-height:36px}.staff207-layout .staff202-direct{margin:10px 0}.staff207-layout .staff202-wait-label{margin:8px 0}.staff207-layout .staff202-choice button{min-height:36px}.staff207-layout #schedule .quick178-book{min-height:44px}
@media(max-width:1050px){.staff207-layout{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}.staff207-layout .staff201-main{display:contents}.staff207-layout #timeline177{order:0}.staff207-layout .staff201-queue{order:1}.staff207-layout #schedule{order:2}.staff207-layout .staff201-queue .arena200{grid-template-columns:repeat(2,minmax(0,1fr))!important}.staff207-layout #schedule .quick178-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.staff207-top{gap:8px}.staff207-stats{order:3;flex-basis:100%}.staff207-top-actions{margin-left:auto}.staff207-header .staff193-tools .arena200-report-actions{justify-content:flex-start}}
@media(max-width:700px){body[data-page=workspace].staff207-ready.staff204-counter .portal-shell{padding:8px!important}.staff207-header{padding:10px!important}.staff207-brand h2{font-size:15px}.staff207-brand img{width:34px;height:34px}.staff207-brand small{font-size:9px}.staff207-top-actions :is(a,button){min-height:44px;font-size:12px;padding:5px 8px}.staff207-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.staff207-stats>a{min-height:44px!important;justify-content:space-between!important}.staff207-header .staff193-tools>a,.staff207-header .arena200-report-actions :is(a,button){min-height:44px!important;flex:1 1 95px!important;font-size:12px!important;padding:7px 5px!important}.staff207-header .staff193-tools .arena200-report-actions{flex:1 1 100%}.staff207-layout .staff201-queue .arena200{grid-template-columns:1fr!important}.staff207-layout #timeline177{padding:10px!important}.staff207-layout #schedule .quick178-grid{grid-template-columns:1fr!important}.staff207-layout #timeline177 .timeline15{min-width:var(--staff193-table-width,3200px)!important}.staff207-layout .arena200-box{padding:12px!important}.staff207-layout .staff201-empty{min-height:95px!important}.staff207-layout .staff202-choice button,.staff207-layout .staff202-links a{min-height:44px!important}.staff207-top-actions{flex-wrap:wrap}.staff207-top-actions a{display:none}}
@media(pointer:coarse){.staff207-layout #timeline177 .timeline15{min-width:var(--staff193-table-width,3200px)!important}.staff207-header .staff193-tools>a,.staff207-header .arena200-report-actions :is(a,button){min-height:44px!important}}
/* Keep date and source navigation compact on phone instead of stacking full-width controls. */
@media(max-width:700px){body[data-page=workspace] .staff207-layout .staff201-days{display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important;padding:5px!important}body[data-page=workspace] .staff207-layout .staff201-days>a{width:auto!important;min-width:0!important;min-height:44px!important;display:flex!important;justify-content:center;align-items:center}body[data-page=workspace] .staff207-layout .staff201-days form{grid-column:1/-1;display:flex!important;flex-wrap:nowrap!important;align-items:center;width:100%;gap:5px;margin:0!important}body[data-page=workspace] .staff207-layout .staff201-days form input{flex:1 1 0!important;width:0!important;min-width:0!important;margin:0!important}body[data-page=workspace] .staff207-layout .staff201-days form button{width:auto!important;flex:0 0 50px!important;margin:0!important}body[data-page=workspace] .staff207-layout .staff202-links{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}body[data-page=workspace] .staff207-layout .staff202-links>a{width:auto!important;display:flex!important;align-items:center;justify-content:center;text-align:center}body[data-page=workspace] .staff207-layout #timeline177 .staff202-categories{gap:5px;margin:5px 0 8px}body[data-page=workspace] .staff207-layout #timeline177 .section-head>small{font-size:11px}}
/* Phone-first segmented workspace: actual sections, not cloned forms. */
.staff207-mobile-tabs,.staff207-more,.mobile207-advanced{display:none!important}
@media(max-width:700px){
 body[data-page=workspace] .staff207-mobile-tabs:not([hidden]){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;position:sticky;top:0;z-index:12;background:#0a0e17;padding:6px 0;margin:0;scroll-margin-top:0}
 .staff207-mobile-tabs button{min-height:46px;background:#141d2b;color:#e2e9f3;border:1px solid #344257;border-radius:10px;padding:7px 3px;font-size:12px;font-weight:700;white-space:normal}
 .staff207-mobile-tabs button[aria-pressed=true]{background:#b93247;border-color:#ed6b7d;color:#fff}
 body[data-page=workspace] .staff207-more{display:block!important;min-height:44px;width:100%;margin:0;background:#1b2637;border-color:#344257;color:#e8edf5;font-size:13px}
 body[data-page=workspace] .staff207-header .staff193-tools:not(.staff207-expanded){display:none!important}
 body[data-page=workspace] .staff207-layout[data-mobile-view207=timeline] :is(#schedule,.staff201-queue),body[data-page=workspace] .staff207-layout[data-mobile-view207=machines] :is(#timeline177,.staff201-queue),body[data-page=workspace] .staff207-layout[data-mobile-view207=queue] :is(#schedule,#timeline177){display:none!important}
 body[data-page=workspace] .staff207-layout #timeline177 .staff193-table-tools{display:grid!important;grid-template-columns:1fr 1fr;gap:5px}
 body[data-page=workspace] .staff207-layout #timeline177 .staff193-table-tools button{width:auto!important;min-height:44px}
 body[data-page=workspace] .staff207-layout #timeline177 .staff193-table-tools small{grid-column:1/-1}
 body[data-page=workspace] .staff207-layout #timeline177 .timeline15{min-width:var(--staff193-table-width,3200px)!important}
 body[data-page=workspace] .staff207-layout #schedule,body[data-page=workspace] .staff207-layout #timeline177,body[data-page=workspace] .staff207-layout #arena200{scroll-margin-top:66px}
 body[data-page=workspace] .staff207-layout #schedule .quick178-machine{min-height:0!important;padding:13px;gap:8px}
 body[data-page=workspace] .staff207-layout #schedule .quick178-grid{gap:8px!important}
 body[data-page=workspace] .staff207-header{margin-bottom:0!important}
 body[data-page=workspace] .staff207-layout .staff201-bookbar>div{flex-basis:100%;min-width:0}
 body[data-page=workspace] .staff207-layout .staff201-bookbar :is(button,a){flex:1;min-height:44px}
 body[data-page=workspace] .staff207-layout .staff201-queue .arena200 input,body[data-page=workspace] .staff207-layout .staff201-queue .arena200 select{font-size:16px}
 #quick178-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);margin:auto;padding:12px;border-radius:16px}
 #quick178-dialog .quick178-head{position:sticky;top:-12px;background:#101724;z-index:3;padding:9px 0;margin:0 0 8px}
 #quick178-form .staff204-footer{padding-bottom:max(10px,env(safe-area-inset-bottom))}
 .staff206-detail{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px)}
 body.portal-public .customer-form .booking-layout{gap:12px}
 body.portal-public .customer-form .cyber192-days{grid-template-columns:repeat(7,minmax(55px,1fr));overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:4px}
 body.portal-public .customer-form .cyber192-days button{scroll-snap-align:start;min-height:55px;font-size:11px}
 body.portal-public .customer-form .cyber192-hours{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 body.portal-public .customer-form .cyber192-hours button{min-height:46px;font-size:12px}
 body.portal-public .customer-form .cyber192-label{font-size:14px;font-weight:700;margin-top:6px}
 body.portal-public .customer-form .cyber192-slots button[data-availability203=busy]{color:#f0a3ac;background:#38232b;border-color:#76404c;opacity:1}
 body.portal-public .customer-form .mobile207-advanced{display:block!important;grid-column:1/-1;order:3;min-height:44px;background:#242a35;border-color:#424d61;color:#e0e5ed;font-size:13px}
 body.portal-public .customer-form .mobile207-grid:not(.mobile207-expanded)>.mobile207-custom{display:none!important}
 body.portal-public .customer-form .mobile207-grid .mobile207-custom{order:4}
 body.portal-public .customer-form .mc203-mobile-next{border:1px solid #70414b;background:#20212a;padding:10px;border-radius:12px}
 body.portal-public .customer-form .mc203-mobile-next button{min-height:48px}
 body.portal-public .customer-form .booking-summary-grid{grid-template-columns:1fr!important}
 body.portal-public .customer-form .summary-total-box{border-top:1px solid #343b49;padding-top:13px}
}

/* v2.0.14: full-width timeline, optional waiting queue in a separate dialog */
body[data-page=workspace] .staff207-layout.staff214-wide{grid-template-columns:minmax(0,1fr)!important;gap:14px!important;width:100%;max-width:100%;min-width:0}
body[data-page=workspace] .staff214-wide .staff201-main{display:grid!important;grid-template-columns:minmax(0,1fr);width:100%;max-width:100%;min-width:0;gap:14px}
body[data-page=workspace] .staff214-wide #timeline177{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
body[data-page=workspace] .staff214-wide #timeline177 .scroll{width:100%;min-width:0;max-width:100%;overflow-x:auto}
body[data-page=workspace] .staff214-wide #timeline177 .timeline15{min-width:var(--staff214-desktop,2400px)!important}
body[data-page=workspace] .staff214-wide #timeline177 .tltrack{height:58px!important}
body[data-page=workspace] .staff214-wide #timeline177 .tlbooking{height:52px!important;top:3px!important}
body[data-page=workspace] .staff214-wide #timeline177 .tlrow>strong{min-height:58px;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box}
body[data-page=workspace] .staff214-wide #schedule .quick178-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.staff214-queue-dialog{box-sizing:border-box;width:min(620px,calc(100vw - 20px));max-height:calc(100dvh - 24px);overflow:auto;background:#101724;color:#edf3ff;border:1px solid #425674;border-radius:16px;padding:14px;margin:auto;box-shadow:0 16px 60px #0009}
.staff214-queue-dialog:not([open]){display:none!important}.staff214-queue-dialog::backdrop{background:#000b;backdrop-filter:blur(4px)}
.staff214-queue-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.staff214-queue-dialog h2{font-size:18px;margin:0}.staff214-queue-dialog .arena200{grid-template-columns:minmax(0,1fr)!important}.staff214-queue-dialog .staff201-empty{min-height:64px}.staff214-queue-dialog .arena200-box{padding:12px}.staff214-queue-dialog button,.staff214-queue-dialog .secondary{min-height:44px}
@media(max-width:1050px){body[data-page=workspace] .staff214-wide #schedule .quick178-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){body[data-page=workspace] .staff214-wide #schedule .quick178-grid{grid-template-columns:1fr!important}.staff214-queue-tab{display:grid;place-items:center;min-height:46px;background:#141d2b;color:#e2e9f3;border:1px solid #344257;border-radius:10px;font-size:12px;font-weight:700;text-decoration:none}.staff214-queue-dialog .arena213-section{padding:9px}.staff214-queue-dialog .arena213-choice button{min-height:44px!important}}
@media(max-width:700px),(pointer:coarse){body[data-page=workspace] .staff214-wide #timeline177 .timeline15{min-width:var(--staff193-table-width,3800px)!important}}
body[data-page=workspace].staff207-ready.staff204-counter .portal-shell{max-width:100%!important;box-sizing:border-box}
