.practice-page { --practice-purple: #cfc2f0; }
.practice-client-switch { min-height: 43px; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.practice-client-switch:hover { background: rgba(255,255,255,.6); }
.practice-alert { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-bottom: 18px; padding: 17px 20px; border-radius: 17px; background: var(--lime); }
.practice-alert[hidden] { display: none; }
.practice-alert > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 12px; font-weight: 850; }
.practice-alert div > * { display: block; }
.practice-alert strong { font-size: 12px; }
.practice-alert small { margin-top: 2px; color: var(--ink-soft); font-size: 9px; }
.practice-alert button { padding: 0; border: 0; background: transparent; font-size: 10px; font-weight: 850; cursor: pointer; }
.practice-overview-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(220px,.65fr); gap: 16px; }
.today-card, .practice-side-cards > article { padding: 23px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.today-list { display: grid; }
.today-list article { min-height: 67px; display: grid; grid-template-columns: 50px 42px 1fr auto auto; gap: 11px; align-items: center; border-top: 1px solid var(--line); }
.today-list article.current { margin-inline: -10px; padding-inline: 10px; border: 0; border-radius: 12px; background: rgba(216,239,97,.22); }
.today-list time { font-size: 12px; font-weight: 800; }
.today-list p, .today-list p > * { display: block; margin: 0; }
.today-list strong { font-size: 11px; }
.today-list small { color: var(--ink-soft); font-size: 8px; }
.today-list button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: 8px; font-weight: 800; cursor: pointer; }
.practice-side-cards { display: grid; gap: 16px; }
.practice-side-cards > article { display: grid; align-content: center; }
.income-card { background: var(--ink) !important; color: white; }
.income-card span, .income-card small { color: rgba(255,255,255,.55); font-size: 9px; }
.income-card strong { margin: 5px 0; font-size: 29px; letter-spacing: -1.4px; }
.income-card button, .profile-health button { justify-self: start; margin-top: 13px; padding: 0; border: 0; background: transparent; color: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.profile-health div { display: flex; justify-content: space-between; font-size: 10px; }
.profile-health div strong { font-size: 18px; }
.profile-health i, .profile-readiness > i { height: 7px; display: block; margin: 11px 0; overflow: hidden; border-radius: 99px; background: rgba(24,48,43,.1); }
.profile-health i b, .profile-readiness > i b { width: 92%; height: 100%; display: block; border-radius: inherit; background: var(--lime-strong); }
.profile-health small { color: var(--ink-soft); font-size: 9px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; }
.metric-grid article { display: grid; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.6); }
.metric-grid span, .metric-grid small { color: var(--ink-soft); font-size: 8px; }
.metric-grid strong { margin: 4px 0; font-size: 24px; letter-spacing: -1px; }
.section-line > small { color: var(--ink-soft); font-size: 8px; }
.heading-actions { display: flex; gap: 8px; }

.booking-state-legend { display: flex; flex-wrap: wrap; gap: 18px; margin: -12px 0 20px; color: var(--ink-soft); font-size: 8px; }
.booking-state-legend span { display: flex; align-items: center; gap: 6px; }
.booking-state-legend i { width: 7px; height: 7px; border-radius: 50%; }
.pending-dot { background: var(--coral); }.payment-dot { background: var(--yellow); }.confirmed-dot { background: #69a57e; }
.provider-booking-list { display: grid; gap: 10px; }
.provider-booking-card { display: grid; grid-template-columns: 53px minmax(180px,1.1fr) minmax(150px,.8fr) auto; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.provider-booking-card.needs-action { border-left: 4px solid var(--coral); }
.provider-booking-card .booking-client { display: flex; align-items: center; gap: 11px; }
.provider-booking-card > button.mini-avatar { border: 0; cursor: pointer; }
.provider-booking-card p, .provider-booking-card p > * { display: block; margin: 0; }
.provider-booking-card strong { font-size: 12px; }
.provider-booking-card small { color: var(--ink-soft); font-size: 8px; }
.booking-slot { display: grid; }
.booking-slot strong { font-size: 11px; }
.booking-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.booking-meta span { padding: 3px 6px; border-radius: 99px; background: var(--cream); color: var(--ink-soft); font-size: 7px; }
.booking-card-actions { min-width: 204px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.booking-card-actions button { min-height: 31px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: transparent; font-size: 8px; font-weight: 800; cursor: pointer; }
.booking-card-actions .primary-action { border-color: var(--ink); background: var(--ink); color: white; }
.booking-card-actions .danger-action { color: #a9483e; }
.state-label { width: max-content; margin-top: 5px; padding: 4px 7px; border-radius: 99px; background: #eeeae4; color: #665f59; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.state-label.pending_confirmation { background: #ffe1db; color: #98453b; }
.state-label.checkout_pending { background: #fff0bf; color: #7b6120; }
.state-label.confirmed { background: #dcebdc; color: #2d6843; }
.state-label.completed { background: #dcebdc; color: #2d6843; }
.empty-bookings { padding: 35px; border: 1px dashed var(--line); border-radius: 16px; color: var(--ink-soft); text-align: center; font-size: 11px; }

.booking-snapshot { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; margin: 18px 0; }
.booking-snapshot div { padding: 12px; border-radius: 10px; background: var(--cream); }
.booking-snapshot span, .booking-snapshot strong { display: block; }
.booking-snapshot span { color: var(--ink-soft); font-size: 8px; }
.booking-snapshot strong { margin-top: 2px; font-size: 10px; }
.intake-preview { padding: 13px; border-left: 3px solid var(--lime-strong); background: rgba(216,239,97,.17); font-size: 9px; }
.intake-preview strong { display: block; margin-bottom: 3px; }
.booking-dialog-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.booking-dialog-actions button { flex: 1; min-height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 99px; background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.booking-dialog-actions .primary-action { background: var(--ink); color: white; }

.calendar-health { display: flex; align-items: center; gap: 13px; margin-bottom: 17px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.calendar-health > span { padding: 5px 7px; border-radius: 5px; background: var(--lilac); font-size: 7px; font-weight: 900; letter-spacing: 1px; }
.calendar-health p { flex: 1; margin: 0; }
.calendar-health p > * { display: block; }
.calendar-health strong { font-size: 10px; }.calendar-health small { color: var(--ink-soft); font-size: 8px; }
.calendar-health > b { color: #3c7653; font-size: 8px; }
.week-toolbar { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 16px 0 10px; }
.week-toolbar button { border: 0; background: transparent; cursor: pointer; }
.week-toolbar strong { font-size: 12px; }
.week-grid { min-width: 720px; height: 525px; display: grid; grid-template-columns: 48px repeat(5,1fr); gap: 5px; }
.week-times { display: grid; grid-template-rows: 48px repeat(6,1fr); color: var(--ink-soft); font-size: 7px; }
.week-times span { transform: translateY(38px); }
.week-day { display: grid; grid-template-rows: 48px repeat(8,1fr); gap: 3px; padding: 0 3px; border-left: 1px solid var(--line); }
.week-day > b { text-align: center; font-size: 8px; text-transform: uppercase; }.week-day > b strong { display: block; font-size: 18px; }
.week-day > i { z-index: 1; display: grid; align-content: center; padding: 7px; border-radius: 8px; font-size: 8px; font-style: normal; font-weight: 800; }
.week-day i small { display: block; font-size: 7px; font-weight: 500; }
.week-day .available { border: 1px dashed #90ac79; background: rgba(216,239,97,.17); color: #5e784d; }
.week-day .booking { background: var(--lilac); }.week-day .blue-event { background: var(--blue); }.week-day .busy { background: #e9e4dc; color: #756e67; }
[data-panel="calendar"] { overflow-x: auto; }

.client-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 18px; }
.client-summary article { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.client-summary span { display: block; color: var(--ink-soft); font-size: 8px; }.client-summary strong { font-size: 25px; }
.practice-client-list, .service-manager, .profile-task-grid, .integration-list { display: grid; gap: 9px; }
.practice-client-list article { display: flex; align-items: center; gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.practice-client-list p { flex: 1; margin: 0; }.practice-client-list p > * { display: block; }.practice-client-list strong { font-size: 11px; }.practice-client-list small { color: var(--ink-soft); font-size: 8px; }.practice-client-list b { font-size: 9px; }
.practice-client-list button, .service-manager button, .profile-task-grid button { border: 0; background: transparent; font-size: 8px; font-weight: 800; cursor: pointer; }
.service-manager article { display: grid; grid-template-columns: auto 1fr auto auto; gap: 17px; align-items: center; padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.service-type { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; font-size: 13px; font-weight: 850; }.lime-service { background: var(--lime); }
.service-manager h3, .service-manager p, .service-manager small { margin: 0; }.service-manager h3 { font-size: 14px; }.service-manager p, .service-manager small { color: var(--ink-soft); font-size: 8px; }.service-manager > article > strong { font-size: 14px; }
.profile-readiness { display: grid; grid-template-columns: auto 1fr; gap: 5px 18px; align-items: center; margin-bottom: 18px; padding: 23px; border-radius: 18px; background: var(--ink); color: white; }
.profile-readiness div { grid-row: 1/3; display: grid; }.profile-readiness div strong { font-size: 35px; }.profile-readiness div span, .profile-readiness p { color: rgba(255,255,255,.6); font-size: 9px; }.profile-readiness > i { margin: 0; background: rgba(255,255,255,.13); }.profile-readiness p { margin: 0; }
.profile-task-grid { grid-template-columns: repeat(2,1fr); }
.profile-task-grid article, .integration-list article { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.profile-task-grid article > span, .integration-list article > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--sage); font-weight: 900; }
.profile-task-grid article > div, .integration-list p { flex: 1; }.profile-task-grid h3, .profile-task-grid p, .integration-list p { margin: 0; }.profile-task-grid h3, .integration-list strong { font-size: 10px; }.profile-task-grid p, .integration-list small { display: block; color: var(--ink-soft); font-size: 8px; }.profile-task-grid b, .integration-list b { color: #3d7753; font-size: 7px; text-transform: uppercase; }
.profile-task-grid .needs-action > span { background: var(--yellow); }.profile-task-grid .needs-action button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; }
.integration-list article { padding: 12px 0; border-width: 1px 0 0; border-radius: 0; }.integration-list article > span { background: var(--lilac); }

@media (max-width: 1050px) {
	.metric-grid { grid-template-columns: repeat(2,1fr); }
	.provider-booking-card { grid-template-columns: 48px 1fr auto; }
	.provider-booking-card .booking-slot { grid-column: 2; }
	.provider-booking-card .booking-card-actions { grid-column: 3; grid-row: 1/3; max-width: 170px; min-width: 150px; }
}
@media (max-width: 820px) {
	.practice-overview-grid { grid-template-columns: 1fr; }
	.practice-side-cards { grid-template-columns: repeat(2,1fr); }
	.week-grid { overflow: hidden; }
}
@media (max-width: 560px) {
	.practice-alert { grid-template-columns: auto 1fr; }.practice-alert button { grid-column: 2; justify-self: start; }
	.practice-side-cards, .metric-grid, .client-summary, .profile-task-grid { grid-template-columns: 1fr; }
	.today-list article { grid-template-columns: 42px 38px 1fr auto; padding-block: 8px; }.today-list article > button { grid-column: 3; justify-self: start; }.today-list .status-badge { grid-column: 4; grid-row: 1; }
	.provider-booking-card { grid-template-columns: 42px 1fr; }.provider-booking-card .booking-slot { grid-column: 2; }.provider-booking-card .booking-card-actions { grid-column: 1/-1; grid-row: auto; max-width: none; justify-content: stretch; }.booking-card-actions button { flex: 1; }
	.service-manager article { grid-template-columns: auto 1fr; }.service-manager article > strong { grid-column: 2; }.service-manager article > button { grid-column: 2; justify-self: start; }
	.practice-client-list article { flex-wrap: wrap; }.practice-client-list p { min-width: 180px; }.practice-client-list button { width: 100%; padding-left: 55px; text-align: left; }
	.heading-actions { flex-wrap: wrap; }.heading-actions .button { flex: 1; }
	.calendar-health { flex-wrap: wrap; }.calendar-health p { min-width: 190px; }.calendar-health > b { width: 100%; padding-left: 78px; }
	.week-grid { min-width: 690px; }
	.booking-snapshot { grid-template-columns: 1fr; }
}
