:root {
    --admin-bg: #f7f7f7;
    --admin-panel: #ffffff;
    --admin-panel-soft: #fafafa;
    --admin-border: #e5e7eb;
    --admin-text: #20262f;
    --admin-muted: #6b7280;
    --admin-accent: #1dbf73;
    --admin-accent-dark: #159a5d;
    --admin-accent-soft: rgba(29, 191, 115, 0.12);
    --admin-blue: #2563eb;
    --admin-blue-soft: rgba(37, 99, 235, 0.12);
    --admin-warning: #d97706;
    --admin-warning-soft: rgba(217, 119, 6, 0.14);
    --admin-danger: #dc2626;
    --admin-danger-soft: rgba(220, 38, 38, 0.12);
    --admin-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

body.admin-body {
    background: linear-gradient(180deg, #fbfbfb 0%, #f4f5f7 100%);
    color: var(--admin-text);
    font-family: "Segoe UI", Arial, sans-serif;
}

[x-cloak] {
    display: none !important;
}

.admin-shell {
    min-height: 100vh;
}

.admin-sidebar {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--admin-border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
}

.admin-site-nav {
    align-items: center;
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1440px;
    padding: 0.9rem 2rem;
}

.admin-site-nav__brand {
    align-items: center;
    display: flex;
    gap: 0.85rem;
}

.admin-site-nav__brand img {
    border-radius: 0;
    box-shadow: none;
    height: 52px;
    max-width: 180px;
    object-fit: contain;
    width: auto;
}

.admin-sidebar__title {
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.admin-sidebar__subtitle {
    color: var(--admin-muted);
    font-size: 0.84rem;
}

.admin-site-nav__groups {
    align-items: center;
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.admin-site-nav__dropdown {
    position: relative;
}

.admin-site-nav__link {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--admin-text);
    display: inline-flex;
    font-size: 0.96rem;
    font-weight: 600;
    gap: 0.35rem;
    padding: 0.72rem 1rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-site-nav__link:hover,
.admin-site-nav__link.is-active {
    background: #f3f4f6;
    border-color: #dbe0e7;
}

.admin-site-nav__caret {
    color: var(--admin-muted);
    font-size: 0.8rem;
}

.admin-site-nav__menu {
    background: var(--admin-panel);
    border: 1px solid var(--admin-border);
    border-radius: 1rem;
    box-shadow: var(--admin-shadow);
    display: grid;
    gap: 0.25rem;
    min-width: 220px;
    padding: 0.6rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.75rem);
}

.admin-site-nav__menu-link {
    border-radius: 0.8rem;
    color: var(--admin-text);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.75rem 0.9rem;
}

.admin-site-nav__menu-link:hover {
    background: #f3f4f6;
}

.admin-site-nav__secondary {
    display: flex;
    gap: 0.75rem;
}

.admin-main {
    margin: 0 auto;
    max-width: 1440px;
    width: 100%;
}

.admin-topbar {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.25rem 2rem 0.75rem;
}

.admin-topbar__header {
    display: grid;
    gap: 0.5rem;
}

.admin-topbar__title {
    font-size: clamp(1.9rem, 3vw, 2.45rem);
    font-weight: 300;
    letter-spacing: -0.05em;
}

.admin-topbar__subtitle {
    color: var(--admin-muted);
    font-size: 0.95rem;
    margin-top: 0.15rem;
    max-width: 56rem;
}

.admin-topbar__actions {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.admin-icon-button {
    align-items: center;
    background: var(--admin-panel);
    border: 1px solid var(--admin-border);
    border-radius: 999px;
    box-shadow: var(--admin-shadow);
    display: inline-flex;
    height: 46px;
    justify-content: center;
    position: relative;
    width: 46px;
}

.admin-icon-button__glyph {
    color: #4b5563;
    font-size: 1.1rem;
    font-weight: 700;
}

.notification-badge {
    align-items: center;
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 700;
    height: 1.25rem;
    justify-content: center;
    min-width: 1.25rem;
    padding: 0 0.32rem;
    position: absolute;
    right: -0.22rem;
    top: -0.18rem;
}

.admin-user-pill {
    align-items: center;
    background: var(--admin-panel);
    border: 1px solid var(--admin-border);
    border-radius: 999px;
    box-shadow: var(--admin-shadow);
    display: inline-flex;
    gap: 0.75rem;
    padding: 0.35rem 0.45rem 0.35rem 0.95rem;
}

.admin-user-pill__avatar {
    align-items: center;
    background: linear-gradient(135deg, var(--admin-accent), #34d399);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 700;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.admin-content {
    padding: 0 2rem 2rem;
}

.admin-flash {
    border-radius: 1rem;
    margin-bottom: 1rem;
    padding: 0.95rem 1.1rem;
}

.admin-flash--success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.18);
    color: #065f46;
}

.admin-flash--error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.18);
    color: #991b1b;
}

.admin-card,
.admin-panel {
    background: var(--admin-panel);
    border: 1px solid var(--admin-border);
    border-radius: 1.3rem;
    box-shadow: var(--admin-shadow);
}

.admin-card {
    padding: 1.25rem;
}

.admin-card--compact {
    padding: 0.92rem;
}

.admin-card--compact .admin-section-title {
    font-size: 0.98rem;
}

.admin-card--feature {
    padding: 1.45rem;
}

.admin-card--subtle {
    background: var(--admin-panel-soft);
    box-shadow: none;
}

.admin-section-title {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.admin-section-subtitle {
    color: var(--admin-muted);
    font-size: 0.9rem;
    margin-top: 0.22rem;
}

.admin-grid {
    display: grid;
    gap: 1rem;
}

.admin-grid--stats {
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
}

.admin-grid--two {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.admin-grid--three {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.admin-fiverr-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.72fr);
}

.admin-sidebar-stack {
    display: grid;
    gap: 1rem;
}

.admin-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.admin-card__actions,
.admin-repeater-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
}

.admin-repeater-stack {
    display: grid;
    gap: 1rem;
}

.admin-button {
    align-items: center;
    background: linear-gradient(135deg, var(--admin-accent) 0%, #24cc7c 100%);
    border: 1px solid rgba(21, 154, 93, 0.3);
    border-radius: 0.95rem;
    box-shadow: 0 14px 28px rgba(29, 191, 115, 0.18);
    color: #ffffff;
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 700;
    gap: 0.45rem;
    justify-content: center;
    letter-spacing: -0.01em;
    min-height: 2.75rem;
    padding: 0.76rem 1.12rem;
    position: relative;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, opacity 0.18s ease;
    white-space: nowrap;
}

.admin-button:hover {
    background: linear-gradient(135deg, var(--admin-accent-dark) 0%, #1dbf73 100%);
    box-shadow: 0 18px 32px rgba(29, 191, 115, 0.24);
    transform: translateY(-1px);
}

.admin-button:focus-visible {
    box-shadow: 0 0 0 4px rgba(29, 191, 115, 0.18), 0 14px 28px rgba(29, 191, 115, 0.22);
    outline: none;
}

.admin-button:disabled,
.admin-button[disabled] {
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.admin-button svg,
.admin-button img {
    flex: 0 0 auto;
}

.admin-button--small {
    border-radius: 0.82rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    font-size: 0.84rem;
    font-weight: 700;
    min-height: 2.35rem;
    padding: 0.58rem 0.92rem;
}

.admin-button--small:hover {
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

@media (min-width: 721px) {
    .admin-button:not(.admin-button--small) {
        font-size: 0.88rem;
        min-height: 2.5rem;
        padding: 0.64rem 0.98rem;
    }
}

.admin-button--secondary {
    background: linear-gradient(135deg, #f7fbff 0%, #ecf4ff 100%);
    border-color: rgba(37, 99, 235, 0.16);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
    color: #1f4fcc;
}

.admin-button--secondary:hover {
    background: linear-gradient(135deg, #eef6ff 0%, #dbeafe 100%);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.admin-button--ghost {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-color: #dbe1e8;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    color: var(--admin-text);
}

.admin-button--ghost:hover {
    background: #f9fafb;
    border-color: #cfd6df;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.admin-button--danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: rgba(185, 28, 28, 0.22);
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.16);
}

.admin-button--danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 16px 28px rgba(220, 38, 38, 0.22);
}

.admin-button--warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: rgba(217, 119, 6, 0.24);
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.16);
    color: #ffffff;
}

.admin-button--warning:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 16px 28px rgba(217, 119, 6, 0.22);
}

.admin-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.68rem;
}

.admin-badge--new {
    background: var(--admin-blue-soft);
    color: var(--admin-blue);
}

.admin-badge--read {
    background: rgba(107, 114, 128, 0.14);
    color: #475569;
}

.admin-badge--late {
    background: var(--admin-warning-soft);
    color: var(--admin-warning);
}

.admin-badge--replied {
    background: var(--admin-accent-soft);
    color: var(--admin-accent-dark);
}

.admin-badge--archived {
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.admin-badge--preferred {
    background: rgba(29, 191, 115, 0.14);
    color: var(--admin-accent-dark);
}

.admin-badge--duplicate {
    background: rgba(217, 119, 6, 0.14);
    color: var(--admin-warning);
}

.admin-chip {
    background: #ecfdf5;
    border-radius: 999px;
    color: var(--admin-accent-dark);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
}

.admin-score {
    color: #111827;
    font-size: 1.7rem;
    font-weight: 300;
    letter-spacing: -0.05em;
}

.admin-mini-stats {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.admin-mini-stat {
    background: #f9fafb;
    border: 1px solid var(--admin-border);
    border-radius: 1rem;
    display: grid;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
}

.admin-mini-stat span {
    color: var(--admin-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-mini-stat strong {
    font-size: 1rem;
}

.admin-progress {
    background: #e5e7eb;
    border-radius: 999px;
    height: 8px;
    margin-top: 0.8rem;
    overflow: hidden;
}

.admin-progress__bar {
    background: linear-gradient(90deg, var(--admin-accent), #34d399);
    border-radius: 999px;
    display: block;
    height: 100%;
}

.admin-checklist {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.admin-checklist__item {
    align-items: center;
    display: flex;
    gap: 0.65rem;
}

.admin-checklist__dot {
    background: #d1d5db;
    border-radius: 999px;
    display: inline-flex;
    height: 0.72rem;
    width: 0.72rem;
}

.admin-checklist__dot.is-complete {
    background: var(--admin-accent);
}

.admin-response-tabs {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    margin-bottom: 1rem;
}

.admin-response-tabs--compact {
    margin-bottom: 0;
}

.admin-response-tab {
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: 1rem;
    color: var(--admin-text);
    display: grid;
    gap: 0.25rem;
    min-height: 5rem;
    padding: 0.95rem 1rem;
}

.admin-response-tab strong {
    font-size: 1.15rem;
}

.admin-response-tab.is-active,
.admin-response-tab:hover {
    border-color: #d1d5db;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.admin-response-tab--new strong {
    color: var(--admin-blue);
}

.admin-response-tab--late strong {
    color: var(--admin-warning);
}

.admin-response-tab--replied strong {
    color: var(--admin-accent-dark);
}

.admin-response-table {
    border: 1px solid var(--admin-border);
    border-radius: 1.1rem;
    overflow: hidden;
}

.admin-response-table table {
    border-collapse: collapse;
    width: 100%;
}

.admin-response-table th,
.admin-response-table td {
    border-bottom: 1px solid #edf0f3;
    padding: 0.9rem 0.95rem;
    text-align: left;
    vertical-align: top;
}

.admin-response-table th {
    background: #f9fafb;
    color: var(--admin-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-table-person {
    display: grid;
    gap: 0.2rem;
}

.admin-table-person span,
.admin-table-person p {
    color: var(--admin-muted);
    font-size: 0.82rem;
}

.admin-form-grid {
    display: grid;
    gap: 0.95rem;
}

.admin-form-grid--two {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.admin-form-grid--three {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-field {
    display: grid;
    gap: 0.42rem;
}

.admin-field label,
.admin-field__label {
    color: var(--admin-text);
    font-size: 0.89rem;
    font-weight: 700;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.95rem;
    color: var(--admin-text);
    min-height: 2.95rem;
    padding: 0.82rem 0.95rem;
    width: 100%;
}

.admin-card--compact .admin-field {
    gap: 0.35rem;
}

.admin-card--compact .admin-field input,
.admin-card--compact .admin-field select,
.admin-card--compact .admin-field textarea {
    min-height: 2.75rem;
    padding: 0.72rem 0.88rem;
}

.admin-field textarea {
    min-height: 6.8rem;
}

.admin-rich-editor input[type="hidden"] {
    display: none;
}

.admin-rich-editor trix-editor {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.95rem;
    color: var(--admin-text);
    min-height: 18rem;
    padding: 0.95rem 1rem;
}

.admin-rich-editor trix-toolbar .trix-button-group {
    border-color: #d1d5db;
    border-radius: 0.9rem;
    overflow: hidden;
}

.admin-rich-editor trix-toolbar .trix-button {
    background: #ffffff;
    border-bottom-color: #d1d5db;
    color: var(--admin-text);
}

.admin-rich-editor trix-toolbar .trix-button.trix-active {
    background: #eff6ff;
    color: var(--admin-blue);
}

.admin-rich-editor trix-toolbar .trix-button-group--file-tools {
    display: none;
}

.admin-rich-editor trix-toolbar {
    margin-bottom: 0.6rem;
}

.admin-field__hint {
    color: var(--admin-muted);
    font-size: 0.79rem;
    line-height: 1.55;
}

.admin-field__error {
    color: #b91c1c;
    font-size: 0.79rem;
}

.admin-list {
    display: grid;
    gap: 0.8rem;
}

.admin-list__item {
    align-items: flex-start;
    border: 1px solid #edf0f3;
    border-radius: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.9rem 1rem;
}

.admin-library {
    padding: 1.4rem;
}

.admin-library__stack {
    display: grid;
    gap: 1rem;
}

.admin-library__item {
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
    border: 1px solid #edf0f3;
    border-radius: 1.25rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1.1rem 1.15rem;
}

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

.admin-library__heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.admin-library__title {
    color: #111827;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.admin-library__description {
    color: var(--admin-muted);
    font-size: 0.96rem;
    line-height: 1.62;
    margin-top: 0.42rem;
    max-width: 62rem;
}

.admin-library__meta {
    align-items: center;
    color: #9ca3af;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.78rem;
    font-weight: 600;
    gap: 0.45rem;
    letter-spacing: 0.16em;
    margin-top: 0.72rem;
    text-transform: uppercase;
}

.admin-library__meta-divider {
    color: #cbd5e1;
    font-size: 0.75rem;
}

.admin-library__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: flex-end;
}

.admin-library__filters {
    margin-top: 1.1rem;
}

.admin-library__thumb {
    align-items: center;
    background: linear-gradient(180deg, #f8fbff, #eff5fb);
    border: 1px solid #e8eef6;
    border-radius: 1rem;
    display: inline-flex;
    height: 3.2rem;
    justify-content: center;
    overflow: hidden;
    width: 3.2rem;
}

.admin-library__thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.admin-library__title-row {
    align-items: center;
    display: flex;
    gap: 0.85rem;
}

.admin-chart-card {
    min-height: 300px;
}

.admin-chart-canvas {
    height: 240px;
    position: relative;
}

.admin-empty {
    color: var(--admin-muted);
    font-size: 0.92rem;
    padding: 1.2rem 0;
    text-align: center;
}

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

.admin-media-card__preview {
    align-items: center;
    background: linear-gradient(180deg, #f8fbff, #eef4fb);
    border-radius: 1rem;
    display: flex;
    height: 180px;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
}

.admin-media-card__preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.admin-media-card__meta {
    color: var(--admin-muted);
    display: grid;
    font-size: 0.82rem;
    gap: 0.2rem;
}

.media-picker {
    align-items: start;
    background: linear-gradient(180deg, #fcfdff 0%, #f8fbff 100%);
    border: 1px dashed #bfd8ff;
    border-radius: 1rem;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(104px, 126px) minmax(0, 1fr);
    padding: 0.8rem;
}

.media-picker__preview {
    align-items: center;
    background: linear-gradient(180deg, #eef5ff, #f8fbff);
    border: 1px solid #e5eefb;
    border-radius: 0.9rem;
    display: flex;
    height: 98px;
    justify-content: center;
    overflow: hidden;
    padding: 0.45rem;
}

.media-picker__preview img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.media-picker__meta {
    align-content: start;
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.media-picker__header {
    display: grid;
    gap: 0.18rem;
}

.media-picker__name {
    color: #53627d;
    display: -webkit-box;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.media-picker__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.media-picker__actions .admin-button {
    border-radius: 0.78rem;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
    font-size: 0.78rem;
    min-height: 1.95rem;
    min-width: 0;
    padding: 0.42rem 0.78rem;
}

.media-picker__actions .admin-button:hover {
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.media-picker__hint {
    margin-top: 0.08rem;
}

.admin-card--compact .media-picker {
    gap: 0.68rem;
    grid-template-columns: minmax(96px, 116px) minmax(0, 1fr);
}

.admin-card--compact .media-picker__preview {
    height: 92px;
}

.admin-card--compact .media-picker__actions {
    justify-content: flex-start;
}

.admin-card--compact .media-picker__actions .admin-button {
    flex: 0 0 auto;
}

.admin-card--compact .media-picker__hint {
    font-size: 0.75rem;
    line-height: 1.45;
}

.admin-advanced-panel {
    padding: 1.15rem 1.25rem;
}

.admin-advanced-panel summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.admin-advanced-panel summary::-webkit-details-marker {
    display: none;
}

.admin-pill-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-editor-shell {
    gap: 1rem;
}

.admin-toggle-row {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.admin-inline-switch {
    align-items: center;
    background: linear-gradient(180deg, #fcfdfd 0%, #f8fafb 100%);
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 3.2rem;
    padding: 0.8rem 0.95rem;
}

.admin-inline-switch--permission {
    align-items: flex-start;
    gap: 0.9rem;
    min-height: 0;
    padding: 0.7rem 0.85rem;
}

.admin-permission-grid {
    display: grid;
    gap: 1rem;
}

.admin-permission-card {
    border-style: solid;
}

.admin-permission-card__header {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
}

.admin-permission-meta {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.admin-permission-meta .admin-field__label {
    font-size: 0.86rem;
}

.admin-permission-meta .admin-field__hint {
    line-height: 1.45;
}

.admin-toggle {
    display: inline-flex;
    position: relative;
}

.admin-toggle input {
    display: none;
}

.admin-toggle span {
    background: #d1d5db;
    border-radius: 999px;
    display: inline-flex;
    height: 1.8rem;
    position: relative;
    width: 3.2rem;
}

.admin-toggle span::after {
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
    content: "";
    height: 1.35rem;
    left: 0.25rem;
    position: absolute;
    top: 0.225rem;
    transition: transform 0.2s ease;
    width: 1.35rem;
}

.admin-toggle input:checked + span {
    background: rgba(29, 191, 115, 0.36);
}

.admin-toggle input:checked + span::after {
    transform: translateX(1.35rem);
}

.top-menu #top-menu {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 1180px) {
    .admin-site-nav,
    .admin-topbar,
    .admin-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

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

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

    .admin-site-nav__groups {
        justify-content: flex-start;
    }

    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .admin-response-table {
        overflow-x: auto;
    }

    .media-picker {
        grid-template-columns: 1fr;
    }

    .media-picker__preview {
        height: 152px;
    }

    .admin-topbar__actions {
        flex-wrap: wrap;
    }

    .admin-card,
    .admin-card--feature {
        padding: 1rem;
    }

    .admin-inline-switch--permission {
        gap: 0.75rem;
        padding: 0.68rem 0.78rem;
    }

    .admin-library {
        padding: 1rem;
    }

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

    .admin-library__actions {
        justify-content: flex-start;
    }
}
