html body #crmWorkSchedule{width:min(860px,calc(calc(100vw / var(--crm-ui-scale, 1)) - 24px))}
html body #crmWorkSchedule .ws-confirm-banner>strong{font-size:clamp(28px,calc(3vw / var(--crm-ui-scale, 1)),34px)!important;line-height:1.2!important;letter-spacing:-.025em;margin:0 0 16px}
html body #crmWorkSchedule .ws-confirm-banner>label,html body #crmWorkSchedule .ws-range-controls label{font-size:var(--fs-xl,17px)!important;font-weight:var(--fw-s,600);gap:10px}
html body #crmWorkSchedule #wsRange{font-size:var(--fs-2xl,22px)!important;font-weight:var(--fw-s,600)!important;min-height:46px}
html body #crmWorkSchedule #wsEditWeek,html body #crmWorkSchedule #wsEditMonth{font-size:var(--fs-2xl,22px)!important;min-height:52px!important}
#crmWorkSchedule .ws-bulk-hours{padding:16px 20px;margin:18px 0 14px;border:1px solid color-mix(in srgb,var(--blue) 35%,var(--border));border-radius:14px;background:linear-gradient(110deg,color-mix(in srgb,var(--blue) 9%,var(--surface)),var(--surface))}
#crmWorkSchedule .ws-bulk-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
#crmWorkSchedule .ws-bulk-head strong{font-size:var(--fs-xl,17px);margin-right:auto}
#crmWorkSchedule .ws-bulk-head label{display:flex;align-items:center;gap:7px;font-size:var(--fs-lg,14px);cursor:pointer}
#crmWorkSchedule [data-day-count]{font-size:var(--fs-md,13.5px);color:var(--muted)}
html body #crmWorkSchedule .ws-week>div{grid-template-columns:150px minmax(0,1fr);padding:12px 20px;gap:20px;border:1px solid var(--border);border-radius:12px;background:var(--surface2);transition:border-color .16s,background .16s}
#crmWorkSchedule .ws-week>div:hover{border-color:color-mix(in srgb,var(--blue) 35%,var(--border))}
#crmWorkSchedule .ws-week label{font-size:var(--fs-lg,14px);font-weight:var(--fw-s,600);cursor:pointer}
#crmWorkSchedule .ws-day-off>label{color:var(--muted)}
#crmWorkSchedule .ws-time-range{min-width:0;width:100%;--range-start:14%;--range-end:71%}
#crmWorkSchedule .ws-range-caption{display:flex;align-items:center;justify-content:space-between;font-size:var(--fs-md,13.5px);color:var(--muted);gap:10px}
#crmWorkSchedule .ws-range-caption output{display:inline;font-size:var(--fs-xl,17px);font-weight:var(--fw-s,600);font-variant-numeric:tabular-nums;color:var(--text);margin-left:6px}
#crmWorkSchedule .ws-range-track{height:30px;position:relative;cursor:pointer;isolation:isolate;margin:1px 10px}
#crmWorkSchedule .ws-range-track:before,#crmWorkSchedule .ws-range-fill{position:absolute;top:13px;height:5px;border-radius:8px;content:'';left:0;right:0;background:var(--border)}
#crmWorkSchedule .ws-range-fill{left:var(--range-start);right:calc(100% - var(--range-end));background:#69a1ce}
html body #crmWorkSchedule .ws-range-track input[type=range]{appearance:none;-webkit-appearance:none;position:absolute;inset:0;width:100%;height:30px;min-height:0!important;margin:0;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;outline:none!important;pointer-events:none}
#crmWorkSchedule .ws-range-track input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:20px;height:20px;border-radius:50%;border:3px solid #69a1ce;background:var(--surface);box-shadow:0 2px 6px #0002;cursor:ew-resize;pointer-events:auto;transition:box-shadow .15s}
#crmWorkSchedule .ws-range-track input::-moz-range-thumb{width:14px;height:14px;border-radius:50%;border:3px solid #69a1ce;background:var(--surface);cursor:ew-resize;pointer-events:auto}
#crmWorkSchedule .ws-range-track input:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 4px color-mix(in srgb,#69a1ce 30%,transparent)}
#crmWorkSchedule .ws-range-track input:focus-visible::-moz-range-thumb{box-shadow:0 0 0 4px color-mix(in srgb,#69a1ce 30%,transparent)}
#crmWorkSchedule .ws-range-scale{display:flex;justify-content:space-between;color:var(--muted);font-size:var(--fs-sm,12.5px)}
#crmWorkSchedule .ws-time-range.is-off{opacity:.4}
#crmWorkSchedule .ws-time-range.is-off input::-webkit-slider-thumb{cursor:not-allowed}
#crmWorkSchedule [data-apply-hours]{margin-top:12px}
#crmWorkSchedule [hidden]{display:none!important}
@media(max-width:600px){html body #crmWorkSchedule .ws-week>div{grid-template-columns:1fr;gap:8px;padding:12px}.ws-dialog-body{padding:12px}#crmWorkSchedule .ws-bulk-hours{padding:14px}}
@media(prefers-reduced-motion:reduce){#crmWorkSchedule .ws-week>div,#crmWorkSchedule .ws-range-track input::-webkit-slider-thumb{transition:none}}
/* Compact scheduling: one line of controls, then only the requested work blocks. */
html body #crmWorkSchedule .ws-confirm-banner{padding:14px 16px;gap:8px}
html body #crmWorkSchedule .ws-confirm-banner>strong{font-size:var(--fs-2xl,22px)!important;margin-bottom:8px;line-height:1.25!important}
html body #crmWorkSchedule .ws-confirm-banner>label,html body #crmWorkSchedule .ws-range-controls label{font-size:var(--fs-lg,14px)!important;gap:6px}
html body #crmWorkSchedule #wsRange{font-size:var(--fs-xl,17px)!important;min-height:34px}
html body #crmWorkSchedule #wsEditWeek,html body #crmWorkSchedule #wsEditMonth{font-size:var(--fs-xl,17px)!important;min-height:38px!important}
html body #crmWorkSchedule .ws-dialog-body{padding:14px 18px}
html body #crmWorkSchedule .ws-range-controls{flex-basis:auto;gap:8px}
html body #crmWorkSchedule .ws-confirm-banner>p:not(.ws-copy-status){display:none}
html body #crmWorkSchedule .ws-week-receipt{padding:6px 10px}
html body #crmWorkSchedule .ws-week{gap:7px}
html body #crmWorkSchedule .ws-week>div{grid-template-columns:130px minmax(0,1fr);padding:8px 12px;gap:10px;align-items:center}
#crmWorkSchedule .ws-bulk-hours{padding:10px 12px;margin:10px 0}
#crmWorkSchedule .ws-bulk-head{gap:8px;margin-bottom:4px}
#crmWorkSchedule [data-apply-hours]{margin:0;min-height:30px;padding:5px 9px;font-size:var(--fs-md,13.5px)}
#crmWorkSchedule .ws-blocks-control{min-width:0;display:grid;grid-template-columns:88px minmax(0,1fr);gap:10px;align-items:center}
#crmWorkSchedule .ws-block-count{display:flex;align-items:center;gap:3px;flex-wrap:wrap}
#crmWorkSchedule .ws-block-count>span{width:100%;font-size:var(--fs-sm,12.5px);color:var(--muted)}
html body #crmWorkSchedule .ws-block-count button{height:28px;min-height:28px;min-width:25px;padding:2px 6px;border:1px solid var(--border);border-radius:6px;background:var(--surface);font-size:var(--fs-lg,14px);color:var(--text)}
html body #crmWorkSchedule .ws-block-count button[aria-pressed=true]{border-color:#69a1ce;background:color-mix(in srgb,#69a1ce 15%,var(--surface));color:var(--text)}
#crmWorkSchedule .ws-block-ranges{display:grid;gap:4px;min-width:0}
#crmWorkSchedule .ws-range-caption{font-size:var(--fs-sm,12.5px);line-height:1.2}
#crmWorkSchedule .ws-range-caption output{font-size:var(--fs-lg,14px);margin-left:3px}
#crmWorkSchedule .ws-range-scale{display:none}
#crmWorkSchedule .ws-range-track{margin:0 10px;height:26px}
#crmWorkSchedule .ws-block-error{grid-column:1/-1;font-size:var(--fs-md,13.5px);color:var(--premium-red)}
#crmWorkSchedule .ws-block-error:empty{display:none}
#crmWorkSchedule .ws-day-off .ws-block-ranges{display:none}
#crmWorkSchedule .ws-day-off .ws-block-count{opacity:.5}
#crmWorkSchedule .ws-single-axis{gap:3px}
#crmWorkSchedule .ws-axis-labels{display:flex;align-items:center;justify-content:space-between;gap:4px 10px;flex-wrap:wrap;font-size:var(--fs-md,13.5px);line-height:1.4;font-weight:var(--fw-s,600);font-variant-numeric:tabular-nums;color:var(--text)}
#crmWorkSchedule .ws-axis-scale{display:flex;justify-content:space-between;font-size:var(--fs-sm,12.5px);line-height:1.2;color:var(--muted)}
#crmWorkSchedule .ws-multi-track{height:30px;margin:0 10px;touch-action:none}
#crmWorkSchedule .ws-axis-segment{position:absolute;top:10px;height:12px;border-radius:6px;background:#69a1ce;cursor:grab;z-index:1;touch-action:none}
#crmWorkSchedule .ws-axis-segment:active{cursor:grabbing}
html body #crmWorkSchedule .ws-multi-track input[type=range]{z-index:2}
html body #crmWorkSchedule .ws-multi-track input[type=range]:focus{z-index:3}
#crmWorkSchedule .ws-blocks-control.is-off .ws-single-axis{opacity:.4}
html body #crmWorkSchedule .ws-dialog-footer{position:sticky;bottom:0;z-index:5;display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 18px;border-top:1px solid var(--border);background:var(--surface)}
html body #crmWorkSchedule .ws-dialog-footer #wsSaveHours{margin:0;min-height:38px}
#crmWorkSchedule .ws-dialog-footer button{min-height:38px}
@media(max-width:600px){html body #crmWorkSchedule .ws-week>div{grid-template-columns:1fr;gap:6px;padding:8px 10px}#crmWorkSchedule .ws-blocks-control{grid-template-columns:76px minmax(0,1fr);gap:8px}}

/* Fixed frame: only the schedule body scrolls on smaller displays. */
html.crm-premium-trial body #crmWorkSchedule{box-sizing:border-box;width:min(900px,calc(100vw / var(--crm-ui-scale,1) - 24px));height:min(820px,calc(100dvh / var(--crm-ui-scale,1) - 24px));max-height:calc(100dvh / var(--crm-ui-scale,1) - 24px);padding:0;overflow:hidden}
html.crm-premium-trial body #crmWorkSchedule[open]{display:flex;flex-direction:column}
html.crm-premium-trial body #crmWorkSchedule>header{flex:none;padding:10px 16px;align-items:center}
html.crm-premium-trial body #crmWorkSchedule h2{font-size:var(--fs-xl,17px)!important;line-height:1.3}
html.crm-premium-trial body #crmWorkSchedule>header small{font-size:var(--fs-sm,12.5px)!important}
html.crm-premium-trial body #crmWorkSchedule>nav{flex:none;padding:6px 16px;gap:6px}
html.crm-premium-trial body #crmWorkSchedule>.ws-dialog-body{flex:1;min-height:0;overflow:auto;padding:8px 16px;overscroll-behavior:contain}
html.crm-premium-trial body #crmWorkSchedule .ws-confirm-banner{padding:8px 10px;gap:6px 10px;margin:0}
html.crm-premium-trial body #crmWorkSchedule .ws-confirm-banner>strong{font-size:var(--fs-xl,17px)!important;margin:0;line-height:1.3!important}
html.crm-premium-trial body #crmWorkSchedule :is(#wsRange,#wsEditWeek,#wsEditMonth){font-size:var(--fs-lg,14px)!important;min-height:32px!important;height:32px;padding:4px 6px!important}
html.crm-premium-trial body #crmWorkSchedule .ws-confirm-banner>label{min-width:170px}
html.crm-premium-trial body #crmWorkSchedule #wsRepeatWeek{min-height:32px;font-size:var(--fs-md,13.5px)!important}
html.crm-premium-trial body #crmWorkSchedule .ws-help{font-size:var(--fs-sm,12.5px)!important;line-height:1.35!important;margin:5px 0!important}
html.crm-premium-trial body #crmWorkSchedule .ws-bulk-hours{padding:7px 10px;margin:6px 0}
html.crm-premium-trial body #crmWorkSchedule .ws-bulk-head{margin-bottom:2px;gap:6px}
html.crm-premium-trial body #crmWorkSchedule .ws-bulk-head strong{font-size:var(--fs-lg,14px)!important}
html.crm-premium-trial body #crmWorkSchedule .ws-week{gap:4px}
html.crm-premium-trial body #crmWorkSchedule .ws-week>div{grid-template-columns:110px minmax(0,1fr);padding:4px 10px;gap:8px;border-radius:8px}
html.crm-premium-trial body #crmWorkSchedule .ws-week label{font-size:var(--fs-lg,14px)!important}
html.crm-premium-trial body #crmWorkSchedule .ws-blocks-control{grid-template-columns:82px minmax(0,1fr);gap:8px}
html.crm-premium-trial body #crmWorkSchedule .ws-block-count>span{font-size:var(--fs-sm,12.5px)!important}
html.crm-premium-trial body #crmWorkSchedule .ws-axis-labels{font-size:var(--fs-sm,12.5px)!important;line-height:1.2}
html.crm-premium-trial body #crmWorkSchedule .ws-axis-scale{font-size:var(--fs-sm,12.5px)!important;line-height:1}
html.crm-premium-trial body #crmWorkSchedule .ws-week-receipt{padding:4px 8px}
html.crm-premium-trial body #crmWorkSchedule>.ws-dialog-footer{position:relative;inset:auto;flex:none;margin:0;margin-top:auto;padding:8px 16px;min-height:48px;box-sizing:border-box;z-index:5}
html.crm-premium-trial body #crmWorkSchedule>.ws-dialog-footer button{font-size:var(--fs-lg,14px)!important;min-height:34px!important;margin:0!important}
html.crm-premium-trial body #crmWorkSchedule #wsError:empty{display:none}
@media(max-width:600px){html.crm-premium-trial body #crmWorkSchedule .ws-week>div{grid-template-columns:85px minmax(0,1fr);padding:5px;gap:5px}html.crm-premium-trial body #crmWorkSchedule .ws-blocks-control{grid-template-columns:1fr;gap:3px}html.crm-premium-trial body #crmWorkSchedule .ws-block-count{flex-wrap:nowrap}html.crm-premium-trial body #crmWorkSchedule .ws-block-count>span{width:auto;margin-right:auto}html.crm-premium-trial body #crmWorkSchedule>.ws-dialog-footer{flex-wrap:nowrap;padding:8px}html.crm-premium-trial body #crmWorkSchedule>.ws-dialog-footer button{flex:1;min-width:0;font-size:var(--fs-sm,12.5px)!important;padding:6px}}
