/* Judemy Admin — dashboard shell (scalable, token-based) */
:root {
    --adm-bg: #0b1120;
    --adm-surface: #111827;
    --adm-elevated: #1e293b;
    --adm-border: rgba(148, 163, 184, 0.12);
    --adm-text: #e2e8f0;
    --adm-muted: #94a3b8;
    --adm-accent: #14b8a6;
    --adm-accent2: #a78bfa;
    --adm-danger: #f87171;
    --adm-radius: 12px;
    --adm-sidebar-w: 260px;
    --adm-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --adm-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.adm-root {
    margin: 0;
    min-height: 100vh;
    font-family: var(--adm-font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--adm-text);
    background: var(--adm-bg);
    background-image:
        radial-gradient(ellipse 120% 80% at 10% -20%, rgba(20, 184, 166, 0.12), transparent 50%),
        radial-gradient(ellipse 100% 60% at 100% 0%, rgba(167, 139, 250, 0.1), transparent 45%);
}

.adm-skip {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: var(--adm-accent);
    color: #0f172a;
    font-weight: 600;
    border-radius: 6px;
}

.adm-skip:focus {
    left: 1rem;
    top: 1rem;
}

.adm-app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.adm-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--adm-sidebar-w);
    z-index: 100;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.92);
    border-right: 1px solid var(--adm-border);
    backdrop-filter: blur(12px);
    transform: translateX(0);
    transition: transform 0.2s ease;
}

.adm-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--adm-border);
}

.adm-sidebar__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #14b8a6, #7c3aed);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}

.adm-sidebar__titles {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.adm-sidebar__app {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adm-sidebar__ver {
    font-size: 0.7rem;
    color: var(--adm-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.adm-nav {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}

.adm-nav__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: var(--adm-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.adm-nav__link:hover {
    background: rgba(148, 163, 184, 0.08);
    color: var(--adm-text);
}

.adm-nav__link--active {
    background: rgba(20, 184, 166, 0.12);
    color: var(--adm-accent);
}

.adm-nav__ico {
    display: flex;
    opacity: 0.9;
}

.adm-ecosystem {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--adm-border);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.75rem;
}

.adm-ecosystem__label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--adm-muted);
    margin-bottom: 0.15rem;
}

.adm-ecosystem__link {
    color: var(--adm-accent);
    text-decoration: none;
    padding: 0.2rem 0;
}

.adm-ecosystem__link:hover {
    text-decoration: underline;
}

.adm-sidebar__foot {
    padding: 1rem;
    border-top: 1px solid var(--adm-border);
    font-size: 0.75rem;
}

.adm-role {
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
    margin-bottom: 0.75rem;
}

.adm-role__badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--adm-danger);
    margin-bottom: 0.35rem;
}

.adm-role__text {
    color: var(--adm-muted);
    line-height: 1.4;
}

.adm-rbac-hint {
    color: var(--adm-muted);
    line-height: 1.45;
}

.adm-rbac-hint__title {
    display: block;
    color: var(--adm-text);
    font-size: 0.7rem;
    margin-bottom: 0.35rem;
}

.adm-tag {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
}

.adm-tag--super {
    background: rgba(167, 139, 250, 0.2);
    color: #c4b5fd;
}

.adm-tag--staff {
    background: rgba(20, 184, 166, 0.15);
    color: #5eead4;
}

/* Main shell */
.adm-shell {
    flex: 1;
    margin-left: var(--adm-sidebar-w);
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.adm-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    background: rgba(11, 17, 32, 0.85);
    border-bottom: 1px solid var(--adm-border);
    backdrop-filter: blur(10px);
}

.adm-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.1);
    cursor: pointer;
}

.adm-menu-btn__bar {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--adm-text);
    border-radius: 1px;
}

.adm-topbar__center {
    flex: 1;
    min-width: 0;
}

.adm-topbar__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.adm-topbar__sub {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: var(--adm-muted);
}

.adm-env-pill {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.15);
    color: var(--adm-accent);
    border: 1px solid rgba(20, 184, 166, 0.35);
}

.adm-main {
    flex: 1;
    padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 3rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Hero + stats */
.adm-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    box-shadow: var(--adm-shadow);
}

.adm-hero__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.adm-hero__lead {
    margin: 0;
    max-width: 62ch;
    color: var(--adm-muted);
    font-size: 0.95rem;
}

.adm-hero__lead strong {
    color: var(--adm-text);
}

.adm-hero__stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.adm-stat {
    min-width: 120px;
    padding: 0.75rem 1rem;
    background: var(--adm-elevated);
    border-radius: 10px;
    border: 1px solid var(--adm-border);
}

.adm-stat__value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--adm-accent2);
}

.adm-stat__label {
    font-size: 0.7rem;
    color: var(--adm-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Tiles */
.adm-grid--tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.adm-tile {
    padding: 1.25rem;
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    scroll-margin-top: 100px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.adm-tile:hover {
    border-color: rgba(20, 184, 166, 0.35);
    box-shadow: 0 12px 40px -16px rgba(0, 0, 0, 0.4);
}

.adm-tile__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.adm-tile__icon {
    display: flex;
    color: var(--adm-accent);
}

.adm-tile__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.adm-tile__desc {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--adm-muted);
}

.adm-tile__meta {
    margin: 0 0 1rem;
    font-size: 0.75rem;
}

.adm-tile__meta dt {
    color: var(--adm-muted);
    font-weight: 600;
    margin-top: 0.5rem;
}

.adm-tile__meta dt:first-child {
    margin-top: 0;
}

.adm-tile__meta dd {
    margin: 0.15rem 0 0;
}

.adm-tile__extlink {
    color: var(--adm-accent);
    font-size: 0.75rem;
    word-break: break-all;
}

.adm-code {
    font-size: 0.7rem;
    word-break: break-all;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--adm-border);
}

.adm-tile__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.adm-btn {
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--adm-border);
    cursor: not-allowed;
    opacity: 0.55;
    background: transparent;
    color: var(--adm-muted);
}

.adm-btn--ghost {
    border-style: dashed;
}

a.adm-btn--link {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    opacity: 1;
    border-style: solid;
    color: var(--adm-accent);
    border-color: rgba(20, 184, 166, 0.45);
}

a.adm-btn--link:hover {
    filter: brightness(1.08);
}

/* Detail panels */
.adm-panels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.adm-panel {
    padding: 1.25rem 1.5rem;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
}

.adm-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.adm-panel__title {
    margin: 0;
    font-size: 1.05rem;
}

.adm-panel__pill {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(167, 139, 250, 0.12);
    color: #c4b5fd;
}

.adm-panel__body {
    margin: 0;
    font-size: 0.9rem;
    color: var(--adm-muted);
    max-width: 85ch;
}

/* Mobile */
@media (max-width: 900px) {
    .adm-menu-btn {
        display: flex;
    }

    .adm-sidebar {
        transform: translateX(-100%);
    }

    .adm-app.is-nav-open .adm-sidebar {
        transform: translateX(0);
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
    }

    .adm-shell {
        margin-left: 0;
    }

    .adm-app.is-nav-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
    }
}

/* Legacy page head (other admin pages) */
.adm-page-head {
    margin-bottom: 1.5rem;
}

.adm-page-head__title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.adm-page-head__lead {
    margin: 0;
    color: var(--adm-muted);
    font-size: 0.9rem;
    max-width: 70ch;
}

.adm-banner {
    margin-top: 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

.adm-banner--info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
}

.adm-banner--warn {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fcd34d;
}

.adm-banner--error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

/* —— Judemind users — premium module UI —— */
.adm-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.adm-jm {
    --jm-accent: #2dd4bf;
    --jm-accent-dim: rgba(45, 212, 191, 0.14);
    --jm-line: rgba(148, 163, 184, 0.14);
}

.adm-jm-banner {
    margin-top: 0;
    margin-bottom: 0;
}

.adm-jm-banner + .adm-jm-banner {
    margin-top: 0.75rem;
}

.adm-jm-banner--help {
    text-align: left;
    max-width: none;
}

.adm-jm-help {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #fecaca;
}

.adm-jm-help__p {
    margin: 0 0 0.65rem;
}

.adm-jm-help__p:last-of-type {
    margin-bottom: 0;
}

.adm-jm-help__debug {
    margin: 0.75rem 0 0;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    font-size: 0.78rem;
    color: #fde68a;
}

.adm-jm-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    padding: 1.5rem 1.75rem;
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.92) 100%);
    border: 1px solid var(--jm-line);
    box-shadow:
        0 0 0 1px rgba(45, 212, 191, 0.06),
        0 24px 48px -24px rgba(0, 0, 0, 0.55);
    position: relative;
    overflow: hidden;
}

.adm-jm-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #14b8a6, #7c3aed, #a78bfa);
    opacity: 0.95;
}

.adm-jm-hero__main {
    flex: 1;
    min-width: min(100%, 280px);
    position: relative;
    z-index: 1;
}

.adm-jm-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--jm-accent);
}

.adm-jm-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.adm-jm-lead {
    margin: 0;
    max-width: 52ch;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--adm-muted);
}

.adm-jm-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    align-items: stretch;
}

.adm-jm-kpi {
    min-width: 100px;
    padding: 0.85rem 1.1rem;
    margin: 0;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--jm-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.adm-jm-kpi--ok {
    border-color: rgba(34, 197, 94, 0.25);
    background: linear-gradient(160deg, rgba(34, 197, 94, 0.1), rgba(15, 23, 42, 0.5));
}

.adm-jm-kpi--warn {
    border-color: rgba(251, 191, 36, 0.28);
    background: linear-gradient(160deg, rgba(251, 191, 36, 0.08), rgba(15, 23, 42, 0.5));
}

.adm-jm-kpi__label {
    margin: 0 0 0.2rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--adm-muted);
}

.adm-jm-kpi__value {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--adm-text);
}

.adm-jm-kpi--ok .adm-jm-kpi__value {
    color: #86efac;
}

.adm-jm-kpi--warn .adm-jm-kpi__value {
    color: #fcd34d;
}

.adm-jm-panel {
    margin-top: 1.25rem;
    border-radius: 16px;
    background: var(--adm-surface);
    border: 1px solid var(--jm-line);
    box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.65);
    overflow: hidden;
}

.adm-jm-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, transparent 100%);
    border-bottom: 1px solid var(--jm-line);
}

.adm-jm-panel__title {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
}

.adm-jm-panel__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--jm-accent-dim);
    color: var(--jm-accent);
    box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.2);
}

.adm-jm-panel__icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.75;
}

.adm-jm-panel__h {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.adm-jm-panel__sub {
    margin: 0;
    font-size: 0.8rem;
    color: var(--adm-muted);
    line-height: 1.45;
    max-width: 42ch;
}

.adm-jm-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: min(100%, 280px);
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--jm-line);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.adm-jm-search:focus-within {
    border-color: rgba(45, 212, 191, 0.45);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.adm-jm-search__ico {
    display: flex;
    color: var(--adm-muted);
    opacity: 0.85;
}

.adm-jm-search__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--adm-text);
    font-family: inherit;
    font-size: 0.875rem;
    outline: none;
}

.adm-jm-search__input::placeholder {
    color: rgba(148, 163, 184, 0.65);
}

.adm-jm-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.adm-jm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.adm-jm-table th,
.adm-jm-table td {
    padding: 0.85rem 1.15rem;
    text-align: left;
    border-bottom: 1px solid var(--jm-line);
    vertical-align: middle;
}

.adm-jm-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--adm-muted);
    background: rgba(11, 17, 32, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--jm-line);
}

.adm-jm-th--narrow {
    width: 4rem;
}

.adm-jm-th--actions {
    width: 1%;
    text-align: right;
}

.adm-jm-table tbody tr {
    transition: background 0.12s ease;
}

.adm-jm-table tbody tr:hover {
    background: rgba(45, 212, 191, 0.04);
}

.adm-jm-table tbody tr:last-child td {
    border-bottom: none;
}

.adm-jm-cell--mono {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.95);
    font-size: 0.8rem;
}

.adm-jm-cell--name {
    color: var(--adm-text);
    font-weight: 500;
}

.adm-jm-cell--muted {
    color: var(--adm-muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.adm-jm-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.adm-jm-avatar {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #e0e7ff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.adm-jm-email {
    font-weight: 600;
    color: #f1f5f9;
    word-break: break-word;
}

.adm-jm-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.adm-jm-badge--active {
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.28);
}

.adm-jm-badge--restricted {
    background: rgba(248, 113, 113, 0.14);
    color: #fecaca;
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.28);
}

.adm-jm-actions {
    text-align: right;
    white-space: nowrap;
}

.adm-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.15rem 0 0.15rem 0.35rem;
    padding: 0.4rem 0.65rem;
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        background 0.12s ease;
    vertical-align: middle;
}

.adm-action-btn__svg {
    flex-shrink: 0;
    display: block;
}

.adm-action-btn__label {
    line-height: 1.2;
}

.adm-action-btn:hover {
    transform: translateY(-1px);
}

.adm-action-btn:active {
    transform: translateY(0);
}

.adm-action-btn--amber {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.35);
    color: #fde68a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.adm-action-btn--amber:hover {
    background: rgba(251, 191, 36, 0.16);
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.12);
}

.adm-action-btn--rose {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fecaca;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.adm-action-btn--rose:hover {
    background: rgba(248, 113, 113, 0.16);
}

.adm-action-btn--teal {
    background: rgba(45, 212, 191, 0.1);
    border-color: rgba(45, 212, 191, 0.38);
    color: #5eead4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.adm-action-btn--teal:hover {
    background: rgba(45, 212, 191, 0.16);
}

@media (max-width: 1100px) {
    .adm-jm-actions {
        white-space: normal;
    }

    .adm-action-btn {
        margin-bottom: 0.35rem;
    }
}

.adm-jm-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--jm-line);
}

.adm-jm-empty__icon {
    display: inline-flex;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: var(--jm-accent-dim);
    color: var(--jm-accent);
}

.adm-jm-empty__icon svg {
    width: 40px;
    height: 40px;
    opacity: 0.9;
}

.adm-jm-empty__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--adm-text);
}

.adm-jm-empty__text {
    margin: 0;
    font-size: 0.875rem;
    color: var(--adm-muted);
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
}

.adm-jm-status {
    margin: 0;
    padding: 0.75rem 1.35rem 1.15rem;
    font-size: 0.8rem;
    color: var(--adm-muted);
}

.adm-jm-status--error {
    color: #fecaca;
}

/* Dialog — Judemind email */
.adm-dialog {
    max-width: min(520px, 96vw);
    padding: 0;
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    background: var(--adm-surface);
    color: var(--adm-text);
    box-shadow: var(--adm-shadow);
}

.adm-dialog--jm {
    border-radius: 16px;
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow:
        0 0 0 1px rgba(45, 212, 191, 0.08),
        0 28px 56px -16px rgba(0, 0, 0, 0.65);
}

.adm-dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.adm-dialog__inner {
    padding: 1.35rem 1.5rem 1.5rem;
}

.adm-dialog__title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.adm-dialog__to {
    margin: 0 0 1.1rem;
    font-size: 0.85rem;
    color: var(--adm-muted);
}

.adm-dialog__to strong {
    color: #e2e8f0;
    font-weight: 600;
}

.adm-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    color: var(--adm-muted);
}

.adm-input,
.adm-textarea {
    width: 100%;
    margin-bottom: 0.9rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--adm-border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--adm-text);
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.adm-input:focus,
.adm-textarea:focus {
    outline: none;
    border-color: rgba(45, 212, 191, 0.45);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.adm-textarea {
    resize: vertical;
    min-height: 150px;
}

.adm-dialog__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    margin-top: 0.35rem;
}

.adm-btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.1s, filter 0.1s;
}

.adm-btn-solid:hover {
    filter: brightness(1.05);
}

.adm-btn-solid:active {
    transform: scale(0.98);
}

.adm-btn-solid--ico svg {
    flex-shrink: 0;
    opacity: 0.95;
}

.adm-btn-solid--ghost {
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--adm-border);
    color: var(--adm-muted);
}

.adm-btn-solid--ghost:hover {
    background: rgba(148, 163, 184, 0.12);
    color: var(--adm-text);
}

.adm-btn-solid--primary {
    background: linear-gradient(135deg, #14b8a6 0%, #6366f1 50%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

/* Generic table utilities (legacy) */
.adm-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    background: var(--adm-surface);
}

.adm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.adm-table th,
.adm-table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--adm-border);
}

.adm-table th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--adm-muted);
    background: rgba(0, 0, 0, 0.2);
}

.adm-table__muted {
    color: var(--adm-muted);
    font-size: 0.8rem;
}

.adm-table__actions {
    white-space: nowrap;
}

.adm-pill {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
}

.adm-pill--ok {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

.adm-pill--bad {
    background: rgba(248, 113, 113, 0.15);
    color: #fecaca;
}

.adm-empty {
    margin: 1rem 0;
    color: var(--adm-muted);
    font-size: 0.9rem;
}

.adm-footnote {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--adm-muted);
}

.adm-footnote--error {
    color: #fecaca;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .adm-sidebar {
        transition: none;
    }
}
