/* Orata — channel permissions, account switcher, invite cards, server folders, music. */

/* ------------------------------------------------ friend picker (new DM / group DM) */
.pick-row .pick-name { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------ account switcher */
.um-switch { position: relative; }
.um-switch .um-caret { margin-left: auto; opacity: .7; }
.um-switch.open > .um-item { background: var(--hover); }
.um-sub { position: absolute; left: calc(100% + 14px); bottom: -6px; width: 260px; padding: 8px; border-radius: var(--radius); background: rgb(var(--panel-rgb) / .97); border: 1px solid var(--border); box-shadow: var(--shadow-pop); z-index: 5; animation: pop-in var(--t-med) var(--ease-spring) both; }
.um-sub::before { content: ""; position: absolute; left: -16px; top: 0; bottom: 0; width: 16px; }   /* keeps the hover bridge between the menu and its submenu */
.um-item.acct { padding: 7px 10px; }
.acct-nm { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.acct-nm b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-nm small { margin: 0 !important; text-align: left; color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-item:hover .acct-nm small { color: inherit; opacity: .8; }
.acct-check { color: var(--accent); display: flex; } .um-item:hover .acct-check { color: inherit; }
.acct-list { display: flex; flex-direction: column; gap: 6px; }
.acct-manage { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: rgb(var(--surface-rgb) / .06); }
.acct-manage .here { margin-left: 8px; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--text); }
.saved-accts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.saved-accts > small { color: var(--text-3); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.saved-acct { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; text-align: left; background: rgb(var(--surface-rgb) / .06); transition: background var(--t-fast), transform var(--t-fast); }
.saved-acct:hover { background: var(--hover); transform: translateX(2px); }
.saved-acct > .avatar { flex: none; } .saved-acct > span:not(.avatar) { flex: 1; display: flex; flex-direction: column; min-width: 0; } .saved-acct small { color: var(--text-3); font-size: 12px; margin: 0; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-weight: 600; }

/* ------------------------------------------------ edit channel / category */
.chan-tabs { display: flex; gap: 4px; margin: -4px 0 14px; padding: 4px; border-radius: 12px; background: rgb(var(--surface-rgb) / .07); width: fit-content; }
.chan-tab { padding: 7px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: background var(--t-fast), color var(--t-fast); }
.chan-tab:hover { color: var(--text); } .chan-tab.on { background: var(--accent-grad); color: var(--on-accent); }

/* ------------------------------------------------ permission editor */
.perm-editor { display: flex; flex-direction: column; gap: 12px; }
.sync-banner { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: rgb(var(--surface-rgb) / .06); }
.sync-banner .sb-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgb(var(--surface-rgb) / .1); }
.sync-banner > div { flex: 1; min-width: 0; } .sync-banner b { display: block; font-size: 14px; } .sync-banner em { font-style: normal; color: var(--accent-text, var(--text)); }
.sync-banner small { display: block; color: var(--text-3); font-size: 12.5px; margin-top: 2px; line-height: 1.35; }
.sync-banner.on { border-color: rgb(var(--accent-rgb) / .55); } .sync-banner.on .sb-ic { background: var(--accent-grad); color: var(--on-accent); }
.sync-banner.off .sb-ic { background: rgb(240 178 50 / .2); color: #f0b232; }
.pe-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; min-height: 340px; max-height: 52vh; }
.pe-targets { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); padding-right: 12px; }
.pe-th { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 0 2px 8px; }
.pe-add { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.pe-add-list { max-height: 170px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.pe-add-list button { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 14px; text-align: left; } .pe-add-list button:hover { background: var(--hover); }
.pe-add-list i, .pe-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; display: inline-block; }
.pe-list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; min-height: 0; }
.pe-target { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 500; transition: background var(--t-fast); }
.pe-target > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-target:hover { background: var(--hover); } .pe-target.sel { background: var(--accent-soft); font-weight: 700; }
.pe-x { opacity: 0; width: 20px; height: 20px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--text-3); } .pe-target:hover .pe-x { opacity: 1; } .pe-x:hover { color: #ff7b93; background: rgb(255 80 110 / .14); }
.pe-perms { overflow-y: auto; min-height: 0; padding-right: 4px; }
.pe-ph { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; } .pe-ph b { font-size: 16px; }
.pe-group h5 { margin: 12px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.perm-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid rgb(var(--surface-rgb) / .06); }
.perm-row .pr-text { flex: 1; min-width: 0; } .perm-row b { display: block; font-size: 14.5px; font-weight: 600; } .perm-row small { display: block; color: var(--text-3); font-size: 12.5px; line-height: 1.3; margin-top: 1px; }
.tri { display: inline-flex; flex: none; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-strong, var(--border)); background: rgb(var(--surface-rgb) / .06); }
.tri button { width: 36px; height: 30px; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-weight: 800; font-size: 16px; transition: background var(--t-fast), color var(--t-fast); }
.tri button + button { border-left: 1px solid var(--border); }
.tri button:hover:not(:disabled) { background: var(--hover); color: var(--text); } .tri button:disabled { opacity: .3; cursor: not-allowed; }
.tri button.deny.on, .tri button.deny.on:hover:not(:disabled) { background: #e5314f; color: #fff; } .tri button.allow.on, .tri button.allow.on:hover:not(:disabled) { background: #2f9e57; color: #fff; } .tri button.inherit.on, .tri button.inherit.on:hover:not(:disabled) { background: rgb(var(--surface-rgb) / .22); color: var(--text); }
@media (max-width: 720px) { .pe-grid { grid-template-columns: 1fr; max-height: none; } .pe-targets { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 10px; max-height: 190px; } }

/* ------------------------------------------------ invite cards in messages */
.invite-embed { max-width: 440px; margin-top: 6px; padding: 12px 14px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgb(var(--surface-rgb) / .07); }
.ie-head { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.ie-row { display: flex; align-items: center; gap: 14px; min-height: 54px; }
.ie-icon { border-radius: 16px !important; flex: none; overflow: hidden; }
.ie-info { flex: 1; min-width: 0; }
.ie-name { display: block; font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ie-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; font-size: 13px; color: var(--text-2); }
.ie-stats span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ie-stats i { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); display: inline-block; } .ie-stats i.on { background: #3ba55d; }
.ie-est { color: var(--text-3); }
.ie-btn { flex: none; min-width: 96px; }
.invite-embed.bad .ie-name { color: #ff7b93; } .ie-sub { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.ie-bad { width: 54px; height: 54px; border-radius: 16px; flex: none; display: flex; align-items: center; justify-content: center; background: rgb(255 80 110 / .14); color: #ff7b93; }
@media (max-width: 520px) { .ie-row { flex-wrap: wrap; } .ie-btn { width: 100%; } }

/* ------------------------------------------------ server folders in the rail */
.rail-folder { --fcol: var(--fc, rgb(var(--accent-rgb))); }
.rail-folder .rail-btn.folder { background: color-mix(in srgb, var(--fcol) 24%, transparent); color: var(--fcol); }
.rail-folder .rail-btn.folder:hover { background: color-mix(in srgb, var(--fcol) 38%, transparent); }
.rail-folder.open { padding: 2px 0 6px; border-radius: 26px; background: color-mix(in srgb, var(--fcol) 14%, transparent); width: 62px; margin: 0 auto; }
.rail-folder.open .folder-head .rail-pill { display: none; }
.folder-body { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding-top: 6px; }
.folder-body .rail-item { width: 100%; }
.fold-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 6px; width: 100%; height: 100%; align-content: center; justify-items: center; }
.fold-mini { width: 18px; height: 18px; border-radius: 50%; overflow: hidden; display: block; background: rgb(var(--surface-rgb) / .15); } .fold-mini .server-icon { border-radius: 50%; }
.folder-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.fc-sw { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: transparent; transition: transform var(--t-fast), box-shadow var(--t-fast); }
.fc-sw:hover { transform: scale(1.1); } .fc-sw.sel { color: #fff; box-shadow: 0 0 0 3px rgb(var(--panel-rgb) / 1), 0 0 0 5px var(--text); }

/* ------------------------------------------------ equaliser bars (rail music button, track covers, listening card) */
.eq { display: inline-flex; align-items: flex-end; justify-content: center; gap: 3px; height: 22px; }
.eq i { width: 3.5px; height: 40%; border-radius: 2px; background: currentColor; animation: eq-bar 900ms ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
.eq.sm { height: 16px; gap: 2px; } .eq.sm i { width: 3px; }
@keyframes eq-bar { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.rail-btn.music { color: var(--text); } .rail-item.active .rail-btn.music { background: var(--accent-grad); color: var(--on-accent); }
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; height: 70%; } }

/* ------------------------------------------------ music player pieces */
.m-art { position: relative; flex: none; border-radius: 12px; overflow: hidden; background: rgb(var(--surface-rgb) / .12); display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.m-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-art.on::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .38); } .m-art .eq { position: absolute; z-index: 2; color: #fff; }
.m-now { display: grid; grid-template-columns: 96px 1fr; grid-template-areas: "art text" "prog prog" "ctl ctl" "ext ext" "cred cred"; gap: 10px 14px; padding: 14px; border-radius: 16px; background: rgb(var(--surface-rgb) / .08); border: 1px solid var(--border); }
.m-now > .m-art { grid-area: art; } .m-now-text { grid-area: text; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.m-now-text b { font-size: 16px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-chip { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: rgb(240 178 50 / .2); color: #f0b232; }
.m-now-text a { color: var(--text-2); font-size: 14px; } .m-now-text a:hover { text-decoration: underline; }
.m-progress { grid-area: prog; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.m-controls { grid-area: ctl; display: flex; align-items: center; justify-content: center; gap: 14px; }
.m-play { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-grad); color: var(--on-accent); transition: transform var(--t-fast); } .m-play:hover { transform: scale(1.08); } .m-play:active { transform: scale(.94); }
.m-controls.big .m-play { width: 52px; height: 52px; box-shadow: 0 10px 24px -8px rgb(var(--accent-rgb) / .8); }
.m-extra { grid-area: ext; display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.m-vol { display: flex; align-items: center; gap: 8px; color: var(--text-2); flex: 1; } .m-vol input { flex: 1; min-width: 0; }
.m-share { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.m-credit { grid-area: cred; font-size: 12px; text-align: center; } .m-credit a { color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; } .m-credit a:hover { color: var(--text); }
.m-now input[type="range"] { -webkit-appearance: none; appearance: none; height: 5px; border-radius: 5px; outline: none; cursor: pointer; background: linear-gradient(90deg, rgb(var(--accent-rgb)) var(--p, 0%), rgb(var(--surface-rgb) / .2) var(--p, 0%)); }
.m-progress input { flex: 1; min-width: 0; }
.m-now input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .5); }
.m-now input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }
.m-results { display: flex; flex-direction: column; gap: 2px; }
.m-track { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 12px; text-align: left; transition: background var(--t-fast); } .m-track:hover { background: var(--hover); } .m-track.cur { background: var(--accent-soft); }
.m-t-text { flex: 1; min-width: 0; display: flex; flex-direction: column; } .m-t-text b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .m-t-text small { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-t-dur { color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.m-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 34px 22px; color: var(--text-2); } .m-empty b { color: var(--text); font-size: 16px; } .m-empty p { font-size: 13.5px; line-height: 1.45; margin: 0; max-width: 300px; }
.m-empty pre { margin: 4px 0; padding: 10px 14px; border-radius: 10px; background: rgb(0 0 0 / .3); font-size: 12.5px; text-align: left; user-select: all; }
.m-empty a { text-decoration: underline; }

/* ------------------------------------------------ the Music page */
.music-page { min-width: 0; display: flex; flex-direction: column; }
.music-page .m-topic a { color: var(--text-2); text-decoration: underline; }
.mpg-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 28px 40px; display: flex; flex-direction: column; gap: 22px; }
.mpg-scroll > * { flex: none; }
.mpg-search .input-wrap { position: relative; display: flex; align-items: center; max-width: 640px; }
.mpg-search .input-wrap > .icon { position: absolute; left: 15px; color: var(--text-3); pointer-events: none; }
.mpg-search .input { width: 100%; padding: 12px 42px 12px 44px; font-size: 15px; border-radius: 99px; }
.mpg-clear { position: absolute; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-3); } .mpg-clear:hover { background: var(--hover); color: var(--text); }
.mpg-hero { position: relative; display: flex; gap: 26px; padding: 22px; border-radius: 22px; border: 1px solid var(--border); background: rgb(var(--surface-rgb) / .07); overflow: hidden; isolation: isolate; }
.mpg-hero:not(.empty)::before { content: ""; position: absolute; inset: -40%; background: var(--cover, none) center / cover; filter: blur(60px) saturate(1.4); opacity: .28; z-index: -1; }
.mpg-hero.empty { align-items: center; } .mpg-hero.empty h1 { margin: 0 0 6px; font-size: 28px; } .mpg-hero.empty p { margin: 0; color: var(--text-2); max-width: 460px; line-height: 1.5; }
.mpg-hero-ico { width: 72px; height: 72px; border-radius: 22px; background: var(--accent-grad); color: var(--on-accent); display: flex; align-items: center; justify-content: center; flex: none; }
.mpg-hero-art { width: 190px; flex: none; }
.m-art.cover { width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px; box-shadow: 0 16px 40px -18px rgb(0 0 0 / .7); }
.m-art.cover .eq { height: 32px; }
/* the song's player (an iframe kept on <body>, see youtube-player.js): parked in a corner, on screen so the music keeps playing, but invisible and click-through */
.yt-host { position: fixed; right: 12px; bottom: 12px; z-index: 0; width: 200px; height: 112px; overflow: hidden; opacity: .001; pointer-events: none; }
.yt-host iframe { display: block; width: 100%; height: 100%; border: 0; }
.mpg-now { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.mpg-now h2 { margin: 0; font-size: 26px; line-height: 1.15; overflow-wrap: anywhere; }
.mpg-artist { color: var(--text-2); font-size: 16px; } .mpg-artist:hover { text-decoration: underline; } .mpg-album { color: var(--text-3); }
.mpg-now .m-progress { margin-top: 10px; } .mpg-now .m-controls { justify-content: flex-start; margin: 4px 0; } .mpg-now .m-extra { max-width: 520px; } .mpg-now .m-credit { text-align: left; }
.mpg-hero input[type="range"] { -webkit-appearance: none; appearance: none; height: 5px; border-radius: 5px; outline: none; cursor: pointer; background: linear-gradient(90deg, rgb(var(--accent-rgb)) var(--p, 0%), rgb(var(--surface-rgb) / .2) var(--p, 0%)); }
.mpg-hero input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .5); }
.mpg-hero input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }
.mpg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mpg-chip { padding: 7px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 600; border: 1px solid var(--border); background: rgb(var(--surface-rgb) / .06); color: var(--text-2); transition: background var(--t-fast), color var(--t-fast); } .mpg-chip:hover { background: var(--hover); color: var(--text); }
.mpg-chip.on { background: var(--accent-grad); color: var(--on-accent); border-color: transparent; }
.mpg-section h3 { margin: 0 0 12px; font-size: 18px; }
.mpg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 12px; }
.mpg-card { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 8px; border-radius: 16px; min-width: 0; transition: background var(--t-fast); } .mpg-card:hover { background: var(--hover); } .mpg-card.cur { background: var(--accent-soft); }
.mpg-cover { position: relative; display: block; margin-bottom: 6px; }
.mpg-play { position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-grad); color: var(--on-accent); box-shadow: 0 8px 18px -6px rgb(0 0 0 / .6); opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s; z-index: 3; }
.mpg-card:hover .mpg-play, .mpg-card.cur .mpg-play, .mpg-card:focus-visible .mpg-play { opacity: 1; transform: none; }
.mpg-card b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mpg-card small { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* playlists, artist pages and album pages (music-pages.js) */
.m-link { color: inherit; text-decoration: none; cursor: pointer; } .m-link:hover { text-decoration: underline; color: var(--text); }
.m-back { margin-right: 4px; }
.mpg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .mpg-h .link-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; }
.mpg-hint { margin: 0; color: var(--text-3); font-size: 13.5px; }
.mpg-cell { position: relative; min-width: 0; display: flex; } .mpg-cell .mpg-card { flex: 1; min-width: 0; }
.mpg-add { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgb(0 0 0 / .55); color: #fff; backdrop-filter: blur(6px); opacity: 0; transform: scale(.85); transition: opacity var(--t-fast), transform var(--t-fast) var(--ease-spring), background var(--t-fast); }
.mpg-cell:hover .mpg-add, .mpg-add:focus-visible { opacity: 1; transform: none; } .mpg-add:hover { background: var(--accent); }
@media (hover: none) { .mpg-add, .mpg-ib { opacity: 1; transform: none; } }
.m-addpl { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; border: 1px solid var(--border); background: rgb(var(--surface-rgb) / .08); color: var(--text-2); transition: background var(--t-fast), color var(--t-fast); } .m-addpl:hover { background: var(--hover); color: var(--text); }
.mpg-now .m-extra { flex-wrap: wrap; row-gap: 10px; }
.pl-mosaic { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: rgb(var(--surface-rgb) / .12); color: var(--text-3); box-shadow: 0 16px 40px -18px rgb(0 0 0 / .7); }
.pl-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-mosaic.four { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.ar, .al { display: flex; flex-direction: column; gap: 22px; }
.ar > *, .al > * { flex: none; }
.ar-head, .al-head { position: relative; display: flex; align-items: flex-end; gap: 24px; padding: 28px 24px 22px; min-height: 200px; border-radius: 22px; border: 1px solid var(--border); background: rgb(var(--surface-rgb) / .07); overflow: hidden; isolation: isolate; }
.ar-head::before { content: ""; position: absolute; inset: 0; background: var(--banner, none) center / cover; opacity: .55; z-index: -2; }
.ar-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .08), rgb(var(--panel-rgb) / .88)); z-index: -1; }
.al-head::before { content: ""; position: absolute; inset: -40%; background: var(--cover, none) center / cover; filter: blur(60px) saturate(1.4); opacity: .3; z-index: -1; }
.ar-avatar { width: 150px; height: 150px; flex: none; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: rgb(var(--surface-rgb) / .18); color: var(--text-3); border: 3px solid rgb(255 255 255 / .14); box-shadow: 0 16px 40px -14px rgb(0 0 0 / .7); }
.ar-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-cover { width: 200px; flex: none; }
.ar-info { min-width: 0; display: flex; flex-direction: column; gap: 6px; } .ar-info h1 { margin: 0; font-size: 38px; line-height: 1.1; overflow-wrap: anywhere; }
.m-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.ar-stats { color: var(--text-2); font-size: 14px; } .ar-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.ar-bio { margin: 0; max-width: 760px; color: var(--text-2); font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; } .ar-bio.open { display: block; }
.mpg-more { margin-top: 8px; }
.mpg-rows { display: flex; flex-direction: column; gap: 2px; }
.mpg-row { display: flex; align-items: center; gap: 12px; padding: 6px 10px 6px 6px; border-radius: 12px; cursor: pointer; transition: background var(--t-fast); } .mpg-row:hover { background: var(--hover); } .mpg-row.cur { background: var(--accent-soft); }
.mpg-n { flex: none; width: 30px; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 14px; font-variant-numeric: tabular-nums; } .mpg-n .icon { display: none; color: var(--text); }
.mpg-row:hover .mpg-n .icon, .mpg-row:focus-visible .mpg-n .icon { display: block; } .mpg-row:hover .mpg-n .num, .mpg-row:focus-visible .mpg-n .num { display: none; }
.mpg-row .m-art { border-radius: 8px; }
.mpg-rt { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; } .mpg-rt b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mpg-rt small { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpg-e { display: inline-block; margin-right: 5px; padding: 0 4px; border-radius: 3px; background: rgb(var(--surface-rgb) / .22); color: var(--text-2); font-size: 10px; font-style: normal; font-weight: 800; line-height: 14px; }
.mpg-ra { flex: 0 0 24%; min-width: 0; color: var(--text-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpg-rd { flex: none; width: 46px; text-align: right; color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.mpg-ib { flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-3); opacity: 0; transition: opacity var(--t-fast), background var(--t-fast), color var(--t-fast); } .mpg-row:hover .mpg-ib, .mpg-ib:focus-visible { opacity: 1; } .mpg-ib:hover { background: var(--hover); color: var(--text); }
.mpg-artists { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mpg-artist-card { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 128px; padding: 12px 8px; border-radius: 16px; text-align: center; transition: background var(--t-fast); } .mpg-artist-card:hover { background: var(--hover); }
.mpg-artist-card b { max-width: 100%; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mpg-artist-card small { color: var(--text-3); font-size: 12px; }
.ar-mini { width: 84px; height: 84px; margin-bottom: 4px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: rgb(var(--surface-rgb) / .15); color: var(--text-3); } .ar-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) { .ar-head, .al-head { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 16px; min-height: 0; } .ar-avatar { width: 112px; height: 112px; } .ar-info h1 { font-size: 28px; } .al-cover { width: 150px; } .mpg-ra { display: none; } }
@media (max-width: 760px) { .mpg-scroll { padding: 6px 14px 30px; } .mpg-hero { flex-direction: column; gap: 16px; padding: 16px; } .mpg-hero-art { width: 150px; } .mpg-now h2 { font-size: 21px; } .mpg-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }

/* ------------------------------------------------ mini player (above the user bar) */
.mini-player { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 8px; margin: 0 0 6px; border-radius: 14px; background: rgb(var(--surface-rgb) / .08); width: 0; min-width: 100%; max-width: 100%; overflow: hidden; }   /* width 0 + min-width 100%: it takes the column's width and its long title never makes the whole left column wider */
.mp-open { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-align: left; }
.mp-text { display: flex; flex-direction: column; min-width: 0; flex: 1; } .mp-text b { font-size: 13px; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .mp-text small { font-size: 11.5px; color: var(--text-3); white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.mini-player .m-controls { gap: 2px; flex: none; } .mini-player .m-controls > .icon-btn:first-child { display: none; }

/* ------------------------------------------------ "Listening to" on profiles */
.listening-card { margin: 10px 0 2px; padding: 10px 12px; border-radius: 12px; background: rgb(var(--surface-rgb) / .08); border: 1px solid var(--border); }
.listening-card h5 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #ff7a33; }
.lc-row { display: flex; gap: 12px; align-items: center; }
.lc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lc-title { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; } a.lc-title:hover { text-decoration: underline; }
.lc-text small { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-bar { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lc-bar i { flex: 1; height: 4px; border-radius: 4px; background: rgb(var(--surface-rgb) / .2); overflow: hidden; display: block; } .lc-bar i b { display: block; height: 100%; background: #ff7a33; border-radius: inherit; transition: width 1s linear; }

/* ------------------------------------------------ custom emoji & stickers */
img.emoji.custom { height: 1.4em; width: auto; min-width: 1em; max-width: 4em; object-fit: contain; vertical-align: -0.38em; display: inline-block; }
.msg-content.jumbo img.emoji.custom { height: 3.1em; vertical-align: -0.6em; }
.emoji-missing { color: var(--text-3); }
.reaction img.r-emoji.emoji.custom { height: 18px; width: auto; vertical-align: middle; }
.emoji-cell.custom { display: flex; align-items: center; justify-content: center; } .emoji-cell.custom img { width: 28px; height: 28px; object-fit: contain; }
.emoji-preview .big .big-img { width: 38px; height: 38px; vertical-align: middle; }
.ac-cemoji { width: 24px; height: 24px; object-fit: contain; }
.gif-tile.stickers.custom { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; } .gif-tile.stickers.custom img { width: 100%; height: 100%; object-fit: contain; }
.expr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.expr-grid.stickers { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.expr-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgb(var(--surface-rgb) / .07); border: 1px solid var(--border); }
.expr-item.stickers { flex-direction: column; align-items: stretch; text-align: center; }
.expr-img { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; } .expr-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.expr-item.stickers .expr-img { width: 100%; height: 110px; }
.expr-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .expr-meta small { color: var(--text-3); font-size: 12px; }
.expr-name { height: 32px; padding: 0 10px; font-size: 14px; }
.expr-del { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-3); opacity: 0; transition: opacity var(--t-fast), background var(--t-fast); }
.expr-item:hover .expr-del { opacity: 1; } .expr-del:hover { color: #ff7b93; background: rgb(255 80 110 / .14); }
.expr-item:not(.stickers) .expr-del { position: static; opacity: .6; }

/* ------------------------------------------------ forum channels */
.forum-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 22px 28px; display: flex; flex-direction: column; gap: 14px; }
.forum-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.forum-tags, .tag-picker, .post-hdr-tags, .pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: rgb(var(--surface-rgb) / .1); border: 1px solid var(--border); color: var(--text-2); transition: background var(--t-fast), color var(--t-fast); }
.tag-chip:not(:disabled):hover { background: var(--hover); color: var(--text); } .tag-chip:disabled { cursor: default; }
.tag-chip.on { background: var(--accent-grad); color: var(--on-accent); border-color: transparent; }
.tag-chip.sm { padding: 2px 9px; font-size: 12px; }
.forum-list { display: flex; flex-direction: column; gap: 10px; }
.post-card { display: flex; gap: 14px; text-align: left; padding: 14px 16px; border-radius: 16px; background: rgb(var(--surface-rgb) / .07); border: 1px solid var(--border); transition: background var(--t-fast), transform var(--t-fast) var(--ease), border-color var(--t-fast); }
.post-card:hover { background: var(--hover); transform: translateY(-1px); }
.post-card.pinned { border-color: rgb(var(--accent-rgb) / .55); }
.pc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.pc-main h3 { margin: 0; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 7px; } .pc-main h3 > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-flag { flex: none; color: var(--text-3); } .post-card.pinned .pc-flag { color: rgb(var(--accent-rgb)); }
.pc-prev { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); } .pc-foot b { color: var(--text-2); font-weight: 600; }
.pc-sp { flex: 1; } .pc-stat { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; }
.pc-thumb { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; flex: none; background: rgb(var(--surface-rgb) / .1); }
.forum-more { display: flex; justify-content: center; padding: 6px 0; }
.forum-guide { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; background: rgb(var(--surface-rgb) / .08); font-size: 13.5px; color: var(--text-2); white-space: pre-wrap; }
.np-files { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.np-file { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 10px; border-radius: 99px; background: rgb(var(--surface-rgb) / .1); font-size: 13px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .np-file button { display: flex; color: var(--text-3); }
.tag-edit { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; } .tag-row { display: flex; gap: 8px; align-items: center; width: 100%; } .tg-emoji { width: 58px; text-align: center; flex: none; }
.post-hdr-tags { margin-left: 8px; flex-wrap: nowrap; } .post-lock { display: inline-flex; margin-left: 6px; color: var(--text-3); }

/* ------------------------------------------------ polls */
.poll { max-width: 460px; margin-top: 6px; padding: 14px 16px; border-radius: 14px; background: rgb(var(--surface-rgb) / .08); border: 1px solid var(--border); }
.poll-q { font-size: 16px; font-weight: 700; margin-bottom: 2px; overflow-wrap: anywhere; }
.poll-hint { font-size: 12.5px; color: var(--text-3); margin-bottom: 10px; }
.poll-answers { display: flex; flex-direction: column; gap: 6px; }
.poll-ans { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: rgb(var(--surface-rgb) / .06); overflow: hidden; text-align: left; font-size: 14.5px; transition: border-color var(--t-fast), transform var(--t-fast); }
.poll-ans:not(:disabled):hover { border-color: rgb(var(--accent-rgb) / .65); } .poll-ans:not(:disabled):active { transform: scale(.992); } .poll-ans:disabled { cursor: default; }
.pa-bar { position: absolute; inset: 0 auto 0 0; background: rgb(var(--accent-rgb) / .24); transition: width .5s var(--ease); z-index: 0; }
.poll-ans > :not(.pa-bar) { position: relative; z-index: 1; }
.pa-check { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong, var(--border)); display: flex; align-items: center; justify-content: center; flex: none; }
.poll-ans.mine .pa-check { background: var(--accent-grad); border-color: transparent; color: var(--on-accent); }
.pa-text { flex: 1; min-width: 0; overflow-wrap: anywhere; } .pa-num { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; flex: none; }
.poll-ans.win .pa-bar { background: rgb(47 158 87 / .38); } .poll-ans.win .pa-text { font-weight: 700; }
.poll-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: 12.5px; color: var(--text-3); } .poll-foot .link-btn { margin-left: auto; }
.poll-answers-edit { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; } .pae-row { display: flex; gap: 6px; align-items: center; width: 100%; } .pae-row > :first-child { flex: 1; }

/* ------------------------------------------------ shared themes (/theme) */
.theme-embed { max-width: 440px; margin-top: 6px; padding: 12px 14px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgb(var(--surface-rgb) / .07); }
.theme-embed.applied { border-color: rgb(var(--accent-rgb) / .55); }
.theme-embed.bad .ie-head { color: #ff7b93; }
.tc-preview { position: relative; width: 104px; height: 66px; flex: none; border-radius: 12px; overflow: hidden; background-size: cover; background-position: center; border: 1px solid var(--border); }
.tc-dim { position: absolute; inset: 0; background: #000; }
.tc-panel { position: absolute; inset: 9px 9px 9px 28px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 7px 8px; backdrop-filter: blur(3px); }
.tc-line { display: block; height: 4px; border-radius: 3px; background: rgb(255 255 255 / .55); width: 80%; } .tc-line.short { width: 45%; background: rgb(255 255 255 / .3); }
.tc-accent { position: absolute; right: 7px; bottom: 6px; width: 20px; height: 8px; border-radius: 6px; }
.theme-embed .ie-row { flex-wrap: wrap; row-gap: 10px; } .theme-embed .ie-info { flex: 1 1 150px; } .theme-embed .ie-btn { margin-left: auto; }
.theme-embed .ie-sub { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 520px) { .tc-preview { width: 88px; height: 56px; } }

/* ------------------------------------------------ call link status */
.tile-link { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgb(0 0 0 / .6); color: #fff; font-size: 12px; font-weight: 600; }
.tile-link.slow { color: #f5b942; } .tile-link.failed { background: rgb(240 77 106 / .85); }

/* ------------------------------------------------ profile styling: the card */
.profile-card[class*="pf-"] { border-radius: 20px; } .profile-card.modal[class*="pf-"] { border-radius: var(--radius-lg, 24px); }
.profile-card.pf-colors { background: var(--pf-bg); }
.profile-card[class*="pf-"] .pc-banner { border-radius: 20px 20px 0 0; } .profile-card.modal[class*="pf-"] .pc-banner { border-radius: var(--radius-lg, 24px) var(--radius-lg, 24px) 0 0; }
.profile-pop:has(.pf-shadow) { border-radius: 20px; }
.profile-pop:has(.pf-shadow) { overflow: visible; } .profile-pop:has(.pf-shadow) .profile-card { overflow: visible; box-shadow: var(--pf-shadow), var(--pf-glow); }
.profile-card.modal.pf-shadow { box-shadow: var(--pf-glow); }
.profile-card > .pf-ol { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 6; padding: var(--pf-olw); background: linear-gradient(135deg, var(--pf-ol), var(--pf-ol2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.profile-card > .pf-ol.pf-ol-line { padding: 0; background: none; -webkit-mask: none; mask: none; box-sizing: border-box; }
.profile-card > .pf-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; border-radius: inherit; }
.profile-card.pf-name-font .pn { font-family: var(--pf-name-font), system-ui, sans-serif; font-weight: 400; font-synthesis: none; letter-spacing: 0; }
.profile-card.pf-text-font .pc-body { font-family: var(--pf-text-font), system-ui, sans-serif; }
.profile-card.pf-text-font :is(.pc-msg input, .pc-view) { font-family: var(--font-ui); }   /* the card's own controls: a wide font (Press Start 2P…) doesn't fit them */
/* a styled name: outline layer behind, fill in front, drop-shadow around both */
.pn { position: relative; display: inline-block; }
.pn-f { position: relative; z-index: 1; }
.pn-f.solid { color: var(--pn-a); }
.pn-f.grad { background: linear-gradient(var(--pn-angle), var(--pn-a), var(--pn-b)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.pn-o { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; user-select: none; white-space: pre; color: var(--pno-a); -webkit-text-stroke: calc(var(--pno-w) * 2) var(--pno-a); }
.pn-o.grad { background: linear-gradient(var(--pno-angle), var(--pno-a), var(--pno-b)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; -webkit-text-stroke: calc(var(--pno-w) * 2) transparent; }

/* ------------------------------------------------ profile styling: the editor */
.ps-editor { display: flex; flex-direction: column; gap: 14px; } .ps-tabs { overflow-x: auto; padding-bottom: 2px; }
.ps-group { border: 1px solid var(--border); border-radius: 14px; background: rgb(var(--surface-rgb) / .05); }
.ps-group > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; } .ps-group > header b { display: block; font-size: 14.5px; } .ps-group > header small { display: block; color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.ps-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--border); } .ps-body.flat { border-top: 0; }
.ps-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .ps-label { width: 84px; flex: none; font-size: 13px; color: var(--text-2); }
.ps-ctl { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; flex-wrap: wrap; } .ps-row.wide .ps-ctl > * { flex: 1; min-width: 120px; }
.ps-note { font-size: 12px; color: var(--text-3); margin: 0; } .ps-foot { display: flex; justify-content: flex-end; }
.ps-namepreview { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background: #1a1a24; font-size: 28px; font-weight: 800; min-height: 74px; display: flex; align-items: center; overflow: hidden; }
.ps-fxgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ps-fx { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 12px; border: 1px solid var(--border); background: rgb(var(--surface-rgb) / .04); text-align: left; min-width: 0; transition: background var(--t-fast); } .ps-fx:hover { background: var(--hover); } .ps-fx.on { border-color: rgb(var(--accent-rgb) / .8); background: var(--accent-soft); }
.ps-fx-name { font-size: 13px; font-weight: 700; padding: 0 2px; }
.ps-fx-view { display: block; position: relative; width: 100%; aspect-ratio: 150 / 84; border-radius: 8px; overflow: hidden; background: radial-gradient(120% 120% at 20% 10%, #262640, #0a0a12); }
.ps-fx-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ------------------------------------------------ tab cloak */
.cloak-now { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.cloak-tab { display: inline-flex; align-items: center; gap: 8px; max-width: 300px; padding: 8px 12px; border-radius: 10px 10px 0 0; background: rgb(var(--surface-rgb) / .12); border: 1px solid var(--border); border-bottom: 0; font-size: 13px; } .cloak-tab img { width: 16px; height: 16px; flex: none; } .cloak-tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cloak-tab i { font-style: normal; color: var(--text-3); margin-left: 4px; }
.cloak-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.cloak-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: rgb(var(--surface-rgb) / .04); text-align: left; min-width: 0; transition: background var(--t-fast); } .cloak-card:hover { background: var(--hover); } .cloak-card.on { border-color: rgb(var(--accent-rgb) / .8); background: var(--accent-soft); }
.cloak-card img { width: 28px; height: 28px; flex: none; border-radius: 6px; object-fit: contain; background: rgb(255 255 255 / .06); }
.cloak-card span { display: flex; flex-direction: column; min-width: 0; } .cloak-card b { font-size: 14px; } .cloak-card small { color: var(--text-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------ poll voter list */
.poll-count { font: inherit; color: inherit; padding: 0; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color var(--t-fast), text-decoration-color var(--t-fast); } .poll-count:hover { color: var(--text); text-decoration-color: currentColor; }
.pv-list { display: flex; flex-direction: column; gap: 14px; max-height: min(60vh, 460px); overflow-y: auto; }
.pv-ans { border: 1px solid var(--border); border-radius: 12px; background: rgb(var(--surface-rgb) / .05); padding: 10px 12px; }
.pv-ans > header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 8px; } .pv-ans > header b { font-size: 14.5px; overflow-wrap: anywhere; } .pv-ans > header span { color: var(--text-3); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pv-voters { display: flex; flex-direction: column; gap: 6px; } .pv-voter { display: flex; align-items: center; gap: 10px; font-size: 14px; } .pv-none { color: var(--text-3); }

/* ------------------------------------------------ stage channels */
.sch { flex-direction: column; }
.sch-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 14px; gap: 14px; overflow: hidden; }
.sch-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--text-2); padding: 0 16px; }
.sch-hero h2 { font-size: 26px; color: var(--text); overflow-wrap: anywhere; }
.sch-hero .icon-big { width: 96px; height: 96px; border-radius: 50%; background: var(--accent-grad); color: var(--on-accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 40px -10px rgb(var(--accent-rgb) / .8); animation: float 5s ease-in-out infinite; }
.sch-topic { max-width: 520px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.sch-stage { flex: 1 1 58%; min-height: 190px; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 20px; background: rgb(var(--surface-rgb) / .05); padding: 12px 14px 14px; }
.sch-stage .stage-grid { flex: 1; min-height: 0; }
.sch-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.sch-live { padding: 1px 7px; border-radius: 6px; background: #e5314f; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.sch-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-3); text-align: center; padding: 0 12px; } .sch-empty b { color: var(--text-2); font-size: 16px; } .sch-empty span { max-width: 380px; line-height: 1.45; }
.sch-audience { flex: 0 1 auto; max-height: 34%; min-height: 64px; overflow-y: auto; padding-right: 2px; }
.sch-aud-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.sch-aud { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; max-width: 100%; border-radius: 99px; background: rgb(var(--surface-rgb) / .08); font-size: 14px; cursor: pointer; transition: background var(--t-fast), box-shadow var(--t-fast); }
.sch-aud:hover { background: rgb(var(--surface-rgb) / .16); }
.sch-aud.hand { box-shadow: 0 0 0 2px #f5c542; }
.sch-aud-name { min-width: 0; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-hand { display: inline-flex; color: #f5c542; line-height: 0; }
.sch-invite { margin-left: 4px; padding: 4px 11px; border-radius: 99px; background: var(--accent-grad); color: var(--on-accent); font-size: 12px; font-weight: 700; white-space: nowrap; transition: transform var(--t-fast); } .sch-invite:hover { transform: scale(1.06); }
.sch-controls { flex: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }

/* ------------------------------------------------ rainbow profile parts (--rb is an angle that spins; colors are hsl(var(--rb) …)) */
@property --rb { syntax: '<angle>'; inherits: true; initial-value: 300deg; }
@keyframes rb-spin { from { --rb: 0deg; } to { --rb: 360deg; } }
@keyframes rb-hue { to { filter: hue-rotate(360deg); } }
.profile-card.pf-rainbow, .pn.rainbow { animation: rb-spin 8s linear infinite; }
.pf-fx.rainbow, .ps-fx-view canvas.rainbow { animation: rb-hue 8s linear infinite; }
html[data-motion="reduce"] .profile-card.pf-rainbow, html[data-motion="reduce"] .pn.rainbow, html[data-motion="reduce"] .pf-fx.rainbow, html[data-motion="reduce"] .ps-fx-view canvas.rainbow { animation: none; }
.ps-hint { font-size: 12.5px; color: var(--text-3); }
/* a profile you open is never see-through: the card on top of the chat is solid */
.pop-card.profile-pop, .modal:has(.profile-card.modal) { background: rgb(var(--panel-rgb)); -webkit-backdrop-filter: none; backdrop-filter: none; }
.pop-card.profile-pop .profile-card.popout { max-height: min(640px, calc(100vh - 48px)); }
.pe-banner-colors { display: inline-flex; align-items: center; gap: 8px; }

/* a picture behind the whole profile card, at the opacity the person chose */
.profile-card.pf-image { isolation: isolate; }
.profile-card.pf-image::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--pf-img) center / cover no-repeat; opacity: var(--pf-img-o, .6); pointer-events: none; }
.ps-picture { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .ps-thumb { width: 42px; height: 56px; border-radius: 8px; background: center / cover no-repeat #000; border: 1px solid var(--border); flex: none; }

/* ------------------------------------------------ profile badges (badges.js) */
.pc-badges { display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 9px; background: rgb(0 0 0 / .22); }
html[data-mode="light"] .pc-badges { background: rgb(0 0 0 / .06); }
.pc-badge { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .35)); cursor: default; }
.bdg-emoji { line-height: 1; }
.bdg-big { width: 34px; height: 34px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--hover); font-style: normal; }
.bdg-del { flex: none; color: var(--text-3); padding: 6px; border-radius: 8px; transition: color var(--t-fast), background var(--t-fast); } .bdg-del:hover { color: #ff7b93; background: rgb(240 77 106 / .14); }
.bdg-new { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.bdg-new h5 { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); }
.bdg-new > .btn { align-self: flex-start; }
.bdg-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .bdg-row > .dropdown, .bdg-row > .input-wrap { flex: 1; min-width: 140px; }
.bdg-opt { display: inline-flex; align-items: center; gap: 8px; }

/* ------------------------------------------------ audio messages (composer.js records them, message.js plays them) */
.composer-row[hidden] { display: none; }
.rec-row { align-items: center; gap: 12px; padding-left: 14px; min-height: 48px; }
.rec-dot { width: 11px; height: 11px; border-radius: 50%; background: #f04d6a; box-shadow: 0 0 0 0 rgb(240 77 106 / .6); animation: rec-pulse 1.2s ease-out infinite; flex: none; }
@keyframes rec-pulse { to { box-shadow: 0 0 0 10px rgb(240 77 106 / 0); } }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 700; } .rec-time small { color: var(--text-3); font-weight: 600; }
.rec-label { flex: 1; color: var(--text-3); font-size: 14px; }
.voice-msg { display: flex; align-items: center; gap: 10px; width: min(360px, 100%); padding: 8px 12px 8px 8px; margin-top: 4px; border-radius: 999px; background: rgb(var(--surface-rgb) / .1); border: 1px solid var(--border); }
.vm-play { width: 34px; height: 34px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-grad); color: var(--on-accent); transition: transform var(--t-fast) var(--ease-spring); } .vm-play:active { transform: scale(.92); }
.vm-wave { flex: 1; height: 26px; display: flex; align-items: center; gap: 2px; cursor: pointer; }
.vm-wave i { flex: 1; min-height: 3px; border-radius: 2px; background: rgb(var(--surface-rgb) / .35); transition: background var(--t-fast); }
.vm-wave i.on { background: var(--accent); }
.vm-time { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); min-width: 32px; text-align: right; }
.vm-exp { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--text-3); }

/* ------------------------------------------------ Orbit in a server (orbit.js) */
.msg.ephemeral { background: rgb(var(--accent-rgb) / .07); }
.msg-eph { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--text-3); } .msg-eph a { color: var(--accent); cursor: pointer; } .msg-eph a:hover { text-decoration: underline; }
.orbit-check { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 14px; background: var(--input-bg); cursor: pointer; text-align: left; }
.orbit-check input { position: absolute; opacity: 0; pointer-events: none; }
.orbit-check .box { width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 7px; border: 2px solid var(--border-strong); display: flex; align-items: center; justify-content: center; color: transparent; transition: all var(--t-fast); }
.orbit-check input:checked ~ .box { background: var(--accent-grad); border-color: transparent; color: #fff; }
.orbit-check input:focus-visible ~ .box { box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .35); }
.orbit-check > span:last-child { display: flex; flex-direction: column; gap: 3px; } .orbit-check small { color: var(--text-3); font-size: 12.5px; line-height: 1.4; }
.orbit-top { display: flex; align-items: center; gap: 18px; }
.orbit-cmds { display: flex; flex-direction: column; } .orbit-cmds h5 { margin: 4px 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); }
.oc-row { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; border-top: 1px solid var(--border); }
.oc-name { width: 130px; flex: none; display: flex; flex-direction: column; } .oc-name small { color: var(--text-3); font-size: 12px; }
.oc-roles { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.oc-role { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--hover); font-size: 12.5px; font-weight: 600; color: var(--text-2); transition: all var(--t-fast); }
.oc-role i { width: 10px; height: 10px; border-radius: 50%; background: var(--rc); }
.oc-role.on { color: var(--text); border-color: var(--rc); background: color-mix(in srgb, var(--rc) 22%, transparent); }

/* ------------------------------------------------ forwarded messages (forward.js) */
.fwd { margin-top: 4px; padding: 8px 12px 8px 12px; border-left: 3px solid rgb(var(--surface-rgb) / .35); border-radius: 4px 10px 10px 4px; background: rgb(var(--surface-rgb) / .05); max-width: 560px; }
.fwd-head { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; font-style: italic; color: var(--text-3); margin-bottom: 4px; }
.fwd-foot { margin-top: 6px; font-size: 12px; color: var(--text-3); }
.fwd-link { display: block; max-width: 100%; padding: 0; border: 0; background: none; font: inherit; font-size: 12px; text-align: left; cursor: pointer; border-radius: 4px; transition: color var(--t-fast, .12s); }   /* the line is a link to the original message */
.fwd-link:hover, .fwd-link:focus-visible { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.fwd-link:focus-visible { outline: 2px solid rgb(var(--accent-rgb) / .7); outline-offset: 2px; }
.fwd-sicon { display: inline-flex; vertical-align: -3px; margin: 0 4px 0 1px; flex: none; border-radius: 50%; }
.fwd-list { max-height: 300px; }
.fwd-ic { font-style: normal; width: 32px; height: 32px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--hover); color: var(--text-2); }

/* ------------------------------------------------ reaction roles (orbit.js) */
.rr-rows { display: flex; flex-direction: column; gap: 8px; }
.rr-row { display: flex; align-items: center; gap: 8px; } .rr-row .dropdown { flex: 1; }
.rr-emoji { width: 44px; height: 40px; flex: none; border-radius: var(--radius-sm); background: var(--input-bg); font-size: 20px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); overflow: hidden; }
.rr-emoji:hover { background: rgb(var(--surface-rgb) / .12); }

/* ------------------------------------------------ onboarding (onboarding.js) */
.ob-rules { max-height: 260px; overflow-y: auto; padding: 12px 14px; border-radius: 14px; background: var(--input-bg); font-size: 14.5px; line-height: 1.5; }
.ob-roles h5, .al-top h5 { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); }
.ob-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ob-role { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--input-bg); text-align: left; transition: border-color var(--t-fast), background var(--t-fast); }
.ob-role:hover { border-color: var(--rc); }
.ob-role.on { border-color: var(--rc); background: color-mix(in srgb, var(--rc) 16%, transparent); }
.ob-emoji { font-size: 20px; width: 26px; text-align: center; flex: none; }
.ob-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; } .ob-txt small { color: var(--text-3); font-size: 12px; line-height: 1.3; }
.ob-check { width: 20px; height: 20px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: transparent; border: 2px solid var(--border-strong); }
.ob-role.on .ob-check { background: var(--rc); border-color: transparent; color: #fff; }
.ob-set-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.ob-set-name { display: inline-flex; align-items: center; gap: 8px; min-width: 150px; font-weight: 600; } .ob-set-name i { width: 11px; height: 11px; border-radius: 50%; flex: none; } .ob-set-name small { color: var(--text-3); font-weight: 500; font-size: 12px; }
.ob-set-row .input-wrap { flex: 1; min-width: 160px; } .ob-set-row .ob-set-emoji { flex: 0 0 72px; min-width: 72px; }

/* ------------------------------------------------ audit log (audit-log.js) */
.al-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; } .al-top p { margin: 0; max-width: 520px; font-size: 13.5px; }
.al-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.al-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--input-bg); }
.al-ic { width: 30px; height: 30px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.al-ic.bad { background: rgb(240 77 106 / .15); color: #ff7b93; }
.al-text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; display: flex; flex-direction: column; gap: 2px; } .al-text small { color: var(--text-3); font-size: 12.5px; } .al-ex { font-style: italic; overflow-wrap: anywhere; }
.al-row time { flex: none; font-size: 12px; color: var(--text-3); white-space: nowrap; }

/* ------------------------------------------------ custom invite link (Server Settings → Invites) */
.vanity-box { margin-bottom: 12px; }
.vanity-row { display: flex; align-items: center; gap: 0; } .vanity-row .btn { margin-left: 10px; }
.vanity-prefix { height: 40px; display: inline-flex; align-items: center; padding: 0 4px 0 12px; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--input-bg); color: var(--text-3); font-size: 14px; white-space: nowrap; }
.vanity-input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding-left: 2px; flex: 1; min-width: 120px; }

/* ------------------------------------------------ server tags (server-tag.js) */
.srv-tag { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 6px 1px 5px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .03em; line-height: 16px; vertical-align: middle; color: var(--text); background: color-mix(in srgb, var(--tc) 22%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 45%, transparent); white-space: nowrap; flex: none; }
.srv-tag .icon { color: var(--tc); }
.stag-edit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .stag-edit .stag-text { width: 120px; flex: none; } .stag-edit .stag-text input, .stag-edit input.stag-text { text-transform: none; letter-spacing: .04em; font-weight: 700; }
.stag-preview { min-width: 70px; } .stag-preview .srv-tag { margin-left: 0; font-size: 13px; padding: 3px 9px 3px 7px; }
.stag-icons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.stag-ic { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--input-bg); color: var(--text-3); border: 1.5px solid transparent; transition: all var(--t-fast); }
.stag-ic:hover:not(:disabled) { color: var(--text); } .stag-ic.on { color: var(--tc); border-color: var(--tc); background: color-mix(in srgb, var(--tc) 16%, transparent); } .stag-ic:disabled { opacity: .5; }
.stag-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Discord bridge: messages from a linked Discord channel */
.bot-tag.discord-tag { background: #5865f2; color: #fff; }
.discord-pop { display: flex; align-items: center; gap: 14px; padding: 16px; max-width: 320px; }
.discord-pop .dp-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; }
.discord-pop p { margin: 4px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.4; }

/* Ban dialog: the other accounts on their browser */
.ban-alts { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--input-bg); transition: opacity var(--t-fast); }
.ban-alts.off { opacity: .45; }
.ban-alts > small { color: var(--text-3); font-size: 12px; }
.ban-alt { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ban-alt b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ban-alt span { color: var(--text-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Safety: a server's own blocked words stay hidden until someone asks */
.words-hidden { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--input-bg); color: var(--text-2); font-size: 14px; }
.words-hidden span { flex: 1; }

/* A channel's emoji in place of # */
.ch-item .ch-icon.ch-emoji { width: 19px; text-align: center; font-size: 15px; line-height: 19px; flex: none; opacity: 1; }   /* an emoji stays in color */
.m-emoji { font-size: 20px; line-height: 1; }
.ch-emoji-pick { display: flex; align-items: center; gap: 8px; }
.ch-emoji-btn { width: 40px; height: 40px; border-radius: 12px; background: var(--input-bg); display: grid; place-items: center; font-size: 20px; color: var(--text-2); }
.ch-emoji-btn:hover:not(:disabled) { background: var(--hover); }

/* Applications to join, and the server a tag belongs to */
.app-card { margin: 6px 16px 6px 72px; padding: 14px 16px; border-radius: 16px; background: var(--input-bg); border: 1px solid var(--border); max-width: 560px; display: flex; flex-direction: column; gap: 10px; }
.app-head { display: flex; align-items: center; gap: 12px; }
.app-who { display: flex; flex-direction: column; min-width: 0; flex: 1; } .app-who small, .app-when { color: var(--text-3); font-size: 12px; }
.app-msg { margin: 0; white-space: pre-wrap; word-break: break-word; line-height: 1.45; }
.app-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .app-actions .input-wrap { flex: 1; min-width: 180px; }
.app-status { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.app-status.accepted { color: #3ba55d; } .app-status.rejected { color: #ff7b93; }
.app-intro { color: var(--text-2); margin: 0; } .app-q { align-self: stretch; text-align: left; font-weight: 600; font-size: 14px; }
.app-card-modal textarea { align-self: stretch; }
.app-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--input-bg); font-size: 13px; color: var(--text-2); text-align: left; }
.app-note.bad { color: #ff9aaa; } .app-note small { color: var(--text-3); }
.srv-tag.clickable { cursor: pointer; } .srv-tag.clickable:hover { filter: brightness(1.15); }
.srv-pop { width: 300px; overflow: hidden; padding: 0; }
.srv-pop-banner { height: 70px; background-size: cover; background-position: center; } .srv-pop-banner.plain { opacity: .8; }
.srv-pop-body { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; }
.srv-pop-icon { margin-top: -28px; border: 4px solid rgb(var(--panel-rgb)); border-radius: 18px !important; }
.srv-pop-body h3 { margin: 0; font-size: 18px; } .srv-pop-desc { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.4; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

/* Staff page (staff.js) and reports */
.staff-page { min-width: 0; display: flex; flex-direction: column; }
.staff-tabs { display: flex; gap: 4px; margin-left: 12px; overflow-x: auto; }
.staff-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.staff-tab:hover { background: var(--hover); } .staff-tab.on { background: var(--active); color: var(--text); }
.staff-scroll { flex: 1; overflow-y: auto; padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 14px; }
.staff-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--input-bg); border: 1px solid var(--border); color: var(--text-2); }
.stat-tile b { font-size: 26px; color: var(--text); font-variant-numeric: tabular-nums; margin-top: 6px; } .stat-tile span { font-weight: 600; }
button.stat-tile { text-align: left; font: inherit; } button.stat-tile:disabled { cursor: default; opacity: 1; } .stat-tile.link:hover { border-color: var(--accent); color: var(--text); }
.staff-why { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.staff-h { margin: 10px 0 0; font-size: 16px; }
.staff-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .staff-bar p { margin: 0; flex: 1; }
.staff-search { flex: 1; min-width: 220px; } .staff-lock-len { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; }
.staff-row.sel { background: var(--hover); }
.state-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--input-bg); border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text-2); margin: 2px 4px 2px 0; }
.state-chip.warn { color: #f59e0b; border-color: rgb(245 158 11 / .4); } .state-chip.bad { color: #ff7b93; border-color: rgb(255 123 147 / .4); }
.staff-detail { margin: -2px 12px 8px 62px; padding: 12px 14px; border-radius: 12px; background: var(--input-bg); display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.staff-mini { color: var(--text-2); font-size: 12px; } .text-warn { color: #f59e0b; margin: 0; }
.flag-list { display: flex; flex-direction: column; gap: 10px; }
.flag-row { padding: 12px 14px; border-radius: 14px; background: var(--input-bg); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; } .flag-row.done { opacity: .6; }
.flag-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.flag-kind { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgb(245 158 11 / .15); color: #f59e0b; font-size: 12px; font-weight: 700; }
.flag-kind.report { background: rgb(255 123 147 / .15); color: #ff7b93; }
.flag-who { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; } .flag-who small, .flag-when { color: var(--text-3); font-size: 12px; } .flag-when { margin-left: auto; }
.flag-detail { color: var(--text-2); font-size: 13px; }
.flag-excerpt { margin: 0; padding: 8px 12px; border-left: 3px solid var(--border-strong); background: rgb(0 0 0 / .12); border-radius: 6px; white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.flag-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rep-reasons { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.rep-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--input-bg); text-align: left; font-weight: 600; }
.rep-opt .radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; } .rep-opt.on .radio { border: 5px solid var(--accent); }
.rep-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 10px; color: #3ba55d; } .rep-done p, .rep-done b { color: var(--text); margin: 0; } .rep-done p { color: var(--text-2); }
.pc-terminated { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: rgb(255 123 147 / .12); color: #ff7b93; font-size: 13px; font-weight: 600; }
.staff-acts { margin-left: auto; display: inline-flex; gap: 6px; flex: none; }
.intro-emoji { font-size: 40px; line-height: 1; }

/* staff ghost mode (staff.js) and "used /command" above Orbit's answers (message.js) */
.ghost-banner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 14px; font-size: 13px; font-weight: 600; background: rgb(139 92 246 / .2); color: #c9b5ff; animation: slide-down var(--t-med) var(--ease); }
.msg-reply.cmd-used { cursor: default; color: var(--text-2); } .cmd-used .reply-name { cursor: pointer; } .cmd-used .cmd-name { color: var(--accent); font-weight: 600; }
.staff-dm { display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow-y: auto; margin: 0 -8px; }
.sdm-msg { display: flex; gap: 10px; padding: 8px; border-radius: 10px; } .sdm-msg.flagged { background: rgb(255 123 147 / .12); box-shadow: inset 3px 0 #ff7b93; }
.sdm-body { min-width: 0; } .sdm-head { display: flex; align-items: baseline; gap: 8px; } .sdm-head small { color: var(--text-3); font-size: 12px; }
.sdm-text { word-break: break-word; } .sdm-file { display: block; margin-top: 4px; } .sdm-file img { max-width: 260px; max-height: 200px; border-radius: 8px; }
.legal-page { gap: 10px; } .legal-frame { width: 100%; height: calc(100vh - 190px); min-height: 420px; border: 0; border-radius: 16px; background: #14121f; }
.legal-open { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 13px; color: var(--text-3); } .legal-open:hover { color: var(--text); }
.check-row a { color: var(--accent); }
.sdm-avs { display: flex; flex: none; } .sdm-avs > * + * { margin-left: -10px; } .sdm-excerpt { color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.flag-hidden { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-style: italic; }
.flag-hidden .flag-kind { white-space: nowrap; flex: none; font-style: normal; }

/* Lite mode (public/js/lite.js): nothing blurred or see-through, no wallpaper picture or rain */
html.lite *, html.lite *::before, html.lite *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.lite #rain, html.lite .wp-image { display: none !important; }
/* the launch screen: Normal or Lite mode (app.js ModeChooser) */
.mode-screen { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / .62); }
.mode-box { width: min(690px, 100%); padding: 26px; border-radius: var(--radius-lg); background: rgb(var(--panel-rgb) / .97); border: 1px solid var(--border); text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.mode-box h2 { margin: 0; font-size: 22px; } .mode-box p { margin: 0; color: var(--text-2); line-height: 1.5; }
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
@media (max-width: 520px) { .mode-cards { grid-template-columns: 1fr; } }
.mode-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 16px; border-radius: var(--radius); background: var(--input-bg); border: 2px solid var(--border); color: var(--text-2); text-align: center; transition: border-color var(--t-fast); }
.mode-card:hover { border-color: var(--accent); } .mode-card b { font-size: 17px; color: var(--text); } .mode-card span { font-size: 13px; line-height: 1.45; }
.mode-card .icon { color: var(--accent); } .mode-card small { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.mode-card.current { border-color: rgb(var(--accent-rgb) / .55); }
.mode-boost { font-style: normal; font-size: 12px; font-weight: 700; line-height: 1.35; padding: 4px 12px; border-radius: 10px; background: rgb(var(--accent-rgb) / .15); color: var(--accent); }
.mode-keep { justify-content: center; }
.mode-list { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); text-align: left; }   /* at the bottom, so both cards' rows line up */
.mode-card .mf { display: flex; align-items: center; gap: 10px; line-height: 1.3; color: var(--text); }
.mode-card .mf .icon { color: var(--text-2); flex: none; } .mode-card .mf.no, .mode-card .mf.no .icon { color: #ff6b81; }
.lite-note { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius); background: rgb(var(--accent-rgb) / .12); border: 1px solid rgb(var(--accent-rgb) / .35); font-size: 13px; color: var(--text); }
.lite-note .icon { color: var(--accent); flex: none; }
/* Application channels (forum.js) */
.app-pill { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.app-pill.wait { background: rgb(240 178 50 / .16); color: #f0b232; } .app-pill.no { background: rgb(255 107 129 / .15); color: #ff6b81; } .app-pill.ok { margin-left: 8px; background: rgb(59 165 93 / .16); color: #3ba55d; }
.app-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 16px; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; color: var(--text-2); }
.app-bar b { color: var(--text); } .app-bar > .icon { flex: none; } .app-bar > span:first-of-type { flex: 1; min-width: 200px; }
.app-bar.wait { background: rgb(240 178 50 / .1); border: 1px solid rgb(240 178 50 / .35); } .app-bar.wait > .icon { color: #f0b232; }
.app-bar.no { background: rgb(255 107 129 / .08); border: 1px solid rgb(255 107 129 / .3); } .app-bar.no > .icon { color: #ff6b81; }
.app-acts { display: flex; gap: 8px; }
.np-theme { margin-top: 12px; }
.app-intro { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgb(var(--accent-rgb) / .08); border: 1px solid rgb(var(--accent-rgb) / .25); }
.app-intro > .icon { color: rgb(var(--accent-rgb)); flex: none; margin-top: 2px; } .app-intro b { font-size: 15px; color: var(--text); }
.app-intro p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.app-intro.sm { display: block; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; } .app-intro.sm b { font-size: 13.5px; } .app-intro.sm p { font-size: 13.5px; }

/* ------------------------------------------------ music library: Grid (three columns of song cards) / List (covers), loading as you scroll (music.js) */
.mpg-scroll { container-type: inline-size; }
.mpg-top { display: flex; align-items: center; gap: 12px; } .mpg-top .mpg-search { flex: 1; min-width: 0; }
.lay-switch { --lay-w: 84px; position: relative; flex: none; display: inline-flex; padding: 3px; border-radius: 99px; background: rgb(var(--surface-rgb) / .08); border: 1px solid var(--border); }
.lay-switch button { position: relative; z-index: 1; width: var(--lay-w); display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 0; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--text-3); transition: color 200ms; }
.lay-switch button.on { color: var(--text); } .lay-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lay-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: var(--lay-w); border-radius: 99px; background: rgb(var(--surface-rgb) / .16); box-shadow: 0 1px 3px rgb(0 0 0 / .18); transition: transform 220ms cubic-bezier(.2, .8, .2, 1); }
.lay-switch.second .lay-thumb { transform: translateX(var(--lay-w)); }
@container (max-width: 560px) { .lay-switch { --lay-w: 40px; } .lay-switch button span { display: none; } }
.mpg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@container (max-width: 820px) { .mpg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 540px) { .mpg-cards { grid-template-columns: minmax(0, 1fr); } }
.trk { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 10px 12px 10px 10px; border-radius: 16px; background: rgb(var(--surface-rgb) / .06); border: 1px solid transparent; cursor: pointer;
  transition: background 180ms, border-color 180ms, transform 180ms; content-visibility: auto; contain-intrinsic-size: auto 78px; }
.trk:hover { background: rgb(var(--surface-rgb) / .11); transform: translateY(-1px); } .trk:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.trk.cur { background: rgb(var(--accent-rgb) / .1); border-color: rgb(var(--accent-rgb) / .4); } .trk.cur .trk-text b { color: rgb(var(--accent-rgb)); }
.trk-art { position: relative; flex: none; } .trk-art .m-art { border-radius: 10px; box-shadow: 0 4px 14px -6px rgb(0 0 0 / .45); }
.trk-play { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgb(0 0 0 / .45); color: #fff; opacity: 0; transition: opacity 160ms; }
.trk:hover .trk-play, .trk:focus-visible .trk-play { opacity: 1; }
.trk-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.trk-text b { font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk-text small { font-size: 13.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk-dur { flex: none; font-size: 13.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.trk-more { flex: none; width: 30px; height: 30px; margin-left: -6px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-3); opacity: 0; transition: opacity 160ms, background 160ms, color 160ms; }
.trk:hover .trk-more, .trk:focus-within .trk-more { opacity: 1; } .trk-more:hover { background: var(--hover); color: var(--text); }
@media (hover: none) { .trk-more { opacity: 1; } }
.skel { pointer-events: none; animation: sk-pulse 1.3s ease-in-out infinite; } .skel.trk { content-visibility: visible; }
.sk-art { flex: none; width: 56px; height: 56px; border-radius: 10px; background: rgb(var(--surface-rgb) / .12); } .mpg-card.skel .sk-art { width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px; }
.sk-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; } .sk-lines i { display: block; height: 10px; width: 62%; border-radius: 6px; background: rgb(var(--surface-rgb) / .12); } .sk-lines i + i { width: 38%; }
@keyframes sk-pulse { 50% { opacity: .5; } }
.mpg-end { height: 1px; }
.mpg-count, .mpg-tag { font-size: 12.5px; font-weight: 600; color: var(--text-3); } .mpg-tag { padding: 2px 8px; border-radius: 99px; background: rgb(var(--accent-rgb) / .14); color: rgb(var(--accent-rgb)); }
/* player modes, volume, queue */
.m-mode { position: relative; color: var(--text-3); } .m-mode.on { color: rgb(var(--accent-rgb)); }
.m-mode.on::after { content: ""; position: absolute; bottom: 1px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.m-mute { display: inline-flex; padding: 2px; border-radius: 6px; color: inherit; } .m-mute:hover { color: var(--text); }
.m-addpl.on { background: rgb(var(--accent-rgb) / .16); border-color: rgb(var(--accent-rgb) / .45); color: rgb(var(--accent-rgb)); }
.mini-player { position: relative; } .mp-bar { position: absolute; left: 0; bottom: 0; height: 2px; background: rgb(var(--accent-rgb)); transition: width 250ms linear; pointer-events: none; }
/* playlists: drag into a new order, find a song */
.mpg-grip { flex: none; color: var(--text-3); cursor: grab; opacity: .55; display: flex; } .mpg-row:hover .mpg-grip { opacity: 1; }
.mpg-row.dragging { opacity: .4; } .mpg-row.drop-before { box-shadow: inset 0 2px 0 rgb(var(--accent-rgb)); } .mpg-row.drop-after { box-shadow: inset 0 -2px 0 rgb(var(--accent-rgb)); }
.pl-find { max-width: 320px; }

/* ------------------------------------------------ a playlist shared in a chat (playlist-card.js) */
.pl-card { display: flex; gap: 14px; max-width: 520px; margin-top: 6px; padding: 12px; border-radius: 16px; background: rgb(var(--surface-rgb) / .07); border: 1px solid var(--border); }
.plc-art { flex: none; width: 112px; height: 112px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: rgb(var(--surface-rgb) / .12); color: var(--text-3); }
.plc-art img { width: 100%; height: 100%; object-fit: cover; display: block; } .plc-art.four { display: grid; grid-template-columns: 1fr 1fr; }
.plc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.plc-kicker { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.plc-name { text-align: left; font-size: 17px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .plc-name:hover { text-decoration: underline; }
.plc-meta { font-size: 13px; color: var(--text-3); } .plc-meta b { color: var(--text-2); font-weight: 600; }
.plc-songs { list-style: none; margin: 6px 0 2px; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.plc-songs li { display: flex; gap: 6px; align-items: baseline; min-width: 0; } .plc-songs li span { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plc-songs li small { color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; } .plc-songs li i { font-style: normal; color: var(--text-3); font-variant-numeric: tabular-nums; }
.plc-songs .plc-more { color: var(--text-3); }
.plc-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.plc-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; border: 1px solid var(--border); background: rgb(var(--surface-rgb) / .08); color: var(--text-2); transition: background 160ms, color 160ms; }
.plc-btn:hover:not(:disabled) { background: var(--hover); color: var(--text); } .plc-btn:disabled { opacity: .55; cursor: default; }
.plc-btn.primary { background: var(--accent-grad, var(--accent)); color: var(--on-accent, #fff); border-color: transparent; }
.plc-gone { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 13px; color: #ff6b81; }
@media (max-width: 520px) { .plc-art { width: 76px; height: 76px; } }

/* ------------------------------------------------ slash command boxes in the message box (commands.js) */
.cmd-box { flex: 1; min-width: 0; padding: 4px 0; }
.cmd-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.cmd-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 8px; font-size: 13.5px; font-weight: 700; background: rgb(var(--accent-rgb) / .16); color: rgb(var(--accent-rgb)); transition: background 160ms; }
.cmd-chip:hover { background: rgb(var(--accent-rgb) / .26); }
.cmd-arg { display: inline-flex; flex-direction: column; gap: 2px; }
.cmd-arg label { display: inline-flex; align-items: center; border-radius: 8px; background: rgb(var(--surface-rgb) / .1); border: 1px solid transparent; transition: border-color 160ms, background 160ms; overflow: hidden; }
.cmd-arg.on label { border-color: rgb(var(--accent-rgb) / .6); background: rgb(var(--surface-rgb) / .14); } .cmd-arg.set label { background: rgb(var(--accent-rgb) / .1); }
.cmd-arg.bad label { border-color: #ff6b81; }
.cmd-name { padding: 5px 7px; font-size: 12.5px; font-weight: 700; color: var(--text-3); background: rgb(var(--surface-rgb) / .08); }
.cmd-arg input { min-width: 4ch; max-width: 46ch; padding: 5px 8px; border: 0; background: none; color: var(--text); font-size: 14px; outline: none; }
.cmd-err { padding-left: 4px; font-size: 12px; color: #ff6b81; }
.cmd-run { flex: 1; min-width: 160px; padding: 5px 4px; border: 0; background: none; color: var(--text-3); font-size: 14px; outline: none; cursor: default; }
.cmd-busy { align-self: center; font-size: 12.5px; color: var(--text-3); }
.cmd-fail { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: #ff6b81; }
.ac-hint { font-size: 12.5px; color: var(--text-3); font-family: var(--font-code, ui-monospace, monospace); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ac-cover { flex: none; width: 28px; height: 28px; border-radius: 6px; object-fit: cover; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--surface-rgb) / .12); color: var(--text-3); }
.ac-cover.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.ac-empty { padding: 10px 12px; font-size: 13.5px; color: var(--text-3); }
.cmd-ac .ac-head b { color: var(--text); }
