/* Bo'limlar va shifokorlar — ochiq qism uslublari.
 * Shifokorlar ro'yxati (.slp-app ichida) Subsites Locations'ning umumiy "slp-" kartochka
 * kutubxonasidan foydalanadi (slp-front.css) — shunga ko'ra saytlar va shifokorlar ro'yxati
 * bir xil ko'rinadi. Bu yerda faqat o'ziga xos qo'shimchalar: filtr joylashuvi, avatar, va h.k. */

.mpd-shifokorlar__filters { display: flex; flex-direction: column; gap: 10px; }
.mpd-shifokorlar__check { display: flex; align-items: center; gap: .35rem; font-size: 14px; }

.mpd-shifokorlar__locbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    font-size: .9rem;
    color: #566;
}
.mpd-shifokorlar__locbar button {
    border: 1px solid #1764ff;
    background: #fff;
    color: #1764ff;
    border-radius: 999px;
    padding: .35rem .9rem;
    cursor: pointer;
}

/* Shifokor avatari — slp-card__logo bilan bir xil joyda, lekin doira shaklida */
.mpd-avatar { border-radius: 50% !important; object-fit: cover; }
.mpd-avatar--empty {
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px; color: var(--slp-accent, #4f46e5);
    background: var(--slp-soft, #f6f7fb);
}

.mpd-shifokorlar__map { margin-top: 1rem; min-height: 320px; border-radius: 10px; overflow: hidden; }

.mpd-bolimlar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.mpd-bolim-card {
    border: 1px solid #e7eaee;
    border-radius: 12px;
    padding: 1rem;
}
.mpd-bolim-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; margin-bottom: .5rem; }
.mpd-bolim-card__meta { list-style: none; margin: .5rem 0 0; padding: 0; font-size: .85rem; color: #566; display: grid; gap: .2rem; }

.mpd-card-departments,
.mpd-card-doctors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .75rem;
}
.mpd-card-department,
.mpd-card-doctor {
    border: 1px solid #e7eaee;
    border-radius: 10px;
    padding: .75rem;
    text-decoration: none;
    color: inherit;
}
.mpd-card-department img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; margin-bottom: .4rem; }
.mpd-card-doctor { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; }
.mpd-card-doctor img,
.mpd-card-doctor__avatar {
    width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #eef1f5;
    display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.mpd-card-doctor__spec { font-size: .8rem; color: #667; }

.mpd-empty { color: #889; font-size: .9rem; }

.mpd-doctor-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: .6rem;
}
.mpd-doctor-gallery__item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e7eaee;
}
.mpd-doctor-gallery__item img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

/* Shifokor sahifasi — sarlavha: avatar yonida ism/familiya, pastda emas */
.mpd-doctor-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.mpd-doctor-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}
.mpd-doctor-header__photo {
    width: 128px;
    height: 128px;
    flex: 0 0 128px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--slp-soft, #f6f7fb);
    border: 1px solid #e7eaee;
}
.mpd-doctor-header__body {
    min-width: 0;
}
.mpd-doctor-header__body h1 {
    margin: 0 0 .3rem;
    font-size: 1.6rem;
    line-height: 1.25;
}
.mpd-doctor-header__spec {
    margin: 0 0 .2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--slp-accent, #4f46e5);
}
.mpd-doctor-header__degree,
.mpd-doctor-header__exp {
    margin: .15rem 0 0;
    font-size: .9rem;
    color: #566;
}

@media (max-width: 560px) {
    .mpd-doctor-header { gap: .9rem; }
    .mpd-doctor-header__photo { width: 84px; height: 84px; flex-basis: 84px; }
    .mpd-doctor-header__body h1 { font-size: 1.25rem; }
}

.mpd-doctor-about,
.mpd-doctor-gallery,
.mpd-doctor-places {
    margin-bottom: 1.75rem;
}
.mpd-doctor-about h2,
.mpd-doctor-gallery h2,
.mpd-doctor-places h2 {
    font-size: 1.1rem;
    margin: 0 0 .75rem;
}
.mpd-doctor-about p {
    color: #334;
    line-height: 1.6;
}

.mpd-doctor-places__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .75rem;
}
.mpd-doctor-place {
    border: 1px solid #e7eaee;
    border-radius: 12px;
    padding: .9rem 1rem;
}
.mpd-doctor-place h3 {
    margin: 0 0 .3rem;
    font-size: 1rem;
}
.mpd-doctor-place h3 a {
    color: inherit;
    text-decoration: none;
}
.mpd-doctor-place h3 a:hover {
    color: var(--slp-accent, #4f46e5);
}
.mpd-doctor-place__address,
.mpd-doctor-place__price {
    margin: .2rem 0 0;
    font-size: .85rem;
    color: #566;
}

/* "Tasdiqlangan shifokor" belgisi (ARGOS) */
.mpd-verified {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin: .1rem 0 .4rem;
    padding: .15rem .6rem .15rem .4rem;
    border-radius: 999px;
    background: #e8f6ee;
    color: #1a7f37;
    font-size: .82rem;
    font-weight: 600;
}

/* "Xato haqida xabar berish" */
.mpd-report {
    margin: 2rem 0 1rem;
    font-size: .9rem;
}
.mpd-report summary {
    cursor: pointer;
    color: #667;
    display: inline-block;
}
.mpd-report summary:hover {
    color: var(--slp-accent, #4f46e5);
}
.mpd-report__form {
    margin-top: .75rem;
    max-width: 520px;
    display: grid;
    gap: .5rem;
}
.mpd-report__hint {
    margin: 0;
    color: #667;
    font-size: .82rem;
}
.mpd-report__form textarea {
    width: 100%;
    border: 1px solid #d7dce2;
    border-radius: 10px;
    padding: .6rem .75rem;
    font: inherit;
    resize: vertical;
}
.mpd-report__form button {
    justify-self: start;
}
.mpd-report__msg {
    margin: 0;
    font-size: .85rem;
    color: #445;
}
.mpd-report__form.is-sent textarea,
.mpd-report__form.is-sent button {
    display: none;
}

/* =====================================================================
   Shifokor profili — Instagram uslubi (2026-10-18)
   Rang — mavzu aksenti (--mp-accent), bo'lmasa Subsites Locations aksenti.
   ===================================================================== */
.mpd-ig {
    --ig-accent: var(--mp-accent, var(--slp-accent, #0E7490));
    --ig-ink: #1a2b33;
    --ig-muted: #5b6b73;
    --ig-line: #e2e8eb;
    --ig-soft: #f3f6f7;
    max-width: 935px;
    margin: 0 auto;
    padding: 28px 16px 40px;
    color: var(--ig-ink);
}
.mpd-ig .slp-ico { width: 1.05em; height: 1.05em; flex: 0 0 auto; }

.mpd-ig-head {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding-bottom: 26px;
}
.mpd-ig-avatar {
    justify-self: center;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    padding: 4px;
    background: var(--ig-line);
}
.mpd-ig-avatar.is-new {
    background: conic-gradient(from 210deg, var(--ig-accent), color-mix(in srgb, var(--ig-accent) 40%, #f5b041), var(--ig-accent));
}
.mpd-ig-avatar img, .mpd-ig-avatar__empty {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    display: block;
    background: var(--ig-soft);
}
.mpd-ig-avatar__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 700;
    color: var(--ig-accent);
}
.mpd-ig-head__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.mpd-ig-head__title h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; }
.mpd-ig-head__title .mpd-verified { margin: 0; }

.mpd-ig-counters { display: flex; flex-wrap: wrap; gap: 6px 26px; list-style: none; margin: 14px 0 10px; padding: 0; }
.mpd-ig-counters button, .mpd-ig-counters span {
    background: none; border: 0; padding: 0; margin: 0;
    font: inherit; font-size: 15px; color: var(--ig-ink); cursor: pointer;
}
.mpd-ig-counters span { cursor: default; }
.mpd-ig-counters b { font-weight: 700; }
.mpd-ig-counters button:hover { color: var(--ig-accent); }

.mpd-ig-spec { margin: 0 0 4px; font-weight: 600; color: var(--ig-accent); }
.mpd-ig-bio { margin: 0 0 14px; color: #334; line-height: 1.5; }

.mpd-ig-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mpd-ig-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid var(--ig-line);
    background: #fff;
    color: var(--ig-ink) !important;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s;
}
.mpd-ig-btn:hover { border-color: var(--ig-accent); color: var(--ig-accent) !important; }
.mpd-ig-btn:active { transform: scale(.98); }
.mpd-ig-btn--primary { background: var(--ig-accent); border-color: var(--ig-accent); color: #fff !important; }
.mpd-ig-btn--primary:hover { color: #fff !important; filter: brightness(1.08); }
.mpd-ig-btn.is-done { border-color: #2f855a; color: #2f855a !important; }

/* Doira bo'limlar */
.mpd-ig-highlights {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 2px 22px;
    margin-bottom: 4px;
    scrollbar-width: none;
}
.mpd-ig-highlights::-webkit-scrollbar { display: none; }
.mpd-ig-hl {
    flex: 0 0 auto;
    width: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--ig-ink);
    text-decoration: none !important;
    cursor: pointer;
}
.mpd-ig-hl__ring {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    padding: 3px;
    border: 1px solid var(--ig-line);
    background: #fff;
    transition: transform .2s;
}
.mpd-ig-hl:hover .mpd-ig-hl__ring { transform: scale(1.05); border-color: var(--ig-accent); }
.mpd-ig-hl__ring img, .mpd-ig-hl__empty {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ig-soft);
    color: var(--ig-accent);
}
.mpd-ig-hl__empty .slp-ico { width: 30px; height: 30px; }
.mpd-ig-hl__label {
    max-width: 84px;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Vkladkalar */
.mpd-ig-tabs {
    display: flex;
    justify-content: center;
    gap: 44px;
    border-top: 1px solid var(--ig-line);
    margin-bottom: 18px;
    scroll-margin-top: 80px;
}
.mpd-ig-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: -1px;
    padding: 15px 2px;
    border: 0;
    border-top: 2px solid transparent;
    background: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ig-muted);
    cursor: pointer;
}
.mpd-ig-tabs button[aria-selected="true"] { border-top-color: var(--ig-ink); color: var(--ig-ink); }
.mpd-ig-tabs button:hover { color: var(--ig-ink); }
.mpd-ig-tabs button:focus-visible { outline: 2px solid var(--ig-accent); outline-offset: 2px; }
.mpd-ig-panel { animation: mpd-ig-fade .25s ease both; }
@keyframes mpd-ig-fade { from { opacity: 0; } to { opacity: 1; } }

/* Ish joylari */
.mpd-ig-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.mpd-ig-place {
    border: 1px solid var(--ig-line);
    border-radius: 14px;
    padding: 14px 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mpd-ig-place__head { display: flex; align-items: center; gap: 12px; color: inherit !important; text-decoration: none !important; }
.mpd-ig-place__head img, .mpd-ig-place__logo {
    width: 48px; height: 48px; border-radius: 12px; object-fit: cover;
    display: flex; align-items: center; justify-content: center;
    background: var(--ig-soft); color: var(--ig-accent); flex: 0 0 auto;
}
.mpd-ig-place__head strong { display: block; line-height: 1.3; }
.mpd-ig-place__head small { color: var(--ig-muted); font-size: 13px; }
.mpd-ig-place__head:hover strong { color: var(--ig-accent); }
.mpd-ig-place__meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: #3d4b52; }
.mpd-ig-place__meta li { display: flex; gap: 8px; align-items: flex-start; }
.mpd-ig-place__meta .slp-ico { margin-top: 2px; color: var(--ig-muted); }
.mpd-ig-place__meta a { color: var(--ig-accent); text-decoration: none; }
.mpd-ig-chip {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ig-accent) 12%, #fff);
    color: var(--ig-accent);
}

/* Ma'lumot */
.mpd-ig-info { max-width: 680px; }
.mpd-ig-info h3 { margin: 0 0 8px; font-size: 16px; }
.mpd-ig-info__text { line-height: 1.6; color: #334; margin-bottom: 18px; }
.mpd-ig-info__text p { margin: 0 0 .8em; }
.mpd-ig-info__list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--ig-line); }
.mpd-ig-info__list > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ig-line); }
.mpd-ig-info__list dt { color: var(--ig-muted); font-size: 14px; }
.mpd-ig-info__list dd { margin: 0; }
.mpd-ig-info__note { margin-top: 16px; font-size: 13px; color: #1a7f37; }

/* Storis ko'ruvchi */
.mpd-story {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: #0b1215;
    display: flex;
    align-items: center;
    justify-content: center;
    --mpd-story-ms: 5000ms;
}
.mpd-story[hidden] { display: none; }
.mpd-story__img { max-width: min(560px, 100%); max-height: 86vh; object-fit: contain; }
.mpd-story__bars { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: min(540px, 92%); display: flex; gap: 4px; z-index: 2; }
.mpd-story__bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.mpd-story__bars span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.mpd-story__bars span.is-done::after { transform: scaleX(1); }
.mpd-story__bars span.is-on::after { animation: mpd-story-bar var(--mpd-story-ms) linear forwards; }
@keyframes mpd-story-bar { to { transform: scaleX(1); } }
.mpd-story__title { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); width: min(540px, 92%); color: #fff; font-weight: 600; font-size: 14px; z-index: 2; }
.mpd-story__close { position: absolute; top: 18px; right: 18px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mpd-story__close .slp-ico { width: 22px; height: 22px; }
.mpd-story__zone { position: absolute; top: 60px; bottom: 0; width: 40%; border: 0; background: none; cursor: pointer; z-index: 1; }
.mpd-story__zone--prev { left: 0; }
.mpd-story__zone--next { right: 0; }
.mpd-story__zone:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

@media (max-width: 735px) {
    .mpd-ig { padding-top: 16px; }
    .mpd-ig-head { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding-bottom: 16px; }
    .mpd-ig-avatar { width: 92px; height: 92px; padding: 3px; }
    .mpd-ig-avatar img, .mpd-ig-avatar__empty { border-width: 3px; }
    .mpd-ig-avatar__empty { font-size: 34px; }
    .mpd-ig-head__title h1 { font-size: 20px; }
    .mpd-ig-counters { gap: 4px 16px; margin: 8px 0 6px; }
    .mpd-ig-counters button, .mpd-ig-counters span { font-size: 14px; }
    /* Instagram mobil ko'rinishi: avatar yonida — ism va hisoblagichlar, pastda — mutaxassislik, bio, tugmalar */
    .mpd-ig-head { row-gap: 10px; align-items: center; }
    .mpd-ig-head__body { display: contents; }
    .mpd-ig-avatar { grid-row: span 2; }
    .mpd-ig-head__title, .mpd-ig-counters { grid-column: 2; }
    .mpd-ig-spec, .mpd-ig-bio, .mpd-ig-actions { grid-column: 1 / -1; margin: 0; }
    .mpd-ig-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
    .mpd-ig-btn { justify-content: center; padding: 9px 10px; }
    .mpd-ig-highlights { gap: 14px; }
    .mpd-ig-hl { width: 70px; }
    .mpd-ig-hl__ring { width: 64px; height: 64px; }
    .mpd-ig-tabs { gap: 0; justify-content: space-around; }
    .mpd-ig-tabs button span { display: none; }
    .mpd-ig-tabs button .slp-ico, .mpd-ig-tabs button .mpf-ico { width: 22px; height: 22px; }
    .mpd-ig-info__list > div { grid-template-columns: 1fr; gap: 2px; }
    .mpd-ig .mpf-grid { gap: 2px; margin: 0 -16px; }
}
@media (prefers-reduced-motion: reduce) {
    .mpd-ig-panel, .mpd-ig-hl__ring, .mpd-story__bars span.is-on::after { animation: none !important; transition: none !important; }
}

/* ---- Shifokor plitkalari [shifokorlar]: muqova + "yangi" halqa (2026-10-18) ---- */
.mpd-dcard { position: relative; overflow: hidden; animation: mpd-card-in .35s ease both; }
@keyframes mpd-card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mpd-dcard__cover {
    display: block;
    position: relative;
    margin: -16px -16px 0;
    height: 120px;
    border-radius: var(--slp-radius, 14px) var(--slp-radius, 14px) 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, color-mix(in srgb, var(--mp-accent, var(--slp-accent, #0E7490)) 22%, #fff), color-mix(in srgb, var(--mp-accent, var(--slp-accent, #0E7490)) 6%, #fff));
}
.mpd-dcard__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.mpd-dcard__cover-blur { filter: blur(18px) saturate(1.2); transform: scale(1.3); opacity: .55; }
.mpd-dcard:hover .mpd-dcard__cover img:not(.mpd-dcard__cover-blur) { transform: scale(1.05); }
.mpd-dcard .slp-card__head { position: relative; margin-top: -30px; align-items: flex-end; }
.mpd-dcard .slp-card__title { padding-bottom: 2px; }
.mpd-ring {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(16, 24, 40, .12);
}
.mpd-ring.is-new {
    background: conic-gradient(from 210deg, var(--mp-accent, var(--slp-accent, #0E7490)), #f5b041, var(--mp-accent, var(--slp-accent, #0E7490)));
}
.mpd-ring .mpd-avatar { border: 3px solid #fff; margin: 0 !important; padding: 0; width: 60px; height: 60px; flex-basis: 60px; object-fit: cover; }
/* Ro'yxat ko'rinishida muqova kerak emas */
.slp-card--row.mpd-dcard .mpd-dcard__cover { display: none; }
.slp-card--row.mpd-dcard .slp-card__head { margin-top: 0; align-items: center; }

.mpd-more { display: flex; justify-content: center; padding: 18px 0; }
.mpd-more[hidden] { display: none; }
.mpd-spinner {
    width: 26px;
    height: 26px;
    border: 3px solid #e2e8eb;
    border-top-color: var(--mp-accent, var(--slp-accent, #0E7490));
    border-radius: 50%;
    animation: mpd-spin .8s linear infinite;
}
@keyframes mpd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .mpd-dcard, .mpd-dcard__cover img { animation: none !important; transition: none !important; }
}

/* ---- Plitka v2 (2026-10-19): katta foto, dumaloq avatar yo'q (faqat ro'yxatda) ---- */
.mpd-dcard__photo {
    display: block;
    position: relative;
    margin: -16px -16px 12px;
    aspect-ratio: 4 / 4.2;
    border-radius: var(--slp-radius, 14px) var(--slp-radius, 14px) 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, color-mix(in srgb, var(--mp-accent, var(--slp-accent, #0E7490)) 22%, #fff), color-mix(in srgb, var(--mp-accent, var(--slp-accent, #0E7490)) 6%, #fff));
}
.mpd-dcard__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; transition: transform .4s ease; }
.mpd-dcard:hover .mpd-dcard__photo img { transform: scale(1.04); }
.mpd-dcard__photo.is-empty { display: grid; place-items: center; }
.mpd-dcard__photo.is-empty > span:first-child { font-size: 64px; font-weight: 700; color: var(--mp-accent, var(--slp-accent, #0E7490)); opacity: .5; }
.mpd-dcard__new {
    position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px;
    background: var(--mp-accent, var(--slp-accent, #0E7490)); color: #fff; font-size: 12px; font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .2);
}
.mpd-dcard:not(.slp-card--row) .mpd-ring { display: none; }
.mpd-dcard .slp-card__head { margin-top: 0; align-items: flex-start; }
.slp-card--row.mpd-dcard .mpd-dcard__photo { display: none; }
@supports not (aspect-ratio: 1) { .mpd-dcard__photo { height: 260px; } }
@media (prefers-reduced-motion: reduce) { .mpd-dcard__photo img { transition: none !important; } }

/* ---- "Men shifokorman" (bemor kabinetida) ---- */
.mpd-req__acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.mpd-req__box > summary { list-style: none; cursor: pointer; width: max-content; }
.mpd-req__box > summary::-webkit-details-marker { display: none; }
.mpd-req__box[open] > summary { margin-bottom: 14px; }
.mpd-req__form { display: grid; gap: 12px; }
.mpd-req__form label { display: grid; gap: 4px; font-size: 14px; }
.mpd-req__form label > span { font-weight: 600; }
.mpd-req__form small { color: #5b6b73; font-size: 12.5px; }
.mpd-req__form select, .mpd-req__form input[type="text"], .mpd-req__form input[type="number"], .mpd-req__form textarea {
    width: 100%; box-sizing: border-box; min-height: 42px; padding: 8px 12px; border: 1px solid #e2e8eb; border-radius: 10px; font: inherit; background: #fff;
}
.mpd-req__form select[multiple] { min-height: 150px; }
.mpd-req__row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.mpd-req__form .mpd-req__check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.mpd-req__check input { margin-top: 3px; }
.mpd-req__error { margin: 0; padding: 8px 12px; border-radius: 10px; background: #fdecea; color: #8a1c13; }
.mpd-req__form .mpp-btn--primary { justify-self: start; }
.mpd-req__status { padding: 10px 14px; border-radius: 12px; }
.mpd-req__status--wait { background: #fff7e0; color: #6b4e00; }
.mpd-req__status--no { background: #fdecea; color: #8a1c13; }
@media (max-width: 560px) { .mpd-req__row { grid-template-columns: 1fr; } }

/* ---- Shifokor qidiruvi: taklif ro'yxati (data-mpd-suggest) ---- */
.mpd-sug { position: relative; width: 100%; }
.mpd-sug > input { width: 100%; }
.mpd-sug__list {
    position: absolute; z-index: 1000; left: 0; right: 0; top: calc(100% + 4px);
    max-height: 340px; overflow: auto; margin: 0; padding: 6px; list-style: none;
    background: #fff; border: 1px solid #e2e8eb; border-radius: 14px; box-shadow: 0 14px 34px rgba(16, 24, 40, .14);
}
.mpd-sug__list[hidden] { display: none; }
.mpd-sug__item { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.mpd-sug__item[aria-selected="true"], .mpd-sug__item:hover { background: color-mix(in srgb, var(--mp-accent, var(--slp-accent, #0E7490)) 10%, #fff); }
.mpd-sug__item img, .mpd-sug__ph { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; object-fit: cover; }
.mpd-sug__ph { display: grid; place-items: center; background: var(--mp-accent, var(--slp-accent, #0E7490)); color: #fff; font-weight: 700; }
.mpd-sug__txt { min-width: 0; display: grid; }
.mpd-sug__txt strong { font-size: 15px; color: #1a2b33; }
.mpd-sug__txt small, .mpd-sug__chip small { font-size: 13px; color: #5b6b73; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mpd-sug__empty { padding: 10px; color: #5b6b73; font-size: 14px; }
.mpd-sug__chip {
    display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: center;
    min-height: 44px; padding: 6px 8px 6px 14px; border: 1px solid var(--mp-accent, var(--slp-accent, #0E7490)); border-radius: 12px;
    background: color-mix(in srgb, var(--mp-accent, var(--slp-accent, #0E7490)) 8%, #fff);
}
.mpd-sug__chip strong { grid-column: 1; }
.mpd-sug__chip small { grid-column: 1; }
.mpd-sug__x { grid-column: 2; grid-row: 1 / span 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: #5b6b73; }
.mpd-sug__x:hover { background: #fff; color: #b42318; }
.mpd-sug__item img.is-logo { border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid #e2e8eb; }
.slp-search .mpd-sug { flex: 1 1 auto; min-width: 0; }

/* ---- Onlayn yozilish vidjeti ---- */
.mpd-book { --b-accent: var(--mp-accent, var(--slp-accent, #0E7490)); display: grid; gap: 12px; max-width: 760px; color: #1a2b33; }
.mpd-book__step { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-weight: 700; font-size: 15px; }
.mpd-book__step span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--b-accent); color: #fff; font-size: 13px; }
.mpd-book__places { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.mpd-book__places.is-single input { position: absolute; opacity: 0; pointer-events: none; }
.mpd-book__place { position: relative; display: flex; gap: 10px; padding: 12px 14px; border: 1px solid #e2e8eb; border-radius: 14px; background: #fff; cursor: pointer; }
.mpd-book__place:has(input:checked) { border-color: var(--b-accent); box-shadow: 0 0 0 1px var(--b-accent); background: color-mix(in srgb, var(--b-accent) 5%, #fff); }
.mpd-book__place input { margin-top: 3px; accent-color: var(--b-accent); }
.mpd-book__place-body { display: grid; gap: 3px; min-width: 0; }
.mpd-book__place-body small { display: flex; gap: 5px; align-items: flex-start; color: #5b6b73; font-size: 13px; }
.mpd-book__place-body .mpd-icon, .mpd-book__place-body svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 2px; }
.mpd-book__days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.mpd-book__day {
    flex: 0 0 74px; display: grid; justify-items: center; gap: 1px; padding: 8px 4px; scroll-snap-align: start;
    border: 1px solid #e2e8eb; border-radius: 14px; background: #fff; color: inherit; font: inherit; cursor: pointer;
}
.mpd-book__day small { font-size: 12px; color: #5b6b73; text-transform: capitalize; }
.mpd-book__day strong { font-size: 20px; line-height: 1.2; }
.mpd-book__day em { font-style: normal; font-size: 11px; color: #137a3a; }
.mpd-book__day:hover:not(:disabled) { border-color: var(--b-accent); }
.mpd-book__day.is-on { background: var(--b-accent); border-color: var(--b-accent); color: #fff; }
.mpd-book__day.is-on small, .mpd-book__day.is-on em { color: #fff; }
.mpd-book__day.is-off, .mpd-book__day:disabled { opacity: .45; cursor: default; }
.mpd-book__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.mpd-book__slot { min-height: 44px; border: 1px solid #e2e8eb; border-radius: 12px; background: #fff; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; color: inherit; }
.mpd-book__slot:hover:not(:disabled) { border-color: var(--b-accent); color: var(--b-accent); }
.mpd-book__slot.is-on { background: var(--b-accent); border-color: var(--b-accent); color: #fff; }
.mpd-book__slot:disabled { opacity: .4; text-decoration: line-through; cursor: default; }
.mpd-book__loading, .mpd-book__empty { color: #5b6b73; font-size: 14px; margin: 0; grid-column: 1 / -1; }
.mpd-book__final { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: #f4f7f8; }
.mpd-book__comment { display: grid; gap: 4px; font-size: 14px; }
.mpd-book__comment span { font-weight: 600; }
.mpd-book__comment textarea { width: 100%; box-sizing: border-box; padding: 8px 12px; border: 1px solid #e2e8eb; border-radius: 12px; font: inherit; resize: vertical; background: #fff; }
.mpd-book__summary { margin: 0; font-weight: 700; font-size: 16px; }
.mpd-book__summary::first-letter { text-transform: uppercase; }
.mpd-book__go {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 26px; border: 0; border-radius: 14px;
    background: var(--b-accent); color: #fff !important; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; justify-self: start;
}
.mpd-book__go:hover { filter: brightness(1.08); }
.mpd-book__go:disabled { opacity: .6; }
.mpd-book__rules { margin: 0; font-size: 12.5px; color: #5b6b73; }
.mpd-book__msg { padding: 14px 16px; border-radius: 14px; }
.mpd-book__msg p { margin: 0 0 10px; }
.mpd-book__msg.is-ok { background: #e8f6ee; color: #135c31; }
.mpd-book__msg.is-bad { background: #fdecea; color: #8a1c13; }
.mpd-book__msg.is-info { background: color-mix(in srgb, var(--b-accent) 8%, #fff); }
.mpd-book__msg .mpd-book__go { margin-right: 8px; }
.mpd-book__link { color: var(--b-accent); font-weight: 600; }
.mpd-book__none { color: #5b6b73; }

/* ---- Bemor kabineti: Mening yozilishlarim ---- */
.mpd-appts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mpd-appt { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid #e3e9ec; border-radius: 14px; background: #fff; }
.mpd-appt__when strong { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.mpd-appt__when small { color: #5b6b73; font-size: 13px; }
.mpd-appt__who { display: grid; gap: 2px; min-width: 0; }
.mpd-appt__who a { font-weight: 700; color: inherit; text-decoration: none; }
.mpd-appt__who a:hover { color: var(--mp-accent, #0E7490); }
.mpd-appt__who small { color: #5b6b73; }
.mpd-appt__status { justify-self: start; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #fcf0d4; color: #7a5300; }
.mpd-appt--confirmed .mpd-appt__status { background: #d9f2e1; color: #135c31; }
.mpd-appt--done .mpd-appt__status { background: #e1ecfb; color: #0b3d84; }
.mpd-appt--cancelled .mpd-appt__status, .mpd-appt--no_show .mpd-appt__status { background: #fde2e1; color: #8a1c13; }
.mpd-appt--cancelled { opacity: .7; }
.mpd-appt__late { color: #5b6b73; font-size: 12px; max-width: 160px; text-align: right; }
.mpd-appt__ask { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 8px; border-top: 1px dashed #e3e9ec; }
.mpd-appt__ask.is-bad { color: #b42318; }
.mpd-appt__yes { border-color: #b42318 !important; color: #b42318 !important; }
.mpd-mybook__past { margin-top: 12px; }
.mpd-mybook__past summary { cursor: pointer; color: #5b6b73; font-weight: 600; margin-bottom: 8px; }
@media (max-width: 560px) {
    .mpd-appt { grid-template-columns: 1fr; gap: 6px; }
    .mpd-appt__when strong { display: inline; margin-right: 8px; }
    .mpd-appt__late { text-align: left; max-width: none; }
}
.mpd-book [hidden] { display: none !important; }

/* ---- Sharhlar va reyting ---- */
.mpd-stars { position: relative; display: inline-block; width: 80px; height: 16px; vertical-align: -2px; background: #d0d5d8;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1l2 4.6 5 .5-3.8 3.3 1.1 4.9L8 11.8 3.7 14.3l1.1-4.9L1 6.1l5-.5z'/%3E%3C/svg%3E") 0 0 / 16px 16px repeat-x;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1l2 4.6 5 .5-3.8 3.3 1.1 4.9L8 11.8 3.7 14.3l1.1-4.9L1 6.1l5-.5z'/%3E%3C/svg%3E") 0 0 / 16px 16px repeat-x; }
.mpd-stars__fill { position: absolute; inset: 0 auto 0 0; background: #f5a524; }
.mpd-rv-wrap { display: grid; gap: 16px; }
.mpd-rv-sum { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 16px; border-radius: 16px; background: #f4f7f8; }
.mpd-rv-sum__big { display: grid; justify-items: center; gap: 4px; }
.mpd-rv-sum__big strong { font-size: 40px; line-height: 1; }
.mpd-rv-sum__big small { color: #5b6b73; }
.mpd-rv-sum__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: #5b6b73; }
.mpd-rv-sum__bars li { display: grid; grid-template-columns: 28px 1fr 28px; gap: 8px; align-items: center; }
.mpd-rv-bar { height: 8px; border-radius: 999px; background: #e2e8eb; overflow: hidden; }
.mpd-rv-bar span { display: block; height: 100%; background: #f5a524; }
.mpd-rv-sum--few { grid-template-columns: 1fr; gap: 2px; }
.mpd-rv-sum--few small { color: #5b6b73; }
.mpd-rv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mpd-rv { padding: 14px 16px; border: 1px solid #e3e9ec; border-radius: 14px; background: #fff; }
.mpd-rv header { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.mpd-rv header time { margin-left: auto; color: #5b6b73; font-size: 13px; }
.mpd-rv__where { display: block; color: #5b6b73; font-size: 13px; margin-top: 2px; }
.mpd-rv__badge { display: inline-block; margin-top: 6px; padding: 1px 8px; border-radius: 999px; background: #e8f6ee; color: #135c31; font-size: 12px; font-weight: 600; }
.mpd-rv__text p { margin: 8px 0 0; }
.mpd-rv__reply { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--mp-accent, #0E7490); background: #f4f7f8; border-radius: 0 10px 10px 0; font-size: 14px; }
.mpd-rv__reply p { margin: 4px 0 0; }
.mpd-rv-empty { color: #5b6b73; }
@media (max-width: 520px) { .mpd-rv-sum { grid-template-columns: 1fr; } }

.mpd-appt__rev { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; color: #5b6b73; }
.mpd-revform { grid-column: 1 / -1; }
.mpd-revform > summary { list-style: none; width: max-content; }
.mpd-revform > summary::-webkit-details-marker { display: none; }
.mpd-revform form { display: grid; gap: 10px; margin-top: 10px; padding: 14px; border-radius: 14px; background: #f4f7f8; }
.mpd-starpick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin: 0; padding: 0; border: 0; }
.mpd-starpick legend { width: 100%; font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.mpd-starpick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mpd-starpick label { font-size: 32px; line-height: 1; color: #d0d5d8; cursor: pointer; padding: 2px; }
.mpd-starpick--sm label { font-size: 24px; }
.mpd-starpick label:hover, .mpd-starpick label:hover ~ label, .mpd-starpick input:checked ~ label { color: #f5a524; }
.mpd-starpick input:focus-visible + label { outline: 2px solid var(--mp-accent, #0E7490); border-radius: 4px; }
.mpd-revform__text { display: grid; gap: 4px; font-size: 14px; }
.mpd-revform__text span { font-weight: 600; }
.mpd-revform__text textarea { width: 100%; box-sizing: border-box; padding: 8px 12px; border: 1px solid #e2e8eb; border-radius: 12px; font: inherit; background: #fff; }
.mpd-revform form .mpp-btn--primary { justify-self: start; }
.mpd-revform__msg { margin: 0; font-size: 14px; }
.mpd-revform__msg.is-bad { color: #b42318; }
.mpd-revform__done { grid-column: 1 / -1; margin: 0; color: #135c31; font-weight: 600; }
.mpd-dcard__rating { display: inline-block; margin-top: 2px; font-size: 13px; font-weight: 700; color: #b26b00; }
.mpd-dcard__rating small { font-weight: 400; color: #5b6b73; }
.mpd-dcard .slp-card__actions { flex-wrap: wrap; gap: 6px; }

/* ---------- elektron navbat: vidjet va kabinet ---------- */
.mpd-qlive { border: 1px solid color-mix(in srgb, var(--b-accent, #0E7490) 30%, #fff); background: color-mix(in srgb, var(--b-accent, #0E7490) 6%, #fff); border-radius: 14px; padding: 12px 14px; }
.mpd-qlive__cap { margin: 0 0 6px; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.mpd-qlive ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mpd-qlive li { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 14.5px; }
.mpd-qlive li b { font-variant-numeric: tabular-nums; }
.mpd-qlive li a { margin-left: auto; font-size: 13px; }
.mpd-qlive [data-q-take] { min-height: 34px; padding: 5px 12px; border-radius: 10px; border: 1px solid var(--b-accent, #0E7490); background: var(--b-accent, #0E7490); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.mpd-qlive__msg { margin: 6px 0 0; font-size: 14px; }
.mpd-qlive__msg:empty { display: none; }
.mpd-qlive__msg.is-ok { color: #135c31; }
.mpd-qlive__msg.is-bad { color: #b42318; }
.mpd-myq__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mpd-myq__t { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid #e3e9ec; }
.mpd-myq__t.is-called { border-color: #eab308; background: #fefce8; animation: mpdq 1.2s ease 3; }
@keyframes mpdq { 50% { background: #fde68a; } }
.mpd-myq__num { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--mpp-accent, #0E7490); }
.mpd-myq__body { display: grid; gap: 2px; min-width: 0; }
.mpd-myq__body small { color: #5b6b73; }
@media (max-width: 560px) { .mpd-myq__t { grid-template-columns: auto 1fr; } .mpd-myq__t > button { grid-column: 1 / -1; justify-self: end; } }
.mpd-sug__group { padding: 8px 12px 4px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b7c85; background: #f6f8f9; list-style: none; }
.mpd-sug__ph--icon { border-radius: 10px; background: color-mix(in srgb, var(--mp-accent, #0E7490) 12%, #fff); color: var(--mp-accent, #0E7490); }
.mpd-sug__ph--icon svg { width: 20px; height: 20px; }
.mpd-sug__price { margin-left: auto; white-space: nowrap; font-weight: 700; font-size: 13px; color: var(--mp-accent, #0E7490); padding-left: 8px; }
