@font-face {
    font-family: "Onest";
    src: url("./fonts/onest/Onest-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Onest";
    src: url("./fonts/onest/Onest-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Onest";
    src: url("./fonts/onest/Onest-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Onest";
    src: url("./fonts/onest/Onest-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --admin-bg: #f8f9fa;
    --admin-canvas-warm: #fef9f1;
    --admin-surface: #ffffff;
    --admin-surface-soft: #f8f9fa;
    --admin-surface-orange: #ffe5d0;
    --admin-border: #f2f2f2;
    --admin-control-border: #ebedef;
    --admin-border-strong: #d3d3d3;
    --admin-text: #191919;
    --admin-text-dark: #242526;
    --admin-muted: #A7A8A8;
    --admin-subtle: #7c7c7d;
    --admin-brand: #f85628;
    --admin-primary: #f85628;
    --admin-primary-dark: #a02c0c;
    --admin-primary-disabled: #f2d3ca;
    --admin-success: #3f8f24;
    --admin-success-soft: #d5f5e3;
    --admin-warning: #8d5a00;
    --admin-warning-soft: #fff5cc;
    --admin-danger: #c71616;
    --admin-danger-soft: #feddd4;
    --admin-info-soft: #d6e4ff;
    --admin-violet-soft: #e8daf6;
    --admin-radius: 16px;
    --admin-radius-large: 24px;
    --admin-pill: 999px;
    --admin-float-shadow: 0 9px 24px rgba(20, 20, 43, 0.16);
    --admin-dropdown-shadow: 0 3px 11px rgba(20, 20, 43, 0.1);
    font-family: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    background: var(--admin-bg);
}

body {
    margin: 0;
    color: var(--admin-text);
    background: var(--admin-bg);
    font-family: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: var(--admin-primary);
    text-decoration: none;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

a:hover {
    color: var(--admin-primary-dark);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--admin-brand);
    outline-offset: 3px;
}

::selection {
    color: var(--admin-text-dark);
    background: var(--admin-surface-orange);
}

.admin-skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    transform: translateY(-170%);
    padding: 10px 16px;
    border-radius: var(--admin-pill);
    color: #fff;
    background: var(--admin-primary);
    font-weight: 600;
}

.admin-skip-link:focus {
    transform: translateY(0);
}

.admin-shell {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px 0;
    border-right: 1px solid var(--admin-border);
    color: var(--admin-text);
    background: var(--admin-surface);
}

.admin-sidebar__container {
    overflow-y: auto;
    padding: 0 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--admin-primary-disabled) transparent;
}

.admin-sidebar__container::-webkit-scrollbar {
    width: 4px;
}

.admin-sidebar__container::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar__container::-webkit-scrollbar-thumb {
    border-radius: var(--admin-pill);
    background: var(--admin-primary-disabled);
}

.admin-sidebar__container::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.admin-aside__bottom {
    padding: 22px 16px 0;
    border-top: 1px solid #F2F2F2;
}

.admin-aside__bottom .admin-button {
    width: 100%;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 4px 8px 22px;
    color: var(--admin-text-dark);
}

.admin-brand:hover {
    color: var(--admin-primary);
}

.admin-brand strong,
.admin-brand small {
    display: block;
}

.admin-brand strong {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.admin-brand small {
    margin-top: 3px;
    color: var(--admin-muted);
    font-size: 12px;
    line-height: 1.2;
}

.admin-brand__mark {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 50%;
    color: var(--admin-primary);
    background: #FFFFFF;
    border: 1px solid #F2F2F2;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.admin-nav__group {
    margin-top: 22px;
}

.admin-nav__group:first-child {
    margin-top: 4px;
}

.admin-nav__group .admin-nav__toggle {
    width: 100%;
    min-height: 30px;
    padding: 0 14px;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: var(--admin-text);
    background: transparent;
    border: 0;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
}

.admin-nav__group .admin-nav__toggle .icon {
    display: inline-flex;
    align-items: center;
    width: 17px;
    height: 9px;
}

.admin-nav__group .admin-nav__toggle .icon img {
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.admin-nav__group .admin-nav__toggle[aria-expanded="true"] .icon img {
    transform: rotate(180deg);
}

.admin-nav__group ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-nav__group ul.is-collapsible {
    height: 0;
    padding-left: 14px;
    overflow: hidden;
    interpolate-size: allow-keywords;
    transition: height 0.4s ease;
}

.admin-nav__group ul.is-collapsible.is-open {
    height: auto;
}

.admin-nav__link {
    position: relative;
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 14px;
    border-radius: var(--admin-pill);
    color: var(--admin-text);
    font-size: 16px;
    font-weight: 500;
}

.admin-nav__group ul.is-collapsible .admin-nav__link {
    color: var(--admin-muted);
}

a.admin-nav__link:hover,
.admin-nav__group ul.is-collapsible .admin-nav__link:hover {
    color: var(--admin-primary);
}

.admin-nav__link.is-active,
.admin-nav__group ul.is-collapsible .admin-nav__link.is-active {
    color: #fff;
    background: var(--admin-primary);
}

a.admin-nav__link.is-active:hover,
.admin-nav__group ul.is-collapsible .admin-nav__link.is-active:hover {
    color: #fff;
    background: var(--admin-primary-dark);
}

.admin-nav__link.is-disabled,
.admin-nav__group ul.is-collapsible .admin-nav__link.is-disabled {
    color: #919292;
    cursor: not-allowed;
    opacity: 0.72;
}

.admin-nav__link small {
    padding: 3px 7px;
    border-radius: var(--admin-pill);
    color: var(--admin-subtle);
    background: var(--admin-border);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
}

.admin-nav__link.is-active small {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.admin-workspace {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 32px;
    border-bottom: 1px solid rgba(242, 242, 242, 0.92);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.admin-topbar__context {
    min-width: 0;
}

.admin-topbar__context strong,
.admin-topbar__context small {
    display: block;
}

.admin-topbar__context strong {
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-topbar__context small {
    margin-top: 2px;
    color: var(--admin-muted);
    font-size: 12px;
}

.admin-topbar__identity {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 16px;
}

.admin-topbar__identity > span {
    text-align: right;
}

.admin-topbar__identity strong,
.admin-topbar__identity small {
    display: block;
}

.admin-topbar__identity strong {
    max-width: 260px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-topbar__identity small {
    margin-top: 2px;
    color: var(--admin-muted);
    font-size: 12px;
}

.admin-sidebar-toggle {
    display: none;
    align-items: center;
    gap: 9px;
    margin-right: auto;
    border: 1px solid var(--admin-control-border);
    border-radius: var(--admin-pill);
    padding: 9px 14px;
    color: var(--admin-text);
    background: #fff;
    font-weight: 500;
}

.admin-sidebar-toggle__icon,
.admin-sidebar-toggle__icon::before,
.admin-sidebar-toggle__icon::after {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.admin-sidebar-toggle__icon {
    position: relative;
    display: inline-block;
}

.admin-sidebar-toggle__icon::before,
.admin-sidebar-toggle__icon::after {
    position: absolute;
    left: 0;
    content: "";
}

.admin-sidebar-toggle__icon::before {
    top: -6px;
}

.admin-sidebar-toggle__icon::after {
    top: 6px;
}

.admin-sidebar-backdrop[hidden] {
    display: none;
}

.admin-main {
    width: 100%;
    max-width: 1660px;
    margin: 0 auto;
    padding: 38px 34px 52px;
    scroll-margin-top: 92px;
}

.admin-footer {
    margin-top: auto;
    padding: 14px 34px 24px;
    color: var(--admin-muted);
    font-size: 12px;
    text-align: right;
}

.admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.admin-page-header h1 {
    margin: 0;
    color: var(--admin-text);
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.18;
}

.admin-page-header p:not(.admin-eyebrow) {
    max-width: 760px;
    margin: 9px 0 0;
    color: var(--admin-muted);
    font-size: 16px;
}

.admin-eyebrow {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    margin: 0 0 9px;
    padding: 5px 11px;
    border-radius: var(--admin-pill);
    color: var(--admin-primary);
    background: var(--admin-surface-orange);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.035em;
    text-transform: capitalize;
}

.admin-copy-field {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.admin-copy-field code {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-copy-button {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--admin-control-border);
    border-radius: 50%;
    color: var(--admin-muted);
    background: var(--admin-surface);
    transition: color 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
}

.admin-copy-button:hover,
.admin-copy-button:focus-visible {
    border-color: var(--admin-primary);
    color: var(--admin-primary);
}

.admin-copy-button.is-copied {
    border-color: var(--admin-primary);
    color: var(--admin-primary);
    background: var(--admin-surface-orange);
}

.admin-copy-button svg {
    width: 20px;
    height: 20px;
}

.admin-copy-fallback {
    position: fixed;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.admin-panel {
    margin-top: 24px;
    padding: 24px;
    border: 3px solid var(--admin-border);
    border-bottom-width: 6px;
    border-radius: var(--admin-radius);
    background: var(--admin-surface);
}

.admin-panel--compact {
    padding: 18px;
}

.admin-panel--compact > .admin-filter-bar {
    margin: 0;
    padding: 0;
    border: 0;
}

.admin-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.admin-panel__header h2,
.admin-panel__header p {
    margin: 0;
}

.admin-panel__header h2 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
}

.admin-panel__header p {
    color: var(--admin-muted);
}

.admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.admin-metric-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
}

.admin-metric {
    position: relative;
    min-height: 156px;
    overflow: hidden;
    padding: 22px;
    border: 2px solid var(--admin-border);
    border-bottom-width: 5px;
    border-radius: var(--admin-radius);
    background: var(--admin-surface);
}

.admin-metric::after {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--admin-surface-orange);
    content: "";
}

.admin-metric:nth-child(3n + 2)::after {
    background: #b7e7c8;
}

.admin-metric:nth-child(3n)::after {
    background: #d2bce9;
}

.admin-metric span,
.admin-metric small {
    display: block;
    max-width: calc(100% - 28px);
    color: var(--admin-muted);
}

.admin-metric span {
    font-size: 14px;
    font-weight: 500;
}

.admin-metric strong {
    display: block;
    margin: 15px 0 8px;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1;
}

.admin-metric--accent {
    border-color: var(--admin-surface-orange);
    background: linear-gradient(145deg, #fff, var(--admin-canvas-warm));
}

.admin-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.admin-action-grid a {
    position: relative;
    min-height: 58px;
    padding: 17px 46px 17px 18px;
    border: 1px solid var(--admin-control-border);
    border-radius: var(--admin-radius);
    color: var(--admin-text);
    background: var(--admin-surface);
    font-size: 15px;
    font-weight: 600;
}

.admin-action-grid a::after {
    position: absolute;
    top: 50%;
    right: 17px;
    transform: translateY(-52%);
    color: var(--admin-brand);
    content: "→";
    font-size: 20px;
    line-height: 1;
    transition: transform 180ms ease;
}

.admin-action-grid a:hover {
    border-color: var(--admin-primary-disabled);
    color: var(--admin-primary);
    background: var(--admin-canvas-warm);
}

.admin-action-grid a:hover::after {
    transform: translate(3px, -52%);
}

.admin-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin: 20px 0;
    padding: 18px;
    border: 2px solid var(--admin-border);
    border-bottom-width: 4px;
    border-radius: var(--admin-radius);
    background: var(--admin-surface);
}

.admin-filter-bar[data-form="abos-form"] .admin-field:not(.admin-field--grow) {
    max-width: 150px;
}

.admin-filter-bar--wrap {
    flex-wrap: wrap;
}

.admin-form {
    display: grid;
    gap: 17px;
}

.admin-form--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-field {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 7px;
    min-width: 140px;
}

.admin-field--grow {
    flex: 1 1 auto;
}

.admin-field--span-2 {
    grid-column: span 2;
}

.admin-field > span {
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 600;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
    max-width: inherit;
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--admin-control-border);
    border-radius: var(--admin-pill);
    padding: 9px 16px;
    color: var(--admin-text);
    background: #fff;
    font-size: 15px;
    outline: none;
    transition:
        border-color 180ms ease,
        background-color 180ms ease;
}

.admin-field input[type="file"] {
    cursor: pointer;
}

.admin-field textarea {
    min-height: 128px;
    resize: vertical;
    border-radius: 12px;
    padding-block: 12px;
}

.admin-field > input {
    align-self: start;
}

.admin-file-input {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    border: 1px solid var(--admin-control-border);
    border-radius: var(--admin-pill);
    padding: 6px 16px 6px 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.admin-file-input:hover,
.admin-file-input:focus-within {
    border-color: var(--admin-brand);
}

.admin-file-input__native {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    border: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.admin-file-input__button {
    display: inline-flex;
    min-height: 40px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: var(--admin-pill);
    padding: 8px 16px;
    color: #fff;
    background: var(--admin-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.admin-file-input__name {
    min-width: 0;
    overflow: hidden;
    color: var(--admin-muted);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

.admin-file-input:has(.admin-file-input__native:disabled) {
    opacity: 0.6;
    cursor: not-allowed;
}

.admin-field input:hover,
.admin-field select:hover,
.admin-field textarea:hover {
    border-color: var(--admin-border-strong);
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
    border-color: var(--admin-brand);
}

.admin-field input[readonly],
.admin-field select:disabled,
.admin-field textarea:disabled {
    color: var(--admin-muted);
    background: var(--admin-surface-soft);
}

.admin-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--admin-pill);
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.admin-button:active {
    transform: translateY(0);
}

.admin-button--primary {
    color: #fff;
    background: var(--admin-primary);
}

.admin-button--primary:hover {
    color: #fff;
    background: var(--admin-primary-dark);
}

.admin-button--ghost {
    border-color: var(--admin-control-border);
    color: var(--admin-primary);
    background: #fff;
}

.admin-button--ghost:hover {
    color: var(--admin-primary-dark);
}

.admin-button--success {
    color: #fff;
    background: var(--admin-success);
}

.admin-button--warning {
    color: #fff;
    background: var(--admin-warning);
}

.admin-button--danger {
    color: #fff;
    background: var(--admin-danger);
}

.admin-button--wide {
    width: 100%;
}

.admin-button.is-disabled,
.admin-button:disabled {
    color: #fff;
    background: var(--admin-primary-disabled);
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.admin-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
}

.admin-alert {
    position: relative;
    margin: 14px 0 22px;
    border: 1px solid;
    border-left-width: 5px;
    border-radius: 12px;
    padding: 13px 16px;
    font-weight: 500;
}

.admin-alert--success {
    border-color: #8ed7aa;
    color: #225f18;
    background: var(--admin-success-soft);
}

.admin-alert--error {
    border-color: #ef9586;
    color: #861313;
    background: var(--admin-danger-soft);
}

.admin-alert--warning {
    border-color: #e7c666;
    color: #6c4908;
    background: var(--admin-warning-soft);
}

.admin-table-wrap {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--admin-brand) var(--admin-border);
}

.admin-table-wrap::-webkit-scrollbar {
    height: 9px;
}

.admin-table-wrap::-webkit-scrollbar-track {
    border-radius: var(--admin-pill);
    background: var(--admin-border);
}

.admin-table-wrap::-webkit-scrollbar-thumb {
    border-radius: var(--admin-pill);
    background: var(--admin-brand);
}

.admin-table {
    width: 100%;
    min-width: 940px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    border-right: 1px solid var(--admin-border);
    border-bottom: 1px solid var(--admin-border);
    padding: 12px;
    vertical-align: top;
    text-align: left;
}

.admin-table th:last-child,
.admin-table td:last-child {
    border-right: 0;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table thead th {
    color: var(--admin-muted);
    background: var(--admin-border);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.admin-table tbody tr {
    background: #fff;
    transition: background-color 160ms ease;
}

.admin-table tfoot th {
    border-top: 2px solid var(--admin-control-border);
    border-bottom: 0;
    background: var(--admin-surface-soft);
}

.admin-table--numeric th:not(:first-child),
.admin-table--numeric td:not(:first-child) {
    text-align: center;
}

.admin-table td strong,
.admin-table td code,
.admin-table td a {
    overflow-wrap: anywhere;
}

.admin-table__secondary {
    display: block;
    margin-top: 4px;
    color: var(--admin-muted);
    font-size: 12px;
}

.admin-table__message {
    min-width: 220px;
    max-width: 420px;
    overflow-wrap: anywhere;
}

.admin-table__actions {
    display: grid;
    gap: 8px;
    min-width: 170px;
}

.admin-table__actions .admin-button {
    width: 100%;
    min-height: 40px;
    padding: 8px 14px;
    text-align: center;
    white-space: nowrap;
}

.admin-status {
    display: inline-flex;
    align-items: center;
    align-content: center;
    gap: 6px;
    border-radius: var(--admin-pill);
    padding: 5px 10px;
    color: var(--admin-muted);
    background: var(--admin-border);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.admin-status::before {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
    opacity: 0.72;
}

.admin-status--active,
.admin-status--success {
    color: #276e1d;
    background: var(--admin-success-soft);
}

.admin-status--blocked,
.admin-status--cancelled,
.admin-status--failed,
.admin-status--danger {
    color: #991717;
    background: var(--admin-danger-soft);
}

.admin-status--warning,
.admin-status--pending,
.admin-status--scheduled {
    color: #765006;
    background: var(--admin-warning-soft);
}

.admin-status--expired,
.admin-status--inactive,
.admin-status--refunded,
.admin-status--muted {
    color: var(--admin-muted);
    background: var(--admin-border);
}

.admin-pagination {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 18px;
}

.admin-pagination__summary {
    margin: 0 auto 0 0;
    color: var(--admin-muted);
}

.admin-pagination .admin-button {
    min-width: 40px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 12px;
}

.admin-note,
.admin-muted {
    color: var(--admin-muted);
}

.admin-note {
    margin: 14px 0 0;
    font-size: 13px;
}

.admin-empty {
    padding: 54px 24px;
    border: 2px dashed var(--admin-control-border);
    border-radius: var(--admin-radius);
    color: var(--admin-muted);
    background: var(--admin-canvas-warm);
    text-align: center;
}

.admin-empty h2 {
    margin: 0 0 7px;
    color: var(--admin-text);
    font-size: 22px;
    font-weight: 600;
}

.admin-empty p {
    margin: 0;
}

.admin-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.admin-user-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding: 15px 17px;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    background: var(--admin-canvas-warm);
}

.admin-user-preview strong,
.admin-user-preview span {
    display: block;
}

code {
    border-radius: 6px;
    padding: 2px 6px;
    color: var(--admin-text-dark);
    background: var(--admin-border);
    font-size: 0.9em;
    overflow-wrap: anywhere;
}

.admin-auth-body {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 12% 10%, rgba(248, 86, 40, 0.16), transparent 34%),
        radial-gradient(circle at 88% 88%, rgba(142, 68, 173, 0.11), transparent 32%),
        linear-gradient(145deg, var(--admin-canvas-warm), var(--admin-bg));
}

.admin-auth-shell {
    width: min(100%, 450px);
}

.admin-auth-card {
    padding: 32px;
    border: 3px solid var(--admin-border);
    border-bottom-width: 6px;
    border-radius: var(--admin-radius-large);
    background: var(--admin-surface);
}

.admin-auth-card__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.admin-auth-card__brand h1,
.admin-auth-card__brand p {
    margin: 0;
}

.admin-auth-card__brand h1 {
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.admin-auth-card__brand p,
.admin-auth-reference {
    color: var(--admin-muted);
}

.admin-auth-card__brand p {
    margin-top: 4px;
    font-size: 13px;
}

.admin-auth-card .admin-button--wide {
    min-height: 50px;
    margin-top: 2px;
    font-size: 15px;
}

.admin-auth-card .admin-field {
    max-width: 100%;
}

.admin-auth-reference {
    margin: 14px 0 0;
    font-size: 11px;
    text-align: center;
}

.admin-access-denied {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.admin-access-denied h1,
.admin-access-denied p {
    margin: 0;
}

.admin-access-denied h1 {
    font-size: clamp(28px, 6vw, 40px);
    line-height: 1.12;
}

.admin-access-denied p:not(.admin-eyebrow) {
    margin-top: 14px;
    color: var(--admin-muted);
    line-height: 1.55;
}

.admin-access-denied .admin-button {
    margin-top: 24px;
}

@media (max-width: 1180px) {
    .admin-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .admin-shell {
        grid-template-columns: 252px minmax(0, 1fr);
    }

    .admin-topbar {
        padding-inline: 22px;
    }

    .admin-main {
        padding-inline: 22px;
    }
}

@media (max-width: 860px) {
    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        position: fixed;
        left: 0;
        width: min(86vw, 308px);
        visibility: hidden;
        transform: translateX(-100%);
        transition:
            transform 200ms ease,
            visibility 0s linear 200ms;
    }

    .admin-sidebar.is-open {
        visibility: visible;
        transform: translateX(0);
        transition-delay: 0s;
    }

    .admin-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 19;
        background: rgba(25, 25, 25, 0.48);
        backdrop-filter: blur(2px);
    }

    body.has-open-admin-sidebar {
        overflow: hidden;
    }

    .admin-sidebar-toggle {
        display: inline-flex;
    }

    .admin-topbar {
        justify-content: space-between;
        padding: 10px 16px;
    }

    .admin-topbar__context {
        display: none;
    }

    .admin-main {
        padding: 28px 16px 40px;
    }

    .admin-footer {
        padding-inline: 16px;
    }

    .admin-filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-field,
    .admin-field--grow {
        max-width: 100%;
        width: 100%;
        flex: 0 0 auto;
    }

    .admin-form--grid {
        grid-template-columns: 1fr;
    }

    .admin-field--span-2 {
        grid-column: auto;
    }
}

@media (max-width: 680px) {
    .admin-topbar {
        min-height: 66px;
    }

    .admin-topbar__identity > span {
        display: none;
    }

    .admin-topbar__identity {
        gap: 8px;
    }

    .admin-topbar__identity .admin-button {
        min-height: 40px;
        padding: 8px 13px;
    }

    .admin-page-header,
    .admin-panel__header,
    .admin-user-preview {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-page-header {
        gap: 16px;
        margin-bottom: 22px;
    }

    .admin-page-header h1 {
        font-size: 28px;
    }

    .admin-page-header p:not(.admin-eyebrow) {
        font-size: 15px;
    }

    .admin-metric-grid,
    .admin-metric-grid--compact,
    .admin-action-grid {
        grid-template-columns: 1fr;
    }

    .admin-metric {
        min-height: 140px;
    }

    .admin-panel {
        padding: 20px 16px;
    }

    .admin-panel--compact {
        padding: 15px;
    }

    .admin-pagination {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .admin-pagination__summary {
        width: 100%;
        margin-right: 0;
    }

    .admin-form__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-form__actions .admin-button {
        width: 100%;
    }

    .admin-auth-body {
        align-items: start;
        padding: 18px 14px;
    }

    .admin-auth-shell {
        margin-top: min(12vh, 80px);
    }

    .admin-auth-card {
        padding: 26px 20px;
        border-radius: 20px;
    }
}

@media (max-width: 390px) {
    .admin-sidebar-toggle {
        width: 42px;
        min-height: 42px;
        justify-content: center;
        padding: 8px;
    }

    .admin-sidebar-toggle__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Structured editors */
.admin-editor-form {
    gap: 0;
}

.admin-fieldset {
    margin: 0 0 22px;
    border: 0;
    padding: 0;
}

.admin-fieldset legend {
    margin-bottom: 10px;
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 600;
}

.admin-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 9px;
}

.admin-choice {
    position: relative;
    cursor: pointer;
}

.admin-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.admin-choice span {
    display: flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--admin-control-border);
    border-radius: var(--admin-pill);
    padding: 8px 12px;
    color: var(--admin-muted);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: 160ms ease;
}

.admin-choice input:checked + span {
    border-color: var(--admin-primary);
    color: #fff;
    background: var(--admin-primary);
}

.admin-choice input:focus-visible + span {
    outline: 3px solid var(--admin-brand);
    outline-offset: 3px;
}

.admin-check {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--admin-control-border);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--admin-text);
    background: var(--admin-canvas-warm);
    cursor: pointer;
}

.admin-check input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    accent-color: var(--admin-primary);
}

.admin-check input[type="radio"] {
    margin: 0;
}

.admin-check span {
    font-size: 13px;
    font-weight: 600;
}

.admin-check--compact {
    align-self: end;
    min-height: 44px;
    white-space: nowrap;
}

.admin-media-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    padding: 16px;
    background: var(--admin-surface-soft);
}

.admin-media-field__upload {
    margin-top: auto;
}

.admin-media-field audio {
    width: 100%;
}

.admin-media-preview {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    background: #fff;
}

.admin-code-textarea,
.admin-details pre {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.55;
    tab-size: 4;
}

.admin-blog-table {
    min-width: 940px;
}

.admin-blog-cover-preview {
    max-height: 400px;
    object-fit: cover;
}

.admin-language-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--admin-border);
    padding-bottom: 12px;
}

.admin-language-tab {
    min-height: 40px;
    border: 1px solid var(--admin-control-border);
    border-radius: var(--admin-pill);
    padding: 8px 14px;
    color: var(--admin-muted);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 160ms ease;
}

.admin-language-tab:hover,
.admin-language-tab.is-active {
    border-color: var(--admin-primary);
    color: #fff;
    background: var(--admin-primary);
}

.admin-language-tab:focus-visible {
    outline: 3px solid var(--admin-brand);
    outline-offset: 3px;
}

.admin-language-panel[hidden] {
    display: none;
}

.admin-blog-form-actions {
    position: sticky;
    z-index: 7;
    bottom: 12px;
    width: fit-content;
    margin: 20px 0 0 auto;
    border: 2px solid var(--admin-border);
    border-radius: var(--admin-pill);
    padding: 8px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 28px rgba(34, 34, 34, 0.12);
    backdrop-filter: blur(10px);
}

@media (max-width: 680px) {
    .admin-language-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .admin-language-tab {
        flex: 0 0 auto;
    }

    .admin-blog-form-actions {
        width: 100%;
        bottom: 8px;
        border-radius: 16px;
    }
}

.admin-backup-status {
  width: fit-content;
  font-size: 0.875rem;
}

.admin-backup-page-header {
  margin-bottom: 18px;
}

.admin-backup-metrics {
  gap: 12px;
  margin-top: 0;
}

.admin-backup-metrics .admin-metric {
  min-height: 116px;
  padding: 17px;
  border-width: 2px 2px 4px;
}

.admin-backup-metrics .admin-metric::after {
  top: 15px;
  right: 15px;
  width: 10px;
  height: 10px;
}

.admin-backup-metrics .admin-metric strong {
  margin: 11px 0 7px;
  font-size: 25px;
}

.admin-backup-panel {
  margin-top: 16px;
  padding: 18px;
  border-width: 2px 2px 4px;
}

.admin-backup-panel .admin-panel__header {
  margin-bottom: 14px;
}

.admin-backup-panel .admin-panel__header h2 {
  font-size: 19px;
}

.admin-backup-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-backup-destinations-table {
  min-width: 760px;
}

.admin-backup-logs-table {
  min-width: 680px;
}

.admin-backup-destinations-table th,
.admin-backup-destinations-table td,
.admin-backup-logs-table th,
.admin-backup-logs-table td {
  padding: 10px 12px;
}

.admin-backup-row.is-active td {
  background: #fff7f2;
}

.admin-backup-row.is-active td:first-child {
  box-shadow: inset 3px 0 0 var(--admin-primary);
}

.admin-backup-log-link.is-active {
  color: var(--admin-text-dark);
  font-weight: 600;
  text-decoration: none;
}

.admin-backup-log {
  min-width: 0;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  overflow: hidden;
  background: #111827;
  color: #e5e7eb;
  scroll-margin-top: 90px;
  outline: none;
}

.admin-backup-log__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 12px 14px;
  background: #1f2937;
}

.admin-backup-log__header small {
  display: block;
  margin-bottom: 3px;
  color: #9ca3af;
  font-size: 11px;
}

.admin-backup-log h3 {
  margin: 0;
  color: #fff;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.admin-backup-log pre {
  max-height: 30rem;
  margin: 0;
  padding: 14px;
  overflow: auto;
  color: inherit;
  font: 0.8125rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-backup-log__empty {
  padding: 24px 14px;
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 42.5rem) {
  .admin-backup-panel {
    padding: 14px;
  }

  .admin-backup-log__header {
    align-items: flex-start;
  }
}

.admin-field .tox.tox-tinymce {
    width: 100%;
    border: 1px solid var(--admin-control-border);
    border-radius: 12px;
    box-shadow: none;
}

.admin-field .tox.tox-tinymce:focus-within {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(255, 82, 42, 0.12);
}

.admin-field .tox .tox-statusbar {
    border-top-color: var(--admin-border);
}

.admin-simple-repeater,
.admin-question-list,
.admin-answer-list {
    display: grid;
    gap: 12px;
}

.admin-simple-item,
.admin-answer-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--admin-border);
    border-radius: 13px;
    padding: 12px;
    background: var(--admin-surface-soft);
}

.admin-simple-item--single-line > .admin-icon-button {
    margin-top: auto;
}

.admin-simple-item .admin-field,
.admin-answer-row .admin-field {
    margin: 0;
}

.admin-drag-handle {
    display: inline-grid;
    width: 28px;
    height: 42px;
    flex: 0 0 28px;
    place-items: center;
    color: var(--admin-subtle);
    cursor: grab;
}

.admin-icon-button {
    display: inline-grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid var(--admin-control-border);
    border-radius: 50%;
    color: var(--admin-muted);
    background: #fff;
    font-size: 22px;
    line-height: 1;
}

.admin-icon-button svg {
    width: 19px;
    height: 19px;
}

.admin-icon-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.admin-table__actions {
    display: flex;
    width: max-content;
    min-width: max-content;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.admin-table__actions form {
    margin: 0;
}

.admin-table th.admin-table__cell--actions,
.admin-table td.admin-table__cell--actions {
    width: 1%;
    min-width: max-content;
    white-space: nowrap;
}

.admin-table td.admin-table__cell--actions {
    vertical-align: middle;
}

.admin-table th.admin-table__cell--select,
.admin-table td.admin-table__cell--select {
    width: 1%;
    min-width: 44px;
    text-align: center;
    vertical-align: middle;
}

.admin-table__cell--select input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--admin-primary);
    cursor: pointer;
}

.admin-table__cell--name {
    min-width: 180px;
}

.admin-table__cell--template {
    min-width: 170px;
}

/* Admin adaptation of the public custom select component. */
.select {
    position: relative;
    width: 100%;
    min-width: 130px;
}

.select .select__native {
    position: absolute;
    width: 0;
    height: 0;
    min-height: 0;
    overflow: hidden;
    border: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.select__header {
    display: flex;
    width: 100%;
    min-height: 43px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid var(--admin-control-border);
    border-radius: var(--admin-pill);
    padding: 8px 14px;
    color: var(--admin-text);
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.select__header:hover,
.select__header.is-active {
    border-color: var(--admin-primary);
}

.select__header:focus-visible {
    outline: 3px solid rgba(248, 86, 40, 0.2);
    outline-offset: 1px;
}

.select__header:disabled {
    color: var(--admin-muted);
    background: var(--admin-surface-soft);
    cursor: not-allowed;
}

.select__header__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select__header svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: var(--admin-muted);
    transition: transform 180ms ease;
}

.select__header.is-active svg {
    transform: rotate(180deg);
}

.dropdown-result {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 100;
    padding-top: 4px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, visibility 160ms ease;
    min-width: min-content;
}

.dropdown-result.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.dropdown-result__container {
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    padding: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(20, 20, 43, 0.14);
}

.dropdown-result__content {
    max-height: 240px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--admin-primary-disabled) transparent;
}

.dropdown-result__option {
    display: block;
    width: 100%;
    border: 0;
    border-radius: var(--admin-pill);
    padding: 9px 12px;
    color: var(--admin-muted);
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: color 0.4s ease, background 0.4s ease;
}

.dropdown-result__option:hover,
.dropdown-result__option.is-active {
    color: var(--admin-text);
    background: #f2f2f2;
}

.admin-inline-status {
    min-width: 150px;
    margin: 0;
}

.admin-inline-status .select__header {
    min-height: 36px;
    padding-block: 6px;
    font-size: 13px;
}

.admin-inline-status.is-submitting {
    opacity: 0.65;
    pointer-events: none;
}

/* Admin adaptation of the public pagination component. */
.admin-pagination {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}

.admin-pagination__summary {
    margin: 0;
    margin-top: 20px;
    color: var(--admin-muted);
}

.pagination {
    align-self: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.pagination-page,
.pagination-divide {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--admin-control-border);
    border-radius: 12px;
    padding: 0;
    color: var(--admin-primary);
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

a.pagination-page:hover {
    border-color: var(--admin-primary);
    color: var(--admin-primary-dark);
    background: var(--admin-canvas-warm);
}

.pagination-active-page {
    border-color: var(--admin-primary);
    color: #fff;
    background: var(--admin-primary);
}

.pagination-divide {
    border-color: transparent;
    color: var(--admin-muted);
    background: transparent;
}

.pagination-page svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 680px) {
    .admin-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-pagination .pagination {
        width: 100%;
    }
}

.admin-icon-button:hover {
    border-color: var(--admin-primary-disabled);
    color: var(--admin-primary);
    background: var(--admin-canvas-warm);
}

.admin-icon-button--danger:hover {
    border-color: #ef9586;
    color: var(--admin-danger);
    background: var(--admin-danger-soft);
}

.admin-icon-button--success {
    border-color: #acd7a4;
    color: var(--admin-success);
    background: var(--admin-success-soft);
}

.admin-icon-button--success:hover {
    border-color: var(--admin-success);
    color: var(--admin-success);
    background: #e0f5dc;
}

.admin-repeater-card {
    overflow: hidden;
    border: 2px solid var(--admin-border);
    border-bottom-width: 5px;
    border-radius: var(--admin-radius);
    background: #fff;
}

.admin-repeater-card__header,
.admin-subsection__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-repeater-card__header {
    padding: 15px 18px;
    border-bottom: 1px solid var(--admin-border);
    background: var(--admin-canvas-warm);
}

.admin-repeater-card__header strong,
.admin-repeater-card__header small,
.admin-subsection__header strong,
.admin-subsection__header small {
    display: block;
}

.admin-repeater-card__header small,
.admin-subsection__header small {
    margin-top: 2px;
    color: var(--admin-muted);
    font-size: 12px;
}

.admin-question-card > .admin-form {
    padding: 18px;
}

.admin-subsection {
    display: grid;
    gap: 14px;
    margin: 0 18px 18px;
    border: 1px solid var(--admin-border);
    border-radius: 13px;
    padding: 15px;
    background: var(--admin-surface-soft);
}

.admin-answer-row {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(150px, 1fr) auto auto;
    gap: 20px;
    align-items: end;
    background: #fff;
}

.admin-answer-row--game {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.admin-answer-row--game > .admin-drag-handle {
    height: auto;
    align-self: center;
}

.admin-editor-actions {
    position: static;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    border: 1px solid rgba(235, 237, 239, 0.92);
    border-radius: var(--admin-pill);
    padding: 10px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.admin-editor-actions-anchor {
    min-width: 0;
    display: flow-root;
}

.admin-editor-actions.is-fixed {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 286px;
    z-index: 18;
    margin: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: 0 -8px 28px rgba(25, 25, 25, 0.08);
}

.admin-mobile-logout {
    display: none;
}

.admin-logout-modal {
    max-width: 520px;
    border-radius: var(--admin-radius-large);
    padding: 34px;
    color: var(--admin-text);
    background: #fff;
}

.admin-logout-modal .modal__close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--admin-surface-soft);
    cursor: pointer;
}

.admin-logout-modal .modal__close-btn img {
    width: 20px;
    height: 20px;
}

.admin-logout-modal__title {
    max-width: calc(100% - 52px);
    margin: 0;
    font-size: 28px;
    line-height: 1.22;
}

.admin-logout-modal__text {
    margin: 16px 0 22px;
    color: var(--admin-muted);
    line-height: 1.5;
}

.admin-logout-modal__actions {
    display: grid;
    gap: 10px;
}

.admin-danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    border: 1px solid #ef9586;
    border-radius: var(--admin-radius);
    padding: 18px;
    background: var(--admin-danger-soft);
}

.admin-danger-zone strong,
.admin-danger-zone p {
    margin: 0;
}

.admin-danger-zone p {
    margin-top: 4px;
    color: #861313;
    font-size: 13px;
}

.admin-details summary {
    color: var(--admin-primary);
    font-weight: 600;
    cursor: pointer;
}

.admin-details pre {
    max-height: 360px;
    overflow: auto;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    padding: 14px;
    color: var(--admin-text-dark);
    background: var(--admin-surface-soft);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 860px) {
    .admin-answer-row {
        grid-template-columns: 1fr;
    }

    .admin-answer-row--game {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .admin-answer-row--game .admin-check--compact {
        align-self: end;
    }

    .admin-check--compact {
        align-self: stretch;
    }
}

@media (max-width: 680px) {
    .admin-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-simple-item,
    .admin-repeater-card__header,
    .admin-subsection__header,
    .admin-danger-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-simple-item {
        position: relative;
        padding-top: 46px;
    }

    .admin-simple-item .admin-drag-handle,
    .admin-simple-item .admin-icon-button {
        position: absolute;
        top: 8px;
    }

    .admin-simple-item .admin-drag-handle {
        left: 10px;
    }

    .admin-simple-item .admin-icon-button {
        right: 10px;
    }

    .admin-simple-item--single-line .admin-icon-button {
        top: 32px;
        margin-top: 0;
    }

    .admin-question-card > .admin-form,
    .admin-subsection {
        margin-inline: 0;
        padding-inline: 14px;
    }

    .admin-subsection {
        margin: 0 12px 14px;
    }

    .admin-editor-actions {
        align-items: stretch;
        flex-direction: column;
        border-radius: var(--admin-radius);
    }

    .admin-editor-actions .admin-button,
    .admin-danger-zone .admin-button {
        width: 100%;
    }
}

@media (max-width: 980px) {
    .admin-editor-actions.is-fixed {
        left: 252px;
    }
}

@media (max-width: 860px) {
    .admin-mobile-logout {
        display: inline-flex;
    }

    .admin-editor-actions.is-fixed {
        left: 0;
    }
}

@media (max-width: 768px) {
    .admin-logout-modal {
        max-width: none;
        border-radius: 28px 28px 0 0;
        padding: 28px 18px 22px;
    }

    .admin-logout-modal__title {
        font-size: 24px;
    }
}
