:root {
  color-scheme: dark;
  --bg: #090d14;
  --surface: #101722;
  --surface-raised: #151e2c;
  --surface-soft: #0d131d;
  --border: #263244;
  --border-soft: #1c2737;
  --text: #f5f7fb;
  --muted: #91a0b5;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, .13);
  --success: #36c98f;
  --warning: #f4b942;
  --danger: #f06a75;
  --radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% -20%, #162947 0, transparent 35rem), var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
pre { max-height: 520px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
button, input, textarea, select { min-width: 0; max-width: 100%; font: inherit; }
button, .button { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #79adfb; outline-offset: 3px; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 20px; border-right: 1px solid var(--border-soft); background: rgba(8, 12, 19, .9); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0 8px 26px; font-weight: 720; letter-spacing: -.02em; }
.brand > span:last-child { min-width: 0; }
.brand-mark { display: grid; flex: 0 0 35px; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: linear-gradient(145deg, #60a5fa, #2563eb); box-shadow: 0 10px 32px rgba(37, 99, 235, .25); }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: grid; gap: 5px; }
.nav a { display: flex; gap: 11px; align-items: center; min-height: 42px; padding: 0 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 590; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--accent-soft); }
.nav .icon { width: 20px; color: #9ec5ff; text-align: center; }
.sidebar-foot { position: absolute; left: 20px; right: 20px; bottom: 24px; color: #64748b; font-size: 12px; }

.main { min-width: 0; padding: 34px clamp(24px, 4vw, 58px) 70px; }
.topbar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 24px; margin-bottom: 30px; }
.topbar > :first-child { flex: 1 1 480px; min-width: 0; }
.subnav { display: flex; align-items: stretch; gap: 8px; min-width: 0; margin: 0 0 26px; padding: 7px; border: 1px solid var(--border); border-radius: 13px; background: rgba(13, 19, 29, .92); box-shadow: 0 14px 42px rgba(0, 0, 0, .13); }
.subnav-label { display: flex; flex: 0 0 auto; align-items: center; padding: 0 11px; border-right: 1px solid var(--border); color: #718198; font-size: 10px; font-weight: 780; letter-spacing: .09em; text-transform: uppercase; }
.subnav-items { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(112px, 1fr); flex: 1 1 auto; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.subnav a { position: relative; display: grid; min-width: 0; place-items: center; min-height: 38px; padding: 9px 12px; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 680; text-align: center; white-space: nowrap; }
.subnav a:hover { color: var(--text); background: rgba(255, 255, 255, .035); }
.subnav a.active { color: #eef5ff; background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .12); }
.subnav a.active::after { position: absolute; right: 12px; bottom: 4px; left: 12px; height: 2px; border-radius: 999px; background: #60a5fa; content: ""; }
.eyebrow { margin: 0 0 6px; color: #79adfb; font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; letter-spacing: -.045em; }
.lead { max-width: 720px; margin: 9px 0 0; overflow-wrap: anywhere; color: var(--muted); line-height: 1.55; }
.user { display: flex; flex: 0 1 auto; align-items: center; gap: 10px; min-width: 0; max-width: 100%; padding: 7px 8px 7px 12px; border: 1px solid var(--border); border-radius: 999px; background: rgba(16, 23, 34, .75); color: var(--muted); font-size: 13px; white-space: nowrap; }
.user > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.avatar { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: #9ec5ff; font-weight: 750; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { min-width: 0; max-width: 100%; padding: 21px; overflow-wrap: anywhere; border: 1px solid var(--border-soft); border-radius: var(--radius); background: linear-gradient(160deg, rgba(21, 30, 44, .94), rgba(14, 20, 30, .94)); box-shadow: 0 18px 60px rgba(0, 0, 0, .12); }
.card h2, .card h3 { margin: 0; letter-spacing: -.025em; }
.card h2 { font-size: 18px; }
.card h3 { font-size: 15px; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 9px 16px; min-width: 0; margin-bottom: 18px; }
.card-head > * { min-width: 0; }
.card-head > .inline-form { flex: 1 1 420px; }
.section { margin-top: 24px; }
.metric { min-height: 136px; display: flex; flex-direction: column; justify-content: space-between; }
.metric .label { color: var(--muted); font-size: 13px; }
.metric .value { max-width: 100%; margin-top: 12px; overflow-wrap: anywhere; font-size: clamp(22px, 2.4vw, 29px); font-weight: 730; line-height: 1.12; letter-spacing: -.04em; }
.metric .value.mono { font-size: clamp(16px, 1.8vw, 22px); }
.metric .detail { overflow-wrap: anywhere; color: #708197; font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 650; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 4px rgba(244, 185, 66, .08); }
.status.ok::before { background: var(--success); box-shadow: 0 0 0 4px rgba(54, 201, 143, .09); }
.status.bad::before { background: var(--danger); box-shadow: 0 0 0 4px rgba(240, 106, 117, .09); }

.table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; margin: 0 -4px; overscroll-behavior-inline: contain; scrollbar-width: thin; }
table { width: 100%; min-width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 11px 12px; border-bottom: 1px solid var(--border); color: #718198; font-size: 11px; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
th, td { min-width: 96px; }
th:first-child, td:first-child { min-width: 72px; }
th:nth-child(2), td:nth-child(2) { min-width: 140px; }
td { padding: 13px 12px; overflow-wrap: anywhere; border-bottom: 1px solid var(--border-soft); color: #cbd5e1; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.truncate { display: block; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.badge { display: inline-flex; align-items: center; min-height: 24px; max-width: 100%; padding: 0 8px; border: 1px solid var(--border); border-radius: 999px; background: #111a27; color: #aab8ca; font-size: 10px; font-weight: 760; letter-spacing: .05em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; }
.badge.qualified, .badge.accepted, .badge.open { border-color: rgba(54, 201, 143, .3); color: #75e0b7; background: rgba(54, 201, 143, .08); }
.badge.pending, .badge.manual_review, .badge.submitted { border-color: rgba(244, 185, 66, .3); color: #f6cb72; background: rgba(244, 185, 66, .08); }
.badge.rejected, .badge.revoked { border-color: rgba(240, 106, 117, .3); color: #f69ba3; background: rgba(240, 106, 117, .08); }

form { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; min-width: 0; }
.form-grid > * { min-width: 0; }
.field { display: grid; min-width: 0; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field-hint { overflow-wrap: anywhere; color: #718198; font-size: 11px; line-height: 1.45; }
.form-group { min-width: 0; margin: 2px 0; padding: 15px; border: 1px solid var(--border); border-radius: 11px; }
.form-group.full { grid-column: 1 / -1; }
.form-group legend { padding: 0 7px; color: #c8d2df; font-size: 12px; font-weight: 720; }
.option-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 300px; overflow: auto; }
.option-row { min-width: 0; padding: 8px 10px; border: 1px solid var(--border-soft); border-radius: 8px; background: #0b111a; }
.option-row span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.option-row small { flex: 0 1 46%; min-width: 0; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
label { color: #aebacc; font-size: 12px; font-weight: 650; }
input, textarea, select { width: 100%; border: 1px solid var(--border); border-radius: 9px; outline: 0; background: #0b111a; color: var(--text); }
input, select { height: 42px; padding: 0 11px; }
select, input[readonly] { text-overflow: ellipsis; }
textarea { min-height: 110px; padding: 11px; overflow-wrap: anywhere; line-height: 1.5; resize: vertical; }
.code-editor { min-height: 420px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; tab-size: 2; }
.markdown-editor { min-height: 340px; padding: 15px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; line-height: 1.65; tab-size: 2; }
.markdown-editor:disabled { opacity: .48; cursor: not-allowed; }
.advanced-editor { padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 11px; background: rgba(8, 13, 20, .38); }
.advanced-editor > summary { cursor: pointer; padding: 13px 15px; color: #aebacc; font-size: 12px; font-weight: 720; list-style-position: inside; }
.advanced-editor[open] { padding: 0 15px 15px; }
.advanced-editor[open] > summary { margin: 0 -15px 14px; border-bottom: 1px solid var(--border-soft); background: rgba(255, 255, 255, .02); }
.advanced-editor > label, .advanced-editor > .field-hint, .advanced-editor > textarea { margin-top: 10px; }
.advanced-editor .code-editor { min-height: 360px; }
.advanced-toggle { padding: 4px 0; color: #d4deea; }
.advanced-json-active .markdown-field { opacity: .62; }
input:focus, textarea:focus, select:focus { border-color: #3f78ca; box-shadow: 0 0 0 3px rgba(59, 130, 246, .1); }
input[type="color"] { padding: 5px; }
.checkbox { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 9px; min-width: 0; min-height: 42px; overflow-wrap: anywhere; line-height: 1.35; }
.checkbox input { flex: 0 0 17px; width: 17px; height: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; min-width: 0; margin-top: 17px; }
.button, button { display: inline-flex; justify-content: center; align-items: center; min-height: 38px; max-width: 100%; padding: 8px 13px; border: 1px solid transparent; border-radius: 9px; background: var(--accent); color: white; font-size: 12px; font-weight: 700; line-height: 1.25; text-align: center; white-space: normal; }
.button:hover, button:hover { filter: brightness(1.08); }
button:disabled { cursor: not-allowed; opacity: .45; filter: none; }
.button.secondary, button.secondary { border-color: var(--border); background: #151e2c; color: #c4cfdd; }
.button.danger, button.danger { background: #a93846; }
.button.small, button.small { min-height: 30px; padding: 6px 9px; font-size: 11px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; max-width: 100%; }
.inline-form input:not([type="hidden"]), .inline-form select { flex: 1 1 140px; width: auto; height: 32px; }
.inline-form button { flex: 0 0 auto; min-height: 32px; }

.notice { margin-bottom: 18px; padding: 12px 14px; overflow-wrap: anywhere; border: 1px solid rgba(54, 201, 143, .24); border-radius: 10px; background: rgba(54, 201, 143, .08); color: #8ee7c5; font-size: 13px; }
.notice.error { border-color: rgba(240, 106, 117, .28); background: rgba(240, 106, 117, .08); color: #f5a6ad; }
.empty { padding: 34px 12px; color: var(--muted); text-align: center; }

.embed-preview { padding: 16px; border-left: 4px solid var(--preview-color, #3b82f6); border-radius: 5px; background: #202225; color: #dcddde; }
.embed-preview.no-color { border-left: 0; }
.embed-preview h3 { margin: 0 0 8px; color: white; }
.embed-preview p { margin: 0; white-space: pre-wrap; line-height: 1.45; }
.embed-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.embed-field strong { display: block; margin-bottom: 3px; color: white; font-size: 12px; }
.embed-field span { color: #c8c9cb; font-size: 12px; white-space: pre-wrap; }
.leaderboard-preview { position: relative; min-height: 220px; overflow: hidden; }
.leaderboard-preview p { padding-right: 68px; font-size: 13px; }
.leaderboard-preview .discord-container { overflow-x: auto; }
.leaderboard-preview .discord-text p { padding-right: 0; }
.leaderboard-preview .discord-table-lines { width: max-content; min-width: 100%; }
.leaderboard-preview .discord-table-lines p { margin: 0; line-height: 1.52; }
.leaderboard-preview .discord-table-lines code { display: inline-block; white-space: pre; }
.leaderboard-field { margin-top: 15px; }
.embed-thumbnail { float: right; width: 58px; height: 58px; margin: 0 0 10px 12px; border-radius: 7px; object-fit: cover; }
.embed-image { display: block; width: 100%; max-height: 280px; margin-top: 15px; border-radius: 5px; object-fit: cover; }
.embed-footer { display: block; clear: both; margin-top: 14px; color: #a7a9ad; font-size: 10px; }
.components-preview { min-width: 0; max-width: 100%; min-height: 160px; padding: 14px; overflow: hidden; border-radius: 8px; background: #1e1f22; color: #dbdee1; }
.discord-container { position: relative; display: grid; gap: 12px; min-width: 0; max-width: 100%; padding: 16px; overflow: hidden; overflow-wrap: anywhere; border: 1px solid #3f4147; border-radius: 8px; background: #2b2d31; }
.discord-container.has-accent { border-left: 4px solid var(--component-accent); }
.discord-text { min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.discord-text h3, .discord-text h4, .discord-text h5 { margin: 0 0 8px; color: #f2f3f5; line-height: 1.2; }
.discord-text h3 { font-size: 21px; }
.discord-text h4 { font-size: 17px; }
.discord-text h5 { font-size: 14px; }
.discord-text p { margin: 0 0 7px; color: #dbdee1; line-height: 1.45; white-space: pre-wrap; }
.discord-text p:last-child { margin-bottom: 0; }
.discord-text code { padding: 1px 4px; overflow-wrap: anywhere; border-radius: 3px; background: #1e1f22; font-family: "SFMono-Regular", Consolas, monospace; font-size: .92em; }
.discord-mention { display: inline-block; max-width: 100%; padding: 0 3px; overflow: hidden; border-radius: 3px; background: rgba(88, 101, 242, .3); color: #c9cdfb; font-weight: 600; text-overflow: ellipsis; vertical-align: bottom; white-space: nowrap; }
.discord-list-row { overflow-wrap: anywhere; color: #dbdee1; line-height: 1.5; }
.discord-space { display: block; height: 8px; }
.discord-footer { display: block; color: #a8aab0; font-size: 11px; line-height: 1.4; }
.discord-separator { width: 100%; height: 1px; margin: 1px 0; border: 0; background: #41434a; }
.discord-spacer { height: 8px; }
.discord-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px; overflow: hidden; border-radius: 7px; }
.discord-gallery img { display: block; width: 100%; max-height: 320px; border-radius: 7px; object-fit: cover; }
.discord-media-missing, .discord-file, .discord-unknown { padding: 12px; border: 1px solid #41434a; border-radius: 6px; color: #a8aab0; font-size: 12px; }
.discord-section { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 14px; min-width: 0; }
.discord-section > * { min-width: 0; }
.discord-thumbnail { width: 74px; height: 74px; border-radius: 7px; object-fit: cover; }
.discord-actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin-top: 4px; }
.discord-button { min-height: 32px; padding: 7px 14px; border: 0; border-radius: 4px; background: #4e5058; color: white; font-size: 13px; font-weight: 600; opacity: 1; }
.discord-button:disabled { cursor: default; opacity: 1; filter: none; }
.discord-button.style-1 { background: #5865f2; }
.discord-button.style-3 { background: #248046; }
.discord-button.style-4 { background: #da373c; }
.discord-code { max-height: none; margin: 8px 0 0; padding: 11px 13px; overflow-x: auto; border: 1px solid #3f4147; border-radius: 5px; background: #1e1f22; color: #dbdee1; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; line-height: 1.45; white-space: pre; }
.preview-error { margin: 12px 0 0; color: #f5a6ad; font-size: 12px; }
.preview-sticky { align-self: start; position: sticky; top: 24px; }
.support-body-editor { min-height: 220px; }
.case-actions { display: grid; gap: 7px; min-width: 150px; max-width: 100%; }
.case-actions .inline-form { display: grid; }
.support-case-table-wrap { overflow-x: visible; }
.support-case-table { table-layout: fixed; }
.support-case-table th, .support-case-table td { min-width: 0; }
.support-case-table .case-col-id { width: 10%; }
.support-case-table .case-col-owner { width: 17%; }
.support-case-table .case-col-subject { width: 27%; }
.support-case-table .case-col-status { width: 16%; }
.support-case-table .case-col-routing { width: 17%; }
.support-case-table .case-col-actions { width: 13%; }
.support-case-table .case-actions { min-width: 0; }
.support-case-table .mono { overflow-wrap: anywhere; }
.support-case-table td[data-label="Status"] .badge { justify-content: center; text-align: center; white-space: normal; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.case-hero .case-description { max-width: 900px; color: #d7e0eb; line-height: 1.65; }
.support-workspace { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .75fr); gap: 18px; align-items: start; }
.support-sidebar { display: grid; gap: 18px; min-width: 0; }
.conversation-card { min-width: 0; overflow: hidden; }
.conversation-timeline { display: grid; max-height: 900px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--border-soft); border-radius: 12px; background: rgba(7, 11, 17, .48); scrollbar-width: thin; }
.conversation-message { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 14px; border-bottom: 1px solid var(--border-soft); }
.conversation-message:last-child { border-bottom: 0; }
.conversation-message.is-deleted { background: rgba(240, 106, 117, .035); }
.conversation-avatar { display: grid; place-items: center; width: 36px; height: 36px; overflow: hidden; border-radius: 50%; background: #1c2a3d; color: #9ec5ff; font-size: 13px; font-weight: 760; }
.conversation-avatar img { width: 100%; height: 100%; object-fit: cover; }
.conversation-main { min-width: 0; }
.conversation-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; min-width: 0; margin-bottom: 5px; color: #718198; font-size: 11px; }
.conversation-meta strong { max-width: 100%; overflow-wrap: anywhere; color: #dfe8f3; font-size: 13px; }
.mini-badge { padding: 1px 4px; border-radius: 4px; background: #5865f2; color: white; font-size: 8px; font-weight: 800; }
.deleted-label { color: #f69ba3; }
.conversation-content { overflow-wrap: anywhere; color: #cbd5e1; font-size: 13px; line-height: 1.55; }
.conversation-empty { color: #66758a; font-size: 12px; font-style: italic; }
.conversation-files { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.conversation-file { display: inline-flex; max-width: 100%; padding: 6px 9px; overflow: hidden; border: 1px solid var(--border); border-radius: 7px; background: #0c1420; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-embed { max-width: 640px; margin-top: 8px; padding: 9px 11px; overflow-wrap: anywhere; border-left: 3px solid #64748b; border-radius: 4px; background: #111923; color: #b9c5d3; font-size: 12px; }
.conversation-embed p { margin: 4px 0 0; line-height: 1.5; }
.sync-form { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 14px; }
.notice-inline { padding: 9px 11px; border: 1px solid rgba(96, 165, 250, .2); border-radius: 8px; background: rgba(59, 130, 246, .06); color: #9db9dc; font-size: 12px; }
.compact-form { gap: 10px; }
.compact-form textarea { min-height: 82px; }
.stack-actions { display: grid; gap: 8px; margin-top: 14px; }
.stack-actions button { width: 100%; }
.case-facts { display: grid; gap: 0; margin: 0; }
.case-facts > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.case-facts dt { color: #718198; font-size: 11px; }
.case-facts dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #cbd5e1; font-size: 12px; }
.case-facts dd span { display: block; margin-top: 3px; color: #718198; }
.participant-list { display: grid; gap: 7px; margin-bottom: 14px; }
.participant-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 9px 10px; border: 1px solid var(--border-soft); border-radius: 8px; background: rgba(8, 13, 20, .45); }
.participant-row > div { min-width: 0; }
.participant-row strong, .participant-row span { display: block; overflow-wrap: anywhere; }
.attachment-row { display: grid; gap: 3px; min-width: 0; padding-bottom: 9px; border-bottom: 1px solid var(--border-soft); }
.attachment-row a { overflow-wrap: anywhere; }
.note-list, .event-list { display: grid; gap: 9px; margin-top: 16px; }
.note-item, .event-item { min-width: 0; padding: 11px 12px; border: 1px solid var(--border-soft); border-radius: 9px; background: rgba(8, 13, 20, .38); }
.note-item p, .event-item p { margin: 0 0 6px; overflow-wrap: anywhere; color: #cbd5e1; font-size: 12px; line-height: 1.5; }
.event-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
.event-item > div { min-width: 0; }
.event-item strong, .event-item span { display: block; overflow-wrap: anywhere; }
.event-item time { color: #718198; font-size: 11px; white-space: nowrap; }
.event-item p, .event-item > span { grid-column: 1 / -1; }
.transcript-details { overflow: hidden; }
.transcript-details summary { cursor: pointer; color: #cbd5e1; font-size: 13px; font-weight: 700; }
.transcript-details pre { max-height: 600px; margin: 14px 0 0; padding: 14px; overflow: auto; border: 1px solid var(--border-soft); border-radius: 9px; background: #080d14; line-height: 1.55; white-space: pre-wrap; }
.modal-preview-grid { display: grid; gap: 16px; }
.discord-modal { display: grid; gap: 7px; padding: 18px; border: 1px solid #3f4147; border-radius: 9px; background: #313338; color: #dbdee1; box-shadow: 0 18px 45px rgba(0, 0, 0, .24); }
.discord-modal h3 { margin: 0 0 10px; color: #f2f3f5; font-size: 20px; }
.discord-modal small { margin-top: -4px; color: #b5bac1; font-size: 11px; }
.modal-label { margin-top: 7px; color: #f2f3f5; font-size: 12px; text-transform: none; }
.modal-label b { color: #f23f42; }
.modal-input, .modal-upload { min-height: 40px; padding: 10px 12px; border: 1px solid #1e1f22; border-radius: 4px; background: #1e1f22; color: #87898c; font-size: 12px; }
.modal-input.multiline { min-height: 82px; }
.modal-upload { display: grid; place-items: center; border-style: dashed; color: #b5bac1; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(440px, 100%); padding: 34px; border: 1px solid var(--border); border-radius: 20px; background: rgba(16, 23, 34, .94); box-shadow: 0 34px 100px rgba(0,0,0,.35); }
.login-card .brand { padding: 0 0 28px; }
.login-card h1 { font-size: 30px; }
.login-card p { color: var(--muted); line-height: 1.6; }
.login-card .button { width: 100%; min-height: 46px; margin-top: 12px; }

.mobile-nav { display: none; }
@media (max-width: 1120px) {
  .grid-2 { grid-template-columns: 1fr; }
  .support-workspace { grid-template-columns: 1fr; }
  .preview-sticky { position: static; }
  .subnav { display: block; padding: 6px; }
  .subnav-label { display: none; }
  .subnav-items { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; overflow: visible; }
}
@media (max-width: 1060px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 17px 18px; border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .brand { padding: 0; }
  .nav { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 15px; }
  .nav.open { display: grid; }
  .mobile-nav { display: inline-flex; position: absolute; top: 18px; right: 18px; }
  .sidebar-foot { display: none; }
  .main { padding: 27px 18px 56px; }
  .topbar { display: grid; gap: 17px; }
  .user { display: inline-flex; width: fit-content; margin-top: 0; }
  .subnav { display: block; padding: 6px; }
  .subnav-label { display: none; }
  .subnav-items { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; overflow: visible; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .inline-form { width: 100%; min-width: 0; }
  .option-list { grid-template-columns: 1fr; }
  .preview-sticky { position: static; }
  .support-case-table-wrap { overflow: visible; }
  .support-case-table, .support-case-table tbody, .support-case-table tr, .support-case-table td { display: block; width: 100%; }
  .support-case-table colgroup, .support-case-table thead { display: none; }
  .support-case-table tbody { display: grid; gap: 12px; }
  .support-case-table tr { padding: 13px; border: 1px solid var(--border-soft); border-radius: 11px; background: rgba(8, 13, 20, .42); }
  .support-case-table td { display: grid; grid-template-columns: minmax(88px, .34fr) minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
  .support-case-table td::before { content: attr(data-label); color: #718198; font-size: 10px; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
  .support-case-table td:last-child { border-bottom: 0; }
  .support-case-table td.empty { display: block; }
  .support-case-table td.empty::before { content: none; }
  .support-case-table .case-actions { grid-template-columns: 1fr; }
  .support-case-table .truncate { max-width: 100%; }
}
@media (max-width: 520px) {
  .main { padding-right: 14px; padding-left: 14px; }
  .sidebar { padding-right: 14px; padding-left: 14px; }
  .card { padding: 18px; }
  .subnav a { padding-right: 8px; padding-left: 8px; font-size: 11px; }
  .embed-fields { grid-template-columns: 1fr; }
  .card-head > .inline-form { flex-basis: 100%; }
}
@media (max-width: 360px) {
  .subnav-items { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
