/* Business cabinet only. Public booking, landing, Solo and API contracts are unchanged.
   Existing time geometry remains 1 minute = 1px; never resize calendar event heights. */
.shell {
  --canvas:#f4f6f3; --surface:#fff; --ink:#20252b; --muted:#58615d;
  --border:#dde3df; --edge:#89958e; --action:#245c49;
  --green:#245c49; --green-soft:#e8f2eb;
  --danger:#a7382c; --danger-soft:#fff0ec;
  max-width:1920px; font-size:15px; line-height:1.5;
  font-variant-numeric:tabular-nums;
}
.shell :is(h1,h2,h3){letter-spacing:-.035em}
.shell small,.shell .small{font-size:13px;line-height:1.5}
.shell :is(button,a,input,select,textarea,[tabindex]):focus-visible{outline:2px solid #245c49;outline-offset:3px}
.cabinet-skip{position:fixed;top:12px;left:16px;z-index:70;padding:12px 18px;background:white;border:2px solid #245c49;border-radius:10px;transform:translateY(-150%)}
.cabinet-skip:focus{transform:none}
.shell .sidebar{background:#191d23;color:#f8f6f1;border:0;padding:28px 16px 22px;gap:0}
.shell .sidebar .brand{padding:2px 7px 25px;gap:8px;font-size:19px;letter-spacing:-.04em}
.shell .sidebar .brand span:last-child{font-size:9px;letter-spacing:.1em;color:#d6dfd8;border-color:#66716d;padding-left:8px}
.shell .sidebar .mark{width:31px;height:31px}
.shell .workspace-switch{background:#252c32;border-color:#53615c;border-radius:12px;color:#f8f6f1;min-height:74px;margin:0 0 28px;padding:13px 12px}
.shell .workspace-switch strong{font-size:14px;max-width:148px}
.shell .workspace-switch small,.shell .sidebar-bottom .small{color:#b7c4bb;font-size:13px}
.shell .sidebar-nav{gap:6px}
.shell .sidebar-nav button{min-height:46px;color:#c3cec7;padding:10px 12px;gap:12px;font-size:14px;border:1px solid transparent;line-height:1.35}
.shell .sidebar-nav button:hover{background:#29332f;color:#fff}
.shell .sidebar-nav button.active{background:#34453c;color:#fff;border-color:#789581;box-shadow:inset 3px 0 #a9c09d}
.shell .sidebar .nav-icon{width:20px;flex:none}
.shell .sidebar-bottom{border-color:#43504a;padding:20px 8px 0;margin-top:auto}
.shell .sidebar-bottom button{color:#c3cec7;font-size:13px;min-height:44px}
.shell .sidebar :is(button,a):focus-visible{outline-color:#c0d8b6}
.shell .main-top{height:76px;background:#f4f6f3;padding-inline:32px;border-bottom:1px solid var(--border)}
.shell .main-top strong{font-weight:500;font-size:14px}
.shell .main-top .small{font-size:13px;margin-top:2px}
.shell .content{padding:28px 32px 40px;max-width:none}
.shell .page-heading{gap:24px;margin-bottom:20px}
.shell .page-heading h1{font-size:30px;line-height:1.25;margin-bottom:7px;overflow-wrap:anywhere}
.shell .page-heading p{font-size:14px}
.shell .button{min-height:48px;border-radius:10px;transition:background 120ms,border-color 120ms;white-space:normal}
.shell .button:hover:not(:disabled){transform:none;background:#194735;border-color:#194735}
.shell .button.secondary:hover:not(:disabled),.shell .button.ghost:hover:not(:disabled){background:#e8ede7;border-color:var(--edge)}
.shell .button.danger:hover:not(:disabled){background:#862d23;border-color:#862d23}
.shell .button.small{min-height:44px;font-size:13px}
.shell .icon-button{width:44px;height:44px;border-radius:10px;border-color:var(--edge)}
.shell .date-controls{gap:8px;margin-bottom:14px;flex-wrap:wrap}
.shell .date-controls input{height:44px;border-radius:10px;border-color:var(--edge);font-size:15px;min-width:144px}
.shell .facts{font-size:13px;margin:0 0 22px}
.shell .card{border-radius:14px;box-shadow:none}
.shell .day-overview{margin-bottom:24px}
.shell .day-overview-heading h2{font-size:18px}
.shell .day-overview>p{color:var(--muted);max-width:780px;margin:6px 0 12px}
.shell .day-overview-cards{gap:12px}
.shell .day-metric{animation:none;border-top:3px solid #859c8e;padding:16px 18px;gap:6px}
.shell .day-metric[data-metric=done]{border-top-color:#667c8e}
.shell .day-metric[data-metric=cancelled]{border-top-color:#a48b7e}
.shell .day-metric>span{font-size:13px;line-height:1.4;font-weight:500}
.shell .day-metric>strong{font-size:32px;font-weight:600;letter-spacing:-.05em}
.shell .day-metric>small{font-size:13px;line-height:1.4}
.shell .day-overview-warning{color:#805500;background:#fff6df;border-color:#b69859;max-width:none}
.shell .dashboard-grid{grid-template-columns:minmax(0,1fr) 280px;gap:20px}
.shell .dashboard-grid>div{min-width:0}
.calendar-view-switch{display:flex;gap:4px;width:fit-content;padding:4px;background:#e5ebe5;border-radius:11px;margin:0 0 12px}
.shell .calendar-view-switch .chip{min-height:40px;min-width:88px;border:0;border-radius:8px;background:transparent;color:var(--muted)}
.shell .calendar-view-switch .chip.active{background:white;color:var(--ink);box-shadow:0 1px 3px #19251c19}
.shell .calendar-head{padding:16px 18px;gap:12px;align-items:flex-start;flex-wrap:wrap}
.shell .calendar-head strong{font-size:16px}
.shell .calendar-head span{font-size:13px;max-width:350px}
.calendar-scroll-hint{padding:8px 18px;background:#f6f8f4;color:var(--muted);border-bottom:1px solid var(--border)}
.shell .calendar-scroller{scrollbar-color:#83988a #edf1eb;scrollbar-width:auto;scroll-padding:64px 16px}
.shell .cal-person,.shell .cal-corner{height:64px;background:#f4f7f2}
.shell .cal-person{padding:10px;gap:9px;min-width:0}
.shell .cal-person>div{min-width:0}
.shell .cal-person strong{display:block;font-size:13px}
.shell .cal-person small{font-size:13px}
.shell .avatar{height:30px;width:30px;min-width:30px;border-radius:10px;background:#e2eadf;font-size:13px}
.shell .cal-time-tick{font-size:12px;color:#58615d}
.shell .cal-event{box-shadow:none;border-radius:6px;left:5px;right:5px}
.shell .cal-event:focus-visible{z-index:7;outline-offset:1px}
.shell .cal-event.work{background:#e4efe5;border-left-color:#376d50}
.shell .cal-event.done{background:#edf2f4;border-left-color:#58758b}
.shell .cal-event:hover{filter:brightness(.96)}
.shell .cal-event strong,.shell .cal-event span{font-size:12px;line-height:12px}
.shell .cal-event small{font-size:11px;line-height:12px}
.shell .cal-event.short strong{font-size:10px;line-height:1}
.shell .rail{gap:16px}
.shell .rail .card{padding:20px}
.shell .rail h3{font-size:17px;margin-bottom:16px}
.shell .rail-item{padding:14px 0;font-size:13px;gap:12px}
.shell .rail-item strong{font-size:14px}
.shell .rail-item button{min-height:44px;font-size:13px}
.shell .rail .button{width:100%}
.shell .calendar-list-view .calendar{display:none}
.shell .calendar-list-view .mobile-agenda{display:block}
.shell .calendar-list-view .mobile-agenda .mobile-rhythm{display:none}
.shell .filter-row{gap:8px;padding:0 0 16px}
.shell .chip{min-height:44px;border-radius:9px;border-color:var(--edge)}
.shell .chip.active{background:#245c49;color:#fff;border-color:#245c49}
.shell .agenda-item{padding:16px;border-radius:12px;grid-template-columns:72px minmax(0,1fr);margin-bottom:10px;border-left:3px solid #6e927b}
.shell .agenda-item .time{font-family:Onest,system-ui,sans-serif;font-size:19px;font-weight:600;letter-spacing:-.04em}
.shell .agenda-item b{font-size:15px;line-height:1.4}
.shell .agenda-item small{font-size:13px}
.shell .agenda-item.personal{border-left-color:#877795}
.shell .agenda-item.done{border-left-color:#58758b}
.shell .agenda-empty,.shell .empty-message{padding:28px;border-radius:12px;font-size:15px;line-height:1.6}
.shell .empty-main{padding:44px 24px}
.shell .empty-main h2{font-size:24px}
.shell .empty-main .empty-icon{font-family:Onest,system-ui,sans-serif;font-size:40px}
.shell .setup-grid{gap:10px}
.shell .setup-card{border-radius:10px;min-height:128px;padding:16px}
.shell .setup-card small{font-size:13px}
.shell .panel-list{gap:0;border:1px solid var(--border);border-radius:14px;background:white;overflow:hidden}
.shell .list-row{border:0;border-radius:0;border-bottom:1px solid var(--border);min-height:86px;padding:18px 20px}
.shell .list-row:last-child{border-bottom:0}
.shell .list-row>div{min-width:0;overflow-wrap:anywhere}
.shell .list-row strong{font-size:16px}
.shell .badge{font-size:12px;line-height:1.4;border-radius:6px;padding:4px 8px}
.shell .section-card,.shell .settings-grid .card{padding:24px}
.shell .field label{font-size:14px}
.shell .field :is(input,select,textarea){font-size:16px;border-radius:10px;min-height:48px}
.shell .field :is(input,select,textarea):focus{border-color:#245c49;box-shadow:0 0 0 2px #245c491a}
.shell .settings-grid{gap:20px}
.shell .more-links button{min-height:56px;font-size:16px}
.calendar-loading{min-height:320px;margin-top:16px}
.calendar-loading p{font-size:15px}
.calendar-skeleton{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:24px}
.calendar-skeleton i{display:block;height:200px;border-radius:10px;background:linear-gradient(#e8ede7 0 44px,#f4f6f2 44px);border:1px solid #dde3df}
/* Only cabinet dialogs. Existing focus trap / inert / scroll lock logic is preserved. */
body:has(.shell) .modal-backdrop{padding:24px;background:#111b2470;place-items:center end}
body:has(.shell) .modal{border-radius:20px;width:min(100%,480px);max-height:calc(100dvh - 48px);padding:28px;color:#20252b;font-variant-numeric:tabular-nums}
body:has(.shell) .modal.wide{width:min(100%,640px)}
body:has(.shell) .modal-head{padding-bottom:20px;border-bottom:1px solid #dde3df}
body:has(.shell) .modal-head h2{font-size:24px}
body:has(.shell) .modal .field :is(input,select,textarea){font-size:16px;min-height:48px;border-radius:10px}
body:has(.shell) .modal :is(.button,.icon-button){min-height:44px}
body:has(.shell) .modal .button:not(.secondary):not(.ghost):not(.danger){background:#245c49;border-color:#245c49}
body:has(.shell) .modal .button:hover{transform:none}
body:has(.shell) .modal :is(button,a,input,select,textarea):focus-visible{outline:2px solid #245c49;outline-offset:3px}
@media(min-width:1000px) and (max-width:1279px){
 .shell{grid-template-columns:216px minmax(0,1fr)}
 .shell .content,.shell .main-top{padding-inline:24px}
 .shell .sidebar{padding-inline:12px}
 .shell .sidebar .brand{font-size:17px;gap:6px}
 .shell .dashboard-grid{grid-template-columns:minmax(0,1fr)}
 .shell .rail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .shell .page-heading{flex-wrap:wrap}
}
@media(max-width:999px){
 .shell .content{padding:24px 20px calc(100px + env(safe-area-inset-bottom))}
 .shell .mobile-top{height:72px;background:#191d23;color:#f8f6f1;padding-inline:20px}
 .shell .mobile-top .brand span:last-child{color:#c3cec7;border-color:#66716d}
 .shell .mobile-top button{color:#f8f6f1;min-height:48px}
 .shell .mobile-top button small{color:#c3cec7;font-size:12px}
 .shell .mobile-top button strong{font-size:13px;max-width:100%}
 .shell .mobile-top :is(button,a):focus-visible{outline-color:#c0d8b6}
 .shell .page-heading{display:block}
 .shell .page-heading h1{font-size:27px}
 .shell .page-heading-actions{margin-top:18px;gap:10px}
 .shell .page-heading-actions .button{flex:1;min-width:0}
 .shell .dashboard-grid{grid-template-columns:minmax(0,1fr)}
 .shell .calendar,.calendar-view-switch,.shell .rail{display:none}
 .shell .mobile-agenda{display:block}
 .shell .mobile-nav{padding-top:8px;padding-bottom:max(8px,env(safe-area-inset-bottom));background:#fff}
 .shell .mobile-nav button{font-size:12px;min-height:52px;min-width:88px;gap:5px;border-radius:10px;padding:6px 12px}
 .shell .mobile-nav button.active{background:#e8f2eb;color:#245c49}
 .shell .settings-grid{grid-template-columns:minmax(0,1fr)}
 .shell .day-metric{padding:14px}
 .shell .setup-grid{grid-template-columns:minmax(0,1fr)}
 .shell .setup-card{min-height:0}
 .shell .setup-card b{margin-top:8px}
 body:has(.shell) .modal-backdrop{place-items:center;padding:20px}
}
@media(max-width:599px){
 .shell .content{padding-inline:16px;padding-top:22px}
 .shell .mobile-top{padding-inline:16px}
 .shell .page-heading h1{font-size:25px}
 .shell .date-controls{gap:6px}
 .shell .date-controls input{font-size:16px;flex:1;max-width:none;min-width:130px}
 .shell .day-overview-cards{grid-template-columns:minmax(0,1fr);gap:8px}
 .shell .day-metric{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 16px;border-top:1px solid var(--border);border-left:3px solid #859c8e;padding:12px 14px}
 .shell .day-metric[data-metric=done]{border-top-color:var(--border);border-left-color:#667c8e}
 .shell .day-metric[data-metric=cancelled]{border-top-color:var(--border);border-left-color:#a48b7e}
 .shell .day-metric>strong{grid-column:2;grid-row:1/3;align-self:center;font-size:28px}
 .shell .day-metric>small{grid-column:1}
 .shell .day-overview-heading{gap:4px}
 .shell .day-overview-heading .small{font-size:12px}
 .shell .agenda-item{padding:15px 12px;grid-template-columns:64px minmax(0,1fr);gap:8px}
 .shell .list-row{flex-direction:column;gap:14px;padding:18px 16px}
 .shell .list-row .row-actions{max-width:100%;width:100%;justify-content:flex-start;gap:8px}
 .shell .section-card,.shell .settings-grid .card{padding:20px 16px}
 .shell .calendar-skeleton{gap:8px}
 body:has(.shell) .modal-backdrop{padding:0}
 body:has(.shell) .modal,body:has(.shell) .modal.wide{width:100%;height:100dvh;max-height:100dvh;border-radius:0;padding:24px 18px calc(24px + env(safe-area-inset-bottom));overscroll-behavior:contain}
 body:has(.shell) .modal-head{align-items:center}
 body:has(.shell) .modal .field-row{grid-template-columns:1fr}
 body:has(.shell) .modal .form-actions{gap:8px}
 body:has(.shell) .modal .form-actions .button{flex:1;min-width:0}
}
@media(max-width:359px){
 .shell .content,.shell .mobile-top{padding-inline:12px}
 .shell .mobile-top .brand{font-size:15px;gap:5px}
 .shell .mobile-top .brand span:last-child{font-size:8px;padding-left:5px}
 .shell .page-heading-actions{flex-direction:column;align-items:stretch}
 .shell .mobile-nav button{min-width:80px;padding-inline:8px}
}
@media(prefers-reduced-motion:no-preference){
 .shell .content{animation:cabinet-enter 180ms ease-out both}
 @keyframes cabinet-enter{from{opacity:.65;transform:translateY(4px)}to{opacity:1;transform:none}}
}
@media(prefers-reduced-motion:reduce){
 .shell *,.shell *::before,.shell *::after,body:has(.shell) .modal{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 .shell .button,.shell .day-metric,.shell .content{transform:none!important}
}

/* Settings and master onboarding: one compact type scale, explicit spacing.
   Scoped to cabinet/auth; public booking and minute-based calendar geometry stay intact. */
.shell .content{width:100%;min-width:0}
.shell h2{font-size:20px;line-height:1.35;margin:0 0 12px;letter-spacing:-.025em}
.shell h3{font-size:17px;line-height:1.4;margin:0 0 10px}
.shell .card p{font-size:14px;line-height:1.6;color:var(--muted);margin:0 0 16px;overflow-wrap:anywhere}
.shell .card p:last-child{margin-bottom:0}
.shell .card .eyebrow{margin-bottom:8px;font-size:10px;line-height:1.5}
.shell .settings-stack{display:grid;gap:24px;max-width:1120px}
.shell .settings-grid{align-items:start;gap:20px;min-width:0}
.shell .settings-stack>.card,.shell .settings-grid>.card{padding:24px;min-width:0}
.shell .settings-details{display:grid;gap:14px;margin:18px 0 22px}
.shell .settings-details>div{display:grid;gap:4px;min-width:0}
.shell .settings-details dt{font-size:12px;color:var(--muted)}
.shell .settings-details dd{font-size:15px;font-weight:500;margin:0;overflow-wrap:anywhere}
.shell .settings-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
.shell .settings-actions:last-child{margin-bottom:0}
.shell .account-details{border-top:1px solid var(--border);margin-top:20px;padding-top:12px}
.shell .account-details summary,.invite-advanced summary{font-size:13px;min-height:44px;cursor:pointer;line-height:1.5;padding-block:12px;color:var(--muted)}
.shell .account-details p{margin-top:8px;overflow-wrap:anywhere}
.shell .manual-settings>p{max-width:780px}
.shell .manual-settings>.button{margin-bottom:16px}
.shell .manual-settings>.break-row:last-child{padding-bottom:0}
.shell .manual-settings .break-row{align-items:flex-start;gap:16px}
.shell .manual-settings .break-row>div{min-width:0;overflow-wrap:anywhere}
.shell .manual-settings .break-row>div:last-child{display:flex;flex-wrap:wrap;gap:8px}
.shell .manual-settings .break-row small{display:block;margin-top:5px;line-height:1.5}
.shell .section-heading.compact{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 16px}
.shell .section-heading.compact h2{margin:0 0 5px}
.shell .section-heading.compact p{max-width:640px;font-size:13px;margin:0;color:var(--muted)}
.shell .section-heading.compact>.button{flex-shrink:0}
.shell .setup-callout{display:flex;align-items:center;gap:20px;justify-content:space-between;margin-bottom:24px}
.shell .setup-callout p{margin:0}
.shell .setup-callout>.button{flex-shrink:0}
.shell .onboarding-card{background:#f8fbf7}
.shell .onboarding-steps{list-style:none;margin:24px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.shell .onboarding-steps li{display:flex;align-items:flex-start;gap:10px;min-width:0}
.shell .onboarding-steps li>span{height:28px;width:28px;flex:none;display:grid;place-items:center;border:1px solid var(--edge);border-radius:50%;font-size:12px}
.shell .onboarding-steps li.complete>span{background:var(--green);border-color:var(--green);color:white}
.shell .onboarding-steps strong{font-size:14px;display:block}
.shell .onboarding-steps small{font-size:12px;color:var(--muted);display:block;margin-top:3px;overflow-wrap:anywhere}
.shell .field-error:not(:empty){margin:8px 0 16px}
.shell .field-error:empty{min-height:0}
.shell .settings-grid .field{margin-top:18px}
.shell .share-box{flex-wrap:wrap}
.shell .share-box input{max-width:100%;font-size:14px}
.shell .sub-section{margin-top:32px}
.shell .page-heading-actions:empty{display:none}
.invite-instructions{margin:0 0 20px;padding-left:23px;display:grid;gap:12px;font-size:14px;line-height:1.55;color:var(--muted)}
.invite-advanced{border-top:1px solid var(--border);margin-top:24px;padding-top:8px}
.invite-advanced p{margin:8px 0}
.state-card .eyebrow{margin-top:28px;font-size:10px}
.state-card .eyebrow+h1{margin-top:10px}
.state-card .invite-primary{margin-top:24px}
.state-card .field input{font-size:16px}
.state-card .summary strong{overflow-wrap:anywhere}
.state-card .field-error:not(:empty){padding-block:12px}
.state-card .button{white-space:normal}
@media(max-width:999px){
 .shell .settings-stack{gap:20px}
 .shell .onboarding-steps{gap:12px}
}
@media(max-width:599px){
 .shell h2{font-size:19px;line-height:1.35}
 .shell .settings-stack>.card,.shell .settings-grid>.card{padding:20px 18px}
 .shell .settings-stack,.shell .settings-grid{gap:16px}
 .shell .settings-actions{gap:8px}
 .shell .settings-actions .button{flex:1 1 150px}
 .shell .section-heading.compact{align-items:flex-start;flex-wrap:wrap;gap:12px}
 .shell .section-heading.compact>.button{width:100%}
 .shell .manual-settings .break-row{flex-direction:column}
 .shell .onboarding-steps{grid-template-columns:minmax(0,1fr);gap:16px;margin-top:20px}
 .shell .setup-callout{align-items:stretch;flex-direction:column;gap:16px}
 .state-card{padding:28px 22px;border-radius:18px}
 .state-card h1{font-size:27px}
 .state-card .summary>div{gap:16px}
}

.state-card .invite-recovery{margin-top:20px}
.state-card .invite-recovery p{margin:0 0 12px;font-size:13px;line-height:1.5}

.shell .company-onboarding{margin-bottom:24px}
.shell .company-onboarding>.settings-actions{margin-bottom:8px}

.state-card>.account-details{margin:16px 0 24px}
.state-card>.account-details>summary{cursor:pointer;font-size:13px;line-height:1.5;padding:10px 0}
.state-card>.quiet-note p{margin:8px 0 0;font-size:13px}

/* Cabinet date/select controls: deliberately namespaced, including modal and managed move. */
.cabinet-control{position:relative;display:block;min-width:0;width:100%;color:#20252b;font-family:Onest,Arial,sans-serif}
.cabinet-control-native{position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;clip-path:inset(50%)!important;opacity:0!important;pointer-events:none!important}
.cabinet-control-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:46px;padding:10px 13px;border:1px solid #aebbb3;border-radius:12px;background:#fff;color:#20252b;font:500 14px/1.45 Onest,Arial,sans-serif;text-align:left;cursor:pointer;appearance:none;-webkit-appearance:none}
.cabinet-control-value{min-width:0;overflow-wrap:anywhere;white-space:normal}
.cabinet-control-icon{display:flex;flex:0 0 auto;align-items:center;justify-content:center;width:20px;color:#426452;font-size:19px}
.cabinet-control-trigger:hover:not(:disabled){border-color:#426452;background:#f7faf7}
.cabinet-control-trigger[aria-expanded="true"]{border-color:#245c49;box-shadow:0 0 0 3px #245c4918}
.cabinet-control-trigger:focus-visible,.cabinet-control-popup button:focus-visible{outline:3px solid #245c49;outline-offset:2px}
.cabinet-control-trigger:disabled{background:#f0f2ef;color:#68736c;border-color:#d8dfd9;cursor:not-allowed}
.cabinet-control-trigger[aria-invalid="true"]{border-color:#a7382c}
.cabinet-control-popup{position:fixed;z-index:1100;display:block;box-sizing:border-box;max-width:calc(100vw - 24px);overflow:auto;overscroll-behavior:contain;padding:8px;border:1px solid #cbd8ce;border-radius:16px;background:#fff;color:#20252b;box-shadow:0 14px 44px #182b2426;font:400 14px/1.45 Onest,Arial,sans-serif;text-align:left}
.cabinet-control-popup[hidden]{display:none!important}
.cabinet-control-popup button{appearance:none;-webkit-appearance:none;color:#20252b;font:inherit;cursor:pointer;touch-action:manipulation}
.cabinet-control-popup button:disabled{color:#919b94;cursor:not-allowed}
.cabinet-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:46px;padding:11px 12px;border:0;border-radius:9px;background:#fff;text-align:left}
.cabinet-choice>span:first-child{min-width:0;overflow-wrap:anywhere;white-space:normal}
.cabinet-choice-check{flex:0 0 18px;color:#245c49;font-weight:600;text-align:center}
.cabinet-choice[aria-selected="true"]{background:#e8f2eb;color:#194a38;font-weight:600}
.cabinet-choice:hover:not(:disabled),.cabinet-choice:focus{background:#eef4ef}
.cabinet-control-empty{padding:12px;margin:0;color:#58615d}
.cabinet-date-popup{padding:12px}
.cabinet-date-heading{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;margin-bottom:10px}
.cabinet-date-heading strong{text-align:center;font-size:15px;font-weight:600;text-transform:capitalize}
.cabinet-date-nav{min-width:44px;min-height:44px;border:1px solid #dde3df;border-radius:10px;background:#f7faf7;font-size:24px!important;line-height:1}
.cabinet-date-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.cabinet-date-week>[role="gridcell"]{min-width:0;padding:2px 0}
.cabinet-date-weekdays{margin-bottom:4px;text-align:center;color:#58615d;font-size:12px}
.cabinet-date-weekdays span{padding:5px 0}
.cabinet-date-day{display:block;width:100%;min-height:44px;padding:6px 0;border:1px solid transparent;border-radius:10px;background:#fff;text-align:center;font-size:14px!important;font-weight:500!important}
.cabinet-date-day[aria-current="date"]{border-color:#689b7e;color:#245c49;font-weight:600!important}
.cabinet-date-day:hover:not(:disabled){background:#eef4ef}
.cabinet-date-day.is-selected,.cabinet-date-day.is-selected:hover{background:#245c49;color:#fff}
.cabinet-date-day:disabled{background:#f9faf8;color:#9aa29b}
.cabinet-date-footer{display:flex;justify-content:space-between;gap:12px;margin-top:10px;padding-top:8px;border-top:1px solid #e3e9e3}
.cabinet-date-footer button{min-height:44px;padding:8px 12px;border:0;border-radius:9px;background:#eef4ef;color:#245c49;font-weight:600}
.cabinet-control-hint{margin:7px 0 0;font-size:11px;line-height:1.45;color:#58615d;text-align:center}
.date-controls>.cabinet-control{width:auto;min-width:170px;max-width:260px;flex:0 1 240px}
.rhythm-picker>.cabinet-control{width:175px;max-width:70%}
.rhythm-picker .cabinet-control-trigger{font-size:13px;padding:9px 10px}
.hours-row>.cabinet-control .cabinet-control-trigger{gap:3px;padding:8px;font-size:13px}
.hours-row>.cabinet-control .cabinet-control-icon{width:10px;font-size:14px}
.managed-move>.cabinet-control{max-width:352px;margin:6px 0 12px}
.cabinet-share-guidance{margin-top:18px;padding-top:18px;border-top:1px solid #dde3df}
.cabinet-share-guidance h3{margin:0 0 10px;font-size:16px}
.cabinet-share-guidance ul{padding-left:20px;margin:0;display:grid;gap:10px;font-size:14px;color:#58615d}
.cabinet-share-guidance p{margin:14px 0 0;font-size:13px;color:#58615d}
@media(max-width:480px){
 .hours-row>.cabinet-control{grid-column:1;grid-row:1}
 .date-controls>.cabinet-control{flex:1 1 160px;min-width:0;max-width:none}
 .cabinet-date-popup{padding:10px}
 .cabinet-date-week{gap:1px}
 .cabinet-date-day{min-height:44px}
 .cabinet-share-guidance ul{font-size:13px}
}
@media(forced-colors:active){
 .cabinet-control-popup,.cabinet-control-trigger{border:1px solid CanvasText}
 .cabinet-date-day.is-selected,.cabinet-choice[aria-selected="true"]{outline:2px solid Highlight;outline-offset:-3px}
 .cabinet-date-day[aria-current="date"]{border:2px solid CanvasText}
}

/* BEGIN mobile-polish: typography and booking detail */
/* Mobile typography: explicit author colors prevent native Safari blue buttons.
   100% text-size-adjust is set at the root; pinch zoom and user text sizing remain enabled.
   Regular controls use a compact type scale, with separate 44px+ touch targets. */
.shell .button{font-size:.875rem;line-height:1.4;overflow-wrap:normal;word-break:normal}
.shell .button.small{font-size:.8125rem}
.shell .more-links button{color:var(--ink);-webkit-appearance:none;appearance:none;font-size:.9375rem;line-height:1.45;overflow-wrap:normal;word-break:normal}
.shell .more-links button span{flex:none}
body:has(.shell) .modal{font-size:.875rem;line-height:1.5}
body:has(.shell) .modal .button{font-size:.875rem;line-height:1.4;white-space:normal;overflow-wrap:normal;word-break:normal}
body:has(.shell) .modal .button.small{font-size:.8125rem}
body:has(.shell) .modal .modal-head .icon-button{flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px}
body:has(.shell) .modal .form-actions .button{flex:1 1 9rem;min-width:0}
@media(max-width:999px){
 .shell .date-controls input,.shell .rhythm-picker select,.shell .share-box input{font-size:16px}
 .shell .mobile-top .brand{gap:6px;font-size:16px}
 .shell .mobile-top .brand span:last-child{font-size:9px;letter-spacing:.08em;padding-left:6px}
}
@media(max-width:359px){
 .shell .mobile-top .brand{gap:5px;font-size:15px}
 .shell .mobile-top .brand span:last-child{font-size:8px;padding-left:5px}
}

/* Booking detail: separate visit, contact facts and actions, instead of a wall of rows.
   Only content wraps at arbitrary characters; action labels break at word boundaries. */
body:has(.shell) .modal .booking-detail{display:grid;gap:20px;min-width:0}
body:has(.shell) .modal .booking-detail p{margin:0}
body:has(.shell) .modal .booking-detail-overview{display:grid;justify-items:start;gap:8px;min-width:0}
body:has(.shell) .modal .booking-detail .badge{font-size:.75rem;line-height:1.4;padding:5px 9px;border-radius:6px}
body:has(.shell) .modal .booking-detail-service{font-size:1.125rem;line-height:1.4;font-weight:600;overflow-wrap:anywhere}
body:has(.shell) .modal .booking-detail-person{color:var(--muted);font-size:.875rem;overflow-wrap:anywhere}
body:has(.shell) .modal .booking-detail-person strong{font-weight:500;color:var(--ink)}
body:has(.shell) .modal .booking-detail-schedule{background:#f4f6f3;border:1px solid #dde3df;border-radius:12px;padding:16px;display:grid;gap:6px;min-width:0}
body:has(.shell) .modal .booking-detail-schedule h3{font-size:.75rem;font-weight:500;line-height:1.5;letter-spacing:0;color:var(--muted);margin:0}
body:has(.shell) .modal .booking-detail-date{font-size:.9375rem;font-weight:500;line-height:1.5}
body:has(.shell) .modal .booking-detail-time{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;font-size:1.25rem;font-weight:600;line-height:1.35;font-variant-numeric:tabular-nums;overflow-wrap:normal}
body:has(.shell) .modal .booking-detail-timezone{font-size:.75rem;line-height:1.55;color:var(--muted);overflow-wrap:anywhere}
body:has(.shell) .modal .booking-detail-buffer{display:grid;gap:3px;border-top:1px solid #dde3df;margin-top:8px;padding-top:12px;font-size:.8125rem;line-height:1.5}
body:has(.shell) .modal .booking-detail-buffer>span{color:var(--muted)}
body:has(.shell) .modal .booking-detail-buffer>strong{font-weight:500;overflow-wrap:anywhere}
body:has(.shell) .modal .booking-detail-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));gap:16px;margin:0}
body:has(.shell) .modal .booking-detail-facts>div{min-width:0}
body:has(.shell) .modal .booking-detail-facts dt{font-size:.75rem;line-height:1.5;color:var(--muted);margin-bottom:4px}
body:has(.shell) .modal .booking-detail-facts dd{font-size:.9375rem;line-height:1.5;font-weight:500;overflow-wrap:anywhere;margin:0}
body:has(.shell) .modal .booking-detail-copy{justify-self:start;max-width:100%;min-height:44px}
body:has(.shell) .modal .booking-detail-note{font-size:.75rem;line-height:1.6;color:var(--muted);overflow-wrap:normal}
body:has(.shell) .modal .booking-detail-action-area{border-top:1px solid #dde3df;padding-top:18px;display:grid;gap:14px}
body:has(.shell) .modal .booking-detail-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));align-items:stretch;gap:8px;margin:0}
body:has(.shell) .modal .booking-detail-actions .button{width:100%;min-width:0;min-height:48px;padding:11px 12px;white-space:normal;overflow-wrap:normal;word-break:normal}
@media(max-width:599px){
 body:has(.shell) .modal-head h2{font-size:1.25rem;line-height:1.35}
 body:has(.shell) .modal .booking-detail-actions{grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr))}
 body:has(.shell) .modal .booking-detail-actions [data-action=done-booking]{grid-column:1/-1}
}
/* END mobile-polish */
