/* RustCord — self-hosted Discord-like UI */
:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --bg-soft: #0f1219;
  --panel: #11151d;
  --panel-2: #161b25;
  --panel-3: #1d2330;
  --panel-4: #252c3b;
  --line: #232a38;
  --line-soft: #1a202b;
  --text: #e9ebf2;
  --muted: #9aa3b7;
  --faint: #687188;
  --accent: #ff6b35;
  --accent-2: #ff8f5e;
  --accent-soft: rgba(255, 107, 53, .14);
  --green: #3ddc97;
  --red: #ff5d6c;
  --yellow: #ffc857;
  --blue: #5aa9ff;
  --radius: 12px;
  --rail: 72px;
  --sidebar: 264px;
  --members: 248px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --shadow: 0 18px 60px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(255, 107, 53, .35); }
.hidden { display: none !important; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.grow { flex: 1; }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: #2c3444 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #2c3444; border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: #3a4356; }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 300;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(circle at 50% 40%, #1a1010 0%, var(--bg) 55%);
  transition: opacity .28s ease;
}
.boot.done { opacity: 0; pointer-events: none; }
.boot-mark, .logo-mark {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #ff8a4c, #e8481c 70%);
  color: #fff; font-weight: 800; font-size: 30px; letter-spacing: -.04em;
  box-shadow: 0 12px 30px rgba(255, 84, 30, .3), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.boot-mark { animation: breathe 1.4s ease-in-out infinite; }
.boot-text { font-weight: 700; letter-spacing: .02em; color: var(--muted); }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ---------- auth ---------- */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); background: var(--bg); }
.auth-art {
  position: relative; overflow: hidden;
  padding: clamp(32px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(255, 107, 53, .17), transparent 60%),
    radial-gradient(700px 500px at 90% 90%, rgba(110, 86, 207, .12), transparent 60%),
    linear-gradient(160deg, #12100f 0%, #0c0e14 58%);
  border-right: 1px solid var(--line-soft);
}
.auth-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  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: 56px 56px;
  mask-image: radial-gradient(circle at 35% 40%, #000 0%, transparent 72%);
}
.auth-glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(90px); background: rgba(255, 107, 53, .12); top: -120px; right: -100px; }
.brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.brand-text { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.brand-dot { color: var(--accent); }
.brand-lg .logo-mark { width: 46px; height: 46px; border-radius: 14px; font-size: 26px; }
.auth-art h1 {
  position: relative; z-index: 1;
  margin: 44px 0 18px; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.045em; font-weight: 800;
}
.auth-art h1 em { font-style: normal; color: var(--accent-2); }
.auth-lead { position: relative; z-index: 1; max-width: 520px; color: #b9bfce; font-size: 16px; line-height: 1.6; margin: 0 0 34px; }
.auth-features { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 500px; }
.auth-features li { display: flex; align-items: flex-start; gap: 14px; }
.feature-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--accent-2); background: rgba(255, 107, 53, .09); border: 1px solid rgba(255, 107, 53, .18); }
.auth-features b { display: block; font-size: 14.5px; }
.auth-features small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.auth-foot { position: relative; z-index: 1; margin-top: 52px; color: var(--faint); font-size: 12.5px; letter-spacing: .02em; }
.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; gap: 18px; background: #0c0f15; }
.auth-card { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 20px 70px rgba(0, 0, 0, .3); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 11px; background: #0c1016; border: 1px solid var(--line-soft); margin-bottom: 24px; }
.auth-tab { padding: 9px 10px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14px; transition: .16s; }
.auth-tab:hover { color: var(--text); }
.auth-tab.active { background: var(--panel-3); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.auth-card h2 { margin: 0 0 6px; font-size: 23px; letter-spacing: -.02em; }
.auth-card > .muted { margin: 0 0 22px; font-size: 14px; }
.field { display: block; margin-bottom: 15px; }
.field > span { display: block; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); background: #0c1016; border-radius: 9px; padding: 11px 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input::placeholder, textarea::placeholder { color: #566074; }
.form-error { margin: 0 0 14px; padding: 10px 12px; border-radius: 9px; background: rgba(255, 93, 108, .1); border: 1px solid rgba(255, 93, 108, .25); color: #ffb3ba; font-size: 13.5px; }
.form-error.ok { background: rgba(61, 220, 151, .1); border-color: rgba(61, 220, 151, .25); color: #9ff0cb; }
.auth-hint { margin-top: 18px; text-align: center; color: var(--muted); font-size: 13.5px; }
.auth-meta { color: var(--faint); font-size: 12.5px; }
.link { color: var(--accent-2); padding: 0; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- buttons / forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 9px; padding: 10px 16px; border: 1px solid var(--line);
  background: var(--panel-3); color: var(--text); font-weight: 650; font-size: 14px;
  transition: background .15s, border-color .15s, transform .05s, color .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--panel-4); border-color: #344054; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-color: transparent; color: #1b0c05; text-shadow: 0 1px 0 rgba(255,255,255,.18); box-shadow: 0 8px 22px rgba(255, 90, 35, .2); }
.btn-primary:hover { background: linear-gradient(180deg, #ffa273, #ff7542); border-color: transparent; }
.btn-danger { background: rgba(255, 93, 108, .12); border-color: rgba(255, 93, 108, .3); color: #ff9aa3; }
.btn-danger:hover { background: rgba(255, 93, 108, .2); border-color: rgba(255, 93, 108, .5); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--panel-3); color: var(--text); }
.btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: 8px; }
.btn-icon svg { width: 18px; height: 18px; }

/* ---------- app shell ---------- */
.app {
  height: 100dvh; display: grid;
  grid-template-columns: var(--rail) var(--sidebar) minmax(0, 1fr) var(--members);
  background: var(--bg);
}
.conn-banner {
  position: fixed; z-index: 120; top: 10px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 999px;
  background: rgba(35, 24, 12, .94); border: 1px solid rgba(255, 200, 87, .3); color: #ffd98d;
  font-size: 13px; box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.conn-banner svg { width: 16px; height: 16px; }

/* rail */
.rail { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; background: #080a0f; border-right: 1px solid #0c0f15; z-index: 20; }
.rail-home, .rail-guild, .rail-add {
  position: relative; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
  background: var(--panel-3); color: var(--text); transition: border-radius .16s, background .16s, transform .12s;
  flex: none;
}
.rail-home { background: linear-gradient(145deg, #ff8a4c, #e8481c); color: #fff; box-shadow: 0 8px 20px rgba(255, 90, 35, .22); }
.rail-home svg { width: 27px; height: 27px; }
.rail-guild { background: var(--panel-3); font-weight: 750; font-size: 16px; letter-spacing: -.03em; overflow: hidden; }
.rail-guild img { width: 100%; height: 100%; object-fit: cover; }
.rail-guild:hover, .rail-home:hover, .rail-add:hover { border-radius: 12px; transform: translateY(-1px); }
.rail-guild.active { border-radius: 12px; }
.rail-guild.active::before, .rail-home.active::before {
  content: ""; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 26px; border-radius: 0 4px 4px 0; background: var(--text);
}
.rail-home.active::before { background: var(--accent-2); }
.rail-guild.unread::after {
  content: ""; position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--text);
}
.rail-badge {
  position: absolute; right: -5px; bottom: -5px; min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; border: 2px solid #080a0f;
}
.rail-sep { width: 30px; height: 1px; background: var(--line); margin: 2px 0; flex: none; }
.rail-guilds { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overflow-x: hidden; width: 100%; align-items: center; padding: 2px 0; }
.rail-guilds::-webkit-scrollbar { width: 0; }
.rail-add { border: 1.5px dashed #344054; background: transparent; color: var(--green); }
.rail-add:hover { border-color: var(--green); background: rgba(61, 220, 151, .08); }
.rail-add svg { width: 22px; height: 22px; }
.rail-spacer { flex: 1; }
.rail-mini { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--faint); }
.rail-mini:hover { color: var(--text); background: var(--panel-3); }
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(-4px);
  background: #05070b; color: var(--text); border: 1px solid var(--line); padding: 6px 9px; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: .12s; z-index: 50;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
[data-tooltip]:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }

/* sidebar */
.sidebar { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-right: 1px solid #0a0d12; z-index: 15; }
.sidebar-head { height: 56px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.guild-title { min-width: 0; flex: 1; }
.guild-title b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; letter-spacing: -.01em; }
.guild-title small { display: block; color: var(--faint); font-size: 11.5px; margin-top: 1px; }
.sidebar-head .btn-icon { color: var(--muted); }
.sidebar-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 8px 16px; }
.sidebar-section { margin-bottom: 14px; }
.section-label { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px; color: var(--faint); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.section-label button { color: var(--faint); width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; }
.section-label button:hover { color: var(--text); background: var(--panel-3); }
.section-label svg { width: 15px; height: 15px; }
.channel-row {
  display: flex; align-items: center; gap: 8px; height: 35px; padding: 0 9px; border-radius: 7px;
  color: var(--muted); font-size: 14.5px; font-weight: 550; cursor: pointer; user-select: none;
  position: relative;
}
.channel-row:hover { background: var(--panel-2); color: #c9cfdd; }
.channel-row.active { background: var(--panel-3); color: var(--text); }
.channel-row.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--accent); }
.channel-row svg { width: 18px; height: 18px; color: #5d667a; flex: none; }
.channel-row.active svg { color: var(--accent-2); }
.channel-row .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-row .badge { min-width: 17px; height: 17px; border-radius: 999px; padding: 0 5px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }
.channel-row.voice .name { color: #b6bdcb; }
.voice-users { padding: 1px 0 5px 28px; display: grid; gap: 2px; }
.voice-user { display: flex; align-items: center; gap: 6px; height: 25px; color: var(--muted); font-size: 13px; border-radius: 6px; padding: 0 6px; cursor: pointer; }
.voice-user:hover { background: var(--panel-2); color: var(--text); }
.voice-user .avatar { flex: none; }
.voice-user .vname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-user svg { width: 14px; height: 14px; color: var(--faint); }
.voice-user.speaking .vname { color: var(--green); }
.dm-row { display: flex; align-items: center; gap: 9px; height: 43px; padding: 0 8px; border-radius: 8px; cursor: pointer; }
.dm-row:hover { background: var(--panel-2); }
.dm-row.active { background: var(--panel-3); }
.dm-row .avatar { flex: none; }
.dm-meta { min-width: 0; flex: 1; }
.dm-meta b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-meta small { display: block; color: var(--faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-row .badge { min-width: 17px; height: 17px; border-radius: 999px; padding: 0 5px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }
.dm-empty { padding: 10px; color: var(--faint); font-size: 13px; line-height: 1.5; }

/* me bar */
.me-bar { flex: none; height: 60px; display: flex; align-items: center; gap: 8px; padding: 0 8px; background: #0b0e14; border-top: 1px solid var(--line-soft); }
.me-info { min-width: 0; flex: 1; padding-left: 2px; cursor: pointer; }
.me-info b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-info small { display: block; font-size: 11.5px; color: var(--faint); }
.me-actions { display: flex; gap: 1px; }
.me-actions button { width: 31px; height: 31px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); }
.me-actions button:hover { background: var(--panel-3); color: var(--text); }
.me-actions button.on { color: var(--green); }
.me-actions button.danger { color: var(--red); }
.me-actions svg { width: 17px; height: 17px; }

/* voice panel */
.voice-panel { flex: none; margin: 0 8px 8px; border-radius: 11px; background: linear-gradient(180deg, #1b211c, #141a16); border: 1px solid rgba(61, 220, 151, .18); padding: 10px 11px; }
.voice-panel-head { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 12.5px; font-weight: 750; }
.voice-panel-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(61,220,151,.12); }
.voice-panel-head .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #cdeadd; }
.voice-panel-head button { color: var(--muted); width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; }
.voice-panel-head button:hover { color: var(--red); background: rgba(255,93,108,.1); }
.voice-panel-status { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; color: var(--faint); font-size: 10.5px; }
.voice-transport { color: #9fd8bb; font-weight: 650; letter-spacing: .02em; }
.voice-warning { width: 100%; margin: 5px 0; padding: 7px 8px; border-radius: 7px; background: rgba(255, 200, 87, .1); border: 1px solid rgba(255, 200, 87, .28); color: #ffd98d; font-size: 11px; text-align: left; line-height: 1.35; }
.voice-warning:hover { background: rgba(255, 200, 87, .16); }
.voice-error { display: flex; flex-direction: column; gap: 5px; margin: 5px 0; padding: 7px 8px; border-radius: 7px; background: rgba(255, 93, 108, .09); border: 1px solid rgba(255, 93, 108, .25); color: #ffb3ba; font-size: 11px; line-height: 1.35; }
.voice-error .btn { align-self: flex-start; }
.voice-panel-users { display: grid; gap: 3px; margin: 8px 0; }
.voice-panel-users .voice-user { height: 28px; background: rgba(255,255,255,.02); }
.voice-panel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.voice-panel-actions button { height: 31px; border-radius: 7px; background: rgba(255,255,255,.05); color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.voice-panel-actions button:hover { background: rgba(255,255,255,.09); color: var(--text); }
.voice-panel-actions button.on { color: var(--green); }
.voice-panel-actions svg { width: 16px; height: 16px; }

/* chat */
.chat { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--bg); position: relative; }
.chat-head { height: 56px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--line-soft); background: rgba(11, 13, 18, .88); backdrop-filter: blur(8px); z-index: 5; }
.chat-head .ch-icon { color: var(--faint); flex: none; }
.chat-head .ch-icon svg { width: 20px; height: 20px; }
.chat-title { min-width: 0; }
.chat-title b { display: block; font-size: 15px; letter-spacing: -.01em; }
.chat-title small { display: block; color: var(--faint); font-size: 12px; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.chat-actions > button:not(.search-chip) { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.chat-actions > button:not(.search-chip):hover { background: var(--panel-2); color: var(--text); }
.chat-actions > button:not(.search-chip).active { color: var(--accent-2); background: var(--accent-soft); }
.mobile-menu { display: none; }
.search-chip { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--line-soft); color: var(--faint); font-size: 12.5px; }
.search-chip:hover { border-color: var(--line); color: var(--muted); }
.search-chip svg { width: 14px; height: 14px; }
.search-chip kbd { font-family: var(--font); font-size: 10.5px; background: var(--panel-4); border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px; color: var(--muted); }

.messages { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; position: relative; scroll-behavior: auto; }
.messages-inner { padding: 18px 18px 8px; min-height: 100%; display: flex; flex-direction: column; justify-content: flex-start; }
.messages-inner.loading { justify-content: center; align-items: center; }
.loading-line { color: var(--faint); font-size: 13px; display: flex; align-items: center; gap: 8px; padding: 26px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.channel-hero { padding: 44px 12px 26px; max-width: 680px; }
.channel-hero .hero-icon { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); color: var(--accent-2); margin-bottom: 18px; }
.channel-hero .hero-icon svg { width: 30px; height: 30px; }
.channel-hero h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.03em; }
.channel-hero p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.channel-hero .hero-tip { margin-top: 16px; font-size: 12.5px; color: var(--faint); }
.date-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; color: var(--faint); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.date-divider::before, .date-divider::after { content: ""; height: 1px; background: var(--line-soft); flex: 1; }
.new-divider { display: flex; align-items: center; gap: 10px; color: var(--red); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin: 10px 0 6px; }
.new-divider::before, .new-divider::after { content: ""; height: 1px; background: rgba(255,93,108,.35); flex: 1; }

.msg { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 10px; padding: 3px 8px 3px 6px; border-radius: 7px; }
.msg:hover { background: rgba(255, 255, 255, .022); }
.msg.grouped { padding-top: 1px; padding-bottom: 1px; }
.msg.grouped .msg-avatar { visibility: hidden; }
.msg.grouped .msg-head { display: none; }
.msg.grouped .msg-time-hover { display: block; }
.msg-avatar { grid-column: 1; padding-top: 1px; }
.avatar { border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 750; flex: none; position: relative; overflow: hidden; user-select: none; }
.avatar .status-dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--faint); border: 2.5px solid var(--panel); }
.msg .avatar .status-dot { border-color: var(--bg); }
.avatar .status-dot.online { background: var(--green); }
.avatar .status-dot.idle { background: var(--yellow); }
.msg-body { grid-column: 2; min-width: 0; padding-top: 1px; }
.msg-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.msg-author { font-weight: 700; color: #f0f2f7; font-size: 14.5px; cursor: pointer; }
.msg-author:hover { text-decoration: underline; }
.msg-time { color: var(--faint); font-size: 11.5px; }
.msg-time-hover { display: none; position: absolute; left: 6px; top: 7px; color: var(--faint); font-size: 10.5px; width: 36px; text-align: right; }
.msg-text { color: #d7dbe5; font-size: 14.5px; line-height: 1.48; word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg-text a { color: #7fb8ff; }
.msg-text code { font-family: var(--mono); font-size: 12.5px; background: #070a0f; border: 1px solid var(--line-soft); border-radius: 5px; padding: 1px 5px; color: #ffb08a; }
.msg-text pre { margin: 6px 0; padding: 10px 12px; border-radius: 8px; background: #070a0f; border: 1px solid var(--line-soft); overflow-x: auto; white-space: pre; }
.msg-text pre code { background: none; border: 0; padding: 0; color: #c9d4e8; }
.msg-text .spoiler { background: #2a3140; color: transparent; border-radius: 4px; padding: 0 3px; cursor: pointer; transition: .12s; }
.msg-text .spoiler.revealed { background: var(--panel-3); color: inherit; }
.msg-text .emoji { font-size: 1.15em; }
.msg-edited { color: var(--faint); font-size: 10.5px; margin-left: 4px; }
.msg-reply { display: flex; align-items: center; gap: 6px; margin: 3px 0 4px; color: var(--muted); font-size: 12px; cursor: pointer; max-width: 100%; }
.msg-reply .line { width: 22px; height: 10px; border-left: 2px solid #3d4658; border-top: 2px solid #3d4658; border-top-left-radius: 5px; flex: none; }
.msg-reply b { color: #c3cad8; font-weight: 650; }
.msg-reply span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .8; }
.msg-actions { position: absolute; right: 8px; top: -16px; display: flex; gap: 1px; padding: 3px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: opacity .1s; z-index: 4; }
.msg:hover .msg-actions { opacity: 1; pointer-events: auto; }
.msg-actions button { width: 26px; height: 26px; border-radius: 5px; display: grid; place-items: center; color: var(--muted); }
.msg-actions button:hover { background: var(--panel-4); color: var(--text); }
.msg-actions button.danger:hover { color: var(--red); }
.msg-actions svg { width: 15px; height: 15px; }
.msg.highlight { animation: highlight 2.4s ease; }
@keyframes highlight { 0%, 35% { background: rgba(255, 107, 53, .16); } 100% { background: transparent; } }

.attachments { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 2px; }
.attachment-img { display: block; max-width: min(420px, 100%); border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: #070a0f; }
.attachment-img img { display: block; max-width: 100%; max-height: 320px; object-fit: contain; }
.attachment-file { display: flex; align-items: center; gap: 10px; max-width: 360px; padding: 9px 11px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); }
.attachment-file .file-ic { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-4); color: var(--accent-2); flex: none; }
.attachment-file .file-meta { min-width: 0; }
.attachment-file b { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-file small { display: block; color: var(--faint); font-size: 11px; }
.attachment-file:hover { border-color: #3a4356; text-decoration: none; }

.reactions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.reaction { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 7px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.reaction:hover { border-color: #3b4558; background: var(--panel-3); }
.reaction.me { background: var(--accent-soft); border-color: rgba(255, 107, 53, .45); color: #ffc1a6; }
.reaction .count { font-weight: 700; font-size: 11.5px; }

/* typing */
.typing { height: 20px; flex: none; padding: 0 26px; color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 5px; }
.typing-dots { display: inline-flex; gap: 2px; }
.typing-dots i { width: 3px; height: 3px; background: var(--muted); border-radius: 50%; animation: blink 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* composer */
.composer-wrap { flex: none; padding: 0 18px 12px; }
.composer-banner { display: flex; align-items: center; gap: 8px; padding: 7px 12px; margin-bottom: 6px; border-radius: 8px 8px 0 0; background: var(--panel-2); border: 1px solid var(--line); border-bottom: 0; color: var(--muted); font-size: 12.5px; }
.composer-banner b { color: var(--text); }
.composer-banner button { margin-left: auto; color: var(--muted); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; }
.composer-banner button:hover { color: var(--text); background: var(--panel-4); }
.composer { display: flex; align-items: flex-end; gap: 4px; padding: 7px 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; transition: border-color .15s; }
.composer:focus-within { border-color: #3a4356; }
.composer-btn { width: 34px; height: 34px; flex: none; border-radius: 7px; display: grid; place-items: center; color: var(--muted); }
.composer-btn:hover { background: var(--panel-4); color: var(--text); }
.composer-btn svg { width: 19px; height: 19px; }
.composer-field { flex: 1; min-width: 0; padding: 0 4px; }
.composer textarea { width: 100%; border: 0; outline: none; background: transparent; resize: none; color: var(--text); font-size: 14.5px; line-height: 1.45; max-height: 200px; padding: 7px 0 6px; min-height: 34px; }
.composer-send { width: 36px; height: 36px; flex: none; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #221008; }
.composer-send:hover { filter: brightness(1.06); }
.composer-send:disabled { opacity: .45; cursor: default; }
.composer-send svg { width: 18px; height: 18px; }
.composer-hint { padding: 6px 4px 0; color: var(--faint); font-size: 10.5px; text-align: right; }
.attachment-preview { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 6px; }
.attachment-chip { display: flex; align-items: center; gap: 7px; padding: 5px 7px; border-radius: 7px; background: var(--panel-3); border: 1px solid var(--line); font-size: 12px; max-width: 240px; }
.attachment-chip img { width: 28px; height: 28px; border-radius: 4px; object-fit: cover; }
.attachment-chip .chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-chip button { color: var(--faint); width: 18px; height: 18px; display: grid; place-items: center; border-radius: 4px; flex: none; }
.attachment-chip button:hover { color: var(--red); background: rgba(255,93,108,.1); }
.attachment-chip svg { width: 13px; height: 13px; }
.drag-over .composer { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.new-pill {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  padding: 7px 14px; border-radius: 999px; background: var(--accent); color: #1b0c05; font-weight: 750; font-size: 12.5px;
  box-shadow: 0 8px 24px rgba(255, 90, 35, .3); z-index: 6;
}

/* members */
.members { background: var(--panel); border-left: 1px solid #0a0d12; overflow-y: auto; padding: 16px 10px 20px; min-height: 0; }
.members-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 10px; color: var(--faint); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.member-group { margin-bottom: 14px; }
.member-group-title { padding: 6px 8px 4px; color: var(--faint); font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.member-row { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 7px; cursor: pointer; }
.member-row:hover { background: var(--panel-2); }
.member-row.offline { opacity: .55; }
.member-row .avatar { flex: none; }
.member-meta { min-width: 0; flex: 1; }
.member-meta b { display: block; font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-meta small { display: block; color: var(--faint); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-crown { color: var(--yellow); }
.role-shield { color: var(--blue); }

/* avatar sizes */
.av-16 { width: 16px; height: 16px; font-size: 8px; }
.av-20 { width: 20px; height: 20px; font-size: 9px; }
.av-24 { width: 24px; height: 24px; font-size: 10px; }
.av-28 { width: 28px; height: 28px; font-size: 12px; }
.av-32 { width: 32px; height: 32px; font-size: 13px; }
.av-38 { width: 38px; height: 38px; font-size: 15px; }
.av-40 { width: 40px; height: 40px; font-size: 16px; }
.av-48 { width: 48px; height: 48px; font-size: 19px; }
.av-64 { width: 64px; height: 64px; font-size: 26px; }
.av-80 { width: 80px; height: 80px; font-size: 32px; }
.av-96 { width: 96px; height: 96px; font-size: 38px; }

/* ---------- modals ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(3, 5, 9, .72); backdrop-filter: blur(5px); animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(480px, 100%); max-height: min(86dvh, 760px); display: flex; flex-direction: column; background: #141821; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); animation: modal-in .18s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.modal.wide { width: min(640px, 100%); }
.modal.slim { width: min(400px, 100%); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.99); } }
.modal-head { flex: none; display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 14px; border-bottom: 1px solid var(--line-soft); }
.modal-head h3 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.modal-head .modal-close { margin-left: auto; width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); flex: none; }
.modal-head .modal-close:hover { background: var(--panel-4); color: var(--text); }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { flex: none; display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line-soft); background: #11151d; }
.modal-foot .left { margin-right: auto; }
.modal-note { padding: 10px 12px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line-soft); color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 12px 0 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #0c1016; border: 1px solid var(--line-soft); border-radius: 9px; margin-bottom: 14px; }
.seg button { padding: 8px; border-radius: 6px; color: var(--muted); font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.active { background: var(--panel-3); color: var(--text); }
.seg svg { width: 15px; height: 15px; }
.invite-code { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 9px; background: #0b0e14; border: 1px dashed #3a4356; margin: 4px 0 12px; }
.invite-code code { flex: 1; font-family: var(--mono); font-size: 20px; letter-spacing: .18em; color: var(--accent-2); }
.search-field { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 9px; background: #0b0e14; border: 1px solid var(--line); margin-bottom: 12px; }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-field svg { width: 18px; height: 18px; color: var(--faint); }
.search-field input { flex: 1; background: transparent; border: 0; outline: 0; font-size: 14.5px; }
.search-results { display: grid; gap: 4px; }
.search-hit { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; border: 1px solid transparent; }
.search-hit:hover { background: var(--panel-2); border-color: var(--line); }
.search-hit .hit-meta { display: flex; gap: 7px; align-items: center; color: var(--faint); font-size: 11.5px; margin-bottom: 3px; }
.search-hit .hit-text { color: #cbd2df; font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-empty { padding: 28px 10px; text-align: center; color: var(--faint); font-size: 13px; }
.profile-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 0; }
.profile-card .avatar { margin-bottom: 12px; }
.profile-card h3 { margin: 0; font-size: 20px; }
.profile-card .handle { color: var(--faint); font-size: 13px; margin-top: 2px; }
.profile-card .bio { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 14px 0 0; max-width: 360px; }
.profile-card .role-pill { margin-top: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-size: 11.5px; font-weight: 650; }
.profile-card .role-pill svg { width: 13px; height: 13px; }
.profile-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }
.member-manage { display: grid; gap: 6px; margin-top: 14px; }
.member-manage-row { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line-soft); }
.member-manage-row .meta { flex: 1; min-width: 0; }
.member-manage-row b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-manage-row small { display: block; color: var(--faint); font-size: 11px; }
.member-manage-row select { background: #0b0e14; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font-size: 12px; }
.settings-nav { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--line-soft); }
.settings-nav button { padding: 11px 10px; color: var(--muted); font-size: 13px; font-weight: 600; border-bottom: 2px solid transparent; }
.settings-nav button.active { color: var(--text); border-bottom-color: var(--accent); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emoji-grid button { font-size: 22px; height: 36px; border-radius: 6px; line-height: 1; }
.emoji-grid button:hover { background: var(--panel-3); }
.emoji-pop { position: fixed; z-index: 140; width: 300px; padding: 8px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.color-row { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; }
.color-swatch.active { border-color: #fff; box-shadow: 0 0 0 2px var(--panel); }
.color-swatch:hover { transform: scale(1.08); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(3, 5, 9, .9); display: grid; place-items: center; padding: 30px; }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 8px; box-shadow: var(--shadow); }
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); }

/* toasts */
.toast-root { position: fixed; z-index: 250; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; border-radius: 10px; background: #1a1f2a; border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow); font-size: 13px; animation: toast-in .2s ease; }
.toast.error { border-color: rgba(255, 93, 108, .4); }
.toast.success { border-color: rgba(61, 220, 151, .4); }
.toast svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.toast.error svg { color: var(--red); }
.toast.success svg { color: var(--green); }
.toast .toast-text { flex: 1; line-height: 1.4; }
.toast button { color: var(--faint); width: 18px; height: 18px; display: grid; place-items: center; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

/* extras: menus, role marks, voice roster, settings */
.app.members-hidden { grid-template-columns: var(--rail) var(--sidebar) minmax(0, 1fr) 0; }
.app.members-hidden .members { display: none; }
.menu-pop { position: fixed; z-index: 150; width: 240px; padding: 5px; border-radius: 10px; background: #171c26; border: 1px solid var(--line); box-shadow: var(--shadow); animation: fade .1s ease; }
.menu-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 9px; border-radius: 6px; color: #cbd2df; font-size: 13px; text-align: left; }
.menu-item:hover { background: var(--panel-3); color: var(--text); }
.menu-item svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.menu-item small { margin-left: auto; color: var(--faint); font-size: 10.5px; }
.menu-item.danger { color: #ff9aa3; }
.menu-item.danger svg { color: #ff7d89; }
.menu-item.danger:hover { background: rgba(255, 93, 108, .1); }
.menu-sep { height: 1px; margin: 4px 3px; background: var(--line-soft); }
.role-mark { display: inline-flex; align-items: center; }
.role-mark svg { width: 13px; height: 13px; }
.hero-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.home-hero { padding-top: 50px; }
.voice-large-list { display: grid; gap: 8px; margin-top: 22px; max-width: 420px; }
.voice-large-user { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line-soft); }
.voice-large-user b { display: block; font-size: 13.5px; }
.voice-large-user small { display: block; color: var(--faint); font-size: 11.5px; }
.settings-section-title { margin: 20px 0 8px; color: var(--faint); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.voice-channel-wrap { margin-bottom: 1px; }
.chat-head > .mobile-menu { width: 34px; height: 34px; padding: 0; border-radius: 8px; display: none; place-items: center; color: var(--muted); flex: none; }
.chat-head > .mobile-menu:hover { background: var(--panel-2); color: var(--text); }
.msg .role-mark { margin-left: -3px; }
.msg.grouped .msg-time-hover { top: 3px; }
.msg-time-hover { top: 7px; }
.member-row .role-mark { margin-left: 1px; }

/* mobile */
.mobile-scrim { display: none; }
@media (max-width: 1200px) {
  :root { --members: 220px; }
}
@media (max-width: 1060px) {
  .app { grid-template-columns: var(--rail) var(--sidebar) minmax(0, 1fr); }
  .members { display: none; }
  .members.open { display: block; position: fixed; z-index: 60; right: 0; top: 0; bottom: 0; width: 260px; box-shadow: -20px 0 50px rgba(0,0,0,.4); }
}
@media (max-width: 860px) {
  :root { --rail: 62px; }
  .app { grid-template-columns: var(--rail) minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 70; left: var(--rail); top: 0; bottom: 0; width: 286px; transform: translateX(calc(-100% - var(--rail))); transition: transform .2s ease; box-shadow: 20px 0 60px rgba(0,0,0,.5); }
  .sidebar.open { transform: translateX(0); }
  .mobile-scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .mobile-scrim.show { opacity: 1; pointer-events: auto; }
  .mobile-menu { display: grid !important; }
  .search-chip span, .search-chip kbd { display: none; }
  .chat-actions .search-chip { width: 32px; height: 34px; justify-content: center; padding: 0; border: 0; background: transparent; }
  .search-chip:hover { background: var(--panel-2); }
  .composer-hint { display: none; }
  .composer-wrap { padding: 0 10px 10px; }
  .messages-inner { padding: 12px 8px 4px; }
  .msg { grid-template-columns: 38px minmax(0, 1fr); }
  .attachment-img img { max-height: 240px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-panel { min-height: 100dvh; }
  .chat-head { padding: 0 10px; }
  .chat-title small { max-width: 44vw; }
}
@media (max-width: 520px) {
  :root { --rail: 56px; }
  .rail-home, .rail-guild, .rail-add { width: 42px; height: 42px; border-radius: 13px; }
  .rail-guild { font-size: 15px; }
  .auth-card { padding: 22px; border-radius: 14px; }
  .auth-panel { padding: 18px 12px; }
  .msg-actions { top: auto; bottom: 2px; }
  .modal { max-height: 92dvh; }
  .emoji-grid { grid-template-columns: repeat(7, 1fr); }
  .toast-root { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
