/* MatchMate public/account UI. Calendar geometry and meaningful state colours stay in their own components. */
body.mm-ui{--ink:#122d32;--green:#245a48;--muted:#65777b;--paper:#f7f8f3;--line:#cbdacf;--mm-control-height:50px;--mm-control-radius:8px;--mm-control-border:#c4d5ca;--mm-field-gap:7px;background:var(--paper);color:var(--ink);font-size:15px;line-height:1.5}
body.mm-ui.coach-work-mode,body.mm-ui.coach-dashboard-page,body.mm-ui.coach-work-mode.coach-dashboard-page{background:var(--paper);color:var(--ink)}
body.mm-ui :is(.account-main,.courts-main,.market-main,.trainer-main,.chats-main,.subscriptions-page,.bookings-page){padding-top:24px;padding-bottom:100px;min-width:0}
body.mm-ui :is(.account-main,.auth-main){max-width:900px}
body.mm-ui :is(.market-main,.courts-main,.trainer-main,.chats-main,.subscriptions-page,.bookings-page){max-width:1160px}
body.mm-ui :is(main,.mobile-home)>h1,body.mm-ui :is(.market-heading,.trainer-heading,.court-title-row,.home-head) h1{font-size:30px;font-weight:700;line-height:1.2;letter-spacing:-.6px;margin:0 0 20px}
body.mm-ui :is(.account-section,.cw-section,.trainer-section,.auth-card,.home-highlight)>h2{font-size:22px;line-height:1.3;font-weight:650;letter-spacing:-.35px;margin:0 0 16px}
body.mm-ui :is(h1,h2) em{font-family:inherit;font-style:normal;font-weight:inherit;letter-spacing:inherit;color:inherit}
body.mm-ui :is(.account-note,.trainer-muted,.cw-muted,.skill-note,.subscriptions-intro,.court-source,.market-kicker,.account-intro){color:var(--muted);line-height:1.5}
body.mm-ui :is(.account-note,.trainer-muted,.cw-muted,.skill-note){font-size:14px}
body.mm-ui :is(.account-message,.trainer-error,.form-error):empty{display:none}
/* Common surfaces. Intentionally exclude occupied/free/confirmed calendar cells. */
body.mm-ui :is(.account-section,.subscription-card,.court-card,.club-court,.trainer-card,.booking-card,.auth-card,.cw-section,.cw-today-card,.cw-window-card,.home-highlight,.coach-connect-cta){border:1px solid #bdcfc1;border-radius:13px;background:#fffefa;box-shadow:none;padding:20px;min-width:0}
body.mm-ui :is(.account-section,.cw-section){margin-top:18px}
body.mm-ui :is(.court-grid,.trainer-grid,.booking-cards,.subscriptions-list){gap:16px}
body.mm-ui :is(.court-card,.trainer-card,.booking-card,.subscription-card) h2{font-size:21px;line-height:1.3;font-weight:650;letter-spacing:-.3px}
body.mm-ui :is(.court-card,.trainer-card,.booking-card,.subscription-card) p{font-size:14px;line-height:1.5}
body.mm-ui :is(.work-empty,.trainer-empty,.market-empty,.empty:not(button),.cw-empty,.subscriptions-empty){border:1px solid var(--line);border-radius:12px;padding:24px;background:#fffefa;color:var(--ink);text-align:left}
body.mm-ui :is(.work-empty,.trainer-empty,.market-empty,.empty:not(button),.cw-empty,.subscriptions-empty) h2,body.mm-ui .empty h3{font-size:21px;line-height:1.3;font-weight:650;letter-spacing:-.3px}
/* Real actions share one height; icon controls and calendar cells keep their sizing. */
body.mm-ui .button{min-height:48px;border-radius:8px;padding:12px 18px;font-size:15px;font-weight:600;line-height:1.35;gap:10px;text-align:center;box-shadow:none;transform:none;white-space:normal}
body.mm-ui .button:hover{transform:none}
body.mm-ui .button.primary,body.mm-ui .button.lime{background:#245a48;border-color:#245a48;color:#fff}
body.mm-ui .button.primary:hover,body.mm-ui .button.lime:hover{background:#1d4b3b;border-color:#1d4b3b}
body.mm-ui .button.outline{background:#fffefa;border-color:#bdcfc1;color:#234d40}
body.mm-ui .button.outline:hover{background:#edf4ed}
body.mm-ui :is(.button.delete,.button.danger){color:#9c4f40;border-color:#e3c7bf;background:#fffefa}
body.mm-ui .text-button{font-size:14px;line-height:1.4;color:var(--green)}
body.mm-ui :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #487e66;outline-offset:3px}
body.mm-ui button:disabled{opacity:.55;cursor:default}
/* Preserve all existing field values, validation and form submission handlers. */
body.mm-ui :is(.mm-field-title,.mm-external-label){font-weight:600!important;color:var(--ink)!important;font-size:14px!important}
body.mm-ui :is(input.mm-control,select.mm-control,textarea.mm-control){background:#fff;color:var(--ink);border-color:var(--mm-control-border);border-radius:8px;box-shadow:none}
body.mm-ui :is(input.mm-control,select.mm-control):focus,body.mm-ui textarea.mm-control:focus{border-color:#608c76!important}
body.mm-ui :is(input,select,textarea)[aria-invalid=true]{border-color:#a43b2d!important}
body.mm-ui .mm-field :is(small,.city-info){font-size:13px!important;color:var(--muted);font-weight:400}
body.mm-ui .mm-field .mm-field-error{color:#a43b2d!important}
body.mm-ui label.mm-check-label{font-size:14px;gap:10px}
body.mm-ui input:is([type=checkbox],[type=radio]){accent-color:#245a48}
body.mm-ui :is(.trainer-form,.mm-form,.form-grid){gap:16px}
body.mm-ui :is(.account-actions,.trainer-actions,.modal-actions,.court-card-actions,.court-detail-actions,.booking-actions){gap:10px}
body.mm-ui :is(.venue-date-control,.multi-picker){border-color:var(--mm-control-border);border-radius:8px;background:#fff}
body.mm-ui .city-picker-list{border-radius:8px;border-color:var(--line)}
/* Reuse shared dialog behavior and keep existing heights/scrolling, especially chat drawers. */
body.mm-ui dialog:not(.chat-drawer){border-color:#b7cabd;border-style:solid;border-width:1px;border-radius:14px;background:#fffefa;color:var(--ink);box-shadow:0 18px 60px #163c2b25}
body.mm-ui dialog::backdrop{background:#183c3060;backdrop-filter:blur(3px)}
body.mm-ui :is(.mm-modal-title,#courtDialogTitle,#marketDialogTitle,.market-dialog-inner>h2,.auth-card>h2){font-size:24px;font-weight:700;letter-spacing:-.4px;line-height:1.3}
body.mm-ui :is(.mm-modal-close,.trainer-close,.close){color:var(--ink)}
body.mm-ui :is(.court-detail-grid>div,.reliability-summary,.modal-note,.coach-consent-record,.coach-publication-note){border:1px solid #d5e1d7;border-radius:9px;background:#f0f5ee;padding:14px;line-height:1.5}
/* Segmented controls match Today/Week; preserve pressed/selected state semantics. */
body.mm-ui :is(.auth-tabs,.court-tabs,.trainer-tabs,.market-categories,.market-intents,.booking-sections,.bookings-tabs,.cw-tabs){gap:8px}
body.mm-ui :is(.auth-tabs,.court-tabs,.trainer-tabs){border:0;padding:5px;border-radius:10px;background:#edf2e9}
body.mm-ui :is(.auth-tabs,.court-tabs,.trainer-tabs,.market-categories,.market-intents) button{min-height:44px;padding:10px 14px;border:1px solid #c8d8cc;border-radius:8px;font-size:14px;font-weight:600;line-height:1.3;background:#fffefa;color:#245a48;white-space:normal}
body.mm-ui :is(.auth-tabs,.court-tabs,.trainer-tabs,.market-categories,.market-intents,.booking-sections,.bookings-tabs) [aria-pressed=true]{background:#245a48;border-color:#245a48;color:#fff}
body.mm-ui .auth-tabs{margin-bottom:20px}
body.mm-ui .auth-tabs button{flex:1}
/* Profile and rating panels. */
body.mm-ui.workspace-profile .account-main{max-width:760px}
body.mm-ui.workspace-profile .profile-form-section{border-color:var(--line);padding-top:20px;margin-top:20px}
body.mm-ui.workspace-profile .profile-form-section:first-child{margin-top:0;padding-top:0;border:0}
body.mm-ui.workspace-profile .profile-form-section h2{font-size:20px;font-weight:650;line-height:1.3}
body.mm-ui.workspace-profile .profile-fields{gap:16px}
body.mm-ui.workspace-profile :is(#skillDetails>summary,.skill-quiz>summary){font-size:17px;font-weight:600;line-height:1.4;color:var(--ink);padding:4px 0;min-height:36px}
body.mm-ui.workspace-profile .skill-quiz{border:1px solid var(--line);border-radius:9px;background:#fff;padding:14px;margin-top:16px}
body.mm-ui.workspace-profile .skill-date{font-size:13px;color:var(--muted)}
body.mm-ui.workspace-profile :is(.reliability-summary,.skill-note){margin-block:12px}
/* Notifications: compact event cards, with an unmistakable unread marker. */
body.mm-ui .notification-center{border:0;background:transparent;padding:0;box-shadow:none}
body.mm-ui .notice-content{gap:12px}
body.mm-ui .notice-item{border:1px solid #c7d8cc;border-radius:12px;background:#fffefa;padding:18px}
body.mm-ui .notice-item.unread{border-left:4px solid #245a48;background:#f0f6ee}
body.mm-ui .notice-item h3{font-size:17px;line-height:1.4;font-weight:650;margin-bottom:10px;letter-spacing:-.2px}
body.mm-ui :is(.notice-item,.notice-detail) p{font-size:14px;line-height:1.5}
body.mm-ui :is(.notice-item,.notice-detail) time{font-size:12px;color:var(--muted);margin-block:10px}
body.mm-ui :is(.notice-toolbar button,.notice-item button,[data-notice-more]){min-height:44px;padding:10px 14px;border-radius:8px;border:1px solid #bdcfc1;background:#fffefa;font-size:14px;font-weight:600;color:var(--green)}
body.mm-ui .notice-item .notice-approve{background:#245a48;border-color:#245a48;color:white}
body.mm-ui .notice-toolbar{margin:0 0 16px;gap:8px}
body.mm-ui :is(.notice-game small,.notice-person small,.notice-person-id){color:var(--muted)}
body.mm-ui .notice-direct{padding:12px;border:1px solid var(--line);border-radius:8px;text-align:center;font-weight:600}
/* Chats keep their scrolling, keyboard and read-receipt behavior. */
body.mm-ui .chat-workspace{border-color:#bdcfc1;border-radius:13px;background:#fffefa}
body.mm-ui .chat-sidebar{background:#fffefa;border-color:var(--line)}
body.mm-ui .chat-dialog-list{gap:10px}
body.mm-ui :is(.chat-dialog-item,.chat-recent){border-color:#ccdbcf;border-radius:10px;background:#fffefa;padding:15px}
body.mm-ui .chat-dialog-item[aria-current=page]{background:#eaf3e9;border-color:#7fa78e}
body.mm-ui .chat-dialog-item.unread{border-left:4px solid #245a48}
body.mm-ui :is(.chat-dialog-item,.chat-recent) strong{font-size:16px;font-weight:650}
body.mm-ui :is(.chat-dialog-item small,.chat-message time,.chat-send-state){font-size:12px;color:var(--muted)}
body.mm-ui .chat-conversation-header{background:#fffefa;border-color:var(--line)}
body.mm-ui .chat-conversation-header h2{font-size:19px;font-weight:650;letter-spacing:-.25px}
body.mm-ui .chat-messages{background:#f4f7f0}
body.mm-ui .chat-message{background:#fffefa;border-color:#d2e0d5;border-radius:12px;box-shadow:none}
body.mm-ui .chat-message.mine{background:#e6f0e5;border-color:#c5d9c9}
body.mm-ui .chat-message.system{background:#edf2e9;color:#60746a;border:0}
body.mm-ui .chat-message.system p{font-size:13px}
body.mm-ui .chat-message footer{padding:0;margin:8px 0 0}
body.mm-ui :is(.chat-composer,.chat-drawer){background:#fffefa;border-color:var(--line)}
body.mm-ui .chat-composer textarea.mm-control{min-height:62px}
body.mm-ui :is(.chat-quote,.chat-reply-preview){background:#eff4ec;border-color:#83a48d;border-radius:7px}
body.mm-ui .chat-photo-button{border-color:#bdcfc1;border-radius:8px;background:#fff}
body.mm-ui .chat-options>div{border-color:var(--line);border-radius:10px;background:#fffefa}
/* Subscriptions and court directory. */
body.mm-ui .subscription-card{gap:16px}
body.mm-ui .subscription-identity h2{font-size:20px;margin:0}
body.mm-ui .subscription-actions{gap:8px}
body.mm-ui .subscription-photo{background:#eaf2e8;color:var(--green)}
body.mm-ui .court-club-card{border-top:1px solid #bdcfc1}
body.mm-ui .court-favorite{border-color:#c8d8cc;background:#fffefa;width:40px;height:40px}
body.mm-ui .court-favorite[aria-pressed=true]{background:#e4efdf;border-color:#7fa78e}
body.mm-ui .court-card h2{padding-right:10px}
body.mm-ui .club-court h3{font-size:19px;font-weight:650;line-height:1.3}
body.mm-ui #courtDialog{padding:24px}
body.mm-ui .court-detail-grid{gap:10px}
body.mm-ui .court-warning{border:1px solid #d5e1d7;border-radius:9px;background:#f0f5ee;font-size:14px;color:#516b5d}
body.mm-ui .court-status{border-radius:6px;font-size:12px;line-height:1.4;padding:5px 8px}
/* Marketplace photos retain their image ratio; the frame and actions match the app. */
body.mm-ui .market-heading{margin-bottom:20px;gap:18px}
body.mm-ui .market-heading p:last-child{font-size:14px;color:var(--muted);line-height:1.5}
body.mm-ui .market-kicker{font-size:12px;letter-spacing:.06em}
body.mm-ui .market-card{border:1px solid #bdcfc1;border-radius:13px;background:#fffefa;box-shadow:none;overflow:hidden}
body.mm-ui .market-card h2{font-size:18px;font-weight:650;letter-spacing:-.2px;line-height:1.35}
body.mm-ui .product-price{font-size:21px;font-weight:700;letter-spacing:-.3px}
body.mm-ui .market-grid{gap:16px}
body.mm-ui .product-meta{font-size:13px;color:var(--muted)}
body.mm-ui .market-dialog-inner{padding:24px}
body.mm-ui .market-dialog-inner>h2{margin:0 36px 20px 0}
body.mm-ui .market-dialog-inner .field{font-size:14px}
body.mm-ui .seller-card{border:1px solid var(--line);border-radius:9px;background:#f1f6ee;padding:14px}
body.mm-ui .market-card-link:hover .product-picture img{transform:none}
body.mm-ui .market-results{font-size:14px;color:var(--muted)}
/* Sign-in and coach connection. */
body.mm-ui .auth-main{gap:40px;padding-top:30px;padding-bottom:50px;grid-template-columns:minmax(0,.9fr) minmax(0,1fr)}
body.mm-ui .auth-intro h1{font-size:34px;font-weight:700;line-height:1.2;letter-spacing:-.6px;margin:0 0 18px}
body.mm-ui .auth-intro>p{font-size:15px;line-height:1.6;color:var(--muted)}
body.mm-ui .auth-card{width:100%;padding:24px}
body.mm-ui .auth-card>h2{margin-bottom:18px}
body.mm-ui .coach-connect-cta{gap:18px}
body.mm-ui .onboarding-status{border-left:4px solid #72937c;background:#f0f5ee}
body.mm-ui.coach-workflow-page #coachIdentityFields{gap:16px}
body.mm-ui.coach-workflow-page fieldset{min-width:0}
/* Trainer workspace, requests/pupils, bookings and public training search. */
body.mm-ui.coach-dashboard-page .trainer-main{padding-top:20px}
body.mm-ui .cw-tabs .button{min-height:44px;border-radius:8px}
body.mm-ui .cw-toolbar{gap:10px}
body.mm-ui :is(.cw-grid-scroll,.ogc-calendar,.ogd-scroll){border-color:#bdcfc1;border-radius:10px}
body.mm-ui .cw-grid-head{background:#edf4ec}
body.mm-ui .cp-tabs{background:var(--paper);border-bottom:1px solid var(--line);padding:8px 0 12px}
body.mm-ui .cp-section{padding:18px}
body.mm-ui .cp-page .cw-event{border-color:var(--line);padding:16px 0;gap:12px}
body.mm-ui .cp-page .cw-event:last-child{border-bottom:0}
body.mm-ui .cp-page .cw-event p{font-size:14px;color:var(--muted)}
body.mm-ui .cp-search input{border-color:var(--mm-control-border);border-radius:8px;background:#fff}
body.mm-ui :is(.booking-search-actions,.booking-sections){gap:8px;margin:16px 0}
body.mm-ui .bookings-tabs{padding:5px;border:1px solid var(--line);border-radius:10px;background:#edf2e9}
body.mm-ui .booking-card p{font-size:14px}
body.mm-ui .booking-actions{margin-top:auto}
body.mm-ui .trainer-explainer{border:1px solid var(--line);border-radius:10px;background:#f0f5ee;padding:14px 16px;font-size:14px;color:#526e60}
body.mm-ui .trainer-person{gap:12px}
body.mm-ui .trainer-card .trainer-price{font-size:20px;font-weight:650}
/* Home: same surfaces and heading scale, including saved home layouts. */
body.mm-ui.home-page .home-head h1{font-size:32px;line-height:1.2;letter-spacing:-.6px;font-weight:700}
body.mm-ui.home-page .home-head h1 br{display:none}
body.mm-ui.home-page .home-head h1 em::before{content:' '}
body.mm-ui.home-page .home-grid{gap:14px}
body.mm-ui.home-page .home-section-card{min-height:170px;padding:20px;border-radius:13px;border:1px solid #bdcfc1;background:#fffefa;color:var(--ink)}
body.mm-ui.home-page .home-section-card :is(p,.section-mark){color:var(--muted)}
body.mm-ui.home-page .home-section-card .section-mark{width:32px;height:32px;display:grid;place-items:center;border:1px solid #c9dacc;border-radius:8px;background:#edf4e9;color:#245a48;margin-bottom:16px;font-size:12px}
body.mm-ui.home-page .home-section-card h2{font-size:22px;font-weight:650;line-height:1.2;letter-spacing:-.35px;margin:0 0 10px}
body.mm-ui.home-page .home-section-card p{font-size:14px;line-height:1.45}
body.mm-ui.home-page .hero{padding-top:28px;padding-bottom:36px;gap:30px}
body.mm-ui.home-page .hero h1{font-size:36px;font-weight:700;line-height:1.2;letter-spacing:-.7px}
body.mm-ui.home-page .hero-art{border:1px solid #bdcfc1;border-radius:13px;background:#edf3e5}
body.mm-ui.home-page .section-heading h2,body.mm-ui.home-page .how h2{font-size:28px;font-weight:650;letter-spacing:-.5px}
body.mm-ui.home-page .join-banner{border:1px solid #bdcfc1;border-radius:13px;background:#fffefa;color:var(--ink);padding:28px}
body.mm-ui.home-page .join-banner h2{font-size:28px;font-weight:650;letter-spacing:-.4px}
body.mm-ui.home-page .join-banner :is(.eyebrow,h2 em){color:var(--green)}
body.mm-ui.home-page .banner-ball{opacity:.2}
body.mm-ui.home-page .home-note{font-size:13px;color:var(--muted)}
@media(max-width:760px){
 body.mm-ui :is(.account-main,.courts-main,.market-main,.trainer-main,.chats-main,.subscriptions-page,.bookings-page){padding-top:20px;padding-inline:16px}
 body.mm-ui :is(main,.mobile-home)>h1,body.mm-ui :is(.market-heading,.trainer-heading,.court-title-row,.home-head) h1{font-size:26px;margin-bottom:18px}
 body.mm-ui :is(.account-section,.subscription-card,.court-card,.club-court,.trainer-card,.booking-card,.auth-card,.cw-section,.cw-today-card,.cw-window-card,.home-highlight,.coach-connect-cta){padding:16px}
 body.mm-ui .button{font-size:14px;padding:11px 14px;min-height:48px}
 body.mm-ui .auth-main{grid-template-columns:minmax(0,1fr);gap:20px;padding:24px 16px 36px}
 body.mm-ui .auth-intro h1{font-size:28px;margin-bottom:12px}
 body.mm-ui .auth-intro .auth-note{margin-top:12px}
 body.mm-ui .auth-card{padding:20px 16px}
 body.mm-ui :is(#courtDialog,.market-dialog-inner){padding:20px 16px}
 body.mm-ui .market-heading{align-items:stretch}
 body.mm-ui .market-card h2{font-size:16px}
 body.mm-ui .product-price{font-size:19px}
 body.mm-ui .market-grid{gap:12px}
 body.mm-ui .cp-tabs .button{min-width:0;padding-inline:8px}
 body.mm-ui .chat-workspace{border:0;border-radius:0;background:transparent}
 body.mm-ui .chat-workspace.is-selected{background:#fffefa}
 body.mm-ui .chat-sidebar{background:transparent}
 body.mm-ui .chat-messages{padding:12px}
 body.mm-ui .chat-composer .button{min-height:44px}
 body.mm-ui.home-page .home-head h1{font-size:28px}
 body.mm-ui.home-page .home-section-card{min-height:164px;padding:16px}
 body.mm-ui.home-page .home-section-card h2{font-size:20px}
 body.mm-ui.home-page .home-section-card .section-mark{margin-bottom:14px}
 body.mm-ui.home-page[data-home-entry=sections] .mobile-home{width:calc(100% - 32px);margin:24px auto;gap:20px}
 body.mm-ui.home-page .home-grid{gap:12px}
 body.mm-ui .notice-item{padding:16px}
 body.mm-ui .notice-toolbar>*{flex:1;min-width:0}
}
@media(max-width:380px){body.mm-ui .mobile-bottom-nav a span{font-size:12px;white-space:nowrap}body.mm-ui .notice-decision-actions{display:grid;grid-template-columns:1fr 1fr}body.mm-ui .notice-decision-actions button{min-width:0}body.mm-ui.home-page .home-section-card h2{font-size:18px}body.mm-ui.home-page .home-section-card p{font-size:13px}}
@media(prefers-reduced-motion:reduce){body.mm-ui .button{transition:none}}

/* State/compact exceptions must remain more specific than late-loaded page styles. */
body.mm-ui .account-section.notification-center{padding:0;border:0;background:transparent}
body.mm-ui :is(.auth-tabs,.court-tabs,.trainer-tabs,.market-categories,.market-intents,.booking-sections,.bookings-tabs,.ogc-modes,.cw-tabs) [aria-pressed=true],
body.mm-ui :is(.auth-tabs,.court-tabs,.trainer-tabs,.market-categories,.market-intents,.booking-sections,.bookings-tabs,.ogc-modes,.cw-tabs) [aria-pressed=true]:hover{background:#245a48;border-color:#245a48;color:#fff}
body.mm-ui input[type=file]{font-family:inherit;font-size:14px;line-height:1.5;max-width:100%;color:var(--muted)}
body.mm-ui input[type=file]::file-selector-button{min-height:44px;padding:9px 12px;margin-right:10px;border:1px solid #bdcfc1;border-radius:8px;background:#fffefa;color:#245a48;font:inherit;font-weight:600;cursor:pointer}
body.mm-ui .photo-editor{border-color:var(--line);border-radius:10px;background:#fffefa}
body.mm-ui .photo-editor-preview{background:#edf3e8;color:var(--muted)}
body.mm-ui #skillPanel h2{font-size:20px;font-weight:650;line-height:1.3;letter-spacing:-.3px}
body.mm-ui #ownPlayerActivity{padding-bottom:12px}
body.mm-ui dialog.mm-modal .mm-modal-actions{grid-column:2;grid-row:1;justify-self:end}
body.mm-ui dialog.mm-modal .mm-modal-header .share-button{width:44px;height:44px;min-height:44px;padding:10px;gap:0;border-color:transparent;background:transparent}
body.mm-ui dialog.mm-modal .mm-modal-header .share-button>span{display:none}
body.mm-ui .auth-card .mm-row-action{margin-top:0!important}
@media(max-width:760px){body.mm-ui .court-title-row{display:flex;align-items:center;gap:12px}body.mm-ui .court-title-row h1{margin:0;font-size:25px}body.mm-ui .court-title-row>.button{margin:0;flex-shrink:0;min-height:44px;padding:10px 12px;font-size:13px}}
body.mm-ui dialog.mm-modal>.mm-modal-header:has(.share-button){grid-template-columns:minmax(0,1fr) 44px 44px}
body.mm-ui dialog.mm-modal .mm-modal-header:has(.share-button) .mm-modal-close{grid-column:3}
body.mm-ui :is(input.mm-control,select.mm-control,textarea.mm-control)[aria-invalid=true],body.mm-ui :is(input.mm-control,select.mm-control,textarea.mm-control)[aria-invalid=true]:focus{border-color:#a43b2d!important}
body.mm-ui .cp-page .mm-person-name{font-size:16px;font-weight:600}
@media(max-width:640px){body.mm-ui .booking-actions{flex-direction:column;flex-wrap:nowrap;align-items:stretch}body.mm-ui .booking-actions>.booking-person{flex:0 0 auto;width:100%}body.mm-ui .booking-actions>.button{max-width:100%;min-width:0;width:100%}}
/* The already accepted settings overview keeps its compact desktop width. */
body.mm-ui.coach-settings-overview-page .account-main{max-width:640px}
/* The wide welcome view uses the same bounded cards instead of oversized landing blocks. */
@media(min-width:761px){
 body.mm-ui.home-page .hero{max-width:1100px;width:calc(100% - 80px);margin:24px auto 28px;padding:24px;border:1px solid #bdcfc1;border-radius:13px;background:#fffefa;gap:32px}
 body.mm-ui.home-page .hero h1{font-size:32px;margin-block:18px}
 body.mm-ui.home-page .hero-art{height:340px}
 body.mm-ui.home-page .hero-art .court{transform:rotate(-18deg) scale(.76);transform-origin:top center;left:12%;top:43px}
 body.mm-ui.home-page .hero-art .floating-match{bottom:45px}
 body.mm-ui.home-page .hero-copy>p{font-size:15px;line-height:1.6}
 body.mm-ui.home-page .values-strip{max-width:1100px;margin:0 auto;border:1px solid var(--line);border-radius:10px;background:#fffefa}
 body.mm-ui.home-page .values-strip>.wrap{height:64px;padding-inline:24px}
 body.mm-ui.home-page .values-strip span{font-size:13px}
 body.mm-ui.home-page .steps h3{font-size:17px;font-weight:600}
 body.mm-ui.home-page :is(.steps p,.how-intro>p){font-size:14px;line-height:1.55}
 body.mm-ui.home-page .steps article>span{font-family:inherit;font-size:24px}
}
