/* Shared contrast and no-wrap rules, checked in both themes and at 320–1440px. */
:root{--gd-primary:#00796b;--gd-primary-hover:#006356}
html[data-theme=day]{--gd-accent:#006c61;--accent:#006c61;--muted:#59677b;--booking-muted:#596b65}
html[data-theme=day] .vt-header-brand>p,
html[data-theme=day] .gd-scan-caption,
html[data-theme=day] #product .product-preview-note,
html[data-theme=day] #product .booking-label{color:#59677b!important}
html[data-theme=day] .gd-discover-link,
html[data-theme=day] .gd-welcome-eyebrow,
html[data-theme=day] .gd-entry-roles a[aria-current=page],
html[data-theme=day] #product .product-role-tabs [aria-selected=true],
html[data-theme=day] #product .booking-times [aria-pressed=true]{color:#006c61!important}
.gd-scan-primary,.gd-plan-free .gd-plan-start,.gd-access-launch,.gd-access-actions>button:not(.secondary){background:#00796b!important;color:#fff!important}
html[data-theme=day] a:not(.gd-plan-start):not(.client-access-button){text-underline-offset:3px}
.gd-entry-roles a,#auth .gd-auth-entry .gd-entry-roles a{white-space:nowrap!important;min-width:0;word-break:normal;overflow-wrap:normal}
#staffLoginPanel .gd-entry-roles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px}
@media(max-width:680px){.gd-entry-roles a,#auth .gd-auth-entry .gd-entry-roles a,#staffLoginPanel .gd-entry-roles a{font-size:11px!important;padding:12px 3px!important;min-height:48px}}

.vt-board-day{grid-template-columns:minmax(0,1fr)!important}
html[data-theme=day] #legal-booking a,html[data-theme=day] #legal-multi a{color:#006c61!important}
html[data-theme=night] .gd-scan-caption{color:#b2bbca!important}
html[data-theme=night] #product button[aria-pressed=true]{color:#8de0cb!important}
html[data-theme=day] #product button[aria-pressed=true]{color:#006c61!important}
.calendar-controls{display:flex!important;align-items:flex-end!important;gap:12px!important;flex-wrap:wrap!important}
.calendar-controls .vt-calendar-options{display:contents!important}
.calendar-controls .vt-calendar-options>div{min-width:0;flex:1 1 260px}
.calendar-controls .vt-segment button{white-space:nowrap!important}
@media(min-width:1000px){.calendar-controls .vt-calendar-options>div{flex:1 1 240px}.calendar-controls input{width:170px!important;max-width:170px!important}}
@media(max-width:680px){.calendar-controls .vt-calendar-options>div{flex:1 1 100%}.calendar-controls input{min-width:0;flex:1 1 100px}.calendar-controls>#calendarPrev,.calendar-controls>#calendarNext{flex:0 0 44px;padding:10px!important}}
#workspace>.vt-main-tabs>.gd-access-nav-button{background:#00796b!important;color:#fff!important}
html[data-theme=night] .error,html[data-theme=night] .status.error{color:#ffb6bd!important}
html[data-theme=night] .success{color:#8de0cb!important}

/* Duration fixes geometry; content remains scrollable and detail opens on every device. */
.vt-appointment{overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#649b91 transparent}
.vt-appointment::-webkit-scrollbar{width:6px}.vt-appointment::-webkit-scrollbar-thumb{background:#649b91;border-radius:8px}
.vt-sheet{max-height:calc(100dvh - 40px);overflow-y:auto!important;overscroll-behavior:contain}

/* Adjacent dates stay legible; only their heading indicates another month. */
.vt-board-month .vt-other-month{opacity:1!important}
.vt-board-month .vt-other-month .vt-calendar-column-title{border-top:3px solid #9a86b7}
.vt-calendar-board .gd-calendar-overview{overflow:hidden!important;gap:6px!important;cursor:pointer;min-width:0}
.gd-calendar-overview .vt-appointment-head{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.gd-calendar-overview .vt-appointment-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:block}
.gd-calendar-detail-hint{font-size:11px;color:#006e60;white-space:nowrap}
html[data-theme=night] .gd-calendar-detail-hint{color:#9adfcf}
.vt-board-month .gd-calendar-overview{min-height:76px;padding:9px!important;border-left-width:3px}
.vt-board-month .vt-month-content{gap:8px;padding:10px}

.gd-marker-text{color:#174c40;font-weight:650;white-space:nowrap;padding:.14em .2em .18em;background:linear-gradient(177deg,transparent 8%,#a4ead0 10%,#a4ead0 96%,transparent 98%);box-decoration-break:clone;-webkit-box-decoration-break:clone}
html[data-theme=night] .gd-marker-text{color:#edfff7;background:linear-gradient(177deg,transparent 8%,#26785f 10%,#26785f 96%,transparent 98%)}

/* All signed-out roles share the same header rhythm and marker treatment. */
body:has(#auth:not(.hidden)) main>header,
body:has(#staffLoginPanel:not(.hidden)) main>header{margin:0 0 32px!important;padding:0 0 22px!important}
body:has(#auth:not(.hidden)) main>header .vt-header-brand>p,
body:has(#staffLoginPanel:not(.hidden)) main>header .gd-staff-login-tagline{font-size:13px!important;line-height:1.5!important;margin:0!important}
@media(max-width:680px){
 body:has(#auth:not(.hidden)) main>header,
 body:has(#staffLoginPanel:not(.hidden)) main>header{margin-bottom:24px!important;padding-bottom:18px!important}
 body:has(#auth:not(.hidden)) main>header .vt-header-brand{gap:0!important}
 body:has(#auth:not(.hidden)) main>header .vt-header-brand>p,
 body:has(#staffLoginPanel:not(.hidden)) main>header .gd-staff-login-tagline{margin:10px 0 0!important;max-width:310px}
}
/* One compact role switch on all three sign-in pages. */
.gd-entry-roles,#auth .gd-auth-entry .gd-entry-roles,#staffLoginPanel .gd-entry-roles{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;padding:4px!important;border:1px solid #8292a226!important;border-radius:12px!important;background:#8292a20f!important;box-sizing:border-box;margin-bottom:24px!important}
.gd-entry-roles a,#auth .gd-auth-entry .gd-entry-roles a,#staffLoginPanel .gd-entry-roles a{display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;min-height:44px!important;height:auto!important;margin:0!important;padding:10px 14px!important;border:0!important;border-radius:8px!important;background:transparent;font-size:12px!important;line-height:1.35!important;white-space:nowrap!important;text-align:center;text-decoration:none!important}
.gd-entry-roles a[aria-current=page]{background:#00877920!important;box-shadow:0 1px 4px #0000000a}

@media(max-width:680px){.gd-entry-roles a,#auth .gd-auth-entry .gd-entry-roles a,#staffLoginPanel .gd-entry-roles a{font-size:11px!important;padding-left:12px!important;padding-right:12px!important}}
@media(max-width:360px){.gd-entry-roles,#auth .gd-auth-entry .gd-entry-roles,#staffLoginPanel .gd-entry-roles{grid-template-columns:minmax(0,1fr)!important}.gd-entry-roles a,#auth .gd-auth-entry .gd-entry-roles a,#staffLoginPanel .gd-entry-roles a{font-size:13px!important}}
