/* Shared geometry. Calendar day/time controls retain their dedicated styles. */
body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    vertical-align: middle;
    text-align: center;
    line-height: 1.3;
    min-height: var(--md-button-height, 42px);
    height: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    padding: .5rem 1rem;
}
body .btn-sm { min-height: 34px; padding: .35rem .7rem; }
body .btn-lg { min-height: 48px; padding: .65rem 1.2rem; }
body .btn > :is(i, svg) { flex-shrink: 0; }
body .btn > :is(i, svg).me-1,
body .btn > :is(i, svg).me-2 { margin-right: 0 !important; }
body .btn:focus-visible, summary:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
.md-booking-actions { flex-wrap: wrap; align-items: stretch; }
.md-booking-actions > form { display: flex; }
.md-notify-channel-main { flex-wrap: wrap; }
.md-notify-brand { flex: 1 1 180px; }
.md-notify-brand span { overflow-wrap: anywhere; }
.md-social-icons-colored :is(.fa-telegram-plane, .fa-telegram, [data-icon="telegram-plane"], [data-icon="telegram"]) {
    color: #229ed9 !important;
}
.md-social-icons-mono :is(.fa-telegram-plane, .fa-telegram, [data-icon="telegram-plane"], [data-icon="telegram"]) {
    color: inherit !important;
}
.md-social-icons-colored :is(.fa-vk, [data-icon="vk"]) { color: #0077ff !important; }
.md-social-icons-colored :is(.fa-whatsapp, [data-icon="whatsapp"]) { color: #218b45 !important; }
.home-page .home-section:not(.home-hero-section),
.md-layout-standard .home-page .home-section:not(.home-hero-section) {
    padding-block: .75rem;
    margin-block: 0;
}
.home-page .home-section-last { padding-bottom: 1.5rem; }
.home-page .home-panel-pad { padding: clamp(1rem, 2.4vw, 1.75rem); }
.home-page .home-section-title { margin-top: 0; }
.home-page :is(.home-hero-text, .home-section-text) > :last-child { margin-bottom: 0; }
.md-home-services-grid > *, .md-services-page-grid > * { min-width: 0; }
/* Administration uses one neutral surface palette regardless of public theme. */
body.md-admin-ui .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    height: auto !important;
    padding: .4rem .75rem !important;
    font-size: .8125rem !important;
    line-height: 1.3 !important;
    white-space: normal;
}
body.md-admin-ui .btn.w-100 { width: 100% !important; }
body.md-admin-ui :is(input.form-control, select.form-select) { min-height: 36px !important; }
body.md-admin-ui details {
    border: 1px solid var(--md-admin-border, #dde2e7) !important;
    border-radius: 10px !important;
    background: #fff !important;
    margin-bottom: .75rem !important;
}
body.md-admin-ui details > summary {
    display: flex !important;
    align-items: center;
    gap: .65rem;
    padding: .8rem 1rem !important;
    color: #29323b !important;
    background: #f5f7f9 !important;
    font-size: .9rem !important;
    line-height: 1.4 !important;
    font-weight: 650 !important;
    cursor: pointer;
    list-style: none;
    border-radius: 9px;
}
body.md-admin-ui details > summary::-webkit-details-marker { display: none; }
body.md-admin-ui details > summary::after {
    content: '+'; margin-left: auto; flex: 0 0 1rem; text-align: center;
    position: static; transform: none; font-size: 1.2rem;
}
body.md-admin-ui details[open] > summary::after { content: '−'; transform: none; }
body.md-admin-ui details[open] > summary { border-bottom: 1px solid #dde2e7; border-radius: 9px 9px 0 0; }
body.md-admin-ui :is(.card-body, .design-panel-body) { padding: 1rem !important; }
body.md-admin-ui :is(.settings-row, .settings-api-box, .settings-mail-box, .settings-social-row, .settings-service-row) {
    border-color: #dde2e7 !important;
    border-radius: 8px !important;
}
body.md-admin-ui .design-preset-form { display: flex; }
body.md-admin-ui .design-preset-button { width: 100%; height: 100%; text-align: left; }
body.md-admin-ui .design-preset-swatches { border: 1px solid #dfe3e8; }
@media (max-width: 575.98px) {
    .home-page .home-section:not(.home-hero-section),
    .md-layout-standard .home-page .home-section:not(.home-hero-section) { padding-block: .5rem; }
    body.md-admin-ui details > summary { padding: .75rem !important; }
    .md-booking-actions > :is(.btn, form) { flex: 1 1 120px; }
    .md-booking-actions > form > .btn { width: 100% !important; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Neutral footer leaves the accent to actions and small details. */
.md-site-footer { background: var(--md-footer-bg, var(--md-primary-color, #261d22)); color: var(--md-footer-text-color, var(--md-button-text-color, #fff)); }
.md-admin-ui .md-site-footer{background:var(--md-footer-bg,#261d22)!important;color:var(--md-footer-text-color,#fff)!important}
.md-site-footer :is(.text-white, a) { color: var(--md-footer-text-color, var(--md-button-text-color, #fff)) !important; }
.home-hero-title { overflow-wrap: anywhere; }
@media (max-width: 767.98px) {
    .home-page .home-hero-title { font-size: clamp(2.15rem, 11.5vw, 3.4rem); line-height: .98; }
    .md-admin-ui .md-site-footer .container { padding-inline: 16px !important; }
}

/* v13.13: one compact service row */
.md-home-services-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;align-items:stretch}
.md-home-service-card{min-width:0;display:flex;flex-direction:column}
.md-home-service-card .md-home-service-image{width:100%;height:auto!important;aspect-ratio:16/9!important;min-height:0!important;object-fit:cover}
.md-home-service-card .md-home-service-body{padding:16px!important;flex:1}
@media(max-width:767.98px){.md-home-services-grid{grid-template-columns:none!important;grid-auto-flow:column;grid-auto-columns:78%;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px}.md-home-service-card{scroll-snap-align:start}}

.md-home-service-body p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
/* Long company names must not push the desktop navigation outside the page. */
@media(min-width:992px){.md-site-header .navbar-brand{max-width:210px;white-space:normal;flex-shrink:1}.md-site-header .navbar-collapse{min-width:0}.md-site-header .navbar-nav{flex-wrap:wrap;justify-content:flex-end}.md-site-header .navbar-brand img{max-width:100%;object-fit:contain}}
.home-page .home-section > .container {
    width:100%;
    max-width:none;
}

/* Independent wide banner and foreground block. */
.home-page-wide{padding-top:0}
.home-hero-wide .home-masters-box{background:var(--md-surface-bg,#fff);color:var(--md-text-color,#212529);padding:1rem;border-radius:var(--md-block-radius,12px)}
.home-hero-wide .home-masters-heading .home-eyebrow{color:var(--md-muted-text-color,#656565)}
.home-hero-wide .home-masters-title{color:var(--md-text-color,#212529)}
.home-hero-wide .home-promo-frame{position:relative;z-index:1}

/* Current master: content edges match the wide banner, not its inset text. */
.home-page .home-section:not(.home-hero-section) > .container {
 width:100%;max-width:none;padding-left:0!important;padding-right:0!important;
}
.home-page .home-section:not(.home-hero-section) > .container > .row {margin-left:0;margin-right:0}
.home-page .home-section:not(.home-hero-section) > .container > .d-flex {padding-inline:clamp(12px,2vw,24px)}
.md-admin-ui .md-save-footer{display:flex;flex-direction:column;align-items:flex-end;gap:5px;clear:both;margin-top:12px;padding:10px 12px;border-top:1px solid #dde1e7}
.md-admin-ui .md-save-status{margin:0;font-size:13px;line-height:1.4;max-width:100%;overflow-wrap:anywhere}
.md-admin-ui .md-save-status:empty{display:none}
.md-admin-ui .md-save-status.is-success{color:#176b35}
.md-admin-ui .md-save-status.is-error{color:#b42318}
.md-admin-ui :is(.card-body,.design-panel-body){padding:12px!important}
.md-admin-ui :is(.design-panel,.settings-spoiler,.md-content-card){margin-bottom:12px!important}
.md-admin-ui :is(.design-panel-head,details>summary){padding:12px 14px!important}
.md-admin-ui :is(.form-control,.form-select){min-height:36px;font-size:14px}
.md-admin-ui textarea.form-control{min-height:76px}
.md-admin-ui :is(.btn){min-height:34px;display:inline-flex;align-items:center;justify-content:center;line-height:1.3;vertical-align:middle}
.md-admin-ui :is(.btn)[hidden]{display:none!important}
.md-admin-ui .form-label{margin-bottom:4px}
.md-admin-ui .form-text{margin-top:4px;margin-bottom:8px}
.md-admin-ui .row>*{min-width:0}
.md-admin-ui .form-control-color{width:100%;max-width:120px;height:36px;padding:4px}
.md-admin-ui .form-check{display:flex;align-items:flex-start;gap:8px;padding-left:0}
.md-admin-ui .form-check .form-check-input{float:none;margin-left:0;flex:0 0 auto;margin-top:.25em}
.md-admin-ui #card-editor-preview{max-width:100%;min-width:0}
@media(max-width:575px){.md-admin-ui .md-save-footer .btn{min-width:100px}.md-admin-ui .design-panel-head{flex-wrap:wrap}}
.home-page .home-section:not(.home-hero-section) > .container > .row > :first-child{padding-left:0}
.home-page .home-section:not(.home-hero-section) > .container > .row > :last-child{padding-right:0}
@media(max-width:767.98px){.home-page .home-section:not(.home-hero-section) > .container > .row > *{padding-left:0;padding-right:0}}
.md-admin-ui #card-design .col-6 > .form-label{display:flex;align-items:flex-end;min-height:2.8em}
.md-admin-ui .design-panel-head>*{min-width:0}

/* License / capability UI */
.md-license-strip{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:18px;
    padding:16px 18px;
    border:1px solid rgba(0,0,0,.28);
    color:inherit;
    box-shadow:0 4px 18px rgba(0,0,0,.06);
}
.md-license-strip-main{display:flex;align-items:baseline;gap:10px;white-space:nowrap}
.md-license-strip-kicker{text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;font-weight:800;opacity:.72}
.md-license-strip-subtitle{font-size:.92rem;opacity:.82}
.md-license-strip-link{font-weight:700;white-space:nowrap}
.md-license-strip.is-free-ok{background:#e8f7ec;border-color:#2f7d46;color:#174f2a}
.md-license-strip.is-free-warning{background:#fff4c7;border-color:#b88800;color:#6f5600}
.md-license-strip.is-free-critical{background:#ffe0df;border-color:#c23b37;color:#7f1f1b}
.md-license-strip.is-expired{background:#5a1730;border-color:#3b0c1e;color:#fff}
.md-license-strip.is-standard{background:#e5f0ff;border-color:#2f65a7;color:#173d70}
.md-license-strip.is-pro{background:#eee6ff;border-color:#7249b8;color:#462878}
.md-license-strip.is-ultra{background:#1d1b18;border-color:#b79648;color:#f2d788}
.md-license-strip.is-invalid{background:#eee;border-color:#777;color:#333}
.md-feature-card-locked{background:#f6f6f6;opacity:.78;position:relative}
.md-feature-card-locked h2,.md-feature-card-locked p{text-decoration:none}
.md-feature-lock{font-size:.72rem;font-weight:800;border:1px solid currentColor;padding:3px 6px;white-space:nowrap}
.md-feature-lock-panel{border:1px dashed #8c8c8c;background:#f5f5f5;padding:12px 14px;margin-bottom:14px}
.md-feature-lock-panel strong{display:block;margin-bottom:2px}
.md-license-compare{font-size:.9rem}
.md-license-compare th,.md-license-compare td{vertical-align:middle;text-align:center}
.md-license-compare th:first-child,.md-license-compare td:first-child{text-align:left;min-width:220px}
.md-license-state-enabled{font-weight:800;color:#18713a}
.md-license-state-sample{font-weight:800;color:#9a6500}
.md-license-state-locked{color:#8a3030}
.md-license-state-hidden{color:#888}
@media(max-width:767.98px){.md-license-strip{grid-template-columns:1fr;gap:5px}.md-license-strip-link{margin-top:4px}.md-license-strip-main{justify-content:space-between}}


/* v21.0.3 — никаких focus/tap-рамок и focus-shadow во всём сайте и админке. */
:root{
    --bs-focus-ring-width:0px;
    --bs-focus-ring-opacity:0;
    --bs-focus-ring-color:transparent;
}
html body,
html body *{
    -webkit-tap-highlight-color:transparent;
}
html body *:focus,
html body *:focus-visible,
html body *:focus-within{
    outline:none !important;
    outline-offset:0 !important;
    box-shadow:none !important;
}
html body :is(
    a,button,input,select,textarea,summary,[role="button"],[tabindex],
    .btn,.nav-link,.navbar-brand,.navbar-toggler,.dropdown-item,.dropdown-toggle,
    .accordion-button,.page-link,.btn-close,.form-control,.form-select,.form-check-input
):focus,
html body :is(
    a,button,input,select,textarea,summary,[role="button"],[tabindex],
    .btn,.nav-link,.navbar-brand,.navbar-toggler,.dropdown-item,.dropdown-toggle,
    .accordion-button,.page-link,.btn-close,.form-control,.form-select,.form-check-input
):focus-visible{
    outline:none !important;
    outline-offset:0 !important;
    box-shadow:none !important;
}
html body .form-control:focus,
html body .form-select:focus,
html body textarea.form-control:focus{
    border-color:var(--md-input-border-color,#ced4da) !important;
}
html body .form-check-input:not(:checked):focus{
    border-color:var(--md-input-border-color,#ced4da) !important;
}
html body .form-check-input:checked:focus{
    border-color:var(--md-primary-color,#261d22) !important;
}
html body .form-switch .form-check-input:not(:checked):focus{
    border-color:var(--md-switch-inactive-bg,#dee2e6) !important;
}
html body .form-switch .form-check-input:checked:focus{
    border-color:var(--md-switch-active-bg,#efbdca) !important;
}

/* Visit rating: loaded with the page to avoid late geometry changes. */
.md-rating-stars{display:inline-flex;flex-direction:row-reverse;gap:.15rem;flex:0 0 auto}
.md-rating-stars input{position:absolute;opacity:0;pointer-events:none}
.md-rating-stars label{font-size:2rem;line-height:1;color:#b8b8b8;cursor:pointer;margin:0}
.md-rating-stars label:hover,.md-rating-stars label:hover~label,.md-rating-stars input:checked~label{color:#111}
@media(max-width:359.98px){.md-rating-stars label{font-size:1.75rem}}


/* FREE expiry: consistent admin read-only mode. */
.md-admin-expired-banner {
    background: #5a1730;
    color: #fff;
    border-bottom: 1px solid #3b0c1e;
    font-size: .92rem;
}
.md-admin-expired-banner .btn {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
body.md-license-readonly form[data-md-readonly="1"] {
    opacity: .72;
}
body.md-license-readonly form[data-md-readonly="1"] button,
body.md-license-readonly form[data-md-readonly="1"] input,
body.md-license-readonly form[data-md-readonly="1"] select,
body.md-license-readonly form[data-md-readonly="1"] textarea {
    cursor: not-allowed;
}
@media (max-width: 575.98px) {
    .md-admin-expired-banner .container {
        align-items: stretch !important;
    }
    .md-admin-expired-banner .btn {
        width: 100%;
    }
}


/* Update/license support strip + 3-2-1 StUdio footer branding. */
.md-license-support-strip{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:.45rem .65rem;
    padding:.8rem 1rem;
    border:1px solid #d7d7d7;
    background:#f8f9fa;
    color:#212529;
    border-radius:.35rem;
}
.md-license-support-strip a{font-weight:700;color:inherit;text-decoration:underline;text-underline-offset:2px}
.md-license-support-strip a:hover{opacity:.78}
.md-created-by{color:rgba(255,255,255,.62)}
.md-created-by:hover{color:rgba(255,255,255,.82)}
.md-created-accent{font-weight:800}
@media(max-width:575.98px){
    .md-license-support-strip{align-items:flex-start}
    .md-license-support-divider{display:none}
    .md-license-support-strip>span{flex:0 0 100%}
}


/* v24 — inline content editing, metro/contact and current UI QA fixes. */
.md-license-comparison{
    border:1px solid #d9dde1;
    border-radius:.5rem;
    background:#fff;
    overflow:hidden;
}
.md-license-comparison-summary{
    min-height:54px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:.75rem;
    padding:.85rem 1rem;
    font-weight:700;
    cursor:pointer;
    list-style:none;
    user-select:none;
}
.md-license-comparison-summary::-webkit-details-marker{display:none}
.md-license-comparison-summary::after{content:'+';font-size:1.35rem;line-height:1;font-weight:500;flex:0 0 auto}
.md-license-comparison[open] .md-license-comparison-summary{border-bottom:1px solid #e3e6e8}
.md-license-comparison[open] .md-license-comparison-summary::after{content:'−'}
.md-license-comparison-body{padding:1rem}
.md-license-comparison-body>.card{margin-bottom:0!important;border:0;box-shadow:none;padding:0!important}
.md-masters-layout{--bs-gutter-x:1rem}
.md-masters-list-card,.md-master-editor-card{border:1px solid #d8dde2}
.md-master-list{display:grid;gap:.7rem}
.md-master-row{border:1px solid #e0e3e6;border-radius:.6rem;padding:.8rem;background:#fff}
.md-master-row.is-editing{border-color:#777;background:#fafafa}
.md-master-row-main{display:flex;align-items:flex-start;gap:.8rem;min-width:0}
.md-master-thumb{width:58px;height:58px;object-fit:cover;border-radius:.55rem;flex:0 0 58px;background:#f2f3f4}
.md-master-thumb-empty{display:flex;align-items:center;justify-content:center;color:#999;font-size:1.2rem}
.md-master-row-copy{min-width:0;flex:1}
.md-master-meta{display:flex;flex-wrap:wrap;gap:.3rem .8rem;font-size:.78rem;color:#6c757d}
.md-master-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;margin-top:.75rem;padding-top:.65rem;border-top:1px solid #eceeef}
.md-master-actions form{margin:0}
.md-master-empty{border:1px dashed #d6d9dc;border-radius:.6rem;padding:1.1rem;text-align:center}
@media(min-width:1200px){
    .md-master-editor-card{position:sticky;top:1rem}
}
@media(max-width:575.98px){
    .md-license-comparison-summary{align-items:flex-start;flex-direction:column;padding:.75rem .85rem}
    .md-license-comparison-summary::after{position:absolute;right:1rem}
    .md-license-comparison-summary{position:relative;padding-right:2.5rem}
    .md-license-comparison-body{padding:.75rem}
    .md-master-row{padding:.7rem}
    .md-master-actions .btn,.md-master-actions form{flex:1 1 calc(50% - .35rem)}
    .md-master-actions form .btn{width:100%}
}

/* v23.1 — мастер настройки и проверка готовности */
.md-setup-cta{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border:1px solid #b9dfc8;background:#f1fbf5}
.md-setup-progress{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid #dedede;background:#fff}
.md-setup-progress-item{display:flex;min-width:0;flex-direction:column;gap:6px;padding:12px;border-right:1px solid #e5e5e5;color:inherit;text-decoration:none;background:#fff}
.md-setup-progress-item:last-child{border-right:0}
.md-setup-progress-item.is-current{background:#f7f7f7;box-shadow:inset 0 -3px 0 #212529}
.md-setup-step-number{display:flex;width:26px;height:26px;align-items:center;justify-content:center;border:1px solid #212529;border-radius:50%;font-size:12px;font-weight:700}
.md-setup-step-title{font-size:13px;font-weight:700;line-height:1.25}
.md-setup-progress-item .md-admin-status-badge{align-self:flex-start}
.md-setup-preview{display:block;width:100%;height:110px;object-fit:contain;border:1px solid #e1e1e1;background:#fafafa;margin-bottom:8px;padding:6px}
.md-setup-preview.is-square{object-fit:contain}
.md-readiness-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid #e0e0e0;border-bottom:0;background:#fff}
.md-readiness-row:last-child{border-bottom:1px solid #e0e0e0}
.md-readiness-row:hover{background:#fafafa}
@media (max-width: 767.98px){
 .md-setup-cta{align-items:stretch;flex-direction:column}
 .md-setup-cta .btn{width:100%}
 .md-setup-progress{grid-template-columns:1fr;gap:0}
 .md-setup-progress-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;border-right:0;border-bottom:1px solid #e5e5e5}
 .md-setup-progress-item:last-child{border-bottom:0}
 .md-setup-progress-item .md-admin-status-badge{align-self:center}
 .md-readiness-row{align-items:flex-start;flex-direction:column}
}

/* v24.2: public ratings */
.md-public-rating{display:inline-flex;align-items:center;gap:.45rem;line-height:1;white-space:nowrap}
.md-public-rating-stars{display:inline-flex;gap:.08rem;font-size:1rem;line-height:1}
.md-public-rating-star{position:relative;display:inline-block;color:#c9c9c9;line-height:1}
.md-public-rating-star>span{position:absolute;inset:0 auto 0 0;overflow:hidden;color:#d7a51b;line-height:1;white-space:nowrap}
.md-public-rating-score{font-size:.88rem;font-weight:700;line-height:1;color:inherit}
.home-master-rating{margin:.35rem 0 .45rem;color:#fff}
.md-booking-master-rating{margin-left:auto;color:#2b2528}
.md-calendar-studio-choice-stack{min-width:0;display:flex;flex-direction:column;gap:3px}
.md-calendar-studio-rating{font-size:.76rem;font-weight:600;line-height:1;color:#5f565a}
.md-calendar-studio-rating .md-public-rating-stars{font-size:.8rem}
.md-calendar-studio-rating .md-public-rating-score{font-size:.76rem}
.md-contact-studio-rating{display:inline-flex;align-items:center;margin-left:2px;color:var(--md-button-text-color,#fff);font-size:.76rem;font-weight:700}
.md-contact-studio-rating .md-public-rating{gap:.3rem}
.md-contact-studio-rating .md-public-rating-stars{font-size:.78rem}
.md-contact-studio-rating .md-public-rating-star{color:rgba(255,255,255,.32)}
.md-contact-studio-rating .md-public-rating-score{font-size:.75rem;color:inherit}
@media(max-width:575.98px){.md-booking-master-rating{width:100%;margin-left:0}.md-public-rating-stars{font-size:.95rem}}

/* v24.2: consistent administrative form rows */
body.md-admin-ui .md-admin-form-row{border:1px solid var(--md-admin-border,#dde2e7);border-radius:10px;background:#fff;padding:14px}
body.md-admin-ui .md-admin-form-row .form-control,
body.md-admin-ui .md-admin-form-row .form-select{min-height:40px;border-radius:8px!important}
body.md-admin-ui .md-admin-icon-button{display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;height:40px;padding:0!important;border-radius:8px!important}
body.md-admin-ui .md-admin-icon-button i{pointer-events:none}


/* v24.3.2: admin surface contrast and resilient layout */
body.md-admin-ui{
    --md-admin-border:#c8d0d9;
    --md-admin-border-strong:#aeb9c5;
    --md-admin-soft:#f4f6f8;
    --md-admin-shadow:0 3px 14px rgba(28,35,42,.07);
}
body.md-admin-ui :is(.card,.md-content-card,.settings-card,.settings-api-box,.settings-mail-box,.settings-pedicure,.design-panel,.design-preset-box,.design-layout-option,.home-switch-item,.home-choice-card,.home-banner-upload,.home-mini-card){
    border-color:var(--md-admin-border)!important;
}
body.md-admin-ui :is(.card,.md-content-card,.settings-card,.settings-api-box,.settings-mail-box,.settings-pedicure,.design-panel){
    box-shadow:var(--md-admin-shadow)!important;
}
body.md-admin-ui :is(.settings-row,.settings-social-row,.settings-service-row,.md-admin-form-row,.border.p-2,.border.p-3,.border.p-4){
    border-color:#d2d9e0!important;
    background:#fff;
}
body.md-admin-ui :is(.form-control,.form-select,.input-group-text){
    border-color:var(--md-admin-border-strong)!important;
}
body.md-admin-ui .table-responsive{max-width:100%;}
body.md-admin-ui .card-body>*:last-child,
body.md-admin-ui .md-content-card>*:last-child{margin-bottom:0;}
body.md-admin-ui :is(.d-flex,.row)>*{min-width:0;}
body.md-admin-ui .md-admin-help-button{flex:0 0 21px;}
body.md-admin-ui .rounded-0{border-radius:var(--md-admin-radius-sm,8px)!important;}
@media(max-width:575.98px){
    body.md-admin-ui :is(.card-body,.md-content-card.p-4,.border.p-4){padding:.8rem!important;}
    body.md-admin-ui .input-group{flex-wrap:wrap;}
    body.md-admin-ui .input-group>.form-control,
    body.md-admin-ui .input-group>.form-select{min-width:0;flex:1 1 180px;}
}

/* v24.3.3: редкий случайный блик по рейтингу мастеров только на главной */
.home-master-rating .md-public-rating-star > span{
    isolation:isolate;
}
.home-master-rating .md-public-rating-star.md-home-rating-glint > span{
    animation:mdHomeRatingGlow .82s ease-out both;
}
.home-master-rating .md-public-rating-star.md-home-rating-glint > span::after{
    content:'★';
    position:absolute;
    inset:0;
    color:transparent;
    background:linear-gradient(112deg,
        transparent 18%,
        rgba(255,255,255,0) 34%,
        rgba(255,247,207,.96) 48%,
        rgba(255,255,255,.98) 52%,
        rgba(255,239,166,.38) 60%,
        rgba(255,255,255,0) 72%,
        transparent 84%);
    background-size:260% 100%;
    background-position:180% 0;
    -webkit-background-clip:text;
    background-clip:text;
    pointer-events:none;
    animation:mdHomeRatingShine .82s cubic-bezier(.22,.72,.2,1) both;
}
@keyframes mdHomeRatingShine{
    0%{background-position:180% 0;opacity:0}
    14%{opacity:1}
    100%{background-position:-80% 0;opacity:0}
}
@keyframes mdHomeRatingGlow{
    0%,100%{filter:none}
    38%{filter:brightness(1.38) drop-shadow(0 0 3px rgba(255,221,104,.78))}
}
@media (prefers-reduced-motion:reduce){
    .home-master-rating .md-public-rating-star.md-home-rating-glint > span,
    .home-master-rating .md-public-rating-star.md-home-rating-glint > span::after{animation:none!important}
}

