/* Studio Edition modules. Emerald, forest and electric lime; booking previews
   and salon-owned public palettes remain independent of workspace colours. */
.app-shell {
  --module-forest: #063d2e;
  --module-green: #006b48;
  --module-lime: #c6ff32;
  --module-soft: color-mix(in srgb, var(--module-lime) 9%, var(--surface));
  --module-line: color-mix(in srgb, var(--module-green) 18%, var(--border));
}

/* A consistent, roomy filter and section language across operational pages. */
.app-shell :is(.people-panel-heading,.business-section-title,.followup-section-heading,.platform-section-heading,.editor-section-heading) h2 { font-size: 21px; font-weight: 750; letter-spacing: -.035em; line-height: 1.3; }
.app-shell :is(.people-toolbar,.finance-toolbar,.platform-filter-panel,.admin-report-filter,.platform-task-filter,.business-datebar,.employee-range-form,.insights-report-toolbar,.connections-log-filters,.followup-filters) { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 19px 20px; gap: 14px; box-shadow: none; }
.app-shell :is(.people-toolbar,.finance-toolbar,.platform-filter-panel,.admin-report-filter,.platform-task-filter,.business-datebar,.employee-range-form,.insights-report-toolbar,.connections-log-filters,.followup-filters) .field { min-width: 0; }
.app-shell :is(.people-filters,.view-toggle,.platform-billing-toggle,.platform-task-queue-tabs,.insights-history-tabs,.legal-admin-tabs,.support-inbox-tabs,.booking-device-toggle) { background: var(--surface-soft); padding: 5px; border: 1px solid var(--border); border-radius: 12px; gap: 5px; }
.app-shell :is(.people-filter,.business-filter-chips button,.insights-presets button,.admin-report-presets button,.view-toggle button,.platform-task-queue-tabs button,.legal-admin-tabs button,.support-inbox-tabs button,.booking-device-toggle button) { min-height: 39px; padding: 9px 13px; border-radius: 9px; font-size: 12px; font-weight: 650; color: var(--muted); }
.app-shell :is(.people-filter.is-selected,.business-filter-chips button.active,.insights-presets button.active,.admin-report-presets button.is-active,.view-toggle button.active,.platform-task-queue-tabs button.active,.legal-admin-tabs button.is-active,.support-inbox-tabs button[aria-pressed=true],.booking-device-toggle button.active) { color: var(--module-forest); background: var(--module-lime); border-color: var(--module-lime); box-shadow: 0 2px 0 #063d2e14; }
.app-shell :is(.platform-status,.finance-direction,.finance-stock,.business-badge,.employee-status,.followup-status,.cron-badge,.legal-admin-badge) { border-radius: 7px; font-size: 11px; padding: 5px 9px; font-weight: 650; line-height: 1.4; }
.app-shell :is(.table-wrap,.legal-admin-table-wrap) { border-radius: 0 0 15px 15px; }
.app-shell :is(.platform-company-table,.platform-user-table,.platform-subscriptions-table,.finance-table,.insights-ranking-table,.employee-table,.legal-admin-table-wrap) th { padding: 15px 18px; font-size: 11px; letter-spacing: .025em; background: var(--surface-soft); border-bottom: 1px solid var(--border); }
.app-shell :is(.platform-company-table,.platform-user-table,.platform-subscriptions-table,.finance-table,.insights-ranking-table,.employee-table,.legal-admin-table-wrap) td { padding: 18px; line-height: 1.65; }
.app-shell :is(.platform-company-table,.platform-user-table,.platform-subscriptions-table,.finance-table,.insights-ranking-table,.employee-table,.legal-admin-table-wrap) tbody tr:hover { background: var(--module-soft); }
.app-shell :is(.people-empty,.employee-empty,.platform-clear-state,.followup-empty) { border: 1px dashed var(--border-strong); border-radius: 14px; margin: 16px; background: var(--surface-soft); padding: 44px 24px; }

/* Calendar: a unified control band, legible time rail and distinct day cards.
   Timed blocks retain their original minute-to-pixel geometry. */
.app-shell .calendar-panel { border-radius: 16px; overflow: hidden; }
.app-shell .calendar-panel > .panel-heading { background: var(--surface); padding: 24px 24px 18px; border-bottom: 0; }
.app-shell .calendar-panel .panel-heading h2 { font-size: 23px; }
.app-shell .calendar-toolbar { padding: 18px 22px; margin: 0 18px 15px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); align-items: center; gap: 15px; }
.app-shell .calendar-tools { gap: 9px; flex: 1 1 310px; justify-content: flex-end; }
.app-shell .calendar-tools input { max-width: 260px; flex: 1; background: var(--surface); }
.app-shell .calendar-tools select { background: var(--surface); }
.app-shell .date-nav { gap: 6px; }
.app-shell .date-nav .icon-button { border: 1px solid var(--border); background: var(--surface); width: 40px; height: 44px; }
.app-shell .date-nav input[type=date] { background: var(--surface); font-weight: 700; min-height: 44px; font-size: 14px; width: 155px; }
.app-shell .staff-filter { gap: 8px; padding: 0 22px 20px; }
.app-shell .filter-chip { min-height: 38px; border-radius: 9px; background: var(--surface); border-color: var(--border); padding: 8px 13px; font-size: 12px; }
.app-shell .filter-chip.active { background: var(--module-lime); border-color: var(--module-lime); color: var(--module-forest); font-weight: 700; }
.app-shell .schedule-header { background: var(--surface-soft); border-block: 1px solid var(--border); }
.app-shell .staff-heading { padding: 16px 14px; }
.app-shell .staff-name { font-size: 13px; font-weight: 700; }
.app-shell .staff-title { font-size: 11px; }
.app-shell .staff-heading .avatar { border-radius: 50%; box-shadow: 0 0 0 3px var(--surface); }
.app-shell .time-gutter { background: var(--surface); }
.app-shell .time-label { font-size: 11px; font-variant-numeric: tabular-nums; font-weight: 600; }
.app-shell .appointment { border-radius: 7px; border-left-width: 4px; box-shadow: 0 2px 5px #063d2e0a; }
.app-shell .appointment-name { font-weight: 750; }
.app-shell .legend { background: var(--surface); padding: 18px 23px; border-top: 1px solid var(--border); font-size: 12px; }
.app-shell .week-overview { padding: 20px 23px; background: var(--module-soft); }
.app-shell .week-date { padding: 17px 14px; min-height: 68px; }
.app-shell .week-date strong { font-size: 14px; }
.app-shell .week-day.is-today .week-date { background: var(--module-lime); color: var(--module-forest); }
.app-shell .week-day.is-today .week-date small { color: var(--module-green); }
.app-shell .week-appointment { border-radius: 10px; padding: 13px 10px; gap: 7px; }
.app-shell .week-appointment strong { font-size: 13px; }
.app-shell .calendar-agenda-list { gap: 13px; }
.app-shell .calendar-agenda-card { border-radius: 14px; box-shadow: none; border: 1px solid var(--border); }
.modal .booking-workflow section { padding: 19px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); margin-bottom: 15px; }
.modal .booking-workflow .section-heading h3 { font-size: 16px; }
.modal :is(.calendar-search,.chosen-customer) { border-radius: 12px; }
.modal .calendar-slot { border-radius: 8px; min-height: 44px; }
.modal .calendar-slot.selected { box-shadow: 0 3px 0 color-mix(in srgb,var(--primary) 65%,#063d2e); }

/* Directories become individual customer and team cards, rather than long rows. */
.app-shell .people-metrics { gap: 16px; margin-bottom: 22px; }
.app-shell .people-metric { padding: 24px; border-radius: 15px; box-shadow: none; align-items: center; }
.app-shell .people-metric strong { font-size: 38px; font-weight: 750; margin: 6px 0 3px; }
.app-shell .people-metric-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--primary-soft); color: var(--primary-text); }
.app-shell .people-metric:first-child { background: var(--module-forest); border-color: var(--module-forest); color: #fff; }
.app-shell .people-metric:first-child strong { color: var(--module-lime); }
.app-shell .people-metric:first-child :is(small,span) { color: #d5e8df; }
.app-shell .people-metric:first-child .people-metric-icon { background: #ffffff16; color: var(--module-lime); }
.app-shell .people-panel { background: transparent; border: 0; box-shadow: none; overflow: visible; }
.app-shell .people-panel-heading { padding: 0 0 16px; }
.app-shell .people-panel-heading h2 { font-size: 23px; }
.app-shell .people-panel-heading p { font-size: 12px; }
.app-shell .people-toolbar { margin-bottom: 20px; }
.app-shell .people-search { max-width: 460px; }
.app-shell .people-search > input { border-radius: 9px; height: 46px; padding-left: 40px; background: var(--surface); }
.app-shell .people-customer-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.app-shell .people-customer { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 19px; align-items: start; border: 1px solid var(--border); border-radius: 15px; padding: 22px; background: var(--surface); transition: border-color .18s,box-shadow .18s; }
.app-shell .people-customer:hover { background: var(--surface); border-color: var(--primary); box-shadow: 0 8px 28px #063d2e08; }
.app-shell .people-customer .people-person { grid-column: 1 / -1; padding-bottom: 17px; border-bottom: 1px solid var(--border); gap: 13px; }
.app-shell .people-person h3 { font-size: 19px; font-weight: 750; line-height: 1.25; }
.app-shell .people-person .avatar { width: 47px; height: 47px; border-radius: 50%; }
.app-shell .people-visit-badge { font-size: 11px; }
.app-shell .people-contact { font-size: 13px; line-height: 1.6; }
.app-shell .people-mobile-label { display: block; margin-bottom: 6px; font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.app-shell .people-visits { font-size: 12px; gap: 10px; }
.app-shell .people-customer-note { grid-column: 1 / -1; padding: 12px; background: var(--surface-soft); border-radius: 9px; font-size: 12px; }
.app-shell .people-customer-actions,.app-shell .people-customer-note + .people-customer-actions { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; padding-top: 4px; gap: 7px; }
.app-shell .people-customer-actions .btn { flex: 1 1 auto; justify-content: center; }
.app-shell .people-staff-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,270px),1fr)); gap: 18px; }
.app-shell .people-staff-card { padding: 24px; border-top: 4px solid var(--module-lime); border-radius: 14px; }
.app-shell .people-staff-top .avatar { width: 58px; height: 58px; border-radius: 50%; box-shadow: 0 0 0 5px var(--surface-soft); }
.app-shell .people-staff-card > h3 { font-size: 23px; letter-spacing: -.04em; }
.app-shell .people-staff-day { padding: 14px; border: 0; background: var(--surface-soft); border-radius: 10px; }
.app-shell .people-staff-actions { gap: 8px; padding-top: 15px; }
.app-shell .cards-grid { gap: 18px; }
.app-shell .service-card { padding: 24px; border-radius: 14px; min-height: 242px; border: 1px solid var(--border); box-shadow: none; }
.app-shell .service-card .card-icon { width: 48px; height: 48px; border-radius: 12px; color: var(--module-forest); background: var(--module-lime); }
.app-shell .service-card:nth-child(2n) .card-icon { color: #fff; background: var(--module-green); }
.app-shell .service-card h3 { font-size: 23px; margin-top: 19px; }
.app-shell .service-card .card-footer { border-top: 1px dashed var(--border-strong); padding-top: 18px; }
.app-shell .service-card .card-footer strong { font-size: 29px; font-weight: 750; }

/* Cash, inventory and analytics retain the distinction between values. */
.app-shell :is(.finance-stats,.insights-report-stats,.employee-stats,.business-stats,.platform-metrics,.cron-overview,.legal-admin-stats) { gap: 16px; }
.app-shell :is(.finance-stats,.insights-report-stats,.employee-stats,.platform-metrics) .stat-card,
.app-shell :is(.business-stat,.cron-stat,.legal-admin-stats > div) { border-radius: 14px; padding: 24px; border-top: 3px solid var(--module-lime); box-shadow: none; }
.app-shell :is(.finance-stats,.insights-report-stats,.employee-stats,.platform-metrics) .stat-value,
.app-shell :is(.business-stat,.cron-stat,.legal-admin-stats > div) > strong { font-size: clamp(28px,2.5vw,39px); font-weight: 750; line-height: 1.2; letter-spacing: -.05em; }
.app-shell .finance-stats .stat-card:first-child { background: var(--module-forest); border-color: var(--module-forest); color: #fff; }
.app-shell .finance-stats .stat-card:first-child .stat-value { color: var(--module-lime); }
.app-shell .finance-stats .stat-card:first-child :is(.stat-label,.stat-foot) { color: #d5e8df; }
.app-shell .finance-stats .stat-card:first-child .stat-icon { color: var(--module-lime); background: #ffffff18; }
.app-shell .finance-control-strip { background: var(--module-soft); border: 1px solid var(--module-line); border-radius: 13px; padding: 19px 22px; }
.app-shell .finance-toolbar { margin-bottom: 20px; }
.app-shell .finance-method-balances > span { padding: 12px 14px; border-radius: 9px; background: var(--surface-soft); border: 0; font-size: 12px; }
.app-shell .finance-method-balances > span strong { color: var(--text); font-size: 14px; }
.app-shell .finance-date-range .field input,.app-shell .finance-period-field input { border-radius: 9px; font-size: 14px !important; }
.app-shell :is(.finance-amount,.finance-line-total,.employee-money,.insights-money) { font-variant-numeric: tabular-nums; font-weight: 700; }
.app-shell :is(.finance-tabs,.finance-receivable-filters) { gap: 8px; }
.app-shell .insights-report-toolbar { margin-bottom: 22px; }
.app-shell .insights-chart-panel { overflow: hidden; }
.app-shell .insights-chart-bars { gap: 5px; }
.app-shell .insights-bar-a { background: var(--module-green); }
.app-shell .insights-bar-b { background: var(--module-lime); }
.app-shell .insights-chart-day { border-radius: 9px; }
.app-shell :is(.insights-methods-panel,.insights-rankings > .panel) { border-radius: 14px; }
.app-shell .insights-report-scope { border-radius: 12px; padding: 17px 20px; background: var(--module-soft); }
.modal :is(.finance-modal-summary,.finance-sale-totals,.employee-modal-summary) { padding: 18px; border-radius: 12px; background: var(--primary-soft); border: 1px solid var(--border); }
.modal .finance-sale-line { border-radius: 12px; padding: 16px; background: var(--surface-soft); }

/* Daily operations and follow-ups use clear cards and an unmistakable focus. */
.app-shell .business-day-grid { grid-template-columns: minmax(0,1fr) 300px; gap: 20px; }
.app-shell .business-alert { padding: 20px; border-radius: 13px; border-left: 4px solid var(--module-lime); }
.app-shell .business-alert-icon { border-radius: 11px; }
.app-shell .business-agenda-controls { padding: 0 22px 20px; }
.app-shell .business-appointment { padding: 22px; gap: 17px; }
.app-shell .business-time { border-radius: 10px; background: var(--surface-soft); padding: 12px 5px; }
.app-shell .business-time strong { font-size: 19px; }
.app-shell .business-appointment-person h3 { font-size: 17px; }
.app-shell .business-waitlist-panel { border-radius: 15px; }
.app-shell .followup-page { --followup-forest: var(--module-forest); --followup-lime: var(--module-lime); --followup-warm: var(--surface-soft); }
.app-shell .followup-heading { padding-bottom: 23px; border-bottom: 1px solid var(--border); margin-bottom: 25px; }
.app-shell .followup-heading h1 { font-size: clamp(32px,3vw,43px); font-weight: 800; line-height: 1.12; }
.app-shell .followup-metric { border-radius: 14px; padding: 23px; }
.app-shell .followup-metric > strong { font-size: 48px; font-weight: 750; margin: 18px 0 10px; }
.app-shell .followup-metric.highlight { background: var(--module-forest); border-color: var(--module-forest); }
.app-shell .followup-metric.highlight :is(strong,.followup-metric-link) { color: var(--module-lime); }
.app-shell .followup-metric.highlight small { color: #d5e8df; }
.app-shell .followup-metric.highlight .followup-metric-link { border-color: #ffffff30; }
.app-shell .followup-workspace { grid-template-columns: minmax(0,1fr) 290px; gap: 22px; }
.app-shell .followup-card { border-radius: 14px; }
.app-shell .followup-card h3 { font-size: 20px; line-height: 1.4; }
.app-shell .followup-card-content { padding: 23px; }
.app-shell .followup-card-footer { background: var(--surface-soft); padding: 16px 23px; }
.app-shell .followup-guide { background: var(--module-lime); color: var(--module-forest); border: 0; border-radius: 15px; padding: 27px 23px; }
.app-shell .followup-guide :is(h2,p,small,span,.eyebrow),.app-shell .followup-guide li::before { color: var(--module-forest); }
.app-shell .followup-guide h2 { font-size: 34px; font-weight: 800; }
.app-shell .followup-guide .followup-guide-icon { background: #063d2e; color: var(--module-lime); border-radius: 50%; }
.app-shell .followup-scope-note { border-color: #063d2e30; }

/* Platform management, plans, queues and activity follow the same structure. */
.app-shell .platform-dashboard-grid { gap: 20px; }
.app-shell .platform-intro-panel { background: var(--module-forest); color: #fff; border: 0; border-radius: 15px; }
.app-shell .platform-intro-panel :is(p,small,.eyebrow) { color: #d5e8df; }
.app-shell .platform-intro-panel :is(h2,h3,strong) { color: #fff; }
.app-shell .platform-intro-icon { background: var(--module-lime); color: var(--module-forest); border-radius: 12px; }
.app-shell .platform-attention-item { padding: 17px 12px; border-radius: 10px; border-top-color: var(--border); }
.app-shell .platform-attention-item:hover { background: var(--surface-soft); }
.app-shell .platform-attention-item strong { font-size: 13px; }
.app-shell .platform-trend-bars i { background: var(--module-green); opacity: 1; border-radius: 6px 6px 0 0; }
.app-shell .platform-trend-bars > span:nth-child(3n) i { background: var(--module-lime); }
.app-shell .platform-quick-links { display: grid; gap: 9px; padding: 0 20px 20px; }
.app-shell .platform-quick-links > button { border: 1px solid var(--border); padding: 16px; border-radius: 11px; background: var(--surface); }
.app-shell .platform-quick-links > button:hover { border-color: var(--primary); background: var(--module-soft); }
.app-shell .platform-plan-grid { gap: 20px; align-items: stretch; }
.app-shell .platform-plan-card { padding: 25px; border-radius: 15px; border-top: 4px solid var(--module-lime); }
.app-shell .platform-plan-card.featured { border-color: var(--module-green); box-shadow: 0 0 0 1px var(--module-green); background: var(--surface); }
.app-shell .platform-plan-icon { background: var(--primary-soft); color: var(--primary-text); border-radius: 12px; }
.app-shell .platform-plan-price { font-size: 39px; font-weight: 750; color: var(--text); letter-spacing: -.05em; }
.app-shell .platform-plan-features { border-top: 1px dashed var(--border-strong); padding-top: 19px; }
.app-shell :is(.platform-subscription-summary,.platform-queue-card,.platform-task-summary-card) { border-radius: 13px; padding: 21px; background: var(--surface); border: 1px solid var(--border); }
.app-shell .platform-subscription-queues { gap: 16px; }
.app-shell .platform-task-summary-card { border-top: 3px solid var(--module-lime); }
.app-shell .platform-task-summary-icon { border-radius: 11px; background: var(--primary-soft); color: var(--primary-text); }
.app-shell .platform-task-row { border-radius: 11px; margin: 10px 14px; padding: 18px; background: var(--surface-soft); border: 1px solid var(--border); }
.app-shell .platform-task-row-title { font-size: 15px; font-weight: 700; }
.app-shell .platform-task-row-actions { gap: 8px; }
.app-shell .platform-detail-section { border-radius: 13px; padding: 22px; background: var(--surface-soft); }
.app-shell :is(.platform-detail-facts,.platform-detail-counts) { gap: 14px; }
.app-shell .admin-report-chart { border-radius: 12px; background: var(--surface-soft); }
.app-shell .admin-report-filter { border-top: 3px solid var(--module-lime); }

/* Subscription, integrations, editing and operational settings. */
.app-shell .connections-current-plan { padding: 25px; border-radius: 15px; background: var(--module-soft); border: 1px solid var(--module-line); }
.app-shell .connections-current-plan h2 { font-size: 29px; }
.app-shell .connections-provider-grid { gap: 20px; }
.app-shell .connections-provider-card { border-radius: 14px; padding: 24px; box-shadow: none; border-top: 3px solid var(--module-lime); }
.app-shell .connections-provider-icon { border-radius: 12px; background: var(--primary-soft); color: var(--primary-text); }
.app-shell .connections-provider-heading h3 { font-size: 20px; }
.app-shell .connections-plan-grid { gap: 18px; }
.app-shell .connections-plan { border-radius: 14px; padding: 24px; }
.app-shell .connections-plan.selected { background: var(--module-soft); border-color: var(--primary); }
.app-shell :is(.connections-quota-card,.connections-summary-card,.connections-notification-guide) { border-radius: 13px; border: 1px solid var(--border); padding: 22px; background: var(--surface); }
.app-shell .connections-settings-footer { padding: 18px 0 0; border-top: 1px solid var(--border); }
.app-shell .booking-editor-grid { gap: 24px; align-items: start; }
.app-shell .booking-editor-form { border: 0; background: transparent; box-shadow: none; padding: 0; }
.app-shell .booking-theme-section,.app-shell .editor-content-section { padding: 23px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); margin-bottom: 18px; }
.app-shell .editor-section-heading { padding-bottom: 19px; margin-bottom: 20px; border-bottom: 1px solid var(--border); gap: 13px; }
.app-shell .editor-section-heading > span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--module-lime); color: var(--module-forest); font-size: 12px; font-weight: 750; flex-shrink: 0; }
.app-shell .booking-theme-card { border-radius: 12px; box-shadow: none; }
.app-shell .booking-theme-card.selected { outline: 2px solid var(--primary); outline-offset: 2px; }
.app-shell .editor-preview-heading { padding: 20px; margin: 0; border: 1px solid var(--border); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--surface); }
.app-shell .editor-preview-heading strong { font-size: 21px; }
.app-shell .editor-preview-toolbar { border-inline: 1px solid var(--border); background: var(--surface); padding: 0 20px 18px; }
.app-shell .editor-preview-stage { background: var(--surface-soft); border: 1px solid var(--border); border-radius: 0 0 14px 14px; padding: 18px; }
.app-shell .editor-savebar { padding: 19px 21px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); box-shadow: 0 8px 25px #063d2e0a; }
.app-shell .website-editor-notice { border-radius: 14px; border: 1px solid var(--module-line); background: var(--module-soft); padding: 23px; }
.app-shell .website-editor-section { border-radius: 14px; overflow: hidden; }
.app-shell .website-editor-section .panel-heading { background: var(--surface-soft); border-bottom: 1px solid var(--border); }
.app-shell .website-card-editor { border-radius: 11px; }
.app-shell .website-card-heading { background: var(--surface-soft); }
.app-shell .website-editor-save { border-radius: 13px; border-top: 3px solid var(--module-lime); box-shadow: 0 8px 30px #063d2e0d; }
.app-shell .website-brand-library { border-radius: 14px; }
.app-shell .website-banner-preview { background: var(--surface-soft); }
.app-shell .updates-page { max-width: 1100px; }
.app-shell .updates-status { padding: 25px; border-radius: 15px; background: var(--module-soft); border: 1px solid var(--module-line); }
.app-shell .updates-status h2 { font-size: 20px; }
.app-shell .updates-flow { gap: 12px; }
.app-shell .updates-flow li { padding: 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.app-shell .updates-flow li > span { width: 30px; height: 30px; flex-basis: 30px; border: 0; border-radius: 9px; color: var(--module-forest); background: var(--module-lime); }
.app-shell .updates-file-drop { padding: 27px; border: 2px dashed var(--border-strong); background: var(--surface-soft); border-radius: 13px; }
.app-shell .updates-readiness > div { background: var(--surface); border-radius: 10px; padding: 16px; }
.app-shell .cron-job { border-radius: 14px; padding: 0; border: 1px solid var(--border); background: var(--surface); }
.app-shell .cron-job-head { padding: 23px; }
.app-shell .cron-job-facts { padding: 0 23px 23px; }
.app-shell .cron-job-actions { padding: 17px 23px; }
.app-shell .cron-job-icon { border-radius: 12px; color: var(--module-forest); background: var(--module-lime); }
.app-shell .cron-job-facts { gap: 12px; }
.app-shell .cron-guide { background: var(--surface-soft); border-radius: 12px; padding: 20px; }
.app-shell .cron-guide-number { background: var(--module-green); color: #fff; border-radius: 9px; }
.app-shell .cron-setup-section { border-radius: 12px; }
.app-shell :is(.cron-code,.cron-setup-secret) { overflow-wrap: anywhere; border-radius: 9px; }
.app-shell .legal-admin-scope-row { background: var(--module-soft); border-radius: 13px; border-color: var(--module-line); padding: 22px; }
.app-shell .legal-admin-panel { border-radius: 14px; }
.app-shell .legal-admin-document-list { gap: 9px; }
.app-shell .legal-admin-document-list > button { border-radius: 10px; padding: 16px; background: var(--surface); }
.app-shell .legal-admin-document-list > button.is-active { border-color: var(--primary); background: var(--primary-soft); }
.app-shell .legal-admin-request-card { border-radius: 12px; padding: 20px; }
.app-shell .legal-admin-review { border-radius: 11px; background: var(--module-soft); }

/* Conversations and staff tools have their own recognizable workspace. */
.app-shell .support-inbox { --si-soft: var(--surface-soft); --si-ink: var(--text); --si-surface: var(--surface); --si-line: var(--border); --si-muted: var(--muted); }
.app-shell .support-inbox-heading { padding-bottom: 23px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.app-shell .support-inbox-heading h1 { font-size: 40px; font-weight: 800; letter-spacing: -.05em; }
.app-shell .support-inbox-count { color: var(--module-forest); background: var(--module-lime); border: 0; border-radius: 12px; padding: 14px 18px; }
.app-shell .support-inbox-settings { border-radius: 12px; background: var(--surface); border-color: var(--border); }
.app-shell .support-inbox-layout { border-radius: 15px; border-color: var(--border); box-shadow: none; }
.app-shell .support-inbox-toolbar { padding: 18px; }
.app-shell .support-inbox-sidebar { background: var(--surface-soft); }
.app-shell .support-inbox-conversation { border-radius: 10px; margin: 8px 12px; width: calc(100% - 24px); border: 1px solid transparent; background: var(--surface); }
.app-shell .support-inbox-conversation[aria-current=true],.app-shell .support-inbox-conversation[aria-selected=true] { background: var(--primary-soft); border-color: var(--primary); }
.app-shell .support-inbox-avatar { background: var(--module-green); color: #fff; border-radius: 50%; }
.app-shell .support-inbox-thread-heading { background: var(--surface); padding: 22px; }
.app-shell .support-inbox-message-list { background: var(--surface-soft); }
.app-shell .support-inbox-message.is-admin p { background: var(--module-green); color: #fff; border-color: var(--module-green); }
.app-shell .support-inbox-button.is-primary { background: var(--module-green); color: #fff; border-color: var(--module-green); }
.app-shell .support-inbox-button.is-lime { background: var(--module-lime); color: var(--module-forest); border-color: var(--module-lime); }
.app-shell .support-inbox-compose-box { border-radius: 12px; }
.app-shell .support-inbox :is(button,input,textarea):focus-visible { outline-color: var(--primary); }
.app-shell .employee-appointment { padding: 24px; border-radius: 14px; border-left: 4px solid var(--module-lime); }
.app-shell .employee-appointment-time { background: var(--primary-soft); border: 0; border-radius: 11px; padding: 14px 10px; }
.app-shell .employee-appointment-time strong { font-size: 23px; color: var(--primary-text); }
.app-shell .employee-appointment h3 { font-size: 21px; }
.app-shell .employee-access-card { border-radius: 14px; border-top: 4px solid var(--module-lime); }
.app-shell .employee-access-person .avatar { border-radius: 50%; width: 48px; height: 48px; }
.app-shell .employee-request-card { border-radius: 14px; }
.app-shell .employee-request-footer { background: var(--surface-soft); }
.auth-verification-screen .auth-verification-card { border-radius: 16px; border-top: 4px solid #c6ff32; }
.auth-verification-card .auth-verification-progress { gap: 7px; }
.auth-verification-card .auth-code-input { letter-spacing: .23em; text-align: center; font-size: 24px; font-variant-numeric: tabular-nums; }
.modal .auth-channel-selector { gap: 10px; }
.modal :is(.auth-security-notice,.auth-contact) { border-radius: 12px; padding: 17px; background: var(--surface-soft); border-color: var(--border); }

/* Public booking: spacing only, deliberately no palette or font replacement. */
.booking-screen.public-enhanced .public-section { scroll-margin-top: 20px; }
.booking-screen.public-enhanced .public-progress { gap: 12px; }
.booking-screen.public-enhanced :is(.public-service,.public-date,.slot) { min-height: 46px; }
.booking-screen.public-enhanced .public-section-title { gap: 12px; }

@media (max-width: 1200px) {
  .app-shell .people-customer-list { grid-template-columns: minmax(0,1fr); }
  .app-shell .people-customer { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); }
  .app-shell .people-customer .people-person { grid-column: auto; border-bottom: 0; padding-bottom: 0; }
  .app-shell .people-customer-note { grid-column: 1 / -1; }
  .app-shell .business-day-grid,.app-shell .followup-workspace { grid-template-columns: minmax(0,1fr); }
  .app-shell .followup-guide { display: block; }
  .app-shell .connections-provider-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 960px) {
  .app-shell .people-customer { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .app-shell .people-customer .people-person { grid-column: 1 / -1; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
  .app-shell .calendar-tools { justify-content: flex-start; }
  .app-shell .calendar-tools input { max-width: none; }
  .app-shell .platform-plan-grid,.app-shell .connections-plan-grid { grid-template-columns: minmax(0,1fr); }
  .app-shell .platform-plan-card { padding: 24px; }
  .app-shell .booking-editor-grid { grid-template-columns: minmax(0,1fr); }
  .app-shell .editor-preview-column { position: static; }
}
@media (max-width: 760px) {
  .app-shell :is(.people-toolbar,.finance-toolbar,.platform-filter-panel,.admin-report-filter,.platform-task-filter,.business-datebar,.employee-range-form,.insights-report-toolbar,.connections-log-filters,.followup-filters) { padding: 16px; gap: 13px; border-radius: 12px; }
  .app-shell :is(.people-metrics,.business-stats,.finance-stats,.insights-report-stats,.platform-metrics,.employee-stats,.cron-overview,.legal-admin-stats) { gap: 12px; }
  .app-shell :is(.finance-stats,.insights-report-stats,.employee-stats,.platform-metrics) .stat-card,.app-shell :is(.business-stat,.cron-stat,.legal-admin-stats > div) { padding: 19px 16px; }
  .app-shell .people-metric { padding: 18px; gap: 13px; }
  .app-shell .people-metric strong { font-size: 31px; }
  .app-shell .people-metric-icon { width: 40px; height: 40px; }
  .app-shell :is(.people-filter,.business-filter-chips button,.view-toggle button,.legal-admin-tabs button,.support-inbox-tabs button,.booking-device-toggle button,.filter-chip) { min-height: 44px; }
  .app-shell .calendar-toolbar { margin-inline: 12px; padding: 14px; flex-direction: column; align-items: stretch; }
  .app-shell .calendar-tools { flex-basis: auto; width: 100%; display: grid; grid-template-columns: minmax(0,1fr); }
  .app-shell .calendar-tools :is(input,select) { width: 100%; max-width: none; font-size: 16px; }
  .app-shell .date-nav { display: grid; grid-template-columns: 40px minmax(0,1fr) 40px; gap: 6px; width: 100%; }
  .app-shell .date-nav > label { min-width: 0; }
  .app-shell .date-nav input[type=date] { min-width: 0; width: 100%; font-size: 16px; text-align: center; }
  .app-shell .date-nav > .btn { grid-column: 1 / -1; justify-content: center; }
  .app-shell .staff-filter { padding-inline: 13px; gap: 7px; }
  .app-shell .calendar-panel > .panel-heading { padding: 20px 17px 16px; }
  .app-shell .calendar-panel .panel-heading h2 { font-size: 22px; }
  .app-shell .week-grid { padding: 12px; gap: 12px; background: var(--bg); }
  .app-shell .week-day { border-radius: 12px; }
  .app-shell .week-date { min-height: 61px; padding: 16px; }
  .app-shell .week-overview { padding: 17px; }
  .app-shell .legend { padding: 17px; gap: 10px; flex-wrap: wrap; }
  .app-shell .people-panel-heading { padding: 0 0 14px; flex-wrap: wrap; }
  .app-shell .people-customer { padding: 19px; gap: 16px; }
  .app-shell .people-person h3 { font-size: 20px; }
  .app-shell .people-customer-actions { gap: 8px; }
  .app-shell .people-staff-card,.app-shell .service-card { padding: 21px; }
  .app-shell .service-card h3 { font-size: 23px; }
  .app-shell .cards-grid,.app-shell .connections-provider-grid { grid-template-columns: minmax(0,1fr); }
  .app-shell .business-attention-grid { grid-template-columns: minmax(0,1fr); }
  .app-shell .business-appointment { padding: 18px; gap: 13px; }
  .app-shell .business-appointment-person h3 { font-size: 17px; }
  .app-shell .followup-heading { align-items: flex-start; }
  .app-shell .followup-heading h1 { font-size: 34px; }
  .app-shell .followup-metric { padding: 20px; }
  .app-shell .followup-metric > strong { font-size: 39px; }
  .app-shell .followup-card-content { padding: 20px; }
  .app-shell .followup-card-footer { padding: 16px 20px; }
  .app-shell .finance-method-balances { width: 100%; justify-content: flex-start; }
  .app-shell .finance-method-balances > span { flex: 1 1 135px; min-width: 0; justify-content: space-between; }
  .app-shell .finance-date-range .field input,.app-shell .finance-period-field input { font-size: 16px !important; }
  .app-shell :is(.booking-theme-section,.editor-content-section) { padding: 19px 16px; }
  .app-shell .editor-section-heading h2 { font-size: 19px; }
  .app-shell .editor-savebar { position: static; flex-direction: column; align-items: stretch; padding: 17px; gap: 12px; }
  .app-shell .editor-savebar .btn { justify-content: center; width: 100%; }
  .app-shell .editor-preview-heading { padding: 18px; }
  .app-shell .editor-preview-toolbar { padding-inline: 18px; flex-wrap: wrap; gap: 12px; }
  .app-shell .editor-preview-stage { padding: 10px; }
  .app-shell .website-editor-fields { padding: 18px; grid-template-columns: minmax(0,1fr); }
  .app-shell .website-wide { grid-column: 1; }
  .app-shell .website-editor-save { position: static; }
  .app-shell .updates-status,.app-shell .updates-file-drop { padding: 20px; }
  .app-shell .updates-flow { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .app-shell .updates-flow li { padding: 13px 16px; }
  .app-shell .cron-job-head { padding: 18px; }
  .app-shell .cron-job-facts { padding: 0 18px 18px; }
  .app-shell .cron-job-actions { padding: 15px 18px; }
  .app-shell .cron-job-actions { gap: 9px; flex-wrap: wrap; }
  .app-shell .legal-admin-scope-row { padding: 19px; }
  .app-shell .support-inbox-heading { gap: 15px; flex-wrap: wrap; }
  .app-shell .support-inbox-heading h1 { font-size: 34px; }
  .app-shell .support-inbox-count { padding: 12px 16px; }
  .app-shell .support-inbox-conversation { margin-inline: 9px; width: calc(100% - 18px); }
  .app-shell .support-inbox-thread-heading { padding: 17px; }
  .app-shell .employee-appointment { padding: 19px; gap: 14px; }
  .app-shell .employee-appointment h3 { font-size: 19px; }
  .app-shell .employee-appointment-time { padding: 11px 9px; }
  .modal .booking-workflow section { padding: 16px 13px; }
  .modal .calendar-slots { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .modal .calendar-slot { font-size: 16px; min-height: 46px; }
  .booking-screen.public-enhanced :is(input,select,textarea) { font-size: 16px; }
  .booking-screen.public-enhanced .public-section { padding-inline: 16px; }
  .booking-screen.public-enhanced .public-progress { gap: 7px; }
  .booking-screen.public-enhanced .public-success-actions { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 480px) {
  .app-shell .people-customer { grid-template-columns: minmax(0,1fr); }
  .app-shell .people-customer .people-person { grid-column: 1; }
  .app-shell .people-visits { background: var(--surface-soft); padding: 13px; border-radius: 9px; }
  .app-shell .people-contact { padding-block: 2px; }
  .app-shell .people-customer-actions .btn { flex-basis: 100%; }
  .app-shell .people-metrics { grid-template-columns: minmax(0,1fr); }
  .app-shell .people-metric { padding: 18px 20px; }
  .app-shell .people-metric strong { font-size: 34px; }
  .app-shell .week-appointments { grid-template-columns: minmax(0,1fr); }
  .app-shell .followup-filters { grid-template-columns: minmax(0,1fr); }
  .app-shell .support-inbox-thread-actions { gap: 7px; flex-wrap: wrap; }
  .app-shell .employee-appointment { grid-template-columns: minmax(0,1fr); }
  .app-shell .employee-appointment-time { flex-direction: row; align-items: center; justify-content: space-between; }
  .app-shell .employee-appointment-actions { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .app-shell .employee-appointment-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion:reduce) {
  .app-shell :is(.people-customer,.followup-metric,.week-appointment) { transition: none; transform: none; }
}
html[data-theme=dark] .app-shell .insights-bar-a,html[data-theme=dark] .app-shell .platform-trend-bars i { background: #47cf9b; }
html[data-theme=dark] .app-shell .platform-trend-bars > span:nth-child(3n) i { background: #c6ff32; }

/* Management overview: one metric band, one priority strip, a balanced
   health/chart row and a full-width collection of management shortcuts. */
.app-shell .platform-metrics { grid-template-columns: 1.1fr repeat(3,minmax(0,1fr)); gap: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); margin-bottom: 22px; }
.app-shell .platform-metrics .stat-card { border: 0; border-radius: 0; padding: 26px; min-height: 170px; background: transparent; box-shadow: none; }
.app-shell .platform-metrics .stat-card + .stat-card { border-left: 1px solid var(--border); }
.app-shell .platform-metrics .stat-card::after { display: none; }
.app-shell .platform-metrics .stat-value { font-size: 42px; line-height: 1.15; margin-block: 16px 12px; }
.app-shell .platform-metrics :is(.stat-label,.stat-foot) { font-size: 12px; }
.app-shell .platform-metrics .stat-card .stat-icon { width: 36px; height: 36px; color: var(--primary-text); background: var(--primary-soft); border-radius: 11px; }
.app-shell .platform-metrics .stat-card:first-child { background: var(--module-forest); color: #fff; }
.app-shell .platform-metrics .stat-card:first-child .stat-value { color: var(--module-lime); }
.app-shell .platform-metrics .stat-card:first-child :is(.stat-label,.stat-foot) { color: #deefe5; }
.app-shell .platform-metrics .stat-card:first-child .stat-icon { background: #ffffff1a; color: var(--module-lime); }
.app-shell .platform-dashboard-grid { grid-template-columns: minmax(0,.8fr) minmax(0,1.25fr); grid-template-areas: 'attention attention' 'health trend' 'quick quick'; gap: 20px; align-items: stretch; }
.app-shell .platform-dashboard-grid > .panel { min-width: 0; }
.app-shell .platform-attention { grid-area: attention; display: grid; grid-template-columns: minmax(230px,.7fr) minmax(0,1.6fr); border-left: 4px solid var(--module-lime); }
.app-shell .platform-attention > .panel-heading { padding: 22px; border-right: 1px solid var(--border); align-items: center; gap: 14px; }
.app-shell .platform-attention .panel-heading h2 { font-size: 21px; }
.app-shell .platform-attention-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,270px),1fr)); gap: 8px; padding: 15px; align-content: center; }
.app-shell .platform-attention-item { padding: 16px; border: 0; background: var(--surface-soft); border-radius: 11px; }
.app-shell .platform-attention-item small { font-size: 12px; line-height: 1.5; }
.app-shell .platform-attention .platform-clear-state { margin: 12px; padding: 20px; border: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.app-shell .platform-health { grid-area: health; overflow: hidden; }
.app-shell .platform-health > .panel-heading { padding: 23px 24px 18px; }
.app-shell .platform-health-list { padding: 0 24px; }
.app-shell .platform-health-list > div { padding: 13px 0; gap: 10px; }
.app-shell .platform-health-list strong { font-size: 12px; font-weight: 700; }
.app-shell .platform-health-list p { font-size: 11px; line-height: 1.55; margin-top: 5px; }
.app-shell .platform-health-status { font-size: 10px; background: var(--surface-soft); padding: 3px 7px; border-radius: 6px; }
.app-shell .platform-health-dot { margin-top: 8px; }
.app-shell .platform-update-note { padding: 14px 24px 20px; font-size: 10px; }
.app-shell .platform-trend { grid-area: trend; display: flex; flex-direction: column; overflow: hidden; }
.app-shell .platform-trend > .panel-heading { padding: 24px; }
.app-shell .platform-trend-bars { height: auto; min-height: 205px; flex: 1 0 205px; margin: 0 24px; padding: 18px 0 0; gap: 7px; border-bottom: 1px solid var(--border); background: repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),var(--border) calc(25% - 1px),var(--border) 25%); }
.app-shell .platform-trend-bars i { border-radius: 6px 6px 0 0; min-height: 3px; }
.app-shell .platform-trend-labels { margin: 12px 24px 17px; font-size: 11px; }
.app-shell .platform-trend-details { margin: 0 24px 22px; }
.app-shell .platform-trend-details summary { padding: 7px 0; font-size: 12px; }
.app-shell .platform-quick-access { grid-area: quick; background: var(--surface); }
.app-shell .platform-quick-access > .panel-heading { padding: 23px 24px 19px; }
.app-shell .platform-quick-links { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 0 23px 23px; }
.app-shell .platform-quick-links > button { min-height: 94px; padding: 17px 15px; border-radius: 11px; border: 1px solid var(--border); gap: 12px; background: var(--surface-soft); }
.app-shell .platform-quick-links > button > svg:first-child { box-sizing: content-box; width: 18px; height: 18px; padding: 10px; border-radius: 11px; background: var(--surface); color: var(--primary-text); }
.app-shell .platform-quick-links > button > svg:last-child { width: 14px; height: 14px; }
.app-shell .platform-quick-links strong { font-size: 13px; font-weight: 700; }
.app-shell .platform-quick-links small { font-size: 11px; line-height: 1.55; margin-top: 6px; }
.app-shell .platform-quick-links > button:nth-child(3n + 1) > svg:first-child { background: var(--module-lime); color: var(--module-forest); }
.app-shell .platform-quick-links > button:hover { background: var(--surface); border-color: var(--primary); }
@media (max-width: 1200px) {
  .app-shell .platform-metrics .stat-card { padding: 21px; }
  .app-shell .platform-metrics .stat-value { font-size: 35px; }
  .app-shell .platform-dashboard-grid { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); }
  .app-shell .platform-quick-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 960px) {
  .app-shell .platform-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-shell .platform-metrics .stat-card { min-height: 156px; }
  .app-shell .platform-metrics .stat-card:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .app-shell .platform-metrics .stat-card:nth-child(4) { border-top: 1px solid var(--border); }
  .app-shell .platform-dashboard-grid { grid-template-columns: minmax(0,1fr); grid-template-areas: 'attention' 'health' 'trend' 'quick'; }
  .app-shell .platform-attention { grid-template-columns: minmax(0,1fr); }
  .app-shell .platform-attention > .panel-heading { border-right: 0; padding-bottom: 13px; }
  .app-shell .platform-attention-list { padding-top: 0; }
  .app-shell .platform-health-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 22px; }
  .app-shell .platform-trend-bars { height: 220px; flex: none; }
}
@media (max-width: 600px) {
  .app-shell .platform-metrics .stat-card { padding: 18px 16px; min-height: 150px; }
  .app-shell .platform-metrics .stat-value { font-size: 32px; margin-block: 14px 9px; }
  .app-shell .platform-metrics .stat-top { align-items: flex-start; gap: 6px; }
  .app-shell .platform-metrics .stat-label { font-size: 11px; }
  .app-shell .platform-metrics .stat-foot { font-size: 11px; line-height: 1.55; }
  .app-shell .platform-metrics .stat-card .stat-icon { width: 29px; height: 29px; flex-shrink: 0; border-radius: 8px; }
  .app-shell .platform-metrics .stat-icon svg { width: 16px; height: 16px; }
  .app-shell .platform-attention > .panel-heading,.app-shell .platform-health > .panel-heading,.app-shell .platform-trend > .panel-heading,.app-shell .platform-quick-access > .panel-heading { padding: 20px 17px 17px; }
  .app-shell .platform-attention-list { padding: 0 13px 14px; }
  .app-shell .platform-attention-item { padding: 14px; gap: 9px; }
  .app-shell .platform-health-list { display: block; padding-inline: 18px; }
  .app-shell .platform-update-note { padding-inline: 18px; }
  .app-shell .platform-trend-bars { margin-inline: 18px; min-height: 190px; height: 190px; gap: 5px; }
  .app-shell .platform-trend-labels,.app-shell .platform-trend-details { margin-inline: 18px; }
  .app-shell .platform-quick-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 0 13px 14px; }
  .app-shell .platform-quick-links > button { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px 5px; align-content: start; padding: 15px 12px; min-height: 146px; }
  .app-shell .platform-quick-links > button > svg:first-child { grid-column: 1; grid-row: 1; padding: 8px; }
  .app-shell .platform-quick-links > button > svg:last-child { grid-column: 2; grid-row: 1; align-self: center; }
  .app-shell .platform-quick-links > button > span { grid-column: 1 / -1; grid-row: 2; }
  .app-shell .platform-quick-links strong { font-size: 12px; }
  .app-shell .platform-quick-links small { font-size: 11px; margin-top: 5px; }
}
