:root {
    color-scheme: dark;
    --bg: #07090d;
    --panel: rgba(24, 28, 36, .86);
    --panel-2: rgba(36, 41, 51, .72);
    --line: rgba(156, 166, 183, .22);
    --gold: #e4b947;
    --gold-light: #f3d77f;
    --text: #f7f7f4;
    --muted: #a6a7aa;
    --success: #4fd18b;
    --danger: #ff6b70;
    --radius: 18px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 85% 5%, rgba(228, 185, 71, .14), transparent 34%),
        linear-gradient(145deg, #06070a, #0d1119 54%, #07090d);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.topbar {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(20px, 5vw, 72px);
    border-bottom: 1px solid var(--line);
    background: rgba(7, 9, 13, .82);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 20;
}
.brand { flex: 0 0 auto; color: var(--gold); font-size: 24px; font-weight: 800; letter-spacing: .16em; line-height: 1; white-space: nowrap; }
.brand span { font-size: .48em; vertical-align: top; letter-spacing: .05em; }
.panel-navigation { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 18px; color: var(--muted); font-size: 14px; }
.nav-group { display: contents; }
.nav-group-toggle, .mobile-menu-heading, .nav-user { display: none; }
.nav-group-links { display: contents; }
.panel-navigation a:hover, .panel-navigation a.active { color: var(--gold-light); }
.panel-navigation a.active { font-weight: 800; }
.mobile-menu-button, .menu-backdrop { display: none; }

.shell { width: min(1240px, calc(100% - 32px)); margin: 32px auto 64px; }
.workspace-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(24, 28, 36, .72);
}
.toolbar-actions { display: flex; align-items: center; gap: 10px; }
.toolbar-actions form { margin: 0; }
.workspace-tabs { display: flex; align-items: center; gap: 6px; }
.workspace-tabs a { padding: 10px 16px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 800; }
.workspace-tabs a:hover, .workspace-tabs a.active { color: #080a0d; background: var(--gold-light); }
.panel {
    padding: clamp(20px, 3vw, 32px);
    margin-top: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, var(--panel), rgba(10, 12, 17, .92));
    box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
}
.section-title, .detail-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 24px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 4px; font-size: clamp(25px, 4vw, 38px); }
h2 { margin-bottom: 0; font-size: 24px; }
h3 { margin-bottom: 5px; }
.eyebrow { display: block; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .16em; margin-bottom: 7px; }
.back-link { display: block; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.back-link:hover { color: var(--text); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats.compact { grid-template-columns: repeat(4, 1fr); }
.stats article {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel-2);
}
.stats strong { display: block; font-size: 28px; color: var(--gold-light); }
.stats span { color: var(--muted); font-size: 13px; }
.active-text { color: var(--success) !important; }
.blocked-text { color: var(--danger) !important; }
.expired-text { color: var(--danger) !important; }
.expiring-text { color: var(--gold-light) !important; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stack { display: grid; gap: 15px; }
.span-2 { grid-column: span 2; }
label { display: grid; gap: 7px; color: #d6d8dd; font-size: 13px; font-weight: 650; }
input, textarea, select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 13px;
    color: var(--text);
    background: rgba(7, 9, 13, .72);
    outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(228, 185, 71, .12); }
textarea { resize: vertical; }
select option { color: #111; background: #fff; }

.button {
    width: fit-content;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 8px 15px;
    color: var(--text);
    background: rgba(44, 50, 62, .58);
    cursor: pointer;
    font-weight: 750;
    font-size: 13px;
}
.button:hover { transform: translateY(-1px); border-color: var(--gold); }
.button.primary { color: #090a0d; border-color: #f0d77c; background: linear-gradient(135deg, #f2d77e, #b77b10); }
.button.ghost { background: transparent; }
.button.danger { color: #ffd7d8; border-color: rgba(255, 107, 112, .5); background: rgba(116, 30, 35, .3); }
.button.small { min-height: 32px; padding: 6px 11px; font-size: 12px; }
.button.wide { width: 100%; }

.limit-pill, .device-count, .status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 750;
}
.limit-pill { color: var(--gold-light); border: 1px solid rgba(228, 185, 71, .35); background: rgba(228, 185, 71, .08); }
.device-count { color: #dce6ff; background: rgba(87, 126, 210, .16); }
.status.active { color: var(--success); background: rgba(79, 209, 139, .12); }
.status.blocked { color: var(--danger); background: rgba(255, 107, 112, .12); }
.status.expired { color: #ff969a; background: rgba(255, 107, 112, .16); }
.status.expiring { color: var(--gold-light); background: rgba(228, 185, 71, .14); }

.search { display: flex; gap: 8px; min-width: min(100%, 390px); }
.filter-bar {
    display: grid;
    grid-template-columns: minmax(140px, .7fr) minmax(150px, .8fr) minmax(260px, 1.7fr) auto auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(7, 9, 13, .46);
}
.filter-bar .button { min-height: 42px; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.admin-table-wrap { padding-bottom: 120px; margin-bottom: -120px; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
.admin-table { min-width: 1120px; }
.admin-table tbody tr:hover { background: rgba(228, 185, 71, .045); }
th, td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
td { font-size: 14px; }
td small { display: block; margin-top: 4px; color: var(--muted); }
.code {
    border: 0;
    border-radius: 8px;
    padding: 7px 10px;
    color: #090a0d;
    background: var(--gold);
    font-weight: 900;
    letter-spacing: .14em;
    cursor: pointer;
}
.static-code { border: 0; cursor: default; }
.row-actions { position: relative; width: fit-content; }
.row-actions summary {
    min-width: 42px;
    padding: 4px 10px 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text);
    font-size: 20px;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    list-style: none;
}
.row-actions summary::-webkit-details-marker { display: none; }
.row-actions summary:hover, .row-actions[open] summary { border-color: var(--gold); background: rgba(228, 185, 71, .09); }
.row-actions > div {
    position: absolute;
    z-index: 15;
    top: 38px;
    right: 0;
    width: 210px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #151922;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .55);
}
.row-actions a, .row-actions form button {
    display: block;
    width: 100%;
    padding: 10px 11px;
    border: 0;
    border-radius: 7px;
    color: var(--text);
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.row-actions a:hover, .row-actions form button:hover { color: var(--gold-light); background: rgba(228, 185, 71, .08); }
.row-actions form { margin: 0; }
.empty { color: var(--muted); text-align: center; padding: 30px; }

.detail-heading { align-items: flex-end; }
.hero-code {
    border: 1px solid rgba(243, 215, 127, .5);
    border-radius: 16px;
    padding: 16px 22px;
    color: var(--gold-light);
    background: rgba(228, 185, 71, .09);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: .18em;
    cursor: pointer;
}
.hero-code small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0; }
.inline-action { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.help-text { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.settings-panel { max-width: 780px; }
.settings-panel code { color: var(--gold-light); }
.preview-panel { max-width: 780px; border-color: rgba(228, 185, 71, .3); }
.preview-panel p { margin: 10px 0 0; color: #d6d8dd; line-height: 1.6; }
.reminder-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(228, 185, 71, .28);
    border-radius: 14px;
    background: rgba(228, 185, 71, .07);
}
.reminder-strip strong, .reminder-strip small { display: block; }
.reminder-strip small { margin-top: 4px; color: var(--muted); }
.subscription-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px;
    border: 1px solid rgba(228, 185, 71, .28);
    border-radius: 13px;
    background: rgba(228, 185, 71, .06);
}
.subscription-box h3 { margin-bottom: 7px; }
.subscription-box p { margin-bottom: 7px; color: #d8d9dc; line-height: 1.5; }
.subscription-box small { color: var(--muted); }
.subscription-box .button { flex: 0 0 auto; }
.provider-note {
    padding: 13px 15px;
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    color: #d6d8dd;
    background: rgba(7, 9, 13, .5);
    font-size: 13px;
    line-height: 1.55;
}
.sync-note { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.sync-error { display: block; margin-top: 5px; color: #ff9ba0; }
.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.device-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8, 10, 15, .55); }
.device-card.revoked { opacity: .58; }
.device-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--gold); background: rgba(228, 185, 71, .1); font-size: 22px; }
.device-info p, .device-info small { margin-bottom: 6px; color: var(--muted); }
.device-actions { grid-column: span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.device-actions .button { width: 100%; white-space: nowrap; }
.device-actions form { margin: 0; }
.api-settings-form { margin-top: 20px; }
.package-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.package-list div { padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: rgba(7, 9, 13, .48); }
.package-list strong, .package-list small { display: block; }
.package-list small { margin-top: 4px; color: var(--muted); }
.demo-package-panel { border-color: rgba(98, 176, 255, .28); }
.demo-package-list div { border-color: rgba(98, 176, 255, .22); }
.demo-registration-note { margin-bottom: 20px; }
.activation-submit { justify-self: start; min-width: 300px; }
.account-type { margin-top: 5px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.account-type.demo { color: #71b7ff; }
.account-type.paid { color: var(--success); }
.compact-empty { padding: 8px 0; text-align: left; }
.renewal-table { min-width: 760px; }
.renew-dialog {
    width: min(560px, calc(100% - 28px));
    padding: 26px;
    border: 1px solid rgba(228, 185, 71, .36);
    border-radius: 18px;
    color: var(--text);
    background: #11151d;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .7);
}
.renew-dialog::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(4px); }
.renew-dialog p { line-height: 1.55; }
.confirm-renew { grid-template-columns: auto 1fr; align-items: start; font-weight: 500; line-height: 1.45; }
.confirm-renew input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.alert { margin-bottom: 18px; padding: 12px 15px; border-radius: 10px; border: 1px solid var(--line); }
.alert.success { color: #bdf4d5; background: rgba(34, 110, 70, .28); }
.alert.error { color: #ffd3d5; background: rgba(121, 32, 38, .28); }
.password-control { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 8px; align-items: stretch; }
.password-toggle { border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: rgba(255,255,255,.055); cursor: pointer; font-size: 17px; }
.password-toggle:hover { border-color: rgba(228,185,71,.55); background: rgba(228,185,71,.1); }
.credential-health { display: block; margin-top: 7px; font-size: 12px; font-weight: 800; }
.credential-health.healthy { color: #8ee3b3; }
.credential-health.damaged { color: #ff9ba0; }
.credential-global-alert { line-height: 1.55; }

.auth-page { display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(430px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: rgba(17, 20, 27, .92); box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.auth-card .brand { margin-bottom: 26px; }
.auth-card p { color: var(--muted); }
.install-card { width: min(760px, 100%); }
footer { padding: 24px; color: #6f7279; text-align: center; font-size: 12px; }
.device-stats { grid-template-columns: repeat(3, 1fr); }
.demo-automation-hero { border-color: rgba(228, 185, 71, .34); }
.demo-link-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: end;
    gap: 14px;
    margin-top: 22px;
}
.demo-link-form .button { min-height: 42px; }
.demo-links-table { min-width: 1050px; }
.demo-link-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.demo-link-actions form { margin: 0; }
.platform-chips { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0; }
.platform-chips span { padding:8px 11px; border:1px solid rgba(228,185,71,.28); border-radius:999px; color:var(--gold-light); background:rgba(228,185,71,.07); font-size:12px; font-weight:800; }
.maxplayer-main-actions { margin-top:18px; }
.maxplayer-users-table { min-width:1180px; }
.maxplayer-row-actions { display:flex; flex-wrap:wrap; gap:7px; min-width:310px; }
.maxplayer-credentials { margin-top:10px; padding:12px; border:1px solid rgba(228,185,71,.28); border-radius:11px; background:rgba(228,185,71,.055); }
.maxplayer-credentials[hidden] { display:none; }
.maxplayer-credentials span,.maxplayer-credentials code,.maxplayer-credentials small { display:block; }
.maxplayer-credentials span { margin:7px 0 3px; color:var(--muted); font-size:10px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.maxplayer-credentials span:first-child { margin-top:0; }
.maxplayer-credentials code { color:var(--gold-light); font-size:13px; overflow-wrap:anywhere; user-select:all; }
.maxplayer-credentials small { margin-top:9px; color:var(--muted); line-height:1.4; }

@media (max-width: 860px) {
    body.menu-open { overflow: hidden; }
    .topbar { min-height: 62px; height: 62px; padding: 10px 16px; align-items: center; overflow: visible; }
    .brand { max-width: calc(100% - 104px); font-size: 20px; }
    .mobile-menu-button {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 7px 11px;
        border: 1px solid rgba(228,185,71,.38);
        border-radius: 9px;
        color: var(--gold-light);
        background: rgba(255,255,255,.045);
        font-weight: 800;
        cursor: pointer;
    }
    .mobile-menu-button span { font-size: 19px; line-height: 1; }
    .panel-navigation {
        display: none;
        position: fixed;
        z-index: 60;
        top: 72px;
        right: 12px;
        bottom: auto;
        left: 12px;
        width: auto;
        max-width: 420px;
        min-width: 0;
        height: auto;
        max-height: calc(100dvh - 84px);
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 14px 14px 20px;
        overflow-x: hidden;
        overflow-y: auto;
        color: var(--text);
        background: linear-gradient(165deg,#151a24,#090b10 72%);
        border: 1px solid rgba(228,185,71,.25);
        border-radius: 16px;
        box-shadow: 0 24px 70px rgba(0,0,0,.72);
        transform: none;
        transition: none;
        margin: 0;
    }
    .menu-open .panel-navigation { display: flex; transform: none; }
    .menu-backdrop {
        position: fixed;
        z-index: 50;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(0,0,0,.68);
        backdrop-filter: blur(3px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }
    .menu-open .menu-backdrop { display: block; opacity: 1; pointer-events: auto; }
    .mobile-menu-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 2px 2px 14px;
        margin-bottom: 8px;
        border-bottom: 1px solid var(--line);
    }
    .mobile-menu-heading strong { display: block; font-size: 18px; }
    .mobile-menu-close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: rgba(255,255,255,.05); font-size: 25px; cursor: pointer; }
    .nav-group { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); }
    .nav-group-toggle { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border: 0; border-radius: 9px; color: #f0f1f3; background: transparent; font-weight: 850; text-align: left; cursor: pointer; }
    .nav-group-toggle:hover, .nav-group.is-open .nav-group-toggle { color: var(--gold-light); background: rgba(228,185,71,.08); }
    .nav-chevron { font-size: 19px; line-height: 1; transition: transform .18s ease; }
    .nav-group.is-open .nav-chevron { transform: rotate(180deg); }
    .nav-group-links { display: none; padding: 4px 0 7px 12px; }
    .nav-group.is-open .nav-group-links { display: grid; gap: 3px; }
    .panel-navigation a { min-height: 42px; display: flex; align-items: center; padding: 8px 12px; border-radius: 9px; color: #c8cbd2; }
    .panel-navigation a:hover, .panel-navigation a.active { color: var(--gold-light); background: rgba(228,185,71,.1); }
    .panel-navigation a span small { display: block; margin-top: 2px; color: #818692; font-size: 10px; font-weight: 600; }
    .nav-account { margin-top: auto; border-bottom: 0; }
    .nav-user { display: block; margin: 3px 8px 8px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.035); overflow-wrap: anywhere; }
    .nav-user small, .nav-user strong { display: block; }
    .nav-user small { margin-bottom: 4px; color: #7f8490; font-size: 10px; }
    .nav-user strong { font-size: 12px; }
    .nav-logout { color: #ffb0b4 !important; }
    .shell { margin-top: 20px; }
    .stats, .stats.compact { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .section-title, .detail-heading { flex-direction: column; align-items: stretch; }
    .search { min-width: 0; width: 100%; }
    .workspace-toolbar { align-items: stretch; flex-direction: column; }
    .workspace-toolbar > .button { width: 100%; }
    .toolbar-actions { align-items: stretch; flex-direction: column; }
    .toolbar-actions .button { width: 100%; }
    .filter-bar { grid-template-columns: 1fr; }
    .device-stats { grid-template-columns: 1fr; }
    .device-grid { grid-template-columns: 1fr; }
    .device-card { grid-template-columns: auto 1fr; }
    .device-actions { grid-column: span 2; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .package-list { grid-template-columns: 1fr; }
    .activation-submit { justify-self: stretch; min-width: 0; width: 100%; }
    .hero-code { width: 100%; }
    .reminder-strip, .subscription-box { flex-direction: column; align-items: stretch; }
    .dialog-actions { flex-direction: column-reverse; }
    .dialog-actions .button { width: 100%; }
    .demo-link-form { grid-template-columns: 1fr; }
    .demo-link-form .button { width: 100%; }
    .table-wrap:has(.mobile-card-table) { overflow: visible; }
    .mobile-card-table, .mobile-card-table tbody { min-width: 0; display: block; width: 100%; }
    .mobile-card-table thead { display: none; }
    .mobile-card-table tbody { display: grid; gap: 13px; }
    .mobile-card-table tr.mobile-card-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 7px 14px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: rgba(13,16,23,.78);
        box-shadow: 0 10px 28px rgba(0,0,0,.2);
    }
    .mobile-card-table tr.mobile-card-row td {
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(95px, 34%) minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(156,166,183,.13);
        overflow-wrap: anywhere;
    }
    .mobile-card-table tr.mobile-card-row td:last-child { border-bottom: 0; }
    .mobile-card-table tr.mobile-card-row td::before {
        content: attr(data-label);
        color: #7f8490;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
    }
    .mobile-card-table tr.mobile-card-row .row-actions { justify-self: end; }
    .mobile-card-table tr.mobile-card-row .row-actions > div { position: fixed; z-index: 90; top: auto; right: 16px; bottom: 16px; left: 16px; width: auto; max-height: 72vh; overflow-y: auto; }
    .maxplayer-users-table { min-width:0; }
    .maxplayer-row-actions { min-width:0; display:grid; grid-template-columns:1fr; justify-self:stretch; width:100%; }
    .maxplayer-row-actions .button { width:100%; }
    .maxplayer-credentials { grid-column:1 / -1; width:100%; }
    .mobile-card-table tr:has(.empty) { display: block; }
    .mobile-card-table tr:has(.empty) .empty { display: block; width: 100%; }
}
/* ONVIRA multi-DNS and reseller workspace */
.dns-grid,.reseller-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px;margin:18px 0}
.dns-card,.reseller-card{min-width:0}.reseller-card{padding:20px;border:1px solid var(--line,#303640);border-radius:16px;background:rgba(255,255,255,.025)}
.reseller-card fieldset,.form-grid fieldset{display:flex;flex-wrap:wrap;gap:12px;border:1px solid var(--line,#303640);border-radius:12px;padding:14px}.reseller-card fieldset label,.form-grid fieldset label{display:flex;align-items:center;gap:7px}.reseller-card input[type=checkbox],.form-grid input[type=checkbox]{width:auto}
@media(max-width:720px){.dns-grid,.reseller-grid{grid-template-columns:1fr}}
.row-action-label{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;color:var(--text);font-size:.88rem}
.row-action-label select{width:auto;min-width:68px;padding:6px 8px}
