/* The Grand Concierge (Support Codex) - static/js/support_codex.js. Obsidian & gold; no backdrop-filter on the sheet
   (it can open over the gold-dust canvas and the Crash / Peg Drop canvases). All classes are sc-. */
.sc-overlay { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(2, 3, 6, .78); }
.sc-overlay[hidden] { display: none; }
.sc-sheet { --sc-gold: #f5c86a; --sc-amber: rgba(245, 158, 11, .3); --sc-ink: #f3e7c9; --sc-mute: #a1a1aa; --sc-dim: #71717a;
    width: 100%; max-width: 980px; height: min(86vh, 820px); display: flex; flex-direction: column; overflow: hidden;
    border-radius: 20px; background: linear-gradient(180deg, #111219 0%, #0c0d12 38%, #09090d 100%);
    border: 1px solid var(--sc-amber); color: var(--sc-ink);
    box-shadow: 0 40px 100px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(253, 230, 138, .12); animation: scIn .22s ease-out; }
@keyframes scIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
html.calm-motion .sc-sheet { animation: none; }
@media (max-width: 640px) {
    .sc-overlay { padding: 0; align-items: stretch; }
    .sc-sheet { height: 100%; max-width: none; border-radius: 0; border-width: 0; }
}

/* Header */
.sc-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px 14px; border-bottom: 1px solid rgba(245, 158, 11, .14);
    background: radial-gradient(120% 140% at 0% 0%, rgba(245, 158, 11, .1), transparent 55%); }
.sc-crest { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center;
    font: 900 24px 'Playfair Display', Georgia, serif; color: #1a1204;
    background: linear-gradient(160deg, #fde68a, #d4a13a 55%, #8a5a14); box-shadow: 0 0 22px rgba(245, 158, 11, .35), inset 0 1px 0 #fff6d0; }
.sc-kicker { font: 700 10px 'Cinzel', serif; letter-spacing: .32em; text-transform: uppercase; color: rgba(245, 158, 11, .85); }
.sc-title { font: 700 24px/1.1 'Playfair Display', Georgia, serif; margin-top: 2px;
    background: linear-gradient(90deg, #fde68a, #f5c86a 40%, #fff7e0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-sub { font-size: 12px; color: var(--sc-mute); margin-top: 3px; }
.sc-x { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; color: var(--sc-mute); border: 1px solid #27272a; background: #121218;
    font-size: 16px; transition: all .15s; flex: none; }
.sc-x:hover { color: #fde68a; border-color: rgba(245, 158, 11, .5); }

/* Tabs: high contrast (active = gold plate, black ink) */
.sc-tabs { display: flex; gap: 6px; padding: 10px 18px; border-bottom: 1px solid #1f1f25; overflow-x: auto; scrollbar-width: none; flex: none; }
.sc-tabs::-webkit-scrollbar { display: none; }
.sc-tab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 11px; white-space: nowrap;
    font-size: 13px; font-weight: 700; color: #d4d4d8; background: #15151c; border: 1px solid #26262e; transition: all .15s; }
.sc-tab:hover { color: #fde68a; border-color: rgba(245, 158, 11, .45); }
.sc-tab[aria-selected="true"] { color: #140d02; border-color: #fcd34d; background: linear-gradient(180deg, #fde68a, #f0b93c 60%, #c98a1d);
    box-shadow: 0 6px 18px rgba(245, 158, 11, .25), inset 0 1px 0 #fff6d0; }
.sc-tab .sc-tab-dot { width: 7px; height: 7px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 8px #f59e0b; }
.sc-tab[aria-selected="true"] .sc-tab-dot { background: #140d02; box-shadow: none; }

.sc-body { flex: 1; overflow-y: auto; padding: 22px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3f3f46 transparent; }
.sc-body:focus { outline: none; }
.sc-loading, .sc-empty { text-align: center; color: var(--sc-dim); font-size: 13px; padding: 48px 0; }

/* Shared */
.sc-h3 { font: 700 12px 'Cinzel', serif; letter-spacing: .2em; text-transform: uppercase; color: var(--sc-gold); margin: 0 0 12px;
    display: flex; align-items: center; gap: 10px; }
.sc-h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(245, 158, 11, .35), transparent); }
.sc-sec { margin-top: 26px; }
.sc-p { font-size: 13.5px; line-height: 1.65; color: #d6d3d1; margin: 0 0 8px; }
.sc-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.sc-list li { position: relative; padding-left: 20px; font-size: 13.5px; line-height: 1.6; color: #d6d3d1; }
.sc-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; transform: rotate(45deg);
    background: linear-gradient(135deg, #fde68a, #b7791f); }
.sc-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid #23232b; }
.sc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sc-table th { text-align: left; font: 700 10px 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(245, 158, 11, .8);
    background: #121218; padding: 10px 12px; border-bottom: 1px solid #23232b; white-space: nowrap; }
.sc-table td { padding: 9px 12px; border-bottom: 1px solid #1a1a21; color: #e7e5e4; vertical-align: top; line-height: 1.5; }
.sc-table tr:last-child td { border-bottom: 0; }
.sc-table tr:nth-child(even) td { background: rgba(255, 255, 255, .015); }
.sc-table td:last-child { font-family: 'JetBrains Mono', ui-monospace, monospace; color: #fde68a; }
.sc-table.sc-plain td:last-child { font-family: inherit; color: #e7e5e4; }
.sc-formula { margin: 10px 0 0; padding: 14px 16px; border-radius: 12px; background: #07070a; border: 1px solid #23232b; color: #fcd34d;
    font: 500 12px/1.75 'JetBrains Mono', ui-monospace, monospace; white-space: pre-wrap; word-break: break-word; }
.sc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 11px;
    font-size: 12px; font-weight: 900; letter-spacing: .08em; color: #140d02; background: linear-gradient(180deg, #fde68a, #f0b93c 60%, #c98a1d);
    border: 1px solid #fcd34d; box-shadow: 0 8px 20px rgba(245, 158, 11, .2), inset 0 1px 0 #fff6d0; transition: filter .15s, transform .1s; }
.sc-btn:hover { filter: brightness(1.08); }
.sc-btn:active { transform: scale(.97); }
.sc-btn[disabled] { filter: grayscale(.7) brightness(.6); cursor: not-allowed; }
.sc-ghost { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px; font-size: 12px; font-weight: 600;
    color: #d4d4d8; background: #15151c; border: 1px solid #2a2a33; transition: all .15s; }
.sc-ghost:hover { color: #fde68a; border-color: rgba(245, 158, 11, .45); }

/* FAQ & Almanac */
.sc-search { position: relative; }
.sc-search input { width: 100%; height: 48px; padding: 0 16px 0 46px; border-radius: 14px; font-size: 14px; color: #f5f5f4;
    background: #0a0a0e; border: 1px solid rgba(245, 158, 11, .28); outline: none; transition: border-color .15s, box-shadow .15s; }
.sc-search input:focus { border-color: #f5c86a; box-shadow: 0 0 0 3px rgba(245, 158, 11, .15); }
.sc-search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: rgba(245, 158, 11, .7); }
/* Ask Grim at the top of FAQ & Guide (static/js/grim.js; its box is the search too) */
.sc-grim { margin-bottom: 22px; padding: 14px; border-radius: 16px; border: 1px solid rgba(245, 179, 1, .28);
    background: linear-gradient(180deg, rgba(77, 82, 133, .16), rgba(17, 18, 24, .4)); }
.sc-grim-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sc-grim-top b { display: block; font: 700 18px 'Playfair Display', Georgia, serif; color: #f3ead7; }
.sc-grim-top small { display: block; font-size: 12px; color: #a39e92; }
.sc-grim-top .sc-ghost { margin-left: auto; flex: none; }
.sc-grim-top .sc-ghost[hidden] { display: none; }
.sc-grim-face { flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 1px solid rgba(245, 179, 1, .5); background: #20212b; }
.sc-grim-ask input { padding-right: 112px; }
.sc-grim-ask .sc-grim-go { position: absolute; right: 6px; top: 6px; bottom: 6px; padding: 0 14px; border: 0; border-radius: 10px; background: #f5b301;
    color: #1a1305; font: 700 13px Inter, system-ui, sans-serif; cursor: pointer; }
.sc-grim-ask .sc-grim-go:hover { background: #fcd34d; }
.sc-grim-log { display: flex; flex-direction: column; gap: 12px; max-height: 300px; overflow-y: auto; margin-top: 12px; padding: 2px 2px 4px; }
.sc-grim-log[hidden] { display: none; }
.sc-grim-note { margin: 10px 0 0; font-size: 11px; line-height: 1.4; color: #9d978b; }
.sc-faq { border: 1px solid #1f1f27; border-radius: 13px; background: #0f0f14; transition: border-color .15s; }
.sc-faq + .sc-faq { margin-top: 8px; }
.sc-faq[open] { border-color: rgba(245, 158, 11, .35); background: linear-gradient(180deg, #13131a, #0e0e13); }
.sc-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    font-size: 14px; font-weight: 600; color: #f5f5f4; }
.sc-faq summary::-webkit-details-marker { display: none; }
.sc-faq summary::after { content: "+"; margin-left: auto; font: 400 20px/1 'Inter', sans-serif; color: rgba(245, 158, 11, .8); transition: transform .2s; }
.sc-faq[open] summary::after { transform: rotate(45deg); }
.sc-faq summary:hover { color: #fde68a; }
.sc-faq-a { padding: 0 16px 16px; }
.sc-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sc-cat { padding: 16px; border-radius: 16px; border: 1px solid #22222a; background: linear-gradient(170deg, #15151c, #0d0d12);
    display: flex; flex-direction: column; gap: 10px; }
.sc-cat:hover { border-color: rgba(245, 158, 11, .35); }
.sc-cat-top { display: flex; align-items: center; gap: 12px; }
.sc-cat-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
    background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .25); flex: none; }
.sc-cat-n { font: 700 10px 'JetBrains Mono', monospace; color: var(--sc-dim); letter-spacing: .1em; }
.sc-cat h4 { font: 700 16px 'Playfair Display', Georgia, serif; color: #fff4d6; margin: 1px 0 0; }
.sc-cat p { font-size: 12.5px; line-height: 1.55; color: var(--sc-mute); margin: 0; }
.sc-links { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.sc-link { display: flex; align-items: center; gap: 8px; text-align: left; padding: 6px 8px; border-radius: 8px; font-size: 12.5px; color: #e7e5e4; }
.sc-link::before { content: "›"; color: #f5c86a; font-weight: 700; }
.sc-link:hover { background: rgba(245, 158, 11, .08); color: #fde68a; }
.sc-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--sc-dim); }
.sc-article h3 { font: 700 26px/1.2 'Playfair Display', Georgia, serif; color: #fff4d6; margin: 12px 0 14px; }
.sc-article h5 { font: 700 11px 'Cinzel', serif; letter-spacing: .18em; text-transform: uppercase; color: var(--sc-gold); margin: 20px 0 8px; }
.sc-result { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 12px;
    border: 1px solid #1f1f27; background: #0f0f14; }
.sc-result + .sc-result { margin-top: 6px; }
.sc-result:hover { border-color: rgba(245, 158, 11, .4); }
.sc-result small { display: block; font-size: 11px; color: var(--sc-dim); margin-top: 2px; }
mark.sc-hit { background: rgba(245, 158, 11, .28); color: #fff4d6; border-radius: 3px; padding: 0 1px; }

/* Tickets */
.sc-warn { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(251, 191, 36, .45);
    background: linear-gradient(90deg, rgba(245, 158, 11, .16), rgba(245, 158, 11, .04)); font-size: 13px; line-height: 1.6; color: #fef3c7; }
.sc-warn-ico { font-size: 20px; line-height: 1.2; flex: none; }
.sc-warn button { margin-top: 8px; }
.sc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .sc-grid2 { grid-template-columns: 1fr; } }
.sc-field label, .sc-label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #a8a29e; margin-bottom: 7px; }
.sc-field input, .sc-field select, .sc-field textarea { width: 100%; border-radius: 12px; font-size: 14px; color: #f5f5f4; background: #0a0a0e;
    border: 1px solid #2a2a33; outline: none; transition: border-color .15s, box-shadow .15s; }
.sc-field input, .sc-field select { height: 44px; padding: 0 14px; }
.sc-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #f5c86a 50%), linear-gradient(135deg, #f5c86a 50%, transparent 50%);
    background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.sc-field select option { background: #0f0f14; }
.sc-field textarea { min-height: 150px; padding: 12px 14px; line-height: 1.6; resize: vertical; font-family: inherit; }
.sc-field input:focus, .sc-field select:focus, .sc-field textarea:focus { border-color: #f5c86a; box-shadow: 0 0 0 3px rgba(245, 158, 11, .14); }
.sc-hint { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--sc-dim); margin-top: 6px; }
.sc-hint .over { color: #f87171; }
.sc-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-pill { height: 44px; padding: 0 16px; border-radius: 12px; font-size: 12.5px; font-weight: 700; color: #d4d4d8; background: #0a0a0e; border: 1px solid #2a2a33; transition: all .15s; }
.sc-pill:hover { border-color: rgba(245, 158, 11, .45); }
.sc-pill[aria-checked="true"] { color: #fde68a; border-color: #f5c86a; background: rgba(245, 158, 11, .12); }
.sc-pill[data-v="urgent"][aria-checked="true"] { color: #fdba74; border-color: #fb923c; background: rgba(249, 115, 22, .12); }
.sc-pill[data-v="critical_security"][aria-checked="true"] { color: #fca5a5; border-color: #f87171; background: rgba(239, 68, 68, .14); }
.sc-md-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.sc-md-bar .sc-label { margin: 0; }
.sc-preview { min-height: 150px; padding: 12px 14px; border-radius: 12px; background: #0a0a0e; border: 1px dashed #2a2a33; font-size: 13.5px; line-height: 1.6; color: #d6d3d1; }
.sc-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; border-radius: 14px; text-align: center; cursor: pointer;
    border: 1.5px dashed rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .03); font-size: 13px; color: #d6d3d1; transition: all .15s; }
.sc-drop:hover, .sc-drop.over { border-color: #f5c86a; background: rgba(245, 158, 11, .09); }
.sc-drop small { color: var(--sc-dim); font-size: 11px; }
.sc-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sc-thumb { position: relative; width: 84px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid #2a2a33; background: #000; }
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-thumb button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; line-height: 20px;
    color: #fff; background: rgba(0, 0, 0, .75); }
.sc-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.sc-msg { font-size: 12.5px; }
.sc-msg.err { color: #fca5a5; }
.sc-msg.ok { color: #86efac; }
.sc-ticket { border: 1px solid #1f1f27; border-radius: 13px; background: #0f0f14; }
.sc-ticket + .sc-ticket { margin-top: 8px; }
.sc-ticket summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; }
.sc-ticket summary::-webkit-details-marker { display: none; }
.sc-ticket[open] { border-color: rgba(245, 158, 11, .3); }
.sc-tid { font: 700 12px 'JetBrains Mono', monospace; color: #f5c86a; }
.sc-new { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
    color: #140d02; background: linear-gradient(180deg, #fde68a, #f59e0b); box-shadow: 0 0 10px rgba(245, 158, 11, .45); }
.sc-ticket.unread { border-color: rgba(245, 158, 11, .55); }
.sc-tsubj { font-size: 13.5px; font-weight: 600; color: #f5f5f4; min-width: 0; flex: 1 1 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-status { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid; }
.sc-status.open { color: #fde68a; border-color: rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .1); }
.sc-status.in_review { color: #93c5fd; border-color: rgba(96, 165, 250, .5); background: rgba(59, 130, 246, .1); }
.sc-status.awaiting_player { color: #fdba74; border-color: rgba(251, 146, 60, .5); background: rgba(249, 115, 22, .1); }
.sc-status.resolved { color: #86efac; border-color: rgba(74, 222, 128, .45); background: rgba(34, 197, 94, .1); }
.sc-status.closed { color: #a1a1aa; border-color: #3f3f46; background: #18181b; }
.sc-tmeta { font-size: 11.5px; color: var(--sc-dim); }
.sc-tbody { padding: 0 14px 14px; border-top: 1px solid #1a1a21; }
.sc-tbody .sc-p { margin-top: 12px; }
.sc-tbody a { color: #fcd34d; text-decoration: underline; }

/* Changelog */
/* Legal tab: the documents as a segmented sub-tab row (scrolls sideways on phones) */
.sc-subtabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 13px; background: #0c0c11; border: 1px solid #23232b;
    overflow-x: auto; scrollbar-width: none; }
.sc-subtabs::-webkit-scrollbar { display: none; }
.sc-subtab { flex: 1 0 auto; height: 34px; padding: 0 14px; border-radius: 9px; white-space: nowrap; font-size: 12.5px; font-weight: 700;
    color: #a1a1aa; background: transparent; border: 1px solid transparent; transition: all .15s; }
.sc-subtab:hover { color: #fde68a; }
.sc-subtab[aria-selected="true"] { color: #fde68a; background: #1a1a22; border-color: rgba(245, 158, 11, .45); }
.sc-archive { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sc-archive .sc-label { margin: 0 6px 0 0; }
.sc-rel { position: relative; padding: 18px 18px 16px 22px; border-radius: 16px; border: 1px solid #1f1f27; background: #0f0f14; }
.sc-rel + .sc-rel { margin-top: 12px; }
.sc-rel.latest { border-color: rgba(245, 158, 11, .45); background: linear-gradient(180deg, rgba(245, 158, 11, .08), #0f0f14 45%); }
.sc-rel::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: #2a2a33; }
.sc-rel.latest::before { background: linear-gradient(180deg, #fde68a, #c98a1d); }
.sc-rel-h { font: 700 18px/1.3 'Playfair Display', Georgia, serif; color: #fff4d6; }
.sc-rel-h em { font-style: normal; color: #f5c86a; }
.sc-rel-d { font-size: 11.5px; color: var(--sc-dim); margin-top: 3px; font-family: 'JetBrains Mono', monospace; }
.sc-notes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.sc-notes li { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; line-height: 1.55; color: #d6d3d1; }
.sc-tag { flex: none; min-width: 74px; text-align: center; font: 700 10px 'JetBrains Mono', monospace; letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; border: 1px solid; }
.sc-tag.t-feature { color: #fde68a; border-color: rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .1); }
.sc-tag.t-tuning { color: #93c5fd; border-color: rgba(96, 165, 250, .45); background: rgba(59, 130, 246, .1); }
.sc-tag.t-engine { color: #c4b5fd; border-color: rgba(167, 139, 250, .45); background: rgba(139, 92, 246, .1); }
.sc-tag.t-economy { color: #86efac; border-color: rgba(74, 222, 128, .4); background: rgba(34, 197, 94, .1); }
.sc-tag.t-social { color: #f9a8d4; border-color: rgba(244, 114, 182, .4); background: rgba(236, 72, 153, .1); }
.sc-tag.t-fix { color: #fca5a5; border-color: rgba(248, 113, 113, .4); background: rgba(239, 68, 68, .1); }
@media (max-width: 640px) { .sc-notes li { flex-direction: column; gap: 4px; } .sc-body { padding: 16px; } .sc-head { padding: 14px 16px 12px; } }

/* Ticket thread: staff replies (signed "LuckyRook Support") and the player's follow-ups, then the reply box. */
.sc-tmsg { margin-top: 10px; padding: 10px 12px; border-radius: 11px; border: 1px solid #1f1f27; background: #0b0b10; }
.sc-tmsg.staff { border-color: rgba(245, 158, 11, .32); background: rgba(245, 158, 11, .05); }
.sc-tmsg .sc-tmeta b { color: #f5f5f4; }
.sc-treply { margin-top: 12px; display: grid; gap: 8px; }
.sc-treply textarea { width: 100%; border-radius: 11px; border: 1px solid #27272f; background: #0a0a0e; color: #f5f5f4; font: inherit;
    font-size: 13.5px; padding: 10px 12px; line-height: 1.55; resize: vertical; }
.sc-treply textarea:focus { outline: none; border-color: #f5c86a; box-shadow: 0 0 0 3px rgba(245, 158, 11, .14); }
.sc-treply-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* The Community tab's Discord card (support_codex.js discordCard) */
.sc-discord { margin: 0 0 22px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(88,101,242,.45);
    background: linear-gradient(120deg, rgba(88,101,242,.22), rgba(18,18,23,.9) 60%); }
.sc-discord-head { display: flex; gap: 12px; align-items: flex-start; }
.sc-discord-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, #5865f2, #3c45a5); border: 1px solid rgba(129,140,248,.5); }
.sc-discord-ico svg { width: 22px; height: 22px; }
.sc-discord-t { margin: 2px 0 4px; font-size: 15px; font-weight: 700; color: #e0e7ff; }
.sc-discord-go { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 9px; font-size: 11.5px;
    font-weight: 800; letter-spacing: .08em; color: #fff; background: linear-gradient(180deg, #6773f4, #4752c4);
    border: 1px solid rgba(165,180,252,.5); }
.sc-discord-go:hover { filter: brightness(1.12); }
.sc-discord-go:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }

/* Keyboard tab (static/js/keymap.js) */
.sc-keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; margin: 10px 0 4px; font-size: 13px; color: #d4d4d8; }
.sc-keys dt { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.sc-keys dd { margin: 0; }
.sc-keys kbd { display: inline-block; min-width: 24px; padding: 2px 7px; border-radius: 6px; border: 1px solid #52525b; border-bottom-width: 2px;
    background: #18181b; font: 700 11px/1.45 'JetBrains Mono', ui-monospace, monospace; color: #f4f4f5; text-align: center; white-space: nowrap; }
.sc-keys-or { font-size: 10.5px; color: #71717a; }
.sc-keys-here { margin-left: 8px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6ee7b7; }
