:root {
  --ink: #111318;
  --ink-2: #171a20;
  --panel: #1d2129;
  --panel-2: #232832;
  --line: #303640;
  --muted: #919aa8;
  --paper: #f4f5f1;
  --white: #fff;
  --green: #8ee39f;
  --green-dark: #1f5b33;
  --red: #ff7a7a;
  --amber: #f1c66c;
  --radius: 12px;
  --shadow: 0 22px 70px rgba(0, 0, 0, .25);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--paper);
  background: var(--ink);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 760; font-size: 20px; letter-spacing: -.5px; }
.brand > span:last-child > span { color: var(--green); }
.brand-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; color: var(--ink); background: var(--green); border-radius: 8px; font: 800 16px ui-monospace, SFMono-Regular, Consolas, monospace; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset; }
.button { min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 8px; display: inline-flex; justify-content: center; align-items: center; gap: 12px; font-weight: 720; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--green); color: var(--ink); box-shadow: 0 8px 30px rgba(142,227,159,.15); }
.button-primary:hover { background: #a1edaf; }
.button-secondary, .button-quiet { border-color: var(--line); background: var(--panel); color: var(--paper); }
.button-quiet { background: transparent; }
.button-quiet:hover, .button-secondary:hover { border-color: #4d5664; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.landing-body { background-color: var(--ink); background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 42px 42px; }
.landing-nav, .landing-main, footer { width: min(1160px, calc(100% - 40px)); margin: auto; }
.landing-main { padding-top: 62px; }
.hero { text-align: center; max-width: 960px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; background: rgba(142,227,159,.07); border: 1px solid rgba(142,227,159,.22); border-radius: 999px; color: #c2eecb; font-size: 13px; font-weight: 650; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(142,227,159,.12); }
.hero h1 { margin: 24px 0 20px; font-size: clamp(52px, 8vw, 94px); line-height: .94; letter-spacing: -.075em; font-weight: 810; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero > p { max-width: 650px; margin: auto; color: #adb5c1; line-height: 1.7; font-size: 18px; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 25px; margin: 34px 0 54px; }
.text-link { color: #cbd0d7; font-size: 14px; border-bottom: 1px solid #58606c; padding: 6px 0; }
.terminal-card { max-width: 790px; text-align: left; margin: 0 auto; background: #0b0d10; border: 1px solid #343a43; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transform: perspective(1200px) rotateX(2deg); }
.terminal-bar { display: flex; gap: 7px; align-items: center; padding: 13px 15px; background: #181b21; border-bottom: 1px solid #292e36; }
.terminal-bar span { width: 9px; height: 9px; border-radius: 50%; background: #59606a; }
.terminal-bar span:first-child { background: var(--red); }
.terminal-bar span:nth-child(2) { background: var(--amber); }
.terminal-bar span:nth-child(3) { background: var(--green); }
.terminal-bar small { color: #79818d; font: 11px ui-monospace, Consolas, monospace; margin-left: 9px; }
.terminal-lines { padding: 25px 30px; font: 14px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.terminal-lines p { margin: 3px 0; color: #aeb6c0; }
.terminal-lines b { color: var(--green); }
.terminal-lines span { color: var(--green); margin-right: 10px; }
.terminal-lines strong { color: #e4e7eb; font-weight: 500; }
.cursor-line i { display: inline-block; width: 8px; height: 16px; vertical-align: -3px; background: var(--green); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); margin: 100px 0 120px; border-block: 1px solid var(--line); }
.trust-row div { padding: 28px; display: flex; gap: 15px; align-items: baseline; justify-content: center; border-right: 1px solid var(--line); }
.trust-row div:last-child { border-right: 0; }
.trust-row strong { font: 800 22px ui-monospace, Consolas, monospace; color: var(--green); }
.trust-row span { color: var(--muted); font-size: 13px; }
.feature-section { padding-bottom: 120px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; }
.section-heading > span, .cta-panel span { color: var(--green); font: 700 11px ui-monospace, Consolas, monospace; letter-spacing: .16em; }
.section-heading h2 { margin: 0; text-align: right; font-size: clamp(34px, 5vw, 52px); line-height: 1; letter-spacing: -.05em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.feature-grid article { min-height: 270px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(17,19,24,.7); position: relative; }
.feature-grid article:hover { background: var(--ink-2); }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; color: var(--green); font: 700 17px ui-monospace, Consolas, monospace; }
.feature-grid h3 { font-size: 21px; margin: 36px 0 9px; }
.feature-grid p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; max-width: 270px; }
.feature-grid small { position: absolute; bottom: 28px; color: #5d6570; font: 10px ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: .1em; }
.cta-panel { padding: 50px; margin-bottom: 80px; display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; border: 1px solid #385142; background: #17231b; border-radius: 14px; }
.cta-panel h2 { margin: 10px 0 0; font-size: clamp(30px, 4vw, 45px); letter-spacing: -.045em; max-width: 650px; }
footer { min-height: 110px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
footer p { font-size: 12px; }

/* Private access terminal */
.access-body { min-height: 100vh; overflow-x: hidden; background: #090b0f; color: #f1f3ee; position: relative; }
.access-grid { position: fixed; inset: 0; pointer-events: none; opacity: .55; background-image: linear-gradient(rgba(142,227,159,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(142,227,159,.035) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.5) 68%, transparent 100%); }
.access-body::before { content: ""; position: fixed; width: 48vw; height: 48vw; right: -18vw; top: -22vw; border-radius: 50%; background: rgba(142,227,159,.1); filter: blur(110px); pointer-events: none; }
.access-header, .access-main, .access-footer { position: relative; z-index: 1; width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.access-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #292f36; }
.system-state { display: flex; align-items: center; gap: 10px; color: #6f7884; font: 700 9px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .13em; }
.system-state strong { color: var(--green); font-weight: 700; }
.system-state .status-dot { width: 7px; height: 7px; }
.access-main { width: min(700px, calc(100% - 64px)); min-height: calc(100vh - 166px); display: grid; align-items: center; padding-block: 70px; }
.access-terminal { overflow: hidden; border: 1px solid #38404a; border-radius: 15px; background: rgba(13,16,20,.94); box-shadow: 0 34px 100px rgba(0,0,0,.45), 0 0 0 1px rgba(142,227,159,.025) inset; }
.terminal-chrome { height: 49px; display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 12px; padding-inline: 17px; border-bottom: 1px solid #292f37; background: #15191f; color: #65707d; font: 700 8px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.terminal-chrome > span:nth-child(2) { text-align: center; }
.terminal-chrome > span:last-child { color: #779981; }
.terminal-lights { display: flex; gap: 7px; }
.terminal-lights i { width: 8px; height: 8px; border-radius: 50%; background: #414852; }
.terminal-lights i:first-child { background: #ef7777; }
.terminal-lights i:nth-child(2) { background: #ddb861; }
.terminal-lights i:last-child { background: var(--green); }
.scan-zone { padding: clamp(30px, 5vw, 53px); }
.scan-brackets { position: relative; width: 118px; height: 118px; margin-bottom: 29px; display: grid; place-items: center; color: var(--green); background: rgba(142,227,159,.035); }
.scan-brackets > i { position: absolute; width: 25px; height: 25px; border-color: var(--green); opacity: .75; }
.scan-brackets > i:nth-child(1) { top: 0; left: 0; border-top: 2px solid; border-left: 2px solid; }
.scan-brackets > i:nth-child(2) { top: 0; right: 0; border-top: 2px solid; border-right: 2px solid; }
.scan-brackets > i:nth-child(3) { bottom: 0; left: 0; border-bottom: 2px solid; border-left: 2px solid; }
.scan-brackets > i:nth-child(4) { right: 0; bottom: 0; border-right: 2px solid; border-bottom: 2px solid; }
.scan-brackets > span { font: 850 28px ui-monospace, SFMono-Regular, Consolas, monospace; }
.scan-brackets > b { position: absolute; left: 8px; right: 8px; top: 12px; height: 1px; background: var(--green); box-shadow: 0 0 10px var(--green); animation: scan 2.8s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(92px); opacity: 1; } }
.scan-label { color: var(--green); font: 720 9px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .18em; }
.scan-zone h2 { margin: 9px 0 12px; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.045em; }
.scan-zone > p { max-width: 510px; margin: 0; color: #828c98; font-size: 13px; line-height: 1.65; }
.discord-login { min-height: 76px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 15px; margin-top: 29px; padding: 11px 17px; border: 1px solid #99eda9; border-radius: 9px; background: var(--green); color: #0e1912; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.discord-login:hover { transform: translateY(-2px); background: #a4efb2; box-shadow: 0 13px 40px rgba(142,227,159,.13); }
.discord-glyph { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: rgba(10,22,14,.12); font: 850 15px ui-monospace, Consolas, monospace; }
.discord-login span:nth-child(2) { min-width: 0; }
.discord-login small, .discord-login strong { display: block; }
.discord-login small { margin-bottom: 3px; opacity: .58; font: 750 8px ui-monospace, Consolas, monospace; letter-spacing: .13em; }
.discord-login strong { font-size: 14px; }
.discord-login > b { font-size: 22px; transition: transform .18s ease; }
.discord-login:hover > b { transform: translateX(3px); }
.discord-login.authenticating { pointer-events: none; animation: auth-pulse .65s ease both; }
@keyframes auth-pulse { 50% { filter: brightness(1.13); box-shadow: 0 0 0 7px rgba(142,227,159,.08); } }
.access-message { margin-top: 20px; padding: 13px 15px; border: 1px solid #724247; border-radius: 7px; background: #2a191c; }
.access-message strong, .access-message span { display: block; }
.access-message strong { color: #ff999f; font: 750 9px ui-monospace, Consolas, monospace; letter-spacing: .13em; }
.access-message span { margin-top: 5px; color: #c9a6a9; font-size: 11px; }
.terminal-log { margin-top: 26px; padding-top: 22px; border-top: 1px solid #242a31; color: #64707c; font: 10px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; }
.terminal-log p { margin: 0; }
.terminal-log b, .terminal-log span { color: var(--green); font-weight: 600; }
.terminal-log p:last-child b:last-child { display: inline-block; margin-left: 3px; animation: blink 1s steps(1) infinite; }
.terminal-foot { min-height: 47px; display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-inline: clamp(30px, 5vw, 53px); border-top: 1px solid #292f37; background: #11151a; color: #59636f; font: 700 7px ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.access-footer { min-height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; border-top: 1px solid #242a31; color: #535d68; font: 700 8px ui-monospace, Consolas, monospace; letter-spacing: .11em; }
.access-footer p { margin: 0; text-align: center; font: 11px Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: 0; }
.access-footer > span:last-child { text-align: right; }

@media (max-width: 650px) {
  .access-header, .access-main, .access-footer { width: min(100% - 28px, 1240px); }
  .access-header { min-height: 76px; }
  .system-state > span:nth-child(2) { display: none; }
  .access-main { padding-block: 45px; min-height: auto; }
  .scan-zone { padding: 28px 22px; }
  .terminal-chrome { grid-template-columns: 60px 1fr; }
  .terminal-chrome > span:last-child { display: none; }
  .terminal-chrome > span:nth-child(2) { text-align: right; }
  .terminal-foot { padding-inline: 22px; }
  .terminal-foot span:last-child { display: none; }
  .access-footer { grid-template-columns: 1fr auto; margin-top: 50px; }
  .access-footer p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Dashboard */
.app-body { min-height: 100vh; background: #111318; }
.full-state { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }
.app-shell { min-height: 100vh; width: 100%; display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "sidebar content"; align-items: start; }
.app-shell > .ez-controls { grid-area: sidebar; min-width: 0; width: 100%; visibility: visible; opacity: 1; z-index: 10; }
.app-shell > .dashboard-main { grid-area: content; }
#settings-form, #settings-form > .panel { width: 100%; min-width: 0; }
.ez-controls { position: sticky; top: 0; height: 100vh; background: #13161b; border-right: 1px solid var(--line); padding: 25px 18px 18px; display: flex; flex-direction: column; }
.ez-controls > .brand { padding: 0 8px 25px; }
.server-switcher { border-block: 1px solid var(--line); padding: 20px 7px; }
.server-switcher label { display: block; color: #737c89; font: 700 9px ui-monospace, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
select, input, textarea { color: var(--paper); background: #15181e; border: 1px solid #353b46; border-radius: 7px; outline: none; }
select:focus, input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(142,227,159,.08); }
select { min-height: 42px; padding: 0 36px 0 12px; width: 100%; }
.side-nav { min-height: 0; flex: 1; padding-top: 20px; display: grid; align-content: start; gap: 4px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #303640 transparent; padding-right: 3px; }
.side-nav > small { color: #59616d; font: 750 8px ui-monospace, Consolas, monospace; letter-spacing: .12em; padding: 17px 12px 5px; }
.side-nav button { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 13px; padding: 0 12px; color: #929ba8; background: transparent; border: 0; border-radius: 7px; cursor: pointer; text-align: left; font-weight: 590; font-size: 13px; }
.side-nav button span { width: 22px; color: #6d7683; font: 700 16px ui-monospace, Consolas, monospace; }
.side-nav button:hover { background: #1c2027; color: var(--paper); }
.side-nav button.active { background: #20262e; color: var(--white); box-shadow: inset 3px 0 var(--green); }
.side-nav button.active span { color: var(--green); }
.ez-controls-user { margin-top: auto; padding: 15px 7px 2px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr 30px; gap: 9px; align-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--green-dark) center/cover; display: grid; place-items: center; font-weight: 800; color: var(--green); }
.ez-controls-user strong, .ez-controls-user span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ez-controls-user strong { font-size: 12px; }
.ez-controls-user span { color: #6f7782; font-size: 10px; margin-top: 3px; }
.ez-controls-user button { color: #7a838e; background: transparent; border: 0; cursor: pointer; font-size: 19px; }
.dashboard-main { min-width: 0; padding: 0 46px 100px; max-width: 1220px; width: 100%; margin: 0 auto; }
.dashboard-header { height: 120px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.dashboard-header span, .card-heading > div > span, .server-banner > div > span, .stat-grid article > span { color: #697380; font: 700 9px ui-monospace, Consolas, monospace; letter-spacing: .14em; }
.dashboard-header h1 { margin: 7px 0 0; font-size: 28px; letter-spacing: -.035em; }
.connection-pill { color: #aeb6c0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; display: flex; align-items: center; gap: 9px; }
.panel { display: none; }
.panel.active { display: block; animation: panel-in .18s ease-out; }
@keyframes panel-in { from { opacity: .35; transform: translateY(4px); } }
.server-banner { min-height: 180px; padding: 35px 40px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #36503e; border-radius: var(--radius); background: #17231b; overflow: hidden; position: relative; }
.server-banner::after { content: ">_"; position: absolute; right: 130px; bottom: -38px; color: rgba(142,227,159,.035); font: 900 170px ui-monospace, Consolas, monospace; }
.server-banner h2 { font-size: 32px; margin: 10px 0 9px; letter-spacing: -.04em; }
.server-banner p { color: #97a59a; margin: 0; font-size: 13px; }
.server-banner p b { color: var(--green); font-weight: 600; }
.server-monogram { z-index: 1; width: 82px; height: 82px; border-radius: 14px; display: grid; place-items: center; background: var(--green); color: #17341e; font-size: 32px; font-weight: 850; box-shadow: 0 15px 50px rgba(0,0,0,.25); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 14px 0; }
.stat-grid article { padding: 20px 22px; min-height: 110px; border: 1px solid var(--line); border-radius: 9px; background: var(--ink-2); }
.stat-grid strong { display: block; margin: 10px 0 2px; font: 750 24px ui-monospace, Consolas, monospace; }
.stat-grid small { color: #68717d; font-size: 10px; }
.content-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 29px; margin-bottom: 14px; }
.card-heading { min-height: 70px; display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--line); padding-bottom: 23px; margin-bottom: 5px; }
.card-heading h2 { margin: 7px 0 0; font-size: 21px; letter-spacing: -.025em; }
.card-heading p { color: var(--muted); font-size: 12px; margin: 7px 0 0; line-height: 1.5; }
.field-row, .field-stack { padding: 20px 0; border-bottom: 1px solid #292e36; }
.field-row:last-child, .field-stack:last-child { border-bottom: 0; padding-bottom: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 25px; }
.field-row > input, .field-row > select { min-width: 0; width: 100%; }
.field-row label, .field-stack label { font-weight: 630; font-size: 13px; }
.field-row label span, .field-stack label span { display: block; margin-top: 5px; color: #727b87; font-weight: 400; font-size: 11px; }
input, textarea { padding: 11px 12px; }
textarea { width: 100%; resize: vertical; line-height: 1.5; }
.field-stack textarea, .field-stack select { margin-top: 11px; }
.module-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.module-links button > div { min-width: 0; overflow-wrap: anywhere; }
.module-links button { padding: 17px; background: var(--ink-2); color: var(--paper); border: 1px solid var(--line); border-radius: 9px; display: grid; grid-template-columns: 40px 1fr auto; gap: 13px; align-items: center; text-align: left; cursor: pointer; }
.module-links button:hover { border-color: #4a5360; }
.module-glyph { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 7px; background: #222a26; color: var(--green); font: 700 16px ui-monospace, Consolas, monospace; }
.module-links strong, .module-links small { display: block; }
.module-links strong { font-size: 13px; }
.module-links small { color: #717a86; font-size: 10px; margin-top: 4px; }
.module-links b { color: #717a86; font: 700 9px ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.module-links b.on { color: var(--green); }
.plugin-library-heading { margin: 28px 0 18px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.plugin-library-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.plugin-count { display: flex; align-items: baseline; gap: 7px; color: var(--muted); }
.plugin-count strong { color: var(--green); font: 800 25px ui-monospace, Consolas, monospace; }
.plugin-count span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.plugin-catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plugin-card { min-height: 168px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink-2); color: var(--paper); text-align: left; cursor: pointer; display: flex; flex-direction: column; transition: transform .17s ease, border-color .17s ease, background .17s ease; }
.plugin-card:hover { transform: translateY(-2px); border-color: #4b5562; background: #1c2128; }
.plugin-card.enabled { border-color: #3b5a43; box-shadow: inset 0 0 0 1px rgba(142,227,159,.04); }
.plugin-card-top { display: flex; justify-content: space-between; align-items: center; }
.plugin-card-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 7px; background: #242a32; color: #9da7b5; font: 700 15px ui-monospace, Consolas, monospace; }
.plugin-card.enabled .plugin-card-icon { background: #213128; color: var(--green); }
.plugin-state { display: inline-flex; gap: 5px; align-items: center; color: #747d89; font: 700 8px ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.plugin-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #555e69; }
.plugin-card.enabled .plugin-state { color: var(--green); }
.plugin-card.enabled .plugin-state::before { background: var(--green); box-shadow: 0 0 0 3px rgba(142,227,159,.09); }
.plugin-card h3 { margin: 18px 0 6px; font-size: 14px; }
.plugin-card p { margin: 0; color: #747e8b; font-size: 10px; line-height: 1.5; }
.plugin-card > small { margin-top: auto; padding-top: 13px; color: #5e6672; font: 700 8px ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.plugin-dialog { width: min(580px, calc(100% - 28px)); padding: 0; border: 1px solid #414955; border-radius: 13px; background: #171a20; color: var(--paper); box-shadow: 0 35px 100px rgba(0,0,0,.65); }
.plugin-dialog::backdrop { background: rgba(7,9,11,.78); backdrop-filter: blur(5px); }
.plugin-dialog[open] { animation: dialog-in .2s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.plugin-dialog-shell > header { padding: 22px 24px; display: grid; grid-template-columns: 42px 1fr 34px; gap: 13px; align-items: center; border-bottom: 1px solid var(--line); }
.plugin-dialog-shell > header > button { width: 34px; height: 34px; border: 0; border-radius: 6px; background: transparent; color: #7d8692; font-size: 22px; cursor: pointer; }
.plugin-dialog-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: #213128; color: var(--green); font: 750 16px ui-monospace, Consolas, monospace; }
.plugin-dialog-shell header span { color: var(--green); font: 700 8px ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.plugin-dialog-shell header h2 { margin: 5px 0 0; font-size: 19px; }
.plugin-dialog-body { padding: 24px; }
.plugin-dialog-body > p { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.plugin-enable-row { padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #37453b; border-radius: 8px; background: #1a241d; }
.plugin-enable-row strong, .plugin-enable-row small { display: block; }
.plugin-enable-row strong { font-size: 12px; }
.plugin-enable-row small { margin-top: 4px; color: #758179; font-size: 10px; }
.plugin-dialog-fields { display: grid; gap: 14px; margin-top: 20px; }
.plugin-dialog-fields label { color: #959eaa; font-size: 11px; }
.plugin-dialog-fields input, .plugin-dialog-fields select, .plugin-dialog-fields textarea { width: 100%; margin-top: 7px; }
.plugin-dialog-fields .field-help { color: #656e79; font-size: 9px; margin: -7px 0 0; }
.plugin-dialog-shell > footer { min-height: 67px; padding: 11px 17px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); }
#terminal-transition { position: fixed; z-index: 100; inset: 0; pointer-events: none; display: grid; place-items: center; background: rgba(8,10,13,.96); opacity: 0; visibility: hidden; }
#terminal-transition.running { visibility: visible; animation: terminal-wipe .48s ease both; }
#terminal-transition > div { width: min(520px, calc(100% - 40px)); padding: 22px; border: 1px solid #38413c; border-radius: 9px; background: #0b0e10; box-shadow: 0 30px 90px rgba(0,0,0,.5); font: 13px ui-monospace, Consolas, monospace; }
#terminal-transition p { margin: 0; color: #9da7a1; }
#terminal-transition b { color: var(--green); }
#terminal-transition .transition-result { margin-top: 9px; color: var(--green); opacity: 0; animation: result-in .15s .18s forwards; }
@keyframes terminal-wipe { 0% { opacity: 0; clip-path: inset(48% 0 48% 0); } 28%, 62% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0; clip-path: inset(0 0 0 0); } }
@keyframes result-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #terminal-transition.running, .plugin-dialog[open], .panel.active { animation-duration: .01ms; } }
.switch { position: relative; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { display: block; width: 45px; height: 25px; border-radius: 99px; background: #363d47; cursor: pointer; transition: background .16s ease; position: relative; }
.switch span::after { content: ""; position: absolute; width: 19px; height: 19px; border-radius: 50%; background: #aab1ba; left: 3px; top: 3px; transition: transform .16s ease, background .16s ease; }
.switch input:checked + span { background: var(--green-dark); }
.switch input:checked + span::after { transform: translateX(20px); background: var(--green); }
.switch input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 3px; }
.toggle-list > label { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #292e36; }
.toggle-list strong, .toggle-list small { display: block; }
.toggle-list strong { font-size: 13px; }
.toggle-list small { color: #727b87; margin-top: 4px; font-size: 11px; }
.toggle-list input { appearance: none; width: 21px; height: 21px; padding: 0; border-radius: 5px; cursor: pointer; }
.toggle-list input:checked { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 5px var(--green); }
.toggle-list input:checked::after { content: "✓"; color: var(--ink); display: grid; place-items: center; font-size: 13px; font-weight: 900; }
.three-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px 0; border-bottom: 1px solid #292e36; }
.three-fields label { color: #929ba8; font-size: 11px; }
.three-fields input { display: block; width: 100%; margin-top: 8px; }
#exempt-roles { min-height: 115px; padding: 7px; }
#exempt-roles option { padding: 7px; border-radius: 4px; }
#exempt-roles option:checked { background: var(--green-dark); color: #d9f5df; }
.command-list { display: grid; gap: 9px; padding-top: 17px; }
.command-row { display: grid; grid-template-columns: minmax(130px,.55fr) minmax(220px,1.5fr) 38px; gap: 9px; align-items: center; padding: 11px; border: 1px solid #2e343d; border-radius: 8px; }
.command-name { display: flex; align-items: center; background: #15181e; border: 1px solid #353b46; border-radius: 7px; overflow: hidden; }
.command-name span { color: var(--green); padding-left: 10px; font: 700 13px ui-monospace, Consolas, monospace; }
.command-name input { min-width: 0; width: 100%; border: 0; box-shadow: none; }
.command-row > input { width: 100%; }
.remove-command { width: 36px; height: 36px; color: #a78585; background: transparent; border: 1px solid #463639; border-radius: 6px; cursor: pointer; }
.command-empty { text-align: center; padding: 35px 15px; color: #69727e; font-size: 12px; }
.notice-card { display: flex; gap: 14px; padding: 19px; border: 1px solid #3d4437; border-radius: 9px; background: #1d2019; }
.notice-card > span { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 50%; border: 1px solid #626f4c; color: var(--amber); font: 700 12px ui-monospace, Consolas, monospace; }
.notice-card strong { font-size: 12px; }
.notice-card p { color: #888f81; font-size: 11px; margin: 4px 0 0; }
.preview-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 20px 0 12px; }
.preview-heading > div span, .preview-heading > div strong { display: block; }
.preview-heading > div span { color: var(--green); font: 700 8px ui-monospace, Consolas, monospace; letter-spacing: .13em; }
.preview-heading > div strong { margin-top: 5px; font-size: 13px; }
.preview-heading small { color: #68717d; font-size: 9px; }
.rank-card-preview { --rank-accent: #8ee39f; --frame-colour: #8ee39f; position: relative; min-height: 230px; border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 27px; padding: 30px 34px; background: #20261f url('/og.png') center/cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 15px 45px rgba(0,0,0,.18); isolation: isolate; }
.rank-card-shade { position: absolute; z-index: -1; inset: 0; background: rgba(6,8,10,.55); }
.rank-card-avatar { width: 124px; height: 124px; display: grid; place-items: center; border-radius: 18px; background: #22362a center/cover; border: 4px solid rgba(255,255,255,.92); outline: 3px solid var(--frame-colour); outline-offset: 3px; color: var(--rank-accent); font-size: 46px; font-weight: 850; box-shadow: 0 8px 28px rgba(0,0,0,.4); transition: border-radius .2s ease, outline-color .2s ease; }
.rank-card-preview.frame-off .rank-card-avatar { border: 0; outline: 0; }
.rank-card-preview.avatar-circle .rank-card-avatar { border-radius: 50%; }
.rank-presence { position: absolute; left: 128px; top: 137px; width: 27px; height: 27px; border: 5px solid #16201a; border-radius: 50%; background: var(--rank-accent); }
.rank-card-content { min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.rank-card-stats { display: flex; justify-content: flex-end; align-items: baseline; gap: 22px; }
.rank-card-stats span { color: rgba(255,255,255,.68); font: 700 11px ui-monospace, Consolas, monospace; }
.rank-card-stats strong { color: #fff; font-size: 25px; font-weight: 500; }
.rank-card-stats span:last-child strong { color: var(--rank-accent); }
.rank-card-content h3 { margin: 17px 0 3px; color: #fff; font-size: 26px; letter-spacing: -.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-card-xp { display: flex; justify-content: flex-end; gap: 5px; color: rgba(255,255,255,.72); font-size: 10px; }
.rank-card-xp b { margin-right: auto; color: rgba(255,255,255,.74); font-weight: 600; }
.rank-card-xp span:first-child::after { content: ' /'; }
.rank-progress { height: 20px; overflow: hidden; margin-top: 9px; background: rgba(21,25,28,.82); border: 2px solid rgba(0,0,0,.6); border-radius: 999px; box-shadow: inset 0 2px 5px rgba(0,0,0,.4); }
.rank-progress i { display: block; width: 36%; height: 100%; border-radius: inherit; background: var(--rank-accent); box-shadow: 0 0 18px color-mix(in srgb, var(--rank-accent) 55%, transparent); transition: width .2s ease, background .2s ease; }
.rank-card-preview[data-style="terminal"] { border: 1px solid color-mix(in srgb, var(--rank-accent) 55%, transparent); box-shadow: inset 0 0 0 6px rgba(7,10,9,.45), 0 15px 45px rgba(0,0,0,.18); }
.rank-card-preview[data-style="terminal"] .rank-card-content { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.rank-card-preview[data-style="terminal"] .rank-card-content h3::before { content: '> '; color: var(--rank-accent); }
.rank-card-preview[data-style="minimal"] { background: #e8ece7; }
.rank-card-preview[data-style="minimal"] .rank-card-shade { background: transparent !important; }
.rank-card-preview[data-style="minimal"] .rank-card-avatar { border-radius: 18px; border-color: #fff; box-shadow: 0 8px 25px rgba(13,24,17,.18); }
.rank-card-preview[data-style="minimal"] .rank-presence { border-color: #e8ece7; }
.rank-card-preview[data-style="minimal"] .rank-card-content { text-shadow: none; }
.rank-card-preview[data-style="minimal"] .rank-card-content h3, .rank-card-preview[data-style="minimal"] .rank-card-stats strong { color: #172019; }
.rank-card-preview[data-style="minimal"] .rank-card-stats span, .rank-card-preview[data-style="minimal"] .rank-card-xp, .rank-card-preview[data-style="minimal"] .rank-card-xp b { color: #68736b; }
.rank-card-preview[data-style="minimal"] .rank-progress { background: #c8cec9; border-color: #bac2bc; box-shadow: none; }
.rank-card-preview[data-style="banner"] { width: 100%; min-height: 230px; }
.rank-card-preview[data-style="card"] { width: min(100%, 620px); min-height: 380px; margin-inline: auto; grid-template-columns: 140px 1fr; align-items: end; padding: 36px; }
.rank-card-preview[data-style="card"] .rank-card-avatar { align-self: start; }
.rank-card-preview[data-style="card"] .rank-presence { left: 139px; top: 131px; }
.rank-card-preview[data-style="card"] .rank-card-content { grid-column: 1 / 3; min-height: 175px; }
.rank-card-preview[data-style="card"] .rank-card-stats { position: absolute; right: 36px; top: 47px; }
.rank-card-preview[data-style="compact"] { width: min(100%, 390px); min-height: 390px; margin-inline: auto; grid-template-columns: 1fr; grid-template-rows: 128px 1fr; gap: 18px; justify-items: center; padding: 30px; }
.rank-card-preview[data-style="compact"] .rank-card-avatar { width: 116px; height: 116px; }
.rank-card-preview[data-style="compact"] .rank-presence { left: calc(50% + 38px); top: 116px; }
.rank-card-preview[data-style="compact"] .rank-card-content { width: 100%; text-align: center; }
.rank-card-preview[data-style="compact"] .rank-card-stats { justify-content: center; order: 2; margin-top: 14px; }
.rank-card-preview[data-style="compact"] .rank-card-content h3 { margin-top: 0; }
.rank-card-preview[data-style="compact"] .rank-card-xp b { display: none; }
.rank-card-preview[data-style="compact"] .rank-card-xp { justify-content: center; }
.rank-style-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 12px 0 20px; border-bottom: 1px solid #292e36; }
.rank-style-picker button { min-height: 64px; display: grid; grid-template-columns: 32px 1fr; grid-template-rows: 1fr 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; text-align: left; color: var(--paper); background: #15181e; border: 1px solid #343a44; border-radius: 8px; cursor: pointer; }
.rank-style-picker button:hover { border-color: #4b5562; }
.rank-style-picker button.active { border-color: var(--green); background: #1b2720; box-shadow: inset 0 0 0 1px rgba(142,227,159,.08); }
.rank-style-picker button > span { grid-row: 1 / 3; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: #242a32; color: #909aa7; font: 700 11px ui-monospace, Consolas, monospace; }
.rank-style-picker button.active > span { color: var(--green); background: #243129; }
.rank-style-picker strong { align-self: end; font-size: 11px; }
.rank-style-picker small { align-self: start; color: #69727f; font-size: 8px; }
.discord-gallery-heading { margin-top: 19px; }
.rank-discord-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 23px; margin-bottom: 20px; border-bottom: 1px solid #292e36; }
.rank-discord-message { min-width: 0; padding: 13px; border: 1px solid #30353e; border-radius: 9px; background: #101114; }
.rank-discord-message > label { display: block; margin-top: 9px; color: #808997; font: 700 8px ui-monospace, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.rank-discord-banner { grid-column: 1 / -1; }
.rank-discord-author { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rank-discord-author > i { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #142219; font: 800 8px ui-monospace, Consolas, monospace; font-style: normal; }
.rank-discord-author > span { display: flex; align-items: center; gap: 5px; min-width: 0; }
.rank-discord-author strong { font-size: 9px; }
.rank-discord-author b { padding: 1px 3px; border-radius: 2px; background: #5865f2; color: #fff; font-size: 6px; }
.rank-discord-author small { color: #727883; font-size: 7px; }
.mini-rank-card { --rank-accent: #8ee39f; --frame-colour: #8ee39f; position: relative; overflow: hidden; display: flex; align-items: center; gap: 7%; width: 100%; padding: 8%; border-radius: 7px; color: #fff; background: linear-gradient(rgba(6,8,10,.55), rgba(6,8,10,.55)), url('/og.png') center/cover; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.mini-rank-card[data-preview-style="card"] { aspect-ratio: 620 / 420; align-items: flex-start; }
.mini-rank-card[data-preview-style="compact"] { width: min(100%, 220px); aspect-ratio: 1; margin-inline: auto; flex-direction: column; justify-content: center; text-align: center; }
.mini-rank-card[data-preview-style="banner"] { aspect-ratio: 900 / 280; padding: 4%; }
.mini-rank-avatar { flex: 0 0 auto; width: 29%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 14%; border: 2px solid rgba(255,255,255,.92); outline: 2px solid var(--frame-colour); outline-offset: 2px; background: #22362a center/cover; color: var(--rank-accent); font: 800 clamp(16px, 4vw, 34px) sans-serif; font-style: normal; }
.mini-rank-card.avatar-circle .mini-rank-avatar { border-radius: 50%; }
.mini-rank-card.frame-off .mini-rank-avatar { border: 0; outline: 0; }
.mini-rank-card > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: clamp(3px, .8vw, 8px); text-shadow: 0 1px 5px #000; }
.mini-rank-card > div > span, .mini-rank-card > div > small { color: rgba(255,255,255,.72); font: 700 clamp(5px, .8vw, 9px) ui-monospace, Consolas, monospace; }
.mini-rank-card > div > strong { overflow: hidden; color: #fff; font-size: clamp(8px, 1.7vw, 18px); white-space: nowrap; text-overflow: ellipsis; }
.mini-rank-card > div > em { display: block; height: clamp(5px, 1vw, 10px); border-radius: 99px; background: linear-gradient(90deg, var(--rank-accent) 38%, rgba(15,18,20,.85) 38%); }
.mini-rank-card[data-preview-style="compact"] .mini-rank-avatar { width: 37%; }
.mini-rank-card[data-preview-style="compact"] > div { width: 88%; flex: 0; }
.mini-rank-card[data-preview-style="compact"] > div > small { display: none; }
.avatar-controls { margin-top: 20px; }
.plugin-workspace-card { min-height: 520px; }
.plugin-workspace-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.plugin-workspace-fields > label { display: flex; flex-direction: column; gap: 8px; color: #aeb7c4; font-size: 11px; }
.plugin-workspace-fields > label:has(textarea) { grid-column: 1 / -1; }
.plugin-workspace-fields textarea { min-height: 105px; resize: vertical; }
.plugin-check { min-height: 54px; flex-direction: row !important; align-items: center; justify-content: space-between; padding: 0 14px; border: 1px solid #343a44; border-radius: 8px; background: #15181e; }
.plugin-check input { width: 18px; height: 18px; accent-color: var(--green); }
.workspace-hint { display: flex; gap: 10px; align-items: center; padding: 14px; margin-top: 20px; border: 1px solid #294232; border-radius: 8px; background: #16221b; }
.workspace-hint span { color: var(--green); }
.workspace-hint p { margin: 0; color: #85918a; font-size: 10px; }
.workspace-preview { margin-top: 22px; }
.chart-preview { padding: 20px; border: 1px solid #343a44; border-radius: 9px; background: #101114; }
.chart-preview > span { color: var(--green); font: 700 8px ui-monospace, Consolas, monospace; letter-spacing: .13em; }
.chart-preview h3 { margin: 7px 0 18px; font-size: 17px; }
.chart-preview > div { margin-top: 11px; }
.chart-preview label { display: flex; justify-content: space-between; margin-bottom: 5px; color: #b9c0ca; font-size: 10px; }
.chart-preview i { display: block; height: 15px; overflow: hidden; border-radius: 3px; background: #252a31; }
.chart-preview em { display: block; height: 100%; border-radius: inherit; transition: width .2s ease; }
.discord-message-preview { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; padding: 20px; margin-bottom: 5px; border: 1px solid #343941; border-radius: 9px; background: #101114; }
.discord-bot-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #142219; font: 800 12px ui-monospace, Consolas, monospace; }
.discord-author { display: flex; align-items: center; gap: 6px; min-height: 22px; }
.discord-author strong { font-size: 13px; }
.discord-author b { padding: 2px 5px; border-radius: 3px; background: #5865f2; color: white; font-size: 8px; }
.discord-author span { color: #72767d; font-size: 9px; }
.discord-embed-preview { --embed-colour: #8ee39f; position: relative; max-width: 620px; min-height: 115px; margin-top: 4px; padding: 16px 16px 13px 19px; overflow: hidden; border-radius: 4px; background: #202225; box-shadow: inset 4px 0 var(--embed-colour); }
.discord-embed-preview h3 { margin: 0 0 8px; font-size: 14px; color: #f2f3f5; }
.discord-embed-preview p { white-space: pre-wrap; margin: 0 0 10px; color: #dbdee1; font-size: 12px; line-height: 1.5; }
.discord-embed-preview img { display: block; max-width: 100%; max-height: 240px; object-fit: cover; border-radius: 4px; margin: 12px 0; }
.discord-embed-preview img[hidden] { display: none; }
.discord-embed-preview small { color: #a3a6aa; font-size: 9px; }
.embed-actions { padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.embed-actions p { margin: 0; color: #717a86; font-size: 10px; }
.save-bar { position: fixed; z-index: 5; bottom: 18px; left: max(278px, calc((100vw - 260px - 1220px) / 2 + 306px)); right: max(18px, calc((100vw - 260px - 1220px) / 2 + 46px)); max-width: 1128px; min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 9px 11px 9px 20px; background: rgba(28,32,39,.96); border: 1px solid #424955; border-radius: 10px; box-shadow: 0 14px 45px rgba(0,0,0,.35); backdrop-filter: blur(16px); }
.save-bar > span { color: #7b8490; font-size: 11px; }
.save-bar .button { min-height: 43px; }
.empty-card { text-align: center; max-width: 520px; margin: 80px auto; padding: 60px 35px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.empty-card .brand-mark { margin: auto; }
.empty-card h2 { margin: 20px 0 8px; }
.empty-card p { color: var(--muted); line-height: 1.6; }
#toast { position: fixed; z-index: 20; top: 20px; right: 22px; max-width: 360px; padding: 13px 16px; border-radius: 8px; background: #243629; border: 1px solid #42644b; color: #d9f5df; box-shadow: var(--shadow); transform: translateY(-15px); opacity: 0; pointer-events: none; transition: .2s ease; font-size: 13px; }
#toast.show { transform: translateY(0); opacity: 1; }
#toast.error { background: #382426; border-color: #694044; color: #ffd5d8; }
code { color: var(--green); font-family: ui-monospace, Consolas, monospace; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .app-shell { grid-template-columns: 78px minmax(0, 1fr); }
  .ez-controls { padding-inline: 12px; align-items: center; }
  .ez-controls > .brand > span:last-child, .server-switcher label, .ez-controls-user > div:nth-child(2), .side-nav button:not(.active)::after { display: none; }
  .server-switcher { width: 100%; }
  .server-switcher select { font-size: 0; padding: 0; }
  .side-nav button { width: 46px; justify-content: center; padding: 0; font-size: 0; }
  .side-nav button span { width: auto; font-size: 18px; }
  .ez-controls-user { grid-template-columns: 34px; }
  .ez-controls-user button { display: none; }
  .dashboard-main { padding-inline: 28px; }
  .save-bar { left: 96px; right: 18px; }
  .plugin-catalog { grid-template-columns: repeat(2, 1fr); }
  .side-nav > small { display: none; }
}
@media (max-width: 650px) {
  .landing-nav, .landing-main, footer { width: min(100% - 26px, 1160px); }
  .landing-main { padding-top: 35px; }
  .hero h1 { font-size: 49px; }
  .hero > p { font-size: 15px; }
  .hero-actions { flex-direction: column; margin-bottom: 38px; }
  .terminal-lines { padding: 18px; font-size: 11px; }
  .trust-row { grid-template-columns: 1fr; margin: 70px 0 80px; }
  .trust-row div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-row div:last-child { border-bottom: 0; }
  .section-heading { display: block; }
  .section-heading h2 { text-align: left; margin-top: 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta-panel { align-items: flex-start; flex-direction: column; padding: 30px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; }
  .app-shell { display: block; }
  .ez-controls { position: sticky; z-index: 10; height: 65px; flex-direction: row; top: 0; padding: 10px 14px; align-items: center; }
  .ez-controls > .brand { padding: 0; }
  .server-switcher, .ez-controls-user { display: none; }
  .side-nav { display: flex; overflow-x: auto; padding: 0 0 0 15px; margin-left: auto; }
  .side-nav button { flex: 0 0 42px; min-height: 40px; }
  .side-nav button.active { box-shadow: inset 0 -3px var(--green); }
  .dashboard-main { padding: 0 14px 100px; }
  .dashboard-header { height: 88px; margin-bottom: 20px; }
  .connection-pill { display: none; }
  .server-banner { padding: 25px; min-height: 160px; }
  .server-monogram { width: 55px; height: 55px; }
  .stat-grid, .module-links, .three-fields { grid-template-columns: 1fr; }
  .plugin-catalog { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 10px; }
  .rank-card-preview { min-height: 260px; grid-template-columns: 85px 1fr; gap: 16px; padding: 23px; }
  .rank-card-avatar { width: 80px; height: 80px; border-width: 4px; font-size: 30px; }
  .rank-presence { left: 80px; top: 106px; width: 22px; height: 22px; }
  .rank-card-stats { gap: 9px; }
  .rank-card-stats strong { font-size: 17px; }
  .rank-card-content h3 { font-size: 19px; }
  .rank-card-xp b { display: none; }
  .rank-style-picker { grid-template-columns: 1fr; }
  .rank-discord-gallery { grid-template-columns: 1fr; }
  .rank-discord-banner { grid-column: auto; }
  .plugin-workspace-fields { grid-template-columns: 1fr; }
  .plugin-workspace-fields > label:has(textarea) { grid-column: auto; }
  .content-card { padding: 20px; }
  .card-heading { min-height: 60px; }
  .command-row { grid-template-columns: 1fr 38px; }
  .command-row > input { grid-column: 1 / -1; grid-row: 2; }
  .save-bar { left: 14px; right: 14px; bottom: 10px; }
  .save-bar > span { display: none; }
  .save-bar .button { width: 100%; }
}
