@font-face {
  font-family: "Pusab";
  src: url("https://cdn.jsdelivr.net/gh/TypicallyOme/Website-Assets@main/features/assets/pusab/PUSAB___.otf") format("opentype");
  font-display: swap;
}

/* TT Norms Pro is a commercial font. If it is installed on the device it is used
   directly; drop licensed files into /fonts to ship it to everyone. */
@font-face {
  font-family: "TT Norms Pro";
  src: local("TT Norms Pro"), local("TTNormsPro-Regular"),
       url("../fonts/TTNormsPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "TT Norms Pro";
  src: local("TT Norms Pro Medium"), local("TTNormsPro-Medium"),
       url("../fonts/TTNormsPro-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "TT Norms Pro";
  src: local("TT Norms Pro Bold"), local("TTNormsPro-Bold"),
       url("../fonts/TTNormsPro-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #000000;
  --bg-2: #0a0a0a;
  --surface: #111111;
  --surface-2: #171717;
  --surface-3: #1f1f1f;
  --line: #232323;
  --line-2: #2e2e2e;
  --text: #ececec;
  --text-2: #a3a3a3;
  --muted: #6b6b6b;
  --accent: #ffffff;
  --danger: #e5484d;
  --ok: #3dd68c;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "TT Norms Pro", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --logo: "Pusab", var(--font);
  --nav-h: 56px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
::selection { background: #ffffff33; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.logo { font-family: var(--logo); letter-spacing: .02em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--surface-3); border: 1px solid var(--line-2);
  color: var(--text); font-weight: 500; font-size: 14px;
  transition: background .15s, border-color .15s, opacity .15s, transform .1s;
  white-space: nowrap;
}
.btn:hover { background: #262626; border-color: #3a3a3a; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: #000; border-color: var(--accent); }
.btn.primary:hover { background: #dcdcdc; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: #2a1314; border-color: #4a1d1f; }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-3); }

.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: transparent; border: none; color: var(--text-2);
  transition: background .15s, color .15s;
  flex: none;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }

.input, .textarea, .select {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 10px 12px; outline: none;
  transition: border-color .15s;
}
.input:focus, .textarea:focus, .select:focus { border-color: #4a4a4a; }
.textarea { resize: vertical; min-height: 80px; }
.label { font-size: 12px; color: var(--text-2); margin: 14px 0 6px; display: block; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 20px;
  background: rgba(0,0,0,.8); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .logo { font-size: 22px; text-decoration: none; color: #fff; }
.topbar .title { font-weight: 600; color: var(--text-2); font-size: 14px; }
.topbar .spacer { flex: 1; }
.online-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2);
  padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  cursor: pointer;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }

.nav {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 50; display: flex; gap: 4px; padding: 6px;
  height: var(--nav-h);
  background: rgba(17,17,17,.88); backdrop-filter: blur(16px);
  border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.nav a, .nav button {
  display: flex; align-items: center; gap: 8px;
  padding: 0 18px; border-radius: 13px; border: none; background: transparent;
  color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 14px;
  transition: background .15s, color .15s;
}
.nav a:hover, .nav button:hover { color: var(--text); background: var(--surface-3); }
.nav .active { color: #000 !important; background: #fff !important; }
.nav .has-dot { position: relative; }
.nav-dot { position: absolute; top: 8px; left: 28px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #111; }
.nav .active .nav-dot { background: #000; box-shadow: 0 0 0 2px #fff; }
.nav svg { width: 18px; height: 18px; }
.nav .nav-device {
  min-width: 150px; padding: 4px 10px; display: flex; align-items: center; justify-content: flex-start; gap: 8px;
  text-align: left; font-family: var(--logo); line-height: 1.1;
}
.nav-device-icons { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-2); flex: none; }
.nav-device-icons svg { width: 16px; height: 16px; }
.nav-device-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nav-device-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.nav-device-time { font-weight: 700; white-space: nowrap; }
.nav-device-battery { color: var(--text-2); white-space: nowrap; font-size: 10px; }
.nav-device-date { color: var(--muted); white-space: nowrap; font-size: 10px; }

.corner-btn {
  position: fixed; bottom: 16px; z-index: 50;
  width: var(--nav-h); height: var(--nav-h); border-radius: 18px;
  display: grid; place-items: center;
  background: rgba(17,17,17,.88); backdrop-filter: blur(16px);
  border: 1px solid var(--line-2); box-shadow: 0 10px 40px rgba(0,0,0,.6);
  transition: transform .15s var(--ease), border-color .15s;
  padding: 0;
}
.corner-btn:hover { transform: translateY(-2px); border-color: #3d3d3d; }
.corner-btn.right { right: 16px; }
.corner-btn.left { left: 16px; color: var(--text-2); }
.corner-btn.left svg { width: 22px; height: 22px; }
.corner-btn .tag {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 700; letter-spacing: .08em; padding: 2px 6px; border-radius: 6px;
  background: #fff; color: #000;
}

.device-info-modal .panel { font-family: var(--logo); }
.device-info-content { display: flex; flex-direction: column; gap: 12px; }
.device-clock-card, .device-battery-card { padding: 16px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-2); }
.device-clock-card { text-align: center; }
.device-clock-time { font-size: 34px; line-height: 1.2; color: #fff; }
.device-clock-day { margin-top: 6px; color: var(--text-2); font-size: 14px; }
.device-battery-heading { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; }
.device-battery-heading svg { width: 20px; height: 20px; }
.device-battery-status { margin: 12px 0 8px; font-size: 17px; }
.device-battery-bar { height: 10px; overflow: hidden; border-radius: 999px; background: var(--surface-3); }
.device-battery-fill { height: 100%; width: 0; border-radius: inherit; background: #fff; transition: width .25s ease; }

.more-menu {
  position: fixed; bottom: calc(var(--nav-h) + 28px); left: 50%; transform: translateX(-50%) translateY(8px);
  z-index: 60; min-width: 220px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s var(--ease);
}
.more-menu.open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.more-menu button {
  display: flex; width: 100%; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; border: none; background: transparent;
  color: var(--text); text-align: left; font-size: 14px;
}
.more-menu button:hover { background: var(--surface-3); }
.more-menu svg { width: 18px; height: 18px; color: var(--text-2); }

@media (max-width: 720px) {
  .nav .lbl { display: none; }
  .nav a, .nav button { padding: 0 10px; }
  .nav .nav-device { width: 100px; min-width: 100px; padding: 4px 7px; justify-content: center; }
  .nav-device-icons { display: none; }
  .nav-device-copy { width: 100%; }
  .nav-device-topline { font-size: 10px; gap: 5px; }
  .nav-device-battery, .nav-device-date { font-size: 9px; }
}
@media (max-width: 560px) {
  .corner-btn { display: none; }
  .topbar { padding: 0 14px; }
}
@media (max-width: 360px) {
  .nav a, .nav button { padding: 0 8px; }
  .nav .nav-device { width: 84px; min-width: 84px; }
  .nav-device-topline { gap: 3px; font-size: 9px; }
  .nav-device-battery, .nav-device-date { font-size: 8px; }
}

.av {
  --s: 40px;
  position: relative; width: var(--s); height: var(--s); flex: none;
  border-radius: 50%; display: inline-block; cursor: pointer;
}
.av img, .av .ph {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
  background: var(--surface-3);
}
.av .ph {
  display: grid; place-items: center; font-weight: 700; color: var(--text-2);
  font-size: calc(var(--s) * .4); text-transform: uppercase;
}
.av::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; pointer-events: none; }
.av.f-ring::after   { border: 2px solid #fff; }
.av.f-dashed::after { border: 2px dashed #9a9a9a; animation: spin 12s linear infinite; }
.av.f-double::after { border: 4px double #bdbdbd; inset: -5px; }
.av.f-neon::after   { border: 2px solid #7df9ff; box-shadow: 0 0 10px #7df9ff, inset 0 0 6px #7df9ff88; }
.av.f-gold::after   { border: 2px solid #e6c55a; box-shadow: 0 0 8px #e6c55a66; }
.av.f-rainbow::after {
  inset: -3px; padding: 2px;
  background: conic-gradient(#ff5e5e, #ffd25e, #5eff8f, #5ec8ff, #b55eff, #ff5e5e);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 4s linear infinite;
}
.av.f-orbit::after { border: 1px solid #ffffff33; inset: -5px; }
.av.f-orbit::before {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #fff;
  top: 50%; left: 50%; margin: -3.5px; z-index: 2; box-shadow: 0 0 6px #fff;
  animation: orbit 3s linear infinite;
  --r: calc(var(--s) / 2 + 5px);
}
.av.f-glitch::after { border: 2px solid #fff; animation: glitchFrame 2.4s steps(1) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit {
  from { transform: rotate(0deg) translateX(var(--r)) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(var(--r)) rotate(-360deg); }
}
@keyframes glitchFrame {
  0%   { box-shadow: 2px 0 #ff2a6d, -2px 0 #05d9e8; }
  30%  { box-shadow: -2px 0 #ff2a6d, 2px 0 #05d9e8; }
  60%  { box-shadow: none; }
  80%  { box-shadow: 1px 1px #ff2a6d, -1px -1px #05d9e8; }
}

.uname { font-weight: 600; color: var(--text); cursor: pointer; white-space: nowrap; }
.uname:hover { text-decoration: underline; text-decoration-color: #555; }
.fx-glow    { text-shadow: 0 0 8px #ffffffaa, 0 0 18px #ffffff55; color: #fff; }
.fx-shimmer {
  background: linear-gradient(90deg, #6f6f6f 0%, #ffffff 40%, #6f6f6f 80%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 2.4s linear infinite;
}
.fx-rainbow {
  background: linear-gradient(90deg, #ff6b6b, #ffd36b, #6bff95, #6bd3ff, #c56bff, #ff6b6b);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 4s linear infinite;
}
.fx-neon    { color: #7df9ff; text-shadow: 0 0 6px #7df9ffaa, 0 0 14px #7df9ff66; }
.fx-gold    {
  background: linear-gradient(180deg, #fff1b8, #e6c55a 55%, #a8862b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fx-fire    {
  background: linear-gradient(0deg, #ff4d1a, #ffb21a, #fff36b);
  background-size: 100% 200%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fire 1.2s ease-in-out infinite alternate;
}
.fx-glitch  { color: #fff; animation: glitchText 2s steps(1) infinite; }
.fx-pulse   { animation: pulse 1.8s ease-in-out infinite; color: #fff; }
.fx-outline { color: transparent; -webkit-text-stroke: 1px #e5e5e5; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fire { to { background-position: 0 100%; } }
@keyframes pulse { 50% { opacity: .45; } }
@keyframes glitchText {
  0%  { text-shadow: 1.5px 0 #ff2a6d, -1.5px 0 #05d9e8; }
  25% { text-shadow: -1.5px 0 #ff2a6d, 1.5px 0 #05d9e8; }
  50% { text-shadow: none; }
  75% { text-shadow: 1px 1px #ff2a6d, -1px -1px #05d9e8; }
}

.badge {
  display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: .08em;
  padding: 2px 6px; border-radius: 5px; vertical-align: 1px; margin-left: 6px;
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line-2);
}
.badge.owner { background: #fff; color: #000; border-color: #fff; }
.badge.coowner { background: #000; color: #fff; border-color: #d9d9d9; }
.badge.custom-tag {
  color: var(--tag-color);
  background: color-mix(in srgb, var(--tag-color) 18%, var(--surface-3));
  border-color: color-mix(in srgb, var(--tag-color) 55%, var(--line-2));
}
.badge.custom-tag .tag-label { white-space: nowrap; }

.rich { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.rich .emo { width: 28px; height: 28px; vertical-align: -8px; object-fit: contain; margin: 0 1px; }
.rich.jumbo .emo { width: 48px; height: 48px; }
.rich a { color: #cfcfcf; text-decoration: underline; text-decoration-color: #555; }
.mention {
  background: #ffffff1a; color: #fff; padding: 0 4px; border-radius: 5px; font-weight: 600; cursor: pointer;
}
.mention.me { background: #fff; color: #000; }

.atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.att { border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); max-width: 100%; }
.att img { display: block; max-height: 340px; max-width: min(420px, 100%); object-fit: contain; cursor: zoom-in; }
.att video { display: block; max-height: 360px; max-width: min(480px, 100%); background: #000; }
.att.audio { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 260px; }
.att.audio .fn { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.att.audio audio { width: 100%; height: 36px; }
.att.loading { width: 220px; height: 120px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }

.reacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.react {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px 0 5px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2);
  font-size: 12.5px; color: var(--text-2); transition: border-color .15s, background .15s;
}
.react img { width: 20px; height: 20px; object-fit: contain; }
.react:hover { border-color: #444; }
.react.mine { background: #ffffff14; border-color: #8a8a8a; color: #fff; }
.react.add { padding: 0 8px; color: var(--muted); }
.react.add svg { width: 15px; height: 15px; }

.picker {
  position: fixed; z-index: 400; width: 340px; max-width: calc(100vw - 24px); height: 340px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.75); display: flex; flex-direction: column;
  animation: pop .16s var(--ease);
}
.picker .ph-head { padding: 10px 12px 6px; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.picker .grid {
  flex: 1; overflow-y: auto; padding: 4px 8px 10px;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 44px; gap: 2px; align-content: start;
  overflow-x: hidden;
}
.picker .grid button {
  border: none; background: transparent; border-radius: 10px; padding: 5px;
  display: block; min-width: 0; height: 44px; overflow: hidden;
}
.picker .grid .sep { height: auto; align-self: end; }
.picker .grid button:hover { background: var(--surface-3); }
.picker .grid img { width: 100%; height: 100%; object-fit: contain; display: block; }
.picker .sep { grid-column: 1 / -1; font-size: 11px; color: var(--muted); padding: 6px 4px 2px; text-transform: uppercase; letter-spacing: .05em; }

.emoji-suggest { position: fixed; z-index: 410; max-height: min(320px, calc(100vh - 24px)); overflow: hidden; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); box-shadow: 0 18px 50px #000c; }
.emoji-suggest-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 12px 7px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 12px; font-weight: 700; }
.emoji-suggest-head span { color: var(--muted); font-size: 10px; font-weight: 400; }
.emoji-suggest-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; max-height: 270px; overflow-y: auto; padding: 7px; }
.emoji-suggest-item { min-width: 0; padding: 5px 2px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.emoji-suggest-item:hover, .emoji-suggest-item.active { border-color: var(--line-2); background: var(--surface-3); color: #fff; }
.emoji-suggest-item img { width: 30px; height: 30px; object-fit: contain; }
.emoji-suggest-item small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font: 9px/1.2 var(--font); white-space: nowrap; }
.emoji-suggest-empty { padding: 14px; color: var(--muted); font-size: 12px; }

.backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 16px; animation: fade .18s ease;
}
.backdrop.bottom-right { place-items: end; padding: 16px 16px calc(var(--nav-h) + 28px); }
.backdrop.bottom-left { place-items: end start; padding: 16px 16px calc(var(--nav-h) + 28px); }
.panel {
  width: 440px; max-width: 100%; max-height: calc(100vh - 32px); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.8); display: flex; flex-direction: column;
  animation: pop .22s var(--ease);
}
.backdrop.bottom-right .panel, .backdrop.bottom-left .panel { max-height: calc(100vh - var(--nav-h) - 60px); }
.panel.wide { width: 760px; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-size: 16px; font-weight: 600; flex: 1; }
.panel-body { padding: 16px 18px 20px; overflow-y: auto; }
.panel-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }

.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; margin-bottom: 14px; }
.tabs button { flex: 1; height: 32px; border: none; border-radius: 9px; background: transparent; color: var(--text-2); font-weight: 500; font-size: 13px; }
.tabs button.on { background: #fff; color: #000; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2);
  font-size: 13px; display: inline-flex; align-items: center; gap: 8px; transition: border-color .15s;
}
.chip:hover { border-color: #444; }
.chip.on { border-color: #fff; background: #ffffff10; }
.chip .av { cursor: inherit; }

.profile-hero { display: flex; align-items: center; gap: 16px; }
.profile-hero .meta { flex: 1; min-width: 0; }
.profile-hero .meta .uname { font-size: 18px; }
.code-box {
  display: flex; gap: 8px; align-items: center; font-family: ui-monospace, Consolas, monospace; font-size: 12px;
  background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 10px; padding: 8px 10px; color: var(--text-2);
}
.code-box span { flex: 1; overflow: hidden; text-overflow: ellipsis; }

.mrow {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-2); margin-bottom: 8px;
}
.mrow .grow { flex: 1; min-width: 0; }
.mrow .sub { font-size: 12px; color: var(--muted); }
.mrow .txt { font-size: 13.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tag-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.tag-options { display: grid; align-items: end; gap: 10px; margin-top: 10px; }
.tag-create-options { grid-template-columns: 60px minmax(0, 1fr); }
.tag-edit-options { grid-template-columns: minmax(0, 1fr) 52px minmax(120px, .7fr); }
.tag-options .label { margin-top: 0; }
.tag-color-input { width: 52px; height: 40px; padding: 4px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); }
.tag-effect-select { width: 100%; min-width: 120px; padding: 8px 10px; }
.tag-saved-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tag-list-title { margin: 18px 0 8px; font-size: 12px; color: var(--text-2); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.status { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; margin-left: 6px; }
.status.ban { background: #3a1416; color: #ff8a8e; }
.status.to { background: #2c2512; color: #f1c65a; }
@media (max-width: 600px) {
  .mrow { flex-wrap: wrap; }
  .mrow .acts { width: 100%; justify-content: flex-start; }
  .tag-edit-options { grid-template-columns: minmax(0, 1fr) 52px; }
  .tag-edit-options .tag-effect-select { grid-column: 1 / -1; }
}

.toasts { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: #fff; color: #000; padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: pop .2s var(--ease);
}
.toast.err { background: var(--danger); color: #fff; }

.announcement-pill {
  position: fixed; z-index: 700; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 50%;
  transform: translateX(-50%); width: min(740px, calc(100vw - 24px)); max-height: min(180px, calc(100vh - 24px));
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px;
  color: var(--text); background: rgba(18,18,18,.96); border: 1px solid #3a3a3a; border-radius: 999px;
  box-shadow: 0 16px 48px rgba(0,0,0,.7); backdrop-filter: blur(18px); animation: announce-in .24s var(--ease);
}
.announcement-pill.is-ending { opacity: 0; transform: translate(-50%, -8px); transition: opacity .24s, transform .24s; }
.announcement-pill > .av { width: 42px; height: 42px; cursor: default; }
.announcement-copy { flex: 1; min-width: 0; }
.announcement-heading { display: flex; align-items: center; gap: 8px; min-width: 0; }
.announcement-name { font-weight: 700; font-size: 13px; white-space: nowrap; }
.announcement-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.announcement-message { margin-top: 2px; font-size: 14px; line-height: 1.4; max-height: 78px; overflow: auto; overflow-wrap: anywhere; }
.announcement-message .emo { width: 24px; height: 24px; vertical-align: -6px; }
.announcement-preview { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 14px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 20px; }
.announcement-preview > .av { width: 38px; height: 38px; cursor: default; }
.announcement-editor-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; }
.announcement-duration { display: grid; grid-template-columns: 110px minmax(130px, 1fr); gap: 8px; max-width: 300px; }
.announcement-send-row { display: flex; justify-content: flex-end; margin-top: 14px; }
.announcement-help { font-size: 13px; margin-bottom: 12px; }
.announcement-current { margin-top: 18px; padding: 12px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); }
.announcement-current-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
@keyframes announce-in { from { opacity: 0; transform: translate(-50%, -10px) scale(.98); } }
@media (max-width: 600px) {
  .announcement-pill { align-items: flex-start; top: calc(env(safe-area-inset-top, 0px) + 8px); padding: 9px 13px 9px 10px; border-radius: 24px; }
  .announcement-pill > .av { width: 36px; height: 36px; }
  .announcement-message { max-height: 96px; }
}

.lightbox { position: fixed; inset: 0; z-index: 600; background: rgba(0,0,0,.92); display: grid; place-items: center; cursor: zoom-out; animation: fade .15s; }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 8px; }

.banscreen {
  position: fixed; inset: 0; z-index: 1000; background: #000; display: grid; place-items: center; text-align: center; padding: 24px;
}
.banscreen h1 { font-family: var(--logo); font-size: 40px; margin: 0 0 10px; }
.banscreen p { color: var(--text-2); max-width: 380px; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #ffffff22; border-top-color: #fff; animation: spin .7s linear infinite; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; font-size: 14px; }

.pick-list { max-height: 300px; overflow-y: auto; margin-top: 8px; }
.pick { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: none; background: transparent; border-radius: 10px; text-align: left; }
.pick:hover { background: var(--surface-2); }
.pick .av, .pick .uname { cursor: inherit; }
.pick .grow { flex: 1; min-width: 0; }
.check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.check.round { border-radius: 50%; }
.pick.on .check { background: #fff; border-color: #fff; }
.pick.on .check::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #000; border-bottom: 2px solid #000; transform: rotate(-45deg) translate(1px, -1px); }
