:root {
  color-scheme: dark;
  color: var(--ink);
  background: var(--background);
  font: 16px/1.5 'Segoe UI', 'Helvetica Neue', sans-serif;
  --ink: #ececef;
  --muted: #bfc0c6;
  --dim: #a0a2ac;
  --background: #08080b;
  --surface: #191a1e;
  --glass: #151518a8;
  --line: #c4c8d02b;
  --line-strong: #c4c8d06b;
  --accent: #d7dfe2;
  --accent-strong: #f3f4f5;
  --danger: #ffbfcd;
  --green: #88e1c0;
  --ease: cubic-bezier(.18, .8, .24, 1);
  --control: 11px;
  --panel: 20px;
  --feature: 25px;
  --mono: 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
  --heading: 'Bahnschrift', 'DIN Alternate', 'Segoe UI', sans-serif;
  --gutter: clamp(18px, 3vw, 42px);
  --lain-backdrop: url('/assets/lain-background.jpg');
  --hero-backdrop: url('/assets/wired-crt-hero.jpg');
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--heading); }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -.045em; overflow-wrap: anywhere; }
h2 { font-size: 1.24rem; line-height: 1.22; letter-spacing: -.015em; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: var(--accent-strong); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
button[hidden] { display: none; }
::selection { background: #d7dfe2; color: #15171b; }

.layout { display: grid; grid-template-columns: clamp(190px, 17vw, 238px) minmax(0, 1fr); min-height: 100svh; isolation: isolate; }
.welcome { isolation: isolate; }
.atmosphere { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.atmosphere i, .atmosphere::before, .atmosphere::after { position: absolute; pointer-events: none; }
.atmosphere::before, .atmosphere::after { content: ''; }
.atmosphere::before {
  inset: -5%;
  background: radial-gradient(ellipse at 78% 7%, #24252c94, transparent 58%), radial-gradient(ellipse at 23% 94%, #22252b6d, transparent 56%), var(--background);
  animation: background-drift 17s ease-in-out infinite alternate;
}
.atmosphere::after {
  inset: -28px;
  background-image: linear-gradient(90deg, #d7dfe511 1px, transparent 1px), linear-gradient(#d7dfe511 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 80% 42%, #000 8%, #0005 65%, transparent 90%);
  animation: grid-drift 12s linear infinite;
}
.atmosphere i { inset: 0; }
.atmosphere i:nth-child(1) { background: radial-gradient(ellipse at 57% 62%, #b1b9c21a, transparent 51%); animation: glow-drift 11s ease-in-out infinite alternate; }
.atmosphere i:nth-child(2) { background: radial-gradient(ellipse at 84% 37%, #a2afb319, transparent 48%); animation: glow-drift 15s -7s ease-in-out infinite alternate-reverse; }
.atmosphere i:nth-child(3) { inset: 0 0 auto; height: 26vh; background: linear-gradient(180deg, transparent, #d6dce312 82%, #e1e7ed20 94%, transparent); animation: room-scan 16s 2s ease-in-out infinite; opacity: 0; }
.ambient-network { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .42; }
.skip-link { position: fixed; z-index: 2; inset: 12px auto auto 12px; translate: 0 -180%; padding: 8px 13px; border-radius: var(--control); background: var(--surface); }
.skip-link:focus { translate: none; }

.sidebar {
  position: sticky; top: 0; align-self: start; height: 100dvh; min-width: 0;
  display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin;
  padding: 21px 15px 16px; border-right: 1px solid var(--line);
  background: radial-gradient(ellipse at 28% 0%, #282a2ec2, transparent 48%), linear-gradient(154deg, #17181b, #0e0f12 73%, #16171b);
  box-shadow: 12px 0 52px #03030665;
}
.brand { display: inline-flex; align-items: center; align-self: start; gap: 11px; padding: 4px; border-radius: var(--control); color: var(--ink); text-decoration: none; font: 760 1.24rem/1 var(--heading); letter-spacing: .06em; }
.brand-heart { color: var(--accent-strong); font-family: var(--mono); font-size: .85em; }
.brand-image { display: grid; border-radius: 14px; padding: 2px; background: linear-gradient(145deg, #cdd2d4, #414548 54%, #a0a6a9); filter: grayscale(1); animation: portrait-glow 5s ease-in-out infinite alternate; }
.brand-mark { display: block; border-radius: 12px; object-fit: cover; transition: filter 230ms, transform 360ms var(--ease); }
.brand:hover .brand-mark { transform: scale(.91); filter: brightness(1.25); }
.brand-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.sidebar-server { display: flex; align-items: center; gap: 9px; min-width: 0; margin: 24px 0 13px; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(130deg, #3133388a, #14151980); }
.sidebar-server strong { font-size: .875rem; font-weight: 650; overflow-wrap: anywhere; }
.server-icon { flex: none; display: inline-grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: #3638408c; color: var(--accent); object-fit: cover; font: 700 .8rem/1 var(--mono); }
.tabs, .server-list { display: grid; gap: 4px; }
.tabs a, .server-item {
  position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 42px; padding: 8px 11px;
  border: 1px solid transparent; border-radius: var(--control); color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 640;
  transition: color 190ms, border-color 190ms, background-color 190ms, translate 280ms var(--ease);
}
.tabs a .glyph { color: var(--accent); }
.tabs a:hover, .server-item:hover { color: var(--ink); background: #cad0d013; border-color: var(--line); translate: 2px 0; }
.tabs a[aria-current='page'] { color: var(--ink); border-color: #d2d7df4f; background: linear-gradient(105deg, #44474ea3, #2a2c328a); box-shadow: inset 0 1px #e2e7ee1c, 0 5px 16px #03030665; }
.tabs a[aria-current='page']::after { content: ''; position: absolute; inset: 9px auto 9px 0; width: 2px; border-radius: 4px; background: #e5ecee; box-shadow: 0 0 12px #e5ecee78; animation: tab-light 480ms var(--ease) both; }
.server-list { margin: 19px 0 4px; }
.server-list h2 { color: var(--dim); margin: 0 8px 3px; font: 650 .83rem/1.4 'Segoe UI', sans-serif; }
.server-item { padding-block: 6px; }
.server-item span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-footer { display: grid; gap: 15px; margin-top: auto; padding-top: 16px; }
.sidebar-traces { position: relative; height: clamp(32px, 9vh, 80px); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, transparent, #3a3f4959), repeating-linear-gradient(0deg, #e0e6ee17 0 1px, transparent 1px 13px), repeating-linear-gradient(90deg, #e0e6ee17 0 1px, transparent 1px 13px); mask-image: linear-gradient(transparent 1%, #000 77%); }
.sidebar-traces i { position: absolute; bottom: 18%; width: 30%; height: 54%; border: solid #c1c8d178; border-width: 0 0 1px 1px; transform: skewX(-32deg); }
.sidebar-traces i::after { content: ''; position: absolute; bottom: -3px; left: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: circuit-glow 4s ease-in-out infinite alternate; }
.sidebar-traces i:nth-child(1) { left: 16%; }
.sidebar-traces i:nth-child(2) { left: 39%; height: 40%; bottom: 29%; }
.sidebar-traces i:nth-child(3) { left: 60%; height: 28%; bottom: 40%; }
.sidebar-traces i:nth-child(2)::after { animation-delay: -1.7s; }
.sidebar-traces i:nth-child(3)::after { animation-delay: -3.2s; }
.account { display: flex; align-items: center; gap: 7px 12px; justify-content: space-between; padding: 10px 3px 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.account span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account form { flex: none; }
.signout { padding: 5px 0; border: 0; background: none; color: var(--accent); }
.signout:hover { text-decoration: underline; }

.workspace { min-width: 0; }
.topbar { min-height: 65px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px 15px; padding: 10px var(--gutter); border-bottom: 1px solid var(--line); background: linear-gradient(110deg, #111216e6, #191a1dbf); }
.breadcrumb, .topbar-tools, .display-controls { display: flex; align-items: center; gap: 10px; }
.breadcrumb { min-width: 0; font-size: .875rem; color: var(--dim); }
.breadcrumb a, .breadcrumb [aria-current] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 650; }
.topbar-tools { flex-wrap: wrap; gap: 12px; }
.online { display: inline-flex; align-items: center; gap: 7px; font-size: .875rem; color: #bfeddd; white-space: nowrap; }
.online i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px #88e1c07c; animation: online-pulse 3s ease-out infinite; }
.system-clock { color: var(--dim); font: .78rem/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.display-controls { gap: 6px; }
.display-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 35px; gap: 5px; padding: 4px 8px; background: #222428; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: .81rem; white-space: nowrap; transition: color 180ms, border-color 200ms, background-color 200ms, transform 240ms var(--ease); }
.display-toggle:hover, .display-toggle[aria-pressed='true'] { color: var(--accent-strong); background: #42454a9c; border-color: var(--line-strong); }
.display-toggle:disabled { cursor: default; opacity: .65; }
.display-toggle .glyph { scale: .83; }
.display-toggle[aria-pressed='true'] .glyph--voice i { animation: equalizer 780ms ease-in-out infinite alternate; }
.display-toggle[aria-pressed='true'] .glyph--voice i:nth-child(2) { animation-delay: -230ms; }
.display-toggle[aria-pressed='true'] .glyph--voice i:nth-child(3) { animation-delay: -550ms; }
.motion-toggle[aria-pressed='true'] .glyph { animation: signal-rock 3s ease-in-out infinite; }

.glyph { position: relative; flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; }
.glyph i { position: absolute; display: block; }
.glyph--overview { grid-template: repeat(2, 5px) / repeat(2, 5px); gap: 2px; place-content: center; }
.glyph--overview::after, .glyph--overview i { position: static; content: ''; width: 5px; height: 5px; border: 1px solid currentColor; border-radius: 1px; }
.glyph--moderation i { top: 4px; width: 13px; height: 2px; border-radius: 2px; background: currentColor; }
.glyph--moderation i:nth-child(2) { top: 8px; }
.glyph--moderation i:nth-child(3) { top: 12px; width: 8px; left: 2.5px; opacity: .7; }
.glyph--appeals i:first-child { inset: 3px 1px; border: 1px solid currentColor; border-radius: 3px; }
.glyph--appeals i:nth-child(2), .glyph--appeals i:nth-child(3) { top: 7px; left: 3px; width: 7px; height: 1px; background: currentColor; transform: rotate(34deg); }
.glyph--appeals i:nth-child(3) { left: 8px; transform: rotate(-34deg); }
.glyph--moderation-filters i { top: 4px; left: 2px; width: 12px; height: 1px; background: currentColor; }
.glyph--moderation-filters i:nth-child(2) { top: 8px; left: 4px; width: 8px; }
.glyph--moderation-filters i:nth-child(3) { top: 12px; left: 6px; width: 4px; }
.glyph--voice i { width: 2px; background: currentColor; border-radius: 3px; height: 7px; left: 4px; }
.glyph--voice i:nth-child(2) { height: 14px; left: 8px; }
.glyph--voice i:nth-child(3) { height: 10px; left: 12px; }
.glyph--levels i { bottom: 3px; left: 3px; height: 4px; width: 3px; background: currentColor; border-radius: 1px; }
.glyph--levels i:nth-child(2) { left: 8px; height: 8px; }
.glyph--levels i:nth-child(3) { left: 13px; height: 12px; }
.glyph--card-collection i { width: 9px; height: 12px; border: 1px solid currentColor; border-radius: 2px; }
.glyph--card-collection i:first-child { transform: translateX(-3px) rotate(-14deg); opacity: .65; }
.glyph--card-collection i:nth-child(2) { transform: translateX(3px) rotate(14deg); background: var(--surface); }
.glyph--card-collection i:nth-child(3) { width: 3px; height: 3px; border-radius: 0; transform: translateX(3px) rotate(45deg); }
.glyph--channels i:nth-child(-n+2) { width: 2px; height: 13px; background: currentColor; border-radius: 2px; transform: skewX(-11deg); left: 6px; }
.glyph--channels i:nth-child(2) { left: 10px; }
.glyph--channels i:nth-child(3) { width: 13px; height: 2px; background: currentColor; border-radius: 2px; box-shadow: 0 4px currentColor; transform: translateY(-2px); }
.glyph--permissions i { width: 14px; height: 1px; left: 2px; background: currentColor; top: 5px; }
.glyph--permissions i:nth-child(2) { top: 9px; }
.glyph--permissions i:nth-child(3) { top: 13px; }
.glyph--permissions i::after { content: ''; position: absolute; left: 4px; top: -1px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.glyph--permissions i:nth-child(2)::after { left: 9px; }
.glyph--aliases i:nth-child(-n+2) { width: 10px; height: 6px; border: 1px solid currentColor; border-radius: 4px; transform: rotate(-37deg); translate: 3px -2px; }
.glyph--aliases i:nth-child(2) { translate: -3px 2px; }
.glyph--custom-commands i:nth-child(-n+2) { width: 6px; height: 6px; top: 6px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(45deg); }
.glyph--custom-commands i:first-child { left: 2px; }
.glyph--custom-commands i:nth-child(2) { right: 2px; transform: rotate(225deg); }
.glyph--custom-commands i:nth-child(3) { top: 4px; left: 8px; width: 1.5px; height: 10px; background: currentColor; transform: rotate(17deg); }
.glyph--autoresponders i:first-child { inset: 3px 1px 5px; border: 1px solid currentColor; border-radius: 3px; }
.glyph--autoresponders i:nth-child(2) { bottom: 2px; left: 5px; height: 4px; border-left: 1px solid currentColor; transform: skewY(-35deg); }
.glyph--autoresponders i:nth-child(3) { inset: 6px 5px auto; height: 1px; background: currentColor; box-shadow: 0 3px currentColor; }
.glyph--autoreactions i:first-child { width: 12px; height: 12px; border: 1px solid currentColor; border-radius: 50%; }
.glyph--autoreactions i:nth-child(2) { top: 7px; left: 6px; width: 1px; height: 1px; background: currentColor; box-shadow: 5px 0 currentColor; }
.glyph--autoreactions i:nth-child(3) { top: 9px; width: 6px; height: 3px; border-bottom: 1px solid currentColor; border-radius: 50%; }
.glyph--embeds i:first-child { inset: 3px 1px; border: 1px solid currentColor; border-inline-start-width: 3px; border-radius: 3px; }
.glyph--embeds i:nth-child(2), .glyph--embeds i:nth-child(3) { top: 7px; left: 7px; width: 6px; height: 1px; background: currentColor; }
.glyph--embeds i:nth-child(3) { top: 10px; width: 4px; opacity: .7; }
.glyph--owner-tools i:first-child { inset: 7px 3px 2px; border: 1px solid currentColor; border-radius: 2px; }
.glyph--owner-tools i:nth-child(2) { inset: 2px 6px auto; height: 6px; border: 1px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; }
.glyph--owner-tools i:nth-child(3) { top: 10px; left: 8px; width: 2px; height: 3px; background: currentColor; }
.glyph--motion { transform: rotate(-23deg); }
.glyph--motion i { width: 13px; height: 1px; background: currentColor; top: 5px; left: 2px; }
.glyph--motion i:nth-child(2) { width: 10px; top: 9px; left: 5px; }
.glyph--motion i:nth-child(3) { width: 7px; top: 13px; left: 8px; }

.main { width: min(100%, 1410px); min-width: 0; margin-inline: auto; padding: 22px var(--gutter) 48px; }
.main:focus { outline: none; }
.overview-hero, .page-heading { position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--feature); background: var(--surface); box-shadow: inset 0 1px #dce0e626, 0 22px 55px #0303068c; }
.overview-hero { min-height: clamp(305px, 29vw, 397px); display: flex; align-items: end; padding: clamp(28px, 4.4vw, 59px); }
.hero-art { position: absolute; z-index: -4; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); object-fit: cover; object-position: 72% 46%; filter: grayscale(.9) contrast(1.06) brightness(.88); translate: var(--hero-x, 0px) var(--hero-y, 0px); animation: art-drift 17s ease-in-out infinite alternate; transition: translate 480ms var(--ease); }
.overview-hero::before, .overview-hero::after, .hero-frame, .hero-network { position: absolute; inset: 0; pointer-events: none; }
.overview-hero::before { z-index: -3; content: ''; background: linear-gradient(90deg, #08080bf5 0%, #0b0c10a1 31%, transparent 74%), linear-gradient(0deg, #08080be0, transparent 57%), repeating-linear-gradient(0deg, #05050630 0 1px, transparent 1px 4px); }
.overview-hero::after { z-index: -2; content: ''; background: linear-gradient(180deg, transparent 5%, #e3e6f113 76%, #dce2ed28 99%, transparent); height: 27%; opacity: 0; animation: crt-pass 14s 1.2s ease-in-out infinite; mix-blend-mode: screen; }
.hero-network { width: 100%; height: 100%; z-index: -1; }
.hero-frame { inset: 14px; border: 1px solid #dce1e32b; border-radius: 15px; z-index: -1; mask-image: linear-gradient(#000 0%, #0005 48%, #000 100%); }
.hero-frame i { position: absolute; width: 18px; height: 18px; border: solid #dce1e3a3; }
.hero-frame i:nth-child(1) { inset: -1px auto auto -1px; border-width: 1px 0 0 1px; border-radius: 5px 0; }
.hero-frame i:nth-child(2) { inset: -1px -1px auto auto; border-width: 1px 1px 0 0; border-radius: 0 5px; }
.hero-frame i:nth-child(3) { inset: auto -1px -1px auto; border-width: 0 1px 1px 0; border-radius: 5px 0; }
.hero-frame i:nth-child(4) { inset: auto auto -1px -1px; border-width: 0 0 1px 1px; border-radius: 0 5px; }
.hero-copy { max-width: min(66%, 700px); text-shadow: 0 3px 21px #050507; }
.overview-hero p { margin-bottom: 11px; color: var(--accent); font: 650 .82rem/1.3 var(--mono); letter-spacing: .125em; text-transform: uppercase; }
.overview-hero h1 { font-size: clamp(2.6rem, 5.45vw, 5.35rem); line-height: .98; letter-spacing: -.059em; }
.hero-copy > * { animation: text-lock 720ms var(--ease) backwards; }
.hero-copy h1 { animation-delay: 120ms; }
.page-heading { display: grid; align-content: center; padding: clamp(22px, 3vw, 41px); min-height: 150px; background: linear-gradient(102deg, #24262be8, #191a1ed4); }
.page-heading::before, .page-heading::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.page-heading::before { inset-inline-start: 39%; background: linear-gradient(90deg, #191a1efa 1%, #13141869 65%), var(--lain-backdrop) right 44% / cover; filter: grayscale(1) brightness(.86); mask-image: linear-gradient(90deg, transparent, #000 49%); animation: art-drift 17s ease-in-out infinite alternate; }
.page-heading::after { background: repeating-linear-gradient(0deg, #08080b1a 0 1px, transparent 1px 4px); box-shadow: inset 0 1px #e1e6ed22; }
.page-heading p { max-width: 55ch; margin-top: 9px; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); gap: 14px; margin-top: 16px; }
.tile {
  --tone: var(--accent);
  position: relative; isolation: isolate; display: grid; grid-template: 'mark label' 'mark value' / auto minmax(0, 1fr);
  gap: 4px 12px; align-items: center; min-height: 98px; min-width: 0; padding: 15px;
  border: 1px solid var(--line); border-radius: var(--panel); background: linear-gradient(145deg, #33353bb8, #17181cdf 86%);
  box-shadow: inset 0 1px #e4e8ed1e, 0 8px 22px #03030661; color: var(--ink); text-decoration: none;
  transition: translate 350ms var(--ease), border-color 250ms, box-shadow 280ms;
}
.tile--moderation { --tone: #e2dfe5; }
.tile--channels { --tone: #cbd6da; }
.tile::before { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at var(--glow-x, 40%) var(--glow-y, 40%), color-mix(in srgb, var(--tone) 25%, transparent), transparent 72%); opacity: 0; transition: opacity 310ms; }
.tile:hover, .tile:focus-visible { color: var(--ink); border-color: color-mix(in srgb, var(--tone) 54%, transparent); box-shadow: 0 12px 25px #0303069a, inset 0 1px #e4e8ed28; translate: 0 -3px; }
.tile:hover::before, .tile:focus-visible::before { opacity: 1; }
.tile-label { grid-area: label; align-self: end; color: var(--muted); font-size: .875rem; font-weight: 650; }
.tile strong { grid-area: value; align-self: start; color: var(--tone); font: 700 clamp(1.24rem, 2.1vw, 1.7rem)/1.12 var(--heading); letter-spacing: -.022em; overflow-wrap: anywhere; }
.tile-mark { grid-area: mark; display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; color: var(--tone); border: 1px solid color-mix(in srgb, var(--tone) 29%, transparent); background: color-mix(in srgb, var(--tone) 10%, var(--surface)); transition: transform 360ms var(--ease), box-shadow 260ms; }
.tile:hover .tile-mark { transform: scale(1.09) rotate(-5deg); box-shadow: 0 0 17px color-mix(in srgb, var(--tone) 24%, transparent); }

.overview-grid { display: grid; align-items: start; gap: 14px; margin-top: 15px; }
.overview-grid--split { grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr); }
.panel { min-width: 0; margin-top: 17px; padding: clamp(17px, 2.25vw, 25px); border: 1px solid var(--line); border-radius: var(--panel); background: linear-gradient(146deg, #2e3036c9, var(--glass) 77%); box-shadow: inset 0 1px #e5e9ee1c, 0 12px 30px #03030664; }
.panel p { margin-top: 7px; color: var(--muted); }
.overview-grid .panel { margin: 0; }
.overview-grid header { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.overview-grid header a { font-size: .875rem; font-weight: 640; text-decoration: none; }
.overview-grid header a:hover { text-decoration: underline; }
.panel-empty { padding: 12px 0 4px; }
.case-timeline, .overview-settings ul, .alias-list { margin: 13px 0 0; padding: 0; list-style: none; }
.case-timeline li { position: relative; display: flex; align-items: start; justify-content: space-between; gap: 6px 12px; padding: 10px 0 10px 17px; border-top: 1px solid var(--line); }
.case-timeline li::before { content: ''; position: absolute; left: 2px; top: 19px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px #e3e7ed5c; }
.case-timeline li:first-child::before { animation: circuit-glow 3.4s ease-in-out infinite alternate; }
.recent-case-main { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 7px; }
.recent-case-number { font: .79rem/1.7 var(--mono); color: var(--dim); }
.recent-case-status { font-size: .79rem; color: #f8c8ad; }
.recent-case-reason { flex: 1 1 100%; font-size: .875rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.case-timeline .recent-case-reason { margin: 2px 0 0; }
.case-timeline time { flex: none; padding-top: 3px; color: var(--dim); font: .76rem/1.4 var(--mono); }
.overview-settings li + li { border-top: 1px solid var(--line); }
.overview-settings li a { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 11px 0; text-decoration: none; font-size: .875rem; color: var(--ink); transition: translate 280ms var(--ease), color 180ms; }
.overview-settings li a:hover { translate: 3px 0; color: var(--accent); }
.overview-settings .glyph { color: var(--accent); }
.overview-settings li a > span:last-child { color: var(--muted); text-align: right; min-width: 0; overflow-wrap: anywhere; }

.settings-form, .filter, .filter-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 11px; }
.settings-form { margin-top: 17px; }
label { display: grid; gap: 6px; min-width: 0; font-weight: 650; color: var(--ink); font-size: .875rem; }
.settings-form label { flex: 1 1 190px; width: min(100%, 340px); max-width: 340px; }
input:is([type='text'], [type='number']), select, textarea { width: 100%; min-width: 0; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--control); background-color: #0d0e11e3; transition: border-color 240ms, box-shadow 240ms; }
input:is([type='text'], [type='number']), select { height: 43px; }
input:is([type='text'], [type='number']):hover, select:hover, textarea:hover { border-color: #c5ccd2ab; }
input:is([type='text'], [type='number']):focus, select:focus, textarea:focus { box-shadow: 0 0 18px #bec8d34d; }
textarea { min-height: 112px; resize: vertical; font-weight: 400; }
select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 15px) center, calc(100% - 10px) center; background-size: 5px 5px; background-repeat: no-repeat; }
.button {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  min-height: 43px; padding: 8px 15px; border: 1px solid #f1f4f4; border-radius: var(--control);
  background: linear-gradient(135deg, #f8f9f9, #d3d9dc); box-shadow: 0 5px 16px #08090c60, inset 0 1px #fff;
  color: #181c1e; font-size: .875rem; font-weight: 750; white-space: nowrap; text-decoration: none;
  transition: translate 280ms var(--ease), transform 260ms var(--ease), box-shadow 240ms, color 180ms, border-color 180ms;
}
.button::after { content: ''; z-index: -1; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 25%, #fff8 50%, transparent 75%); transform: translateX(-105%); transition: transform 680ms var(--ease); }
.button:hover { color: #0b0d0e; translate: 0 -2px; box-shadow: 0 7px 23px #eef3f232; }
.button:hover::after { transform: translateX(105%); }
.button.secondary { background: #262a2bd9; color: var(--accent); border-color: var(--line-strong); box-shadow: none; }
.button.secondary:hover { color: var(--accent-strong); border-color: #dbe4e393; }
.button.secondary::after { opacity: .33; }
.activating, .button:active, .display-toggle:active { transform: scale(.96); }

.destination-group { border: 0; padding: 0; margin: 0 0 21px; min-inline-size: 0; }
.destination-group + .destination-group { border-top: 1px solid var(--line); padding-top: 8px; }
.destination-group legend { padding: 0 10px 0 0; margin-bottom: 8px; font-family: var(--heading); font-weight: 650; }
.destination-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: 12px; }
.destination-group .notice { margin: 0 0 12px; }
.alias-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.alias-list code, .permission-switch code { font-family: var(--mono); }
.alias-list code:first-child { color: var(--accent); }
.custom-command-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.custom-command-form { display: grid; gap: 14px; margin-top: 17px; }
.custom-command-form input { font-family: var(--mono); }
.custom-command-form input[readonly] { color: var(--muted); }
.checkbox-label { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.checkbox-label input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.moderation-filter-form .panel { display: grid; gap: 11px; }
.moderation-filter-form .panel p { margin: 0; }
.filter-number-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.filter-number-grid input { font-family: var(--mono); }
.level-settings-form .filter-number-grid { margin-top: 14px; }
.filter-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 17px; }
.filter-form-actions p { flex: 1 1 280px; color: var(--muted); }
.custom-command-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.custom-command-actions .custom-command-remove { margin-inline-start: auto; color: var(--danger); }
.custom-command-list { margin: 12px 0 0; padding: 0; list-style: none; }
.custom-command-list li + li { margin-top: 6px; }
.custom-command-list a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--control); background: #101114b8;
  color: var(--ink); text-decoration: none; transition: border-color 180ms, background-color 180ms;
}
.custom-command-list a:is(:hover, [aria-current]) { border-color: var(--line-strong); background: #33363bd9; }
.custom-command-list code { grid-area: 1 / 1; color: var(--accent-strong); font-family: var(--mono); overflow-wrap: anywhere; }
.custom-command-preview { grid-area: 2 / 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: .875rem; }
.custom-command-edit { grid-area: 1 / 2 / 3; color: var(--accent); font-size: .875rem; }
@media (max-width: 800px) {
  .custom-command-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
.permission-picker .settings-form { margin: 0 0 12px; }
.permission-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.permission-heading h2 { overflow-wrap: anywhere; }
.permission-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.permission-group { min-width: 0; margin: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 15px; background: #1011149a; }
.permission-group:last-child { grid-column: 2; grid-row: 1 / span 2; }
.permission-group legend { padding-inline: 6px; color: var(--accent); font-weight: 650; font-size: .9rem; }
.permission-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 42px; padding: 5px 3px; cursor: pointer; transition: color 200ms, background-color 200ms; }
.permission-switch:hover, .permission-switch:focus-within { color: var(--accent-strong); background: #d2d9de14; }
.permission-switch + .permission-switch { border-top: 1px solid var(--line); }
.permission-switch input { position: absolute; inset-inline-end: 3px; width: 39px; height: 22px; opacity: 0; }
.permission-switch span { display: inline-flex; flex: none; align-items: center; width: 39px; height: 22px; padding: 2px; border: 1px solid #80868c; border-radius: 99px; background: #202226; transition: background-color 260ms, border-color 260ms, box-shadow 260ms; }
.permission-switch span::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: #c0c5ca; transition: transform 390ms cubic-bezier(.26, 1.45, .42, 1), background-color 240ms; }
.permission-switch input:checked + span { background: #d0d6d9; border-color: #e6ebed; box-shadow: 0 0 14px #d5dde43a; }
.permission-switch input:checked + span::after { background: #262a2c; transform: translateX(19px); }
.permission-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.channel-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 10px; margin: 15px 0; }
.channel-status > div { padding: 10px 12px; background: #101114b5; border: 1px solid var(--line); border-radius: var(--control); }
.channel-status dt { color: var(--muted); font-size: .875rem; }
.channel-status dd { margin: 3px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.case-heading, .pager { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.filter input { width: min(100%, 210px); }
.filter-actions { align-items: center; }
.filter-actions a { font-size: .875rem; }
.table-scroll { margin-top: 15px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--control); }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); font-size: .875rem; vertical-align: top; }
th { background: #34363c; color: var(--ink); white-space: nowrap; font-size: .82rem; }
tbody tr { transition: background-color 180ms; }
tbody tr:hover { background: #cad0d019; }
tbody tr:last-child td { border-bottom: 0; }
td small { display: block; color: var(--muted); margin-top: 4px; font-size: .8rem; }
.account-id { font-family: var(--mono); white-space: nowrap; }
.reason { min-width: 133px; max-width: 640px; overflow-wrap: anywhere; white-space: pre-wrap; }
.action { display: inline-block; padding: 2px 7px; border-radius: 5px; background: #3b3e45b5; color: var(--ink); font-size: .81rem; font-weight: 650; }
.action.ban, .action.jail { background: #502741; color: #ffc0da; }
.action.warn { background: #473521; color: #f6d49e; }
.action.mute, .action.imute, .action.smute, .action.lainlock, .action.puppylock { background: #22384a; color: #bbe4f1; }
.action.unban, .action.unmute, .action.unjail, .action.iunmute, .action.sunmute, .action.lainunlock, .action.puppyunlock { background: #1d393a; color: #b5eadc; }
.empty { padding-top: 12px; }
.pager { margin-top: 15px; align-items: center; font-size: .875rem; }
.pager > div { display: flex; gap: 8px; }
.notice, .panel .notice { padding: 10px 13px; border: 1px solid #83d6b45c; border-radius: var(--control); background: #153129e6; color: #bdecd9; white-space: pre-line; }
.notice.error, .panel .notice.error { border-color: #f49fbc60; background: #3d2132; color: #ffd0e0; }
.main > .notice { margin: 0 0 14px; }
.panel .notice { margin-top: 13px; }
.notice a { margin-inline-start: 7px; }

.embed-composer { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: clamp(12px, 2vw, 24px); }
.embed-composer [hidden] { display: none; }
.embed-form { display: grid; gap: 16px; margin-top: 17px; }
.embed-form textarea { min-height: 0; }
.embed-form-row { display: grid; grid-template-columns: minmax(0, 1fr) 65px; gap: 12px; }
.embed-form input[type='color'] { width: 100%; height: 43px; padding: 5px; border: 1px solid var(--line-strong); border-radius: var(--control); background: #0d0e11e3; cursor: pointer; }
.embed-form input[type='url'] { width: 100%; min-width: 0; min-height: 43px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--control); background: #0d0e11e3; }
.embed-form-actions, .embed-field-actions { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.embed-form-actions output { align-self: center; color: var(--muted); font: .78rem var(--mono); }
.embed-form-actions output.is-over-limit { color: var(--danger); }
.embed-form .button:disabled { opacity: .48; cursor: default; }
.embed-form [data-embed-fields] { display: grid; gap: 12px; }
.embed-form [data-embed-fields]:empty { display: none; }
.embed-field { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 11px; border: 1px solid var(--line); border-radius: var(--control); }
.embed-field legend { padding-inline: 5px; color: var(--muted); font-size: .82rem; }
.embed-field-actions label, .embed-destination label { flex: 1 1 140px; }
.embed-media { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--control); }
.embed-media summary { padding: 2px 0; font-size: .875rem; font-weight: 650; cursor: pointer; }
.embed-media > div { display: grid; gap: 10px; margin-top: 12px; }
.embed-destination { padding-top: 15px; border-top: 1px solid var(--line); }

.embed-preview-panel { position: sticky; top: 16px; max-height: calc(100svh - 32px); overflow: auto; }
.embed-preview-panel .embed-preview-channel { margin-bottom: 14px; color: var(--dim); font: .78rem/1.5 var(--mono); }
.embed-preview-panel .embed-preview-empty { padding: 18px 14px; border: 1px dashed var(--line-strong); border-radius: var(--control); }
.embed-preview { --embed-accent: #a5adbf; min-height: 50px; padding: 14px 15px; border: 1px solid var(--line); border-inline-start: 4px solid var(--embed-accent); border-radius: 12px; background: #131416; line-height: 1.45; overflow-wrap: anywhere; }
.embed-preview-copy { display: flow-root; white-space: pre-wrap; }
.embed-preview-title { color: var(--ink); font-weight: 700; }
.embed-preview-description { margin-top: 4px; color: var(--muted); font-size: .9375rem; }
.embed-preview .embed-preview-link { color: #9bc9f4; text-decoration: underline; text-underline-offset: .14em; }
.embed-preview code { padding: .05em .25em; border-radius: 4px; background: #27292c; font: .85em var(--mono); }
.embed-preview-heading { font-size: 1.15em; }
.embed-preview-quote { border-inline-start: 2px solid var(--line-strong); padding-inline-start: .6em; }
.embed-preview-spoiler { padding-inline: .2em; border-radius: 4px; background: #46484e; color: #fff; }
.embed-preview-thumb { float: right; width: min(22%, 82px); max-height: 82px; margin: 0 0 7px 12px; border-radius: 7px; object-fit: contain; }
.embed-preview-image { display: block; clear: both; max-width: 100%; max-height: 320px; margin-top: 12px; border-radius: 8px; object-fit: contain; }
.embed-preview-fields { display: flex; flex-wrap: wrap; clear: both; gap: 10px 14px; margin-top: 12px; font-size: .9rem; white-space: pre-wrap; }
.embed-preview-fields > div { flex: 1 1 100%; min-width: 0; }
.embed-preview-fields > .is-inline { flex-basis: 28%; }
.embed-preview-fields > div > div { color: var(--muted); }
.embed-preview footer { clear: both; margin-top: 12px; color: var(--dim); font-size: .78rem; }
@media (max-width: 950px) {
  .embed-composer { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .embed-preview-panel { position: static; max-height: none; }
}
#log-channel, #cases { scroll-margin-top: 15px; }

.welcome { min-height: 100svh; display: grid; align-items: center; padding: clamp(20px, 7.2vw, 108px); }
.welcome::before, .welcome::after { content: ''; position: fixed; z-index: -1; pointer-events: none; }
.welcome::before { inset: -12px; background: linear-gradient(90deg, #08080bf5 2%, #0d0e1133 55%, #08080b4f), var(--hero-backdrop) 70% center / cover var(--background); filter: grayscale(.9) contrast(1.06) brightness(.91); animation: art-drift 19s ease-in-out infinite alternate; }
.welcome::after { inset: 0; background: linear-gradient(0deg, #08080bad, transparent 36%), repeating-linear-gradient(0deg, #05050728 0 1px, transparent 1px 4px); }
.welcome-wires { position: fixed; z-index: -1; pointer-events: none; inset: 8% 7%; border: 1px solid #d7dce238; border-radius: var(--feature); box-shadow: inset 0 0 52px #d7dce21c; mask-image: linear-gradient(145deg, transparent 14%, #000 63%, #0006); animation: circuit-glow 6s ease-in-out infinite alternate; }
.welcome-card { width: min(100%, 500px); padding: clamp(24px, 4vw, 49px); border: 1px solid var(--line-strong); border-radius: var(--feature); background: linear-gradient(150deg, #3a3d42b0, #17181ced 70%); box-shadow: inset 0 1px #e6ecf02b, 0 24px 96px #030306bc; backdrop-filter: blur(13px); }
.welcome-card .brand-header { margin-bottom: 27px; }
.welcome-card h1 { font-size: clamp(2.2rem, 4.3vw, 3.4rem); }
.welcome-card p { margin: 12px 0 22px; }
.welcome-card p:not(.notice) { color: var(--muted); }

.appeals-portal { position: relative; isolation: isolate; min-height: 100vh; }
.appeals-topbar, .appeals-content { width: min(calc(100% - 32px), 790px); margin-inline: auto; }
.appeals-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.appeals-topbar > a:not(.brand) { color: var(--accent); }
.appeals-content { display: grid; gap: 16px; padding-block: clamp(24px, 6vw, 56px); }
.appeals-content .page-heading { margin: 0; }
.appeals-form-panel p { max-width: 60ch; }
.appeals-form-panel #appeal-server-help { margin: -4px 0 0; font-size: .875rem; }
.appeal-link { margin-top: 16px; }
.appeal-link input, .appeal-meta { font-family: var(--mono); }
.appeal-records { display: grid; gap: 12px; margin-top: 14px; }
.appeal-record { min-width: 0; padding: clamp(12px, 2.4vw, 20px); border: 1px solid var(--line); border-radius: var(--control); background: #101114b8; }
.appeal-record-header { display: flex; justify-content: space-between; align-items: start; gap: 8px; flex-wrap: wrap; }
.appeal-record h3, .appeal-record code { overflow-wrap: anywhere; }
.appeal-meta { color: var(--muted); font-size: .875rem; }
.appeal-status { display: inline-block; padding: 3px 8px; border-radius: 5px; color: #d1d8e0; background: #272c36; font-size: .875rem; }
.appeal-status--approved { color: #b5eadc; background: #1d393a; }
.appeal-status--denied { color: #ffc0da; background: #502741; }
.appeal-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.appeal-reply { margin-top: 14px; padding: 9px 12px; border-left: 2px solid var(--line-strong); }
.appeal-record .custom-command-form textarea { min-height: 58px; }

.hero-copy, .main > :is(.page-heading, .panel, .notice), .tile, .overview-grid > .panel, .welcome-card { animation: arrive 650ms var(--ease) backwards; }
.main > .panel, .main > .page-heading { animation-delay: 45ms; }
.main > .panel:last-child { animation-delay: 140ms; }
.tile:nth-child(1) { animation-delay: 90ms; }
.tile:nth-child(2) { animation-delay: 151ms; }
.tile:nth-child(3) { animation-delay: 205ms; }
.overview-grid > .panel { animation-delay: 209ms; }
.overview-grid > .panel:nth-child(2) { animation-delay: 262ms; }
.permission-group { animation: arrive 520ms 135ms var(--ease) backwards; }
.permission-group:nth-child(2) { animation-delay: 190ms; }
.permission-group:nth-child(3) { animation-delay: 234ms; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  html:not([data-motion='off']) { scroll-behavior: smooth; }
  html:not([data-motion='off']) .main { view-transition-name: dashboard-content; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  ::view-transition-old(root) { opacity: 0; }
  ::view-transition-old(dashboard-content) { animation: page-out 165ms ease both; }
  ::view-transition-new(dashboard-content) { animation: arrive 380ms var(--ease) both; }
  :active-view-transition .main > *, :active-view-transition .tile, :active-view-transition .overview-grid > .panel { animation: none; }
}
@keyframes arrive { from { opacity: 0; transform: translateY(12px) scale(.987); } to { opacity: 1; transform: none; } }
@keyframes text-lock { from { opacity: 0; translate: -8px 0; filter: blur(3px); } to { opacity: 1; translate: none; filter: none; } }
@keyframes page-out { to { opacity: 0; transform: translateY(-7px); } }
@keyframes art-drift { from { transform: scale(1.015); } to { transform: translate(-.75%, -.4%) scale(1.068); } }
@keyframes background-drift { from { transform: scale(1); } to { transform: translate(-2%, 2%) scale(1.07); } }
@keyframes grid-drift { to { transform: translate(28px, 28px); } }
@keyframes glow-drift { from { transform: translate(-10%, 8%) scale(1.06); opacity: .36; } to { transform: translate(9%, -7%) scale(1.28); opacity: 1; } }
@keyframes room-scan { 0%, 13% { opacity: 0; transform: translateY(-100%); } 33% { opacity: 1; } 77%, 100% { opacity: 0; transform: translateY(387%); } }
@keyframes crt-pass { 0%, 17% { opacity: 0; transform: translateY(-100%); } 28% { opacity: .6; } 65% { opacity: .32; } 80%, 100% { opacity: 0; transform: translateY(340%); } }
@keyframes portrait-glow { from { box-shadow: 0 0 12px #dfe5ec25; } to { box-shadow: 0 0 19px #dfe5ec59; } }
@keyframes circuit-glow { from { opacity: .33; } to { opacity: 1; } }
@keyframes tab-light { from { opacity: .2; transform: scaleY(.25); } to { opacity: 1; transform: scaleY(1); } }
@keyframes online-pulse { 0% { box-shadow: 0 0 0 0 #88e1c079; } 70%, 100% { box-shadow: 0 0 0 6px #88e1c000; } }
@keyframes equalizer { from { transform: scaleY(.5); } to { transform: scaleY(1); } }
@keyframes signal-rock { 0%, 100% { transform: rotate(-23deg); } 50% { transform: rotate(-15deg) translateX(2px); } }

@media (max-width: 1050px) {
  .system-clock { display: none; }
  .case-timeline li { flex-wrap: wrap; }
  .case-timeline time { padding-top: 0; }
  .overview-settings li a { grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; }
  .overview-settings li a > span:last-child { grid-column: 2; text-align: left; }
}
@media (max-width: 800px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; padding: 11px var(--gutter); border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
  .sidebar-server, .sidebar-traces { display: none; }
  .sidebar .brand { grid-column: 1; }
  .sidebar-footer { grid-column: 2; grid-row: 1; align-self: center; padding: 0; }
  .account { padding: 0; border: 0; }
  .tabs { display: flex; flex-wrap: wrap; grid-column: 1 / -1; gap: 4px; }
  .tabs a { min-height: 38px; padding: 5px 8px; font-size: .875rem; gap: 5px; }
  .tabs a .glyph { scale: .8; }
  .server-list { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; margin-top: 0; }
  .server-item { max-width: min(100%, 230px); }
  .topbar { min-height: 55px; padding-block: 8px; }
}
@media (max-width: 575px) {
  .main { padding-top: 14px; }
  .overview-hero { min-height: 275px; padding: 25px; }
  .hero-art { object-position: 79% 45%; }
  .overview-hero::before { background: linear-gradient(0deg, #08080bf9 4%, #10111572 51%, transparent 88%), repeating-linear-gradient(0deg, #08080b25 0 1px, transparent 1px 4px); }
  .hero-copy { max-width: 95%; }
  .overview-hero h1 { font-size: clamp(2.15rem, 9.3vw, 3.5rem); }
  .hero-frame { inset: 9px; }
  .overview-grid--split, .permission-groups { grid-template-columns: minmax(0, 1fr); }
  .permission-group:last-child { grid-column: auto; grid-row: auto; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
  .tile { min-height: 78px; padding: 9px; gap: 3px 7px; border-radius: 15px; }
  .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tile-mark { width: 32px; height: 32px; border-radius: 9px; }
  .tile-label { font-size: .84rem; }
  .topbar-tools { gap: 8px; }
  .breadcrumb { flex: 1 1 100%; }
  .account { gap: 6px; max-width: 46vw; }
  .settings-form label { max-width: none; }
  .welcome { align-items: end; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .welcome::before { background-position: 77% 37%; }
  .welcome-card .brand-header { margin-bottom: 18px; }
}
@media (min-width: 380px) and (max-width: 575px) {
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tabs a { padding-inline: 5px; gap: 3px; letter-spacing: -.015em; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glass: var(--surface); }
  .panel, .welcome-card { background: var(--surface); backdrop-filter: none; }
}
:root[data-motion='off'] *, :root[data-motion='off'] *::before, :root[data-motion='off'] *::after { animation: none !important; transition: none !important; }
:root[data-motion='off'] :is(.hero-art, .tile, .tabs a, .server-item, .button, .overview-settings a) { translate: none; }
:root[data-motion='off'] :is(.tile-mark, .brand-mark, .activating) { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-art, .tile, .tabs a, .server-item, .button, .overview-settings a { translate: none; }
  .tile-mark, .brand-mark, .activating { transform: none; }
}
