:root {
    color-scheme: light;
    --bg: #f4f2ed;
    --surface: #ffffff;
    --surface-soft: #f8f7f2;
    --text: #182016;
    --muted: #687264;
    --line: #ddd8cb;
    --accent: #607c37;
    --accent-dark: #425929;
    --danger: #b42318;
    --danger-soft: #fff1f0;
    --success-soft: #eef8e8;
    --success: #47692c;
    --shadow: 0 16px 50px rgba(35, 39, 29, .10);
    --radius: 22px;
    --sidebar: 280px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% 10%, rgba(96, 124, 55, .14), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(150, 125, 72, .12), transparent 30%),
        var(--bg);
    color: var(--text);
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 18px;
    background: rgba(255, 255, 255, .72);
    border-right: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand, .mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.brand small { display: block; color: var(--muted); margin-top: 2px; }

.nav-list { display: grid; gap: 8px; margin-top: 28px; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--text);
    font-weight: 650;
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    background: var(--surface);
    border-color: var(--line);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(35,39,29,.06);
}

.nav-form { margin: 0; }
.nav-button { text-align: left; }

.mobile-topbar { display: none; }
.mobile-drawer { display: none; }

.content {
    width: min(1180px, 100%);
    padding: 34px;
}

.hero-card, .card, .stat-card {
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(221, 216, 203, .9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 22px;
    padding: clamp(24px, 4vw, 42px);
    align-items: stretch;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 66px);
    line-height: 1;
    letter-spacing: -.05em;
}

h2 { margin: 0 0 12px; font-size: 24px; letter-spacing: -.02em; }

.lead {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.muted { color: var(--muted); line-height: 1.6; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-actions--home {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    align-items: start;
    gap: 12px;
}

.hero-rules-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-height: 108px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(88, 117, 54, .28);
    background: linear-gradient(135deg, #6f8f37 0%, #587536 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(88, 117, 54, .18);
}

.hero-rules-card:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.hero-rules-card__icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.hero-rules-card__icon svg { width: 30px; height: 30px; }

.hero-rules-card__content {
    display: grid;
    gap: 4px;
}

.hero-rules-card__content strong {
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.hero-rules-card__content small {
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    line-height: 1.45;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-weight: 750;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-small { min-height: 36px; padding: 8px 12px; font-size: 14px; }
.btn.full { width: 100%; }

.vk-card {
    display: grid;
    align-content: center;
    gap: 8px;
    /* min-height: 180px; */
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, #2787f5, #125fb4);
    color: #fff;
    text-decoration: none;
}

.vk-card:hover { text-decoration: none; }
.vk-logo { font-size: 38px; font-weight: 900; letter-spacing: -.06em; }
.vk-card small { opacity: .84; }

.grid { display: grid; gap: 18px; margin-top: 18px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { padding: 24px; }
.card p { color: var(--muted); line-height: 1.65; }
.news-placeholder { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 20px; align-items: center; margin-top: 18px; }
.placeholder-lines { display: grid; gap: 12px; }
.placeholder-lines span { height: 16px; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--line); }
.placeholder-lines span:nth-child(2) { width: 76%; }
.placeholder-lines span:nth-child(3) { width: 52%; }

.page-head {
    margin-bottom: 18px;
}
.page-head p { color: var(--muted); max-width: 760px; line-height: 1.65; }
.page-head.with-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.page-head.narrow { max-width: 760px; }

.auth-page { min-height: calc(100vh - 68px); display: grid; place-items: center; }
.auth-card { width: min(460px, 100%); }

.form-stack, .form-grid { display: grid; gap: 16px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .wide { grid-column: 1 / -1; }

label { display: grid; gap: 7px; font-weight: 700; }
label span { color: var(--text); }
input, select, textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: auto; min-height: auto; }
.form-actions { display: flex; gap: 10px; justify-content: flex-start; }
.form-note { color: var(--muted); }

.alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
}
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-danger { background: var(--danger-soft); color: var(--danger); }
.alert ul { margin-bottom: 0; }

.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.profile-header { display: flex; gap: 18px; align-items: center; }
.avatar-xl {
    width: 122px;
    height: 122px;
    flex: 0 0 auto;
    border-radius: 28px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    overflow: hidden;
    font-size: 34px;
    font-weight: 900;
    color: var(--accent-dark);
}
.avatar-xl img { width: 100%; height: 100%; object-fit: cover; }

.info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.info-list.small { grid-template-columns: 1fr; }
.info-list div { padding: 14px; border-radius: 16px; background: var(--surface-soft); border: 1px solid var(--line); }
.info-list dt { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.info-list dd { margin: 0; font-weight: 750; }
.side-stack { display: grid; gap: 18px; }
.compact-card h2 { font-size: 20px; }
.team-mini { display: flex; align-items: center; gap: 12px; }
.team-mini img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.qr-placeholder { width: 118px; height: 118px; border-radius: 18px; display: grid; place-items: center; background: #fff; border: 1px dashed var(--line); color: var(--muted); font-weight: 900; }
.badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-weight: 800; font-size: 13px; }
.badge-soft { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.ban-banner { display: grid; gap: 5px; margin-bottom: 18px; padding: 16px; border-radius: 18px; background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(180, 35, 24, .25); }

.stat-card { padding: 22px; }
.stat-card span { display: block; font-size: 36px; font-weight: 900; letter-spacing: -.05em; }
.stat-card small { color: var(--muted); font-weight: 750; }
.action-card { color: var(--text); text-decoration: none; }
.action-card:hover { text-decoration: none; transform: translateY(-2px); }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-bottom: 16px; }
.table-card { padding: 0; overflow: hidden; }
.responsive-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--surface-soft); color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
td small { color: var(--muted); }
.pagination { padding: 16px; }
.danger-section { margin-top: 18px; }

@media (max-width: 980px) {
    .app-shell { display: block; }
    .sidebar { display: none; }
    .mobile-topbar {
        position: sticky;
        top: 0;
        z-index: 20;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 16px;
        background: rgba(255,255,255,.88);
        border-bottom: 1px solid var(--line);
        backdrop-filter: blur(18px);
    }
    .mobile-brand { font-weight: 900; }
    .menu-button, .menu-close {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        border: 1px solid var(--line);
        background: #fff;
        font-size: 24px;
    }
    .mobile-drawer {
        position: fixed;
        inset: 0;
        z-index: 50;
        display: none;
        background: rgba(0,0,0,.35);
    }
    .mobile-drawer.open { display: block; }
    .mobile-drawer__panel {
        margin-left: auto;
        width: min(360px, calc(100vw - 36px));
        min-height: 100%;
        padding: 18px;
        background: var(--surface);
        box-shadow: -20px 0 60px rgba(0,0,0,.22);
    }
    .mobile-drawer__head { display: flex; justify-content: space-between; align-items: center; }
    .content { padding: 20px 16px 34px; }
    .hero-card, .profile-grid, .news-placeholder { grid-template-columns: 1fr; }
    .two-columns, .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .hero-actions--home {
        grid-template-columns: 1fr;
    }

    .hero-rules-card {
        min-height: 116px;
        grid-template-columns: 52px minmax(0, 1fr);
        padding: 18px;
    }

    .hero-rules-card__icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .hero-rules-card__content strong {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .hero-card, .card { padding: 20px; }
    .form-grid, .info-list { grid-template-columns: 1fr; }
    .page-head.with-actions { align-items: flex-start; flex-direction: column; }
    .search-row { grid-template-columns: 1fr; }
    .profile-header { align-items: flex-start; }
    .avatar-xl { width: 104px; height: 104px; }
}

.field-shell {
    display: grid;
    gap: 7px;
    font-weight: 700;
    position: relative;
}

.field-label { color: var(--text); }

.ajax-select { position: relative; }

.ajax-select__button {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    text-align: left;
}

.ajax-select__popover {
    position: absolute;
    z-index: 30;
    inset-inline: 0;
    top: calc(100% + 8px);
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.ajax-select__search { border-radius: 12px; }

.ajax-select__hint {
    margin: 8px 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.ajax-select__options {
    display: grid;
    gap: 6px;
    max-height: 270px;
    overflow: auto;
    padding-right: 2px;
}

.ajax-select__option {
    width: 100%;
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.ajax-select__option:hover,
.ajax-select__option.active {
    border-color: var(--accent);
    background: var(--success-soft);
}

.ajax-select__option small {
    color: var(--muted);
    font-weight: 600;
}

.ajax-select__empty {
    padding: 12px;
    color: var(--muted);
    font-weight: 650;
}

.readonly-field {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-soft);
}

.readonly-field span,
.readonly-field small { color: var(--muted); }

.danger-toolbar {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.danger-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.danger-toolbar__actions form { margin: 0; }

body.modal-open { overflow: hidden; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    padding: 22px;
    overflow-y: auto;
}

.modal.open { display: grid; place-items: center; }

.modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(24, 32, 22, .52);
    backdrop-filter: blur(8px);
}

.modal__panel {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: calc(100vh - 44px);
    overflow: auto;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 24px 90px rgba(0, 0, 0, .26);
}

.modal__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 16px;
}

.modal__close {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.check-list {
    display: grid;
    gap: 8px;
    max-height: 320px;
    overflow: auto;
    padding-right: 4px;
}

.check-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
}

.check-card input { width: auto; min-height: auto; margin-top: 4px; }
.check-card span { display: grid; gap: 2px; }
.check-card small { color: var(--muted); font-weight: 600; }
.checkbox-master { margin-bottom: 4px; }

.qr-box {
    width: 142px;
    min-height: 142px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    border: 1px dashed var(--line);
    background: #fff;
    padding: 10px;
}

.qr-box img {
    width: 120px;
    height: 120px;
    display: block;
}

@media (max-width: 760px) {
    .danger-toolbar { align-items: stretch; flex-direction: column; }
    .danger-toolbar__actions { justify-content: flex-start; }
    .modal { padding: 12px; align-items: start; }
    .modal.open { place-items: start center; }
    .modal__panel { max-height: calc(100vh - 24px); padding: 18px; }
}

/* Content pages and visual editor */
.content-page {
    color: var(--text);
    font-size: 17px;
    line-height: 1.75;
}

.content-page h1,
.content-page h2,
.content-page h3,
.content-page h4 {
    margin: 1.4em 0 .55em;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.content-page h1 { font-size: clamp(34px, 5vw, 56px); }
.content-page h2 { font-size: clamp(26px, 3vw, 38px); }
.content-page h3 { font-size: 24px; }
.content-page h4 { font-size: 20px; }
.content-page p { margin: 0 0 1em; }
.content-page ul,
.content-page ol { padding-left: 1.35em; margin: 0 0 1em; }
.content-page li { margin: .25em 0; }

.content-page blockquote {
    margin: 1.2em 0;
    padding: 16px 20px;
    border-left: 5px solid var(--accent);
    border-radius: 16px;
    background: var(--surface-soft);
    color: var(--muted);
}

.content-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    overflow: hidden;
    border-radius: 16px;
}

.content-page th,
.content-page td {
    border: 1px solid var(--line);
    padding: 12px 14px;
    vertical-align: top;
}

.content-page th {
    background: rgba(88, 117, 54, .12);
    text-align: left;
}

.content-page img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    margin: 14px 0;
    box-shadow: 0 16px 42px rgba(27, 32, 23, .13);
}

.content-page a {
    color: var(--accent-strong);
    font-weight: 800;
}

.editor-form {
    display: grid;
    gap: 22px;
}

.rich-editor {
    display: grid;
    gap: 12px;
}

.rich-editor__toolbar {
    position: sticky;
    top: 12px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(250, 249, 244, .94);
    box-shadow: 0 16px 32px rgba(27, 32, 23, .08);
    backdrop-filter: blur(10px);
}

.rich-editor__toolbar button,
.rich-editor__toolbar select {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    padding: 0 12px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.rich-editor__toolbar select {
    min-width: 170px;
}

.rich-editor__toolbar button:hover,
.rich-editor__toolbar select:hover {
    border-color: rgba(88, 117, 54, .38);
}

.rich-editor__canvas {
    min-height: 560px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    outline: none;
    overflow: auto;
}

.rich-editor__canvas:focus {
    border-color: rgba(88, 117, 54, .42);
    box-shadow: 0 0 0 4px rgba(88, 117, 54, .08);
}

.sticky-actions {
    position: sticky;
    bottom: 14px;
    z-index: 4;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(250, 249, 244, .94);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 32px rgba(27, 32, 23, .08);
}

@media (max-width: 760px) {
    .rich-editor__toolbar {
        top: 8px;
        max-height: 44vh;
        overflow: auto;
    }

    .rich-editor__toolbar button,
    .rich-editor__toolbar select {
        flex: 1 1 auto;
    }

    .rich-editor__canvas {
        min-height: 420px;
        padding: 18px;
    }
}
.nav-link-sub {
    margin-left: 12px;
    font-size: 14px;
    opacity: .92;
}

.editor-helper {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
    color: var(--muted);
}

.editor-helper strong {
    color: var(--text);
    font-size: 16px;
}

.content-page .content-block {
    margin: 1.35em 0;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.rich-editor__canvas .content-block {
    outline: 1px dashed rgba(88, 117, 54, .28);
    outline-offset: -10px;
}

.content-page .content-block > :first-child {
    margin-top: 0;
}

.content-page .content-block > :last-child {
    margin-bottom: 0;
}


/* Root block manager inside content editor */
.content-block-insert {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 6px 0;
    user-select: none;
}

.content-block-insert::before {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(88, 117, 54, .25), transparent);
}

.content-block-insert__button {
    position: relative;
    z-index: 1;
    border: 1px dashed rgba(88, 117, 54, .42);
    border-radius: 999px;
    padding: 8px 14px;
    background: #fff;
    color: var(--accent-strong);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(27, 32, 23, .06);
}

.content-block-insert__button:hover {
    border-style: solid;
    background: rgba(88, 117, 54, .08);
}

.content-block-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: -10px -10px 18px;
    padding: 10px;
    border: 1px dashed rgba(88, 117, 54, .28);
    border-radius: 18px;
    background: rgba(246, 246, 239, .92);
    user-select: none;
}

.content-block-controls__title {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.content-block-controls__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.content-block-controls button {
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.content-block-controls button:hover {
    border-color: rgba(88, 117, 54, .42);
    background: rgba(88, 117, 54, .08);
}

.content-block-controls .danger-mini {
    border-color: rgba(188, 30, 24, .22);
    color: #a71915;
}

.content-block-controls .danger-mini:hover {
    background: rgba(188, 30, 24, .08);
    border-color: rgba(188, 30, 24, .42);
}

.rich-editor__canvas > .content-block {
    margin: 0;
}

.rich-editor__canvas > .content-block + .content-block {
    margin-top: 0;
}

@media (max-width: 760px) {
    .content-block-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .content-block-controls__actions {
        justify-content: flex-start;
    }
}


/* Section-based content editor: big public page cards, not nested inner blocks */
.content-page-sections {
    display: grid;
    gap: 24px;
    max-width: 1120px;
}

.content-page-sections .content-page-section {
    width: 100%;
}

.rich-editor__canvas.content-page-sections {
    max-width: none;
    min-height: 320px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
}

.rich-editor__canvas .content-page-section {
    position: relative;
    outline: 2px dashed rgba(88, 117, 54, .22);
    outline-offset: -10px;
}

.rich-editor__canvas .content-page-section:focus-within {
    outline-color: rgba(88, 117, 54, .44);
}

.content-page .content-page-section > :first-child {
    margin-top: 0;
}

.content-page .content-page-section > :last-child {
    margin-bottom: 0;
}

.content-section-insert {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 4px 0;
    user-select: none;
}

.content-section-insert::before {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(88, 117, 54, .25), transparent);
}

.content-section-insert__button {
    position: relative;
    z-index: 1;
    border: 1px dashed rgba(88, 117, 54, .42);
    border-radius: 999px;
    padding: 8px 14px;
    background: #fff;
    color: var(--accent-strong);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(27, 32, 23, .06);
}

.content-section-insert__button:hover {
    border-style: solid;
    background: rgba(88, 117, 54, .08);
}

.content-section-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 8px;
    padding: 10px;
    border: 1px dashed rgba(88, 117, 54, .28);
    border-radius: 18px;
    background: rgba(246, 246, 239, .92);
    user-select: none;
}

.content-section-controls__title {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.content-section-controls__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.content-section-controls button {
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.content-section-controls button:hover {
    border-color: rgba(88, 117, 54, .42);
    background: rgba(88, 117, 54, .08);
}

.content-section-controls .danger-mini {
    border-color: rgba(188, 30, 24, .22);
    color: #a71915;
}

.content-section-controls .danger-mini:hover {
    background: rgba(188, 30, 24, .08);
    border-color: rgba(188, 30, 24, .42);
}

@media (max-width: 760px) {
    .content-section-controls {
        align-items: flex-start;
        flex-direction: column;
    }

    .content-section-controls__actions {
        justify-content: flex-start;
    }
}


/* Patch: stable editor toolbar below mobile header, collapsible panel, footer, legal pages, iOS tap behavior */
html {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

button,
a,
.btn,
.nav-link,
.menu-button,
.menu-close,
input,
select,
textarea {
    touch-action: manipulation;
}

.app-footer {
    margin-top: 42px;
    padding: 20px 0 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
}

.app-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.app-footer__links a {
    color: var(--muted);
    font-weight: 750;
}

.app-footer__credit {
    font-weight: 800;
    color: rgba(24, 32, 22, .72);
}

.legal-page {
    display: grid;
    gap: 18px;
}

.legal-page .card h2,
.legal-page .card h3 {
    margin-top: 0;
}

.legal-page ul {
    margin: 10px 0 0 20px;
    color: var(--muted);
    line-height: 1.7;
}

.rich-editor__toolbar-shell {
    position: sticky;
    top: 12px;
    z-index: 30;
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(250, 249, 244, .96);
    box-shadow: 0 16px 32px rgba(27, 32, 23, .10);
    backdrop-filter: blur(12px);
}

.rich-editor__toolbar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rich-editor__toolbar-title {
    display: grid;
    gap: 2px;
}

.rich-editor__toolbar-title strong {
    color: var(--text);
    font-size: 15px;
}

.rich-editor__toolbar-title span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.rich-editor__toolbar-toggle {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.rich-editor__toolbar-toggle:hover {
    border-color: rgba(88, 117, 54, .42);
    background: rgba(88, 117, 54, .08);
}

.rich-editor__toolbar-shell .rich-editor__toolbar {
    position: static;
    top: auto;
    z-index: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.rich-editor__toolbar-shell.is-collapsed .rich-editor__toolbar {
    display: none;
}

.rich-editor__toolbar-shell.is-collapsed {
    gap: 0;
}

@media (max-width: 980px) {
    .rich-editor__toolbar-shell {
        top: 78px;
    }

    input,
    select,
    textarea,
    .rich-editor__canvas {
        font-size: 16px;
    }
}

@media (max-width: 760px) {
    .rich-editor__toolbar-shell {
        top: 74px;
        max-height: calc(100vh - 92px);
        overflow: visible;
    }

    .rich-editor__toolbar-shell .rich-editor__toolbar {
        max-height: min(46vh, 360px);
        overflow: auto;
        padding-right: 2px;
    }

    .rich-editor__toolbar-head {
        align-items: flex-start;
    }

    .rich-editor__toolbar-title span {
        display: none;
    }

    .app-footer {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 30px;
        align-items: center;
        justify-content: center;
    }

    .app-footer__dividing-point {
        display: none;
    }
}

/* Patch: audit logs and iOS date input containment */
.audit-filter-card {
    margin-bottom: 18px;
}

.audit-filters {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, .8fr) minmax(180px, .8fr) auto;
    gap: 14px;
    align-items: end;
}

.audit-log-list {
    display: grid;
    gap: 14px;
}

.audit-log-card {
    display: grid;
    gap: 14px;
    border-left: 5px solid rgba(88, 117, 54, .28);
}

.audit-log-card--banned {
    border-left-color: rgba(188, 30, 24, .72);
}

.audit-log-card--unbanned {
    border-left-color: rgba(88, 117, 54, .72);
}

.audit-log-card__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.audit-log-card__head h2 {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 20px;
}

.audit-log-card__head time {
    white-space: nowrap;
    color: var(--muted);
    font-weight: 800;
    font-size: 14px;
}

.audit-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(88, 117, 54, .10);
    color: var(--accent-dark);
    font-weight: 900;
    font-size: 13px;
}

.audit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.audit-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.audit-changes {
    display: grid;
    gap: 8px;
}

.audit-change-row {
    display: grid;
    grid-template-columns: minmax(120px, .8fr) minmax(0, 1fr) 24px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.audit-change-row strong {
    color: var(--text);
}

.audit-change-row__old {
    color: rgba(98, 111, 92, .88);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.audit-change-row__new {
    color: var(--text);
    font-weight: 850;
}

.audit-change-row__arrow {
    color: var(--muted);
    text-align: center;
    font-weight: 900;
}

.audit-dashboard-card {
    margin-top: 18px;
}

.audit-dashboard-card__head {
    margin-bottom: 12px;
}

.audit-mini-list {
    display: grid;
    gap: 10px;
}

.audit-mini-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.audit-mini-row strong,
.audit-mini-row small {
    display: block;
}

.audit-mini-row small {
    margin-top: 3px;
    color: var(--muted);
    font-weight: 700;
}

.form-grid > *,
.form-stack > *,
label {
    min-width: 0;
}

input[type="date"],
input[type="datetime-local"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    line-height: normal;
}

@supports (-webkit-touch-callout: none) {
    input[type="date"],
    input[type="datetime-local"] {
        display: block;
        min-height: 58px;
        padding-left: 14px;
        padding-right: 14px;
        text-align: left;
    }
}

@media (max-width: 760px) {
    .audit-filters {
        grid-template-columns: 1fr;
    }

    .audit-log-card__head {
        flex-direction: column;
    }

    .audit-change-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .audit-change-row__arrow {
        text-align: left;
    }

    .audit-mini-row {
        grid-template-columns: 1fr;
    }
}

/* Patch: password reset, permanent bans and team logo previews */
.auth-links {
    display: grid;
    gap: 8px;
}

.field-help {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.team-logo-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}

.team-logo-preview img,
.team-name-cell img {
    display: block;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: #fff;
}

.team-logo-preview div {
    display: grid;
    gap: 3px;
}

.team-logo-preview small {
    color: var(--muted);
    font-weight: 650;
}

.team-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

@media (max-width: 640px) {
    .team-logo-preview {
        align-items: flex-start;
    }

    .team-name-cell img {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
}
/* Patch: profile change requests and admin pagination */
.profile-actions-inline {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-change-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 14px;
    align-items: stretch;
}

.profile-change-grid--avatar {
    align-items: center;
}

.profile-change-current {
    display: grid;
    align-content: center;
    gap: 6px;
    min-width: 0;
    padding: 14px;
    border: 1px dashed rgba(96, 124, 55, .32);
    border-radius: 18px;
    background: rgba(96, 124, 55, .06);
}

.profile-change-current span,
.request-value-compare span,
.request-avatar-compare span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.profile-change-current strong {
    overflow-wrap: anywhere;
}

.avatar-xl--request {
    width: 96px;
    height: 96px;
    border-radius: 22px;
}

.change-request-note {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(96, 124, 55, .22);
    background: rgba(96, 124, 55, .08);
}

.change-request-note p { margin: 4px 0 0; }

.profile-request-history { margin-top: 18px; }
.profile-request-mini {
    display: grid;
    gap: 3px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    margin-top: 10px;
}
.profile-request-mini span,
.profile-request-mini small { color: var(--muted); font-weight: 700; }
.profile-request-mini--pending { border-color: rgba(96, 124, 55, .35); background: rgba(96, 124, 55, .08); }
.profile-request-mini--processed { border-color: rgba(56, 120, 70, .25); }
.profile-request-mini--rejected { opacity: .72; text-decoration: line-through; }

.search-row--with-per-page {
    grid-template-columns: minmax(0, 1fr) 150px auto;
    align-items: end;
}

.per-page-field {
    min-width: 0;
}
.per-page-field span {
    font-size: 13px;
    color: var(--muted);
}

.request-list {
    display: grid;
    gap: 14px;
}

.request-card {
    display: grid;
    gap: 14px;
}

.request-card--pending {
    border-color: rgba(96, 124, 55, .34);
    background: linear-gradient(135deg, rgba(96, 124, 55, .10), rgba(255,255,255,.86));
}

.request-card--processed,
.request-card--rejected {
    opacity: .72;
    filter: grayscale(.16);
}

.request-card--processed h2,
.request-card--rejected h2 {
    text-decoration: line-through;
}

.request-card__head,
.request-review-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.request-card__head h2 { margin-bottom: 4px; }
.request-card__head p { margin: 0; }
.request-card__head time { color: var(--muted); font-weight: 800; }

.request-status {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(96, 124, 55, .12);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 900;
}

.request-card--rejected .request-status,
.request-status--rejected {
    background: rgba(180, 35, 24, .10);
    color: var(--danger);
}

.request-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.request-fields span {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.request-review-list {
    display: grid;
    gap: 14px;
}

.request-review-row {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.request-review-row.accepted { border-color: rgba(71, 105, 44, .35); background: rgba(96, 124, 55, .08); }
.request-review-row.rejected { opacity: .72; }

.request-review-check {
    display: flex;
    align-items: center;
    gap: 10px;
}
.request-review-check input {
    width: 20px;
    min-height: 20px;
}

.request-value-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.request-value-compare div,
.request-avatar-compare div {
    display: grid;
    gap: 5px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    min-width: 0;
}

.request-value-compare strong {
    overflow-wrap: anywhere;
}

.request-avatar-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 180px));
    gap: 12px;
}

.request-avatar-compare img {
    width: 140px;
    height: 140px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--line);
}

.request-result {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    line-height: 1.6;
}

@media (max-width: 760px) {
    .profile-change-grid,
    .request-value-compare,
    .request-avatar-compare {
        grid-template-columns: 1fr;
    }

    .search-row--with-per-page {
        grid-template-columns: 1fr;
    }

    .request-card__head,
    .request-review-head {
        flex-direction: column;
    }
}

/* Airsoft pagination fix */
.airsoft-pagination {
    margin-top: 18px;
    display: grid;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.airsoft-pagination__summary {
    font-weight: 750;
    color: rgba(24, 32, 22, .68);
}

.airsoft-pagination__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.airsoft-pagination__item {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .76);
    color: var(--text);
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(27, 32, 23, .06);
}

.airsoft-pagination__item:hover {
    text-decoration: none;
    border-color: rgba(88, 117, 54, .38);
    background: rgba(88, 117, 54, .08);
}

.airsoft-pagination__item--active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.airsoft-pagination__item--disabled,
.airsoft-pagination__item--dots {
    cursor: default;
    opacity: .52;
    box-shadow: none;
}

.airsoft-pagination__item--disabled:hover,
.airsoft-pagination__item--dots:hover {
    border-color: var(--line);
    background: rgba(255, 255, 255, .76);
}

nav[role="navigation"] svg,
nav[aria-label*="Pagination"] svg,
nav[aria-label*="pagination"] svg,
nav[aria-label*="Навигация"] svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    display: inline-block !important;
    flex: 0 0 auto !important;
}

@media (max-width: 640px) {
    .airsoft-pagination__links {
        gap: 6px;
    }

    .airsoft-pagination__item {
        min-width: 36px;
        min-height: 36px;
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* Patch: cleaner profile actions, personal request page and QR modal */
.profile-header--with-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.profile-header__identity {
    min-width: 0;
}

.profile-header__identity h1,
.profile-header__identity .muted {
    overflow-wrap: anywhere;
}

.profile-header__actions {
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    min-width: 190px;
}

.btn-ghost {
    background: var(--surface-soft);
    color: var(--text);
}

.profile-info-list {
    margin-top: 22px;
}

.qr-compact-card {
    display: grid;
    gap: 12px;
}

.qr-compact-card .btn {
    width: fit-content;
}

.profile-qr-modal__panel {
    width: min(460px, 100%);
}

.profile-qr-modal__body {
    display: grid;
    place-items: center;
    padding-bottom: 50px;
}

.qr-box--large {
    width: min(260px, 100%);
    min-height: 260px;
    border-radius: 28px;
    padding: 18px;
}

.qr-box--large img {
    width: 100%;
    height: auto;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.search-row--compact {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.search-row--compact .per-page-field {
    width: 150px;
}

.profile-request-page-list {
    margin-top: 0;
}

.empty-state {
    text-align: left;
}

@media (max-width: 760px) {
    .profile-header--with-actions {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
    }

    .profile-header__actions {
        grid-column: 1 / -1;
        min-width: 0;
        justify-content: stretch;
        width: 100%;
    }

    .profile-header__actions .btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .qr-compact-card .btn,
    .page-actions,
    .page-actions .btn {
        width: 100%;
    }

    .search-row--compact {
        justify-content: stretch;
    }

    .search-row--compact .per-page-field {
        width: 100%;
    }
}
/* Patch: admin dashboard pending profile requests highlight */
.action-card--attention {
    border-color: rgba(186, 155, 57, .34);
    background: linear-gradient(135deg, rgba(221, 206, 136, .18), rgba(255, 251, 234, .95));
    box-shadow: 0 12px 26px rgba(160, 138, 69, .08);
}

.action-card--attention:hover {
    border-color: rgba(186, 155, 57, .46);
    background: linear-gradient(135deg, rgba(221, 206, 136, .24), rgba(255, 251, 234, .98));
    box-shadow: 0 16px 32px rgba(160, 138, 69, .12);
}

/* Patch: keep footer at the bottom on desktop pages */
@media (min-width: 761px) {
    .content {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .app-footer {
        margin-top: auto;
        padding-top: 46px;
    }
}

/* Patch: font size presets for visual content editor */
.content-page .content-font-size-12 { font-size: 12px !important; }
.content-page .content-font-size-14 { font-size: 14px !important; }
.content-page .content-font-size-16 { font-size: 16px !important; }
.content-page .content-font-size-18 { font-size: 18px !important; }
.content-page .content-font-size-20 { font-size: 20px !important; }
.content-page .content-font-size-24 { font-size: 24px !important; }
.content-page .content-font-size-28 { font-size: 28px !important; }
.content-page .content-font-size-32 { font-size: 32px !important; }
.content-page .content-font-size-40 { font-size: 40px !important; }

.rich-editor__toolbar select[data-editor-font-size] {
    min-width: 140px;
}

/* Patch: compact font size control in content editor */
.rich-editor__font-size-control {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.rich-editor__font-size-control button {
    width: 38px;
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 950;
    cursor: pointer;
}

.rich-editor__font-size-control button:hover { background: rgba(88, 117, 54, .08); }

.rich-editor__font-size-control input {
    width: 48px;
    min-height: 40px;
    padding: 0 2px;
    border: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 900;
    text-align: center;
    -moz-appearance: textfield;
}

.rich-editor__font-size-control input::-webkit-outer-spin-button,
.rich-editor__font-size-control input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.rich-editor__font-size-control span {
    padding: 0 10px 0 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}


/* Patch: repaired compact font size control in content editor */
.rich-editor__font-size-control {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.rich-editor__font-size-control button {
    width: 38px;
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 950;
    cursor: pointer;
}

.rich-editor__font-size-control button:hover { background: rgba(88, 117, 54, .08); }

.rich-editor__font-size-control input {
    width: 48px;
    min-height: 40px;
    padding: 0 2px;
    border: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 900;
    text-align: center;
    -moz-appearance: textfield;
}

.rich-editor__font-size-control input::-webkit-outer-spin-button,
.rich-editor__font-size-control input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.rich-editor__font-size-control span {
    padding: 0 10px 0 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}
