:root {
    color-scheme: dark;
    --bg: #090c17;
    --sidebar: #0e1220;
    --surface: #121728;
    --surface-2: #171d31;
    --surface-3: #202740;
    --border: rgba(149, 164, 211, .14);
    --border-strong: rgba(149, 164, 211, .25);
    --text: #f6f7ff;
    --muted: #949dbb;
    --faint: #69738f;
    --violet: #8b5cf6;
    --violet-2: #6d47e8;
    --blue: #3b82f6;
    --green: #38d39f;
    --amber: #f6b84b;
    --red: #ff6b7b;
    --shadow: 0 24px 70px rgba(0, 0, 0, .42);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button, select, input[type="checkbox"] { cursor: pointer; }
button { color: inherit; }
[hidden] { display: none !important; }

.ambient { position: fixed; pointer-events: none; filter: blur(10px); opacity: .2; z-index: -1; }
.ambient-one { width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, #6339e3, transparent 70%); top: -240px; left: 10%; }
.ambient-two { width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, #246ee8, transparent 70%); right: -250px; bottom: -180px; }

.gate { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.gate-card { width: min(470px, 100%); padding: 44px; border: 1px solid var(--border); border-radius: 24px; background: linear-gradient(155deg, rgba(24, 30, 52, .96), rgba(12, 16, 29, .98)); box-shadow: var(--shadow); text-align: center; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; position: relative; border-radius: 13px; overflow: hidden; background: linear-gradient(145deg, #9d72ff, #5141d8); box-shadow: 0 9px 25px rgba(109, 71, 232, .35); font-weight: 900; letter-spacing: -5px; }
.brand-mark span:last-child { color: #b9ccff; transform: translate(5px, -5px); font-size: 15px; position: absolute; }
.brand-mark span:first-child { transform: translate(-4px, 4px); font-size: 20px; }
.brand-mark-large { width: 68px; height: 68px; margin: 0 auto 25px; border-radius: 20px; }
.brand-mark-large span:first-child { font-size: 31px; }.brand-mark-large span:last-child { font-size: 23px; transform: translate(8px, -7px); }
.eyebrow { color: #a695ff; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 8px; }
.gate h1 { font-size: 34px; margin: 0 0 12px; letter-spacing: -.04em; }
.gate-copy, .gate-note { color: var(--muted); line-height: 1.6; }
.gate-status { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; color: #cbd2eb; margin: 24px 0; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.16); border-top-color: #aa8cff; border-radius: 50%; animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gate-actions { display: grid; gap: 10px; }
.two-factor-panel { display: grid; gap: 7px; margin-top: 16px; text-align: left; }
.two-factor-panel label { color: var(--muted); font-size: 10px; font-weight: 700; }
.two-factor-panel > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.two-factor-panel input { min-width: 0; height: 42px; border: 1px solid var(--border-strong); border-radius: 9px; outline: 0; padding: 0 12px; background: #0c1120; color: var(--text); letter-spacing: .12em; }
.two-factor-panel input:focus { border-color: rgba(139,92,246,.72); box-shadow: 0 0 0 3px rgba(139,92,246,.09); }
.gate-note { font-size: 12px; margin: 23px 0 0; }

.button { min-height: 42px; border-radius: 9px; border: 1px solid transparent; padding: 0 16px; display: inline-flex; gap: 8px; align-items: center; justify-content: center; text-decoration: none; font-weight: 750; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: linear-gradient(135deg, var(--violet), var(--violet-2)); box-shadow: 0 8px 25px rgba(109, 71, 232, .26); }
.button-secondary { background: #191f33; border-color: var(--border-strong); color: #e1e5f6; }
.button-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.button-small { min-height: 34px; font-size: 12px; }
.icon-button { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; display: grid; place-items: center; color: var(--muted); font-size: 19px; }
.icon-button:hover { background: var(--surface-3); color: white; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 254px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 14px 14px; background: rgba(13, 17, 30, .96); border-right: 1px solid var(--border); z-index: 30; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 18px; }
.sidebar-brand > div:nth-child(2) { display: grid; gap: 2px; }
.sidebar-brand strong { font-size: 16px; }.sidebar-brand span { font-size: 11px; color: var(--muted); }
.sidebar-close { display: none; margin-left: auto; }
.server-switcher { display: flex; align-items: center; width: 100%; gap: 11px; border: 1px solid var(--border); border-radius: 10px; padding: 9px; background: #171c2e; text-align: left; }
.server-switcher:hover { border-color: rgba(139, 92, 246, .45); }
.server-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(140deg, #632fd0, #3342ad); font-size: 9px; font-weight: 900; }
.server-copy { min-width: 0; display: grid; gap: 2px; flex: 1; }.server-copy strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }.server-copy small { font-size: 10px; color: var(--muted); }
.chevron { color: var(--faint); }
.primary-nav { margin: 18px 0; display: grid; gap: 4px; }
.nav-item { height: 39px; border: 0; border-radius: 8px; padding: 0 10px; background: transparent; display: flex; align-items: center; gap: 11px; color: var(--muted); text-align: left; font-size: 13px; font-weight: 650; }
.nav-item > span { width: 20px; text-align: center; color: #7f89a7; }.nav-item b { margin-left: auto; min-width: 24px; padding: 2px 6px; border-radius: 10px; background: #262e49; font-size: 10px; text-align: center; }
.nav-item:hover { background: rgba(255,255,255,.035); color: white; }.nav-item.active { background: rgba(139,92,246,.14); color: #c4b5fd; }.nav-item.active > span { color: #9b76ff; }
.sidebar-section { min-height: 0; flex: 1; border-top: 1px solid var(--border); padding-top: 15px; }
.sidebar-heading { height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; color: var(--faint); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tiny-button { width: 24px; height: 24px; border-radius: 6px; border: 0; background: transparent; color: var(--muted); font-size: 18px; }.tiny-button:hover { background: var(--surface-3); color: white; }
.folder-list { display: grid; gap: 2px; max-height: calc(100vh - 440px); overflow: auto; }
.folder-button { height: 34px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; text-align: left; }.folder-button:hover, .folder-button.active { background: rgba(255,255,255,.04); color: white; }.folder-button i { width: 10px; height: 8px; border: 1px solid currentColor; border-radius: 2px; opacity: .65; }.folder-button b { margin-left: auto; font-size: 10px; color: var(--faint); }
.sidebar-footer { border-top: 1px solid var(--border); padding: 13px 4px 0; }
.runtime-indicator { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 8px; background: rgba(246,184,75,.06); }.runtime-indicator > div { display: grid; gap: 2px; }.runtime-indicator strong { font-size: 10px; }.runtime-indicator small { color: var(--faint); font-size: 9px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; }.status-dot.warning { background: var(--amber); box-shadow: 0 0 0 4px rgba(246,184,75,.1); }.version-label { display: block; padding: 8px 9px 0; color: #515a72; font-size: 9px; }

.workspace { min-width: 0; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; padding: 0 28px; border-bottom: 1px solid var(--border); background: rgba(9,12,23,.88); backdrop-filter: blur(18px); }
.menu-button { display: none; }.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 12px; }.breadcrumb span, .breadcrumb b { color: var(--faint); }.breadcrumb strong { color: #d9deef; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }.preview-pill { padding: 5px 9px; border-radius: 15px; background: rgba(246,184,75,.12); border: 1px solid rgba(246,184,75,.26); color: #ffd58a; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.notification-button { position: relative; }.notification-button span { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); top: 7px; right: 8px; box-shadow: 0 0 0 2px var(--bg); }
.user-button { display: flex; align-items: center; gap: 9px; border: 0; border-radius: 9px; padding: 6px 8px; background: transparent; text-align: left; }.user-button:hover { background: var(--surface); }.user-button > span:nth-child(2) { display: grid; min-width: 90px; gap: 1px; }.user-button strong { font-size: 11px; }.user-button small { color: var(--muted); font-size: 9px; }
.user-avatar { width: 31px; height: 31px; border-radius: 50%; background: linear-gradient(145deg,#5543cc,#2c6ebf); display: grid; place-items: center; font-size: 9px; font-weight: 900; overflow: hidden; }.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.view { padding: 34px clamp(22px, 4vw, 54px) 60px; max-width: 1620px; margin: auto; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }.page-heading h1 { margin: 0; font-size: 30px; letter-spacing: -.035em; }.page-heading p:last-child { color: var(--muted); margin: 8px 0 0; font-size: 13px; }.heading-actions { display: flex; gap: 9px; }.import-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.notice { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border: 1px solid rgba(246,184,75,.22); border-radius: 10px; background: rgba(246,184,75,.065); margin-bottom: 18px; }.notice-icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(246,184,75,.16); color: #ffd58a; font-weight: 900; }.notice > div { flex: 1; }.notice strong { display: block; font-size: 12px; color: #ffe1a5; }.notice p { color: #a99d85; margin: 3px 0 0; font-size: 11px; }.notice button { border: 0; background: transparent; color: #867c69; font-size: 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }.stat-card { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px; min-height: 92px; padding: 15px; border: 1px solid var(--border); border-radius: 11px; background: linear-gradient(145deg, rgba(23,29,49,.94), rgba(17,22,38,.94)); }.stat-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; }.stat-icon.violet { background: rgba(139,92,246,.13); color: #a985ff; }.stat-icon.green { background: rgba(56,211,159,.1); color: var(--green); }.stat-icon.amber { background: rgba(246,184,75,.1); color: var(--amber); }.stat-icon.blue { background: rgba(59,130,246,.1); color: #67a2ff; }
.stat-card div { display: grid; }.stat-card strong { font-size: 21px; letter-spacing: -.03em; }.stat-card small { color: var(--muted); font-size: 10px; }.stat-card em { grid-column: 1/-1; color: var(--faint); font-size: 9px; font-style: normal; }
.panel { border: 1px solid var(--border); border-radius: 12px; background: rgba(17,22,38,.94); overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.14); }
.toolbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 15px; border-bottom: 1px solid var(--border); }.search-field { min-width: 250px; display: flex; align-items: center; gap: 8px; height: 37px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: 8px; background: #0e1323; color: var(--faint); }.search-field:focus-within { border-color: rgba(139,92,246,.7); box-shadow: 0 0 0 3px rgba(139,92,246,.08); }.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; }.search-field input::placeholder { color: #626c87; }
.toolbar-filters { display: flex; align-items: center; gap: 8px; }.toolbar-filters label { height: 37px; display: flex; align-items: center; gap: 6px; padding-left: 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--faint); font-size: 9px; }.toolbar select, .toolbar-filters select { height: 100%; border: 0; outline: 0; padding: 0 26px 0 4px; background: #151b2d; color: #d9deef; font-size: 10px; }
.bulk-bar { min-height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: rgba(139,92,246,.09); border-bottom: 1px solid rgba(139,92,246,.2); font-size: 11px; }.bulk-bar button { border: 0; background: transparent; color: #b8a7ff; font-size: 10px; font-weight: 700; }
.command-table-wrap { overflow-x: auto; min-height: 260px; }.command-table { width: 100%; border-collapse: collapse; min-width: 920px; }.command-table th { height: 40px; background: #14192a; color: #68728f; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; text-align: left; font-weight: 800; }.command-table th, .command-table td { padding: 0 12px; border-bottom: 1px solid rgba(149,164,211,.08); }.command-table td { height: 67px; color: #bdc4db; font-size: 10px; }.command-table tbody tr { transition: background .15s; }.command-table tbody tr:hover { background: rgba(255,255,255,.02); }.check-cell { width: 38px !important; text-align: center !important; padding: 0 6px !important; }.command-table input[type="checkbox"] { accent-color: var(--violet); }
.command-name { display: flex; align-items: center; gap: 10px; min-width: 200px; }.type-icon { width: 31px; height: 31px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; background: #222941; color: #9bacdc; font-size: 12px; font-weight: 800; }.command-name > div { min-width: 0; display: grid; gap: 3px; }.command-name strong { color: #eef0f9; font-size: 11px; white-space: nowrap; max-width: 230px; overflow: hidden; text-overflow: ellipsis; }.command-name small { color: var(--faint); font-size: 9px; text-transform: capitalize; }
.code-tag { display: inline-flex; align-items: center; max-width: 180px; padding: 4px 7px; border-radius: 6px; background: #0d1220; border: 1px solid var(--border); color: #c8d1ef; font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.folder-tag { display: inline-flex; padding: 4px 7px; border-radius: 6px; background: rgba(118,131,170,.08); color: #909ab7; font-size: 9px; }.compat-tag, .status-tag { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 9px; }.compat-tag::before, .status-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }.compat-tag.supported { color: #6edcb7; }.compat-tag.supported::before { background: var(--green); }.compat-tag.review { color: #e3b660; }.compat-tag.review::before { background: var(--amber); }.status-tag.enabled { color: #7adfbd; }.status-tag.enabled::before { background: var(--green); }.status-tag.disabled { color: #8b94ad; }.status-tag.disabled::before { background: #626b84; }
.row-actions { display: flex; justify-content: flex-end; }.row-menu { border: 0; width: 32px; height: 32px; border-radius: 7px; background: transparent; color: #6f7894; font-size: 16px; }.row-menu:hover { background: var(--surface-3); color: white; }
.empty-state { padding: 55px 20px; text-align: center; }.empty-state > span { font-size: 28px; color: var(--faint); }.empty-state h2 { font-size: 16px; margin: 12px 0 6px; }.empty-state p { color: var(--muted); font-size: 11px; }
.table-footer { min-height: 48px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; color: var(--faint); font-size: 9px; }.pagination { display: flex; gap: 4px; align-items: center; }.pagination button, .pagination b { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 6px; background: #151b2c; color: #7d86a1; display: grid; place-items: center; }.pagination b { background: rgba(139,92,246,.15); color: #bdaeff; border-color: rgba(139,92,246,.25); }

.placeholder-view { min-height: calc(100vh - 68px); display: grid; place-items: center; }.placeholder-card { width: min(500px,100%); text-align: center; padding: 55px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }.placeholder-card > span { display: block; margin-bottom: 18px; color: var(--violet); font-size: 36px; }.placeholder-card h1 { margin: 0 0 10px; }.placeholder-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; font-size: 13px; }.placeholder-card .button { margin-top: 15px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(3,5,12,.78); backdrop-filter: blur(8px); }
.editor-modal { width: min(1180px, 100%); height: min(900px, calc(100vh - 42px)); display: flex; flex-direction: column; border: 1px solid var(--border-strong); border-radius: 16px; overflow: hidden; background: #0d1120; box-shadow: var(--shadow); }
.editor-header { flex: 0 0 auto; min-height: 75px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: #121728; }.editor-header h2 { margin: 0; font-size: 18px; }.editor-header-actions { display: flex; align-items: center; gap: 10px; }.save-state { color: var(--faint); font-size: 9px; }
#command-form { min-height: 0; flex: 1; display: flex; flex-direction: column; }.editor-scroll { min-height: 0; flex: 1; overflow-y: auto; padding: 18px; }.editor-card { border: 1px solid var(--border); border-radius: 11px; background: #121728; margin-bottom: 14px; overflow: hidden; }.card-heading { min-height: 54px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }.card-heading > div { display: flex; align-items: center; gap: 10px; }.card-heading h3 { margin: 0; font-size: 12px; }.step-number { width: 23px; height: 23px; border-radius: 7px; display: grid; place-items: center; background: rgba(139,92,246,.13); color: #b69cff; font-size: 9px; font-weight: 900; }
.toggle-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }.toggle-label input { position: absolute; opacity: 0; }.toggle { width: 34px; height: 19px; position: relative; border-radius: 10px; background: #30364c; transition: .18s; }.toggle::after { content: ""; position: absolute; width: 13px; height: 13px; top: 3px; left: 3px; border-radius: 50%; background: #a7afc5; transition: .18s; }.toggle-label input:checked + .toggle { background: var(--violet-2); }.toggle-label input:checked + .toggle::after { transform: translateX(15px); background: white; }
.form-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; padding: 15px; }.field { display: grid; gap: 6px; }.field-wide { grid-column: span 2; }.field span { color: #8993af; font-size: 9px; font-weight: 700; }.field input, .field select { width: 100%; height: 37px; border: 1px solid var(--border-strong); outline: 0; border-radius: 7px; background: #0d1221; color: #e3e6f2; padding: 0 10px; font-size: 10px; }.field input:focus, .field select:focus { border-color: rgba(139,92,246,.7); box-shadow: 0 0 0 3px rgba(139,92,246,.08); }
.code-actions { display: flex; gap: 6px; }.code-actions button { height: 28px; border-radius: 6px; border: 1px solid var(--border); background: #181e31; color: #929cb8; font-size: 9px; }.code-layout { display: grid; grid-template-columns: minmax(0,1fr) 250px; min-height: 360px; }.code-editor-shell { min-width: 0; background: #080b15; }.code-toolbar { height: 35px; display: flex; justify-content: space-between; align-items: center; padding: 0 12px; border-bottom: 1px solid #1c2235; color: #65708c; font-size: 9px; }.code-toolbar span { display: flex; align-items: center; gap: 7px; }.code-toolbar i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(56,211,159,.08); }
.code-editor { height: 325px; position: relative; overflow: hidden; font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }.line-numbers { position: absolute; inset: 0 auto 0 0; width: 45px; padding: 14px 10px 20px 0; overflow: hidden; background: #0b0e19; border-right: 1px solid #181e31; text-align: right; color: #3e4864; white-space: pre; user-select: none; z-index: 3; }.code-highlight, #field-code { position: absolute; inset: 0; margin: 0; border: 0; padding: 14px 18px 30px 60px; overflow: auto; white-space: pre; tab-size: 4; }.code-highlight { color: #d7def8; pointer-events: none; }.code-highlight .fn { color: #5cc8ff; }.code-highlight .bracket { color: #e68cff; }.code-highlight .variable { color: #82e6b9; }.code-highlight .comment { color: #58627d; }.code-highlight .number { color: #f2c26d; }
#field-code { z-index: 2; resize: none; outline: 0; background: transparent; color: transparent; caret-color: #fff; -webkit-text-fill-color: transparent; font: inherit; line-height: inherit; }.code-editor:focus-within { box-shadow: inset 0 0 0 1px rgba(139,92,246,.45); }
.compatibility-panel { padding: 14px; border-left: 1px solid var(--border); background: #111626; }.compatibility-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }.compatibility-score { width: 42px; height: 42px; border-radius: 50%; border: 3px solid #313950; display: grid; place-items: center; font-size: 10px; font-weight: 900; color: #cfd5e7; }.compatibility-heading > div { display: grid; gap: 2px; }.compatibility-heading strong { font-size: 10px; }.compatibility-heading small { color: var(--faint); font-size: 8px; }.compatibility-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }.compatibility-panel li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 7px; border-bottom: 1px solid rgba(149,164,211,.08); color: #8994b1; font: 9px ui-monospace, Consolas, monospace; }.compatibility-panel li span:last-child { color: var(--green); }.compatibility-panel li.unsupported span:last-child { color: var(--amber); }.compatibility-note { margin-top: 15px; padding: 11px; border-radius: 8px; background: rgba(139,92,246,.07); border: 1px solid rgba(139,92,246,.12); }.compatibility-note strong { color: #ae9bf5; font-size: 9px; }.compatibility-note p { color: #747e9b; font-size: 8px; line-height: 1.5; margin: 5px 0 0; }
.editor-diagnostics { min-height: 29px; display: flex; gap: 7px; align-items: center; padding: 0 12px; border-top: 1px solid var(--border); background: #0e1321; color: #76809c; font-size: 9px; }.editor-diagnostics.error { color: #ff9ba6; }.editor-diagnostics.success { color: #79dcb9; }
.test-card .card-heading { border-bottom: 0; }.discord-preview { margin: 0 15px 15px; padding: 14px; display: flex; gap: 10px; border-radius: 8px; background: #1b1d22; color: #dbdee1; min-height: 74px; }.bot-avatar { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: linear-gradient(145deg,#754de0,#315fae); font-size: 10px; font-weight: 900; }.bot-line { display: flex; align-items: center; gap: 6px; }.bot-line strong { font-size: 11px; }.bot-line span { background: #5865f2; padding: 1px 4px; border-radius: 3px; font-size: 7px; }.bot-line small { color: #91949c; font-size: 8px; }.discord-preview p { margin: 5px 0 0; font-size: 10px; line-height: 1.5; white-space: pre-wrap; }
.editor-footer { flex: 0 0 auto; min-height: 66px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); background: #121728; }.editor-footer > div { display: flex; gap: 8px; }.danger-button { color: #ff8f9b; }

.reference-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(390px,100vw); z-index: 100; padding: 20px; background: #111626; border-left: 1px solid var(--border-strong); box-shadow: -25px 0 60px rgba(0,0,0,.4); overflow-y: auto; }.reference-drawer header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }.reference-drawer h2 { margin: 0; font-size: 19px; }.reference-drawer .search-field { width: 100%; min-width: 0; margin-bottom: 15px; }.reference-list { display: grid; gap: 8px; }.reference-item { padding: 11px; border-radius: 8px; border: 1px solid var(--border); background: #151b2d; }.reference-item code { color: #69d0ff; font-size: 10px; }.reference-item p { color: #7f89a6; margin: 5px 0 0; font-size: 9px; line-height: 1.45; }
.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 130; display: grid; gap: 8px; }.toast { width: min(340px, calc(100vw - 36px)); padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 9px; background: #1c2338; box-shadow: var(--shadow); font-size: 10px; animation: toast-in .2s ease-out; }.toast strong { display: block; margin-bottom: 3px; }.toast span { color: var(--muted); }.toast.success { border-color: rgba(56,211,159,.3); }.toast.warning { border-color: rgba(246,184,75,.35); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1050px) {
    .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .code-layout { grid-template-columns: 1fr; }.compatibility-panel { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 760px) {
    .app-shell { display: block; }.sidebar { position: fixed; left: 0; transform: translateX(-105%); width: min(290px,88vw); transition: transform .2s ease; box-shadow: var(--shadow); }.sidebar.open { transform: translateX(0); }.sidebar-close, .menu-button { display: grid; }
    .topbar { padding: 0 14px; }.breadcrumb span, .breadcrumb b { display: none; }.topbar-actions .notification-button, .user-button > span:nth-child(2), .user-button .chevron { display: none; }
    .view { padding: 24px 14px 45px; }.page-heading { align-items: flex-start; flex-direction: column; }.heading-actions { width: 100%; }.heading-actions .button { flex: 1; font-size: 11px; }.stats-grid { grid-template-columns: 1fr 1fr; }.toolbar { align-items: stretch; flex-direction: column; }.search-field { width: 100%; min-width: 0; }.toolbar-filters { overflow-x: auto; }.command-table-wrap { margin: 0; }
    .modal-backdrop { padding: 0; }.editor-modal { width: 100%; height: 100vh; border-radius: 0; }.editor-header { padding: 0 14px; }.editor-scroll { padding: 10px; }.form-grid { grid-template-columns: 1fr; }.field-wide { grid-column: auto; }.code-editor { height: 300px; }.editor-footer { padding: 8px 10px; }.editor-footer .button { padding: 0 11px; font-size: 10px; }
}
@media (max-width: 480px) {
    .gate-card { padding: 34px 22px; }.stats-grid { grid-template-columns: 1fr; }.stat-card { min-height: 78px; }.notice { align-items: flex-start; }.preview-pill { display: none !important; }
}
