/* Shared native UI. Keep customer mounts independent of the owner sidebar. */
:root {
  --ink: #21362c;
  --muted: #59685e;
  --line: #dce3d8;
  --surface: #fff;
  --accent: #234c37;
  --space: 8px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: #f4f6f2;
  font-size: 16px;
  line-height: 1.5;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 100px; }
body { margin: 0; overflow-wrap: anywhere; }
a { color: #205a3a; }
code, .record-copy { overflow-wrap: anywhere; }
.record-copy { white-space: pre-wrap; }
h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.04em; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 0 0 14px; }
h3 { font-size: 17px; line-height: 1.4; }
h4 { margin: 0; font-size: 16px; }
p { margin: 8px 0 16px; }
.muted, small, .help { color: var(--muted); }
small, .help { font-size: 13px; line-height: 1.55; }
.help { margin: 12px 0 16px; }
.error { color: #a02828; }
main { max-width: 1080px; min-width: 0; margin: 36px auto; padding: 0 20px 80px; }
.top {
  position: sticky; top: 0; z-index: 20; height: 76px;
  padding: 16px max(20px, calc((100vw - 1080px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid #d7dfd5; background: var(--surface);
}
.top span { font-size: 13px; color: #526353; }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 750; font-size: 21px; text-decoration: none; color: inherit; }
.brand img { flex-shrink: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin: 20px 0; box-shadow: 0 2px 4px #22362c03; }
.card > :last-child { margin-bottom: 0; }
.grid .card { margin: 0; }
.auth { max-width: 480px; margin: 40px auto; }
.notice { padding: 14px 18px; background: #e8eedf; border-radius: 12px; margin: 20px 0; }
.notice p { margin-bottom: 0; }
.eyebrow { font-size: 12px; letter-spacing: .1em; font-weight: 700; color: #596c43; margin-bottom: 8px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 130px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Form controls, setup, and feedback share one interaction vocabulary. */
label { display: block; font-size: 14px; font-weight: 650; margin: 14px 0 6px; }
input, select, button, .button, textarea { font: inherit; border-radius: 9px; }
input, select, button, .button { min-height: 46px; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #b9c8b9; padding: 9px 12px; background: var(--surface); color: inherit; scroll-margin-top: 110px; }
textarea { min-height: 140px; padding: 12px; resize: vertical; }
button, .button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 17px; border: 1px solid #b9c8b9; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 650; line-height: 1.4; cursor: pointer; touch-action: manipulation; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button:disabled { opacity: .55; cursor: not-allowed; }
button[aria-busy="true"] { cursor: wait; }
:where(button, a, input, select, textarea, summary):focus-visible { outline: 3px solid #548a49; outline-offset: 3px; }
form > button, form > .actions { margin-top: 20px; }
.check { display: flex; align-items: start; gap: 10px; font-weight: 400; }
.check input { width: 20px; min-height: 20px; flex-shrink: 0; margin-top: 2px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 20px 0; min-width: 0; }
legend { font-size: 14px; font-weight: 650; padding: 0 6px; }
details > summary { cursor: pointer; font-weight: 650; min-height: 44px; padding: 8px 0; }
.advanced { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 12px; }
.advanced summary { font-size: 15px; }
.setup-card { max-width: 760px; margin: 24px auto; }
.setup-progress { display: flex; list-style: none; padding: 0; margin: 24px 0; gap: 8px; }
.setup-progress li { flex: 1; min-width: 0; font-size: 13px; border-top: 3px solid var(--line); padding-top: 10px; color: var(--muted); }
.setup-progress li[aria-current] { border-color: var(--accent); color: var(--ink); font-weight: 700; }
.setup-progress button { padding: 0; min-height: 44px; justify-content: flex-start; background: none; border: 0; text-align: left; font-size: 13px; text-decoration: underline; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.choice-row button { font-size: 14px; }
.choice-row button[aria-pressed="true"] { background: #e8eedf; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.day-choice { margin: 0; position: relative; font-weight: 500; }
.day-choice input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; }
.day-choice span { display: block; border: 1px solid #b9c8b9; border-radius: 10px; padding: 11px 13px; min-height: 46px; }
.day-choice input:checked + span { background: #e8eedf; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.day-choice input:focus-visible + span { outline: 3px solid #548a49; outline-offset: 3px; }
.saved-note { border-left: 3px solid #548a49; padding: 8px 14px; font-size: 14px; background: #f2f5ef; }
.review-list { margin: 20px 0; }
.review-list > div { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.review-list dt { font-weight: 650; font-size: 14px; }
.review-list dd { margin: 0; }
.review-list small { display: block; margin-top: 6px; }
.review-list button { min-height: 44px; padding: 8px 10px; font-size: 13px; }
.form-errors { border: 2px solid #a02828; background: #fff9f8; border-radius: 12px; padding: 16px 20px; margin: 18px 0; color: #802020; scroll-margin-top: 100px; }
.form-errors ul { margin: 8px 0 0; padding-left: 20px; }
.form-errors a { color: inherit; }
.field-error { display: block; color: #a02828; font-size: 14px; font-weight: 600; margin: 6px 0 12px; }
[aria-invalid="true"] { border-color: #a02828; box-shadow: 0 0 0 1px #a02828; }
#message:empty { display: none; }
#message:not(:empty) { position: sticky; top: 84px; z-index: 25; display: flex; align-items: start; gap: 20px; width: calc(100% - 40px); max-width: 1040px; margin: 12px auto -12px; padding: 14px 18px; border: 1px solid #355d42; border-radius: 12px; background: #213e2e; color: #fff; box-shadow: 0 4px 20px #0001; }
#message[data-tone="error"] { background: #862929; border-color: #862929; }
#message > span { flex: 1; }
#message button { min-height: 44px; padding: 5px 10px; flex-shrink: 0; color: inherit; background: transparent; border-color: #ffffff70; font-size: 13px; }

/* Shared product states. */
.workspace-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
.workspace-account { width: min(100%, 300px); display: grid; gap: 8px; flex-shrink: 0; font-size: 13px; }
.workspace-account label { margin: 0; }
.workspace-account .button, .workspace-account button { justify-self: start; font-size: 13px; padding: 9px 12px; }
.workspace-account .actions { margin: 0; gap: 8px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 28px 0 20px; }
.section-heading h2, .section-heading p { margin: 0; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading .muted { margin-top: 6px; }
.section-nav { padding: 8px; background: #e9eee5; border-radius: 14px; margin: 24px 0; }
.section-nav .button, .section-nav button { border-color: transparent; background: transparent; }
.section-nav .primary { background: var(--accent); color: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.product-card { display: flex; flex-direction: column; margin: 0; min-width: 0; padding: 18px; }
.product-card p { flex-grow: 1; font-size: 14px; }
.product-card h2 { font-size: 18px; }
.product-card .actions { margin-top: auto; margin-bottom: 12px; }
.product-card .button, .product-card button { font-size: 13px; }
.product-card .pill { font-size: 11px; }
.product-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.product-symbol { font-size: 21px; line-height: 1; width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; background: #eef3e4; color: #2f5138; }
.products-section { margin-top: 28px; }
.product-settings { max-width: 760px; }
.product-settings > summary { font-size: 18px; }
.product-workspace { align-items: start; }
.settings-section { max-width: 800px; }
.connection-list { margin: 0; }
.connection-list > div { display: flex; justify-content: space-between; align-items: start; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.connection-list > div:last-child { border-bottom: 0; }
.connection-list dt { font-weight: 650; }
.connection-list dd { margin: 0; text-align: right; overflow-wrap: anywhere; max-width: 65%; }
.delivery-list { list-style: none; padding: 0; }
.delivery-list li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.delivery-list small { flex-basis: 100%; }
.booking { border-top: 1px solid var(--line); padding: 18px 0; }
.booking h3 { margin: 0 0 5px; font-size: 17px; }
.pill { display: inline-block; border-radius: 20px; background: #e8eedf; padding: 3px 10px; font-size: 12px; }
.pill.is-ready { background: #deefdf; color: #1f5133; }
.balances { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 12px; }
.balance { background: #f2f5ef; padding: 14px; border-radius: 10px; }
.balance strong { display: block; font-size: 24px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.metric { min-width: 0; border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.metric strong { font-size: 30px; line-height: 1.2; letter-spacing: -.04em; }
.metric > span { font-size: 14px; font-weight: 650; }
.daily-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
.daily-grid .eyebrow { margin-bottom: 6px; }
.next-actions { list-style: none; padding: 0; margin: 0; }
.next-actions li { border-top: 1px solid var(--line); padding: 18px 0; }
.next-actions li:first-child { border: 0; padding-top: 0; }
.next-actions h3 { margin: 0 0 6px; }
.next-actions p { font-size: 14px; margin: 0 0 12px; color: var(--muted); }
.next-actions .button { min-height: 44px; font-size: 14px; padding: 9px 14px; }
.empty-state { padding: 24px 0; }
.empty-state h3 { margin: 0 0 8px; }
.empty-state p { color: var(--muted); max-width: 54ch; }
.text-preview { background: #f4f6f2; border: 1px solid var(--line); padding: 18px; border-radius: 12px; margin-top: 20px; }
.text-preview h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; }
.text-preview p { white-space: pre-wrap; overflow-wrap: anywhere; }
#business-details { max-width: 520px; }
.route-loading { padding: 30px 0; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.loading-dot { width: 8px; height: 8px; flex-shrink: 0; background: #698457; border-radius: 50%; }

/* Calendar: shared month grid and independently scrollable day/week timeline. */
.workspace-calendar { min-width: 0; margin: 20px 0 28px; }
.calendar-toolbar { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.calendar-toolbar h2 { margin: 10px 0 0; font-size: 18px; }
.calendar-toolbar .eyebrow { margin: 0 0 4px; }
.calendar-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.calendar-controls button { min-width: 44px; min-height: 44px; padding: 8px 12px; font-size: 13px; }
.calendar-controls strong { min-width: 132px; text-align: center; font-size: 14px; font-weight: 650; }
.calendar-controls [data-period] { min-width: 160px; }
.calendar-controls input, .calendar-controls select { width: auto; max-width: 100%; min-height: 44px; padding: 8px; font-size: 13px; border: 1px solid #b9c8b9; border-radius: 7px; background: var(--surface); color: var(--ink); }
.calendar-controls [data-staff] { max-width: 170px; }
.calendar-control-label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12px; color: var(--muted); }
.calendar-control-label:has([data-jump]) { max-width: 150px; }
.calendar-source { font-size: 12px; max-width: 85ch; color: var(--muted); line-height: 1.6; margin: 12px 0 20px; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr); gap: 24px; align-items: start; }
.calendar-layout > section { min-width: 0; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calendar-weekdays span { font-size: 12px; color: var(--muted); text-align: center; padding: 10px 0; }
.calendar-day { min-width: 0; min-height: 58px; border: 1px solid var(--line); padding: 8px 3px; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; border-radius: 7px; background: var(--surface); font-size: 13px; font-weight: 500; }
.calendar-day small { font-size: 11px; line-height: 1.2; color: inherit; }
.calendar-count { align-self: center; min-width: 20px; padding: 2px 6px; border-radius: 999px; background: #edf1e9; color: #385038; white-space: nowrap; }
.calendar-day.outside-month { color: #697369; background: #f6f7f4; }
.calendar-day.is-today { border-color: #548a49; box-shadow: inset 0 0 0 1px #548a49; }
.calendar-day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.calendar-day[aria-pressed="true"] .calendar-count { background: #ffffff26; color: inherit; }
.calendar-agenda { border-left: 1px solid var(--line); padding-left: 22px; max-height: 470px; overflow: auto; }
.calendar-agenda > .eyebrow { font-size: 12px; margin: 0 0 8px; }
.calendar-agenda > h3 { font-size: 16px; font-weight: 650; margin: 0 0 16px; }
.calendar-entry { padding: 14px 0; border-top: 1px solid var(--line); }
.calendar-entry h4 { font-size: 14px; font-weight: 650; }
.calendar-entry p { font-size: 13px; margin: 5px 0; }
.calendar-entry small { font-size: 12px; }
.calendar-time { font-weight: 700; color: var(--accent); }
.calendar-origin { display: block; font-size: 12px; margin-top: 8px; }
.calendar-empty { font-size: 14px; color: var(--muted); margin: 12px 0; }
.workspace-calendar:is([data-calendar-view="week"], [data-calendar-view="day"]) .calendar-layout { display: block; }
.workspace-calendar:is([data-calendar-view="week"], [data-calendar-view="day"]) .calendar-agenda { border-left: 0; border-top: 1px solid var(--line); margin-top: 18px; padding: 18px 0 0; max-height: 300px; }
.calendar-timeline-scroll { max-height: 540px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; overscroll-behavior: contain; }
.calendar-timegrid { min-width: 680px; }
.workspace-calendar[data-calendar-view="day"] .calendar-timegrid { min-width: 260px; }
.calendar-timehead { display: grid; grid-template-columns: 54px repeat(var(--calendar-columns), minmax(0, 1fr)); position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--line); min-height: 55px; }
.calendar-timehead > span { font-size: 11px; color: var(--muted); padding: 8px 3px; overflow-wrap: anywhere; }
.calendar-timehead button { display: flex; flex-direction: column; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 0; border-left: 1px solid #e8ece4; color: #57674f; font-size: 12px; min-height: 54px; padding: 5px; }
.calendar-timehead button[aria-pressed="true"] { background: #edf3e7; color: #24402b; }
.calendar-timehead small { font-size: 12px; }
.calendar-timehead strong { font-size: 16px; }
.calendar-hours-body { display: grid; grid-template-columns: 54px repeat(var(--calendar-columns), minmax(0, 1fr)); height: 1152px; position: relative; }
.calendar-hour-labels { position: relative; background: var(--surface); }
.calendar-hour-labels span { position: absolute; font-size: 11px; color: var(--muted); right: 6px; transform: translateY(-50%); }
.calendar-time-column { position: relative; border-left: 1px solid #e5eadd; background: repeating-linear-gradient(to bottom, transparent 0, transparent 47px, #e5eadd 47px, #e5eadd 48px); }
/* Timeline positions/heights come from appointment time. The agenda is the full-text alternative. */
button.calendar-event { position: absolute; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; justify-content: flex-start; padding: 4px 5px; border: 1px solid #aabc96; border-left: 3px solid #7b965e; border-radius: 5px; background: #edf3e4; color: #2b4429; min-height: 0; text-align: left; overflow: hidden; z-index: 1; box-shadow: none; cursor: pointer; }
.calendar-event > strong, .calendar-event > span, .calendar-event > small { display: block; font-size: 11px; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event > small { font-size: 11px; color: #4b6140; }
button.calendar-event:hover { background: #dfeacd; border-color: #769959; z-index: 2; }
button.calendar-event:focus-visible { z-index: 4; }

/* Owner shell. Mounted /book pages without this class retain their own layout. */
.has-workspace-sidebar { --sidebar-width: 208px; --header-height: 56px; --accent: #253d32; --line: #e4e7e3; background: #f7f8f6; color: #252e29; }
.has-workspace-sidebar .top { height: var(--header-height); padding: 12px 22px; border-color: var(--line); }
.has-workspace-sidebar .brand { font-size: 17px; letter-spacing: -.03em; }
.has-workspace-sidebar .brand img { width: 26px; height: 26px; }
.has-workspace-sidebar .top span { font-size: 12px; }
.has-workspace-sidebar main { width: calc(100% - var(--sidebar-width)); max-width: 1600px; margin: 26px 0 0 var(--sidebar-width); padding: 0 clamp(20px, 3vw, 44px) 80px; }
.has-workspace-sidebar #workspace-sidebar { position: fixed; left: 0; top: var(--header-height); bottom: 0; width: var(--sidebar-width); background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; z-index: 15; padding: 20px 12px; }
.has-workspace-sidebar .sidebar-disclosure > summary { display: none; }
.has-workspace-sidebar .sidebar-inner { display: flex; flex-direction: column; min-height: calc(100dvh - var(--header-height) - 40px); }
.has-workspace-sidebar .sidebar-business { font-size: 13px; font-weight: 700; color: #3a493f; margin: 4px 10px 24px; padding: 0; overflow-wrap: anywhere; }
.has-workspace-sidebar .sidebar-label { font-size: 11px; font-weight: 750; color: #606e63; text-transform: uppercase; letter-spacing: .08em; margin: 24px 10px 10px; }
.has-workspace-sidebar .sidebar-inner nav { display: flex; flex-direction: column; gap: 4px; }
.has-workspace-sidebar .sidebar-inner nav a, .has-workspace-sidebar .sidebar-sections button, .has-workspace-sidebar .sidebar-sections a { display: flex; align-items: center; justify-content: flex-start; gap: 12px; border: 0; border-radius: 7px; padding: 10px; color: #526255; font-size: 14px; font-weight: 500; text-decoration: none; background: transparent; min-height: 44px; text-align: left; width: 100%; }
.has-workspace-sidebar .sidebar-inner nav a > span { width: 20px; flex-shrink: 0; text-align: center; font-size: 18px; color: #647554; }
.has-workspace-sidebar .sidebar-inner nav :is(a, button):hover, .has-workspace-sidebar .sidebar-sections :is(button, a):hover { background: #f3f5f0; }
.has-workspace-sidebar .sidebar-inner nav [aria-current="page"], .has-workspace-sidebar .sidebar-sections [aria-current="page"] { background: #edf2e9; color: #233c2a; font-weight: 650; }
.has-workspace-sidebar .sidebar-sections .section-nav { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0 0 0 10px; border-left: 1px solid #e7ebe3; border-bottom: 0; border-radius: 0; overflow: visible; background: transparent; }
.has-workspace-sidebar .sidebar-sections .section-nav button { font-size: 13px; min-height: 44px; }
.has-workspace-sidebar .sidebar-inner nav .sidebar-sections { margin: 2px 0 10px; }
.has-workspace-sidebar .sidebar-inner nav .sidebar-sections .sidebar-label { display: none; }
.has-workspace-sidebar .sidebar-bottom { margin-top: auto; padding-top: 20px; }
.has-workspace-sidebar .sidebar-note { color: var(--muted); font-size: 11px; padding: 14px 10px 0; }
.has-workspace-sidebar .sidebar-inner .sidebar-signout { border: 0; background: none; box-shadow: none; padding: 10px; min-height: 44px; text-align: left; justify-content: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.has-workspace-sidebar #message:not(:empty) { top: calc(var(--header-height) + 8px); width: calc(100% - var(--sidebar-width) - 48px); max-width: 1040px; margin-left: calc(var(--sidebar-width) + 24px); margin-right: 24px; }
.has-workspace-sidebar .workspace-account a[href$="/settings"] { display: none; }
.workspace-page > p:has(> a[href="/"]) { display: none; }
.workspace-page .workspace-intro { gap: 24px; margin-bottom: 24px; }
.workspace-page .workspace-intro .eyebrow { display: none; }
.workspace-page h1 { font-size: 28px; font-weight: 650; letter-spacing: -.035em; }
.workspace-page .workspace-intro > .workspace-account { width: 230px; min-width: 0; }
.workspace-page .workspace-account > label { font-size: 13px; margin-bottom: 3px; color: var(--muted); }
.workspace-page .workspace-account select { padding: 8px 10px; min-height: 44px; font-size: 13px; border-radius: 7px; }
.workspace-page .workspace-account > small, .workspace-page .workspace-account > .actions { display: none; }
.workspace-page .workspace-intro .muted { font-size: 14px; margin-bottom: 0; }
.workspace-page .section-heading { gap: 14px; }
.workspace-page .section-heading h2 { font-size: 17px; font-weight: 650; margin-bottom: 3px; }
.workspace-page .section-heading .eyebrow { font-size: 12px; letter-spacing: .08em; margin-bottom: 5px; }
.workspace-page .section-heading .muted { font-size: 12px; }
.workspace-page .button, .workspace-page button { box-shadow: none; border-radius: 7px; }
.workspace-page .section-heading .button { padding: 9px 12px; font-size: 13px; }
.workspace-page .metric-grid { border: 1px solid #e1e6de; border-radius: 10px; background: var(--surface); gap: 0; margin: 16px 0 24px; overflow: hidden; }
.workspace-page .metric { border: 0; border-radius: 0; border-right: 1px solid #e8ece4; background: none; padding: 16px 20px; margin: 0; box-shadow: none; }
.workspace-page .metric:last-child { border-right: 0; }
.workspace-page .metric > span { font-size: 13px; color: var(--muted); font-weight: 500; }
.workspace-page .metric strong { font-size: 28px; line-height: 1.3; margin: 6px 0; font-weight: 600; }
.workspace-page .metric small { font-size: 12px; color: var(--muted); }
.workspace-page .card { border-radius: 10px; border-color: #e1e6de; box-shadow: none; padding: 20px; }
.workspace-page .calendar-toolbar .eyebrow { display: none; }
.workspace-page .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workspace-page .daily-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); margin-top: 24px; }
.workspace-page .daily-grid .card { height: auto; }
.workspace-page .daily-grid .card h2 { font-size: 17px; }
.workspace-page .daily-grid .booking { padding: 12px 0; }
.workspace-page .daily-grid .booking h3 { font-size: 15px; }
.workspace-page .daily-grid .booking p { font-size: 13px; margin: 4px 0; }
.workspace-page .setup-tasks summary { font-size: 14px; font-weight: 650; cursor: pointer; }
.workspace-page .setup-tasks .next-actions { margin-top: 18px; }
.workspace-page .home-product-directory, .workspace-page > aside.notice { display: none; }
.workspace-page .notice { font-size: 14px; border-radius: 8px; background: #eef2e8; }
.workspace-page > .row { margin-bottom: 24px; }
.workspace-page > .row .muted { font-size: 14px; }

/* Tablet: compact rail, one-column supporting panels. */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .has-workspace-sidebar { --sidebar-width: 180px; }
  .workspace-page .daily-grid, .workspace-page .calendar-layout { grid-template-columns: 1fr; }
  .workspace-page .calendar-agenda { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; }
}

/* Mobile: disclosure navigation and a calendar that scrolls inside its own panel. */
@media (max-width: 760px) {
  html { scroll-padding-top: 124px; }
  main { margin-top: 24px; padding: 0 16px 70px; }
  .top { height: 68px; padding: 14px 20px; }
  .top span { max-width: 110px; text-align: right; font-size: 12px; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .row > * { min-width: 110px; }
  .workspace-intro { flex-direction: column; gap: 16px; margin-bottom: 24px; }
  .workspace-account { width: 100%; }
  .metric-grid { gap: 8px; }
  .metric { padding: 14px 10px; border-radius: 14px; }
  .metric > span { font-size: 12px; }
  .metric strong { font-size: 26px; }
  .daily-grid { grid-template-columns: 1fr; }
  .section-heading { gap: 16px; align-items: flex-start; flex-direction: column; }
  .section-nav { gap: 4px; margin: 20px 0; }
  .section-nav button, .section-nav .button { font-size: 13px; padding: 10px; }
  .setup-progress { gap: 5px; }
  .setup-progress li, .setup-progress button { font-size: 12px; }
  .review-list > div { grid-template-columns: 1fr auto; gap: 8px; }
  .review-list dt { grid-column: 1 / -1; }
  .review-list dd { grid-column: 1; }
  .review-list button { grid-column: 2; }
  .product-workspace { display: flex; flex-direction: column; }
  .product-workspace > .card { width: 100%; }
  .composer-panel { order: -1; }
  .day-choice span { padding: 11px 10px; }
  .setup-card { padding: 20px; }
  #message:not(:empty) { top: 76px; width: calc(100% - 32px); }
  .calendar-layout { grid-template-columns: 1fr; gap: 20px; }
  .calendar-agenda { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; max-height: none; }
  .calendar-toolbar { flex-direction: column; gap: 12px; }
  .calendar-toolbar h2 { margin-top: 0; }
  .calendar-controls { justify-content: flex-start; gap: 8px; }
  .calendar-controls [data-period] { order: -1; flex-basis: 100%; text-align: left; }
  .calendar-control-label:has([data-staff]) { max-width: 150px; }
  .calendar-controls input, .calendar-controls select { font-size: 16px; }
  .calendar-day { min-height: 48px; }
  .calendar-weekdays, .calendar-days { gap: 3px; }
  .workspace-calendar { padding: 16px; }
  .calendar-timeline-scroll { max-height: 460px; }
  .calendar-timegrid { min-width: 650px; }
  .workspace-calendar[data-calendar-view="day"] .calendar-timegrid { min-width: 250px; }
  .has-workspace-sidebar .top { padding: 12px 16px; }
  .has-workspace-sidebar .top span { display: none; }
  .has-workspace-sidebar #workspace-sidebar { position: sticky; top: var(--header-height); bottom: auto; width: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px 16px; max-height: calc(100dvh - var(--header-height)); }
  .has-workspace-sidebar .sidebar-disclosure > summary { display: block; padding: 8px 0; font-size: 14px; font-weight: 700; }
  .has-workspace-sidebar .sidebar-disclosure > summary::after { content: '⌄'; float: right; }
  .has-workspace-sidebar .sidebar-inner { min-height: 0; max-height: 65dvh; overflow-y: auto; padding-bottom: 12px; }
  .has-workspace-sidebar .sidebar-business { margin: 12px 10px; }
  .has-workspace-sidebar .sidebar-label { margin-top: 14px; }
  .has-workspace-sidebar .sidebar-bottom { margin-top: 0; padding-top: 16px; }
  .has-workspace-sidebar .sidebar-sections .section-nav { flex-wrap: nowrap; align-items: stretch; }
  .has-workspace-sidebar main { width: 100%; max-width: none; margin: 20px auto 0; padding: 0 16px 60px; }
  .has-workspace-sidebar #message:not(:empty) { top: calc(var(--header-height) + 64px); width: calc(100% - 32px); margin: 12px 16px -12px; }
  .workspace-page > .row, .workspace-page .workspace-intro { flex-direction: column; align-items: stretch; gap: 16px; margin-bottom: 22px; }
  .workspace-page > .row > div:last-child { max-width: 100%; }
  .workspace-page .workspace-intro > .workspace-account { width: 100%; }
  .workspace-page .product-grid { grid-template-columns: 1fr; }
  .workspace-page h1 { font-size: 26px; }
  .workspace-page .metric { padding: 14px 10px; }
  .workspace-page .metric strong { font-size: 25px; }
  .workspace-page .metric small { display: none; }
  .workspace-page .card { padding: 16px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .top .brand { font-size: 18px; }
  .has-workspace-sidebar .brand { font-size: 17px; }
  .connection-list > div { flex-direction: column; gap: 6px; }
  .connection-list dd { max-width: 100%; text-align: left; }
  .workspace-page .metric > span { font-size: 12px; }
  .calendar-day small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
