@font-face{
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/vendor/plus-jakarta-sans-12.0.0-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face{
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/vendor/plus-jakarta-sans-12.0.0-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face{
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/vendor/plus-jakarta-sans-12.0.0-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/vendor/plus-jakarta-sans-12.0.0-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: 'Flag Emoji'; font-display: swap;
  src: url('/vendor/twemoji-country-flags-0.1.10.woff2') format('woff2');
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
}
:root{
  color-scheme: dark;
  --bg: #0a0f1e;
  --glow-1: rgba(80, 100, 230, 0.20);
  --glow-2: rgba(120, 60, 160, 0.12);
  --panel: #10172b;
  --panel-2: #131b33;
  --raised: #1a2341;
  --raised-2: #212b4d;
  --input: #18213d;
  --line: rgba(160, 180, 255, 0.08);
  --line-strong: rgba(160, 180, 255, 0.14);
  /* the edge of text fields, switches and the message box (Higher contrast makes it stronger, a11y.css) */
  --field-line: var(--line-strong);
  --text: #e9edf9;
  --soft: #c3cae0;
  --muted: #8e98b8;
  --faint: #626d90;
  --accent: #6b85ff;
  /* the accent behind white text: buttons, the focused menu entry, badges. Higher contrast darkens it (a11y.css). */
  --accent-strong: var(--accent);
  --accent-2: #8fa3ff;
  --accent-soft: rgba(107, 133, 255, 0.16);
  --badge: #f0444f;
  --mention-bg: rgba(240, 68, 79, 0.09);
  /* The corner radius of every avatar, as a share of its side. One ratio at every size, so the opening of an avatar frame (avatar-frames.js) fits all of them. */
  --avatar-ratio: 0.3;
  --avatar-radius: calc(var(--avatar-ratio) * 100%);
  --online: #3ccf8b;
  --away: #f5b544;
  --busy: #f0444f;
  --offline: #5a6485;
  --danger: #f0565f;
  /* the warning colour behind white text. Higher contrast darkens it (a11y.css). */
  --danger-strong: var(--danger);
  --font: 'Flag Emoji', 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
  --r-xs: 6px;
  --r-sm: 9px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow: 0 18px 50px rgba(2, 5, 15, 0.55);
}
*{ box-sizing: border-box; }
html,body{ height: 100%; margin: 0; }
@media (display-mode: standalone){
html{ min-height: min(100lvh, calc(100% + env(safe-area-inset-top))); }
}
body{
  background:
    radial-gradient(900px 500px at 0% 0%, var(--glow-1), transparent 70%),
    radial-gradient(700px 500px at 100% 100%, var(--glow-2), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 0.9375rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button,input,textarea,select{ font: inherit; color: inherit; }
button{ cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }
a{ color: var(--accent-2); }
svg{ flex: none; }
[hidden]{ display: none !important; }
.boot{ position: fixed; inset: 0; display: grid; place-items: center; color: var(--faint); }
html.vp-settling #root{ visibility: hidden; }
html.vp-settling body::after{
  content: 'Loading…'; position: fixed; top: 0; left: 0; right: 0; height: 100lvh;
  display: grid; place-items: center; color: var(--faint); pointer-events: none;
}
::-webkit-scrollbar{ width: 10px; height: 10px; }
::-webkit-scrollbar-thumb{ background: var(--raised); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track{ background: transparent; }
::-webkit-scrollbar-corner{ background: transparent; }
@supports not selector(::-webkit-scrollbar){
*{ scrollbar-color: var(--raised) transparent; }
}
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; background: var(--raised);
  transition: background .12s, filter .12s;
}
@media (hover: hover){
.btn:hover{ background: var(--raised-2); }
}
.btn:disabled{ opacity: .55; cursor: default; }
.btn.primary{ background: var(--accent-strong); color: #fff; }
@media (hover: hover){
.btn.primary:hover{ filter: brightness(1.1); }
}
.btn.danger{ background: var(--danger-strong); color: #fff; }
.btn.ghost{ background: none; color: var(--muted); }
@media (hover: hover){
.btn.ghost:hover{ color: var(--text); }
}
.btn.block{ width: 100%; }
.btn.sm{ padding: 6px 12px; font-size: 0.84375rem; }
.icon-btn{
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--muted);
  position: relative; transition: background .12s, color .12s;
}
@media (hover: hover){
.icon-btn:hover{ background: var(--raised); color: var(--text); }
}
.icon-btn.on{ color: var(--text); background: var(--raised); }
.icon-btn.on::after{
  content: ''; position: absolute; bottom: -7px; left: 50%; translate: -50% 0; width: 18px; height: 2px; border-radius: 2px; background: var(--accent);
}
.icon-btn .count{
  position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px;
  background: var(--badge); color: #fff; font-size: 0.65625rem; font-weight: 700; line-height: 16px; text-align: center;
  border: 2px solid var(--bg); box-sizing: content-box;
}
.badge{
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--badge); color: #fff;
  font-size: 0.71875rem; font-weight: 700; display: inline-grid; place-items: center; flex: none;
}
.field{ display: block; margin-bottom: 14px; }
.field > span{ display: block; font-size: 0.8125rem; font-weight: 600; color: var(--soft); margin-bottom: 6px; }
.field input,.field textarea,.field select,.input{
  width: 100%; background: var(--bg); border: 1px solid var(--field-line); border-radius: var(--r-sm);
  padding: 10px 12px; outline: none; transition: border-color .12s;
}
.field input:focus,.field textarea:focus,.field select:focus,.input:focus{ border-color: var(--accent); }
.field .hint{ font-size: 0.78125rem; color: var(--faint); margin-top: 6px; display: block; font-weight: 400; }
.form-error{ color: var(--danger); font-size: 0.875rem; margin: -4px 0 12px; }
.form-error:empty{ display: none; }
.human-check{ display: flex; justify-content: center; margin: 0 0 12px; }
.human-check:empty{ display: none; }
.human-check-note{ display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 0 0 12px; color: var(--danger); font-size: 0.875rem; text-align: center; }
.human-check-note[hidden]{ display: none; }
.avatar{
  width: 40px; height: 40px; border-radius: var(--avatar-radius); display: grid; place-items: center; flex: none;
  font-weight: 700; font-size: 0.9375rem; color: #0d1326; position: relative; user-select: none;
  background-image: linear-gradient(160deg, rgba(255,255,255,.28), rgba(255,255,255,0) 60%);
}
.avatar.lg{ width: 72px; height: 72px; font-size: 1.625rem; }
.avatar.sm{ width: 34px; height: 34px; font-size: 0.8125rem; }
.avatar.xs{ width: 18px; height: 18px; font-size: 0.5rem; }
.avatar .dot{
  position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%;
  border: 3px solid var(--panel); background: #4a5475; box-sizing: content-box;
}
.avatar .dot{ z-index: 1; }
.avatar .dot.on,.avatar .dot.online{ background: var(--online); }
.avatar .dot.away{ background: var(--away); }
.avatar .dot.busy{ background: var(--busy); }
.avatar .dot.away::after{   /* crescent */
  content: ''; position: absolute; width: 60%; height: 60%; border-radius: 50%; background: var(--dot-cut, var(--panel)); top: -5%; left: -5%;
}
.avatar .dot.busy::after{   /* minus bar */
  content: ''; position: absolute; left: 22%; right: 22%; top: 50%; height: 2px; translate: 0 -50%; border-radius: 2px; background: var(--dot-cut, var(--panel));
}
.avatar .dot{ overflow: hidden; }
.avatar .dot.offline,.avatar .dot:not(.on):not(.online):not(.away):not(.busy){ background: var(--offline); }
.tile{
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none;
  font-weight: 800; font-size: 0.9375rem; color: #0d1326; letter-spacing: -0.02em;
  background-image: linear-gradient(160deg, rgba(255,255,255,.3), rgba(255,255,255,0) 65%);
}
.tile.sm{ width: 32px; height: 32px; border-radius: 10px; font-size: 0.75rem; }
.tile.has-img{ background-image: none; overflow: hidden; }
.tile > img{ width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.auth{ position: fixed; inset: 0; overflow-y: auto; display: grid; place-items: center; padding: 24px 16px; }
.auth-card{
  width: 100%; max-width: 410px; background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: 20px; padding: 32px 28px 28px; box-shadow: var(--shadow);
}
.auth-card h1{ font-size: 1.75rem; line-height: 1.15; font-weight: 800; margin: 16px 0 6px; letter-spacing: -0.02em; }
.auth-card p.lede{ color: var(--muted); margin: 0 0 22px; }
.auth-card .logo{ width: 46px; height: 46px; }
.auth-switch{ margin-top: 16px; color: var(--muted); font-size: 0.875rem; }
.auth-switch button{ color: var(--accent-2); font-weight: 600; }
.app{
  position: fixed; inset: 0; display: grid; gap: 10px;
  /* keeps the top bar and rail clear of a notch, rounded corners and the home bar when installed */
  padding: env(safe-area-inset-top) calc(10px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
  grid-template-columns: 66px minmax(0, 1fr) 300px;
  grid-template-rows: 64px minmax(0, 1fr);
  grid-template-areas: "top top top" "rail work side";
}
.brand{ width: 66px; display: grid; place-items: center; flex: none; }
.tabs{
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 6px 2px; mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
}
.tabs::-webkit-scrollbar{ display: none; }
.tab{
  display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--tab-bg, var(--panel-2)) 70%, transparent); border: 1px solid var(--line); min-width: 170px; max-width: 230px; flex: none;
  text-align: left; transition: background .12s, border-color .12s;
}
@media (hover: hover){
.tab:hover{ background: var(--tab-hover, var(--raised)); }
}
.tab.active{ border-color: var(--accent); background: var(--tab-bg, var(--panel-2)); box-shadow: 0 0 0 3px var(--accent-soft); }
.tab .info{ min-width: 0; flex: 1; line-height: 1.2; }
.tab .name{ display: block; font-weight: 700; font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab .meta{ display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.tab .badge{ height: 17px; min-width: 17px; font-size: 0.65625rem; padding: 0 5px; }
.rail{
  grid-area: rail; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 0 6px;
  overflow-y: auto; scrollbar-width: none; min-height: 0;
}
.rail::-webkit-scrollbar{ display: none; }
.rail hr{ width: 26px; border: 0; border-top: 1px solid var(--line-strong); margin: 2px 0; flex: none; }
.work{
  grid-area: work; display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 0; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.sidebar{ display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--panel); }
.channels{ flex: 1; overflow-y: auto; padding: 8px 10px 16px; }
.channel{
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; margin: 2px 0;
  border-radius: var(--r-sm); color: var(--muted); text-align: left; position: relative; cursor: pointer;
}
.channel .label{ flex: 1; min-width: 0; line-height: 1.2; }
.channel .name{ display: block; font-weight: 600; font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover){
.channel:hover{ background: rgba(255,255,255,.035); color: var(--soft); }
}
.channel.active{ background: var(--raised); color: var(--text); }
.channel.unread{ color: var(--text); }
.channel.unread .name{ font-weight: 700; }
.channel.unread::before{
  content: ''; position: absolute; left: -10px; top: 50%; translate: 0 -50%; width: 4px; height: 8px;
  background: var(--text); border-radius: 0 4px 4px 0;
}
.channel .edit{ opacity: 0; color: var(--muted); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; }
.channel .edit:focus-visible{ opacity: 1; }
@media (hover: hover){
.channel:hover .edit{ opacity: 1; }
}
@media (hover: hover){
.channel .edit:hover{ color: var(--text); background: var(--raised-2); }
}
@media (hover: hover){
.channel:hover .badge{ display: none; }
}
.chat{ display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--panel-2); }
.messages{ flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 0 10px; overscroll-behavior: contain; position: relative; }
.welcome .hash{
  width: 60px; height: 60px; border-radius: 18px; background: var(--raised); display: grid; place-items: center; color: var(--accent-2);
}
.welcome h2{ font-size: 1.625rem; font-weight: 800; margin: 14px 0 4px; letter-spacing: -0.02em; }
.welcome p{ margin: 0; color: var(--muted); }
@keyframes flash{ 0%, 35% { background: var(--accent-soft); } 100% { background: transparent; } }
.attachments{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.attachments button{ border-radius: var(--r-md); overflow: hidden; background: var(--raised); display: block; line-height: 0; }
.attachments img{ display: block; max-width: min(400px, 100%); max-height: 300px; width: auto; height: auto; object-fit: cover; }
.attachments button{ cursor: zoom-in; }
.text code{ font-family: var(--mono); font-size: 0.8125rem; background: var(--bg); padding: 2px 5px; border-radius: 5px; }
.text pre{
  font-family: var(--mono); font-size: 0.8125rem; background: var(--bg); border: 1px solid var(--line-strong);
  padding: 10px 12px; border-radius: var(--r-sm); margin: 4px 0; overflow-x: auto; white-space: pre; max-width: 100%;
}
.text pre code{ background: none; padding: 0; }
.text blockquote{ margin: 2px 0; padding-left: 12px; border-left: 3px solid var(--line-strong); }
.text a.masked{ text-decoration: none; }
@media (hover: hover){
.text a.masked:hover{ text-decoration: underline; }
}
.mention{
  background: var(--accent-soft); color: var(--accent-2); font-weight: 600; padding: 0 4px; border-radius: 5px; cursor: pointer;
  display: inline; text-align: inherit; line-height: normal;
}
.mention.me{ background: rgba(240, 68, 79, .16); color: #ff8a92; }
.composer{ flex: none; padding: 0 18px 14px; position: relative; }
.below{ height: 26px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.78125rem; color: var(--muted); padding: 0 2px; }
.below .typing{ flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.below .count{ flex: none; }
.below .typing b{ color: var(--text); font-weight: 700; }
.below .count{ color: var(--faint); }
.below .count.over{ color: var(--danger); }
.side{
  grid-area: side; display: flex; flex-direction: column; min-height: 0; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.member{ display: flex; align-items: center; gap: 11px; padding: 6px 8px; border-radius: var(--r-sm); width: 100%; text-align: left; }
.member + .member{ margin-top: 4px; }
@media (hover: hover){
.member:hover{ background: rgba(255,255,255,.035); }
}
.member .who{ flex: 1; min-width: 0; line-height: 1.25; }
.member .who strong{ display: block; font-weight: 700; font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member.off .avatar{ opacity: .55; }
.member.off strong{ color: var(--muted); }
.member .crown{ color: #f5c04e; }
.result{
  display: block; width: 100%; text-align: left; padding: 10px; border-radius: var(--r-sm); background: var(--panel-2);
  border: 1px solid var(--line); margin-bottom: 8px;
}
@media (hover: hover){
.result:hover{ border-color: var(--line-strong); background: var(--raised); }
}
.result mark{ background: rgba(245, 192, 78, .25); color: inherit; border-radius: 3px; padding: 0 1px; }
.scrim{
  position: fixed; inset: 0; z-index: 40; background: rgba(4, 7, 18, 0.72); backdrop-filter: blur(3px);
  display: grid; place-items: center; animation: fade .12s ease-out;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
@keyframes fade{ from { opacity: 0; } }
.modal{
  width: 100%; max-width: 450px; background: var(--panel); border-radius: 18px; border: 1px solid var(--line-strong);
  animation: pop .14s ease-out; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: var(--shadow);
}
@keyframes pop{ from { transform: scale(.97); opacity: 0; } }
.modal header{ padding: 24px 24px 6px; }
.modal header h2{ font-size: 1.3125rem; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.01em; }
.modal header p{ margin: 0; color: var(--muted); font-size: 0.90625rem; }
.modal .body{ padding: 14px 24px 4px; }
.modal footer{ display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px 20px; }
.choice{ display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; margin-bottom: 14px; }
.choice label{
  display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: var(--r-sm); background: var(--raised);
  cursor: pointer; border: 1px solid transparent; font-weight: 600;
}
.choice label:has(input:checked){ border-color: var(--accent); background: var(--accent-soft); }
.choice input{ accent-color: var(--accent); }
.field .choice input{ width: auto; flex: none; margin: 0; padding: 0; }
.field .choice label{ justify-content: flex-start; text-align: left; }
.quote-box{ background: var(--bg); border-radius: var(--r-md); padding: 10px 12px; max-height: 140px; overflow: hidden; white-space: pre-wrap; color: var(--soft); font-size: 0.875rem; }
#toasts{ position: fixed; top: calc(78px + env(safe-area-inset-top)); left: 50%; translate: -50% 0; z-index: 80; display: grid; gap: 8px; justify-items: center; }
.toast{
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 0.875rem;
  animation: pop .14s ease-out; box-shadow: var(--shadow); max-width: 90vw;
}
.toast:has(.toast-x){ display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; }
.toast-x{ flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 1.125rem; line-height: 1; opacity: .75; }
.toast-x:focus-visible{ opacity: 1; background: rgba(0, 0, 0, .12); }
@media (hover: hover){
.toast-x:hover{ opacity: 1; background: rgba(0, 0, 0, .12); }
}
.toast.error{ background: var(--danger-strong); color: #fff; }
.toast-link{ color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
@media (max-width: 1180px){
.app{ grid-template-columns: 66px minmax(0, 1fr); grid-template-areas: "top top" "rail work"; }
.side{ display: none; }
}
@media (max-width: 760px), (hover: none) and (max-height: 500px) and (max-width: 1000px){
.app{ grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "servers" "work" "bar"; --top-pad: max(0px, calc(env(safe-area-inset-top) - 12px)); padding: var(--top-pad) env(safe-area-inset-right) 0 env(safe-area-inset-left); gap: 0; grid-template-rows: 58px auto minmax(0, 1fr) auto; }
.rail{ display: none; }
.brand{ width: 52px; }
.work{ border-radius: 16px 16px 0 0; grid-template-columns: minmax(0, 1fr) !important; border-bottom: 0; }
.sidebar{ display: none; }
.composer{ padding: 0 10px 4px; }
.below{ height: 24px; padding: 0 52px; }
.field input{ font-size: 16px; }
.attachments img{ max-width: 100%; }
}
@media (hover: none){
.channel .edit{ opacity: 1; }
}
@media (prefers-reduced-motion: reduce){
:root:not([data-motion="full"]) *,:root:not([data-motion="full"]) *::before,:root:not([data-motion="full"]) *::after{ animation: none !important; transition: none !important; }
}
.sidebar .channels{ padding-top: 4px; }
.avatar .dot{ --dot-cut: var(--panel); }
.member .avatar .dot{ --dot-cut: var(--panel); }
.people{ display: grid; gap: 2px; max-width: 820px; }
.icon-btn.round{ border-radius: 50%; background: var(--raised); width: 36px; height: 36px; }
@media (hover: hover){
.icon-btn.round:hover{ background: var(--raised-2); }
}
@media (hover: hover){
.icon-btn.round.ok:hover{ color: var(--online); }
}
.pill{ font-size: 0.75rem; font-weight: 700; color: var(--muted); background: var(--raised); padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.promos{ margin-top: 36px; }
.pick{ display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-sm); text-align: left; width: 100%; }
@media (hover: hover){
.pick:hover{ background: var(--raised); }
}
.pick.on{ background: var(--accent-soft); }
.pick .who{ flex: 1; min-width: 0; line-height: 1.25; }
.pick strong{ display: block; font-weight: 700; font-size: 0.875rem; }
.pick small{ color: var(--faint); font-size: 0.75rem; }
.pick .check{ width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-strong); display: grid; place-items: center; color: #fff; flex: none; }
.pick.on .check{ background: var(--accent); border-color: var(--accent); }
.pick .avatar .dot{ border-color: var(--panel); }
.modal.settings{
  max-width: 820px; height: min(680px, calc(100vh - 32px)); height: min(680px, calc(100dvh - 32px));
  display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); position: relative; overflow: hidden;
}
@media (max-width: 760px), (hover: none) and (max-height: 500px) and (max-width: 1000px){
.modal.settings{
    max-width: none; height: 100%; max-height: none; border-radius: 0; border: 0;
    grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; grid-template-rows: auto minmax(0, 1fr);
    padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
  }
.modal.settings::before{ content: ''; grid-area: 1 / 1 / 2 / -1; background: color-mix(in srgb, var(--bg) 35%, transparent); border-bottom: 1px solid var(--line); }
}
.field input[type="range"],input[type="range"]{
  grid-column: 1 / -1; -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; outline-offset: 6px;
  padding: 0; border: 0; margin: 8px 0 4px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--raised-2) var(--fill, 50%)); cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb{ -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
input[type="range"]::-moz-range-thumb{ width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.meter{ flex: 1; min-width: 120px; height: 10px; border-radius: 99px; background: var(--raised-2); overflow: hidden; }
.meter i{ display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--online), var(--away)); border-radius: 99px; transition: width .06s linear; }
.meter i[data-hot="1"]{ background: linear-gradient(90deg, var(--online), var(--away), var(--busy)); }
.hint{ font-size: 0.78125rem; color: var(--faint); margin: 8px 0 0; }
.switch{ position: relative; width: 42px; height: 24px; flex: none; }
.switch input{ opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span{ position: absolute; inset: 0; border-radius: 99px; background: var(--raised-2); transition: background .15s; }
.switch span::after{ content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: translate .15s; }
.switch input:checked + span{ background: var(--accent); }
.switch input:checked + span::after{ translate: 18px 0; }
.switch input:focus-visible + span{ outline: 2px solid var(--accent); outline-offset: 2px; }
.welcome .avatar.lg{ width: 60px; height: 60px; font-size: 1.375rem; }
.avatar.has-img{ background-image: none; }
.avatar > img{ width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.cropper{ display: flex; gap: 18px; align-items: center; padding: 14px; border: 1px solid var(--accent); border-radius: var(--r-md); margin-bottom: 14px; background: var(--accent-soft); flex-wrap: wrap; }
.cropper.wide{ flex-direction: column; align-items: stretch; }
.rail{ position: relative; }
.chat:focus{ outline: none; }
.sr-only{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body > .sr-only{ position: fixed; top: 0; left: 0; }
[data-action="profile-card"][data-id]{ -webkit-touch-callout: none; }
.user-badge{ display: inline-flex; flex: none; width: 32px; height: 32px; user-select: none; }
.user-badge:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.user-badge img,.user-badge svg{ width: 100%; height: 100%; }
.user-badge picture{ display: contents; }
:root{ --tab-grad-outline: drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000) drop-shadow(0 1px 0 #000) drop-shadow(0 -1px 0 #000);
  --tab-text-outline: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 1px 3px rgba(0, 0, 0, .8); }
.tab .info,.channel .label,.member .who{ display: flex; flex-direction: column; }
.tab .name,.channel .name,.member .who strong{
  padding-block: 0.2em; margin-block: -0.2em;
}
.board{ --board-a: #0e1428; --board-b: #121a33; flex: 1; min-height: 0; overflow: auto; background: linear-gradient(135deg, var(--board-a), var(--board-b)); }
.board[data-bg="dusk"]{ --board-a: #2a1a52; --board-b: #5a2a78; }
.board[data-bg="ocean"]{ --board-a: #0b2a4a; --board-b: #11607a; }
.board[data-bg="forest"]{ --board-a: #0f2a22; --board-b: #1d4a36; }
.board[data-bg="ember"]{ --board-a: #3a1710; --board-b: #7a3416; }
.board[data-bg="rose"]{ --board-a: #3a1230; --board-b: #7a2a5a; }
.board[data-bg="slate"]{ --board-a: #1b2230; --board-b: #2e3a4f; }
.board[data-bg="paper"]{ --board-a: #d9dbe6; --board-b: #eceef5; }
.note{
  position: absolute; width: 220px; min-height: 150px; padding: 14px 14px 12px; border-radius: var(--r-sm); background: var(--note);
  color: #20243a; box-shadow: 0 10px 24px rgba(2, 5, 15, 0.35), 0 1px 0 rgba(255, 255, 255, 0.35) inset; cursor: grab; touch-action: none; user-select: none;
  transform: rotate(-0.6deg); transition: box-shadow .15s;
}
.note:nth-child(even){ transform: rotate(0.7deg); }
@media (hover: hover){
.note:hover{ box-shadow: 0 14px 30px rgba(2, 5, 15, 0.45), 0 1px 0 rgba(255, 255, 255, 0.35) inset; }
}
.note textarea{
  width: 100%; min-height: 84px; resize: vertical; border: 0; outline: 0; border-radius: var(--r-xs); padding: 6px 8px;
  background: rgba(255, 255, 255, 0.45); color: #20243a; font: 600 0.90625rem/1.4 var(--font); user-select: text; touch-action: auto;
}
.note textarea:focus{ background: rgba(255, 255, 255, 0.7); }
.note:focus-visible{ outline: 3px solid var(--accent); outline-offset: 3px; }
.board:focus-visible{ outline: 2px solid var(--accent); outline-offset: -2px; }
.board.editing .note{ cursor: grab; }
.channel.muted:not(.active){ opacity: .5; }
@media (hover: hover){
.channel.muted:not(.active):hover{ opacity: .8; }
}
.tooltip{
  position: fixed; left: 0; top: 0; z-index: 1000; max-width: 220px; padding: 6px 10px; border-radius: var(--r-sm);
  background: var(--bg); color: var(--soft); border: 1px solid var(--line-strong); box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
  font-size: 0.75rem; font-weight: 500; line-height: 1.4; pointer-events: none;
}
.tooltip[hidden]{ display: none; }
.tooltip b{ display: block; color: var(--text); font-weight: 700; }
.tabbar{ display: none; }
@media (max-width: 760px), (hover: none) and (max-height: 500px) and (max-width: 1000px){
.tabbar{
    --tb-pad: 10px; --tb-h: 52px;
    grid-area: bar; display: flex; align-items: center; justify-content: space-around; gap: 2px;
    padding: 6px 22px max(var(--tb-pad), calc(env(safe-area-inset-bottom) / 2));
    background: var(--bg); position: relative; z-index: 3;
  }
.tabbar,.tabbar [data-tab]{ touch-action: pinch-zoom; }
.tabbar::before{
    content: ''; position: absolute; z-index: -1; left: 12px; right: 12px; top: 6px; bottom: max(var(--tb-pad), calc(env(safe-area-inset-bottom) / 2));
    border-radius: calc(var(--tb-h) / 2); background: color-mix(in srgb, var(--raised) 88%, transparent); border: 1px solid var(--line-strong);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
  }
html.typing .tabbar{ display: none; }
:root{ --tb-space: calc(58px + max(10px, env(safe-area-inset-bottom) / 2)); }
@media (max-height: 500px){
:root{ --tb-space: calc(50px + max(10px, env(safe-area-inset-bottom) / 2)); }
}
}
@media (max-height: 500px){
.tabbar{ --tb-h: 44px; }
}
.dot.online.mobile{ width: 8px; height: 12px; border-radius: 3px; bottom: -4px; right: -4px; }
.dot.online.mobile::after{ content: ''; position: absolute; left: 50%; bottom: 1px; width: 3px; height: 1.5px; translate: -50% 0; border-radius: 1px; background: var(--dot-cut, var(--panel)); }
.lg > .dot.online.mobile{ width: 12px; height: 18px; border-radius: 4px; }
.lg > .dot.online.mobile::after{ width: 5px; height: 2px; bottom: 2px; }
.admin{ position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); background: var(--bg); animation: fade .12s; }
.admin .hint{ color: var(--faint); font-size: 0.78125rem; margin: 4px 0 12px; }
.admin .notice{ background: var(--accent-soft); border-radius: var(--r-sm); padding: 9px 12px; font-size: 0.84375rem; color: var(--soft); margin: 0 0 12px; }
.holder{ display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.holder .who{ flex: none; width: 190px; min-width: 0; }
.who strong{ display: block; font-size: 0.875rem; overflow-wrap: anywhere; }
.who small{ display: block; color: var(--faint); font-size: 0.78125rem; overflow-wrap: anywhere; }
.holder .who{ flex: 1; width: auto; }
.chips{ flex: 1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.pill.warn{ color: #3b2600; background: var(--away); }
@media (max-width: 800px){
.admin{ grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.chips{ flex-basis: 100%; order: 3; }
}
.scrim.over{ z-index: 90; }
.sheet-scrim{
  position: fixed; inset: 0; z-index: 40; background: rgba(4, 7, 18, calc(0.65 * var(--sheet-fade, 1))); animation: fade .15s;
}
.sheet{
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 82%; display: flex; flex-direction: column; outline: none;
  background: var(--panel); border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 22px 22px 0 0; box-shadow: var(--shadow);
  padding: 0 calc(14px + env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
  transition: transform .2s ease-out; animation: sheet-up .22s ease-out;
}
.sheet.side{
  left: auto; top: 0; width: min(380px, 100%); max-height: none; border-bottom: 1px solid var(--line-strong); border-radius: 22px 0 0 22px;
  padding: env(safe-area-inset-top) calc(14px + env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) 14px;
  animation: sheet-in .22s ease-out;
}
.sheet-head{
  position: relative; flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: 0 12px; padding: 22px 4px 4px;
  touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
.sheet-grip{ position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 38px; height: 4px; border-radius: 4px; background: var(--line-strong); }
.sheet.side .sheet-grip{ display: none; }
.sheet.side .sheet-head{ padding-top: 14px; }
.sheet-title{ margin: 0 0 6px; font-size: 0.8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sheet-hint{ margin: 0 0 6px; font-size: 0.75rem; color: var(--faint); }
.sheet-body{ min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.sheet-body::-webkit-scrollbar{ display: none; }
.sheet.page{
  inset: 0; max-height: none; border: 0; border-radius: 0; box-shadow: none; background: var(--bg); animation: sheet-in .2s ease-out;
  padding: env(safe-area-inset-top) calc(14px + env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
}
.sheet.page .sheet-head{ align-items: center; justify-content: flex-start; gap: 6px; padding: 8px 0 10px; cursor: default; touch-action: auto; }
.sheet.page .sheet-back{ flex: none; width: 44px; height: 44px; margin-left: -6px; border-radius: 14px; color: var(--text); }
.sheet.page .sheet-title{ margin: 0; font-size: 1.25rem; letter-spacing: 0; text-transform: none; color: var(--text); }
.sheet.tab-page .sheet-head{ padding: 10px 0 0; }
.sheet.tab-page .sheet-title{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes sheet-up{ from { transform: translateY(40px); opacity: 0; } }
@keyframes sheet-in{ from { transform: translateX(40px); opacity: 0; } }
@media (max-width: 760px), (hover: none) and (max-height: 500px) and (max-width: 1000px){
.tabs{ display: none; }
}
@media (hover: none) and (max-height: 500px) and (max-width: 1000px){
.app{ grid-template-rows: 50px auto minmax(0, 1fr) auto; }
}
.inst-lede{ margin: 4px 0 12px; font-size: 0.875rem; line-height: 1.5; color: var(--soft); }
.inst-alt{ margin: 12px 0 0; font-size: 0.78125rem; line-height: 1.5; color: var(--muted); }
.inst-alt a{ color: var(--accent-2); }
.inst-store{ display: inline-flex; border-radius: 6px; }
.inst-store img{ display: block; }
.inst-go{ width: 100%; justify-content: center; min-height: 44px; }
.inst-steps{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.inst-step{ display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--raised); font-size: 0.875rem; line-height: 1.4; color: var(--soft); }
.inst-ico{ flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-2); font-size: 0.8125rem; }
.hero-modal{ max-width: 460px; overflow-x: hidden; position: relative; }
.hero-close{ position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(6, 10, 22, .55); color: var(--text); backdrop-filter: blur(6px); }
@media (hover: hover){
.hero-close:hover{ background: rgba(6, 10, 22, .8); }
}
.hero-banner{ position: relative; height: 150px; }
.hero-art{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-banner::after{ content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 23, 43, 0) 35%, var(--panel) 100%); }
.hero-orby{ position: absolute; left: 50%; bottom: -34px; z-index: 2; width: 128px; height: auto; margin-left: -64px; filter: drop-shadow(0 12px 22px rgba(80, 40, 160, .5)); }
.hero-glow{ position: absolute; left: 50%; bottom: -30px; z-index: 1; width: 220px; height: 110px; margin-left: -110px; border-radius: 50%; background: radial-gradient(closest-side, rgba(143, 163, 255, .28), transparent); }
@media (prefers-reduced-motion: no-preference){
:root:not([data-motion="reduce"]) .hero-orby{ animation: hero-float 4.5s ease-in-out infinite; }
@keyframes hero-float{ 50% { transform: translateY(-7px) rotate(-1.5deg); } }
}
.hero-body{ padding: 44px 28px 24px; text-align: center; }
.hero-body h2{ margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.hero-sub{ margin: 8px auto 0; max-width: 340px; text-wrap: balance; color: var(--muted); font-size: 0.9062rem; line-height: 1.5; }
.hero-perks{ list-style: none; margin: 22px auto 0; padding: 0; width: fit-content; max-width: 352px; display: grid; gap: 14px; text-align: left; }
.hero-perks li{ display: flex; align-items: flex-start; gap: 13px; }
.hero-perks strong{ display: block; font-size: 0.9062rem; font-weight: 700; line-height: 1.3; }
.hero-perks li > span:last-child > span{ display: block; text-wrap: pretty; color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }
.hero-ico{ flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.hero-cta{ margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-cta .inst-alt{ margin: 0; max-width: 340px; text-align: center; }
.hero-install{ min-width: 230px; height: 46px; font-size: 0.9688rem; border-radius: 11px; }
.hero-cta .inst-store{ transition: filter .12s; }
@media (hover: hover){
.hero-cta .inst-store:hover{ filter: brightness(1.15); }
}
.hero-cta .inst-store:focus-visible{ outline-offset: 3px; }
.hero-alt{ color: var(--muted); font-size: 0.8438rem; font-weight: 600; text-decoration: none; border-radius: 6px; padding: 2px 4px; background: none; border: 0; cursor: pointer; font-family: inherit; }
@media (hover: hover){
.hero-alt:hover{ color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
}
.hero-alt b{ color: var(--accent-2); font-weight: 700; }
.channel mark{ background: var(--accent-soft); color: var(--accent-2); border-radius: 3px; padding: 0 1px; font-weight: 800; }
kbd.k{ font: 600 0.6875rem var(--font); color: var(--faint); border: 1px solid var(--line-strong); border-radius: 5px; padding: 1px 6px; background: var(--panel); }
@media (max-width: 760px), (hover: none) and (max-height: 500px) and (max-width: 1000px){
.brand{ display: none; }
:root[data-bg-tone="light"] :is(.pt-logo, .srow-logo){ color: #fff; text-shadow: 0 -1.5px 0 #000, 1.5px -1.5px 0 #000, 1.5px 0 0 #000, 1.5px 1.5px 0 #000, 0 1.5px 0 #000, -1.5px 1.5px 0 #000, -1.5px 0 0 #000, -1.5px -1.5px 0 #000; }
@media not all and (hover: none) and (max-height: 500px) and (max-width: 1000px){
.app[data-view="server"]{ grid-template-rows: 0 auto minmax(0, 1fr) auto; }
.app[data-view="server"]:has(.top-call:not(:empty)){ grid-template-rows: 40px auto minmax(0, 1fr) auto; --tc-off: 3px; }
}
}
@media (hover: none) and (max-height: 500px) and (max-width: 1000px){
.app{ --tc-off: 3px; }
}
.modal.profile-edit{ max-width: 980px; height: min(780px, calc(100vh - 32px)); height: min(780px, calc(100dvh - 32px)); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.profile-edit .field{ margin-bottom: 10px; }
@media (max-width: 760px){
.modal.profile-edit{ max-width: none; height: 100%; max-height: none; border-radius: 0; border: 0; }
}
.profile-edit .switch input:disabled{ cursor: not-allowed; }
.profile-edit .switch input:disabled + span{ opacity: .5; }
@font-face{ font-family: 'Orbit Name Orbitron'; font-weight: 700; font-display: swap; src: url('/vendor/orbitron-5.3.0-latin-700.woff2') format('woff2'); }
@font-face{ font-family: 'Orbit Name Pixel'; font-weight: 400; font-display: swap; src: url('/vendor/press-start-2p-5.3.0-latin-400.woff2') format('woff2'); }
@font-face{ font-family: 'Orbit Name Pacifico'; font-weight: 400; font-display: swap; src: url('/vendor/pacifico-5.3.0-latin-400.woff2') format('woff2'); }
@font-face{ font-family: 'Orbit Name Caveat'; font-weight: 700; font-display: swap; src: url('/vendor/caveat-5.3.0-latin-700.woff2') format('woff2'); }
@font-face{ font-family: 'Orbit Name Nunito'; font-weight: 900; font-display: swap; src: url('/vendor/nunito-5.3.0-latin-900.woff2') format('woff2'); }
@font-face{ font-family: 'Orbit Name Playfair'; font-weight: 700; font-display: swap; src: url('/vendor/playfair-display-5.3.0-latin-700.woff2') format('woff2'); }
@font-face{ font-family: 'Orbit Name Bungee'; font-weight: 400; font-display: swap; src: url('/vendor/bungee-5.3.0-latin-400.woff2') format('woff2'); }
:root[data-app-bg="grad"] body{
  background: linear-gradient(180deg, var(--grad-top), var(--grad-bottom));
  background: linear-gradient(in oklch 180deg, var(--grad-top), var(--grad-bottom));
}
:root[data-app-bg="grad"] .app > .work{ background: transparent; }
:root[data-app-bg="grad"] .app .work > .sidebar,:root[data-app-bg="grad"] .app > .side{ background: hsl(0 0% 0% / 0.5); }
:root[data-app-bg="grad"] .app .work > .chat{ background: hsl(0 0% 0% / 0.55); }
.cropper.clip{ display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "view side" "strip strip"; gap: 12px 18px; }
.cropper.clip.wide{ grid-template-columns: minmax(0, 1fr); grid-template-areas: "view" "strip" "side"; }
.modal:has(.report-dialog){ max-width: 520px; }
.modal:has(.report-dialog) .body{ max-height: min(70dvh, 640px); overflow-y: auto; scrollbar-gutter: stable; padding-top: 4px; }
.modal.link-check{ max-width: 440px; }
.modal.link-check footer{ position: sticky; bottom: 0; background: var(--panel); }
@media (max-height: 520px){
.modal.link-check header{ padding-bottom: 6px; }
.modal.link-check header p{ font-size: 0.8125rem; line-height: 1.35; margin-top: 2px; }
}
.friend-strip{
  /* the strip clips what overflows it, so its padding holds the keyboard focus ring (2px line + 2px offset); the negative top margin keeps the cards where they were */
  list-style: none; margin: -2px -12px 0; padding: 4px 12px 4px; display: flex; gap: 10px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.friend-strip::-webkit-scrollbar{ display: none; }
.friend-strip > li{ flex: none; scroll-snap-align: start; scroll-margin-left: 12px; }
:root{ --twitch: #9146ff; --twitch-hover: #772ce8; }
.cs{
  position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: 300px minmax(0, 1fr); animation: fade .12s;
  background: radial-gradient(900px 500px at 0% 0%, var(--glow-1), transparent 70%), radial-gradient(700px 500px at 100% 100%, var(--glow-2), transparent 70%), var(--bg);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.cs .kind{ display: inline-flex; align-items: center; gap: 5px; font-size: 0.71875rem; font-weight: 700; color: var(--muted); background: var(--raised); padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.cs .kind.from{ color: var(--away); background: color-mix(in srgb, var(--away) 12%, transparent); }
.cs .input{ padding: 10px 12px; }
.cs .sel{ appearance: none; padding-right: 36px; cursor: pointer; background-repeat: no-repeat; background-position: right 12px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238e98b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.cs .legend{ display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.78125rem; color: var(--muted); align-items: center; }
.cs .legend span{ display: inline-flex; align-items: center; gap: 6px; }
.cs .legend i{ width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-style: normal; }
.cs .legend .d{ background: var(--danger-strong); color: #fff; }
.cs .legend .n{ background: var(--raised-2); color: var(--text); }
.cs .legend .a{ background: var(--online); color: #07210f; }
@media (max-width: 760px), (hover: none) and (max-height: 500px) and (max-width: 1000px){
.cs{ grid-template-columns: minmax(0, 1fr); }
}
html.desktop-app{
  --tb-h: env(titlebar-area-height, 36px);
  /* the width the system buttons take at the right edge of the window */
  --tb-reserve: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, calc(100vw - 138px)));
  --top-h: var(--tb-h);
}
html.desktop-app .app{ grid-template-rows: var(--tb-h) minmax(0, 1fr); padding-top: 0; row-gap: 6px; }
html.desktop-app #layer > *,html.desktop-app #toasts > *{ -webkit-app-region: no-drag; }
.tb-btn{
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: var(--soft);
  transition: background .12s, color .12s;
}
@media (hover: hover){
.tb-btn:hover:not(:disabled){ background: var(--raised); color: var(--text); }
}
.tb-btn:disabled{ color: var(--faint); opacity: .55; cursor: default; }
.tb-btn:focus-visible{ outline-offset: 0; }
html.desktop-app .tabs{ flex: 0 1 auto; }
html.desktop-app .tabs{ gap: 6px; padding: 0 2px; align-self: stretch; }
html.desktop-app .tab{
  min-width: 128px; max-width: 210px; height: 28px; gap: 7px; padding: 0 28px 0 4px; border-radius: 8px;
}
html.desktop-app .tab.active{ box-shadow: 0 0 0 2px var(--accent-soft); }
html.desktop-app .tab .tile.sm{ width: 20px; height: 20px; border-radius: 6px; font-size: 8.5px; }
html.desktop-app .tab .info{ display: flex; flex-direction: row; align-items: center; gap: 6px; }
html.desktop-app .tab .name{ font-size: 13px; flex: 0 1 auto; min-width: 0; }
html.desktop-app .tab .meta{ margin-top: 0; flex: none; }
.titlebar-drag{ display: none; }
html.desktop-app .titlebar-drag{
  display: block; position: fixed; top: 0; left: 0; right: var(--tb-reserve); height: var(--tb-h); z-index: 1;
  -webkit-app-region: drag;
}
html.desktop-app body:has(.app) .titlebar-drag{ display: none; }
html.desktop-app .auth{ padding-top: calc(var(--tb-h) + 16px); }
html.desktop-app .scrim{ padding-top: calc(var(--tb-h) + 8px); }
html.desktop-app .modal{ max-height: calc(100dvh - var(--tb-h) - 24px); }
html.desktop-app .sheet.side{ padding-top: var(--tb-h); }
.auth > div{ width: 100%; display: grid; justify-items: center; }
.auth-card{ position: relative; }
.auth-card.wide{ max-width: 440px; }
.auth-card p.lede b{ color: var(--text); font-weight: 700; }
.auth-card h1.sm{ font-size: 1.375rem; margin-top: 0; }
.auth-remember{ display: flex; gap: 10px; align-items: center; margin: 4px 0 14px; font-size: 0.875rem; color: var(--soft); cursor: pointer; }
.auth-remember input{ width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }
.auth-switch a{ color: var(--accent-2); font-weight: 600; text-decoration: none; }
.auth-foot{ display: flex; justify-content: center; gap: 16px; margin-top: 18px; font-size: 0.78rem; color: var(--faint); }
.auth-foot a{ color: var(--muted); text-decoration: none; }
@media (hover: hover){
.auth-foot a:hover{ color: var(--text); }
}
.tiny{ font-size: 0.78rem; color: var(--faint); margin: 12px 0 0; line-height: 1.45; }
.tiny a{ color: var(--muted); }
.tiny b{ color: var(--soft); }
.field > span.split{ display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.field > span.split a,.field > span.split button{ font-size: 0.78rem; color: var(--accent-2); font-weight: 600; text-decoration: none; }
.field > span .opt{ color: var(--faint); font-weight: 500; }
.field input[aria-invalid="true"]{ border-color: var(--danger); }
.ok-hint{ color: var(--online) !important; display: inline-flex !important; align-items: center; gap: 5px; }
.err-hint{ color: var(--danger) !important; }
.err-hint a{ color: inherit; font-weight: 600; }
.invite-hero{ margin: -32px -28px 22px; padding: 26px 28px 20px; border-radius: 20px 20px 0 0; position: relative; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--srv) 38%, var(--panel)), var(--panel) 75%); border-bottom: 1px solid var(--line); }
.invite-hero::after{ content: ''; position: absolute; inset: 0; background: radial-gradient(260px 140px at 88% 0%, color-mix(in srgb, var(--srv) 45%, transparent), transparent 70%); pointer-events: none; }
.invite-hero .row{ display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.invite-hero .tile{ width: 58px; height: 58px; border-radius: 17px; font-size: 1.3rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.invite-hero small{ color: var(--soft); display: block; font-size: 0.8125rem; }
.invite-hero strong{ display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.invite-hero .meta{ display: flex; gap: 14px; font-size: 0.78rem; color: var(--soft); margin-top: 4px; }
.invite-hero .meta span{ display: inline-flex; align-items: center; gap: 6px; }
.invite-hero .meta i{ width: 8px; height: 8px; border-radius: 50%; background: var(--online); display: inline-block; }
.invite-hero .meta i.off{ background: var(--offline); }
.invite-hero .brandline{ display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; color: var(--soft); margin-bottom: 14px; position: relative; z-index: 1; }
.invite-hero .brandline img{ width: 22px; height: 22px; }
.steps{ display: flex; gap: 6px; margin: 0 0 18px; }
.steps i{ height: 4px; flex: 1; border-radius: 4px; background: var(--raised-2); }
.steps i.on{ background: var(--accent); }
.steps-label{ font-size: 0.75rem; font-weight: 700; color: var(--faint); letter-spacing: .04em; margin: 0 0 6px; }
.pw-wrap{ position: relative; }
.pw-wrap input{ padding-right: 68px; }
.pw-wrap .show{ position: absolute; right: 6px; top: 50%; translate: 0 -50%; font-size: 0.78rem; font-weight: 700; color: var(--muted); padding: 5px 8px; border-radius: 6px; min-width: 48px; }
.pw-wrap .show[aria-pressed="true"]{ color: var(--text); background: var(--raised); }
@media (hover: hover){
.pw-wrap .show:hover{ color: var(--text); background: var(--raised); }
}
.strength{ display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; }
.strength small{ flex: 1 1 200px; }
.strength .bars{ display: flex; gap: 4px; flex: none; }
.strength[data-lvl="0"] .bars{ display: none; }
.strength .bars i{ width: 26px; height: 4px; border-radius: 4px; background: var(--raised-2); }
.strength[data-lvl="1"] .bars i:nth-child(-n+1){ background: var(--danger); }
.strength[data-lvl="2"] .bars i:nth-child(-n+2){ background: var(--away); }
.strength[data-lvl="3"] .bars i:nth-child(-n+3),.strength[data-lvl="4"] .bars i:nth-child(-n+4){ background: var(--online); }
.strength small{ font-size: 0.78rem; color: var(--faint); }
.strength small b{ color: var(--soft); font-weight: 700; }
.otp{ position: relative; margin: 4px 0 8px; }
.otp-input{ position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; opacity: 0; font-size: 16px; letter-spacing: 1em; border: 0; padding: 0; cursor: text; caret-color: transparent; background: transparent; color: transparent; }
.otp-cells{ display: grid; grid-template-columns: repeat(3, 1fr) 10px repeat(3, 1fr); gap: 8px; }
.otp .dash{ align-self: center; height: 2px; background: var(--line-strong); border-radius: 2px; }
.otp .cell{ aspect-ratio: 5 / 6; max-height: 64px; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--bg);
  border: 1px solid var(--field-line); border-radius: var(--r-sm); position: relative; transition: border-color .1s, background .1s; }
.otp .cell.filled{ border-color: var(--line-strong); background: var(--raised); }
.otp .cell.active{ border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.otp .cell.active:empty::after{ content: ''; width: 2px; height: 40%; background: var(--accent); border-radius: 2px; animation: otp-blink 1s steps(1) infinite; }
@keyframes otp-blink{ 50% { opacity: 0; } }
.otp.bad .cell{ border-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--bg)); }
.otp.bad .otp-cells{ animation: otp-shake .35s; }
.otp.good .cell{ border-color: var(--online); background: color-mix(in srgb, var(--online) 10%, var(--bg)); }
.otp.checking .cell{ border-color: var(--accent); opacity: .8; }
@keyframes otp-shake{ 20%, 60% { translate: -5px 0; } 40%, 80% { translate: 5px 0; } }
@media (prefers-reduced-motion: reduce){
.otp.bad .otp-cells{ animation: none; }
.otp .cell.active:empty::after{ animation: none; }
}
.code-foot{ display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.84rem; color: var(--muted); margin: 6px 0 18px; }
.code-foot button{ color: var(--accent-2); font-weight: 600; }
.code-foot button[disabled]{ color: var(--faint); cursor: default; font-variant-numeric: tabular-nums; }
.linkbtn{ color: var(--accent-2); font-weight: 600; font-size: 0.875rem; text-decoration: none; }
.linkbtn.muted{ color: var(--muted); }
.linkbtn.inline{ font-size: 0.84rem; }
.center{ text-align: center; }
.mailchip{ display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 99px; background: var(--raised); color: var(--text); font-weight: 700; font-size: 0.875rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.auth-notice{ display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: var(--r-md); font-size: 0.84rem; line-height: 1.45; margin: 0 0 16px; background: var(--raised); color: var(--soft); }
.auth-notice svg{ margin-top: 1px; color: var(--accent-2); flex: none; }
.auth-notice b{ color: var(--text); }
.auth-notice a,.auth-notice button.linkbtn{ color: var(--accent-2); }
.auth-notice.warn{ background: color-mix(in srgb, var(--away) 12%, var(--panel)); border: 1px solid color-mix(in srgb, var(--away) 30%, transparent); }
.auth-notice.warn svg{ color: var(--away); }
.auth-notice.bad{ background: color-mix(in srgb, var(--danger) 11%, var(--panel)); border: 1px solid color-mix(in srgb, var(--danger) 32%, transparent); }
.auth-notice.bad svg{ color: var(--danger); }
.auth-notice.good{ background: color-mix(in srgb, var(--online) 11%, var(--panel)); border: 1px solid color-mix(in srgb, var(--online) 30%, transparent); }
.auth-notice.good svg{ color: var(--online); }
.big-icon{ width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); margin: 4px 0 2px; position: relative; }
.big-icon.good{ background: color-mix(in srgb, var(--online) 16%, transparent); color: var(--online); }
.big-icon.warn{ background: color-mix(in srgb, var(--away) 16%, transparent); color: var(--away); }
.big-icon.bad{ background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.approve-facts{ display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 16px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 0.875rem; }
.approve-facts dt{ color: var(--muted); }
.approve-facts dd{ margin: 0; color: var(--text); overflow-wrap: anywhere; }
.reset-who{ display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); margin: 0 0 16px; }
.reset-who strong{ display: block; font-size: 0.906rem; line-height: 1.25; }
.reset-who small{ color: var(--muted); font-size: 0.78rem; }
.or{ display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 0.75rem; font-weight: 700; margin: 16px 0; }
.or::before,.or::after{ content: ''; flex: 1; height: 1px; background: var(--line-strong); }
.countdown{ font-variant-numeric: tabular-nums; font-weight: 800; color: var(--text); }
.paste-row{ display: flex; gap: 8px; }
.paste-row input{ flex: 1; min-width: 0; }
.work:has(> .mail-strip){ grid-template-rows: auto minmax(0, 1fr); }
@media (max-width: 760px){
.auth{ padding: 0; place-items: stretch; align-items: start; }
.auth-card,.auth-card.wide{ max-width: none; border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 28px 20px 28px; }
.invite-hero{ margin: -28px -20px 20px; padding: 22px 20px 18px; border-radius: 0; }
.auth-card h1{ font-size: 1.56rem; }
.otp-cells{ gap: 6px; }
}
.moved-where{ display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); }
.moved-side{ display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.moved-side small{ color: var(--muted); }
.moved-arrow{ color: var(--muted); }
.modal.reauth .reauth-tabs{ display: flex; gap: 4px; margin: 0 0 14px; }
.modal.reauth .reauth-tabs button{ flex: 1; }
.modal.reauth .reauth-panel{ min-height: 150px; }
.modal.reauth .reauth-panel[hidden]{ display: none; }
.modal.reauth .reauth-tabs button{ padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.modal.reauth .reauth-tabs button.on{ background: var(--bg); color: var(--text); border-color: var(--accent); }
.sheet:not(.side):has(.saved-panel){ height: 82%; }
.sheet:has(.saved-panel) .sheet-body{ flex: 1; display: flex; flex-direction: column; }
.chat:has(> .ds-dust){ position: relative; isolation: isolate;
  background: radial-gradient(1200px 500px at 70% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), radial-gradient(900px 400px at 0% 10%, rgba(255, 107, 213, .07), transparent 60%), var(--panel-2); }
@container lu (min-width: 1100px){
  .lu-hero { position: absolute; left: 24px; top: 40px; width: 230px; margin: 0; }
  .lu-orby { width: 130px; margin: 0 0 -34px 44px; }
}
@container lu (max-width: 760px){
  .lu-wrap { padding: 18px 16px 96px; gap: 12px; }
  .lu-title { font-size: 2.875rem; }
  .lu-wordmark img { width: 44px; height: 44px; }
  .lu-head { font-size: 1.4375rem; }
  .lu-sub { font-size: 0.9375rem; }
  .lu-price { gap: 8px; }
  .lu-seg button { padding: 6px 10px; }
  .lu-perks { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lu-perk { padding: 14px 10px; }
  .lu-ic { width: 48px; height: 48px; }
  .lu-get { width: 100%; padding: 15px; }
  .lu-get::after { display: none; }
  .lu-pack { letter-spacing: .24em; font-size: 0.6875rem; }
  .lu-flow { padding: 24px 18px; }
}
:root{
  --cs-fill: rgba(255, 138, 31, .12);
  --cs-edge: rgba(255, 138, 31, .35);
  --cs-text: #ffc48a;
  --cs-risk: #ffd45a;
  --cs-low: #f0444f;
}
.sm-secret{ display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
.sm-secret .btn.sm{ min-height: 0; padding: 2px 10px; }
.age-gate{ flex: 1; min-height: 0; overflow-y: auto; display: grid; place-items: center; padding: 24px 18px; }
.age-row{ display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.age-row strong{ display: flex; align-items: center; gap: 8px; font-size: 0.875rem; }
.age-row small{ display: block; color: var(--faint); font-size: 0.78125rem; line-height: 1.4; margin-top: 3px; }
.age-step{ border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.age-step legend{ padding: 0; font-size: 0.8125rem; font-weight: 600; color: var(--soft); margin-bottom: 6px; }
.age-row{ display: flex; gap: 8px; }
.age-sel{ display: block; flex: 1 1 0; min-width: 0; }
.age-sel.month{ flex: 2 1 0; }
.age-sel.year{ flex: 1.3 1 0; }
.age-sel select,.age-sel input{
  width: 100%; min-height: 44px; background: var(--bg); color: var(--text); border: 1px solid var(--field-line); border-radius: var(--r-sm);
  padding: 8px 10px; outline: none; transition: border-color .12s; font-size: 0.9375rem;
}
.age-sel select:focus,.age-sel input:focus{ border-color: var(--accent); }
.age-step .hint{ display: block; margin-top: 6px; max-width: 46ch; font-size: 0.78125rem; color: var(--faint); }
.age-tick{ display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 11px 12px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line-strong); font-size: 0.875rem; color: var(--soft); line-height: 1.4; cursor: pointer; }
.age-tick input{ width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.age-tick[hidden]{ display: none; }
.age-bday{ display: flex; gap: 10px; align-items: center; margin: 12px 0 0; font-size: 0.875rem; color: var(--soft); cursor: pointer; }
.age-bday input{ width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }
.age-error{ margin: -4px 0 12px; }
.agree-line{ margin: 14px 0 12px; font-size: 0.8125rem; color: var(--muted); line-height: 1.45; text-align: center; }
.agree-line a{ color: var(--accent-2); }
.auth-stop{ text-align: center; }
.auth-stop .logo{ margin-inline: auto; }
.stop-ico{ width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin: 14px auto; background: color-mix(in srgb, var(--away) 14%, var(--panel)); color: var(--away); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--away) 35%, transparent); }
.auth-stop h1{ margin-top: 0; }
.auth-stop p.lede{ color: var(--soft); }
.auth-stop .btn{ margin-top: 10px; }
.age-pass{ display: flex; gap: 10px; align-items: center; margin: 12px 0 0; font-size: 0.875rem; color: var(--soft); cursor: pointer; }
.age-pass input{ width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }
.age-row select:disabled,.age-row input:disabled{ opacity: .5; }
.age-bday[hidden]{ display: none; }
@font-face{ font-family: 'Orbit Hand'; font-weight: 700; font-display: swap; src: url('/vendor/caveat-5.3.0-latin-700.woff2') format('woff2'); }
.faces{ display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 0.78125rem; color: var(--muted); flex-wrap: wrap; }
.faces b{ color: var(--soft); }
#layer:has(> .pc-sheet) > div:first-child{ background: rgba(4, 7, 18, .6); }
@property --bc-a{ syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.combo{ position: relative; display: grid; gap: 8px; }
.sbadge{ --fg: #fff; --solid: #444; --on: #fff; }
.sbadge[data-k="official"]{ --fg: #ffd77a; --solid: #e0a62f; --on: #1a1226; }
.sbadge[data-k="partnered"]{ --fg: #d3b3ff; --solid: #8a4fdc; --on: #fff; }
.sbadge[data-k="verified"]{ --fg: #7cc4ff; --solid: #1f6fd1; --on: #fff; }
.sbadge{
  display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px 0 3px; border-radius: 99px; flex: none;
  font-size: 0.6875rem; font-weight: 800; letter-spacing: .01em; line-height: 1; white-space: nowrap; vertical-align: middle;
  color: var(--fg); background: color-mix(in srgb, var(--fg) 16%, transparent); border: 1px solid color-mix(in srgb, var(--fg) 38%, transparent);
}
.sbadge svg{ width: 16px; height: 16px; flex: none; }
.sbadge.lg{ height: 26px; padding: 0 11px 0 4px; font-size: 0.8125rem; gap: 6px; }
.sbadge.lg svg{ width: 20px; height: 20px; }
.vis{ display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 600; color: var(--muted); white-space: nowrap; line-height: 1.2; }
.vis svg{ width: 13px; height: 13px; flex: none; }
.status-explain{ display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; margin: 0 0 6px; border-radius: 8px; background: var(--raised); font-size: 0.8125rem; line-height: 1.4; color: var(--text); }
.status-explain .sbadge{ margin-top: 1px; }
.status-explain a{ color: var(--accent-2); font-weight: 700; }
.status-note{ display: block; margin-top: 4px; font-size: 0.75rem; color: var(--muted); line-height: 1.35; }
.invite-status{ margin-top: 14px; text-align: left; }
.invite-status .status-explain{ margin-bottom: 8px; }
.invite-vis{ display: flex; flex-direction: column; gap: 2px; padding: 0 2px; }
.invite-vis small{ font-size: 0.75rem; color: var(--muted); line-height: 1.35; }
.modal.detail{ max-width: 480px; overflow: hidden auto; }
.modal.detail header{ padding-top: 40px; }
.reactions{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.reaction{
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 11px 0 9px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--soft); cursor: pointer;
  background: color-mix(in srgb, var(--raised) 88%, transparent); border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform .12s ease, background-color .15s, border-color .15s, box-shadow .15s, color .15s;
}
.reaction .e{
  font-size: 1.375rem; line-height: 1; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
  /* emoji fonts draw the glyph at different heights in the line; emoji-centre.js measures this device's and sets the correction */
  position: relative; top: var(--emoji-dy, 0);
}
.reaction .n{ display: inline-block; min-width: 0.6em; text-align: center; }
@media (hover: hover){
.reaction:hover{
  background: var(--raised-2); border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong)); color: var(--text);
  transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 12px rgba(0, 0, 0, 0.28);
}
}
@media (hover: hover){
.reaction:hover .e{ transform: scale(1.2) rotate(-4deg); }
}
.reaction:active{ transform: translateY(0) scale(0.95); transition-duration: .05s; }
.reaction:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }
.reaction.mine{
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 26%, transparent), color-mix(in srgb, var(--accent) 14%, transparent));
  border-color: var(--accent); color: var(--accent-2);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent), 0 2px 12px color-mix(in srgb, var(--accent) 26%, transparent);
}
@media (hover: hover){
.reaction.mine:hover{ background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 34%, transparent), color-mix(in srgb, var(--accent) 20%, transparent)); }
}
.reaction.pop{ animation: reaction-pop .34s cubic-bezier(.3, 1.7, .5, 1); }
@keyframes reaction-pop{ 0% { transform: scale(0.55); opacity: 0; } 60% { transform: scale(1.14); opacity: 1; } 100% { transform: scale(1); } }
.reaction.add{
  min-width: 34px; padding: 0 8px; justify-content: center; color: var(--muted); background: transparent; border-style: dashed; box-shadow: none;
  opacity: 0; transform: scale(0.9);
}
.reaction.add:focus-visible{ opacity: 1; transform: none; }
@media (hover: hover){
.reaction.add:hover{ color: var(--accent-2); background: var(--accent-soft); border-color: var(--accent); }
}
.reaction.add svg{ transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
@media (hover: hover){
.reaction.add:hover svg{ transform: scale(1.15) rotate(-8deg); }
}
@media (hover: none){
.reaction.add{ opacity: 1; transform: none; }
}
.member .avatar{ --room-l: 0.5; --room-t: 0.25; --room-r: 0.3; --room-b: 0.25; }
.avatar{ --av-size: 40px; --fr-extra: 0; }
.avatar.sm{ --av-size: 34px; }
.avatar.framed{ margin-right: calc(var(--av-size) * var(--fr-extra)); }
.avatar.lg.framed,.member .avatar.framed{ margin-right: 0; }
@property --spin{ syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@media (prefers-reduced-motion: reduce){
:root:not([data-motion="full"]) :is(.cb-neon, .cb-neon > i){ animation: none !important; }
}
:root[data-motion="reduce"] :is(.cb-neon, .cb-neon > i){ animation: none !important; }
:root[data-motion="reduce"] *,:root[data-motion="reduce"] *::before,:root[data-motion="reduce"] *::after{
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
.messages{ font-size: calc(0.9375rem * var(--chat-scale, 1)); }
.welcome h2{ font-size: calc(1.625rem * var(--chat-scale, 1)); }
.messages .reaction{ font-size: calc(0.8125rem * var(--chat-scale, 1)); }
.reaction .e{ font-size: calc(1.375rem * var(--chat-scale, 1)); }
.messages .text code{ font-size: calc(0.8125rem * var(--chat-scale, 1)); }
:root[data-contrast="more"]{
  --accent-strong: #4f68e8 !important;
  --accent-strong-hover: #4a63e0 !important;
  --danger-strong: #d6333e !important;
  --text: #ffffff !important;
  --soft: #e6eaf6 !important;
  --muted: #d0d6ea !important;
  --faint: #b4bcd8 !important;
  --accent-2: #b8c5ff !important;
  --offline: #8f99bd !important;
  --line: rgba(160, 180, 255, 0.22) !important;
  --line-strong: rgba(160, 180, 255, 0.36) !important;
  --field-line: rgba(160, 180, 255, 0.85) !important;
}
:root[data-contrast="more"] :focus-visible{ outline-width: 3px; outline-offset: 3px; }
:root[data-contrast="more"] .modal{ border-color: var(--field-line); }
@media (hover: hover){
:root[data-contrast="more"] .btn.primary:hover,:root[data-contrast="more"] .dt .btn.primary:hover{ filter: none; background: var(--accent-strong-hover); }
}
:root[data-contrast="more"] .switch span{ box-shadow: inset 0 0 0 1px var(--field-line); }
:root[data-contrast="more"] .switch input:checked + span{ box-shadow: none; }
:root[data-links="underline"] a{ text-decoration: underline; text-underline-offset: 2px; }
#soundCues{ position: fixed; z-index: 85; left: calc(16px + env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 6px; justify-items: start; pointer-events: none; }
@media (max-width: 760px), (hover: none) and (max-height: 500px) and (max-width: 1000px){
.composer .send.holding{ animation: send-hold .5s ease-out forwards; }
@keyframes send-hold{ to { scale: 1.18; box-shadow: 0 0 0 6px var(--accent-soft); } }
}
.boot-offline{
  --bo-bg: #0a0f1e; --bo-panel: #10172b; --bo-line: rgba(160, 180, 255, .14); --bo-text: #e9edf9; --bo-muted: #8e98b8;
  --bo-accent: #6b85ff; --bo-accent-2: #8fa3ff; --bo-accent-soft: rgba(107, 133, 255, .16); --bo-away: #f5b544;
  background: var(--bo-bg); color: var(--bo-text); font: 16px/1.45 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background-image: radial-gradient(ellipse 80% 45% at 50% 28%, rgba(80, 100, 230, .20), transparent 70%), radial-gradient(ellipse 70% 40% at 80% 90%, rgba(120, 60, 160, .12), transparent 70%);
  overflow: hidden; -webkit-user-select: none; user-select: none; z-index: 1;
}
.boot-offline .bo-hero{ position: absolute; top: 0; left: 0; right: 0; height: 62%; display: grid; place-items: center; }
.boot-offline .bo-ring{ position: relative; width: 200px; height: 200px; border-radius: 50%; border: 1px dashed var(--bo-line); display: grid; place-items: center; }
.boot-offline .bo-ring::before{ content: ""; position: absolute; inset: -48px; border-radius: 50%; border: 1px dashed rgba(160, 180, 255, .07); }
.boot-offline .bo-logo{ width: 88px; height: 88px; border-radius: 26px; display: block; opacity: .55; filter: grayscale(.5); box-shadow: 0 18px 50px rgba(2, 5, 15, .55), 0 0 0 1px var(--bo-line); }
.boot-offline .bo-main{ width: 100%; box-sizing: border-box; padding: 0 16px 40px; align-self: end; text-align: center; }
.boot-offline .bo-card{ max-width: 420px; margin: 0 auto; background: var(--bo-panel); border: 1px solid var(--bo-line); border-radius: 16px; padding: 24px 20px 20px; box-shadow: 0 18px 50px rgba(2, 5, 15, .55); }
.boot-offline h1{ margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.boot-offline p{ margin: 0 0 20px; color: var(--bo-muted); font-size: 15px; }
.boot-offline .bo-button{ font: inherit; font-weight: 600; background: var(--bo-accent); color: #fff; border: 0; min-height: 48px; width: 100%; border-radius: 12px; cursor: pointer; }
.boot-offline .bo-button:disabled{ opacity: .6; cursor: default; }
.boot-offline .bo-button:focus-visible{ outline: 2px solid #fff; outline-offset: 2px; }
.boot-offline .bo-pill{ display: inline-flex; margin-top: 16px; padding: 6px 12px; border-radius: 99px; background: var(--bo-accent-soft); color: var(--bo-accent-2); font-size: 13px; gap: 8px; align-items: center; }
.boot-offline .bo-dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--bo-away); animation: bo-pulse 1.6s ease-in-out infinite; }
.boot-offline.checking .bo-dot{ background: var(--bo-accent-2); }
@keyframes bo-pulse{ 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce){
.boot-offline .bo-dot{ animation: none; }
}
.app-icon{ display: grid; gap: 12px; margin-top: 18px; }
.app-icon > span{ margin-bottom: 0; }
.app-icon .hint{ margin: -6px 0 0; }
html{ -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body{ overscroll-behavior: none; }
.side,.modal{ overscroll-behavior: contain; }
button,a,select,label,summary,[role="button"],[data-action]{ touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (pointer: coarse){
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),select,textarea{ font-size: 16px !important; }
.icon-btn{ min-width: 40px; min-height: 40px; }
.btn.sm{ min-height: 40px; }
.channel .edit,.reaction,button[data-action="pin"]{ position: relative; }
.channel .edit::before{ content: ''; position: absolute; inset: -8px; }
.reaction::before{ content: ''; position: absolute; inset: -8px -2px; }
button[data-action="pin"]::before{ content: ''; position: absolute; inset: -12px -4px; }
}
