:root {
    color-scheme: dark;
    --bg: #0a0a0f;
    --bg-soft: #111118;
    --panel: rgba(21, 21, 31, 0.88);
    --panel-solid: #15151f;
    --panel-hover: #1c1c2a;
    --text: #ffffff;
    --muted: #a0a0b8;
    --subtle: #6b6b80;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --brand: #e63946;
    --brand-hot: #ff6b6b;
    --brand-warm: #ff8e53;
    --brand-glow: rgba(230, 57, 70, 0.34);
    --danger-bg: rgba(230, 57, 70, 0.14);
    --danger-line: rgba(230, 57, 70, 0.45);
    --danger-text: #ffb3b8;
    --success-bg: rgba(45, 212, 140, 0.14);
    --success-text: #8ef0bf;
    --warning-bg: rgba(255, 183, 77, 0.14);
    --warning-text: #ffd08a;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
    --shadow-glow: 0 0 42px var(--brand-glow);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(135deg, #09090e 0%, #101017 52%, #170b10 100%);
    background-size: 46px 46px, 46px 46px, 100% 100%;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(115deg, transparent 0%, rgba(230, 57, 70, 0.13) 38%, transparent 64%),
        linear-gradient(245deg, transparent 0%, rgba(255, 107, 107, 0.08) 44%, transparent 72%);
    opacity: 0.9;
    animation: backgroundSweep 14s ease-in-out infinite alternate;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.46));
    pointer-events: none;
}

@keyframes backgroundSweep {
    from {
        transform: translate3d(-2%, -1%, 0) scale(1);
        filter: saturate(0.9);
    }
    to {
        transform: translate3d(2%, 1%, 0) scale(1.03);
        filter: saturate(1.2);
    }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(230, 57, 70, 0.18);
    }
    50% {
        box-shadow: 0 0 36px rgba(230, 57, 70, 0.42);
    }
}

@keyframes sheen {
    from {
        transform: translateX(-120%);
    }
    to {
        transform: translateX(120%);
    }
}

.shell {
    width: min(1360px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 48px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    animation: riseIn 0.65s ease both;
}

.brand-lockup {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 18px;
}

.brand-logo {
    width: clamp(86px, 13vw, 136px);
    height: auto;
    filter: drop-shadow(0 0 18px rgba(230, 57, 70, 0.26));
    transition: transform 0.28s ease, filter 0.28s ease;
}

.brand-logo:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 28px rgba(230, 57, 70, 0.48));
}

.eyebrow,
.welcome-text {
    margin: 0 0 5px;
    color: var(--brand-hot);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.welcome-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.welcome-subtitle {
    margin: 0;
    color: #ffffff;
    font-size: clamp(32px, 7vw, 56px);
    font-weight: 900;
    letter-spacing: 0.03em;
    line-height: 1.05;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 0.95;
}

h2 {
    margin-bottom: 10px;
    font-size: 22px;
}

a {
    color: var(--brand-hot);
    text-decoration: none;
}

a:hover {
    color: #fff;
}

.button {
    position: relative;
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(230, 57, 70, 0.8);
    border-radius: var(--radius);
    padding: 0 20px;
    background: linear-gradient(135deg, var(--brand), var(--brand-hot));
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.topbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.topbar-actions .button,
.admin-tab {
    min-height: 46px;
    white-space: nowrap;
}

.admin-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(230, 57, 70, 0.62);
    border-radius: var(--radius);
    padding: 0 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(230, 57, 70, 0.06)),
        rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 0 22px rgba(230, 57, 70, 0.12);
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-tab::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    opacity: 0;
    transform: translateX(-120%);
}

.admin-tab:hover,
.admin-tab.active {
    border-color: rgba(255, 107, 107, 0.94);
    background: rgba(230, 57, 70, 0.16);
    color: #fff;
    box-shadow: 0 0 34px rgba(230, 57, 70, 0.25);
    transform: translateY(-2px);
}

.admin-tab:hover::before {
    opacity: 1;
    animation: sheen 0.75s ease;
}

.button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
    transform: translateX(-120%);
}

.button:hover {
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 15px 42px rgba(230, 57, 70, 0.42);
}

.button:hover::before {
    animation: sheen 0.75s ease;
}

.button.secondary {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.button.secondary:hover {
    background: rgba(230, 57, 70, 0.16);
}

.notice,
.connect-panel,
.auth-panel,
.table-wrap,
.access-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.notice::before,
.connect-panel::before,
.auth-panel::before,
.table-wrap::before,
.access-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    opacity: 0.34;
}

.notice {
    margin-bottom: 18px;
    padding: 16px 18px;
    color: var(--muted);
    animation: riseIn 0.7s ease both;
    overflow-wrap: anywhere;
}

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

.notice.error {
    border-color: var(--danger-line);
    background: var(--danger-bg);
    color: var(--danger-text);
}

.notice.success {
    border-color: rgba(45, 212, 140, 0.4);
    background: var(--success-bg);
    color: var(--success-text);
}

.connect-panel {
    max-width: 680px;
    padding: 28px;
    animation: riseIn 0.76s ease both;
}

.connect-panel p,
.auth-panel p {
    color: var(--muted);
    line-height: 1.6;
}

.auth-panel {
    max-width: 560px;
    padding: 28px;
    animation: riseIn 0.76s ease both;
}

.auth-panel h2 {
    text-align: center;
}

.auth-page .shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 28px 0;
}

.auth-page .topbar {
    position: relative;
    width: min(560px, 100%);
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 40px 20px 28px;
    background:
        radial-gradient(circle at 50% 10%, rgba(230, 57, 70, 0.24), transparent 52%),
        rgba(255, 255, 255, 0.035);
    box-shadow: 0 0 55px rgba(230, 57, 70, 0.18);
    backdrop-filter: blur(16px);
    margin-bottom: 0;
    text-align: center;
}

.auth-page .topbar::before {
    content: "";
    position: absolute;
    inset: -40%;
    z-index: -1;
    background: conic-gradient(from 120deg, transparent, rgba(230, 57, 70, 0.2), transparent, rgba(255, 107, 107, 0.12), transparent);
    animation: authGlowSpin 10s linear infinite;
}

.auth-page .brand-lockup {
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    margin-top: 18px;
}

.auth-page .brand-logo {
    width: min(132px, 38vw);
}

.auth-page .welcome-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.auth-page .welcome-subtitle {
    font-size: clamp(28px, 8vw, 42px);
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1.04;
    margin: 0;
}

.auth-page .eyebrow {
    display: none;
}

.auth-page h1 {
    font-size: clamp(34px, 9vw, 48px);
}

.auth-page .auth-panel {
    width: min(560px, 100%);
}

.auth-page::before {
    background:
        radial-gradient(circle at 22% 18%, rgba(230, 57, 70, 0.26), transparent 28%),
        radial-gradient(circle at 78% 72%, rgba(255, 107, 107, 0.18), transparent 30%),
        linear-gradient(115deg, transparent 0%, rgba(230, 57, 70, 0.13) 38%, transparent 64%);
    animation: authGlowDrift 8s ease-in-out infinite alternate;
}

@keyframes authGlowSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes authGlowDrift {
    from {
        transform: translate3d(-1.5%, -1%, 0) scale(1);
        opacity: 0.82;
    }
    to {
        transform: translate3d(1.5%, 1%, 0) scale(1.05);
        opacity: 1;
    }
}

.auth-form {
    display: grid;
    gap: 14px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 14px;
    margin-bottom: 18px;
    animation: riseIn 0.72s ease 0.04s both;
}

.filters label {
    flex: 1 1 240px;
}

.filters label:first-child {
    flex-basis: 360px;
}

.filters .button {
    flex: 0 0 174px;
}

label {
    min-width: 0;
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

select,
input[type="text"],
input[type="password"],
.locked-field,
.copy-field {
    width: 100%;
    min-width: 0;
    height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 0 36px 0 13px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
    font-weight: 800;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

select:focus,
select:hover,
input[type="text"]:focus,
input[type="text"]:hover,
input[type="password"]:focus,
input[type="password"]:hover,
.copy-field:focus,
.copy-field:hover {
    border-color: rgba(230, 57, 70, 0.78);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.14), var(--shadow-glow);
}

.locked-field,
.copy-field {
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-field {
    width: min(560px, 100%);
    margin-top: 10px;
    color: var(--muted);
}

option {
    background: var(--panel-solid);
    color: var(--text);
}

.stats-grid,
.stat {
    display: none;
}

.page-groups {
    display: grid;
    gap: 16px;
    animation: riseIn 0.78s ease 0.08s both;
}

.access-panel {
    margin-bottom: 18px;
    animation: riseIn 0.76s ease 0.06s both;
}

.admin-login-panel {
    width: min(520px, 100%);
    margin-right: auto;
    margin-left: auto;
}

.admin-login-panel .access-form,
.moderator-create-form {
    grid-template-columns: 1fr;
}

.admin-login-panel .access-form .checkbox-panel,
.admin-login-panel .access-form .button,
.moderator-create-form .checkbox-panel,
.moderator-create-form .button {
    grid-column: auto;
}

.moderator-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 16px;
    align-items: start;
    animation: riseIn 0.76s ease 0.06s both;
}

.moderator-box {
    min-width: 0;
    margin-bottom: 0;
}

.register-box {
    position: sticky;
    top: 18px;
}

.details-box .grant-list {
    padding-top: 4px;
}

.access-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    align-items: end;
    gap: 14px;
    padding: 4px 20px 20px;
}

.access-form .checkbox-panel,
.access-form .button {
    grid-column: 1 / -1;
}

.checkbox-panel {
    display: grid;
    max-height: 160px;
    gap: 8px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    background: rgba(255, 255, 255, 0.035);
}

.check-row {
    display: flex;
    min-height: 32px;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    padding: 6px 8px;
    color: var(--text);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.check-row:hover {
    background: rgba(230, 57, 70, 0.1);
}

.check-row input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
}

.grant-list {
    display: grid;
    gap: 10px;
    padding: 0 20px 20px;
}

.grant-card {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.grant-card strong,
.grant-card small {
    display: block;
}

.grant-card small {
    margin-top: 4px;
    color: var(--subtle);
}

.user-edit-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
}

.user-edit-form .checkbox-panel,
.user-edit-form .button {
    grid-column: 1 / -1;
}

.delete-form {
    display: flex;
    justify-content: flex-end;
}

.table-wrap {
    overflow: hidden;
    transition: border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.page-group:hover {
    border-color: rgba(230, 57, 70, 0.54);
    transform: translateY(-2px);
    box-shadow: var(--shadow), var(--shadow-glow);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 0;
}

.section-heading > * {
    min-width: 0;
}

.section-heading.unframed {
    padding: 28px 0 12px;
}

.section-heading h2 {
    margin-bottom: 14px;
}

.section-heading span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.page-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.status-pill,
.link-button {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.status-pill.is-active {
    background: var(--success-bg);
    color: var(--success-text);
    box-shadow: 0 0 22px rgba(45, 212, 140, 0.16);
}

.status-pill.is-paused {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.status-pill.is-complete {
    background: rgba(160, 160, 184, 0.16);
    color: #d6d6e5;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-pill.is-problem {
    background: var(--danger-bg);
    color: var(--danger-text);
    animation: pulseGlow 2.4s ease-in-out infinite;
}

.status-pill.is-neutral {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.link-button {
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--brand-hot);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.link-button:hover {
    border-color: var(--brand-hot);
    color: #fff;
    transform: translateY(-1px);
}

.link-button.danger {
    color: var(--danger-text);
}

.link-button.danger:hover {
    border-color: var(--danger-line);
}

.post-button {
    position: relative;
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(230, 57, 70, 0.72);
    border-radius: 999px;
    padding: 6px 14px;
    background:
        linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box,
        linear-gradient(135deg, var(--brand), var(--brand-hot)) border-box;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 0 24px rgba(230, 57, 70, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: translateX(-120%);
}

.post-button:hover {
    border-color: rgba(255, 255, 255, 0.68);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 34px rgba(230, 57, 70, 0.42);
}

.post-button:hover::after {
    animation: sheen 0.75s ease;
}

.table-scroll {
    overflow-x: auto;
}

.table-scroll::-webkit-scrollbar {
    height: 10px;
}

.table-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

.table-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--brand-hot));
}

table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

th,
td {
    border-top: 1px solid var(--line);
    padding: 14px 16px;
    text-align: right;
    white-space: nowrap;
}

th:first-child,
td:first-child {
    text-align: left;
    white-space: normal;
}

th {
    color: var(--subtle);
    font-size: 12px;
    text-transform: uppercase;
}

td {
    color: rgba(255, 255, 255, 0.9);
}

td strong {
    color: #fff;
}

td small {
    display: block;
    margin-top: 4px;
    color: var(--subtle);
}

tbody tr {
    transition: background 0.18s ease;
}

tbody tr:hover {
    background: rgba(230, 57, 70, 0.07);
}

.ads-table {
    min-width: 1320px;
}

.ads-table th,
.ads-table td {
    text-align: left;
    white-space: normal;
    vertical-align: top;
}

.ads-table td:nth-child(2),
.ads-table td:nth-child(5),
.ads-table td:nth-child(6),
.ads-table td:nth-child(7),
.ads-table td:nth-child(8),
.ads-table td:nth-child(9) {
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .shell {
        width: min(100% - 24px, 1360px);
    }

    .moderator-layout {
        grid-template-columns: 1fr;
    }

    .register-box {
        position: static;
    }

    .access-form,
    .user-edit-form {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .admin-login-panel .access-form,
    .moderator-create-form {
        grid-template-columns: 1fr;
    }

    .filters .button {
        flex: 1 1 180px;
    }
}

.muted {
    color: var(--subtle);
}

.empty {
    height: 120px;
    color: var(--muted);
    text-align: center !important;
}

.empty.standalone {
    display: grid;
    margin: 0;
    place-items: center;
}

code {
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 2px 5px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

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

@media (max-width: 760px) {
    .shell {
        width: min(100% - 20px, 1360px);
        padding-top: 20px;
    }

    .topbar,
    .brand-lockup,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand-lockup {
        gap: 12px;
    }

    .topbar {
        gap: 16px;
    }

    .brand-logo {
        width: min(112px, 42vw);
    }

    h1 {
        font-size: clamp(32px, 12vw, 44px);
    }

    h2 {
        font-size: 20px;
    }

    .topbar-actions,
    .topbar-actions .button,
    .topbar-actions .admin-tab {
        width: 100%;
    }

    .filters,
    .filters label,
    .access-form,
    .user-edit-form,
    .grant-card,
    select,
    .button {
        flex-basis: auto;
        width: 100%;
    }

    .access-form,
    .user-edit-form,
    .grant-card {
        grid-template-columns: 1fr;
    }

    .access-form .checkbox-panel,
    .access-form .button,
    .user-edit-form .checkbox-panel,
    .user-edit-form .button {
        grid-column: auto;
    }

    .page-summary {
        justify-content: flex-start;
    }

    .auth-page .shell {
        align-content: center;
        min-height: 100svh;
    }

    .auth-page .topbar,
    .auth-page .auth-panel {
        width: 100%;
    }

    .auth-panel,
    .connect-panel {
        padding: 22px;
    }

    .access-panel .section-heading,
    .grant-list,
    .access-form {
        padding-left: 14px;
        padding-right: 14px;
    }

    .checkbox-panel {
        max-height: 220px;
    }
}

@media (max-width: 640px) {
    .page-group {
        background: transparent;
        box-shadow: none;
    }

    .page-group:hover {
        transform: none;
        box-shadow: none;
    }

    .page-group .table-scroll {
        overflow: visible;
    }

    .ads-table,
    .ads-table thead,
    .ads-table tbody,
    .ads-table tr,
    .ads-table th,
    .ads-table td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .ads-table thead {
        display: none;
    }

    .ads-table tbody {
        display: grid;
        gap: 12px;
        padding: 0 12px 14px;
    }

    .ads-table tr {
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.035);
        padding: 12px;
    }

    .ads-table td {
        display: grid;
        grid-template-columns: minmax(92px, 0.45fr) minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        border-top: 0;
        padding: 9px 0;
        text-align: left;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .ads-table td::before {
        content: attr(data-label);
        color: var(--subtle);
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .post-button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .shell {
        width: min(100% - 14px, 1360px);
        padding-bottom: 28px;
    }

    .notice,
    .auth-panel,
    .connect-panel {
        padding: 18px;
    }

    .section-heading {
        padding: 16px 14px 0;
    }

    .section-heading.unframed {
        padding: 22px 0 10px;
    }

    select,
    input[type="text"],
    input[type="password"],
    .locked-field,
    .copy-field {
        min-width: 0;
        padding-right: 12px;
    }

    .ads-table td {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}
