:root {
    --bg: #050505;
    --bg2: #0b0b0b;
    --panel: #111111;
    --panel2: #161616;
    --line: #2b2418;
    --line2: #3f311c;
    --text: #ece7dc;
    --muted: #a59a86;
    --faint: #6f6658;
    --orange: #d9942f;
    --orange2: #ffb347;
    --yellow: #f0c15a;
    --danger: #ff6b6b;
    --success: #8ad66d;
    --purple: #7b4ab0;
    --purple2: #4d2775;
    --shadow: rgba(0, 0, 0, 0.55);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background-color: var(--bg);
    background:
        radial-gradient(circle at 20% 0%, rgba(217, 148, 47, 0.13), transparent 360px),
        radial-gradient(circle at 100% 100%, rgba(240, 193, 90, 0.08), transparent 420px),
        var(--bg);
}

body {
    margin: 0;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.018) 0px,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px,
            transparent 3px
        ),
        linear-gradient(180deg, rgba(255, 179, 71, 0.035), transparent 260px);
    font-family: "Inter", Verdana, Tahoma, Arial, sans-serif;
    font-size: 14px;
    text-transform: lowercase;
}

.site-logo,
.site-logo *,
.landing h1,
.username,
input,
textarea,
select,
code,
pre {
    text-transform: none;
}

a {
    color: var(--orange2);
    text-decoration: none;
}

a:hover {
    color: var(--yellow);
    text-decoration: underline;
}

/* Header */

.site-header {
    border-bottom: 1px solid var(--line2);
    background:
        linear-gradient(180deg, #19140c, #090909);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 3px 16px var(--shadow);
}

.site-header-inner {
    width: min(980px, calc(100% - 28px));
    margin: 0 auto;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    color: var(--text);
    font-size: 28px;
    font-family: "Diplomata", "Inter", Verdana, Tahoma, Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow:
        0 0 8px rgba(217, 148, 47, 0.55),
        1px 1px 0 #000;
}

.site-logo:hover {
    text-decoration: none;
}

.site-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 7px;
}

.site-nav a {
    color: #d9cbb5;
    font-size: 13px;
    padding: 7px 10px;
    border: 1px solid #2e271c;
    background:
        linear-gradient(180deg, #201a11, #0e0e0e);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        1px 1px 0 #000;
}

.site-nav a:hover {
    color: #fff0c9;
    border-color: var(--orange);
    text-decoration: none;
}

.site-nav a.nav-user-button {
    color: #1b1003;
    background:
        linear-gradient(180deg, #ffd27a, #d9942f 55%, #9d5e16);
    border-color: #f0c15a;
    font-weight: 800;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.48),
        1px 1px 0 #000,
        0 0 12px rgba(217, 148, 47, 0.18);
}

.site-nav a.nav-user-button:hover {
    color: #120b02;
    border-color: #ffd27a;
    filter: brightness(1.08);
}

/* Layout */

.page {
    width: min(980px, calc(100% - 28px));
    margin: 0 auto;
    padding: 18px 0 18px;
}

.card,
.landing-panel,
.terminal-card {
    border: 1px solid var(--line2);
    background:
        linear-gradient(180deg, rgba(255, 179, 71, 0.045), transparent 90px),
        linear-gradient(180deg, var(--panel2), var(--panel));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 16px 35px var(--shadow);
}

.card {
    padding: 22px;
    margin-bottom: 20px;
}

.card h1,
.card h2,
.card h3 {
    margin-top: 0;
}

/* Text */

h1,
h2,
h3 {
    font-family: "Inter", Verdana, Tahoma, Arial, sans-serif;
    color: #fff1c9;
    text-shadow: 1px 1px 0 #000;
    font-weight: 700;
}

h1 {
    margin: 0 0 18px;
    font-size: 38px;
    line-height: 1;
}

h2 {
    margin-bottom: 14px;
    font-size: 24px;
}

h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

p {
    color: var(--muted);
    line-height: 1.65;
}

strong {
    color: var(--text);
}

small {
    color: var(--faint);
    font-size: 12px;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 22px 0;
}

ul {
    color: var(--muted);
    line-height: 1.8;
}

.success {
    margin-top: 0;
    color: var(--success);
}

.error {
    margin-top: 0;
    color: var(--danger);
}

.muted {
    color: var(--faint);
}

/* Forms */

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    max-width: 430px;
    padding: 10px 11px;
    color: #f4ead8;
    background:
        linear-gradient(180deg, #080808, #121212);
    background-color: #0b0b0b;
    border: 1px solid #3a3327;
    outline: none;
    box-shadow:
        inset 1px 1px 4px #000,
        0 1px 0 rgba(255, 255, 255, 0.04);
    color-scheme: dark;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

select option {
    background-color: #0b0b0b;
    color: #f4ead8;
}

select option:checked {
    background-color: #d9942f;
    color: #1b1003;
}

select option:hover {
    background-color: #2a2114;
    color: #fff1c9;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--orange);
    box-shadow:
        inset 1px 1px 4px #000,
        0 0 0 2px rgba(217, 148, 47, 0.18);
}

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #4a3a22;
    background:
        linear-gradient(180deg, #080808, #121212);
    box-shadow:
        inset 1px 1px 4px #000,
        1px 1px 0 #000;
    cursor: pointer;
}

input[type="radio"] {
    border-radius: 999px;
}

input[type="checkbox"] {
    border-radius: 2px;
}

input[type="checkbox"]::before,
input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: transform 0.08s ease;
    background: var(--orange2);
    box-shadow: 0 0 8px rgba(255, 179, 71, 0.45);
}

input[type="checkbox"]::before {
    clip-path: polygon(14% 44%, 0 58%, 38% 96%, 100% 20%, 86% 8%, 36% 68%);
}

input[type="radio"]::before {
    border-radius: 999px;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    border-color: var(--orange);
    background:
        linear-gradient(180deg, #201a11, #0e0e0e);
}

input[type="checkbox"]:checked::before,
input[type="radio"]:checked::before {
    transform: scale(1);
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
    outline: none;
    box-shadow:
        inset 1px 1px 4px #000,
        0 0 0 2px rgba(217, 148, 47, 0.18);
}

input[type="color"] {
    width: 100%;
    max-width: 100%;
    height: 42px;
    padding: 4px;
    cursor: pointer;
}

input[type="file"] {
    cursor: pointer;
}

button,
.button {
    display: inline-block;
    min-height: 36px;
    padding: 9px 15px;
    color: #1b1003;
    background:
        linear-gradient(180deg, #ffd27a, #d9942f 55%, #9d5e16);
    border: 1px solid #f0c15a;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        2px 2px 0 #000;
    cursor: pointer;
    font-weight: 700;
}

button:hover,
.button:hover {
    color: #120b02;
    text-decoration: none;
    filter: brightness(1.08);
}

button:active,
.button:active {
    transform: translate(1px, 1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        1px 1px 0 #000;
}

button:disabled,
.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.25);
}

button:disabled:hover,
.button:disabled:hover {
    filter: grayscale(0.25);
}

.button.secondary {
    color: #f0dfbd;
    background:
        linear-gradient(180deg, #242017, #101010);
    border-color: #4a3a22;
}

.checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.checkbox-line input {
    margin: 0;
}

/* Tables */

table {
    width: 100%;
    border-collapse: collapse;
    background: #0b0b0b;
    border: 1px solid var(--line2);
    box-shadow: 2px 2px 0 #000;
}

th,
td {
    padding: 10px;
    border: 1px solid #2e271c;
    text-align: left;
}

th {
    color: #ffe1a1;
    background:
        linear-gradient(180deg, #2a2114, #151515);
    font-size: 12px;
    font-weight: 700;
}

td {
    color: var(--muted);
}

code {
    display: inline-block;
    padding: 0px 3px;
    color: #ffd982;
    background: #080808;
    border: 1px solid #3a2c18;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
}

/* Footer */

.site-footer {
    width: min(980px, calc(100% - 28px));
    margin: 0 auto;
    padding: 10px 0 10px;
    color: var(--faint);
    font-size: 12px;
    text-align: center;
    border-top: 1px solid rgba(217, 148, 47, 0.22);
    position: relative;
}

.site-footer::before {
    content: "";
    display: block;
    width: 90px;
    height: 1px;
    margin: -11px auto 8px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--orange),
        var(--yellow),
        var(--orange),
        transparent
    );
    box-shadow: 0 0 12px rgba(217, 148, 47, 0.55);
}

.footer-dot {
    color: var(--orange);
}

.footer-links {
    margin-top: 4px;
    font-size: 12px;
}

.footer-links a {
    color: var(--faint);
}

.footer-links a:hover {
    color: var(--orange2);
}

/* Home */

.permission-card {
    max-width: 620px;
    margin: 50px auto 20px;
}

.permission-card h1 {
    margin-bottom: 12px;
}

.permission-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.home-shell {
    display: grid;
    gap: 20px;
}

.chat-placeholder-card {
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.chat-placeholder-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.chat-placeholder-header h2 {
    margin-bottom: 4px;
}

.chat-placeholder-header p {
    margin: 0;
}

.chat-placeholder-box {
    flex: 1;
    min-height: 350px;
    max-height: 502px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid #2e271c;
    background:
        linear-gradient(180deg, rgba(255, 179, 71, 0.025), transparent 120px),
        #080808;
    box-shadow:
        inset 1px 1px 5px #000,
        1px 1px 0 #000;
    overflow-y: auto;
}

.chat-placeholder-box::-webkit-scrollbar {
    width: 10px;
}

.chat-placeholder-box::-webkit-scrollbar-track {
    background: #070707;
    border-left: 1px solid #2e271c;
}

.chat-placeholder-box::-webkit-scrollbar-thumb {
    background:
        linear-gradient(180deg, #4a3a22, #201a11);
    border: 1px solid #6f542c;
}

.chat-placeholder-message {
    width: fit-content;
    max-width: 78%;
    padding: 12px;
    border: 1px solid #342a1d;
    background:
        linear-gradient(180deg, #141414, #0d0d0d);
    box-shadow: 1px 1px 0 #000;
}

.chat-message-own {
    align-self: flex-end;
    border-color: #4a3a22;
    background:
        linear-gradient(180deg, rgba(217, 148, 47, 0.13), rgba(217, 148, 47, 0.04)),
        #0d0d0d;
}

.chat-message-bot {
    border-color: #7b4ab0;
    background:
        linear-gradient(180deg, rgba(123, 74, 176, 0.18), rgba(123, 74, 176, 0.05)),
        #0d0d0d;
}

.chat-message-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 5px;
}

.chat-placeholder-message .username {
    display: block;
    color: var(--orange2);
    font-size: 12px;
    font-weight: 800;
}

.chat-message-bot .username {
    color: #d9b4ff;
}

.chat-placeholder-message p {
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.chat-message-own p {
    color: #d8c8ac;
}

.chat-message-bot p {
    color: #d8c8e8;
}

.chat-placeholder-empty {
    display: grid;
    place-items: center;
    min-height: 220px;
    color: var(--faint);
}

.chat-placeholder-empty p {
    color: var(--faint);
}

.chat-placeholder-form {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.chat-placeholder-form input {
    max-width: none;
    flex: 1;
}

.chat-placeholder-form button {
    flex: 0 0 auto;
}

.coming-soon-card {
    text-align: center;
}

.coming-soon-card p {
    margin-bottom: 0;
}

/* Legacy landing */

.landing {
    min-height: calc(100svh - 210px);
    display: grid;
    grid-template-columns: 1fr 360px;
    align-items: center;
    gap: 26px;
}

.landing-panel {
    padding: 34px;
}

.eyebrow {
    width: fit-content;
    margin: 0 0 16px;
    padding: 5px 8px;
    color: #ffdc91;
    background: #0a0a0a;
    border: 1px solid #3c2c16;
    font-family: "Inter", Verdana, Tahoma, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.landing h1 {
    margin: 0;
    font-family: "Diplomata", "Inter", Verdana, Tahoma, Arial, sans-serif;
    font-size: clamp(28px, 5.8vw, 52px);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.landing-copy {
    max-width: 420px;
    margin: 18px 0 0;
    font-size: 15px;
}

.landing-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.terminal-card {
    overflow: hidden;
}

.terminal-top {
    height: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    background:
        linear-gradient(180deg, #2a2114, #121212);
    border-bottom: 1px solid var(--line2);
}

.terminal-top span {
    width: 9px;
    height: 9px;
    display: block;
    background: var(--orange);
    border: 1px solid #000;
    box-shadow: 0 0 8px rgba(217, 148, 47, 0.45);
}

.terminal-body {
    padding: 18px;
    font-family: "Inter", Verdana, Tahoma, Arial, sans-serif;
    background:
        radial-gradient(circle at 100% 0%, rgba(217, 148, 47, 0.1), transparent 180px),
        #070707;
}

.terminal-body p {
    margin: 0 0 10px;
    color: #b8a98f;
    line-height: 1.4;
}

.terminal-body p:last-child {
    margin-bottom: 0;
}

.terminal-body span {
    color: var(--orange2);
}

/* Invite banner */

.invite-banner {
    display: block;
    width: 100%;
    padding: 9px 14px;
    color: #f4e9ff;
    text-align: center;
    font-size: 12px;
    background:
        linear-gradient(180deg, #4d2775, #261036);
    border-bottom: 1px solid #7b4ab0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 2px 14px rgba(92, 42, 132, 0.45);
    text-transform: initial;
}

.invite-banner:hover {
    color: #ffffff;
    text-decoration: none;
    filter: brightness(1.08);
}

/* Pagination */

.pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.pagination-info {
    color: var(--muted);
    font-size: 12px;
}

/* Profile */

.profile-card h2 {
    margin-bottom: 2px;
}

.profile-card-clean {
    padding: 24px;
}

.profile-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.profile-heading .profile-picture-block {
    margin-bottom: 0;
}

.profile-heading-text {
    min-width: 0;
}

.profile-heading-text h2 {
    margin: 0;
    overflow-wrap: anywhere;
}

.profile-title {
    width: fit-content;
    margin-top: 6px;
    padding: 4px 8px;
    color: #1b1003;
    background:
        linear-gradient(180deg, #ffd27a, #d9942f);
    border: 1px solid #f0c15a;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 1px 1px 0 #000;
}

.profile-mini {
    margin-top: 9px;
    color: var(--faint);
    font-size: 12px;
}

.profile-mini-tight {
    margin-top: 4px;
}

.profile-date {
    font-weight: bold;
    color: #c3b59d;
}

.profile-mini a {
    color: var(--orange2);
}

.profile-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.profile-detail-item {
    padding: 12px;
    border: 1px solid #2e271c;
    background:
        linear-gradient(180deg, rgba(255, 179, 71, 0.035), transparent),
        #0b0b0b;
    color: var(--muted);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        1px 1px 0 #000;
}

.profile-detail-wide {
    grid-column: 1 / -1;
}

.profile-link-box {
    padding: 10px 12px;
}

.profile-link-box a {
    overflow-wrap: anywhere;
}

.profile-picture-block {
    margin-bottom: 18px;
}

.profile-picture,
.user-info-avatar {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border: 1px solid var(--line2);
    background: #080808;
}

.profile-picture-empty {
    display: grid;
    place-items: center;
    color: var(--orange2);
    font-family: "Inter", Verdana, Tahoma, Arial, sans-serif;
    font-size: 42px;
    font-weight: 700;
    user-select: none;
    -webkit-user-select: none;
}

.settings-card p {
    max-width: 640px;
}

/* Admin menu */

.admin-menu-card {
    padding: 22px;
}

.admin-menu-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.admin-menu-header h2 {
    margin-bottom: 4px;
}

.admin-menu-header p {
    margin: 0;
}

.admin-menu-count {
    min-width: 0px;
    padding: 10px 12px;
    color: var(--muted);
    text-align: center;
    border: 1px solid #2e271c;
    background: #0b0b0b;
    box-shadow: 1px 1px 0 #000;
}

.admin-menu-count span {
    display: block;
    color: var(--orange2);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.admin-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-action-box {
    padding: 15px;
    border: 1px solid #2e271c;
    background:
        linear-gradient(180deg, rgba(255, 179, 71, 0.035), transparent 90px),
        #0b0b0b;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        1px 1px 0 #000;
}

.admin-action-box h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #ffe1a1;
    font-size: 15px;
}

.admin-action-box p {
    margin-top: 0;
    font-size: 13px;
}

.admin-action-box input,
.admin-action-box textarea,
.admin-action-box select {
    max-width: none;
}

/* Cloudflare widget spacing */

.cf-turnstile {
    margin: 4px 0;
}

/* Better mobile */

@media (max-width: 880px) {
    html {
        background:
            radial-gradient(circle at 50% 0%, rgba(217, 148, 47, 0.14), transparent 280px),
            var(--bg);
    }

    body {
        font-size: 16px;
        background:
            repeating-linear-gradient(
                0deg,
                rgba(255, 255, 255, 0.014) 0px,
                rgba(255, 255, 255, 0.014) 1px,
                transparent 1px,
                transparent 3px
            ),
            linear-gradient(180deg, rgba(255, 179, 71, 0.04), transparent 220px);
    }

    .site-header-inner {
        width: min(100% - 22px, 980px);
        min-height: auto;
        padding: 14px 0;
        align-items: stretch;
        flex-direction: column;
        gap: 13px;
    }

    .site-logo {
        font-size: clamp(24px, 7.5vw, 34px);
        line-height: 1.1;
        word-break: break-word;
    }

    .site-header-right {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .site-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .site-nav a {
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 9px;
        font-size: 14px;
        text-align: center;
    }

    .site-nav a.nav-user-button {
        grid-column: 1 / -1;
    }

    .invite-banner {
        padding: 12px 14px;
        font-size: 14px;
        line-height: 1.35;
    }

    .page {
        width: min(100% - 22px, 980px);
        padding-top: 14px;
        padding-bottom: 16px;
    }

    .card,
    .landing-panel,
    .terminal-card {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 10px 24px rgba(0, 0, 0, 0.42);
    }

    .card {
        padding: 17px;
        margin-bottom: 14px;
    }

    h1 {
        font-size: 31px;
        line-height: 1.08;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 23px;
        line-height: 1.12;
    }

    h3 {
        font-size: 19px;
    }

    p,
    ul {
        line-height: 1.65;
    }

    input,
    select,
    textarea {
        max-width: none;
        min-height: 46px;
        padding: 12px 12px;
        font-size: 16px;
    }

    input[type="checkbox"],
    input[type="radio"] {
        width: 20px;
        height: 20px;
        min-height: 20px;
        padding: 0;
    }

    textarea {
        min-height: 120px;
    }

    input[type="file"] {
        padding: 10px;
        font-size: 14px;
    }

    button,
    .button {
        min-height: 44px;
        padding: 11px 15px;
        font-size: 15px;
        text-align: center;
    }

    .button {
        width: auto;
    }

    form .button.secondary {
        margin-top: 8px;
    }

    .permission-card {
        margin-top: 20px;
    }

    .permission-actions {
        flex-direction: column;
    }

    .permission-actions .button {
        width: 100%;
    }

    .chat-placeholder-header {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-placeholder-message {
        max-width: 100%;
    }

    .chat-placeholder-form {
        flex-direction: column;
    }

    .chat-placeholder-form button {
        width: 100%;
    }

    .landing {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 14px;
    }

    .landing-panel {
        padding: 22px;
    }

    .landing h1 {
        font-size: clamp(27px, 9vw, 42px);
        line-height: 1.18;
        word-break: break-word;
    }

    .landing-copy {
        font-size: 16px;
    }

    .landing-actions {
        flex-direction: column;
        gap: 9px;
    }

    .landing-actions .button {
        width: 100%;
    }

    .terminal-card {
        max-width: 100%;
    }

    .terminal-body {
        padding: 15px;
        font-size: 14px;
        overflow-x: auto;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 14px;
    }

    th,
    td {
        padding: 11px 10px;
    }

    code {
        max-width: 100%;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .pagination {
        align-items: stretch;
        gap: 8px;
    }

    .pagination .button {
        flex: 1;
        min-width: 120px;
    }

    .pagination-info {
        width: 100%;
        font-size: 13px;
        text-align: center;
    }

    .profile-heading {
        align-items: flex-start;
        gap: 14px;
    }

    .profile-title {
        font-size: 14px;
    }

    .profile-picture,
    .user-info-avatar {
        width: 104px;
        height: 104px;
    }

    .profile-detail-grid,
    .admin-menu-grid {
        grid-template-columns: 1fr;
    }

    .admin-menu-header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-menu-count {
        width: 100%;
    }

    .site-footer {
        width: min(100% - 22px, 980px);
        font-size: 13px;
        padding-bottom: 16px;
    }

    .footer-links {
        font-size: 13px;
    }
}

@media (max-width: 430px) {
    .site-nav {
        grid-template-columns: 1fr;
    }

    .site-nav a {
        justify-content: flex-start;
        padding-left: 13px;
    }

    .site-nav a.nav-user-button {
        grid-column: auto;
    }

    .card {
        padding: 15px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 21px;
    }

    .profile-heading {
        flex-direction: column;
    }

    .profile-picture,
    .user-info-avatar {
        width: 96px;
        height: 96px;
    }
}

.chat-placeholder-message p,
.chat-placeholder-message .username,
.chat-placeholder-form input {
    text-transform: none;
}

.configs-home-card {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 18px;
    color: var(--text);
    border: 1px solid var(--line2);
    background:
        linear-gradient(180deg, rgba(255, 179, 71, 0.05), transparent 90px),
        linear-gradient(180deg, var(--panel2), var(--panel));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 12px 28px var(--shadow);
}

.configs-home-card:hover {
    color: var(--text);
    text-decoration: none;
    border-color: var(--orange);
    filter: brightness(1.05);
}

.configs-home-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #1b1003;
    background:
        linear-gradient(180deg, #ffd27a, #d9942f 55%, #9d5e16);
    border: 1px solid #f0c15a;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        2px 2px 0 #000;
    font-size: 22px;
    font-weight: 900;
}

.configs-home-text {
    min-width: 0;
}

.configs-home-text h2 {
    margin: 0 0 5px;
    font-size: 22px;
}

.configs-home-text p {
    margin: 0;
    color: var(--muted);
}

.configs-home-arrow {
    padding: 8px 11px;
    color: #f0dfbd;
    background:
        linear-gradient(180deg, #242017, #101010);
    border: 1px solid #4a3a22;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        1px 1px 0 #000;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 600px) {
    .configs-home-card {
        grid-template-columns: 44px 1fr;
    }

    .configs-home-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .configs-home-arrow {
        grid-column: 1 / -1;
        text-align: center;
    }
}

.configs-home-icon i {
    font-size: 22px;
    line-height: 1;
}

.chat-home-heading,
.online-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.chat-home-heading h2,
.online-card-heading h2 {
    margin: 0;
}

.online-mini-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    color: #f0dfbd;
    background:
        linear-gradient(180deg, #242017, #101010);
    border: 1px solid #4a3a22;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        1px 1px 0 #000;
    font-size: 12px;
    font-weight: 800;
}

.online-dot {
    width: 7px;
    height: 7px;
    background: #62ff7a;
    border: 1px solid #204f29;
    box-shadow: 0 0 7px rgba(98, 255, 122, 0.55);
}

.online-card-heading span {
    min-width: 34px;
    padding: 6px 9px;
    color: #f0dfbd;
    text-align: center;
    background:
        linear-gradient(180deg, #242017, #101010);
    border: 1px solid #4a3a22;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        1px 1px 0 #000;
    font-size: 12px;
    font-weight: 900;
}

.online-list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.online-list .muted {
    margin: 0;
}

.online-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 190px;
    padding: 5px 7px;
    color: var(--text);
    border: 1px solid #3a3024;
    background:
        linear-gradient(180deg, rgba(255, 179, 71, 0.04), transparent),
        #101010;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        1px 1px 0 #000;
}

.online-user:hover {
    color: var(--text);
    text-decoration: none;
    border-color: var(--orange);
    background:
        linear-gradient(180deg, rgba(255, 179, 71, 0.09), transparent),
        #151515;
}

.online-avatar {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    object-fit: cover;
    flex: 0 0 auto;
    color: var(--orange2);
    background:
        linear-gradient(180deg, #111111, #070707);
    border: 1px solid var(--line2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        1px 1px 0 #000;
    font-size: 11px;
    font-weight: 900;
}

.online-avatar-empty {
    text-transform: uppercase;
}

.online-user-main {
    display: block;
    min-width: 0;
}

.online-user-main small {
    display: none;
}

.online-name {
    display: block;
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
}

.online-name-admin {
    color: var(--orange2);
}

.online-name-user {
    color: #b8ad99;
}

.chat-online-row {
    margin-top: 7px;
    padding-top: 7px;
}