/* Lenta — plitkalar to'ri, hujjatlar, nashr ko'ruvchisi. Rang — mavzu aksenti (--mp-accent). */

.mpf-grid, .mpf-docs, .mpf-viewer, .mpf-empty, .mpf-more, .mpf-admin, .mpf-toast, .mpf-qa {
    --mpf-accent: var(--mp-accent, var(--slp-accent, #0E7490));
    --mpf-ink: #1a2b33;
    --mpf-muted: #5b6b73;
    --mpf-line: #e2e8eb;
    --mpf-soft: #f3f6f7;
}
.mpf-ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -0.2em; }

/* ---------------- to'r ---------------- */
.mpf-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
}
.mpf-tile {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: var(--mpf-soft);
    overflow: hidden;
    cursor: pointer;
    color: var(--mpf-ink);
    font: inherit;
    text-align: left;
    animation: mpf-in .35s ease both;
}
@supports not (aspect-ratio: 1 / 1) {
    .mpf-tile { height: 0; padding-bottom: 100%; }
}
.mpf-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.mpf-tile:hover img { transform: scale(1.04); }
.mpf-tile:focus-visible { outline: 3px solid var(--mpf-accent); outline-offset: -3px; }
.mpf-tile__text {
    position: absolute;
    inset: 0;
    padding: 14px;
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.4;
    background: linear-gradient(135deg, color-mix(in srgb, var(--mpf-accent) 14%, #fff), #fff);
    overflow: hidden;
}
.mpf-tile__doc {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    text-align: center;
    color: var(--mpf-accent);
}
.mpf-tile__doc .mpf-ico { width: 34%; height: auto; stroke-width: 1.4; }
.mpf-tile__doc b { font-size: 13px; letter-spacing: .06em; }
.mpf-tile__doc small { font-size: 12px; color: var(--mpf-muted); line-height: 1.3; word-break: break-word; }
.mpf-tile--xls .mpf-tile__doc { color: #2f855a; }
.mpf-tile--doc .mpf-tile__doc { color: #2563a6; }
.mpf-tile--pdf .mpf-tile__doc { color: #c1443d; }
.mpf-tile__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45));
    line-height: 1;
}
.mpf-tile__badge--txt {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .55);
    filter: none;
}
.mpf-tile__over {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    font-weight: 700;
    background: rgba(0, 0, 0, .32);
    opacity: 0;
    transition: opacity .2s;
}
.mpf-tile:hover .mpf-tile__over, .mpf-tile:focus-visible .mpf-tile__over { opacity: 1; }
@media (hover: none) { .mpf-tile__over { display: none; } }

@keyframes mpf-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .mpf-tile, .mpf-tile img, .mpf-slides { animation: none !important; transition: none !important; }
}

.mpf-more { display: flex; justify-content: center; padding: 22px 0; }
.mpf-spinner {
    display: inline-block;
    width: 26px;
    height: 26px;
    border: 3px solid var(--mpf-line, #e2e8eb);
    border-top-color: var(--mpf-accent, #0E7490);
    border-radius: 50%;
    animation: mpf-spin .8s linear infinite;
}
@keyframes mpf-spin { to { transform: rotate(360deg); } }

.mpf-empty {
    padding: 48px 16px;
    text-align: center;
    color: var(--mpf-muted);
}
.mpf-empty .mpf-ico { width: 44px; height: 44px; stroke-width: 1.2; margin-bottom: 8px; }
.mpf-empty p { margin: 0; }

/* ---------------- hujjatlar ---------------- */
.mpf-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mpf-doc {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--mpf-line);
    border-radius: 12px;
    background: #fff;
}
.mpf-doc__ico {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    color: #fff;
    background: var(--mpf-accent);
}
.mpf-doc--pdf .mpf-doc__ico { background: #c1443d; }
.mpf-doc--doc .mpf-doc__ico { background: #2563a6; }
.mpf-doc--xls .mpf-doc__ico { background: #2f855a; }
.mpf-doc__body { min-width: 0; display: flex; flex-direction: column; }
.mpf-doc__body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mpf-doc__body small { color: var(--mpf-muted); font-size: 13px; }
.mpf-doc__act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) {
    .mpf-doc { grid-template-columns: 40px minmax(0, 1fr); }
    .mpf-doc__ico { width: 40px; height: 40px; }
    .mpf-doc__act { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------------- tugmalar ---------------- */
.mpf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    background: none;
    color: inherit;
}
.mpf-btn--primary { background: var(--mpf-accent); color: #fff !important; }
.mpf-btn--primary:hover { filter: brightness(1.08); }
.mpf-btn--ghost { border-color: var(--mpf-line); color: var(--mpf-ink) !important; background: #fff; }
.mpf-btn--ghost:hover { border-color: var(--mpf-accent); color: var(--mpf-accent) !important; }

/* ---------------- ko'ruvchi ---------------- */
html.mpf-lock, html.mpf-lock body { overflow: hidden; }
.mpf-viewer {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 64px;
    color: var(--mpf-ink);
    font-size: 15px;
    line-height: 1.5;
}
.mpf-viewer[hidden] { display: none; }
.mpf-viewer__backdrop { position: absolute; inset: 0; background: rgba(10, 18, 22, .82); }
.mpf-viewer__box {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    width: min(1100px, 100%);
    height: min(86vh, 760px);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    animation: mpf-pop .22s ease both;
}
@keyframes mpf-pop { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.mpf-viewer__close, .mpf-viewer__nav {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
}
.mpf-viewer__close:hover, .mpf-viewer__nav:hover { background: rgba(255, 255, 255, .26); }
.mpf-viewer__close { top: 14px; right: 14px; }
.mpf-viewer__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.mpf-viewer__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }
.mpf-viewer__nav[hidden] { display: none; }
.mpf-viewer__close .mpf-ico, .mpf-viewer__nav .mpf-ico { width: 24px; height: 24px; }

.mpf-viewer__media {
    position: relative;
    background: #0f1a1f;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mpf-viewer__media.is-text { background: linear-gradient(135deg, color-mix(in srgb, var(--mpf-accent) 18%, #fff), #fff); }
.mpf-viewer__textonly { padding: 40px; font-size: 20px; line-height: 1.5; max-height: 100%; overflow: auto; }
.mpf-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .3s ease;
}
.mpf-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mpf-slide img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.mpf-slides__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #1a2b33;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.mpf-slides__arrow[hidden] { display: none; }
.mpf-slides__arrow--prev { left: 10px; }
.mpf-slides__arrow--next { right: 10px; }
.mpf-slides__dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}
.mpf-slides__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.mpf-slides__dots span.is-on { background: #fff; }

.mpf-filecard {
    width: min(420px, 86%);
    max-height: 92%;
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.mpf-filecard__preview { max-width: 100%; max-height: 46vh; object-fit: contain; border: 1px solid var(--mpf-line); border-radius: 6px; }
.mpf-filecard__ico { color: var(--mpf-accent); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mpf-filecard__ico .mpf-ico { width: 72px; height: 72px; stroke-width: 1.2; }
.mpf-slide--pdf .mpf-filecard__ico { color: #c1443d; }
.mpf-slide--doc .mpf-filecard__ico { color: #2563a6; }
.mpf-slide--xls .mpf-filecard__ico { color: #2f855a; }
.mpf-filecard__name { word-break: break-word; }
.mpf-filecard__size { color: var(--mpf-muted); }
.mpf-filecard__acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

.mpf-viewer__side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--mpf-line); }
.mpf-viewer__head { padding: 14px 16px; border-bottom: 1px solid var(--mpf-line); }
.mpf-viewer__author { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.mpf-viewer__author:hover strong { color: var(--mpf-accent); }
.mpf-viewer__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.mpf-viewer__avatar--empty { display: flex; align-items: center; justify-content: center; background: var(--mpf-soft); color: var(--mpf-accent); font-weight: 700; }
.mpf-viewer__who { display: flex; flex-direction: column; min-width: 0; }
.mpf-viewer__who strong { font-size: 15px; }
.mpf-viewer__who small { color: var(--mpf-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpf-viewer__caption { flex: 1 1 auto; overflow: auto; padding: 14px 16px; word-break: break-word; }
.mpf-viewer__caption p { margin: 0 0 .7em; }
.mpf-viewer__caption a { color: var(--mpf-accent); }
.mpf-viewer__foot { border-top: 1px solid var(--mpf-line); padding: 10px 12px 12px; }
.mpf-viewer__acts { display: flex; flex-wrap: wrap; gap: 4px; }
.mpf-viewer__date { display: block; margin: 6px 4px 0; font-size: 12px; color: var(--mpf-muted); }
.mpf-viewer__err { padding: 20px; color: #c1443d; }
.mpf-act {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--mpf-ink);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}
.mpf-act:hover { background: var(--mpf-soft); }
.mpf-act.is-on { color: var(--mpf-accent); }
.mpf-act.is-on .mpf-ico { fill: currentColor; }
.mpf-act--quiet { margin-left: auto; color: var(--mpf-muted); }
.mpf-act[disabled] { opacity: .55; cursor: default; }
.mpf-hint { margin: 6px 4px 0; font-size: 13px; color: var(--mpf-muted); }
.mpf-hint a { color: var(--mpf-accent); font-weight: 600; }
.mpf-report { display: grid; gap: 6px; margin-top: 8px; }
.mpf-report label { font-size: 13px; color: var(--mpf-muted); }
.mpf-report textarea { width: 100%; border: 1px solid var(--mpf-line); border-radius: 10px; padding: 8px 10px; font: inherit; resize: vertical; }
.mpf-report .mpf-btn { justify-self: start; }
.mpf-report p { margin: 0; font-size: 14px; }

@media (max-width: 900px) {
    .mpf-viewer { padding: 0; }
    .mpf-viewer__box {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    .mpf-viewer__side { border-left: 0; border-top: 1px solid var(--mpf-line); max-height: 46vh; }
    .mpf-viewer__close { top: 8px; right: 8px; background: rgba(0, 0, 0, .45); }
    .mpf-viewer__nav { top: auto; bottom: calc(46vh + 10px); transform: none; background: rgba(0, 0, 0, .45); width: 38px; height: 38px; }
}

.mpf-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 100001;
    transform: translate(-50%, 20px);
    padding: 10px 16px;
    border-radius: 999px;
    background: #1a2b33;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transition: opacity .25s, transform .25s;
}
.mpf-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.mpf-lenta__title { margin: 0 0 14px; }

/* ---------------- admin: yangi nashr ---------------- */
.mpf-compose {
    max-width: 760px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 4px 20px 18px;
}
.mpf-picked { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px; }
.mpf-picked:empty { display: none; }
.mpf-picked__item {
    position: relative;
    width: 108px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 6px;
    background: #fff;
    cursor: move;
}
.mpf-picked__item img, .mpf-picked__ext {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 94px;
    height: 94px;
    object-fit: cover;
    border-radius: 6px;
    background: #f0f6fc;
    color: #2271b1;
    font-weight: 700;
}
.mpf-picked__name { display: block; margin-top: 4px; font-size: 11px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpf-picked__x {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 0;
    background: #b32d2e;
    color: #fff;
    font-size: 15px;
    line-height: 22px;
    padding: 0;
    cursor: pointer;
}
.mpf-picked__item.ui-sortable-placeholder { visibility: visible !important; border: 2px dashed #2271b1; background: #f0f6fc; }
.mpf-compose .button .mpf-ico { vertical-align: -0.25em; }
.mpf-admin-ext {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    background: #f0f6fc;
    color: #2271b1;
    font-weight: 700;
    font-size: 12px;
}
.mpf-admin-table td { vertical-align: middle; }

/* ---------------- "Oldin / Keyin" ---------------- */
.mpf-tile__badge--ba { right: auto; left: 8px; top: auto; bottom: 8px; background: rgba(0, 0, 0, .6); letter-spacing: .02em; }
.mpf-ba-note { margin: 10px 0 0; font-size: 12.5px; color: var(--mpf-muted, #5b6b73); font-style: italic; }
.mpf-compare {
    --pos: 50%;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
    touch-action: pan-y;
}
.mpf-compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.mpf-compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.mpf-compare__line {
    position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
    background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .45); pointer-events: none;
}
.mpf-compare__line::after {
    content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #1a2b33;
    display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.mpf-compare__tag {
    position: absolute; top: 12px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
    color: #fff; background: rgba(0, 0, 0, .55); pointer-events: none;
}
.mpf-compare__tag--before { left: 12px; }
.mpf-compare__tag--after { right: 12px; }
.mpf-compare__range {
    position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
    -webkit-appearance: none; appearance: none;
}
.mpf-compare:focus-within .mpf-compare__line { background: var(--mpf-accent, #0E7490); }
.mpf-compare:focus-within .mpf-compare__line::after { outline: 3px solid var(--mpf-accent, #0E7490); }

/* admin: "Oldin / Keyin" muharriri */
.mpf-mode { display: flex; gap: 18px; margin: 10px 0 4px; }
.mpf-mode label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.mpf-pairs { display: grid; gap: 12px; margin: 12px 0; }
.mpf-pair { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid #dcdcde; border-radius: 8px; background: #fff; }
.mpf-pair__no { font-weight: 700; color: #50575e; }
.mpf-slot { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mpf-slot img, .mpf-slot__empty {
    width: 84px; height: 84px; border-radius: 6px; object-fit: cover; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center; background: #f0f6fc; color: #2271b1; font-size: 12px; text-align: center;
}
.mpf-slot__btns { display: flex; flex-direction: column; gap: 4px; }
.mpf-slot__label { font-weight: 600; font-size: 12px; text-transform: uppercase; color: #50575e; }
.mpf-consent { margin: 14px 0; padding: 12px 14px; border-left: 4px solid #dba617; background: #fcf9e8; }
.mpf-consent p { margin: 6px 0; }
@media (max-width: 782px) { .mpf-pair { grid-template-columns: 1fr; } }

/* admin: yuzni xiralashtirish oynasi */
.mpf-blur { position: fixed; inset: 0; z-index: 160000; background: rgba(0, 0, 0, .75); display: flex; align-items: center; justify-content: center; padding: 20px; }
.mpf-blur[hidden] { display: none; }
.mpf-blur__box { background: #fff; border-radius: 10px; padding: 14px; max-width: 96vw; max-height: 94vh; display: flex; flex-direction: column; gap: 10px; }
.mpf-blur__canvas { max-width: 90vw; max-height: 72vh; cursor: crosshair; touch-action: none; border: 1px solid #dcdcde; }
.mpf-blur__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }

/* ---------------- Savol – javob ---------------- */
.mpf-tile__text--qa { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; }
.mpf-tile__text--qa small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mpf-accent); }
.mpf-tile__badge--qa { background: var(--mpf-accent); color: #fff; }

.mpf-viewer__textonly--qa { font-size: 16px; display: grid; gap: 16px; align-content: start; }
.mpf-qa-q { padding: 16px 18px; border-radius: 14px; background: var(--mpf-soft); }
.mpf-qa-q__label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mpf-accent); }
.mpf-qa-q__text p { margin: 0 0 .6em; }
.mpf-qa-q__meta { color: var(--mpf-muted); font-size: 13px; }
.mpf-qa-a { padding: 0 4px; }
.mpf-qa-a p { margin: 0 0 .7em; }
.mpf-qa-link { color: var(--mpf-accent); font-weight: 600; font-size: 14px; }

.mpf-qa { color: var(--mpf-ink); display: grid; gap: 14px; }
.mpf-qa-ask { border: 1px solid var(--mpf-line); border-radius: 16px; padding: 12px; background: #fff; }
.mpf-qa-ask > summary { list-style: none; cursor: pointer; width: max-content; max-width: 100%; }
.mpf-qa-ask > summary::-webkit-details-marker { display: none; }
.mpf-qa-ask[open] > summary { margin-bottom: 14px; }
.mpf-qa-form { display: grid; gap: 12px; }
.mpf-qa-urgent { margin: 0; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fdecea; color: #8a1c13; font-size: 14px; }
.mpf-qa-urgent strong { flex: 0 0 auto; padding: 2px 8px; border-radius: 8px; background: #c62828; color: #fff; font-size: 15px; }
.mpf-qa-field { display: grid; gap: 4px; font-size: 14px; }
.mpf-qa-field > span { font-weight: 600; }
.mpf-qa-field small { color: var(--mpf-muted); font-size: 12.5px; }
.mpf-qa-field input, .mpf-qa-field select, .mpf-qa-field textarea,
.mpf-qa-filter input, .mpf-qa-filter select {
    width: 100%; box-sizing: border-box; min-height: 42px; padding: 8px 12px; border: 1px solid var(--mpf-line);
    border-radius: 10px; background: #fff; color: inherit; font: inherit; font-size: 15px;
}
.mpf-qa-field textarea { resize: vertical; }
.mpf-qa-field input:focus, .mpf-qa-field select:focus, .mpf-qa-field textarea:focus,
.mpf-qa-filter input:focus, .mpf-qa-filter select:focus { outline: 2px solid var(--mpf-accent); outline-offset: 0; border-color: transparent; }
.mpf-qa-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.mpf-qa-field--age { max-width: 140px; }
.mpf-qa-me { margin: 0; font-size: 14px; color: var(--mpf-muted); }
.mpf-qa-private { margin: 0; font-size: 13px; color: var(--mpf-muted); }
.mpf-qa-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.mpf-qa-check input { margin-top: 3px; }
.mpf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.mpf-qa-error { margin: 0; padding: 8px 12px; border-radius: 10px; background: #fdecea; color: #8a1c13; font-size: 14px; }
.mpf-qa-form .mpf-btn--primary { justify-self: start; }
.mpf-qa-done { padding: 6px 4px; }
.mpf-qa-done h3 { margin: 0 0 6px; font-size: 18px; }
.mpf-qa-done p { margin: 0 0 8px; }
.mpf-qa-linkrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mpf-qa-linkrow a { word-break: break-all; color: var(--mpf-accent); font-size: 14px; }

.mpf-qa-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.mpf-qa-filter select { flex: 1 1 220px; width: auto; }
.mpf-qa-filter input { flex: 2 1 240px; width: auto; }
.mpf-qa-total { margin: 0; color: var(--mpf-muted); font-size: 14px; }
.mpf-qa-list { display: grid; gap: 12px; }
.mpf-qa-list[aria-busy="true"] { opacity: .5; transition: opacity .2s; }
.mpf-qa-morewrap { text-align: center; }
.mpf-qa-back { margin: 0; }
.mpf-qa-back a { display: inline-flex; gap: 4px; align-items: center; color: var(--mpf-accent); font-weight: 600; text-decoration: none; }
.mpf-qa-status { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.mpf-qa-status--wait { background: #fff7e0; color: #6b4e00; }
.mpf-qa-status--no { background: #fdecea; color: #8a1c13; }

.mpf-q { border: 1px solid var(--mpf-line); border-radius: 16px; padding: 16px; background: #fff; animation: mpf-in .3s ease both; }
.mpf-q__head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 8px; font-size: 13px; color: var(--mpf-muted); }
.mpf-q__spec { padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--mpf-accent) 12%, #fff); color: var(--mpf-accent); font-weight: 600; }
.mpf-q__title { margin: 0 0 8px; font-size: 22px; line-height: 1.3; }
.mpf-q__text { font-size: 15.5px; line-height: 1.55; }
.mpf-q__text p { margin: 0 0 .6em; }
.mpf-q__text.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.mpf-q__wait { margin: 10px 0 0; font-size: 14px; color: var(--mpf-muted); font-style: italic; }
.mpf-q__answers { display: grid; gap: 10px; margin-top: 12px; }
.mpf-a { padding: 12px 14px; border-radius: 12px; background: var(--mpf-soft); border-left: 3px solid var(--mpf-accent); }
.mpf-a__who { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; margin-bottom: 8px; }
.mpf-a__who img, .mpf-a__ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.mpf-a__ph { display: grid; place-items: center; background: var(--mpf-accent); color: #fff; font-weight: 700; }
.mpf-a__who strong { display: block; font-size: 15px; }
.mpf-a__who small { display: block; color: var(--mpf-muted); font-size: 13px; }
.mpf-a__text { font-size: 15px; line-height: 1.55; }
.mpf-a__text p { margin: 0 0 .6em; }
.mpf-a__foot { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--mpf-muted); }
.mpf-a__foot .mpf-act b { font-weight: 600; }
.mpf-a__foot time { margin-left: auto; }
.mpf-q__foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--mpf-line); }
.mpf-q__foot a { color: var(--mpf-accent); font-weight: 600; text-decoration: none; font-size: 14px; }

/* admin: savollar */
.mpf-qmod { max-width: 980px; }
.mpf-qmod-item { background: #fff; border: 1px solid #dcdcde; border-radius: 8px; padding: 14px 16px; margin: 0 0 12px; }
.mpf-qmod-item header { display: flex; flex-wrap: wrap; gap: 6px 14px; color: #50575e; font-size: 13px; margin-bottom: 8px; }
.mpf-qmod-item textarea { width: 100%; min-height: 110px; }
.mpf-qmod-item .mpf-qmod-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.mpf-qmod-q { white-space: pre-wrap; margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.mpf-qmod-done { color: #00712e; font-weight: 600; }
