@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: dark;
    --ink: #ebeaf0;
    --muted: #a3a0aa;
    --canvas: #17161b;
    --panel: #211f25;
    --panel-raised: #29262e;
    --line: #35323c;
    --mint: #19a6f5;
    --mint-deep: #12344a;
    --amber: #e4b16c;
    --red: #ff9d8f;
    --mono: 'DM Mono', Consolas, monospace;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background-color: var(--canvas);
}

button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.topbar {
    height: 72px;
    padding: 0 clamp(18px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: rgba(16, 23, 22, 0.94);
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; }
.brand-mark { display: grid; width: 34px; aspect-ratio: 1; place-items: center; color: #102018; background: var(--mint); font-family: var(--mono); font-size: 20px; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font: 10px var(--mono); letter-spacing: 0; }
.topbar-actions, .account { display: flex; align-items: center; gap: 18px; }
.back-link, .quiet-button { color: var(--muted); font-size: 13px; text-decoration: none; }
.back-link:hover, .quiet-button:hover { color: var(--mint); }
.account { gap: 9px; font-size: 13px; }
.account img { width: 30px; aspect-ratio: 1; border-radius: 50%; background: var(--panel-raised); }
.quiet-button { border: 0; padding: 8px 0 8px 9px; background: transparent; cursor: pointer; }

main { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.login-screen { min-height: calc(100vh - 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr); align-items: center; gap: 40px; }
.login-copy { max-width: 590px; padding: 54px 0 76px; }
.eyebrow, .side-label { color: var(--mint); font: 11px var(--mono); letter-spacing: 0; }
h1, h2, p { margin-top: 0; }
.login-copy h1 { max-width: 560px; margin: 22px 0 16px; font-size: clamp(38px, 5vw, 64px); line-height: 1.06; }
.login-copy > p:not(.eyebrow):not(.notice) { max-width: 470px; color: var(--muted); line-height: 1.75; }
.discord-button { display: inline-flex; align-items: center; gap: 14px; margin-top: 22px; padding: 13px 17px; border: 1px solid var(--mint); background: var(--mint); color: #102018; font-weight: 800; text-decoration: none; }
.discord-button:hover { background: #b4f2d1; }
.notice { min-height: 22px; margin-top: 18px; color: var(--amber); font-size: 13px; }
.login-art { position: relative; display: grid; min-height: 360px; place-items: center; border-left: 1px solid var(--line); }
.login-art span { color: var(--mint); font: 240px/.8 var(--mono); transform: rotate(-14deg); }
.login-art i { position: absolute; right: 9%; bottom: 16%; width: 46%; height: 1px; background: var(--amber); transform: rotate(-36deg); }

.dashboard { padding: 38px 0 68px; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.dashboard-heading h1 { margin-bottom: 0; font-size: 29px; }
.dashboard-heading .eyebrow { margin-bottom: 10px; }
.guild-picker { display: grid; gap: 6px; width: min(320px, 45%); color: var(--muted); font-size: 11px; }
select, input[type="text"], input[type="number"], input[type="url"], textarea {
    width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 3px; padding: 10px 11px; outline: none; color: var(--ink); background: #111a17;
}
select:focus, input:focus, textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 2px rgba(145, 227, 186, 0.12); }
.workspace { display: grid; grid-template-columns: 235px minmax(0, 1fr); min-height: 560px; border-top: 1px solid var(--line); }
.sidebar { padding: 22px 15px 20px 0; border-right: 1px solid var(--line); }
.side-label { margin: 0 0 13px 11px; }
.module-nav { display: grid; gap: 3px; }
.module-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 11px; border: 0; border-left: 2px solid transparent; color: #b9c5be; background: transparent; text-align: left; cursor: pointer; font-size: 13px; }
.module-link:hover { color: var(--ink); background: rgba(255,255,255,.035); }
.module-link.active { border-left-color: var(--mint); color: var(--ink); background: var(--panel); }
.module-link small, .premium-tag { color: var(--amber); font: 9px var(--mono); }
.sidebar-note { margin: 28px 10px 0; padding-top: 16px; border-top: 1px solid var(--line); color: #829189; font-size: 11px; line-height: 1.7; }
.settings-pane { min-width: 0; padding: 26px clamp(18px, 4vw, 42px) 42px; }
.module-heading { display: flex; justify-content: space-between; align-items: start; gap: 15px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.module-heading h2 { margin: 0 0 7px; font-size: 22px; }
.module-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.module-heading .premium-tag { white-space: nowrap; padding: 5px 7px; border: 1px solid #685334; }
.module-heading > div:first-child { min-width: 0; flex: 1 1 auto; }
.menu-scene-heading { position: relative; isolation: isolate; overflow: hidden; min-height: 142px; padding: 15px 18px 18px; border-bottom-color: rgba(255, 255, 255, .11); background-color: #1a1a20; animation: dashboard-view-enter .34s ease-out both; }
.menu-scene-heading::before { position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 20px, rgba(255, 255, 255, .025) 20px 21px); content: ''; }
.menu-scene-heading[data-scene-theme="community"] { background-color: #1a2630; }
.menu-scene-heading[data-scene-theme="forest"] { background-color: #1b2923; }
.menu-scene-heading[data-scene-theme="aqua"] { background-color: #19272c; }
.menu-scene-heading[data-scene-theme="amber"] { background-color: #2b251d; }
.menu-scene-heading[data-scene-theme="coral"] { background-color: #2b2023; }
.menu-scene-heading[data-scene-theme="blue"] { background-color: #1b232d; }
.menu-scene-heading[data-scene-theme="lime"] { background-color: #22291e; }
.menu-scene-heading[data-scene-theme="teal"] { background-color: #192927; }
.menu-scene-heading[data-scene-theme="violet"] { background-color: #24202b; }
.menu-scene-heading[data-scene-theme="gold"] { background-color: #2c261b; }
.menu-scene-heading[data-scene-theme="pink"] { background-color: #2a2028; }
.menu-scene-heading > * { position: relative; z-index: 1; }
.editor { animation: dashboard-view-enter .36s .06s ease-out both; }
.premium-shop-content { animation: dashboard-view-enter .36s .06s ease-out both; }
@keyframes dashboard-view-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .menu-scene-heading, .editor, .premium-shop-content { animation: none; } }
.editor { display: grid; gap: 12px; padding-top: 19px; }
.embed-builder-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr); align-items: start; gap: 16px; padding-top: 18px; }
.embed-builder-form { display: grid; min-width: 0; gap: 12px; }
.embed-builder-panel { display: grid; min-width: 0; gap: 12px; padding: 15px; border: 1px solid #302d35; border-radius: 4px; background: #211f25; }
.embed-builder-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.embed-builder-panel-heading h3 { margin: 0; color: #e6e3eb; font-size: 13px; }
.embed-builder-panel-heading > span { color: var(--muted); font: 10px var(--mono); }
.embed-builder-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.embed-builder-library-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; }
.embed-builder-template-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.embed-builder-template-actions .small-button { display: inline-flex; align-items: center; gap: 6px; min-height: 35px; }
.embed-builder-template-actions .small-button:disabled { opacity: .5; cursor: not-allowed; }
.embed-builder-save-template { border-color: #1888c5; color: #fff; background: #1888c5; }
.embed-builder-save-template:hover { background: #20a3e9; }
.embed-builder-control { display: grid; min-width: 0; gap: 6px; color: #d6d2dc; font-size: 11px; font-weight: 600; }
.embed-builder-control input:not([type="checkbox"]), .embed-builder-control select, .embed-builder-control textarea, .embed-builder-field-row input, .embed-builder-field-row textarea { width: 100%; min-width: 0; border: 1px solid #39363f; border-radius: 3px; padding: 9px 10px; color: var(--ink); background: #111014; font: 12px/1.5 var(--font, 'Manrope', 'Segoe UI', sans-serif); }
.embed-builder-control textarea, .embed-builder-field-row textarea { resize: vertical; }
.embed-builder-control input[type="color"] { width: 100%; height: 38px; padding: 4px; cursor: pointer; }
.embed-builder-control input[type="file"] { padding: 8px; }
.embed-builder-control input[type="file"]::file-selector-button { margin-right: 10px; border: 1px solid var(--line); border-radius: 3px; padding: 6px 9px; color: var(--ink); background: var(--panel-raised); cursor: pointer; }
.embed-builder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.embed-builder-color-title { grid-template-columns: 78px minmax(0, 1fr); align-items: end; }
.embed-builder-checkbox { display: flex; align-items: center; gap: 9px; }
.embed-builder-checkbox input, .embed-builder-inline-toggle input { accent-color: #1888c5; }
.embed-builder-checkbox input { width: 17px; height: 17px; }
.embed-builder-fields-list { display: grid; gap: 8px; }
.embed-builder-field-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) auto auto; align-items: center; gap: 8px; padding: 10px; border: 1px solid #35323c; background: #1b191f; }
.embed-builder-inline-toggle { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.embed-builder-remove-field { display: grid; width: 32px; height: 32px; place-items: center; padding: 0; }
.embed-builder-add-field { justify-self: start; }
.embed-builder-add-field:disabled { opacity: .55; cursor: not-allowed; }
.embed-builder-remove-image { justify-self: start; display: inline-flex; align-items: center; gap: 7px; }
.embed-builder-upload-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.embed-builder-send-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.embed-builder-send-status { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.embed-builder-send-status.error { color: var(--red); }
.embed-builder-send-row .save-button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; }
.embed-builder-preview-panel { position: sticky; top: 16px; }
.embed-discord-preview { min-width: 0; padding: 14px; border-radius: 4px; color: #dbdee1; background: #313338; font-family: 'gg sans', 'Segoe UI', sans-serif; }
.embed-preview-bot { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-size: 12px; }
.embed-preview-bot img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.embed-preview-bot strong { color: #f2f3f5; }
.embed-preview-bot > span { border-radius: 3px; padding: 2px 4px; color: #fff; background: #5865f2; font-size: 9px; font-weight: 700; }
.embed-preview-bot small { color: #949ba4; font-size: 10px; }
.embed-preview-card { position: relative; display: grid; gap: 8px; max-width: 520px; padding: 12px; border-left: 4px solid #5865f2; border-radius: 3px; background: #2b2d31; }
.embed-preview-author, .embed-preview-footer { display: flex; align-items: center; gap: 7px; min-width: 0; color: #dbdee1; font-size: 11px; }
.embed-preview-author img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.embed-preview-title { color: #00a8fc; font-size: 14px; overflow-wrap: anywhere; }
.embed-preview-title.is-placeholder, .embed-preview-description.is-placeholder { color: #949ba4; font-weight: 400; }
.embed-preview-description { margin: 0; color: #dbdee1; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.embed-preview-thumbnail { width: 76px; height: 76px; justify-self: end; border-radius: 3px; object-fit: cover; }
.embed-preview-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.embed-preview-field { display: grid; grid-column: 1 / -1; gap: 4px; min-width: 0; color: #dbdee1; font-size: 11px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.embed-preview-field.is-inline { grid-column: span 1; }
.embed-preview-field strong { color: #f2f3f5; }
.embed-preview-image { display: block; width: 100%; max-height: 260px; border-radius: 3px; object-fit: contain; object-position: left; }
.embed-preview-footer { color: #b5bac1; font-size: 10px; }
.embed-preview-footer img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
@media (max-width: 900px) { .embed-builder-layout { grid-template-columns: minmax(0, 1fr); } .embed-builder-preview-panel { position: static; grid-row: 1; } }
@media (max-width: 560px) { .embed-builder-grid { grid-template-columns: minmax(0, 1fr); } .embed-builder-color-title { grid-template-columns: 78px minmax(0, 1fr); } .embed-builder-library-controls { grid-template-columns: minmax(0, 1fr); } .embed-builder-template-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } .embed-builder-template-actions .small-button { justify-content: center; padding-right: 6px; padding-left: 6px; font-size: 10px; } .embed-builder-field-row { grid-template-columns: minmax(0, 1fr) auto; } .embed-builder-field-row input, .embed-builder-field-row textarea { grid-column: 1 / -1; } .embed-builder-field-row .embed-builder-inline-toggle { grid-column: 1; } .embed-builder-field-row .embed-builder-remove-field { grid-column: 2; grid-row: 3; } .embed-builder-send-row { align-items: stretch; flex-direction: column; } .embed-builder-send-row .save-button { justify-content: center; } }
.tree-group { min-width: 0; padding: 13px; border: 1px solid var(--line); background: rgba(23,33,30,.88); }
.tree-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; color: var(--mint); font-size: 13px; font-weight: 700; }
.tree-heading .quiet-button { flex: 0 0 auto; padding: 4px 0 4px 8px; font-size: 11px; }
.tree-children { display: grid; gap: 10px; }
.field { display: grid; grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr); align-items: start; gap: 12px; }
.field > span { padding-top: 10px; color: #bdc9c1; font-size: 12px; overflow-wrap: anywhere; }
.field input, .field select, .field textarea { font-size: 12px; }
.field textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.field input[type="checkbox"] { width: 19px; height: 19px; margin: 8px 0; accent-color: var(--mint); }
.add-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; }
.small-button, .save-button { border: 1px solid var(--line); border-radius: 3px; padding: 8px 10px; color: var(--ink); background: var(--panel-raised); font-size: 11px; cursor: pointer; }
.small-button:hover { border-color: var(--mint); }
.save-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.save-status { margin: 0; color: var(--muted); font-size: 11px; }
.save-status.error { color: var(--red); }
.save-button { padding: 10px 16px; border-color: var(--mint); color: #102018; background: var(--mint); font-weight: 800; }
.save-button:disabled { border-color: var(--line); color: #718078; background: var(--panel); cursor: not-allowed; }
.empty-state { max-width: 560px; margin: 80px auto; padding: 27px; border: 1px solid var(--line); background: var(--panel); }
.empty-state h2 { font-size: 21px; }
.empty-state p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.empty-state .discord-button { margin-top: 5px; }
.global-status { min-height: 20px; margin: 14px 0 0; color: var(--red); font-size: 12px; }

@media (max-width: 760px) {
    main { width: min(100% - 28px, 620px); }
    .topbar { height: 62px; padding: 0 14px; }
    .back-link { font-size: 11px; }
    .account { gap: 6px; font-size: 11px; }
    .account img { width: 25px; }
    .login-screen { min-height: calc(100vh - 62px); grid-template-columns: 1fr; gap: 0; }
    .login-copy { padding: 74px 0 25px; }
    .login-art { min-height: 180px; border-top: 1px solid var(--line); border-left: 0; }
    .login-art span { font-size: 145px; }
    .dashboard { padding-top: 27px; }
    .dashboard-heading { align-items: stretch; flex-direction: column; gap: 17px; }
    .dashboard-heading h1 { font-size: 25px; }
    .guild-picker { width: 100%; }
    .workspace { grid-template-columns: 1fr; }
    .sidebar { padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .module-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 5px; }
    .module-link { flex: 0 0 auto; width: auto; max-width: 220px; border: 1px solid var(--line); }
    .module-link.active { border-color: var(--mint); }
    .side-label, .sidebar-note { display: none; }
    .settings-pane { padding: 20px 0 28px; }
}

@media (max-width: 440px) {
    .brand { gap: 7px; font-size: 13px; }
    .brand-mark { width: 29px; font-size: 17px; }
    .brand small { font-size: 8px; }
    .topbar-actions { gap: 8px; }
    .account #username { display: none; }
    .login-copy h1 { font-size: 38px; }
    .field { grid-template-columns: 1fr; gap: 4px; }
    .field > span { padding-top: 0; }
    .module-heading { gap: 7px; }
    .menu-scene-heading { min-height: 116px; padding-right: 12px; padding-left: 12px; }
}

.topbar {
    height: 56px;
    padding: 0 20px;
    background: #17161b;
    border-bottom-color: #2c2931;
}

.brand-mark { color: #101a21; }
main { width: 100%; height: calc(100vh - 56px); margin: 0; }
.login-screen { width: min(1100px, calc(100% - 40px)); min-height: 100%; margin: 0 auto; }
.dashboard {
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: var(--canvas);
}

.sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 13px 9px 8px;
    border-right: 1px solid #2c2931;
    background: #141318;
}

.guild-picker {
    width: auto;
    margin: 0 2px 15px;
    gap: 6px;
    color: var(--mint);
    font: 10px var(--mono);
}

.guild-picker select {
    min-height: 36px;
    color: var(--ink);
    background: #201e24;
    font: 12px 'Manrope', 'Segoe UI', sans-serif;
}

.side-label {
    flex: 0 0 auto;
    margin: 11px 3px 5px;
    color: var(--mint);
    font: 700 11px 'Manrope', 'Segoe UI', sans-serif;
}

.module-nav {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 3px 10px;
    scrollbar-color: #2687bd #1a191e;
    scrollbar-width: thin;
}

.module-link {
    flex: 0 0 auto;
    justify-content: flex-start;
    min-height: 32px;
    padding: 7px 9px;
    border: 0;
    border-radius: 4px;
    color: #c0bdc6;
    font-size: 12px;
}

.module-link i { width: 15px; flex: 0 0 15px; color: #8d8994; text-align: center; }
.module-link span { min-width: 0; overflow-wrap: anywhere; }
.module-link:hover { color: #fff; background: #201e24; }
.module-link.active { border: 0; color: #38b7ff; background: #25232a; font-weight: 700; }
.module-link.active i { color: #38b7ff; }
.module-link small { margin-left: auto; padding: 2px 5px; border-radius: 9px; color: #fff; background: #d94755; font: 700 9px 'Manrope', 'Segoe UI', sans-serif; }
.sidebar-footer { flex: 0 0 auto; padding: 8px 4px 0; border-top: 1px solid #2c2931; }
.sidebar-note { margin: 0 4px 7px; padding: 0; border: 0; color: #898590; font-size: 10px; line-height: 1.5; }
.account { min-width: 0; gap: 8px; padding: 5px 3px; font-size: 11px; }
.account img { width: 27px; }
.account #username { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account .quiet-button { padding: 5px 7px; border: 1px solid var(--line); border-radius: 3px; }

.dashboard-main { min-width: 0; overflow: auto; padding: 30px clamp(22px, 6vw, 78px) 38px; }
.dashboard-heading, .workspace, .global-status { width: min(900px, 100%); margin-right: auto; margin-left: auto; }
.dashboard-heading { align-items: center; margin-bottom: 25px; padding-bottom: 14px; border-bottom: 1px solid #302d35; }
.dashboard-heading h1 { color: var(--ink); font-size: 22px; }
.dashboard-heading .eyebrow { margin-bottom: 7px; color: var(--mint); font-size: 10px; }
.selected-guild { color: var(--muted); font-size: 12px; }
.workspace { display: block; min-height: 0; border: 0; }
.settings-pane { padding: 0; }
.module-heading { align-items: center; padding-bottom: 15px; border-bottom-color: #302d35; }
.module-heading h2 { color: #27aaff; font-size: 21px; }
.module-heading p { max-width: 660px; color: #a5a2ac; }
.module-heading .premium-tag { color: #ffbf72; }
.editor { gap: 0; padding-top: 12px; }
.tree-group { padding: 13px 0; border: 0; border-bottom: 1px solid #302d35; background: transparent; }
.tree-heading { margin-bottom: 10px; color: #d5d2da; font-size: 12px; }
.tree-group.depth-1, .tree-group.depth-2, .tree-group.depth-3 { margin-left: 10px; padding-left: 12px; border-left: 1px solid #37343d; }
.field { grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr); padding: 4px 0; }
.field > span { color: #c5c1cb; }
.field input, .field select, .field textarea { background: #1b191f; }
.small-button, .save-button { min-height: 32px; }
.save-button { border-color: #1384c5; background: #1888c5; color: #fff; }
.save-button:hover:not(:disabled) { background: #20a3e9; }
.empty-state { width: min(900px, 100%); margin: 55px auto; border-radius: 4px; background: var(--panel); }
.global-status { margin-top: 12px; }
.navigation-divider { margin-top: 14px !important; padding-top: 10px; border-top: 1px solid #302d35; }
.command-category { color: #8f8b96; font-size: 9px; }
.command-catalog-heading { min-height: 88px; margin-bottom: 18px; }
.command-catalog-heading h2 { color: #38b7ff; }
.command-catalog-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 220px) auto; align-items: center; gap: 9px; margin-bottom: 23px; }
.command-catalog-search { display: flex; min-height: 38px; align-items: center; gap: 9px; border: 1px solid #39363f; border-radius: 4px; padding: 0 11px; color: #96929e; background: #201e24; }
.command-catalog-search:focus-within { border-color: #38b7ff; box-shadow: 0 0 0 2px rgba(56, 183, 255, .12); }
.command-catalog-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #ebeaf0; background: transparent; font-size: 11px; }
.command-catalog-search input:focus { box-shadow: none; }
.command-catalog-search input::placeholder { color: #898590; }
.command-catalog-toolbar select { min-height: 38px; border-color: #39363f; background: #201e24; font-size: 11px; }
.command-catalog-count { color: #9b97a2; font-size: 10px; text-align: right; white-space: nowrap; }
.command-catalog-list { display: grid; gap: 22px; }
.command-catalog-group { min-width: 0; }
.command-catalog-category { margin: 0 0 9px; color: #38b7ff; font-size: 10px; font-weight: 800; }
.command-catalog-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.command-catalog-card { min-width: 0; border: 1px solid #302d35; border-radius: 5px; padding: 13px; background: #201e24; }
.command-catalog-card-heading { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; }
.command-catalog-card-heading h4 { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #e9e6ee; font: 600 13px var(--mono); }
.command-catalog-card-controls { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.command-catalog-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.command-catalog-toggle .entry-toggle { width: 30px !important; height: 17px !important; flex-basis: 30px; }
.command-catalog-toggle .entry-toggle::after { width: 11px; height: 11px; }
.command-catalog-toggle .entry-toggle:checked::after { transform: translateX(13px); }
.command-catalog-toggle .entry-toggle:disabled { opacity: .55; cursor: wait; }
.command-catalog-toggle-state { min-width: 47px; color: #aaa6b1; font-size: 9px; }
.command-catalog-toggle .entry-toggle:checked + .command-catalog-toggle-state { color: #75d6a1; }
.command-catalog-tag { flex: 0 0 auto; border: 1px solid #3c4b58; border-radius: 3px; padding: 3px 6px; color: #91cdeb; font: 8px var(--mono); }
.command-catalog-description { margin: 8px 0 0; color: #aaa6b1; font-size: 11px; line-height: 1.55; }
.command-catalog-subcommands { display: grid; gap: 6px; margin: 11px 0 0; border-top: 1px solid #302d35; padding: 9px 0 0; list-style: none; }
.command-catalog-subcommands li { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); align-items: baseline; gap: 8px; }
.command-catalog-subcommands code { color: #70caff; font: 9px var(--mono); overflow-wrap: anywhere; }
.command-catalog-subcommands span { color: #898590; font-size: 9px; line-height: 1.45; }
.command-catalog-empty { margin: 0; border: 1px dashed #39363f; border-radius: 4px; padding: 30px 15px; color: #aaa6b1; font-size: 11px; text-align: center; }
.command-link-button { display: inline-flex; margin: 5px 5px 5px 0; align-items: center; text-decoration: none; }
.command-form { display: grid; gap: 12px; margin-top: 18px; }
.command-field { grid-template-columns: minmax(170px, .7fr) minmax(0, 1.3fr); align-items: center; }
.command-field textarea { min-height: 94px; resize: vertical; line-height: 1.5; }
.command-field input, .command-field select, .command-field textarea { min-height: 38px; font-size: 12px; }
.command-form .save-button { justify-self: start; margin-top: 5px; }
.command-hint { margin: 12px 0; color: #8f8b96; font-size: 10px; }
.command-response { display: flex; flex-wrap: wrap; align-items: start; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #302d35; }
.command-response > p { flex: 1 0 100%; margin: 0; color: #d3d0d9; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.command-response > h3 { flex: 1 0 100%; margin: 0 0 4px; color: #34adf0; font-size: 15px; }
.command-response .command-form { flex: 1 0 100%; margin-top: 2px; }
.bot-embed { flex: 1 0 100%; padding: 12px 14px; border-left: 3px solid #248fc8; background: #201e24; }
.bot-embed h3 { margin: 0 0 6px; font-size: 14px; }
.bot-embed p { margin: 0; color: #bbb7c2; font-size: 12px; line-height: 1.6; white-space: pre-wrap; }

.dashboard.entry-exit-active .dashboard-heading { display: none; }
.entry-exit-heading { min-height: 148px; align-items: center; padding: 0 0 18px; }
.entry-exit-heading > div { max-width: 570px; }
.entry-exit-heading h2 { color: #27aaff; font-size: 21px; }
.entry-exit-heading p { color: #d0cdd5; line-height: 1.65; }
.entry-exit-artwork { width: min(230px, 30%); height: 148px; object-fit: contain; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 66%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 66%, transparent 100%); filter: drop-shadow(0 8px 24px rgba(116, 69, 255, .22)); }
.entry-toggle-list { display: grid; gap: 12px; padding-top: 5px; }
.entry-toggle-card { display: flex; min-height: 63px; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 15px; border: 1px solid #302d35; border-radius: 4px; background: #211f25; }
.entry-toggle-copy { min-width: 0; }
.entry-toggle-copy h3 { margin: 0; color: #e6e3eb; font-size: 12px; font-weight: 700; }
.entry-toggle-copy p { margin: 4px 0 0; color: #aaa6b1; font-size: 11px; line-height: 1.5; }
.feature-toggle-row { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #302d35; padding: 9px 0; }
.feature-toggle-row .entry-toggle-copy h3 { color: #e6e3eb; }
.feature-toggle-row .entry-toggle-copy p { max-width: 520px; }
.entry-toggle { position: relative; width: 34px !important; height: 19px !important; flex: 0 0 34px; margin: 0 !important; appearance: none; border: 0; border-radius: 12px; background: #696870; cursor: pointer; transition: background .18s ease; }
.entry-toggle::after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; content: ''; transition: transform .18s ease; }
.entry-toggle:checked { background: #168ac9; }
.entry-toggle:checked::after { transform: translateX(15px); }
.entry-toggle:focus-visible { outline: 2px solid #70caff; outline-offset: 3px; }
.entry-setting { overflow: hidden; border: 1px solid #302d35; border-radius: 4px; background: #211f25; }
.entry-setting .entry-toggle-card { border: 0; border-radius: 0; }
.entry-setting-details { display: grid; gap: 14px; padding: 0 15px 15px; }
.autorole-details { padding-top: 2px; }
.autoclear-details { padding-top: 2px; }
.autoclear-channel-card { display: grid; gap: 12px; padding: 13px; border: 1px solid #39363f; border-radius: 4px; background: #111014; }
.autoclear-channel-card .entry-control select, .autoclear-channel-card .entry-control input { background: #1b191f; }
.autoclear-interval-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.autoclear-interval-inputs label { display: flex; align-items: center; gap: 7px; color: #aaa6b1; font-size: 11px; font-weight: 400; }
.autoclear-interval-inputs input { min-width: 0; }
.autoclear-remove { justify-self: end; color: #ff9d8f; }
.autoclear-add-hint { color: #aaa6b1; font-size: 10px; line-height: 1.45; }
.autorole-add-button:disabled { border-color: #39363f; color: #85818c; background: #29262e; cursor: not-allowed; }
.autorole-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.autorole-picker select { min-height: 34px; background: #111014; font-size: 12px; }
.autorole-add-button { min-height: 34px; border: 1px solid #268747; border-radius: 4px; padding: 7px 13px; color: #fff; background: #2f9e52; font-size: 11px; font-weight: 700; cursor: pointer; }
.autorole-add-button:hover { background: #38b65f; }
.autorole-role-list { display: grid; gap: 6px; }
.autorole-role-row, .autorole-empty { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 7px 10px; border: 1px solid #39363f; border-radius: 4px; color: #ddd9e2; background: #111014; font-size: 11px; }
.autorole-empty { justify-content: center; color: #aaa6b1; }
.autorole-warning { margin: 0 15px 14px; border-left: 3px solid #e4b16c; padding: 8px 10px; color: #f4d49f; background: rgba(228, 177, 108, .08); font-size: 11px; line-height: 1.5; }
.autorole-message-toggle { margin: 0 -15px; border-right: 0; border-left: 0; border-radius: 0; }
.autorole-details .entry-control input { font-variant-numeric: tabular-nums; }
.commerce-editor { gap: 14px; }
.commerce-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.commerce-card { display: grid; min-width: 0; gap: 12px; padding: 14px; border: 1px solid #302d35; border-radius: 4px; background: #211f25; }
.commerce-roles-card { grid-column: 1 / -1; }
.commerce-card > h3, .commerce-card-heading h3 { margin: 0; color: #e6e3eb; font-size: 13px; }
.commerce-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.commerce-role-list, .commerce-ticket-list { display: grid; gap: 9px; }
.commerce-item-card { display: grid; grid-template-columns: minmax(0, 1.15fr) repeat(5, minmax(90px, .7fr)) auto; align-items: end; gap: 10px; padding: 12px; border: 1px solid #39363f; border-radius: 4px; background: #111014; }
.commerce-field { display: grid; min-width: 0; gap: 6px; color: #d6d2dc; font-size: 11px; font-weight: 600; }
.commerce-field input, .commerce-field select, .commerce-field textarea { min-width: 0; border-color: #39363f; background: #111014; font-size: 12px; }
.commerce-field textarea { resize: vertical; line-height: 1.5; }
.commerce-remove { color: #ff9d8f; white-space: nowrap; }
.commerce-add-row { margin-top: 3px; }
.commerce-image-card { align-content: start; }
.commerce-image-preview { width: 100%; max-height: 190px; border: 1px solid #39363f; border-radius: 4px; background: #111014; object-fit: contain; }
.commerce-image-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.commerce-image-controls input[type="file"] { min-width: 0; flex: 1 1 220px; color: #d6d2dc; font-size: 11px; }
.commerce-image-status, .commerce-publish-status { margin: 0; color: #aaa6b1; font-size: 10px; line-height: 1.5; }
.commerce-publish-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid #39363f; }
.commerce-publish-controls .save-button { min-height: 34px; }
.commerce-publish-status { flex: 1 1 180px; }
.streams-editor { gap: 12px; }
.streams-card { gap: 13px; }
.streams-list { display: grid; gap: 8px; }
.streams-row { display: grid; grid-template-columns: minmax(115px, .85fr) minmax(110px, .7fr) minmax(180px, 1.35fr) auto; align-items: end; gap: 10px; padding: 11px; border: 1px solid #39363f; border-radius: 4px; background: #111014; }
.streams-identity { display: grid; min-width: 0; gap: 5px; align-self: center; }
.streams-identity strong { overflow-wrap: anywhere; color: #e6e3eb; font-size: 12px; }
.streams-identity small { color: #aaa6b1; font-size: 10px; }
.streams-identity small.streams-live { color: #ff7373; }
.streams-remove { color: #ff9d8f; white-space: nowrap; }
.streams-add-area { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(115px, .7fr) minmax(170px, 1.2fr) auto; align-items: end; gap: 9px; padding-top: 11px; border-top: 1px solid #39363f; }
.streams-add-area .small-button { min-height: 37px; }
.streams-publish-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; padding-top: 12px; border-top: 1px solid #39363f; }
.streams-publish-controls .save-button { min-height: 34px; }
.custom-commands-editor { gap: 12px; }
.custom-command-list { display: grid; gap: 10px; }
.custom-command-card { gap: 13px; }
.custom-command-card.is-collapsed { gap: 0; padding: 0; border: 0; background: transparent; }
.custom-command-summary { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #302d35; border-radius: 4px; padding: 7px 12px; background: #211f25; }
.custom-command-summary strong { min-width: 0; overflow-wrap: anywhere; color: #dcd9e2; font: 12px var(--mono); }
.custom-command-edit { min-width: 72px; }
.custom-command-details { display: grid; gap: 13px; }
.custom-command-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.custom-command-response-field { align-items: start; }
.custom-command-response-field > span { padding-top: 9px; }
.custom-command-response-field textarea { min-height: 94px; resize: vertical; line-height: 1.5; }
.custom-command-remove { color: #ff9d8f; white-space: nowrap; }
.custom-command-access { display: grid; gap: 9px; padding-top: 11px; border-top: 1px solid #39363f; }
.custom-command-access > strong { color: #d6d2dc; font-size: 11px; }
.custom-command-role-list { display: flex; flex-wrap: wrap; gap: 6px; }
.custom-command-role-chip { display: inline-flex; min-height: 27px; align-items: center; gap: 7px; border: 1px solid #3e4250; border-radius: 3px; padding: 3px 5px 3px 8px; color: #dce9f2; background: #20232b; font-size: 10px; }
.custom-command-role-chip button { width: 19px; height: 19px; border: 0; border-radius: 2px; color: #ffaaa0; background: #30262b; cursor: pointer; }
.custom-command-add-role { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.custom-command-add-role .small-button { min-height: 36px; }
.custom-command-add-role .small-button:disabled { opacity: .5; cursor: not-allowed; }
.custom-command-create { align-content: start; }
.custom-command-create > .save-button { justify-self: start; }
.premium-shop-content { display: grid; gap: 12px; padding-top: 14px; }
.premium-status-card { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.premium-status-card h3 { color: #c5c1cb; }
.premium-status-copy { margin: 0; color: #84d6a8; font-size: 12px; font-weight: 700; }
.premium-plan-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.premium-plan-card { align-content: start; }
.premium-plan-price { color: #55c2ff; font-size: 24px; }
.premium-plan-card > p { margin: 0; color: #aaa6b1; font-size: 11px; }
.premium-plan-card .save-button { justify-self: start; }
.experience-editor { gap: 12px; }
.drop-box-editor { gap: 12px; }
.drop-box-card { min-width: 0; }
.drop-box-schedule-details { display: grid; gap: 10px; }
.drop-box-reward-list { display: grid; gap: 8px; }
.drop-box-reward-row { display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)) auto; align-items: end; gap: 9px; padding: 11px; border: 1px solid #39363f; border-radius: 4px; background: #111014; }
.drop-box-reward-row input { min-width: 0; }
.drop-box-chance-status { margin: 0; color: #ffbf72; font-size: 11px; font-weight: 700; }
.drop-box-chance-status.complete { color: #84d6a8; }
.experience-card { gap: 14px; }
.experience-list { display: grid; gap: 8px; }
.experience-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, .8fr)) auto; align-items: end; gap: 10px; padding: 11px; border: 1px solid #39363f; border-radius: 4px; background: #111014; }
.experience-row > select { min-width: 0; }
.experience-remove { color: #ff9d8f; white-space: nowrap; }
.experience-add-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.coin-multiplier-add { grid-template-columns: minmax(0, 1fr) minmax(90px, 120px) auto; }
.experience-block-section { display: grid; gap: 9px; }
.experience-block-section h4 { margin: 0; color: #c9c5ce; font-size: 11px; }
.experience-block-section .experience-row { grid-template-columns: minmax(0, 1fr) auto; }
.experience-preview { overflow: hidden; }
.experience-hint { margin: 0; color: #aaa6b1; font-size: 10px; line-height: 1.5; }
.experience-schedule-title { margin: 7px 0 -5px; padding-top: 14px; border-top: 1px solid #39363f; color: #e6e3eb; font-size: 12px; }
.experience-reset-all { justify-self: start; border-color: #8b4545; color: #ffb0a4; }
.entry-control { display: grid; gap: 6px; color: #e2dfe7; font-size: 11px; font-weight: 700; }
.entry-control input, .entry-control select { min-height: 34px; background: #111014; font-size: 12px; }
.registration-editor { gap: 13px; }
.registration-toggle-panel { overflow: hidden; border: 1px solid #302d35; border-left: 3px solid #55525d; border-radius: 4px; background: #211f25; transition: border-color .18s ease; }
.registration-toggle-panel.is-enabled { border-left-color: #168ac9; }
.registration-toggle-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px 16px; }
.registration-toggle-copy { min-width: 0; }
.registration-toggle-copy h3 { margin: 0; color: #e6e3eb; font-size: 13px; font-weight: 700; }
.registration-toggle-copy p { margin: 4px 0 0; color: #aaa6b1; font-size: 11px; line-height: 1.5; }
.registration-state { border: 1px solid #494650; border-radius: 3px; padding: 4px 7px; color: #aaa6b1; font: 9px var(--mono); white-space: nowrap; }
.registration-toggle-panel.is-enabled .registration-state { border-color: rgba(22, 138, 201, .45); color: #70caff; background: rgba(22, 138, 201, .1); }
.registration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.registration-section { display: grid; min-width: 0; align-content: start; gap: 13px; border: 1px solid #302d35; border-radius: 4px; padding: 15px; background: #211f25; }
.registration-section-heading { display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid #35323c; padding-bottom: 11px; }
.registration-section-heading > i { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid rgba(22, 138, 201, .25); border-radius: 3px; color: #38b7ff; background: rgba(22, 138, 201, .1); font-size: 12px; }
.registration-section-heading h3 { margin: 0; color: #e6e3eb; font-size: 12px; }
.registration-section-heading p { margin: 4px 0 0; color: #aaa6b1; font-size: 10px; line-height: 1.5; }
.registration-field { display: grid; min-width: 0; gap: 6px; color: #d6d2dc; font-size: 10px; font-weight: 700; }
.registration-field input, .registration-field select { min-width: 0; min-height: 36px; border-color: #39363f; background: #111014; font-size: 11px; }
.registration-image-preview { display: block; width: min(100%, 360px); max-height: 190px; border: 1px solid #39363f; border-radius: 4px; background: #111014; object-fit: contain; object-position: left; }
.registration-image-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.registration-image-picker { position: relative; display: inline-flex; min-height: 34px; align-items: center; gap: 8px; overflow: hidden; border: 1px solid #168ac9; border-radius: 3px; padding: 0 11px; color: #fff; background: #1888c5; font-size: 11px; font-weight: 700; cursor: pointer; }
.registration-image-picker:hover { background: #20a3e9; }
.registration-image-picker input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; cursor: pointer; }
.registration-image-remove:disabled { opacity: .5; cursor: not-allowed; }
.registration-image-status { margin: 0; color: #aaa6b1; font-size: 10px; line-height: 1.5; }
.registration-welcome .registration-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; border-top: 1px solid #35323c; padding: 14px 16px 16px; }
.registration-welcome .entry-message-block { grid-column: 1 / -1; }
.entry-message-block { display: grid; gap: 8px; }
.entry-message-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #e2dfe7; font-size: 11px; font-weight: 700; }
.entry-edit-button, .message-tool { min-height: 32px; border: 1px solid #148bd0; border-radius: 4px; padding: 7px 14px; color: #fff; background: #219fe8; font-size: 11px; font-weight: 700; cursor: pointer; }
.entry-edit-button:hover, .message-tool:hover:not(:disabled) { background: #38b1f6; }
.entry-message-preview { display: flex; min-height: 60px; align-items: center; gap: 11px; padding: 9px 12px; border: 1px solid #39363f; border-radius: 4px; color: #eee; background: #09090b; }
.entry-message-preview > img { width: 31px; height: 31px; flex: 0 0 31px; border-radius: 50%; object-fit: cover; }
.entry-preview-body { min-width: 0; }
.entry-preview-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font-size: 10px; }
.entry-preview-meta strong { color: #ff568d; }
.entry-preview-meta small { border-radius: 3px; padding: 1px 4px; color: #fff; background: #168ac9; font-size: 8px; font-weight: 800; }
.entry-preview-meta span { color: #92909a; font-size: 9px; }
.entry-preview-body p { margin: 0; color: #f0edf5; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.discord-mention-preview { border-radius: 3px; padding: 0 2px; color: #c9d7ff; background: rgba(88, 101, 242, .32); font-weight: 600; }
.message-editor-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 8px; background: rgba(0, 0, 0, .76); }
.message-editor-dialog { display: grid; width: min(960px, 100%); max-height: calc(100vh - 16px); gap: 14px; overflow: auto; padding: 26px 30px 20px; border: 1px solid #29262e; border-radius: 5px; background: #19171c; box-shadow: 0 20px 70px rgba(0, 0, 0, .55); }
.message-editor-dialog > h2 { margin: 0; color: #27aaff; text-align: center; font-size: 23px; }
.message-editor-toolbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.message-tool { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-tool.secondary { border-color: #21658b; background: #225b7d; }
.message-tool:disabled { opacity: .5; cursor: not-allowed; }
.message-editor-label { margin: 0 0 6px; color: #d9d6df; font-size: 11px; font-weight: 700; }
.message-mode-info { padding: 12px; border-radius: 4px; color: #ddd9e2; background: #242128; font-size: 11px; }
.message-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.message-editor-layout.vertical { grid-template-columns: 1fr; }
.message-editor-layout textarea { min-height: 104px; resize: vertical; border-color: #39363f; background: #0d0b0f; font: 12px/1.55 var(--mono); }
.message-editor-layout .entry-message-preview { min-height: 60px; }
.message-variable-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; margin-top: 6px; }
.message-token { border: 1px solid #39363f; border-radius: 4px; padding: 5px 8px; color: #e5e1ea; background: #211f25; font: 10px var(--mono); cursor: pointer; }
.message-token:hover { border-color: #168ac9; }
.message-placeholders { border: 1px solid #302d35; border-radius: 4px; background: #211f25; }
.message-placeholders summary { padding: 13px 15px; color: #eeeaf3; font-size: 14px; font-weight: 700; cursor: pointer; }
.message-placeholders p { margin: 0; padding: 0 15px 14px; color: #aaa6b1; font-size: 11px; line-height: 1.6; }
.message-editor-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 12px; border-top: 1px solid #302d35; }
.message-editor-footer [role="status"] { flex: 1; margin: 0; color: #a8a4ae; font-size: 10px; }

/* Shared configuration language across every dashboard module. */
.module-heading { min-height: 112px; align-items: center; }
.module-heading h2 { color: #27aaff; }
.module-heading p { max-width: 680px; line-height: 1.65; }
.editor { gap: 13px; padding-top: 15px; }
.tree-group { padding: 0; border: 1px solid #302d35; border-radius: 4px; background: #211f25; }
.tree-group.depth-1, .tree-group.depth-2, .tree-group.depth-3 { margin: 0 13px 12px; padding: 0 0 0 11px; border: 0; border-left: 1px solid #37343d; border-radius: 0; background: transparent; }
.tree-heading { min-height: 48px; margin: 0; padding: 12px 15px; color: #e6e3eb; font-size: 12px; }
.tree-children { gap: 0; padding: 0 15px 14px; }
.tree-children > .field { min-height: 42px; border-top: 1px solid rgba(255,255,255,.045); }
.tree-children > .tree-group { margin-top: 8px; }
.tree-children > .tree-group > .tree-heading { padding-left: 0; }
.field { grid-template-columns: minmax(170px, .72fr) minmax(0, 1.28fr); align-items: center; gap: 13px; padding: 7px 0; }
.field > span { padding: 0; color: #d6d2dc; font-size: 11px; font-weight: 600; }
.field input:not([type="checkbox"]), .field select, .field textarea { border-color: #39363f; background: #111014; }
.field input[type="checkbox"].field-toggle { position: relative; width: 34px; height: 19px; appearance: none; border: 0; border-radius: 12px; background: #696870; cursor: pointer; transition: background .18s ease; }
.field input[type="checkbox"].field-toggle::after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; content: ''; transition: transform .18s ease; }
.field input[type="checkbox"].field-toggle:checked { background: #168ac9; }
.field input[type="checkbox"].field-toggle:checked::after { transform: translateX(15px); }
.field input[type="checkbox"].field-toggle:focus-visible { outline: 2px solid #70caff; outline-offset: 3px; }
.message-config-field { align-items: start; }
.message-config-field > span { padding-top: 9px; }
.message-config-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.message-config-panel .entry-message-preview { min-width: 0; }
.tree-children > .field.message-config-field { padding-top: 11px; padding-bottom: 11px; }

@media (max-width: 760px) {
    main { height: auto; min-height: calc(100vh - 56px); }
    .topbar { height: 56px; padding: 0 14px; }
    .dashboard { display: flex; height: auto; min-height: calc(100vh - 56px); flex-direction: column; overflow: visible; }
    .sidebar { min-height: 0; padding: 10px 10px 0; border-right: 0; border-bottom: 1px solid #2c2931; }
    .guild-picker { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; margin: 0 0 7px; }
    .guild-picker select { min-height: 34px; }
    .module-nav { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 4px; overflow-x: auto; overflow-y: hidden; padding: 0 0 9px; }
    .module-nav .side-label { align-self: center; width: max-content; margin: 0 5px 0 2px; white-space: nowrap; }
    .module-link { width: max-content; max-width: 225px; min-height: 34px; border: 1px solid #35323c; }
    .module-link.active { border: 1px solid #168ac9; }
    .sidebar-footer { padding: 4px 0; border-top: 0; }
    .sidebar-note { display: none; }
    .account { padding: 4px 2px; }
    .dashboard-main { overflow: visible; padding: 21px 16px 30px; }
    .dashboard-heading { align-items: start; margin-bottom: 16px; }
    .dashboard-heading h1 { font-size: 20px; }
    .settings-pane { padding: 0; }
    .entry-exit-heading { min-height: 0; }
    .entry-exit-artwork { width: 110px; height: 110px; }
    .message-editor-dialog { gap: 11px; padding: 19px 16px 14px; }
    .message-editor-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .message-editor-layout { grid-template-columns: 1fr; }
    .commerce-grid { grid-template-columns: minmax(0, 1fr); }
    .premium-status-card { grid-template-columns: minmax(0, 1fr); }
    .commerce-roles-card { grid-column: auto; }
    .commerce-item-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .commerce-item-card > select, .commerce-item-card > .commerce-remove { grid-column: 1 / -1; }
    .experience-row { grid-template-columns: minmax(0, 1fr); }
    .coin-multiplier-add { grid-template-columns: minmax(0, 1fr) minmax(80px, auto); }
    .coin-multiplier-add .small-button { grid-column: 1 / -1; justify-self: start; }
    .experience-row .experience-remove { justify-self: end; }
    .drop-box-reward-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .drop-box-reward-row .experience-remove { grid-column: 1 / -1; justify-self: end; }
    .streams-row, .streams-add-area { grid-template-columns: minmax(0, 1fr); }
    .streams-row .streams-remove { justify-self: end; }
    .custom-command-heading { grid-template-columns: minmax(0, 1fr); }
    .custom-command-heading .custom-command-remove { justify-self: end; }
    .autorole-picker { grid-template-columns: minmax(0, 1fr) auto; }
    .autoclear-interval-inputs { grid-template-columns: 1fr; }
    .module-heading { min-height: 0; }
    .command-catalog-heading { min-height: 0; }
    .command-catalog-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
    .command-catalog-search { grid-column: 1 / -1; }
    .command-catalog-cards { grid-template-columns: minmax(0, 1fr); }
    .tree-children { padding-right: 12px; padding-left: 12px; }
    .tree-heading { padding-right: 12px; padding-left: 12px; }
    .field { grid-template-columns: minmax(125px, .65fr) minmax(0, 1.35fr); }
}

@media (max-width: 440px) {
    .message-editor-backdrop { padding: 0; }
    .message-editor-dialog { width: 100%; max-height: 100vh; border-radius: 0; padding: 17px 12px 12px; }
    .message-editor-dialog > h2 { font-size: 20px; }
    .message-editor-footer { flex-wrap: wrap; }
    .message-editor-footer [role="status"] { flex-basis: 100%; }
    .field { grid-template-columns: 1fr; gap: 6px; }
    .message-config-field > span { padding-top: 0; }
    .message-config-panel { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 440px) {
    .login-screen { width: calc(100% - 28px); }
    .dashboard-main { padding-right: 12px; padding-left: 12px; }
    .field { grid-template-columns: 1fr; gap: 4px; }
    .field > span { padding-top: 2px; }
    .command-field { grid-template-columns: 1fr; gap: 5px; }
}

body.server-picker-open { min-height: 100vh; overflow: hidden; background: var(--canvas); }
body.server-picker-open .topbar { display: none; }
.server-picker-screen { display: grid; width: 100%; min-height: 100vh; grid-template-columns: 198px minmax(0, 1fr); background: var(--canvas); }
body.server-picker-open main { width: 100%; max-width: none; margin: 0; }
.server-picker-sidebar { position: sticky; top: 0; display: flex; height: 100vh; min-height: 0; flex-direction: column; padding: 0 10px 12px; border-right: 1px solid var(--line); background: #141318; }
.picker-brand { display: inline-flex; min-height: 58px; align-items: center; gap: 10px; padding: 0 8px; color: #f3f1f7; font-size: 16px; font-weight: 800; text-decoration: none; }
.picker-brand-mark { display: grid; width: 31px; height: 31px; place-items: center; color: #102018; background: var(--mint); border: 1px solid var(--mint); font: 22px/1 var(--mono); }
.picker-brand small { display: block; margin-top: 3px; color: var(--muted); font: 8px var(--mono); }
.picker-profile { margin: 0 -10px 12px; border-bottom: 1px solid var(--line); }
.picker-profile-cover { height: 84px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, var(--mint-deep), #211f25); }
.picker-profile-details { display: flex; min-height: 61px; align-items: center; gap: 9px; padding: 0 12px 10px; }
.picker-profile-details > img { width: 48px; height: 48px; flex: 0 0 48px; margin-top: -23px; border: 2px solid #141318; border-radius: 50%; background: var(--panel-raised); object-fit: cover; }
.picker-profile-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
.picker-profile-copy span { overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.picker-profile-copy small { color: var(--muted); font-size: 9px; }
.picker-profile-details .quiet-button { padding: 6px; }
.picker-nav { display: grid; gap: 5px; }
.picker-nav-link { display: flex; min-height: 37px; align-items: center; gap: 9px; border-radius: 3px; padding: 0 10px; color: #b9c5be; font-size: 11px; font-weight: 700; text-decoration: none; }
.picker-nav button.picker-nav-link { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; }
.picker-nav button.picker-nav-link[hidden], .server-picker-tools[hidden], .server-grid[hidden], .server-empty[hidden] { display: none; }
.picker-nav-link i { width: 15px; color: var(--muted); }
.picker-nav-link:hover { color: var(--ink); background: rgba(255, 255, 255, .035); }
.picker-nav-link.active { color: var(--ink); background: var(--panel); box-shadow: inset 2px 0 var(--mint); }
.picker-nav-link.active i { color: var(--mint); }
.picker-sidebar-footer { display: grid; gap: 12px; margin-top: auto; }
.picker-home-link { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 13px 5px 0; color: var(--muted); font-size: 10px; text-decoration: none; }
.picker-home-link:hover { color: var(--mint); }
.server-picker-main { width: 100%; margin: 0; padding: 27px clamp(22px, 4vw, 54px) 48px; overflow-y: auto; }
.server-picker-heading { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.server-picker-heading .eyebrow { margin: 0 0 8px; color: var(--mint); font-size: 9px; }
.server-picker-heading h1 { margin: 0 0 6px; color: var(--ink); font-size: 24px; }
.server-picker-heading > p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.server-overview-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.server-stat { display: inline-flex; min-height: 32px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 3px; padding: 0 10px; background: var(--panel); }
.server-stat i { color: var(--mint); font-size: 9px; }
.server-stat:nth-child(2) i { color: #63d39a; }
.server-stat:nth-child(3) i { color: var(--amber); }
.server-stat strong { color: var(--ink); font: 11px var(--mono); }
.server-stat span { color: var(--muted); font-size: 9px; }
.server-picker-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 13px; }
.server-search { display: flex; width: min(340px, 100%); min-height: 35px; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 3px; padding: 0 10px; color: var(--muted); background: #111a17; }
.server-search:focus-within { border-color: var(--mint); box-shadow: 0 0 0 2px rgba(25, 166, 245, .12); }
.server-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.server-search input::placeholder { color: #898590; }
.server-search input:focus { box-shadow: none; }
.server-search input::-webkit-search-cancel-button { cursor: pointer; }
.server-count { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.server-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.server-card { display: grid; min-width: 0; min-height: 220px; grid-template-rows: auto 1fr auto; gap: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; padding: 12px 13px; background: var(--panel); transition: border-color .16s ease, background-color .16s ease; }
.server-card:hover { border-color: var(--mint); background: #25232a; }
.server-card[hidden] { display: none; }
.server-card-status { justify-self: end; border: 1px solid #685334; border-radius: 3px; padding: 4px 7px; color: var(--amber); background: rgba(228, 177, 108, .08); font: 8px var(--mono); }
.server-card-status.is-installed { border-color: #327d60; color: #75d6a1; background: rgba(25, 166, 104, .1); }
.server-identity { display: grid; min-width: 0; align-content: start; gap: 10px; }
.server-card-icon { position: relative; display: grid; width: 49px; height: 49px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; color: var(--mint); background: var(--panel-raised); font-size: 14px; font-weight: 800; }
.server-card-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.server-card-details { min-width: 0; }
.server-card-details h2 { margin: 0 0 5px; overflow-wrap: anywhere; color: var(--ink); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.server-card-id { margin: 0; overflow: hidden; color: #829189; font: 8px var(--mono); text-overflow: ellipsis; }
.server-action { display: inline-flex; width: 100%; min-height: 32px; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--mint); border-radius: 3px; padding: 0 11px; color: #102018; background: var(--mint); font-size: 10px; font-weight: 800; text-decoration: none; cursor: pointer; transition: background-color .16s ease, border-color .16s ease; }
.server-action:hover { border-color: #b4f2d1; background: #b4f2d1; }
.server-action i { font-size: 9px; }
.install-action { border-color: var(--line); color: var(--ink); background: var(--panel-raised); }
.install-action:hover { border-color: var(--mint); background: #33313a; }
.server-empty { display: grid; justify-items: center; gap: 8px; padding: 62px 15px; color: #a5a2ac; text-align: center; }
.server-empty > i { color: var(--mint); font-size: 22px; }
.server-empty h2 { margin: 3px 0 0; color: var(--ink); font-size: 16px; }
.server-empty p { max-width: 390px; margin: 0; font-size: 11px; line-height: 1.6; }
.general-admin-panel { display: grid; gap: 15px; padding-top: 20px; }
.general-admin-panel[hidden] { display: none; }
.admin-login-panel { display: grid; width: min(100%, 440px); gap: 13px; border: 1px solid var(--line); border-radius: 4px; padding: 18px; background: var(--panel); }
.admin-login-panel[hidden], #adminConsole[hidden] { display: none; }
.admin-login-panel h2 { margin: 0 0 5px; color: var(--ink); font-size: 16px; }
.admin-login-panel p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.admin-login-field { display: grid; gap: 6px; color: #d6d2dc; font-size: 11px; font-weight: 700; }
.admin-login-field input { min-width: 0; border: 1px solid var(--line); border-radius: 3px; padding: 9px 10px; color: var(--ink); background: #111a17; font-size: 12px; }
.admin-login-field input:focus { border-color: var(--mint); outline: 0; box-shadow: 0 0 0 2px rgba(25, 166, 245, .12); }
.admin-login-panel .small-button { justify-self: start; min-height: 34px; padding: 0 14px; }
.general-admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.general-admin-heading h2 { margin: 0 0 6px; color: var(--ink); font-size: 18px; }
.general-admin-heading p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.general-admin-heading .quiet-button { min-width: 36px; min-height: 36px; }
.admin-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.admin-stat { display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 3px; padding: 13px; background: var(--panel); }
.admin-stat strong { color: var(--mint); font-size: 20px; }
.admin-stat span { color: var(--muted); font-size: 10px; }
.admin-search { width: min(390px, 100%); }
.admin-overview-status { min-height: 16px; margin: 0; color: var(--muted); font-size: 10px; }
.admin-server-list { display: grid; gap: 8px; max-height: 480px; overflow-y: scroll; padding-right: 8px; scrollbar-width: thin; scrollbar-color: #2c4a5e transparent; scrollbar-gutter: stable; }
.admin-server-list::-webkit-scrollbar { width: 10px; }
.admin-server-list::-webkit-scrollbar-track { background: #1d1c22; border-left: 1px solid var(--line); }
.admin-server-list::-webkit-scrollbar-thumb { border: 2px solid #1d1c22; border-radius: 5px; background: #3d86b8; }
.admin-server-list::-webkit-scrollbar-thumb:hover { background: var(--mint); }
.admin-server-row { display: grid; grid-template-columns: minmax(190px, 1fr) auto; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 3px; padding: 12px; background: var(--panel); }
.admin-server-info { min-width: 0; }
.admin-server-info h3 { margin: 0 0 4px; overflow-wrap: anywhere; color: var(--ink); font-size: 12px; }
.admin-server-info p { margin: 3px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: 10px; }
.admin-server-info .admin-premium-status.is-active { color: #75d6a1; }
.admin-server-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.admin-server-actions input { width: 76px; min-height: 32px; padding: 0 7px; font-size: 11px; }
.admin-server-actions .small-button, .admin-server-actions .quiet-button { min-height: 32px; padding: 0 9px; font-size: 10px; }
.admin-permanent-button { border-color: #327d60; background: #1d684b; }
.admin-permanent-button:hover { background: #25835e; }
.admin-revoke-button { color: #ff8b8b; }
.admin-revoke-button:disabled { opacity: .45; cursor: not-allowed; }
.admin-coupon-section { display: grid; gap: 10px; margin: 18px 0; border: 1px solid var(--line); border-radius: 3px; padding: 14px; background: var(--panel); }
.admin-coupon-copy h3 { margin: 0 0 3px; color: var(--ink); font-size: 14px; }
.admin-coupon-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.admin-coupon-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.admin-coupon-field { display: grid; gap: 5px; color: #d6d2dc; font-size: 11px; font-weight: 700; }
.admin-coupon-field-wide { flex: 1 1 320px; }
.admin-coupon-field input, .admin-coupon-field select { min-width: 0; width: 170px; border: 1px solid var(--line); border-radius: 3px; padding: 9px 10px; color: var(--ink); background: #111a17; font-size: 12px; }
.admin-coupon-field-wide input { width: 100%; }
.admin-coupon-field input[placeholder*="Ex: NATAL25"] { text-transform: uppercase; }
.admin-coupon-field input:focus { border-color: var(--mint); outline: 0; box-shadow: 0 0 0 2px rgba(25, 166, 245, .12); }
.admin-coupon-form .small-button { min-height: 34px; padding: 0 14px; }
.admin-coupon-form .admin-coupon-off { border-color: #7d3232; color: #ff8b8b; }
.admin-coupon-form .admin-coupon-off:hover { border-color: #a34040; }
.admin-coupon-uses { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border: 1px dashed var(--line); border-radius: 3px; padding: 10px 12px; color: #ffd98b; font-size: 12px; }
.admin-coupon-list { display: grid; gap: 8px; }
.admin-coupon-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 3px; padding: 10px 12px; background: #111a17; }
.admin-coupon-item .jz-coupon-code { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.admin-coupon-item .jz-coupon-meta { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.admin-coupon-item .jz-coupon-meta.is-ok { color: #75d6a1; }
.admin-coupon-item .jz-coupon-meta.is-done { color: #ff8b8b; }
.admin-coupon-item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.admin-coupon-item-actions .small-button { min-height: 30px; padding: 0 10px; font-size: 10px; }
.admin-coupon-empty { border: 1px dashed var(--line); border-radius: 3px; padding: 16px; color: var(--muted); font-size: 11px; text-align: center; }
.admin-coupon-check { display: flex; align-items: center; gap: 7px; min-height: 34px; color: #d6d2dc; font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.admin-coupon-check input { width: 15px; height: 15px; accent-color: #19a6f5; cursor: pointer; }
.jz-coupon-once { display: inline-block; margin-left: 6px; border: 1px solid #4a5d8a; border-radius: 3px; padding: 1px 5px; color: #9db8e8; background: rgba(40, 70, 130, .3); font-size: 9px; font-weight: 700; }
.admin-tools-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 12px; }
.admin-tool-button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; border: 1px solid var(--line); border-radius: 3px; padding: 0 13px; color: #cfc9d6; background: var(--panel-raised); font-size: 11px; font-weight: 700; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.admin-tool-button i { color: var(--mint); font-size: 12px; }
.admin-tool-button:hover { border-color: var(--mint); color: #fff; }
.admin-tool-button.is-active { border-color: var(--mint); color: #fff; background: rgba(25, 166, 245, .12); }
.admin-tool-panel { margin-bottom: 12px; }
.admin-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px; }
.admin-modal[hidden] { display: none; }
.admin-modal-backdrop { position: absolute; inset: 0; background: rgba(3, 8, 15, .68); }
.admin-modal-window { position: relative; width: min(560px, 100%); max-height: min(86vh, 660px); overflow: auto; border: 1px solid var(--line); border-radius: 6px; background: #0e1814; box-shadow: 0 26px 80px rgba(0, 0, 0, .6); }
.admin-modal-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #0e1814; }
.admin-modal-head h3 { margin: 0; color: var(--ink); font-size: 14px; }
.admin-modal-head h3 i { color: var(--mint); margin-right: 7px; }
.admin-modal-close { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: transparent; cursor: pointer; }
.admin-modal-close:hover { color: #fff; border-color: var(--mint); }
.admin-modal-window .admin-coupon-section { margin: 0; border: 0; background: transparent; }
.admin-modal-hint { margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.admin-list-empty { border: 1px solid var(--line); border-radius: 3px; padding: 22px; color: var(--muted); background: var(--panel); font-size: 11px; text-align: center; }
.server-overview-content { display: grid; gap: 14px; }
.server-overview-heading { min-height: 112px; align-items: center; margin-bottom: 0; border: 1px solid var(--line); border-radius: 3px; padding: 18px; background: var(--panel); }
.server-overview-heading .eyebrow { margin: 0 0 7px; color: var(--mint); font-size: 9px; }
.server-overview-heading h2 { margin: 0 0 5px; color: var(--ink); font-size: 20px; }
.server-overview-heading p:last-child { max-width: 720px; color: var(--muted); font-size: 11px; }
.overview-refresh { min-width: 34px; min-height: 34px; border: 1px solid var(--line); border-radius: 3px; padding: 0; color: var(--muted); background: var(--panel-raised); }
.server-overview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.server-overview-metric { position: relative; display: grid; min-height: 72px; align-content: center; gap: 5px; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; padding: 11px 13px; background: var(--panel); }
.server-overview-metric > span { color: var(--mint); font: 8px var(--mono); }
.server-overview-metric strong { z-index: 1; color: var(--ink); font-size: 14px; }
.server-overview-metric > i { position: absolute; right: 12px; color: rgba(25, 166, 245, .1); font-size: 29px; }
.server-overview-metric.tone-teal > span { color: #55c6b1; }
.server-overview-metric.tone-green > span { color: #65d19a; }
.server-overview-metric.tone-amber > span { color: var(--amber); }
.server-overview-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.server-overview-panel { min-width: 0; border: 1px solid var(--line); border-radius: 3px; padding: 14px; background: var(--panel); }
.overview-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.server-overview-panel h3 { margin: 0 0 12px; color: var(--ink); font-size: 11px; }
.overview-panel-heading h3 { margin: 0; }
.overview-online-badge { border: 1px solid #205a43; border-radius: 10px; padding: 4px 8px; color: #5fdda0; background: rgba(19, 64, 45, .38); font: 8px var(--mono); }
.overview-online-badge::before { margin-right: 5px; color: #55d890; content: '●'; }
.overview-online-badge.is-offline { border-color: #643b3d; color: #f08f8f; background: rgba(74, 31, 33, .35); }
.overview-online-badge.is-offline::before { color: #ef7777; }
.overview-status-items { display: grid; }
.overview-status-items > div { display: flex; min-height: 37px; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .055); color: var(--muted); font-size: 10px; }
.overview-status-items strong { color: var(--ink); font-size: 10px; text-align: right; }
.overview-info-items { display: grid; gap: 5px; }
.overview-info-row { display: grid; min-height: 35px; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px; border-radius: 2px; padding: 0 8px; color: var(--muted); background: rgba(255, 255, 255, .025); font-size: 10px; }
.overview-info-row > i { color: var(--mint); font-size: 10px; }
.overview-info-row strong { color: var(--ink); font-size: 10px; text-align: right; }
.back-to-servers { display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 8px 0; background: transparent; cursor: pointer; }
.back-to-servers:hover { color: #38b7ff; }

@media (max-width: 760px) {
    .registration-grid { grid-template-columns: minmax(0, 1fr); }
    .registration-welcome .registration-details { grid-template-columns: minmax(0, 1fr); }
    .registration-welcome .entry-message-block { grid-column: auto; }
    body.server-picker-open { overflow: auto; }
    .server-picker-screen { min-height: 100vh; grid-template-columns: 1fr; align-content: start; }
    .server-picker-sidebar { position: sticky; z-index: 5; height: auto; min-height: 58px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 13px; border-right: 0; border-bottom: 1px solid #20242d; }
    .picker-brand { flex: 0 0 auto; gap: 7px; padding: 0; font-size: 14px; }
    .picker-brand-mark { width: 31px; height: 31px; font-size: 20px; }
    .picker-brand small { font-size: 8px; }
    .picker-profile { display: flex; min-width: 0; align-items: center; margin: 0; border: 0; }
    .picker-profile-cover { display: none; }
    .picker-profile-details { min-height: 0; gap: 6px; padding: 0; }
    .picker-profile-details > img { width: 29px; height: 29px; flex-basis: 29px; margin: 0; border-width: 1px; }
    .picker-profile-copy { display: none; }
    .picker-profile-details .quiet-button { padding: 5px; }
    .picker-nav { margin-left: auto; padding: 0; border: 0; }
    .picker-nav-label, .picker-home-link { display: none; }
    .picker-nav-link { min-height: 34px; gap: 6px; padding: 0 8px; font-size: 10px; }
    .picker-sidebar-footer { display: none; }
    .server-picker-main { padding: 25px 16px 35px; }
    .server-picker-heading h1 { font-size: 22px; }
    .server-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .server-card { min-height: 200px; }
    .server-overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .server-overview-panels { grid-template-columns: minmax(0, 1fr); }
    .admin-server-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .admin-server-actions { justify-content: flex-start; }
}

@media (max-width: 520px) {
    .server-picker-sidebar { gap: 6px; padding-right: 9px; padding-left: 9px; }
    .picker-brand { font-size: 12px; }
    .picker-brand-mark { width: 28px; height: 28px; font-size: 18px; }
    .picker-brand small { font-size: 7px; }
    .picker-profile-details > img { width: 26px; height: 26px; flex-basis: 26px; }
    .picker-profile-details .quiet-button { padding: 3px; font-size: 11px; }
    .picker-nav-link { width: 34px; justify-content: center; padding: 0; }
    .picker-nav-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .server-picker-tools { align-items: stretch; flex-direction: column; gap: 8px; }
    .server-search { width: 100%; }
    .server-count { align-self: flex-end; }
    .server-grid { grid-template-columns: minmax(0, 1fr); }
    .server-overview-stats { gap: 5px; }
    .server-stat { min-height: 30px; gap: 5px; padding: 0 7px; }
    .server-overview-metric { min-height: 68px; padding: 9px; }
    .admin-summary { grid-template-columns: minmax(0, 1fr); }
    .admin-stat { grid-template-columns: auto 1fr; align-items: baseline; }
    .server-card { min-height: 190px; }
}