/* Scoped repairs and Pilot controls. */
#manageProjectsDialog{width:min(850px,94vw);box-sizing:border-box}
#manageProjectsList{max-height:65vh;overflow:auto}
#manageProjectsList .manage-project-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:16px!important;padding:14px 0}
#manageProjectsList .manage-project-title{width:auto!important;min-width:0!important;white-space:normal;overflow-wrap:break-word}
#manageProjectsList .manage-project-title strong{display:block;width:auto!important;word-break:normal!important}
#manageProjectsList .manage-project-row>.controls{display:flex!important;width:auto!important;flex:none;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin:0}
#manageProjectsList .manage-project-row button{position:static!important;transform:none!important;width:auto!important}
.document-header .project-complete-action{flex:0 0 auto;white-space:nowrap}
.desk-header-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.pilot-dialog{width:min(700px,94vw);box-sizing:border-box;border:1px solid #ccd5da;border-radius:14px;padding:24px;max-height:90vh;overflow:auto}
.pilot-dialog label{display:block;margin:12px 0}.pilot-dialog .field{width:100%;box-sizing:border-box}
.pilot-dialog .pilot-inline{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.pilot-dialog .pilot-inline label{flex:1;min-width:120px}
.pilot-dialog .pilot-inline input[type=checkbox]{width:auto}
.pilot-availability-day{border-top:1px solid #ddd;padding:10px 0}
.pilot-time-block{display:flex;gap:10px;align-items:center;margin:6px 0}
.pilot-time-block input{min-width:0;flex:1}.pilot-time-block button{flex:none}
.pilot-booking-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:8px;max-height:330px;overflow:auto}
.pilot-booking-page{max-width:780px;margin:50px auto;padding:24px;color:#17324b;font:300 16px Inter,Arial,sans-serif}
.pilot-booking-page h1,.pilot-booking-page h2{font-family:Georgia,serif;font-weight:400}
.pilot-booking-page .panel{background:white;border:1px solid #ddd;border-radius:14px;padding:24px}
.pilot-booking-page label{display:block;margin:14px 0}.pilot-booking-page .field{width:100%;box-sizing:border-box}
.pilot-booking-page .btn[aria-pressed=true]{background:#17324b;color:#f0dfba}
.service-delete-icon{color:#a43131!important}
html body #app .project-launch-widget>.template-project-actions{display:flex!important;flex-direction:column!important}
@media(max-width:650px){#manageProjectsList .manage-project-row{grid-template-columns:1fr!important}.document-header .project-complete-action{font-size:11px;white-space:normal;max-width:105px}.desk-page-header{flex-wrap:wrap}}
/* The desk editor and the saved desk share the same twelve-column layout. */
.desk-layout-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px;align-items:start}
.desk-layout-cell{grid-column:span var(--desk-span,4);height:var(--desk-height,440px);min-width:0;box-sizing:border-box}
.desk-layout-cell>.panel,.desk-layout-cell>.sch-widget{height:100%!important;min-height:0!important;max-height:100%;margin:0!important;box-sizing:border-box;overflow:auto;display:flex!important;flex-direction:column}
.desk-layout-cell .desk-scroll{flex:1;min-height:0;max-height:none;overflow:auto}
.desk-layout-tabs{margin-bottom:20px;flex-wrap:wrap!important}
.desk-layout-tabs .btn{margin-left:auto}
.desk-editor-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:12px 0 20px}
.desk-editor-toolbar label{display:grid;gap:6px;margin:0}.desk-editor-toolbar input{min-width:150px}.desk-editor-toolbar .field{max-width:100%;box-sizing:border-box}
.desk-editor .desk-page-header{align-items:center;position:sticky;top:0;z-index:15;background:var(--paper,#f7f5ef);padding:10px 0}
.desk-editor .desk-page-header h1{margin-bottom:8px}.desk-editor .desk-page-header p{margin:0}
.desk-layout-edit-cell{height:auto;border:1px solid #d5dee3;border-radius:14px;background:#fafbf9;padding:16px;display:flex;flex-direction:column;gap:12px;cursor:grab}
.desk-layout-edit-cell:active{cursor:grabbing}
.desk-panel-editor-head{display:flex;gap:10px;align-items:center;flex:none}.desk-panel-editor-head>strong{flex:1;min-width:0;overflow-wrap:anywhere}
.desk-panel-editor-head .btn{padding:3px 8px!important;min-height:28px!important;flex:none}
.desk-panel-editor-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex:none;border-bottom:1px solid #e1e5e8;padding-bottom:12px}
.desk-panel-editor-controls label{display:flex;align-items:center;gap:5px;font-size:12px}.desk-panel-editor-controls .field{width:auto;padding:5px;max-width:105px}
.desk-panel-editor-controls>button{margin-left:auto}
.desk-widget-preview{flex:0 0 auto;height:var(--desk-height,440px);min-height:0;overflow:hidden;cursor:default;pointer-events:none}
.desk-widget-preview>.panel,.desk-widget-preview>.sch-widget{height:100%!important;min-height:0!important;max-height:100%;margin:0!important;box-sizing:border-box;overflow:hidden;display:flex!important;flex-direction:column}
.desk-widget-preview .desk-scroll{flex:1;min-height:0;max-height:none;overflow:auto}
.booking-widget-actions{margin-top:auto;padding-top:16px;display:grid;gap:10px}
.booking-widget-links{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}
.booking-widget-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.booking-widget-buttons>.btn{width:100%!important;min-width:0!important;max-width:none!important;text-align:center;white-space:normal;justify-content:center;box-sizing:border-box}
.booking-widget-actions .btn:disabled{opacity:.4!important;cursor:not-allowed;pointer-events:none}
.booking-paused-note{color:#795929;background:#f8f1e3;border-radius:8px;padding:10px;font-size:13px}
.public-resource-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;border-bottom:1px solid #ddd;padding:12px 0}.public-resource-row>div{min-width:0;overflow-wrap:anywhere}
@media(max-width:1000px){.desk-layout-cell{grid-column:span 6}.desk-layout-cell[style*="--desk-span:12"]{grid-column:span 12}}
@media(max-width:650px){.desk-layout-cell{grid-column:span 12}.desk-editor .desk-page-header{position:static}.desk-editor-toolbar{align-items:center}.desk-editor-toolbar label{flex:1;min-width:140px}.public-resource-row{grid-template-columns:minmax(0,1fr) auto}.public-resource-row>button:last-child{grid-column:2}.booking-widget-buttons{gap:6px}.booking-widget-buttons>.btn{font-size:12px}}
.booking-calendar{border:1px solid #d6dde0;border-radius:12px;padding:16px;margin:18px 0;min-width:0}
.booking-calendar legend{padding:0 5px}.booking-calendar-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}
.booking-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;text-align:center}
.booking-weekday{font-size:12px;color:#607181;padding:7px 0}
.booking-date-button{border:1px solid #d9d3c4;border-radius:9px;padding:12px 0;background:#eee4cf;color:#17324b;font:inherit;cursor:pointer;min-width:0}
.booking-date-button:disabled{background:#f2f3f3;border-color:transparent;color:#a5afb4;cursor:default}
.booking-date-button[aria-pressed=true]{background:#17324b;color:#f2dfb4;border-color:#17324b}
.booking-date-button:focus-visible{outline:3px solid #b6a06c;outline-offset:2px}
.booking-calendar-heading .btn{min-width:36px}
/* Shared tab-delete affordance, with room above the tab to avoid clipping. */
.desk-tab-item,.template-tab-item{position:relative;display:flex;align-items:center;flex:0 0 auto}
.desk-layout-tabs,.template-tabs{padding-top:28px!important;overflow:visible!important}
html body #app .template-studio .studio-lower-tabs{padding-top:28px!important;min-height:86px}
html body .document-tabs .sch-tab-delete{position:absolute!important;left:50%!important;top:-22px!important;transform:translateX(-50%)!important;width:22px!important;min-width:22px!important;max-width:22px!important;height:22px!important;min-height:22px!important;max-height:22px!important;padding:3px!important;margin:0!important;border:0!important;border-radius:50%!important;background:#f7e9e7!important;color:#a43131!important;display:grid!important;place-items:center!important;opacity:0;pointer-events:none;cursor:pointer!important;z-index:5}
.sch-tab-delete svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
html body .studio-tab:hover>.sch-tab-delete,html body .studio-tab:focus-within>.sch-tab-delete,html body .desk-tab-item:hover>.sch-tab-delete,html body .desk-tab-item:focus-within>.sch-tab-delete,html body .template-tab-item:hover>.sch-tab-delete,html body .template-tab-item:focus-within>.sch-tab-delete{opacity:1;pointer-events:auto}
@media(hover:none){html body .document-tabs .sch-tab-delete{opacity:1;pointer-events:auto}}
@media(max-width:500px){.booking-calendar{padding:10px}.booking-calendar-grid{gap:4px}.booking-date-button{padding:10px 0}}
