:root {
  --bg: #070708;
  --bg-2: #101114;
  --card: #16181e;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f5f7;
  --muted: #9b9eab;
  --red: #ff2d2d;
  --red-2: #b10d0d;
  --ok: #7dcea0;
  --danger: #ff8d8d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font: "Outfit", "Segoe UI", sans-serif;
  --display: "Syne", "Outfit", sans-serif;
  --nav: calc(62px + env(safe-area-inset-bottom));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #050506; }
body {
  font-family: var(--font);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
button, textarea, input { font: inherit; color: inherit; }
button { cursor: pointer; }
#app {
  width: min(100%, 480px);
  height: var(--vvh, 100dvh);
  margin: var(--vvtop, 0) auto 0;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(255, 45, 45, 0.16), transparent 55%),
    var(--bg);
  position: relative;
  overflow: hidden;
}
img { max-width: 100%; display: block; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

.splash, .login, .shell { height: 100%; }
.splash {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
}
.splash img, .login-logo {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 45, 45, 0.45), var(--shadow);
}
.login-logo { width: 72px; height: 72px; border-radius: 22px; }
.splash p {
  margin: 0;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--red);
}
.splash a { color: inherit; text-decoration: none; }

.login {
  display: flex;
  flex-direction: column;
  padding: calc(18px + env(safe-area-inset-top)) 22px calc(22px + env(safe-area-inset-bottom));
  position: relative;
  overflow: auto;
}
.login-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}
.login-hero { margin-top: 14px; }
.eyebrow {
  margin: 12px 0 0;
  color: var(--red);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}
.login h1, .top h1, .sheet h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.login h1 { margin: 4px 0 6px; font-size: 40px; line-height: 0.95; }
.lede { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.45; max-width: 28ch; }
.gate {
  margin: 14px 0 0;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.gate div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}
.gate dt { color: var(--muted); font-size: 13px; }
.gate dd { margin: 0; font-weight: 650; font-size: 14px; }
.login-actions { margin-top: auto; display: grid; gap: 10px; }
.fine { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.deeplinks { color: var(--muted); font-size: 13px; }
.deeplinks summary { cursor: pointer; min-height: 44px; display: grid; align-items: center; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.link-row a {
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn, .send, .icon-btn, .count {
  border: 0;
  border-radius: 14px;
}
.btn {
  min-height: 52px;
  padding: 0 16px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.btn-primary {
  color: white;
  background: linear-gradient(180deg, #ff4a4a, var(--red-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 24px rgba(255, 30, 30, 0.22);
}
.btn-ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-danger { background: transparent; color: var(--danger); }
.btn:active, .send:active { transform: translateY(1px); }

.shell { display: flex; flex-direction: column; min-height: 0; }
.top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  border-bottom: 1px solid var(--line);
  min-height: 64px;
}
.brand-mark { width: 36px; height: 36px; border-radius: 12px; object-fit: cover; }
.top-text { min-width: 0; flex: 1; }
.top h1 { margin: 0; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.icon-btn, .count {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  flex: none;
}
.count { width: auto; min-width: 40px; padding: 0 10px; color: #d7ffe8; font-weight: 700; }
.icon-btn svg, .send svg { width: 20px; height: 20px; }
.preview-bar {
  margin: 0;
  padding: 8px 14px;
  background: #3a2208;
  color: #ffd7a1;
  font-size: 12px;
  line-height: 1.35;
}
.preview-bar a { color: #fff; }
.login > .preview-bar { margin: -18px -22px 12px; }
.banner-slot { padding: 0 14px; }
.banner {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
}
.banner.bad { background: rgba(255, 45, 45, 0.1); color: #ffd0d0; }
.banner.ok { background: rgba(125, 206, 160, 0.1); color: var(--ok); }
.banner.link { display: block; text-align: center; color: white; text-decoration: none; background: rgba(255, 255, 255, 0.04); }

.msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.day {
  align-self: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0;
}
.row { display: flex; flex-direction: column; align-items: flex-start; max-width: 100%; gap: 4px; }
.row.mine { align-items: flex-end; }
.who { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }
.bubble {
  max-width: min(86%, 340px);
  padding: 10px 12px;
  border-radius: 16px;
  border-bottom-left-radius: 6px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  line-height: 1.4;
  font-size: 15px;
}
.row.mine .bubble {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 6px;
  background: linear-gradient(180deg, #ff3d3d, #a50c0c);
  box-shadow: none;
}
.bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.bubble .locked { color: var(--muted); font-size: 13px; }
.row.mine .bubble .locked { color: rgba(255, 255, 255, 0.8); }
.row time { font-size: 11px; color: var(--muted); }
.file-link {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  font-size: 13px;
}
.empty-block {
  margin: auto;
  text-align: center;
  color: var(--muted);
  max-width: 28ch;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.lock-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--red);
}
.lock-badge svg { width: 18px; height: 18px; }

.composer {
  padding: 8px 12px 8px;
  border-top: 1px solid var(--line);
}
.file-chip {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
}
.file-chip button { border: 0; background: none; color: var(--muted); font-size: 18px; }
.composer-row { display: flex; gap: 8px; align-items: flex-end; }
textarea {
  flex: 1;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 0;
  background: #0c0d11;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 16px;
}
textarea:focus { outline: 1px solid rgba(255, 45, 45, 0.7); }
.send {
  width: 44px;
  height: 44px;
  flex: none;
  color: white;
  background: linear-gradient(180deg, #ff4a4a, var(--red-2));
}
.send:disabled { opacity: 0.45; }

.tabbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.tabbar button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}
.tabbar button.on { color: white; background: rgba(255, 45, 45, 0.14); }

.thread, .person {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 12px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--line);
}
.thread small, .person small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.thread-body, .person span:last-child { min-width: 0; flex: 1; }
.thread strong, .person strong { display: block; }
.thread time { color: var(--muted); font-size: 11px; }
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 750;
  flex: none;
}
.msgs.threads { gap: 8px; }

.backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.58); z-index: 4; }
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  max-height: 78%;
  overflow: auto;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: #121318;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.45);
}
.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  margin: 4px auto 8px;
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet h2 { margin: 0; font-size: 22px; }
.sheet-head button { border: 0; background: none; color: var(--muted); font-size: 28px; line-height: 1; }
.sheet-note { color: var(--muted); font-size: 14px; line-height: 1.45; }
.sheet-list { margin: 0 0 16px; padding-left: 18px; color: var(--text); }
.sheet-list li { margin: 8px 0; line-height: 1.4; }
.sheet .btn { width: 100%; margin-top: 8px; }
.person { margin-bottom: 8px; }
.person:disabled { opacity: 0.55; }

.overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 24px;
  background: rgba(5, 5, 6, 0.82);
  backdrop-filter: blur(8px);
}
.overlay h2 { margin: 0 0 8px; font-family: var(--display); font-size: 28px; }
.overlay p { margin: 0; color: var(--muted); max-width: 28ch; }
.spinner {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--red);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner, .pulse { animation: none; }
}

.muzz-sticker {
  display: inline-block;
  width: 148px;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-radius: 22px;
  background: transparent;
}
.emoji-sheet {
  margin: 0 0 10px;
  border-radius: 18px;
  background: rgba(8, 8, 10, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 42, 42, 0.28);
  overflow: hidden;
}
.emoji-sheet[hidden] { display: none !important; }
.emoji-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 8px 8px 0;
  scrollbar-width: none;
}
.emoji-tabs::-webkit-scrollbar { display: none; }
.emoji-tab {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #8e939e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 12px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.emoji-tab.on {
  color: #fff;
  background: rgba(255, 42, 42, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 42, 42, 0.45);
}
.emoji-btn {
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  min-width: 0;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 0;
}
.emoji-btn:hover,
.emoji-btn:focus-visible { background: rgba(255, 42, 42, 0.12); }
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 280px;
  overflow: auto;
  padding: 10px 12px 12px;
}
.sticker-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 16px;
  padding: 8px 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #f4f5f7;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.sticker-tile img {
  width: 100%;
  height: 108px;
  object-fit: contain;
  border-radius: 14px;
}
.sticker-tile span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.sticker-tile:hover,
.sticker-tile:focus-visible { background: rgba(255, 42, 42, 0.1); }
.build-tag {
  margin: 2px 0 0;
  color: #8e939e;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chat-me {
  margin: 0;
  color: #ff6565;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.chat-kicker {
  margin: 0;
  color: #8e939e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.chat-title {
  margin: 1px 0 0;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: #f4f5f7;
}
.empty-chat {
  margin: auto;
  text-align: center;
  color: #8e939e;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 24px 12px;
}
.empty-chat img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 42, 42, 0.4);
}
.empty-chat p { margin: 8px 0 0; color: #f4f5f7; font-weight: 700; }
.empty-chat span { font-size: 13px; }
.emoji-toggle {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #c5c8d0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.emoji-toggle[aria-pressed="true"] { color: #ff2a2a; }
.emoji-window {
  max-height: 232px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  padding: 6px 8px 10px;
}
.emoji-window.sticker-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 300px;
  padding: 10px 12px 14px;
}

@media (min-width: 800px) {
  body:has(#app) { display: grid; place-items: center; }
  #app {
    height: min(var(--vvh, 100dvh), 900px);
    border-radius: 28px;
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

/* Phone portrait uses the flat bar. Desktop and short landscape keep the orbit rail. */
:root { --muzz-nav-h: 54px; }
.muzz-nav {
  display: none;
  position: fixed;
  z-index: 80;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(var(--muzz-nav-h) + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  align-items: stretch;
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: #0c0c0e;
  color: rgba(244, 245, 247, 0.62);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.muzz-nav-item {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 4px 2px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: none;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, color 0.12s ease;
}
.muzz-nav-item.is-on,
.muzz-nav-item[aria-current="page"] { color: #ff2a2a; }
.muzz-nav-item.is-open { color: #ff5a5a; }
.muzz-nav-item.is-on::before,
.muzz-nav-item[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 16px;
  height: 2px;
  margin-left: -8px;
  border-radius: 2px;
  background: #ff2a2a;
  box-shadow: 0 0 8px rgba(255, 42, 42, 0.9);
  pointer-events: none;
}
.muzz-nav-item::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 36, 36, 0.72) 0%, rgba(255, 36, 36, 0.28) 42%, transparent 70%);
  opacity: 0;
  transform: scale(0.3);
  pointer-events: none;
}
.muzz-nav-item:active {
  transform: scale(0.92);
  color: #ff4a4a;
}
.muzz-nav-item:active::after {
  animation: muzz-nav-ripple 420ms ease-out forwards;
}
.muzz-nav-svg { width: 18px; height: 18px; display: block; }
.muzz-nav .people-btn {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 4px 2px 6px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: none;
}
.muzz-nav .people-btn .badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 20px);
  z-index: 2;
}
.mobile-top > .people-btn,
#chatHeader .people-btn { display: none; }
body:has(.muzz-nav) .muzz-tabbar { display: none; }
html.muzz-standalone body:has(.muzz-nav) { --muzz-tab: 0px; }
html.muzz-standalone body:has(.muzz-nav) .composer { padding-bottom: 8px; }
@keyframes muzz-nav-ripple {
  0% { opacity: 0.9; transform: scale(0.35); }
  100% { opacity: 0; transform: scale(1.35); }
}
/* Orbit dock: desktop and short landscape. Same rail as 1.0.27. */
.orbit-dock {
  position: fixed;
  z-index: 80;
  left: 50%;
  right: auto;
  width: min(300px, calc(100vw - 48px));
  transform: translateX(-50%);
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: 1fr 58px 1fr;
  align-items: center;
  min-height: 0;
  padding: 3px 4px 4px;
  border-radius: 24px;
  color: #f4f5f7;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.6px),
    radial-gradient(circle at 62% 68%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.5px),
    radial-gradient(circle at 84% 22%, rgba(255, 80, 80, 0.9) 0 1.1px, transparent 1.8px),
    radial-gradient(circle at 40% 18%, rgba(255, 255, 255, 0.35) 0 1px, transparent 1.4px),
    linear-gradient(180deg, rgba(22, 18, 24, 0.78), rgba(8, 8, 12, 0.9));
  border: 1px solid rgba(255, 42, 42, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(255, 24, 24, 0.22);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.orbit-indicator {
  position: absolute;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: #ff2a2a;
  box-shadow: 0 0 12px #ff2a2a;
  bottom: 3px;
  left: 20%;
  transform: translateX(-50%);
  transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1), top 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.orbit-dock[data-place="private"] .orbit-indicator { left: 80%; }
.orbit-item,
.orbit-core {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  min-height: 44px;
  padding: 2px 2px 1px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: rgba(244, 245, 247, 0.62);
  text-decoration: none;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.orbit-item.is-on,
.orbit-item[aria-current="page"] { color: #fff; }
.orbit-item:hover,
.orbit-item:focus-visible { color: #fff; }
.orbit-svg { width: 18px; height: 18px; display: block; }
.orbit-core {
  width: 58px;
  min-height: 50px;
  color: #fff;
  justify-self: center;
  gap: 1px;
}
.orbit-planet {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}
.orbit-planet img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 1px rgba(255, 42, 42, 0.7), 0 0 16px rgba(255, 30, 30, 0.45);
}
.orbit-planet::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 58%, #ff2a2a 78%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 100%);
  animation: orbit-spin 7s linear infinite;
  pointer-events: none;
}
.orbit-core.is-open .orbit-planet::before { animation-duration: 2.2s; }
.orbit-core-label { line-height: 1; }
.orbit-dock .orbit-core.people-btn {
  position: relative;
  display: flex;
  width: 58px;
  height: auto;
  padding: 2px 2px 1px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #fff;
  font-size: 9px;
}
.orbit-dock .orbit-core .badge {
  position: absolute;
  top: 2px;
  right: 8px;
  z-index: 2;
}
body:has(.orbit-dock) .muzz-tabbar { display: none; }
html.muzz-standalone body:has(.orbit-dock) { --muzz-tab: 0px; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
/* Wide screens, and phones turned sideways (short landscape), use the left rail. */
@media (min-width: 1024px), (orientation: landscape) and (max-height: 500px) {
  .muzz-nav { display: none; }
  .orbit-dock {
    top: 12px;
    bottom: 12px;
    left: 12px;
    right: auto;
    width: 72px;
    transform: none;
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    border-radius: 28px;
  }
  .orbit-indicator {
    width: 3px;
    height: 28px;
    left: 10px;
    bottom: auto;
    top: 24%;
    transform: translateY(-50%);
  }
  .orbit-dock[data-place="private"] .orbit-indicator { left: 10px; top: 76%; }
  .orbit-item:hover { transform: translateY(-1px); }
}
/* Phone portrait, and landscape windows taller than a phone, use the flat bar. */
@media (max-width: 1023px) and (orientation: portrait),
       (max-width: 1023px) and (min-height: 501px) {
  .muzz-nav { display: flex; }
  .orbit-dock { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .muzz-nav-item,
  .orbit-planet::before,
  .orbit-indicator,
  .orbit-item,
  .sidebar { transition: none; animation: none; }
  .muzz-nav-item:active { transform: none; }
  .muzz-nav-item:active::after { animation: none; }
  .orbit-item:hover { transform: none; }
}
