/* Studio workspace modules. Calendar positions remain one pixel per minute. */

/* Calendar and directory */
.app-shell .calendar-panel { border-radius: 22px; }
.app-shell .calendar-panel > .panel-heading { padding-bottom: 20px; }
.app-shell .calendar-toolbar { padding: 0 26px 19px; gap: 16px; }
.app-shell .calendar-count { padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); color: var(--muted); font-size: 12px; font-weight: 600; }
.app-shell .date-nav { flex-wrap: wrap; gap: 7px; }
.app-shell .date-nav .icon-button { width: 36px; height: 36px; border-radius: 10px; background: var(--surface); }
.app-shell .date-nav input[type='date'] { width: 151px; min-height: 38px; padding: 7px 8px; font-size: 13px; font-weight: 600; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 10px; }
.app-shell .date-nav strong { font-size: 14px; }
.app-shell .staff-filter { gap: 9px; padding: 0 26px 23px; }
.app-shell .schedule-header { background: var(--surface-soft); }
.app-shell .schedule-corner { font-size: 10px !important; letter-spacing: .08em; }
.app-shell .staff-heading { padding: 17px 14px; gap: 10px; }
.app-shell .staff-heading .avatar { width: 36px; height: 36px; font-size: 11px; border-radius: 12px; }
.app-shell .staff-heading > div { min-width: 0; }
.app-shell .staff-name { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .staff-title { font-size: 11px; margin-top: 4px; }
.app-shell .time-gutter { background: var(--surface); }
.app-shell .time-label { font-size: 10px; color: var(--muted); }
.app-shell .appointment { border-radius: 8px; padding: 4px 7px 3px 8px; border-left-width: 3px; }
.app-shell .appointment-time { font-size: 9px; }
.app-shell .appointment-name { font-size: 11px; line-height: 1.15; }
.app-shell .appointment-service { font-size: 10px; line-height: 1.35; }
html:not([data-theme='dark']) .app-shell .appointment { color: var(--text); }
.app-shell .appointment.compact { padding-block: 0; border-radius: 5px; }
.app-shell .appointment:focus-visible { z-index: 6; outline: 2px solid var(--primary); outline-offset: 2px; }
.app-shell .break-block { font-size: 10px; }
.app-shell .legend { padding: 17px 26px; gap: 14px 22px; font-size: 11px; background: var(--surface); }
.app-shell .legend-dot { width: 8px; height: 8px; }
.app-shell .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.app-shell :is(.service-card, .staff-card) { padding: 26px; border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 5px 22px rgb(20 31 58 / 3%); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.app-shell :is(.service-card, .staff-card):hover { border-color: color-mix(in srgb, var(--primary) 28%, var(--border)); box-shadow: 0 10px 30px rgb(20 31 58 / 7%); transform: translateY(-2px); }
.app-shell .service-card { display: flex; flex-direction: column; min-height: 220px; overflow: hidden; }
.app-shell .service-card .card-icon { width: 52px; height: 52px; border-radius: 16px; }
.app-shell :is(.service-card, .staff-card) h3 { font-size: 19px; line-height: 1.35; letter-spacing: -.035em; margin: 19px 0 7px; }
.app-shell :is(.service-card, .staff-card) p { font-size: 13px; margin-bottom: 20px; }
.app-shell .service-duration { font-size: 12px; gap: 7px; }
.app-shell .service-duration svg { width: 15px; height: 15px; }
.app-shell .card-footer { padding-top: 19px; margin-top: 23px; gap: 12px; }
.app-shell .service-card .card-footer { margin-top: auto; padding-top: 19px; }
.app-shell .service-card .service-duration { margin-bottom: 23px; }
.app-shell .card-footer strong { font-size: 24px; letter-spacing: -.045em; }
.app-shell .card-footer > span { font-size: 12px; }
.app-shell .staff-card > .avatar { width: 64px; height: 64px; font-size: 20px; border-radius: 19px; box-shadow: 0 0 0 5px var(--surface-soft); }
.app-shell .staff-hours { flex-wrap: wrap; gap: 7px; padding: 10px 12px; border-radius: 11px; background: var(--surface-soft); font-size: 12px; line-height: 1.5; }
.app-shell .staff-hours small { font-size: 11px; }
.app-shell .staff-services { gap: 7px; min-height: 60px; margin: 19px 0 15px; }
.app-shell .staff-services .badge { font-size: 11px; line-height: 1.5; padding: 5px 9px; border-radius: 7px; background: var(--surface-soft); color: var(--muted); }
.app-shell .staff-card > .btn { width: 100%; justify-content: center; }
.app-shell .staff-card .card-footer { margin-top: 19px; }
.app-shell .person-cell { gap: 12px; }
.app-shell .person-cell strong { font-size: 13px; font-weight: 650; }
.app-shell .note-preview { max-width: 240px; font-size: 12px; }

/* Finance: generous filters and clearly separated values. */
.app-shell .finance-toolbar { align-items: center; gap: 20px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; margin-bottom: 24px; }
.app-shell .finance-date-range { gap: 12px; }
.app-shell :is(.finance-date-range, .finance-period-field) .field label,
.app-shell .finance-period-field label { font-size: 12px; }
.app-shell .finance-date-range .field input,
.app-shell .finance-period-field input { min-height: 44px !important; padding: 10px 12px !important; font-size: 14px !important; border-radius: 10px; }
.app-shell .finance-method-balances { gap: 9px; }
.app-shell .finance-method-balances > span { min-width: 108px; padding: 11px 13px; gap: 12px; background: var(--surface-soft); border-radius: 10px; font-size: 12px; }
.app-shell .finance-method-balances strong { font-weight: 700; }
.app-shell .finance-period-field { max-width: 220px; }
.app-shell .finance-period-note { max-width: 400px; font-size: 12px; line-height: 1.7; }
.app-shell .finance-stats .stat-value { font-size: clamp(25px, 2.25vw, 34px); }
.app-shell .finance-date { font-size: 12px; }
.app-shell .finance-direction { padding: 6px 9px; border-radius: 7px; font-size: 11px; gap: 7px; }
.app-shell .finance-amount { font-size: 14px; font-weight: 700; }
.app-shell .finance-row-actions { gap: 5px; flex-wrap: wrap; }
.app-shell .finance-row-actions .btn { font-size: 12px; padding-inline: 10px; }
.app-shell .finance-stock { font-size: 12px; padding: 6px 10px; border-radius: 7px; }
.app-shell :is(.finance-product-preview, .finance-note-preview) { font-size: 12px; margin-top: 5px; }
.app-shell .finance-ledger-panel { margin-top: 26px; }
.finance-modal-summary { padding: 20px; border-radius: 16px; margin-bottom: 24px; }
.finance-modal-summary span { font-size: 13px; }
.finance-modal-summary strong { font-size: 25px; }
.finance-sale-lines { gap: 14px; }
.finance-sale-line { grid-template-columns: minmax(0, 1fr) 78px 100px 36px; gap: 12px; padding: 16px; border-radius: 14px; }
.finance-sale-line .field label { font-size: 12px; }
.finance-sale-line .field :is(input, select) { min-height: 44px; padding: 10px; font-size: 14px; }
.finance-sale-line .field-hint { font-size: 11px; line-height: 1.5; }
.finance-line-total { font-size: 14px; }
.finance-remove-line { width: 36px; height: 36px; border-radius: 9px; }
.finance-sale-totals { padding: 20px; border-radius: 15px; gap: 8px 14px; }
.finance-sale-totals > span { font-size: 13px; }
.finance-sale-totals > strong { font-size: 26px; }
.finance-sale-totals > small { font-size: 12px; }
.finance-sale-detail-table { border-radius: 14px; overflow-x: auto; }
.finance-sale-detail-table :is(th, td) { padding: 13px 15px; font-size: 12px; }
.finance-refund-review { padding: 22px; border-radius: 16px; }
.finance-refund-review .eyebrow { font-size: 11px; }
.finance-refund-review h3 { font-size: 20px; }
.finance-refund-review :is(ul, p), .finance-refund-review > div { font-size: 13px; }
.finance-refund-review > div > strong { font-size: 22px; }
.finance-confirm-copy { font-size: 14px; }

/* Reports and customer profiles */
.app-shell .insights-report-toolbar { padding: 20px 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); gap: 20px; }
.app-shell .insights-range { gap: 12px; }
.app-shell .insights-range .field label { font-size: 12px; }
.app-shell .insights-range .field input { font-size: 14px; min-height: 44px; padding: 10px 12px; border-radius: 10px; }
.app-shell .insights-report-scope { font-size: 12px; gap: 10px; margin: 20px 2px 23px; }
.app-shell .insights-report-stats .stat-value { font-size: clamp(25px, 2.25vw, 34px); }
.app-shell .insights-report-secondary { padding: 25px 27px; border-radius: 20px; gap: 22px; box-shadow: 0 5px 22px rgb(20 31 58 / 3%); }
.app-shell .insights-report-secondary > div { gap: 9px; padding-right: 15px; border-right: 1px solid var(--border); }
.app-shell .insights-report-secondary > div:last-child { border-right: 0; padding-right: 0; }
.app-shell .insights-report-secondary span { font-size: 12px; }
.app-shell .insights-report-secondary strong { font-size: 23px; font-weight: 700; }
.app-shell .insights-report-secondary small { font-size: 11px; line-height: 1.6; }
.app-shell .insights-chart-legend { padding: 0 27px 22px; gap: 14px 24px; }
.app-shell .insights-chart-legend > span { font-size: 12px; }
.app-shell .insights-chart-legend i { width: 9px; height: 9px; border-radius: 3px; }
.app-shell .insights-chart-legend small { font-size: 11px; }
.app-shell .insights-chart-scroll { margin-inline: 27px; }
.app-shell .insights-chart-bars > i { border-radius: 5px 5px 0 0; opacity: .95; }
.app-shell .insights-chart-date { font-size: 10px; }
.app-shell .insights-chart-tooltip { font-size: 11px; padding: 12px; border-radius: 11px; }
.app-shell .insights-chart-help { font-size: 11px; padding: 14px 27px 24px; }
.app-shell .insights-rankings { gap: 24px; }
.app-shell .insights-rank { width: 27px; height: 27px; font-size: 11px; border-radius: 8px; }
.app-shell .insights-methods { gap: 16px; padding: 0 27px 27px; }
.app-shell .insights-method { padding: 22px; border-radius: 16px; }
.app-shell .insights-method > div { gap: 10px; font-size: 14px; font-weight: 650; }
.app-shell .insights-method svg { width: 19px; height: 19px; }
.app-shell .insights-method dl { gap: 12px; margin-top: 21px; }
.app-shell .insights-method dl > div { font-size: 12px; flex-wrap: wrap; }
.app-shell .insights-method .net { padding-top: 14px; margin-top: 4px; font-size: 14px; }
.app-shell .insights-basis-note strong { font-size: 13px; }
.app-shell .insights-basis-note p { font-size: 12px; }
.insights-customer-header { padding: 4px 0 24px; gap: 20px; margin-bottom: 0; }
.insights-customer-header > .avatar { width: 68px; height: 68px; border-radius: 20px; font-size: 22px; }
.insights-customer-header .eyebrow { font-size: 10px; }
.insights-customer-header h2 { font-size: 27px; }
.insights-contact { font-size: 12px; }
.insights-contact svg { width: 15px; height: 15px; }
.insights-profile-stats { gap: 13px; }
.insights-profile-stats .stat-card { padding: 19px; border-radius: 16px; }
.insights-profile-stats .stat-label { font-size: 12px; }
.insights-profile-stats .stat-value { font-size: 25px; margin: 15px 0 8px; }
.insights-profile-stats .stat-foot { font-size: 11px; }
.insights-collection-breakdown { padding: 19px 3px 22px; font-size: 12px; }
.insights-customer-note { padding: 18px 20px; border-radius: 14px; }
.insights-customer-note .eyebrow { font-size: 10px; }
.insights-customer-note p { font-size: 13px; }
.insights-history-tabs button > span { font-size: 11px; }
.insights-history-table { border-radius: 15px; overflow: auto; }
.insights-history-table :is(td, th) { padding: 16px; font-size: 12px; }
.insights-date { font-size: 12px; }
.insights-history-scope { font-size: 11px; line-height: 1.6; }

/* Availability is a readable day-by-day editor. */
.availability-intro { padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.availability-intro h3 { font-size: 24px; letter-spacing: -.035em; }
.availability-intro p { font-size: 13px; }
.availability-intro-icon { width: 54px; height: 54px; border-radius: 17px; }
.availability-tools { margin-bottom: 19px; }
.availability-tools p { font-size: 12px; }
.availability-days { border: 0; border-radius: 0; display: grid; gap: 11px; overflow: visible; }
.availability-day { border: 1px solid var(--border); border-radius: 15px; padding: 18px; gap: 16px; }
.availability-day:last-child { border-bottom: 1px solid var(--border); }
.availability-day-title strong { font-size: 14px; }
.availability-day-status { font-size: 12px; margin-top: 4px; }
.availability-day .field label { font-size: 11px; margin-bottom: 7px; }
.availability-day input[type='time'] { min-height: 43px; padding: 9px; font-size: 14px; border-radius: 9px; }
.availability-switch { width: 40px; height: 24px; }
.availability-switch > span::after { width: 18px; height: 18px; }
.availability-switch input:checked + span::after { transform: translateX(16px); }
.availability-leave-section { padding-top: 27px; margin-top: 27px; }
.availability-section-heading h3 { font-size: 18px; }
.availability-section-heading p, .availability-save-status { font-size: 12px; }
.availability-empty { padding: 24px; border-radius: 15px; }
.availability-empty strong { font-size: 14px; }
.availability-empty p { font-size: 12px; line-height: 1.6; }
.availability-vacation { padding: 17px 19px; border-radius: 14px; }
.availability-vacation-copy strong { font-size: 14px; }
.availability-vacation-copy p { font-size: 12px; }

/* Connections, messages and subscription */
.app-shell .connections-provider-grid { gap: 22px; }
.app-shell .connections-provider-card { min-width: 0; padding: 26px; border-radius: 22px; }
.app-shell .connections-provider-heading { gap: 12px; margin-bottom: 22px; }
.app-shell .connections-provider-icon { width: 49px; height: 49px; border-radius: 15px; background: var(--primary-soft); border: 0; }
.app-shell .connections-provider-heading h2 { font-size: 25px; }
.app-shell .connections-provider-description { font-size: 13px; line-height: 1.75; }
.connections-status { padding: 6px 9px; border-radius: 7px; line-height: 1.45; font-size: 11px; }
.connections-toggle { min-height: 36px; gap: 12px; }
.connections-toggle-track { width: 38px; height: 23px; padding: 3px; }
.connections-toggle-track::after { width: 17px; height: 17px; }
.connections-toggle > input:checked + .connections-toggle-track::after { transform: translateX(15px); }
.connections-toggle strong { font-size: 13px; font-weight: 650; }
.connections-toggle small { font-size: 12px; line-height: 1.6; }
.app-shell .connections-fields { gap: 18px; margin-top: 24px; }
.app-shell .connections-test-mode { padding: 17px; border-radius: 13px; }
.app-shell .connections-provider-actions { gap: 10px; padding-top: 20px; margin-top: 20px; }
.app-shell .connections-provider-actions .btn { font-size: 12px; }
.app-shell .connections-runtime-checks { gap: 15px; padding: 0 26px 26px; }
.app-shell .connections-runtime-checks > div { padding: 15px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-soft); min-width: 0; flex-wrap: wrap; font-size: 12px; }
.app-shell .connections-runtime-mark { width: 34px; height: 34px; border-radius: 10px; }
.app-shell .connections-callback { padding: 22px 26px; }
.app-shell .connections-callback code { font-size: 12px; line-height: 1.7; }
.app-shell .connections-worker-note { padding: 20px 26px; }
.app-shell .connections-notification-layout { grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: 24px; }
.app-shell .connections-notification-settings form { padding: 0 26px 26px; }
.app-shell .connections-channel-options { gap: 16px; }
.app-shell .connections-channel-options > div { padding: 20px; border-radius: 15px; }
.app-shell .connections-channel-options .connections-status { margin-left: 50px; }
.app-shell .connections-event-options { padding-top: 25px; gap: 23px; }
.app-shell .connections-event-options > .field,
.app-shell .connections-event-options > .field-hint { padding-left: 50px; }
.app-shell .connections-notification-guide { position: relative; padding: 30px; overflow: hidden; border-radius: 22px; background: linear-gradient(135deg, var(--primary-soft), var(--surface)); }
.app-shell .connections-notification-guide h2 { font-size: 28px; line-height: 1.22; }
.app-shell .connections-notification-guide p { font-size: 13px; line-height: 1.8; }
.app-shell .connections-notification-guide strong { font-size: 13px; }
.app-shell .connections-guide-icon { width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 24px; }
.app-shell .connections-log-note { padding: 19px 26px; font-size: 12px; }
.connections-message-preview { padding: 22px; border-radius: 16px; }
.connections-message-preview h3 { font-size: 18px; }
.connections-message-preview p { font-size: 14px; }
.app-shell .connections-current-plan { position: relative; overflow: hidden; gap: 22px; padding: 30px 32px; border: 1px solid #263959; border-radius: 22px; background: radial-gradient(ellipse at 100% 0, #34467a 0, transparent 65%), #18243c; color: #f5f7ff; box-shadow: 0 12px 26px rgb(20 31 58 / 10%); margin-bottom: 31px; }
.app-shell .connections-current-plan > .connections-provider-icon { width: 62px; height: 62px; border-radius: 18px; color: #dce4ff; background: rgb(255 255 255 / 10%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%); }
.app-shell .connections-current-plan .eyebrow { color: #b1c1e1; font-size: 10px !important; letter-spacing: .14em; }
.app-shell .connections-current-plan h2 { font-size: 30px; color: #fff; margin: 8px 0; }
.app-shell .connections-current-plan p { color: #c3cce1; font-size: 13px; }
.app-shell .connections-current-period { gap: 11px; padding: 17px 20px; border-radius: 14px; background: rgb(255 255 255 / 7%); border: 1px solid rgb(255 255 255 / 10%); }
.app-shell .connections-current-period span { color: #b1c1da; font-size: 12px; }
.app-shell .connections-current-period strong { color: #f5f7ff; font-size: 16px; }
.app-shell .connections-billing-heading { margin-bottom: 23px; gap: 20px; }
.app-shell .connections-billing-heading h2 { font-size: 22px; }
.app-shell .connections-billing-heading p { font-size: 13px; }
.app-shell .connections-plan-grid { gap: 21px; margin-bottom: 25px; }
.app-shell .connections-plan { display: flex; flex-direction: column; min-width: 0; padding: 28px; border-radius: 21px; box-shadow: 0 5px 22px rgb(20 31 58 / 3%); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.app-shell .connections-plan:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: 0 9px 26px rgb(20 31 58 / 8%); }
.app-shell .connections-plan:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 4px; }
.app-shell .connections-plan.selected { border-color: var(--primary); background: linear-gradient(145deg, var(--primary-soft), var(--surface) 85%); box-shadow: 0 0 0 1px var(--primary), 0 10px 30px color-mix(in srgb, var(--primary) 9%, transparent); }
.app-shell .connections-plan-check { top: 25px; right: 24px; width: 24px; height: 24px; border-width: 2px; }
.app-shell .connections-plan-check svg { width: 14px; height: 14px; }
.app-shell .connections-plan h3 { font-size: 23px; margin-bottom: 12px; margin-right: 30px; }
.app-shell .connections-plan p { font-size: 13px; line-height: 1.75; min-height: 46px; margin-bottom: 28px; }
.app-shell .connections-plan > strong { font-size: clamp(28px, 2.7vw, 38px); font-weight: 750; line-height: 1.2; letter-spacing: -.055em; margin-top: auto; }
.app-shell .connections-plan > strong.is-unpriced { font-size: 22px; font-weight: 600; color: var(--muted); letter-spacing: -.03em; }
.app-shell .connections-plan-period { font-size: 12px !important; margin-top: 9px; }
.app-shell .connections-plan > div { font-size: 13px; padding-top: 21px; margin-top: 24px; width: 100%; }
.app-shell .connections-checkout-summary { gap: 24px; padding: 25px 29px; border-radius: 19px; }
.app-shell .connections-checkout-summary .eyebrow { font-size: 10px; }
.app-shell .connections-checkout-summary h2 { font-size: 21px; margin: 8px 0; }
.app-shell .connections-checkout-summary p { font-size: 12px; }
.app-shell .connections-checkout-summary > strong { font-size: 27px; font-weight: 750; }
.app-shell .connections-checkout-summary > strong.is-unpriced { font-size: 19px; font-weight: 600; color: var(--muted); }
.app-shell .connections-billing-terms { padding: 0 3px; font-size: 12px; line-height: 1.85; max-width: 1050px; margin: 20px 0 28px; }
.connections-checkout-review { padding: 22px; border-radius: 16px; }
.connections-checkout-review > div > span { font-size: 14px; }
.connections-checkout-review > div > strong { font-size: 27px; }
.connections-checkout-review p { font-size: 13px; }
.connections-checkout-ready h3 { font-size: 25px; }
.connections-checkout-ready p { font-size: 14px; }
.app-shell .connections-payment-overview { gap: 18px; padding: 0 26px 26px; }
.app-shell .connections-payment-overview > div { padding: 21px; border-radius: 15px; }
.app-shell .connections-payment-overview span { font-size: 12px; }
.app-shell .connections-payment-overview strong { font-size: 26px; }

/* Booking theme studio. The theme previews retain their own design tokens. */
.app-shell .booking-editor-grid { gap: 27px; grid-template-columns: minmax(0, 1.2fr) minmax(350px, .85fr); }
.app-shell .booking-editor-grid > .settings-card { padding: 29px; border-radius: 22px; }
.app-shell .editor-section-heading { gap: 13px; margin-bottom: 23px; }
.app-shell .editor-section-heading > span:first-child { width: 40px; height: 40px; border-radius: 13px; font-size: 12px; }
.app-shell .editor-section-heading h2 { font-size: 18px; line-height: 1.3; margin-bottom: 7px; }
.app-shell .theme-section-heading h2 { font-size: 24px; }
.app-shell .editor-section-heading p { font-size: 12px; }
.app-shell .editor-theme-count { font-size: 11px; padding: 7px 10px; border-radius: 9px; }
.app-shell .booking-theme-gallery { gap: 14px; }
.app-shell .booking-theme-card { padding: 7px 7px 15px; border-radius: 17px; }
.app-shell .booking-theme-meta { padding: 13px 6px 3px; }
.app-shell .booking-theme-meta > strong { font-size: 13px; }
.app-shell .booking-theme-tagline { font-size: 10px; padding-inline: 6px; }
.app-shell .booking-theme-description { font-size: 11px; padding: 6px 6px 0; line-height: 1.6; }
.app-shell .editor-selected-theme { padding: 15px; border-radius: 13px; margin-top: 20px; font-size: 12px; }
.app-shell .editor-selected-theme small { font-size: 11px; }
.app-shell .editor-theme-note { max-width: 140px; font-size: 10px; }
.app-shell .editor-content-section { padding-top: 28px; margin-top: 28px; }
.app-shell .editor-image-field { padding: 19px; border-radius: 15px; }
.app-shell .editor-image-label label { font-size: 13px; }
.app-shell .editor-image-label small, .app-shell .editor-image-actions { font-size: 11px; }
.app-shell .editor-image-field input[type=file] { font-size: 12px; }
.app-shell .editor-image-field input[type=file]::file-selector-button { padding: 11px 13px; border-radius: 9px; }
.app-shell .editor-checkbox { font-size: 13px; padding: 17px; border-radius: 14px; }
.app-shell .editor-checkbox small { font-size: 12px; }
.app-shell .editor-savebar { gap: 17px; padding-top: 23px; }
.app-shell .editor-savebar > .btn { font-size: 13px; }
.app-shell .editor-save-message { font-size: 12px; }
.app-shell .editor-preview-column { top: 106px; }
.app-shell .editor-preview-kicker { font-size: 10px; }
.app-shell .editor-preview-heading strong { font-size: 21px; }
.app-shell .editor-preview-theme { font-size: 11px; border-radius: 9px; padding: 8px 11px; }
.app-shell .editor-preview-toolbar > p { font-size: 11px; }
.app-shell .booking-device-toggle { padding: 4px; border-radius: 11px; }
.app-shell .booking-device-toggle button { min-height: 36px; padding: 7px 10px; font-size: 11px; border-radius: 8px; }
.app-shell .editor-preview-stage { padding: 18px; border-radius: 23px; background: radial-gradient(circle at 1px 1px, var(--border-strong) 1px, transparent 0) 0 0 / 16px 16px, var(--surface-soft); }
.app-shell .editor-preview-frame { border-radius: 17px; box-shadow: 0 16px 36px rgb(20 31 58 / 10%); }
.app-shell .editor-browser-bar { min-height: 38px; font-size: 10px; padding: 10px 13px; }
.app-shell .editor-browser-dots i { width: 6px; height: 6px; }
.app-shell .editor-draft-label { font-size: 8px; }
.app-shell .editor-preview-footnote { font-size: 12px; margin-top: 18px; }

/* Platform management */
.platform-shell .platform-workspace { padding: 15px 12px; margin: 3px 0 24px; border-color: rgb(255 255 255 / 9%); background: rgb(255 255 255 / 5%); border-radius: 13px; }
.platform-shell .platform-workspace > span { color: #a9b7ff; }
.platform-shell .platform-workspace strong { color: #eef1ff; font-size: 12px; }
.platform-shell .platform-workspace small { color: #9daac6; font-size: 10px; }
.platform-shell .platform-sidebar-note { padding: 17px 9px 22px; }
.platform-shell .platform-sidebar-note strong { color: #d6def0; font-size: 12px; }
.platform-shell .platform-sidebar-note p { color: #9daac6; font-size: 11px; line-height: 1.7; }
.platform-shell .platform-sidebar-note > svg { color: #a9b7ff; }
.platform-shell .platform-intro-panel { padding: 28px; border-radius: 20px; gap: 20px; background: linear-gradient(125deg, var(--primary-soft), var(--surface)); }
.platform-shell .platform-intro-icon { width: 54px; height: 54px; background: var(--surface); border-radius: 17px; }
.platform-shell .platform-intro-panel .eyebrow { font-size: 10px; }
.platform-shell .platform-intro-panel h2 { font-size: 21px; line-height: 1.4; }
.platform-shell .platform-intro-panel p { font-size: 13px; line-height: 1.75; }
.platform-shell .platform-intro-note { font-size: 12px; }
.platform-shell .platform-intro-note strong { font-size: 17px; }
.platform-status { padding: 6px 9px; gap: 7px; border-radius: 7px; font-size: 11px; }
.platform-date { font-size: 12px; }
.platform-shell .platform-result-count, .platform-shell .platform-filter-label { font-size: 13px; }
.platform-shell .platform-plan-toolbar > p { font-size: 13px; }
.platform-shell .platform-plan-grid { gap: 23px; }
.platform-shell .platform-plan-card { padding: 29px; border-radius: 22px; }
.platform-shell .platform-plan-card.featured { border-color: var(--primary); box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 9%, transparent); }
.platform-shell .platform-plan-eyebrow { margin-bottom: 24px; flex-wrap: wrap; }
.platform-shell .platform-plan-eyebrow > span:first-child { font-size: 10px; }
.platform-shell .platform-plan-eyebrow .badge { font-size: 10px; padding: 6px 8px; }
.platform-shell .platform-plan-icon { width: 50px; height: 50px; border-radius: 15px; }
.platform-shell .platform-plan-card h2 { font-size: 26px; }
.platform-shell .platform-plan-description { font-size: 13px; line-height: 1.8; }
.platform-shell .platform-plan-price { font-size: clamp(30px, 2.7vw, 40px); }
.platform-shell .platform-plan-price > span { font-size: 12px; }
.platform-shell .platform-plan-price.unset { font-size: 23px; }
.platform-shell .platform-plan-period { font-size: 11px; line-height: 1.6; }
.platform-shell .platform-plan-features { gap: 16px; padding-top: 24px; }
.platform-shell .platform-plan-features li { font-size: 13px; line-height: 1.5; }
.platform-shell .platform-plan-features svg { width: 15px; height: 15px; }
.platform-detail-counts { gap: 12px; }
.platform-detail-counts > div { padding: 19px 13px; border-radius: 14px; }
.platform-detail-counts strong { font-size: 27px; }
.platform-detail-counts span { font-size: 11px; }
.platform-detail-section h3 { font-size: 15px; }
.platform-subscription-summary { padding: 19px; border-radius: 14px; gap: 16px; }
.platform-subscription-summary span { font-size: 11px; }
.platform-subscription-summary strong { font-size: 13px; }
.platform-contact-list strong, .platform-member-list strong { font-size: 13px; }
.platform-contact-list small, .platform-member-list small { font-size: 12px; }
.platform-branch-list > span { padding: 10px 12px; border-radius: 9px; font-size: 12px; }
.platform-status-confirm { padding: 25px; border-radius: 16px; }
.platform-status-confirm h3 { font-size: 21px; }
.platform-status-confirm p { font-size: 13px; }
.platform-activation-summary { padding: 22px; border-radius: 16px; }
.platform-activation-summary span, .platform-activation-summary p { font-size: 13px; }
.platform-activation-summary strong { font-size: 25px; }
.platform-activation-summary small { font-size: 12px; }

@media (min-width: 1500px) {
  .app-shell .cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .app-shell .booking-editor-grid { grid-template-columns: minmax(0, 1.15fr) minmax(410px, 1fr); }
}
@media (max-width: 1250px) {
  .app-shell .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell .connections-provider-grid { grid-template-columns: minmax(0, 1fr); }
  .app-shell .connections-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell .connections-fields > .form-grid { grid-column: 1 / -1; }
  .app-shell .connections-notification-layout { grid-template-columns: minmax(0, 1fr); }
  .app-shell .connections-plan { padding: 24px; }
  .app-shell .connections-plan-check { right: 19px; top: 22px; }
  .app-shell .connections-plan h3 { font-size: 21px; }
  .app-shell .connections-plan > strong { font-size: 29px; }
  .app-shell .insights-report-secondary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-shell .insights-report-secondary > div:nth-child(3) { border-right: 0; }
  .app-shell .booking-theme-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell .booking-editor-grid > .settings-card { padding: 24px; }
  .app-shell .editor-preview-toolbar { flex-wrap: wrap; }
}
@media (max-width: 1080px) {
  .app-shell .booking-editor-grid { grid-template-columns: minmax(0, 1fr); }
  .app-shell .booking-theme-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-shell .editor-preview-column { position: static; width: 100%; max-width: 760px; margin: 0 auto; }
  .app-shell .editor-preview-toolbar { flex-wrap: nowrap; }
  .app-shell .connections-plan-grid { gap: 16px; }
  .app-shell .finance-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .app-shell .finance-method-balances { justify-content: flex-start; }
  .app-shell .finance-period-note { text-align: left; }
  .app-shell .insights-rankings { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .app-shell .calendar-panel > .panel-heading { align-items: flex-start; gap: 14px; flex-wrap: wrap; }
  .app-shell .calendar-toolbar { padding: 0 18px 17px; gap: 12px; }
  .app-shell .date-nav { gap: 6px; }
  .app-shell .date-nav .icon-button { width: 38px; height: 40px; }
  .app-shell .date-nav input[type='date'] { width: 147px; min-height: 42px; font-size: 16px; padding-inline: 6px; }
  .app-shell .date-nav .btn { margin-left: 0; }
  .app-shell .staff-filter { padding: 0 18px 20px; gap: 7px; }
  .app-shell .calendar-count { font-size: 11px; padding: 7px 10px; }
  .app-shell .legend { padding: 16px 18px; gap: 12px 18px; }
  .app-shell :is(.service-card, .staff-card) { padding: 23px; border-radius: 19px; }
  .app-shell .finance-toolbar, .app-shell .insights-report-toolbar { padding: 18px; gap: 16px; border-radius: 16px; }
  .app-shell .finance-date-range { width: 100%; gap: 10px; }
  .app-shell .finance-date-range .field { flex: 1; min-width: 0; }
  .app-shell .finance-date-range > span { display: none; }
  .app-shell .finance-date-range .field input, .app-shell .finance-period-field input { font-size: 16px !important; padding-inline: 9px !important; min-width: 0; }
  .app-shell .finance-method-balances { width: 100%; gap: 8px; }
  .app-shell .finance-method-balances > span { flex: 1 1 130px; justify-content: space-between; min-width: 0; font-size: 12px; padding: 12px; }
  .app-shell .finance-period-note { font-size: 12px; }
  .app-shell .finance-period-field { width: 100%; max-width: none; }
  .app-shell :is(.finance-stats, .insights-report-stats) .stat-value { font-size: 25px; }
  .finance-sale-line { grid-template-columns: minmax(0, 1fr) 78px 36px; padding: 15px; }
  .finance-sale-line > .field:first-child { grid-column: 1 / 3; }
  .finance-sale-line > .finance-quantity-field { grid-column: 1; grid-row: 2; max-width: 95px; }
  .finance-sale-line .field :is(input, select) { font-size: 16px; }
  .finance-line-total { grid-column: 2 / 4; grid-row: 2; font-size: 15px; }
  .finance-remove-line { grid-column: 3; grid-row: 1; align-self: start; margin-top: 25px; }
  .finance-modal-summary { gap: 8px; padding: 18px; }
  .finance-sale-totals { padding: 18px; }
  .finance-sale-totals > strong { font-size: 25px; }
  .app-shell .insights-range { width: 100%; gap: 10px; }
  .app-shell .insights-range .field input { font-size: 16px; min-width: 0; padding-inline: 9px; }
  .app-shell .insights-report-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px; gap: 22px 15px; }
  .app-shell .insights-report-secondary > div { border-right: 0; padding-right: 0; }
  .app-shell .insights-report-secondary > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 18px; }
  .app-shell .insights-report-secondary strong { font-size: 22px; }
  .app-shell .insights-chart-legend { padding-inline: 18px; }
  .app-shell .insights-chart-scroll { margin-inline: 18px; }
  .app-shell .insights-chart-help { padding-inline: 18px; }
  .app-shell .insights-methods { grid-template-columns: minmax(0, 1fr); padding: 0 18px 18px; gap: 12px; }
  .app-shell .insights-method { padding: 19px; }
  .insights-customer-header { gap: 14px; }
  .insights-customer-header > .avatar { width: 55px; height: 55px; border-radius: 16px; font-size: 18px; }
  .insights-customer-header h2 { font-size: 23px; }
  .insights-customer-header > .btn { margin-left: 0; }
  .insights-profile-stats .stat-card { padding: 16px; }
  .insights-profile-stats .stat-value { font-size: 23px; }
  .insights-history-tabs { flex-wrap: wrap; }
  .insights-history-tabs button { font-size: 12px; padding: 9px 10px; }
  .availability-day { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 15px; padding: 16px; }
  .availability-day-title { grid-column: 1 / -1; }
  .availability-day-break { padding-left: 0; border-left: 0; }
  .availability-day input[type='time'] { min-height: 44px; font-size: 16px; padding-inline: 7px; }
  .availability-intro h3 { font-size: 22px; }
  .app-shell .connections-provider-card { padding: 21px; }
  .app-shell .connections-fields { grid-template-columns: minmax(0, 1fr); }
  .app-shell .connections-runtime-checks { grid-template-columns: minmax(0, 1fr); gap: 11px; padding-inline: 20px; }
  .app-shell .connections-callback, .app-shell .connections-worker-note { padding: 20px; }
  .app-shell .connections-notification-settings form { padding: 0 20px 20px; }
  .app-shell .connections-channel-options { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .app-shell .connections-channel-options > div { padding: 17px; }
  .app-shell .connections-notification-guide { padding: 25px; }
  .app-shell .connections-notification-guide h2 { font-size: 26px; }
  .app-shell .connections-current-plan { padding: 24px; gap: 17px; border-radius: 20px; }
  .app-shell .connections-current-plan > .connections-provider-icon { width: 50px; height: 50px; border-radius: 15px; }
  .app-shell .connections-current-plan h2 { font-size: 26px; }
  .app-shell .connections-current-period { margin: 4px 0 0; width: 100%; flex-direction: row; justify-content: space-between; align-items: center; padding: 14px 16px; text-align: left; }
  .app-shell .connections-current-period strong { font-size: 14px; }
  .app-shell .connections-billing-heading { align-items: flex-start; }
  .app-shell .connections-billing-heading h2 { font-size: 21px; }
  .app-shell .connections-plan-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .app-shell .connections-plan { padding: 24px; border-radius: 18px; }
  .app-shell .connections-plan h3 { font-size: 23px; }
  .app-shell .connections-plan p { min-height: 0; margin-bottom: 20px; max-width: 420px; }
  .app-shell .connections-plan > strong { font-size: 33px; }
  .app-shell .connections-plan > div { padding-top: 17px; margin-top: 19px; }
  .app-shell .connections-checkout-summary { padding: 22px; gap: 18px; border-radius: 18px; }
  .app-shell .connections-checkout-summary > strong { font-size: 25px; }
  .app-shell .connections-checkout-summary > .btn { width: 100%; justify-content: center; }
  .app-shell .connections-payment-overview { grid-template-columns: minmax(0, 1fr); padding: 0 20px 20px; gap: 12px; }
  .app-shell .booking-editor-grid { gap: 28px; }
  .app-shell .booking-editor-grid > .settings-card { padding: 21px; }
  .app-shell .booking-theme-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .app-shell .theme-section-heading h2 { font-size: 22px; }
  .app-shell .editor-theme-count { padding: 6px 8px; font-size: 10px; }
  .app-shell .booking-theme-meta { padding-inline: 3px; }
  .app-shell .booking-theme-meta > strong { font-size: 12px; }
  .app-shell .booking-theme-tagline, .app-shell .booking-theme-description { padding-inline: 3px; }
  .app-shell .booking-theme-description { font-size: 10px; }
  .app-shell .editor-theme-note { display: none; }
  .app-shell .editor-savebar > .btn { width: 100%; margin: 0; }
  .app-shell .editor-save-message { max-width: none; }
  .app-shell .editor-preview-stage { padding: 12px; border-radius: 20px; }
  .app-shell .editor-preview-toolbar { gap: 12px; flex-wrap: wrap; }
  .app-shell .editor-preview-toolbar > p { max-width: none; }
  .app-shell .editor-browser-bar { font-size: 9px; }
  .platform-shell .platform-intro-panel { padding: 22px; align-items: flex-start; }
  .platform-shell .platform-intro-panel h2 { font-size: 19px; }
  .platform-shell .platform-intro-panel p { font-size: 12px; }
  .platform-shell .platform-plan-card { padding: 25px; }
  .platform-shell .platform-plan-card h2 { font-size: 24px; }
  .platform-shell .platform-plan-price { font-size: 32px; }
  .platform-shell .platform-plan-toolbar { flex-wrap: wrap; }
  .platform-subscription-summary > div { min-width: 0; }
}
@media (max-width: 520px) {
  .app-shell .cards-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .app-shell .service-card { min-height: 210px; }
  .app-shell .date-nav { width: 100%; }
  .app-shell .date-nav .btn { margin-left: auto; }
  .app-shell .calendar-count { border: 0; padding: 0; background: transparent; }
  .finance-modal-summary { align-items: flex-start; flex-direction: column; }
  .finance-refund-review { padding: 18px; }
  .finance-detail-actions > .btn { flex: 1 1 140px; }
  .availability-day { grid-template-columns: minmax(0, 1fr); }
  .availability-day-title { grid-column: auto; }
  .availability-tools { flex-direction: column; align-items: flex-start; }
  .availability-section-heading { flex-direction: column; align-items: flex-start; }
  .availability-intro { align-items: flex-start; gap: 12px; }
  .availability-intro-icon { width: 44px; height: 44px; border-radius: 13px; }
  .availability-intro h3 { font-size: 20px; }
  .app-shell .connections-checkout-summary > div { flex-basis: calc(100% - 120px); }
  .app-shell .connections-billing-heading .view-toggle { width: 100%; }
  .app-shell .booking-editor-grid > .settings-card { padding: 18px; }
  .app-shell .editor-section-heading { gap: 10px; }
  .app-shell .editor-section-heading > span:first-child { width: 34px; height: 34px; }
  .app-shell .theme-section-heading h2 { font-size: 20px; }
  .app-shell .editor-theme-count { display: none; }
  .app-shell .booking-theme-gallery { gap: 10px; }
  .app-shell .booking-theme-card { padding: 6px 6px 12px; border-radius: 13px; }
  .app-shell .editor-image-field { padding: 15px; }
  .app-shell .editor-image-field input[type=file] { font-size: 11px; }
  .app-shell .editor-preview-heading strong { font-size: 20px; }
  .app-shell .booking-device-toggle { width: 100%; }
  .app-shell .booking-device-toggle button { flex: 1; min-height: 40px; }
  .app-shell .editor-preview-toolbar > p { width: 100%; }
  .platform-shell .platform-plan-card { display: flex; }
  .platform-shell .platform-plan-features { border-left: 0; border-top: 1px solid var(--border); padding: 22px 0 0; margin-bottom: 24px; }
  .platform-shell .platform-plan-toolbar .view-toggle { width: 100%; }
  .platform-shell .platform-plan-toolbar .view-toggle button { flex: 1; }
  .platform-detail-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-subscription-summary { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell :is(.service-card, .staff-card, .connections-plan) { transition: none; }
  .app-shell :is(.service-card, .staff-card, .connections-plan):hover { transform: none; }
}
