/* One close control for static and dynamically rendered dialogs. */
button.osiris-modal-close{box-sizing:border-box!important;-webkit-appearance:none!important;appearance:none!important;-webkit-tap-highlight-color:transparent;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;max-width:38px!important;max-height:38px!important;flex:0 0 38px!important;padding:6px!important;margin:0!important;border:1px solid var(--theme-control-border,#c7d6d0)!important;border-radius:50%!important;background:var(--theme-control-fill,#f0f5f2)!important;background-image:none!important;color:var(--theme-accent-text,#c44b00)!important;box-shadow:none!important;line-height:1!important;cursor:pointer;touch-action:manipulation}
button.osiris-modal-close svg{display:block!important;width:24px!important;height:24px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.2!important;stroke-linecap:round!important;pointer-events:none}
button.osiris-modal-close:focus:not(:focus-visible),button.osiris-modal-close[data-pointer-focus]:focus{outline:none!important;box-shadow:none!important}
button.osiris-modal-close:focus-visible{outline:2px solid var(--theme-focus,#c44b00)!important;outline-offset:3px!important}
button.osiris-modal-close:hover{background:var(--theme-control-fill,#e4ede8)!important;border-color:var(--theme-control-border,#9db7aa)!important}
dialog:focus,[role="dialog"]:focus{outline:none!important}
.booking-contact-links{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:12px}.booking-call .booking-contact-links a{box-sizing:border-box;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:64px;min-height:56px;margin:0;padding:5px 8px;border:0;border-radius:10px;background:transparent;box-shadow:none;color:var(--theme-text,#252a28);font-size:11px;font-weight:500;line-height:1.3;text-decoration:none}.booking-call .booking-contact-links a:hover{background:var(--theme-surface-subtle,#f3f5f2)}.booking-call .booking-contact-links a:focus-visible{outline:2px solid var(--brand-accent,#c44b00);outline-offset:2px}.booking-contact-links svg{display:block;width:24px;height:24px;flex:none}.booking-contact-links .contact-vk svg{fill:#0077ff}.booking-contact-links .contact-telegram svg{fill:#229ed9}.booking-contact-links .contact-email svg{fill:none;stroke:currentColor;stroke-width:1.8}
.push-settings{display:grid;gap:10px;padding:18px 0;border-top:1px solid var(--theme-line,#dde5df);margin-top:4px;min-width:0}.push-settings strong{font-size:14px}.push-settings p{margin:0;font-size:12px;line-height:1.6;color:var(--theme-text-muted,#6d746f)}.push-settings button{min-height:44px;white-space:normal;max-width:100%;font-size:13px}.push-settings button:disabled{opacity:.6;cursor:default}
.notice-appearance-examples{display:grid;gap:10px;width:100%;min-width:0;margin:4px 0 2px}.push-preview-notice,.push-preview-browser{box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;min-width:0;padding:13px 14px;border:1px solid transparent;border-radius:16px;text-align:left;box-shadow:0 3px 12px #0000000a}.push-preview-notice{background:#171717;color:#fff;border-color:#303030}.push-preview-notice>img{display:block;width:40px;height:40px;flex:0 0 40px;border-radius:10px;object-fit:contain}.push-preview-notice>div,.push-preview-browser>div{min-width:0;flex:1}.push-preview-title{display:block;margin:0 0 3px;font:650 12px/1.3 system-ui,sans-serif;color:inherit}.push-preview-message,.push-preview-domain{display:block;font:400 11px/1.4 system-ui,sans-serif;overflow-wrap:anywhere;color:inherit}.push-preview-browser{background:#e9e9ed;color:#282a30;border-color:#d8d9df;border-radius:20px}.push-preview-domain{font-weight:600;margin-bottom:2px}.push-preview-browser>img{display:block;width:32px;height:32px;flex:0 0 32px;border-radius:8px;object-fit:contain}.push-preview-chrome{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:10px;background:#25262a;box-shadow:0 1px 4px #0003}.push-preview-chrome>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:conic-gradient(from -60deg,#c44b00 0 120deg,#fbbc05 120deg 240deg,#34a853 240deg 360deg)}.push-preview-chrome>span:after{content:"";width:13px;height:13px;box-sizing:border-box;border:2px solid #fff;border-radius:50%;background:#4285f4}@media(prefers-color-scheme:dark){.push-preview-browser{background:#484a54;color:#f5f5f8;border-color:#656772}}
.lesson-photo-section{margin-top:16px;padding-top:16px;border-top:1px solid var(--theme-line,#deeadf)}.lesson-photo-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.lesson-photo-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:44px;padding:8px;font-size:12px;line-height:1.3;white-space:normal;text-align:center;border-radius:10px}.lesson-photo-actions svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8}.lesson-photo-section input.lesson-photo-picker[type=file]{display:none!important}.lesson-photo-section .material-thumbs{display:flex;gap:10px;flex-wrap:wrap}.lesson-photo-section .material-thumb{position:relative;width:96px}.lesson-photo-section .material-thumb img{width:96px;height:96px;object-fit:contain;background:var(--theme-surface-subtle,#f3f6f3)}.lesson-photo-section small{display:block;font-size:11px;line-height:1.5}

/* Compact working dialogs and one toolbar rhythm. */
body.team-entered>.team-toolbar .team-menu-toggle,body.team-entered>.team-toolbar .profile-team-actions>button,body.team-entered>.team-toolbar .profile-team-actions>a{box-sizing:border-box;min-height:38px;height:38px;padding:8px 12px;font-size:12px;border-radius:12px;font-weight:650}
#team-preferences-form .team-preferences-content>.push-settings:first-child{margin:0;padding:0;border:0}
#team-preferences-form .push-settings{grid-template-columns:minmax(0,1fr);align-items:start}
#team-preferences-form .push-preview{max-width:none;margin:0}
.journal-selected-day{margin:0 0 12px;color:var(--ink,var(--theme-text,#252a28));font-size:14px;font-weight:650}
.account-delete{display:inline-flex;margin:10px 0 0 12px;color:var(--theme-negative-text,#a3444b);font-size:12px;min-height:34px;align-items:center}.client-list-row .account-delete{margin:6px 0 0;display:block}.account-archive{display:grid;gap:10px}.account-archive>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--theme-line,#e4e7e1)}.account-archive small{display:block;color:var(--theme-text-muted,#6d746f);font-size:11px}
.team-directory-tools{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 16px}.team-directory-tools>.muted{flex:1;min-width:120px}
@media(max-width:540px){#team-preferences-form .push-settings{grid-template-columns:minmax(0,1fr)}#team-preferences-form .team-notification-options{gap:8px;margin:10px 0}}
.team-notification-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.team-notification-options label{display:flex;align-items:center;gap:10px;min-width:0;margin:0;padding:12px;border:1px solid var(--theme-line,#dce3df);border-radius:12px;background:var(--theme-surface,#fff);font-size:13px;cursor:pointer}
.team-notification-options label.is-selected,.team-notification-options label:has(input:checked){border-color:var(--theme-accent-line,#963900);background:var(--theme-control-fill,#edf5f3);color:var(--theme-accent-text,#963900)}
.team-notification-options input[type=checkbox]{appearance:auto;accent-color:var(--theme-fixed-d9c7d8e7,#963900);width:19px;height:19px;min-height:0;margin:0;flex:0 0 19px}
#team-preferences-form{margin:0;min-width:0}
#info[open]:has(#team-preferences-form){display:grid;grid-template-rows:auto minmax(0,1fr);height:min(720px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);overflow:hidden}#info:has(#team-preferences-form)>.dialog-top{margin-bottom:12px}#info:has(#team-preferences-form)>#info-body{min-height:0;overflow:hidden}#team-preferences-form{height:100%;min-height:0;grid-template-rows:minmax(0,1fr) auto}#team-preferences-form .team-preferences-content{display:grid;align-content:start;gap:12px;min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 3px 10px 0;scroll-padding-block:8px}#team-preferences-form .team-preferences-actions{position:static;display:grid;gap:8px;margin:0;padding:12px 0 0;border-top:0;background:var(--theme-surface,#fff)}
.team-preferences-actions small{font-size:11px;line-height:1.4;color:var(--theme-text-muted,#6d746f)}
.team-preferences-actions>.button{width:100%;min-height:44px}
:is(#toast,.shop-toast:not(:empty),.osiris-notice){position:fixed!important;inset:auto!important;top:calc(env(safe-area-inset-top,0px) + 18px)!important;bottom:auto!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;box-sizing:border-box;max-width:min(480px,calc(100vw - 28px));width:max-content;margin:0!important;padding:13px 19px;border:0;border-radius:13px;background:var(--theme-fixed-3b23ef8a,#171917)!important;color:var(--theme-fixed-e08de713,#fff)!important;box-shadow:0 8px 30px var(--theme-fixed-4566085e,#0003);font:500 13px/1.45 var(--ui-font,system-ui,sans-serif);text-align:center;overflow-wrap:anywhere;z-index:2147483647;pointer-events:none}
:is(#toast,.osiris-notice):not(.show){opacity:0}
:is(#toast,.osiris-notice).show{opacity:1}
@media(prefers-reduced-motion:reduce){:is(#toast,.shop-toast,.osiris-notice){transition:none!important}}
body.team-entered .staff-member{position:relative}
body.team-entered .staff-member-top>div{padding-right:27px}
body.team-entered .staff-member>.staff-edit-button{position:absolute;top:9px;right:9px;display:grid;place-items:center;width:29px;height:29px;min-height:0;margin:0;padding:6px;border:1px solid var(--theme-control-border,#dfe5df);border-radius:9px;background:var(--theme-control-fill,#fff);color:var(--theme-teal-text,#315755);cursor:pointer}
.staff-edit-button svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.team-entered .staff-member>.staff-bio{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body.team-entered .staff-member.staff-account{min-height:74px}
.staff-form-actions{display:grid;gap:10px;margin-top:14px}
.staff-form-actions>.button{width:100%}
.staff-form-actions>.account-delete{justify-self:center;min-height:32px;padding:3px 10px;color:var(--theme-negative-text,#963900);font-size:12px}
#staff-member-form textarea,#admin-profile-form textarea{min-height:72px}
#staff-member-form .profile-fields,#admin-profile-form .profile-fields{gap:12px}

.notice-sound-settings{display:inline-flex;align-items:center;gap:5px;margin:0;padding:0;border:0;white-space:nowrap;font-size:12px;line-height:1.3;cursor:pointer}.notice-sound-settings input{appearance:auto;accent-color:var(--theme-fixed-d9c7d8e7,#963900);width:16px;height:16px;min-height:0;min-width:16px;margin:0}.notice-sound-settings span{margin:0}
@media(min-width:651px){body.team-entered .staff-directory{align-items:start;gap:12px}body.team-entered .staff-directory .staff-member{padding:15px;border-radius:16px}body.team-entered .staff-member-top{gap:10px;margin-bottom:10px}body.team-entered .staff-member-top>img,body.team-entered .staff-member-top>.staff-initial{width:42px;height:42px}body.team-entered .staff-member h2{font-size:13px;line-height:1.4;margin-bottom:4px}body.team-entered .staff-member h3{margin-bottom:7px}body.team-entered .staff-member>.staff-bio{flex:none;margin-bottom:10px;line-height:1.5}body.team-entered .staff-member>.staff-phone-status{display:flex;flex-wrap:wrap;gap:4px 9px;margin-bottom:0}body.team-entered .staff-member.staff-account>.staff-member-top:last-child{margin-bottom:0}}
#team-preferences-form>.form-help{margin:8px 0 12px;line-height:1.5}

#team-preferences-form{display:grid;gap:0}

.portal-footer-brand{display:inline-flex;align-items:center;vertical-align:middle;margin-left:12px}.portal-footer-brand img{display:block;width:120px;height:auto;max-width:100%}.booking-option-icon{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px}.booking-option-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* One small footer lockup on desktop; header brands are unaffected. */
@media(min-width:851px){
 .portal-footer .portal-footer-brand,footer .footer-bottom .portal-footer-brand{margin-left:8px}
 .portal-footer .portal-footer-brand img,footer .footer-bottom .portal-footer-brand img{width:84px}
}

/* Existing menu symbols, compact and legible on every service surface. */
.service-symbol{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;padding:7px;box-sizing:border-box;border:1px solid var(--theme-line,#e6e3df);border-radius:10px;background:var(--theme-surface,#fff);color:var(--ink,var(--theme-text,#262626))}.service-symbol svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.source-service>.service-symbol{margin-bottom:12px}.price-service-title,.service-choice-title{display:flex;align-items:center;gap:9px;min-width:0}.price-service-title>span:last-child{min-width:0}.price-specialists{margin-left:43px}

/* Short pages retain a bottom footer; forms follow device typography. */
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}body>main,body>.layout{flex:1 0 auto}body>footer{margin-top:auto;flex-shrink:0}.owner-auth-widget input[name=phone]{font-family:var(--ui-font);font-size:16px;font-weight:400;letter-spacing:normal}.owner-auth-widget .sms-code input{scroll-margin-block:24px}

/* r145: the same compact notification controls in team and personal settings. */
.notice-device-settings .notice-control-row{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:nowrap}.notice-device-settings .notice-push-label{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:650;white-space:nowrap}.notice-device-settings .notice-connected{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;background:var(--theme-surface-muted,#dcefe2);color:var(--theme-positive-text,#21683c);font-weight:750;font-size:11px}.notice-device-settings [hidden]{display:none!important}.notice-device-settings .notice-control-row>button{min-width:0;min-height:34px;padding:6px 9px;font-size:12px;line-height:1.3;border-radius:10px;white-space:nowrap}.notice-device-settings .notice-control-row>[data-notice-sound]{margin-left:auto}.notice-device-settings .form-help{font-size:11px;line-height:1.4}
.notice-authorization{display:grid;gap:5px;min-width:0;margin:8px 0}.notice-authorization>label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;font-size:12px;font-weight:650}.notice-authorization select{box-sizing:border-box;max-width:215px;width:60%;min-width:0;min-height:36px;height:36px;margin:0;padding:7px 30px 7px 10px;border:1px solid var(--theme-control-border,#dce3df);border-radius:10px;background-color:var(--theme-control-fill,#fff);color:var(--theme-teal-text,#244b48);font-size:12px}.notice-authorization>small{font-size:10px;line-height:1.4;color:var(--theme-text-muted,#64766f)}.notice-authorization select:focus-visible,.notice-device-settings button:focus-visible{outline:2px solid var(--theme-focus,#963900);outline-offset:2px}
#info[open]:has(#team-preferences-form){height:auto;max-height:calc(100dvh - 32px)}#team-preferences-form .team-preferences-content{gap:9px}#team-preferences-form .team-preferences-content>.notice-device-settings:first-child{margin:0;padding:0;border:0}#team-preferences-form .notice-channel-caption{margin:0;font-size:11px}#team-preferences-form .team-notification-options{gap:7px;margin:0}#team-preferences-form .team-notification-options>label{min-height:36px;padding:7px 10px;gap:7px;font-size:12px;border-radius:10px}#team-preferences-form .team-notification-options input[type=checkbox]{width:16px;height:16px;flex-basis:16px}#team-preferences-form .team-preferences-actions{padding-top:10px}#team-preferences-form .team-preferences-actions>.button{min-height:38px;font-size:12px}
.shared-owner-settings .notice-channel-grid .notification-choice,.client-extras-notifications .notice-channel-grid .notification-choice{min-height:35px;padding:6px}.shared-owner-settings .notice-channel-grid input[type=checkbox],.client-extras-notifications .notice-channel-grid input[type=checkbox]{width:17px;height:17px;min-height:0;margin:0}.shared-owner-settings .notification-channel-help,.client-extras-notifications .notification-channel-help{font-size:10px;margin:7px 0}.shared-owner-settings .notice-device-settings{padding:0;margin:0}.shared-owner-settings .notice-device-settings .notice-control-row{justify-content:flex-start}
.osiris-important{box-sizing:border-box;position:fixed;inset:auto;top:calc(env(safe-area-inset-top,0px) + 18px);left:50%;transform:translateX(-50%);width:min(410px,calc(100vw - 28px));max-width:calc(100vw - 28px);margin:0;padding:17px 18px 14px;border:0;border-radius:14px;background:var(--theme-fixed-3b23ef8a,#171917);color:var(--theme-inverse-text,#fff);box-shadow:0 9px 32px var(--theme-fixed-4866bb46,#0004);font:400 13px/1.5 var(--ui-font,system-ui,sans-serif);z-index:2147483647}.osiris-important>strong{display:block;padding-right:26px;color:var(--theme-accent-text,#ffb461);font-size:14px}.osiris-important>p{margin:7px 0 13px;color:var(--theme-inverse-text,#fff);font-size:12px;line-height:1.5}.osiris-important>button{appearance:none;-webkit-appearance:none;font:650 12px/1.3 var(--ui-font,system-ui,sans-serif);cursor:pointer}.osiris-important .notice-important-close{position:absolute;right:10px;top:9px;width:28px;height:28px;min-width:0;min-height:0;padding:0;border:0;border-radius:50%;background:var(--theme-surface-alpha-23,#ffffff17);color:var(--theme-inverse-text,#fff);font-size:21px}.osiris-important .notice-important-next{display:block;min-height:32px;margin-left:auto;padding:6px 14px;border:1px solid var(--theme-accent-line,#ffb461);border-radius:9px;background:var(--theme-accent-soft,#ffb461);color:var(--theme-text,#171917)}.osiris-important>button:focus-visible{outline:2px solid var(--theme-focus,#fff);outline-offset:3px}
@media(max-width:350px){.notice-device-settings .notice-control-row{gap:4px}.notice-device-settings .notice-control-row>button{font-size:11px;padding:6px}.notice-device-settings .notice-push-label,.notice-device-settings .notice-sound-settings{font-size:11px}.notice-authorization select{max-width:170px}}

/* Preferences use intrinsic height; only long content scrolls above the Save footer. */
#info[open]:has(#team-preferences-form){display:flex;flex-direction:column;inset:0;margin:auto;height:fit-content;min-height:0;max-height:calc(100dvh - 32px);overflow:hidden}
#info:has(#team-preferences-form)>#info-body{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden}
#info #team-preferences-form{display:flex;flex-direction:column;flex:1 1 auto;height:auto;min-height:0;max-height:100%;gap:0}
#info #team-preferences-form .team-preferences-content{flex:0 1 auto;min-height:0;overflow-y:auto}
#info #team-preferences-form .team-preferences-actions{flex:0 0 auto}

/* Private role tools keep full touch targets inside the existing dialog. */
.superadmin-role-tools{display:grid;gap:10px;min-width:0}.superadmin-role-tools>label{display:grid;gap:6px;min-width:0}.superadmin-role-tools select{width:100%;min-width:0}.superadmin-role-tools button{min-height:44px}

/* Compact device controls; foreground sound stays a single on/off preference. */
.push-settings.notice-device-settings{padding:0;margin:0;border:0;gap:6px}
.notice-device-settings .notice-control-row{flex-wrap:nowrap}
.notice-sound-host{display:inline-flex;min-width:0;max-width:100%}
.notice-device-settings .notice-sound-settings{justify-content:flex-end;min-height:34px;margin:0;gap:5px;white-space:nowrap}
.notice-device-settings .notice-sound-settings input{flex:none}
.notice-example-disclosure{min-width:0;margin:0;padding:0;border:0;background:transparent}
.notice-example-disclosure>summary{width:fit-content;min-height:34px;margin:0;padding:6px 0;box-sizing:border-box;color:var(--theme-text-muted,#56605a);font:600 12px/1.5 var(--ui-font,inherit);cursor:pointer}
.notice-example-disclosure>summary:focus-visible{outline:2px solid var(--theme-text-muted,#56605a);outline-offset:2px}
.notice-example-disclosure .notice-appearance-examples{margin:4px 0 0}
