@font-face {
    font-family: 'Minefite Inter';
    src: url('../fonts/inter-cyrillic.woff2') format('woff2');
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
    font-family: 'Minefite Inter';
    src: url('../fonts/inter-latin.woff2') format('woff2');
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+FEFF,U+FFFD;
}

html.white_theme {
    color-scheme: light;
    --admin-ink: #211f1b;
    --admin-muted: #655d51;
    --admin-border: #ded9cf;
    --admin-panel: #fff;
    --admin-canvas: #f4f3f0;
    --admin-raised: #f7f5ef;
    --admin-dark: #292722;
    --admin-button-accent: #be8b32;
    --admin-gold-light: #f7ecd1;
    --admin-focus: #91671a;
    --admin-green: #25633e;
    --admin-red: #a52623;
    --body-bg: var(--admin-canvas);
    --white-black: var(--admin-panel);
    --white-black2: var(--admin-ink);
    --header-text: var(--admin-ink);
    --header-name: var(--admin-muted);
    --header-desc: var(--admin-muted);
    --section-name: var(--admin-ink);
    --section-desc: var(--admin-muted);
    --block-bg: var(--admin-panel);
    --block-border: var(--admin-border);
    --block-hr: var(--admin-border);
    --block-title: var(--admin-ink);
    --block-title-main: var(--admin-ink);
    --block-desc: var(--admin-muted);
    --block-add-color: var(--admin-muted);
    --block-skin: var(--admin-raised);
    --input-color: var(--admin-ink);
    --input-border: var(--admin-border);
    --input-placeholder: var(--admin-muted);
    --user-select: var(--admin-raised);
    --user-select-hover: #f3e7c9;
    --user-select-active: var(--admin-gold-light);
    --user-select-color: var(--admin-ink);
    --user-select-color-hover: var(--admin-ink);
    --user-money-bg: var(--admin-gold-light);
    --user-money-balance: var(--admin-ink);
    --user-data-name: var(--admin-muted);
    --user-history-text: var(--admin-muted);
    --back-new: var(--admin-muted);
}

html.white_theme, html.white_theme body {
    font-family: 'Minefite Inter', system-ui, sans-serif;
    color: var(--admin-ink);
}
html.white_theme body, html.white_theme body * {
    font-family: 'Minefite Inter', system-ui, sans-serif !important;
}

body :is(button, a, input, textarea, select):focus-visible {
    outline: 2px solid var(--admin-focus) !important;
    outline-offset: 3px;
}

body [hidden] { display: none !important; }

.mf-admin-shell {
    --admin-gap: clamp(14px, 2vw, 28px);
    width: min(1640px, 100%);
    min-height: 100dvh;
    margin-inline: auto;
    padding: var(--admin-gap);
    display: grid;
    grid-template-columns: 208px minmax(0, 1fr);
    gap: var(--admin-gap);
    align-items: start;
}

.mf-sidebar {
    position: sticky;
    top: var(--admin-gap);
    padding: 20px 12px 13px;
    border-radius: 18px;
    background-color: var(--admin-dark);
    color: #fdf9ee;
}

.mf-brand {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
    align-items: center;
    padding: 0 0 18px;
    margin-bottom: 7px;
    color: inherit;
    border-bottom: 1px solid #514a3e !important;
    font-size: 1.13rem;
    font-weight: 700;
}
.mf-brand img { width: 32px; max-width: calc(100% - 6px); height: auto; justify-self: end; margin-right: 6px; }
.mf-brand > span { text-align: center; }
.mf-brand:hover { color: #fff; }
.mf-brand small, .mf-account small { display: block; font-size: .75rem; font-weight: 500; }
.mf-brand small { color: #d6cdbb; }
.mf-sidebar .nav { display: grid; gap: 5px; padding: 0; }
.mf-sidebar .nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    height: auto;
    max-width: none;
    padding: 8px 10px;
    margin: 0;
    border-radius: 10px;
    color: #efe9dc;
    font-size: .9rem;
    background: transparent;
}
.mf-sidebar .nav__link::after { display: none; }
.mf-sidebar .nav__name { max-width: none; font-size: inherit; line-height: 1.2; color: inherit; }
.mf-sidebar .nav__link :is(svg, .nav__icon) { flex: none; width: 19px; height: 19px; font-size: 19px; color: inherit; stroke: currentColor; }
.mf-sidebar .nav__link:hover { color: #fff; background-color: #3f392f; }
.mf-sidebar .nav__link.active { background: #efd58e; color: #31250d; font-weight: 700; }
.mf-sidebar :focus-visible { outline-color: #efd58e !important; }
.mf-sidebar .nav__link.active:focus-visible { outline-offset: 2px; }

.mf-workspace { min-width: 0; }
.mf-topbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    min-height: 67px;
    padding: 9px 14px;
    border: 1px solid var(--admin-border);
    background: var(--admin-panel);
    border-radius: 16px;
}
.mf-mobile-brand { display: none; }
.mf-server-area { min-width: 0; flex-shrink: 0; }
.mf-server-tabs {
    display: flex;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    background: #eeebe4;
}
.mf-server-tabs a, .mf-server-current {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    min-height: 40px;
    border: 1px solid transparent !important;
    border-radius: 9px;
    color: var(--admin-muted);
    font-size: .88rem;
    line-height: 1.1;
    font-weight: 600;
}
.mf-server-tabs a:hover { color: var(--admin-ink); background: #f8f4e9; }
.mf-server-tabs a[aria-current] {
    color: #392b11;
    border-color: #dfc57c !important;
    background: #fffdf7;
    box-shadow: 0 1px 4px #302a1e14;
}
.mf-server-tabs img, .mf-server-current img {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}
.mf-server-current { padding: 0; color: var(--admin-ink); }
.mf-identity { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; min-width: 0; }
.mf-identity:empty { display: none; }
.mf-server-status, .mf-account { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mf-server-status .header__text, .mf-online { font-size: .78rem; line-height: 1.2; font-weight: 600; padding: 7px 9px; border-radius: 8px; }
.mf-server-status .header__text { background: #eaf4ed; color: var(--admin-green) !important; }
.mf-server-status .terribly { background: #fbefeb; color: var(--admin-red) !important; }
.mf-server-status .header__text img { width: 13px; height: 13px; }
.mf-online { display: inline-flex; gap: 5px; align-items: center; background: var(--admin-raised); color: var(--admin-muted); }
.mf-account > img { image-rendering: pixelated; flex: none; object-fit: cover; border-radius: 8px; background: var(--admin-raised); }
.mf-account-text { min-width: 0; overflow-wrap: anywhere; font-size: .88rem; line-height: 1.2; }
.mf-account small { color: var(--admin-muted); margin-top: 3px; }
.mf-logout {
    width: 40px;
    height: 40px;
    flex: none;
    display: grid;
    place-items: center;
    border: 1px solid var(--admin-border) !important;
    border-radius: 10px;
    color: var(--admin-muted);
}
.mf-logout:hover { color: var(--admin-red); border-color: #e1c1b8 !important; background: #fcf5f3; }

.mf-admin-shell #main.main { margin: var(--admin-gap) 0 0; gap: 17px; min-width: 0; }
.mf-admin-shell #main.main > *:first-child { margin-top: 0; }
.mf-admin-shell #main.main .holder { width: 100%; max-width: none; min-width: 0; padding-inline: 0; }
.mf-admin-shell #main.main .section__title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-block: 0;
    margin: 0;
}
.mf-admin-shell #main.main .section__name {
    font-size: clamp(1.45rem, 2.5vw, 2.05rem);
    font-weight: 700;
    letter-spacing: -.032em;
    line-height: 1.2;
    text-align: left;
}
.mf-admin-shell #main.main .section__name:empty, .mf-admin-shell #main.main .section__desc:empty { display: none; }
.mf-admin-shell #main.main .section__desc { text-align: left; justify-content: flex-start; color: var(--admin-muted); font-size: .86rem; }
.mf-admin-shell #main.main .mb-5 { margin-bottom: 12px !important; }
.mf-admin-shell .back__new { display: inline-flex; gap: 6px; align-items: center; line-height: 1.25; text-align: left; }
.mf-admin-shell .back__new svg { flex: none; }
.mf-loading, .mf-empty { padding: 18px; color: var(--admin-muted); text-align: center; }

.mf-admin-shell .block, .mf-admin-shell :is(.block-logs, .block-admins__body, .select-button, .block-button) {
    min-width: 0;
    max-width: 100%;
    border-radius: 15px;
    border: 1px solid var(--admin-border) !important;
    background-color: var(--admin-panel);
}
.mf-admin-shell .block { padding: clamp(13px, 1.45vw, 20px); gap: 14px; }
.mf-admin-shell .block__header { gap: 8px 12px; flex-wrap: wrap; }
.mf-admin-shell :is(.block__title, .block__name, .block__name-main) { font-weight: 650; font-size: clamp(1rem, 1.45vw, 1.25rem); line-height: 1.3; }
.mf-admin-shell .block__content { min-width: 0; }
.mf-admin-shell .block__desc { line-height: 1.45; }
.mf-admin-shell :is(#mainTypeSelect, .type_adminsbuttons) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)) !important;
    gap: 12px;
}
.mf-admin-shell .select-button {
    position: relative;
    width: 100%;
    min-height: 110px;
    padding: 17px 63px 17px 16px;
    text-align: left;
}
.mf-admin-shell .select-button:hover:not(:disabled) { border-color: #bea467 !important; }
.mf-admin-shell .select-button > h4 { font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.mf-admin-shell .select-button > p { width: auto; max-width: none; color: var(--admin-muted); font-size: .85rem; line-height: 1.4; padding: 0; }
.mf-admin-shell .select-button > svg {
    top: 17px;
    right: 13px;
    bottom: auto;
    width: 36px;
    height: 36px;
    padding: 5px;
    border-radius: 9px;
    background: var(--admin-gold-light);
}
.mf-admin-shell .select-button > button { margin-top: 8px; }
.mf-admin-shell #mainTypeLogs { display: flex !important; }
.mf-admin-shell .admin_main_sliders_full { display: block !important; width: 100% !important; height: clamp(150px, 24vw, 302px) !important; }
.mf-admin-shell .admin_main_sliders_full .swiper-wrapper { width: 100% !important; height: 100% !important; }

body :is(.mf-admin-shell, .auth) :is(.btn, .button__new, .btn-light),
body .swal2-popup :is(.swal2-confirm, .swal2-cancel) {
    min-height: 42px;
    padding: 8px 13px;
    border-radius: 10px;
    font-weight: 650;
    font-size: .875rem;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    box-shadow: none;
}
body :is(.mf-admin-shell, .auth) .btn,
body .swal2-popup .swal2-confirm,
.mf-admin-shell .skin-viewer__btn.active {
    color: var(--admin-ink) !important;
    background: var(--admin-panel) !important;
    border: 1px solid var(--admin-button-accent) !important;
}
body :is(.mf-admin-shell, .auth) .btn:not(:disabled):hover,
body .swal2-popup .swal2-confirm:not(:disabled):hover,
.mf-admin-shell .skin-viewer__btn.active:hover { background: #faf5e9 !important; }
body :is(.mf-admin-shell, .auth) .btn:not(:disabled):active,
body .swal2-popup .swal2-confirm:not(:disabled):active { background: #f5ead4 !important; }
.mf-admin-shell .skin-viewer__btn:not(.active) { border: 1px solid transparent !important; }
.mf-admin-shell .admin-btn::after { display: none; }
.mf-admin-shell .admin-btn { border: 1px solid transparent !important; }
.mf-admin-shell .admin-btn:hover { background: #faf5e9; border-color: var(--admin-button-accent) !important; }
.mf-admin-shell .admin-btn:hover svg { stroke: #76591f; }
body :is(.mf-admin-shell, .auth) .btn::after, .mf-admin-shell .button__new::after { display: none; }
.mf-admin-shell .btn svg path, .auth .btn svg path { stroke: currentColor; }
body .mf-admin-shell :is(.button__new:not(.red), .btn-light),
body .swal2-popup .swal2-cancel {
    background: var(--admin-panel) !important;
    color: var(--admin-ink) !important;
    border: 1px solid var(--admin-border) !important;
}
body .mf-admin-shell :is(.button__new:not(.red), .btn-light):hover,
body .swal2-popup .swal2-cancel:hover { background: var(--admin-raised) !important; }
.mf-admin-shell .button__new.red { color: var(--admin-red); background: #fcf0ed; border: 1px solid #efcec7 !important; }
.mf-admin-shell .button__new.red:hover { background: #f8dad5; color: var(--admin-red); }
.mf-admin-shell .user-select { border-radius: 10px; min-height: 42px; }
.mf-admin-shell #logsButtons { gap: 8px !important; }
.mf-admin-shell #logsButtons .user-select { padding: 8px 12px !important; }

body :is(.mf-admin-shell, .auth, .swal2-popup) :is(input:not([type=checkbox],[type=radio],[type=range],[type=hidden],[type=submit],[type=button]), select, textarea) {
    min-width: 0;
    max-width: 100%;
    min-height: 43px;
    color: var(--admin-ink);
    background-color: var(--admin-panel);
    border: 1px solid var(--admin-border) !important;
    border-radius: 10px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: .95rem;
}
body :is(.mf-admin-shell, .auth, .swal2-popup) :is(input, textarea)::placeholder { opacity: 1; color: var(--admin-muted); }
body .swal2-popup { width: min(34rem, 100%); border-radius: 16px; color: var(--admin-ink); }
.mf-dialog-form { display: grid; gap: 8px; text-align: left; }
.mf-dialog-form input + label { margin-top: 6px; }

.mf-admin-shell .block-logs, .mf-admin-shell .block-admins__body {
    padding: 0;
    overflow: auto;
    scrollbar-width: thin;
    min-height: 0;
}
.mf-admin-shell :is(.block-logs, .block-admins__body) > .overflow-scroll { overflow: visible !important; }
.mf-admin-shell :is(.block-logs__item, .block-admins__item) { padding: 10px 13px; border-bottom: 1px solid var(--admin-border); }
.mf-admin-shell :is(.block-logs__item, .block-admins__item):nth-child(even) { background: #faf9f5; }
.mf-admin-shell :is(.block-logs__item, .block-admins__item):hover { background: #f5eedf; }
.mf-admin-shell .block-admins__head { background: var(--admin-raised); }
.mf-admin-shell .block-admins__head-text { color: var(--admin-muted); font-weight: 650; }
.mf-admin-shell .block-logs__item-description { overflow-wrap: anywhere; }

.mf-bloggers { display: grid; gap: 15px; }
.mf-admin-shell #main.main .mf-bloggers-title { justify-content: flex-start; }
.mf-bloggers-title .section__desc { margin-top: 5px; }
.mf-blogger-metrics { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mf-blogger-metrics div {
    border: 1px solid var(--admin-border);
    border-top: 3px solid #ddc485;
    border-radius: 13px;
    background: var(--admin-panel);
    padding: clamp(9px, 1.5vw, 17px);
}
.mf-blogger-metrics dt { font-weight: 600; font-size: clamp(.68rem, 1.2vw, .86rem); color: var(--admin-muted); }
.mf-blogger-metrics dd { margin: 2px 0 0; font-weight: 700; font-size: clamp(1.15rem, 3vw, 1.7rem); font-variant-numeric: tabular-nums; }
.mf-blogger-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.mf-blogger-toolbar h2 { margin-right: auto; display: flex; flex-direction: row; align-items: center; gap: 7px; }
.mf-blogger-toolbar h2 span {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    background: var(--admin-raised);
    color: var(--admin-muted);
    font-size: .83rem;
}
.mf-blogger-toolbar input { width: min(100%, 280px); }
.mf-blogger-table { width: 100%; border: 1px solid var(--admin-border); border-radius: 12px; overflow: hidden; }
.mf-blogger-table table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.mf-blogger-table :is(th, td) { padding: 10px 12px; vertical-align: middle; overflow-wrap: anywhere; }
.mf-blogger-table thead { background: var(--admin-raised); color: var(--admin-muted); }
.mf-blogger-table tbody tr { border-top: 1px solid var(--admin-border); }
.mf-blogger-table tbody tr:hover { background: #fbf8ef; }
.mf-blogger-table tr > :nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.mf-copy-link {
    min-height: 35px;
    padding: 5px 8px;
    background: var(--admin-gold-light);
    color: #684e17;
    border-radius: 8px;
    font-weight: 600;
}
.mf-copy-link:hover { background: #f3dfad; }
.mf-copy-link .icon { display: inline-flex; }

.mf-account-record { display: grid; gap: 13px; min-width: 0; grid-column: 1 / -1; }
.mf-admin-shell .mf-account-actions { display: flex; flex-flow: row wrap; justify-content: space-between; align-items: center; }
.mf-account-meta { color: var(--admin-muted); font-size: .86rem; }
.mf-account-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mf-account-buttons:empty { display: none; }
.mf-creative { display: flex; gap: 8px; padding-left: 10px; align-items: center; border-left: 1px solid var(--admin-border); }
.mf-creative strong, .mf-creative small { display: block; }
.mf-creative small { font-size: .75rem; color: var(--admin-muted); }
.mf-punishments, .mf-account-details, .mf-account-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    align-items: start;
}
.mf-punishments { align-items: stretch; }
.mf-account-details { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
.mf-punishment { --punishment-accent: #8e312b; --punishment-tone: #fbefeb; }
.mf-punishment[data-kind="mutes"] { --punishment-accent: #674886; --punishment-tone: #f4edf8; }
.mf-punishment[data-kind="warnings"] { --punishment-accent: #80591c; --punishment-tone: #f8eccc; }
.mf-punishment .block__title { display: flex; flex-direction: row; gap: 8px; align-items: center; }
.mf-punishment-icon {
    display: grid; place-items: center; width: 28px; height: 28px; flex: none;
    background: var(--punishment-tone); color: var(--punishment-accent); border-radius: 8px;
}
.mf-punishment-status { font-size: .83rem; color: var(--admin-green); font-weight: 650; }
.mf-punishment-status.is-active { color: var(--punishment-accent); }
.mf-warning-count { display: grid; gap: 5px; color: var(--punishment-accent); font-size: .84rem; }
.mf-warning-count strong { font-size: 1.1rem; }
.mf-warning-segments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.mf-warning-segments i { display: block; height: 6px; border-radius: 3px; background: #eeeae0; }
.mf-warning-segments i.is-filled { background: #b98329; }
.mf-punishment-details { padding: 0; margin: 0; display: grid; gap: 6px; }
.mf-punishment[data-kind="warnings"] .mf-punishment-details { counter-reset: warning; }
.mf-punishment[data-kind="warnings"] .mf-punishment-details li { position: relative; padding-left: 38px; }
.mf-punishment[data-kind="warnings"] .mf-punishment-details li::before {
    counter-increment: warning; content: counter(warning);
    display: grid; place-items: center; position: absolute; left: 8px; top: 8px;
    width: 22px; height: 22px; color: var(--punishment-accent); background: var(--punishment-tone);
    border-radius: 6px; font-size: .75rem; font-weight: 700;
}
.mf-punishment-details li { padding: 7px 9px; border-radius: 8px; background: var(--admin-raised); overflow-wrap: anywhere; }
.mf-punishment-details :is(strong, small) { display: block; font-size: .81rem; }
.mf-punishment-details small { color: var(--admin-muted); margin-top: 2px; }
.mf-account-facts { margin: 0; }
.mf-account-facts div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; padding: 7px 0; border-top: 1px solid var(--admin-border); }
.mf-account-facts :is(dt, dd) { margin: 0; overflow-wrap: anywhere; font-size: .87rem; font-weight: 600; }
.mf-account-facts dt { color: var(--admin-muted); font-weight: 500; }
.mf-account-columns > div { min-width: 0; gap: 13px; }
.mf-account-columns .user-data__info { flex-wrap: wrap; }
.mf-account-columns .skin { grid-template-columns: 1fr !important; }
.mf-admin-shell #userinfo_searchuser { gap: 8px; }
.mf-duration { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mf-duration-options { display: flex; flex-wrap: wrap; gap: 5px; }
.mf-duration-options button { min-height: 36px; padding: 5px 9px; border-radius: 8px; color: var(--admin-muted); background: var(--admin-raised); font-size: .8rem; }
.mf-duration-options button:hover { background: var(--admin-gold-light); color: var(--admin-ink); }

.auth {
    width: 100%;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: clamp(12px, 4vw, 42px);
    background: radial-gradient(ellipse at 52% 32%, #efeadc, var(--admin-canvas) 64%);
}
.mf-auth-card {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
    width: min(850px, 100%);
    min-height: 488px;
    overflow: hidden;
    border: 1px solid var(--admin-border);
    border-radius: 22px;
    background: var(--admin-panel);
    box-shadow: 0 18px 60px #402e1a16;
}
.mf-auth-art {
    background: linear-gradient(170deg, #271b1000 52%, #221b19a0), url('../images/admin-login.webp') 52% center / cover;
}
.auth .auth__container {
    min-width: 0;
    min-height: 0;
    width: 100%;
    max-width: none;
    gap: 25px;
    padding: clamp(19px, 4.5vw, 50px);
    justify-content: center;
}
.auth .auth__logo { justify-content: flex-start; gap: 10px; }
.auth .auth__logo-text { display: grid; }
.auth .auth__logo-img { background: var(--admin-dark); display: grid; place-items: center; padding: 8px; width: 44px; height: 44px; }
.auth .auth__logo-img img { width: 23px; height: 26px; object-fit: contain; }
.auth .auth__logo-title { color: var(--admin-ink); font-size: 1.12rem; line-height: 1.15; font-weight: 700; }
.auth .auth__logo-desc { color: var(--admin-muted); font-size: .83rem; line-height: 1.2; margin-top: 3px; }
.auth .auth__title { gap: 7px; }
.auth .auth__title-name { color: var(--admin-ink); font-size: clamp(1.6rem, 3vw, 2rem); text-transform: none; font-weight: 700; letter-spacing: -.04em; }
.auth .auth__title-step { color: #614816; background: var(--admin-gold-light); font-size: .8rem; border-radius: 999px; padding: 4px 8px; white-space: nowrap; }
.auth .auth__title-desc { font-size: .9rem; text-align: left; color: var(--admin-muted); }
.auth .auth__body { gap: 18px; }
.auth .auth__content { gap: 12px; }
.auth .auth__input { gap: 5px; }
.auth .auth__input label { display: block; color: var(--admin-ink); font-size: .88rem; font-weight: 600; }
.auth .auth__input input { width: 100%; color: var(--admin-ink); }
.auth .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin-top: 4px; min-height: 45px; }
.auth .btn:disabled { opacity: .6; }
.mf-auth-back { color: var(--admin-muted); font-size: .83rem; justify-self: center; text-align: center; }
.mf-auth-back:hover { color: var(--admin-ink); }

@media (max-width: 1050px) {
    .mf-admin-shell { grid-template-columns: 172px minmax(0, 1fr); }
    .mf-account-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 840px) {
    .mf-admin-shell { display: block; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .mf-sidebar {
        position: fixed;
        z-index: 10;
        inset: auto 0 0;
        padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
        border-radius: 14px 14px 0 0;
        box-shadow: 0 -4px 18px #2c271e25;
    }
    .mf-sidebar .mf-brand { display: none; }
    .mf-sidebar .nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
    .mf-sidebar .nav__link { min-height: 48px; justify-content: center; flex-direction: column; text-align: center; gap: 4px; padding: 4px 1px; }
    .mf-sidebar .nav__name { font-size: clamp(.58rem, 2.4vw, .78rem); overflow-wrap: anywhere; }
    .mf-sidebar .nav__link :is(svg, .nav__icon) { width: 17px; height: 17px; font-size: 17px; }
    .mf-mobile-brand { display: grid; place-items: center; width: 34px; min-height: 42px; }
    .mf-admin-shell :is(.btn, .button__new, .btn-light, .user-select, .mf-copy-link) { min-height: 44px; }
    .mf-admin-shell .block-logs__item { flex-wrap: wrap; }
    .mf-admin-shell .type_sliders .slideblock .slide__content .button__new { display: inline-flex !important; }
    .mf-account-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .mf-topbar { padding: 8px; gap: 7px; }
    .mf-server-tabs a { min-height: 44px; padding-inline: 8px; }
    .mf-mobile-brand { margin-left: 3px; margin-right: 2px; }
    .mf-identity { width: 100%; justify-content: space-between; gap: 5px; border-top: 1px solid var(--admin-border); padding-top: 7px; }
    .mf-server-status, .mf-account { gap: 4px; }
    .mf-server-status .header__text, .mf-online { padding-inline: 5px; font-size: .72rem; }
    .mf-account > img { width: 26px; height: 26px; }
    .mf-account-text { font-size: .78rem; }
    .mf-account small { font-size: .65rem; max-width: 92px; }
    .mf-logout { width: 38px; height: 44px; }
    .mf-blogger-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
    .mf-blogger-toolbar input { grid-column: 1 / -1; grid-row: 2; width: 100%; }
    .mf-blogger-table { border: 0; overflow: visible; }
    .mf-blogger-table :is(table, tbody) { display: block; }
    .mf-blogger-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
    .mf-blogger-table tbody tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border: 1px solid var(--admin-border);
        border-radius: 10px;
        align-items: center;
        margin-bottom: 7px;
    }
    .mf-blogger-table tbody tr:last-child { margin-bottom: 0; }
    .mf-blogger-table tbody tr > th { grid-column: span 2; }
    .mf-blogger-table td { padding: 5px 7px; }
    .mf-blogger-table td:nth-child(2) { text-align: right; }
    .mf-blogger-table tr > td:nth-child(n+3) { background: var(--admin-raised); text-align: center; padding-block: 6px; }
    .mf-blogger-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        color: var(--admin-muted);
        font-size: .66rem;
        white-space: nowrap;
    }
    .mf-auth-card { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 17px; }
    .mf-auth-art { height: clamp(102px, 36vw, 170px); background-position: center 50%; }
    .auth .auth__container { gap: 18px; }
    body :is(.mf-admin-shell, .auth, .swal2-popup) :is(input:not([type=checkbox],[type=radio],[type=range]), select, textarea) { font-size: 16px; }
    .mf-admin-shell #logsButtons { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)); }
    .mf-admin-shell #logsButtons .user-select { width: 100%; min-width: 0; justify-content: flex-start; }
    .mf-admin-shell #logsButtons .user-select svg { width: 18px; height: 18px; flex: none; }
    .mf-admin-shell #logsButtons .user-select p { white-space: normal; font-size: .77rem; }
    .mf-punishments, .mf-account-details, .mf-account-columns { grid-template-columns: minmax(0, 1fr); }
    .mf-account-actions > .mf-account-buttons { width: 100%; }
    .mf-creative { border-left: 0; border-top: 1px solid var(--admin-border); padding: 8px 0 0; width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
    .mf-admin-shell *, .auth * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Server emblems and interaction feedback */
html.white_theme body, html.white_theme body * {
    font-family: "Segoe UI", "Minefite Inter", system-ui, sans-serif !important;
}
.mf-admin-shell, .auth { line-height: 1.45; }
.mf-admin-shell #main.main .section__name, .auth .auth__title-name {
    letter-spacing: -.015em;
}
.mf-admin-shell :is(.block__title, .block__name, .block__name-main) { font-weight: 600; }
.mf-admin-shell :is(button, input, select, textarea, a) {
    transition-property: background-color, border-color, color, box-shadow;
    transition-duration: 140ms;
}
.mf-server-tabs img, .mf-server-current img {
    object-fit: contain;
    border-radius: 0;
}
.mf-request-status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    overflow-wrap: anywhere;
    padding: 11px 14px;
    border: 1px solid #dfc683;
    border-radius: 12px;
    background: #fffaf0;
    color: #4a3916;
    box-shadow: 0 5px 22px #35271924;
    font-size: .83rem;
    line-height: 1.35;
    font-weight: 600;
    pointer-events: none;
}
.mf-request-spinner {
    width: 18px;
    height: 18px;
    flex: none;
    border: 2px solid #ded0a6;
    border-top-color: #866018;
    border-radius: 50%;
    animation: mf-request-spin .75s linear infinite;
}
@keyframes mf-request-spin { to { transform: rotate(360deg); } }
.mf-admin-shell [data-mf-busy] { cursor: progress !important; }
.mf-admin-shell button[data-mf-busy],
body .mf-admin-shell .btn[data-mf-busy] { border-color: var(--admin-button-accent) !important; background-color: #faf5e9 !important; }

.mf-coordinate-form, .mf-transfer-form {
    display: grid;
    gap: 8px;
    min-width: 0;
}
.mf-coordinate-grid, .mf-transfer-options {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
}
.mf-coordinate-grid label {
    position: relative;
    min-width: 0;
}
.mf-coordinate-grid span {
    position: absolute;
    inset: 0 auto 0 9px;
    display: flex;
    align-items: center;
    color: #6e5b2c;
    font-size: .82rem;
    font-weight: 700;
    pointer-events: none;
}
body .mf-admin-shell .mf-coordinate-grid input {
    width: 100%;
    padding-left: 27px;
    font-variant-numeric: tabular-nums;
}
.mf-transfer-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mf-transfer-form legend { font-size: .9rem; color: var(--admin-muted); margin-bottom: 5px; }
.mf-transfer-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 46px;
    min-width: 0;
    padding: 6px;
    border: 1px solid var(--admin-border);
    background: var(--admin-panel);
    border-radius: 9px;
    cursor: pointer;
}
.mf-transfer-options label:has(:checked) { border-color: #c4a360; background: #fff9ea; }
.mf-transfer-options label:has(:disabled) { cursor: default; background: var(--admin-raised); }
.mf-transfer-options input { accent-color: #906917; flex: none; }
.mf-transfer-options img { width: 21px; height: 21px; object-fit: contain; flex: none; }
.mf-transfer-options span { font-size: .82rem; color: var(--admin-ink); overflow-wrap: anywhere; }
.mf-transfer-options small { display: block; font-size: .67rem; color: var(--admin-muted); }

.mf-nick-history { list-style: none; display: grid; gap: 7px; margin: 0; padding: 0; }
.mf-nick-history li { border-left: 2px solid #d6bd7b; padding: 4px 0 4px 9px; }
.mf-nick-change { display: flex; flex-wrap: wrap; gap: 0 7px; overflow-wrap: anywhere; font-size: .9rem; }
.mf-nick-history time, .mf-nick-note { font-size: .81rem; color: var(--admin-muted); }
.mf-nick-matches { display: flex; flex-wrap: wrap; gap: 6px; }
.mf-nick-matches .button__new { min-width: 0; overflow-wrap: anywhere; }
.mf-empty-subsection { color: var(--admin-muted); font-size: .9rem; }
.mf-related-nick { padding: 6px 9px; align-self: center; color: var(--admin-muted); background: var(--admin-raised); border-radius: 7px; font-size: .8rem; }
.mf-admin-shell .mf-account-disclosure { display: block; padding: 0; }
.mf-account-disclosure > summary {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    padding: 9px 13px;
    color: var(--admin-ink);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    border-radius: 14px;
}
.mf-account-disclosure > summary::-webkit-details-marker { display: none; }
.mf-account-disclosure > summary:hover { background: #fbf8ef; }
.mf-account-disclosure > summary:focus-visible { outline: 2px solid var(--admin-focus); outline-offset: 2px; }
:is(.mf-disclosure-icon, .mf-card-icon) {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    flex: none;
    border-radius: 8px;
    background: var(--admin-gold-light);
    color: #77591c;
}
.mf-account-columns .block__name-main:has(.mf-card-icon) {
    display: flex;
    align-items: center;
    gap: 9px;
    line-height: 1.25;
}
.mf-disclosure-chevron {
    width: 8px;
    height: 8px;
    margin: -4px 3px 0 auto;
    flex: none;
    border: solid var(--admin-muted);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 160ms ease, margin-top 160ms ease;
}
.mf-account-disclosure[open] .mf-disclosure-chevron { transform: rotate(225deg); margin-top: 4px; }
.mf-disclosure-body { display: grid; gap: 8px; padding: 0 13px 13px; }
.mf-account-disclosure[open] .mf-disclosure-body { animation: mf-disclose .18s ease-out; }
@keyframes mf-disclose { from { opacity: .35; transform: translateY(-4px); } }

@media (max-width: 840px) {
    .mf-request-status {
        position: fixed;
        right: 12px;
        bottom: calc(69px + env(safe-area-inset-bottom));
        max-width: calc(100% - 24px);
        margin: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .mf-request-spinner, .mf-account-disclosure[open] .mf-disclosure-body { animation: none; }
}

.mf-player-summary {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}
.mf-player-head {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 9px;
    background: var(--admin-raised);
    object-fit: cover;
    image-rendering: pixelated;
}
.mf-player-identity { min-width: 0; overflow-wrap: anywhere; }
.mf-player-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 4px;
}
.mf-player-summary .user-info__online {
    display: inline-flex;
    gap: 5px;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--admin-raised);
    color: var(--admin-muted) !important;
    font-size: .75rem;
    line-height: 1.2;
    font-weight: 600;
}
.mf-player-summary .user-info__online::before {
    content: '';
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.mf-player-summary .user-info__online.great { background: #eaf4ed; color: var(--admin-green) !important; }
.mf-player-summary .user-info__online.terribly { background: #f8eee9; color: var(--admin-red) !important; }
.mf-player-group { color: var(--admin-muted); font-size: .8rem; }
.mf-player-group:empty { display: none; }
.mf-spawn-kick {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 8px;
}
.mf-spawn-kick > button { min-width: 0; height: 100%; }
