/* Product UI: shared typography, surfaces and controls. User artwork and themes are independent. */
:root { --font-display: var(--font); --panel-r: 8px; --deck-h: 56px; --control-r: 6px; }
:root:not([data-theme]), :root[data-theme="dark"] {
  --bg: #12151a; --bg-1: #20232b; --bg-2: #191c23; --bg-3: #292d37;
  --bg-4: #333946; --bg-hover: #2b303a; --bg-active: #343b48;
  --line: #343a46; --text: #eef0f5; --text-2: #bcc3cf; --muted: #969faf;
  --gold: #e8bd59; --gold-d: #d4a746; --gold-soft: #e8bd5914;
}
:root:not(.fx-on) .app { background: var(--bg-1); }
.shell { gap: 0; padding: 0; border-top: 1px solid var(--line); }
.nav { width: 260px; }
.sidebar { border: 0; border-right: 1px solid var(--line); border-radius: 0; }
.main { border: 0; border-radius: 0; }
.deck { background: var(--bg-2); gap: 10px; padding-inline: 16px; }
.deck-brand { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.deck-brand img { filter: none; }
.deck-brand:hover img { transform: none; }
.deck-search, .me-chip { border-radius: 7px; }
.live-pill { border-radius: 7px; }
.live-pill .lp-dot { animation: none; }
.hub-grid { display: flex; flex-direction: column; padding: 10px 8px 8px; gap: 2px; }
.hub-tile { flex-direction: row; justify-content: flex-start; gap: 11px; padding: 10px 12px; border: 0; border-radius: 6px; background: transparent; min-height: 40px; text-align: left; font-weight: 500; }
.hub-tile > svg { color: var(--text-2); width: 19px; height: 19px; }
.hub-tile .badge { margin-left: auto; }
.hub-tile.active { background: var(--bg-active); border: 0; color: var(--text); box-shadow: none; }
.hub-tile.active svg { color: var(--gold); }
.cat { padding-top: 24px; padding-bottom: 8px; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.cat small { margin-left: auto; font-size: 11px; }
.dm-item { border-radius: 6px; margin: 2px 8px; padding: 0 4px 0 0; gap: 0; }
.dm-item.active { background: var(--bg-active); box-shadow: none; }
.conversation-open { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px; color: inherit; border-radius: 6px; }
.conversation-open > .av { flex: none; width: 32px; height: 32px; }
.conversation-open .dname { font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-item .sub { margin-top: 3px; font-size: 11px; }
.conversation-more { width: 28px; height: 30px; flex: none; opacity: .6; }
.dm-item:hover .conversation-more, .conversation-more:focus-visible { opacity: 1; }
.dm-item .badge { position: static; flex: none; }
.is-pinned, .is-favorite, .friend-star { color: var(--gold); }
.is-favorite > svg { fill: var(--gold-soft); }
.server-card:not(.has-banner) .sc-cover { height: 12px; background: transparent; }
.server-card:not(.has-banner) .sc-row { align-items: center; margin-top: 0; padding: 4px 12px 16px; }
.sc-icon { border: 0; border-radius: 9px; width: 38px; height: 38px; box-shadow: none; }
.sc-text .name { font-size: 14px; font-weight: 600; }
.sc-more { background: transparent; }
.sidebar .server-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.sidebar .server-card:not(.has-banner) .sc-cover { display: none; }
.sidebar .server-card:not(.has-banner) .sc-row { min-height: 56px; padding: 10px 14px; margin: 0; }
.sidebar .sc-icon { width: 32px; height: 32px; margin: 0; border-radius: 8px; }
.chan { border-radius: 5px; min-height: 34px; font-size: 13px; }
.chan > svg:first-child, .chan > .ch-ic-lock > svg { background: transparent; border-radius: 0; }
.chan.active > svg:first-child, .chan.active > .ch-ic-lock > svg { background: transparent; color: var(--gold); }
.chan.active { background: var(--bg-active); color: var(--text); }
.members { padding: 10px 8px; }
.member { border-radius: 5px; }
.topbar .t-name { font-size: 15px; font-weight: 600; }
.topbar .t-name > svg { color: var(--text-2); }
.topbar .t-topic { font-size: 12px; }
.msg { border-radius: 3px; }
.msg.head { margin-top: 18px; }
.m-meta .m-author { font-weight: 600; }
.day-sep { display: flex; width: auto; margin: 22px 24px 12px; padding: 0; background: transparent; border: 0; border-radius: 0; gap: 12px; color: var(--muted); font-size: 11px; }
.day-sep::before, .day-sep::after { display: block; content: ''; height: 1px; background: var(--line); flex: 1; }
.ci-card { border-radius: 8px; padding: 16px; background: transparent; border: 0; }
.ci-card h2 { font-size: 26px; font-weight: 600; letter-spacing: -.025em; }
.ci-card .ci-icon { border-radius: 12px; width: 48px; height: 48px; background: var(--bg-3); color: var(--text-2); }
.ci-kicker { font-weight: 550; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 12px; }
.compose-box { border-radius: 8px; background: var(--bg-3); border-color: var(--line); }
.compose-box:focus-within { box-shadow: none; border-color: color-mix(in srgb,var(--muted) 60%,var(--line)); }
.send-btn { border-radius: 6px; font-weight: 600; }
.jumpbar, .community-link, .invite-embed { border-radius: 8px; }
.invite-cover { background: var(--bg-3); }
.invite-icon { border-radius: 10px; }
.modal, .modal.wide { border-radius: 10px; }
.modal-head h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; padding-right: 28px; }
.modal-head p { line-height: 1.55; }
.modal-foot { border-top: 1px solid var(--line); }
.field label, .label { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 550; }
.menu { padding: 5px; }
.menu button:hover { background: var(--bg-active); color: var(--text); }
.menu button.danger:hover { background: color-mix(in srgb,var(--red) 14%,transparent); color: var(--red); }
.menu-caption { padding: 7px 10px 9px; color: var(--muted); font-size: 11px; }
.btn { border-radius: var(--control-r); font-size: 13px; font-weight: 500; min-height: 36px; padding: 8px 14px; }
button:focus-visible, [role="button"]:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* People: an address book rather than a dashboard of promotional cards. */
.people-page { max-width: 1160px; }
.pp-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 6px 0 20px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.pp-greet { padding-top: 5px; }
.pp-greet h1 { font-size: 28px; font-weight: 600; letter-spacing: -.035em; }
.pp-greet p { font-size: 13px; margin-top: 8px; }
.pp-add { width: min(360px,100%); }
.pp-add-row { border-radius: 6px; background: var(--bg-2); padding: 3px 3px 3px 10px; }
.pp-add-row .btn { font-size: 12px; padding: 8px 12px; }
.pp-add label { font-weight: 550; }
.pp-add .res:empty { display: none; }
.pp-cols { grid-template-columns: minmax(0,1fr) 248px; gap: 40px; margin-top: 22px; }
.pp-list { min-width: 0; }
.segs { display: flex; padding: 0; gap: 14px; width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 14px; overflow-x: auto; }
.seg { flex: none; border-radius: 0; padding: 11px 0; gap: 7px; border-bottom: 2px solid transparent; font-size: 13px; font-weight: 500; white-space: nowrap; }
.seg.on { background: transparent; color: var(--text); border-color: var(--gold); }
.seg b, .seg.on b { font-size: 10px; font-weight: 500; padding: 1px 5px; border-radius: 4px; background: var(--bg-3); color: var(--text-2); }
.friend-search { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--bg-2); margin-bottom: 10px; }
.friend-search input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; color: var(--text); font-size: 13px; }
.friend-search:focus-within { border-color: var(--muted); }
.pcards { display: flex; flex-direction: column; gap: 0; }
.pcard { border: 0; border-bottom: 1px solid color-mix(in srgb,var(--line) 65%,transparent); border-radius: 0; background: transparent; padding: 13px 6px; gap: 8px; cursor: default; }
.pcard:hover { border-color: var(--line); background: var(--bg-2); transform: none; }
.person-open { display: flex; align-items: center; flex: 1; min-width: 0; gap: 12px; padding: 2px; border-radius: 4px; text-align: left; }
.person-open .av.md { width: 40px; height: 40px; }
.pc-who { gap: 3px; }
.pc-who > b { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.pc-who > span { font-size: 12px; color: var(--muted); }
.pc-who > small { font-size: 12px; color: var(--text-2); }
.pc-who > b, .pc-who > span, .pc-who > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-who .friend-star { display: inline-flex; flex: none; color: var(--gold); }
.friend-star svg { width: 12px; height: 12px; }
.pc-acts { display: flex; flex-shrink: 0; gap: 4px; }
.pc-acts .icon-btn { border-radius: 6px; background: transparent; }
.pc-acts .icon-btn:hover { background: var(--bg-4); }
.pp-empty { background: transparent; border: 0; border-radius: 0; padding: 60px 16px; }
.pp-side { border-left: 1px solid var(--line); padding-left: 24px; }
.pp-side h4 { font-weight: 600; font-size: 12px; margin: 10px 0 14px; color: var(--muted); }
.pp-side .quick-grid { gap: 4px; }
.pp-side .quick { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 3px 10px; border: 0; border-radius: 6px; background: transparent; padding: 10px 0; text-align: left; box-shadow: none; }
.pp-side .quick:hover { transform: none; background: var(--bg-2); }
.pp-side .quick > svg { grid-row: 1 / 3; color: var(--text-2); width: 18px; height: 18px; }
.pp-side .quick > b { font-size: 13px; font-weight: 550; }
.pp-side .quick > span { font-size: 11px; line-height: 1.6; color: var(--muted); }
.organization-hint { font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 26px; }
.private-friend-controls { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.private-friend-controls .btn { max-width: calc(100% - 50px); overflow: hidden; text-overflow: ellipsis; }
.private-friend-controls small { flex-basis: 100%; color: var(--muted); font-size: 11px; }

/* Settings: one searchable, consistent hierarchy on desktop and mobile. */
.modal.wide.settings-modal { max-width: 1000px; height: min(780px,calc(100dvh - 48px)); }
.settings-nav { width: 220px; padding: 16px 10px; }
.settings-nav .sn-title { color: var(--muted); font-size: 11px; font-weight: 600; padding-top: 20px; }
.settings-nav .sn-title::after { display: none; }
.settings-nav button { border-radius: 5px; font-size: 13px; padding: 9px 12px; }
.settings-nav button.active { background: var(--bg-active); color: var(--text); box-shadow: none; font-weight: 600; }
.settings-nav button.active::before { content: ''; display: inline-block; vertical-align: -2px; width: 3px; height: 14px; border-radius: 2px; background: var(--gold); margin-right: 8px; }
.settings-main { padding: 28px 36px; background: var(--bg-1); }
:root.fx-on .settings-main { background: transparent; }
:root.fx-on .settings-toolbar { background: var(--glass-modal); }
.settings-main h2 { font-size: 26px; font-weight: 600; letter-spacing: -.03em; margin-bottom: 24px; }
.settings-main h3 { font-size: 16px; font-weight: 600; }
.settings-main .field { margin-bottom: 22px; gap: 8px; }
.settings-main .input, .settings-main .select { border-radius: 6px; }
.settings-main .toggle-row { padding: 16px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0 0 8px; }
.settings-main .toggle-row b { font-weight: 550; }
.settings-main .toggle-row small { max-width: 450px; line-height: 1.6; padding-right: 16px; }
.settings-main .toggle-row.bare { border: 0; padding: 0; }
.settings-main .radio-card { border-radius: 6px; text-align: left; }
.settings-toolbar { position: sticky; top: -28px; background: var(--bg-1); padding: 0 34px 18px 0; z-index: 4; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.settings-search { display: flex; position: static; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; color: var(--muted); }
.settings-search:focus-within { border-color: var(--muted); }
.settings-search input { border: 0; background: transparent; outline: none; padding: 0; color: var(--text); min-width: 0; width: 100%; font-size: 13px; }
.settings-description { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 10px; }
.settings-results { padding-top: 14px; max-height: 60dvh; overflow: auto; }
.settings-result-count { font-size: 12px; color: var(--text-2); margin: 0 0 10px; }
.settings-results > button { position: relative; display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; padding: 14px 28px 14px 4px; border-top: 1px solid var(--line); }
.settings-results > button:hover { background: var(--bg-3); }
.settings-results small { font-size: 10px; color: var(--muted); }
.settings-results b { font-size: 14px; font-weight: 600; }
.settings-results span { font-size: 12px; line-height: 1.5; color: var(--text-2); }
.settings-results svg { position: absolute; right: 6px; top: 36px; color: var(--muted); }
.settings-main [hidden] { display: none !important; }
.profile-preview, .restriction-list .mem-row, .perm-targets, .private-card, .profile-card:not(.mini), .popover:has(.profile-card:not(.mini)) { border-radius: 8px; }
.pc-names h3 { font-weight: 600; text-shadow: none; }
.profile-card .pc-facts div, .profile-card .pc-status { border-radius: 6px; }
.shop-hero, .store-hero, .discover-hero, .dev-hero { border-radius: 8px; background: var(--bg-2); }
.shop-hero h1, .store-hero h1, .discover-hero h2, .dev-hero h1 { font-size: 28px; font-weight: 600; letter-spacing: -.035em; }
.tier { border-radius: 8px; }

/* Quiet chrome; active navigation has one clear indicator. */
.deck-brand img { width: 26px; height: 26px; }
.deck-servers { gap: 8px; padding-block: 8px; }
.dtile-btn { width: 36px; height: 36px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.dtile-btn:hover { transform: none; }
.dtile.active .dtile-btn { box-shadow: none; background: var(--gold-soft); border-color: color-mix(in srgb,var(--gold) 50%,var(--line)); color: var(--gold); }
.dtile.active::after { display: none; }
.dtile .badge { min-width: 15px; height: 15px; font-size: 10px; line-height: 15px; }
/* Ping counts overlap the server icon instead of hanging below it. */
.dtile .badge { z-index: 3; pointer-events: none; }
.deck-servers .dtile .badge, .cl-part .dtile .badge { top: -4px; bottom: auto; right: calc(50% - 24px); }
/* The "people in voice" pill sits on top of the server icon too (the icon button is z-index 1). */
.dtile .rail-voice { z-index: 3; pointer-events: none; }
.deck-servers .dtile .rail-voice, .cl-part .dtile .rail-voice { top: auto; bottom: -4px; right: calc(50% - 24px); }
.deck-search { height: 32px; background: var(--bg); border-color: var(--line); font-size: 12px; }
.me-chip { background: transparent; border: 0; gap: 9px; padding: 4px 6px; }
.me-chip:hover { background: var(--bg-hover); }
.panel-head,.topbar { min-height: 56px; height: 56px; }
.ph-title { font-size: 14px; font-weight: 600; }
.ph-title svg { color: var(--text-2); }
.cat span::after { display: none; }
.chan.active { box-shadow: inset 2px 0 var(--gold); }
.chan .c-actions { gap: 2px; }
.member.offline { opacity: .76; }
.member .mn b { font-weight: 500; }
.members h4 { font-size: 11px; font-weight: 600; letter-spacing: .015em; }
.btn.sm { min-height: 30px; padding: 5px 10px; font-size: 12px; }
.btn.primary { box-shadow: none; }
.btn:hover { transform: none; }
.input,.select,.textarea { border-radius: var(--control-r); font-size: 14px; }
.input:focus,.select:focus,.textarea:focus { box-shadow: 0 0 0 2px var(--gold-soft); }
.icon-btn { border-radius: var(--control-r); transition: color .12s,background .12s; }
.icon-btn:hover { transform: none; }
.badge { font-weight: 600; }
.modal { box-shadow: 0 16px 56px #0005; }
.modal-back { background: #080b11a8; backdrop-filter: none; }
.modal-head { padding: 22px 24px 18px; }
.modal-head p { margin-top: 7px; font-size: 13px; color: var(--text-2); }
.modal-foot { padding: 16px 24px; gap: 10px; background: var(--bg-2); }
.menu button { font-size: 13px; padding: 9px 10px; font-weight: 400; }
.toast { border-radius: 7px; box-shadow: 0 5px 20px #0003; font-size: 13px; }
.empty h3,.pp-empty b { font-size: 17px; font-weight: 600; }
.empty p,.pp-empty span { max-width: 360px; font-size: 13px; line-height: 1.65; }

/* Conversations: comfortable reading, with utility controls in the background. */
.m-meta { gap: 8px; }
.m-meta .m-author { font-size: 14px; }
.m-meta .m-time { font-size: 11px; color: var(--muted); }
.m-content { line-height: 1.55; }
.msg.head { padding-top: 4px; }
.msg:hover { background: color-mix(in srgb,var(--text) 3%,transparent); }
.unread-sep::after { background: color-mix(in srgb,var(--gold) 40%,transparent); }
.unread-sep span { background: transparent; padding-inline: 0; border-radius: 0; font-weight: 500; }
.unread-sep span svg { display: none; }
.compose-box { flex-direction: row; align-items: flex-end; gap: 6px; padding: 6px; position: relative; }
.compose-leading { display: flex; align-items: center; flex: none; gap: 2px; }
.compose-box textarea { order: 0; flex: 1; width: 0; min-width: 0; min-height: 34px; font-size: 14px; line-height: 21px; padding: 6px 4px; }
.compose-box .compose-bar { display: flex; align-items: center; flex: none; gap: 6px; padding: 0; }
.compose-box .cb-tools { display: flex; align-items: center; gap: 2px; }
.compose-box .icon-btn { order: 0; width: 34px; height: 34px; min-width: 34px; min-height: 34px; border-radius: 6px; }
.compose-box .compose-more { display: grid; }
.compose-box .creative-compose-button { display: none; }
.compose-box .creative-compose-button[aria-pressed="true"] { display: grid; }
.compose-box .char-count { position: static; order: 0; margin: 0; font-size: 11px; }
.compose-box .char-count:empty { display: none; }
.compose-box .send-btn { order: 0; height: 34px; min-height: 34px; border-radius: 6px; }
.compose-note:empty { display: none; }

/* Conversation calls stay above the chat, with room to keep messaging. */
#callbanner { flex: none; min-height: 0; }
.dm-call { height: clamp(240px,42dvh,420px); display: flex; flex-direction: column; background: #080a0f; color: #edf0f5; border-bottom: 1px solid var(--line); }
.dm-call-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; flex: none; }
.dm-call-heading > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dm-call-heading b { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-call-heading span { font-size: 11px; color: #9ca6b8; white-space: nowrap; }
.dm-call-heading .icon-btn { width: 30px; height: 30px; min-width: 30px; color: #9ca6b8; }
.dm-call .stage { background: transparent !important; }
.dm-call .stage-view { top: 0; right: 14px; }
.dm-call .stage-view button { font-size: 10px; padding: 4px 7px; }
.dm-call .stage-grid { min-height: 0; padding: 30px 18px 10px; }
.dm-call .stage-grid:not(.has-video):not(.focus-mode) { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 20px; }
.dm-call .stage-grid:not(.has-video) .tile { flex: 0 0 100px; width: 100px; height: 116px; }
.dm-call .avatar-tile { display: flex; flex-direction: column; justify-content: center; gap: 9px; aspect-ratio: auto; background: transparent; border: none; }
.dm-call .avatar-tile > .av { width: 76px; height: 76px; flex: none; border-radius: 50%; }
.dm-call .avatar-tile > .av .av-img { border-radius: 50%; }
.dm-call .avatar-tile.speaking > .av { outline: 3px solid var(--green); outline-offset: 3px; }
.dm-call .avatar-tile .t-label { position: static; background: transparent; justify-content: center; font-size: 12px; padding: 2px; }
.dm-call .avatar-tile .t-tools { display: none; }
.dm-call .stage-grid.has-video:not(.focus-mode) { grid-template-columns: repeat(auto-fit,minmax(min(220px,100%),1fr)); grid-auto-rows: minmax(110px,1fr); align-content: stretch; }
.dm-call .stage-grid.has-video .tile { min-height: 0; max-height: 100%; height: 100%; aspect-ratio: auto; }
.tile video { position: absolute; inset: 0; min-width: 0; min-height: 0; object-fit: contain; }
.call-control-group { display: flex; gap: 3px; }
.dm-call .stage-bar { gap: 8px; padding: 10px 14px 14px; flex-wrap: nowrap; }
.dm-call .call-control-group { background: #171c27; border: 1px solid #2b3242; border-radius: 9px; padding: 3px; }
.dm-call .ctl { width: 36px; height: 36px; border-radius: 6px; background: transparent; color: #dce4f1; }
.dm-call .ctl:hover { background: #2c3445; }
.dm-call .ctl.off { background: #303849; color: #fff; }
.dm-call .ctl.on { background: #314b67; color: #a9d7ff; }
.dm-call .ctl.leave { align-self: center; width: 52px; height: 44px; background: #cc3447; color: white; border-radius: 9px; }
.dm-call .ctl:disabled { opacity: .4; cursor: not-allowed; }
.call-preview-people { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 22px; padding: 16px; overflow: auto; }
.call-preview-people > div { display: grid; justify-items: center; gap: 10px; font-size: 12px; }
.call-preview-people .av { width: 76px; height: 76px; border-radius: 50%; }
.call-preview-people .av-img { border-radius: 50%; }
.call-join-controls { display: flex; justify-content: center; gap: 10px; padding: 12px 16px 20px; }
.compact-call { background: var(--bg-2); font-size: 12px; padding: 8px 14px; }
.compact-call > span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-call .btn { margin-left: 0; }
.dm-call:fullscreen { height: 100%; width: 100%; }
@media(max-width:760px) {
  .dm-call { height: clamp(190px,34dvh,280px); }
  .dm-call-heading { padding: 6px 10px; }
  .dm-call-heading span { display: none; }
  .dm-call .stage-grid { padding: 25px 10px 4px; }
  .dm-call .stage-grid:not(.has-video):not(.focus-mode) { gap: 8px; }
  .dm-call .stage-grid:not(.has-video) .tile { width: 78px; flex-basis: 78px; height: 92px; }
  .dm-call .avatar-tile > .av { width: 58px; height: 58px; }
  .dm-call .stage-bar { gap: 4px; padding: 6px; }
  .dm-call .ctl { width: 34px; height: 36px; min-width: 0; min-height: 0; }
  .dm-call .call-control-group { gap: 0; padding: 2px; }
  .dm-call .stage-bar [data-act=soundboard] { display: none; }
  .dm-call .ctl.leave { width: 42px; height: 42px; }
  .dm-call .stage-grid.has-video:not(.focus-mode) { display: flex; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; overflow-x: auto; }
  .dm-call .stage-grid.has-video:not(.focus-mode) .tile { flex: 0 0 75%; height: auto; max-height: none; }
  .dm-call .stage-grid.has-video:not(.focus-mode) .avatar-tile { flex-basis: 90px; }
  .compact-call { gap: 6px; padding: 7px 8px; }
  .compact-call .btn { padding-inline: 8px; }
}
.cb-hint { font-size: 10px; color: var(--muted); }
.send-btn { padding-inline: 12px; min-height: 30px; font-size: 12px; }
.chan-intro { padding-top: 30px; }
.ci-card { padding: 12px 4px; gap: 16px; }
.ci-card p { font-size: 14px; color: var(--text-2); }
.ci-card .btn { background: transparent; color: var(--text-2); border: 1px solid var(--line); }
.ci-kicker { display: none; }

/* Friends: the community list supplies useful context alongside the address book. */
.people-page { padding-top: 6px; }
.pp-add label { font-size: 12px; color: var(--text-2); }
.pp-side h4 { display: flex; justify-content: space-between; font-size: 12px; margin-top: 13px; }
.pp-side h4 small { color: var(--muted); font-weight: 400; }
.home-community-list { display: grid; gap: 4px; }
.home-community { display: flex; align-items: center; gap: 10px; min-width: 0; width: 100%; text-align: left; padding: 9px 7px; border-radius: 6px; }
.home-community:hover { background: var(--bg-3); }
.home-community > span:last-child { min-width: 0; }
.home-community b { display: block; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-community small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.home-community-icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-3); font-size: 11px; font-weight: 600; overflow: hidden; }
.home-community-icon img { width: 100%; height: 100%; object-fit: cover; }
.home-community-actions { display: flex; gap: 8px; padding-top: 18px; margin-top: 12px; border-top: 1px solid var(--line); }
.home-community-actions .btn { flex: 1; padding-inline: 8px; }

/* Account details stay compact; profile artwork belongs in Profile. */
.profile-preview.account-identity { display: flex; align-items: center; gap: 16px; padding: 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; }
.account-identity > .av { width: 48px; height: 48px; flex: none; }
.account-identity > div:not(.av) { min-width: 0; }
.account-identity b { display: block; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.account-identity > div:not(.av) > span { display: block; font-size: 13px; color: var(--text-2); margin-top: 3px; }
.account-identity .btn { margin-left: auto; flex-shrink: 0; }
.settings-section { padding-block: 24px; border-top: 1px solid var(--line); }
.settings-section h3 { margin: 0 0 18px; }
.settings-section p { font-size: 13px; color: var(--text-2); max-width: 520px; line-height: 1.6; }
.settings-section form { max-width: 420px; }
.settings-section .field:last-of-type { margin-bottom: 18px; }
.account-danger h3 { color: var(--text); }
.account-danger .btn.danger { background: color-mix(in srgb,var(--red) 8%,var(--bg-2)); border: 1px solid color-mix(in srgb,var(--red) 32%,var(--line)); color: var(--red); }
.account-member-since { margin: 0; font-size: 12px; color: var(--muted); }
.account-birthday { border: 0; border-top: 1px solid var(--line); margin: 22px 0 0; padding: 22px 0; }
.account-standing-link { margin: 18px 0 0; }
.settings-nav { background: var(--bg-2); }
.settings-nav .sn-title { font-size: 11px; color: var(--muted); padding-left: 12px; }
.settings-nav button { min-height: 34px; font-weight: 400; margin-block: 2px; }
.settings-nav button.active { background: var(--bg-active); font-weight: 500; }
.settings-nav button.active::before { display: none; }
.settings-main .toggle-row { padding-block: 18px; }
.settings-main .toggle-row b { font-size: 14px; font-weight: 500; }
.settings-main .toggle-row small { font-size: 12px; color: var(--muted); }
.settings-main .x { background: var(--bg-3); color: var(--text-2); border-radius: 50%; }
.switch { width: 38px; height: 22px; border-radius: 11px; }
.switch::after { width: 16px; height: 16px; }
.switch.on::after,.toggle-row input:checked + .switch::after { transform: translateX(16px); }
.radio-card { padding: 14px; border-radius: 7px; font-size: 13px; }

/* Store: artwork is the focal point, rather than repeated bright purchase buttons. */
.shop-hero,.discover-hero,.dev-hero,.store-hero { padding: 8px 0 24px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.store-glow { display: none; }
.shop-hero h1 span { color: var(--text); }
.shop-hero p,.discover-hero p,.dev-hero p { font-size: 13px; line-height: 1.6; color: var(--text-2); max-width: 500px; }
.wallet { padding: 8px 0; border: 0; border-radius: 0; background: transparent; flex-wrap: wrap; gap: 8px; }
.wallet b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.wallet .coin { width: 18px; height: 18px; }
.wallet span { font-size: 11px; }
.shop-navigation { padding-block: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.shop-tabs { margin: 0; gap: 18px; }
.shop-tab { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; font-size: 13px; font-weight: 500; padding: 13px 0 11px; gap: 7px; }
.shop-tab.on { background: transparent; border-color: var(--gold); color: var(--text); }
.shop-tab:hover { background: transparent; color: var(--text); }
.shop-scroll { background: var(--bg-1); border-color: var(--line); }
.shop-section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 14px; }
.shop-section-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.shop-section-head span { font-size: 12px; color: var(--muted); }
.shop-banner { padding: 11px 14px; border-radius: 6px; border-color: var(--line); background: var(--bg-2); font-size: 12px; }
.shop-banner span { font-weight: 500; }
.item-grid { gap: 18px; }
.item-card { border-radius: 9px; background: var(--bg-2); transition: border-color .15s; }
.item-card:hover { transform: none; border-color: var(--muted); }
.item-card > .ip { height: 150px; }
.theme-preview-window { position: relative; display: flex; width: 76%; height: 96px; border: 1px solid #ffffff30; border-radius: 5px; background: #14192466; overflow: hidden; box-shadow: 0 5px 18px #0003; }
.tp-sidebar { width: 30%; padding: 14px 8px; background: #0e111b66; border-right: 1px solid #ffffff18; }
.tp-sidebar span { display: block; height: 4px; border-radius: 1px; margin-bottom: 10px; background: #ffffff50; }
.tp-sidebar span:first-child { width: 75%; background: #ffffff90; }
.tp-messages { flex: 1; padding: 12px 10px; }
.tp-messages b,.tp-messages span { display: block; height: 3px; border-radius: 1px; background: #ffffff85; }
.tp-messages b { width: 36%; margin-bottom: 5px; }
.tp-messages span { width: 92%; margin-bottom: 10px; background: #ffffff35; }
.tp-messages span:nth-child(4) { width: 70%; }
.ic-body { padding: 14px 14px 4px; }
.ic-top { align-items: baseline; gap: 6px; flex-wrap: wrap; }
.ic-top b { font-weight: 500; font-size: 14px; }
.rarity { text-transform: none; letter-spacing: 0; font-size: 10px; font-weight: 500; }
.ic-body p { font-size: 12px; line-height: 1.55; margin-top: 7px; }
.ic-act { padding: 12px 14px 14px; }
.ic-act .btn.primary { background: var(--bg-3); color: var(--text); border: 1px solid var(--line); }
.ic-act .btn.primary:hover { background: var(--bg-4); border-color: var(--muted); }
.shop-h { font-size: 17px; font-weight: 600; margin: 26px 0 16px; }
.tier { background: var(--bg-2); box-shadow: none; border-color: var(--line); }
.tier::before { display: none; }
.tier h3 { font-size: 23px; font-weight: 600; }
.tier.active { border-color: color-mix(in srgb,var(--gold) 50%,var(--line)); }
.quest { border-radius: 7px; }
.market-card,.creative-art-card { border-radius: 8px; box-shadow: none; }

/* Sign-in is a quiet application screen, rather than an animated landing page. */
.auth { background: var(--bg-1); }
.auth-scene { background: var(--bg-2); }
.auth-brand { font-size: 18px; font-weight: 600; letter-spacing: -.03em; color: var(--text); }
.auth-brand img { width: 28px; height: 28px; filter: none; }
.auth-brand b { font-weight: 600; color: var(--text); }
.auth-card { background: var(--bg-2); backdrop-filter: none; box-shadow: 0 12px 40px #0002; border-radius: 10px; padding: 32px; }
.auth-card::before { display: none; }
.auth-form h2 { font-size: 25px; font-weight: 600; letter-spacing: -.025em; }
.auth-form .sub { font-size: 13px; line-height: 1.6; }
.auth-form .field label { color: var(--text-2); letter-spacing: 0; }
.auth-form .input { background: var(--bg); color: var(--text); border-color: var(--line); border-radius: 6px; }
.auth-form .pw-eye:hover { color: var(--text); background: var(--bg-hover); }
.auth-method { padding: 4px; border-radius: 7px; background: var(--bg); border: 1px solid var(--line); }
.auth-method button { border-radius: 4px; font-size: 12px; font-weight: 500; }
.auth-method button.on { background: var(--bg-3); color: var(--text); box-shadow: none; }
.auth-pitch { max-width: 360px; color: var(--text); }
.auth-pitch .ap-kicker { display: none; }
.auth-pitch h1 { font-size: 34px; line-height: 1.2; font-weight: 600; text-shadow: none; letter-spacing: -.04em; margin-bottom: 20px; }
.auth-pitch h1 em { font-style: normal; color: var(--text); }
.auth-pitch > p { font-size: 15px; line-height: 1.65; color: var(--text-2); max-width: 320px; }
.auth-pitch ul { margin-top: 28px; gap: 14px; font-size: 13px; color: var(--text-2); }
.auth-pitch li svg { color: var(--muted); }
.auth-pitch li { font-size: 13px; color: var(--text-2); }
.cur-glow { display: none; }
.cur-word span { animation: none; opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .pp-cols { grid-template-columns: minmax(0,1fr); }
  .pp-side { display: none; }
}
@media (max-width: 760px) {
  .nav { width: auto; }
  .sidebar { border-radius: 0 10px 10px 0; }
  .deck { background: var(--bg-2); padding-inline: 12px; gap: 8px; }
  .pp-hero { flex-direction: column; gap: 18px; padding-top: 0; padding-bottom: 20px; }
  .pp-add { width: 100%; }
  .pp-cols { margin-top: 10px; }
  .segs { gap: 16px; }
  .seg { flex: 1; justify-content: center; padding: 12px 0; font-size: 12px; }
  .pcard { padding: 10px 0; }
  .pc-acts { gap: 0; }
  .pc-acts .icon-btn { min-width: 36px; }
  .conversation-more { min-width: 36px; min-height: 44px; opacity: 1; }
  .conversation-open { min-height: 48px; }
  .person-open { gap: 10px; }
  .person-open .av.md { width: 36px; height: 36px; }
  .pc-who > b { font-size: 13px; }
  .friend-search input { font-size: 16px; }
  .compose-box { border-radius: 10px; }
  .topbar .t-name { flex: 0 1 auto; min-width: 0; overflow: hidden; }
  .topbar .t-name > .av { flex: none; }
  .topbar .conversation-title, .topbar .t-name > [data-act="renameGroup"] { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .topbar .t-actions { gap: 0; flex: none; }
  .topbar .t-actions .icon-btn { min-width: 44px; }
  .topbar:has([data-act="conversationOptions"]) .t-actions > :is([data-act="reportChannel"],[data-act="addToGroup"],[data-act="groupMembers"],[data-act="pins"]) { display: none; }
  .modal.wide.settings-modal { height: var(--mobile-viewport-height,100dvh); max-height: var(--mobile-viewport-height,100dvh); border-radius: 0; }
  .settings-main { padding: 16px; }
  .settings-main h2 { font-size: 22px; }
  .settings-toolbar { top: -16px; padding-top: 4px; padding-right: 0; margin-bottom: 18px; }
  .settings-jump { position: static; padding: 0 42px 12px 0; margin: 0; background: transparent; }
  .settings-jump select { font-size: 14px; }
  .settings-search input { font-size: 16px; }
  .settings-main .radio-row { flex-wrap: wrap; }
  .settings-main .radio-card { min-width: 150px; }
  .settings-main > .x { top: max(20px,env(safe-area-inset-top)); }
  .pp-greet h1 { font-size: 26px; }
  .compose-box { gap: 2px; padding: 4px; }
  .compose-box textarea { min-height: 44px; padding: 11px 4px; font-size: 16px; }
  .compose-box .compose-bar { gap: 2px; }
  .compose-box .icon-btn, .compose-box .send-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .compose-box .creative-compose-button[aria-pressed="true"] { display: none; }
  .compose-bar { padding: 0; }
  .send-btn { min-width: 36px; min-height: 36px; padding: 8px; }
  .profile-preview.account-identity { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; padding: 16px; }
  .account-identity .btn { grid-column: 2; justify-self: start; margin-left: 0; }
  .settings-section { padding-block: 20px; }
  .modal-head { padding: 20px 20px 16px; }
  .modal-foot { padding: 14px 20px; }
  .modal-foot .btn { min-height: 42px; }
  .shop-hero,.discover-hero,.dev-hero,.store-hero { padding: 6px 0 20px; }
  .shop-hero h1,.discover-hero h2 { font-size: 26px; }
  .shop-hero { gap: 14px; }
  .wallet { width: 100%; justify-content: flex-start; }
  .wallet .btn { margin-left: auto; }
  .shop-tabs { gap: 16px; }
  .shop-navigation { margin-bottom: 18px; }
  .shop-section-head { margin-top: 20px; }
  .item-grid { gap: 12px; }
  .item-card > .ip { height: 126px; }
  .ic-body { padding: 12px 10px 4px; }
  .ic-top { gap: 5px; }
  .ic-top b { font-size: 13px; }
  .rarity { font-size: 9px; }
  .ic-act { padding: 10px; }
  .ic-act .btn { min-height: 38px; }
  .auth-card { padding: 24px 20px; border-radius: 8px; }
  .auth-brand { font-size: 17px; }
}

/* two-step verification */
.tfa-on { display: flex; align-items: center; gap: 6px; color: var(--green); margin-bottom: 4px; }
.tfa-warn { color: var(--red) !important; }
.tfa-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tfa-qr { width: 200px; height: 200px; margin: 0 auto 14px; padding: 8px; background: #fff; border-radius: 10px; }
.tfa-qr svg { width: 100%; height: 100%; display: block; }
.tfa-manual { margin-bottom: 14px; font-size: 13px; color: var(--text-2); }
.tfa-manual summary { cursor: pointer; }
.tfa-manual code { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--bg-2); font-size: 14px; letter-spacing: 1px; word-break: break-all; user-select: all; }
.tfa-codes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tfa-codes code { display: block; text-align: center; padding: 8px; border-radius: 8px; background: var(--bg-2); font-size: 15px; letter-spacing: 1px; user-select: all; }
/* two-step verification: one row per way to get a code */
.tfa-methods { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.tfa-method { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.tfa-method.on { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.tfa-method > div:not(.tfa-btns) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tfa-method small { color: var(--text-3, var(--muted)); font-size: 12px; }
.tfa-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--bg-3, var(--bg)); color: var(--text-2, var(--text)); }
.tfa-method.on .tfa-ic { color: var(--green); }
.tfa-pill { margin-left: 6px; padding: 1px 7px; border-radius: 9px; font-size: 10.5px; font-weight: 700; background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); vertical-align: 1px; }
.tfa-btns { flex: none; display: flex; gap: 6px; }
.tfa-send { margin-top: 6px; background: none; border: 0; padding: 0; color: var(--link, var(--gold)); font: inherit; font-size: 12.5px; cursor: pointer; }
.tfa-send:disabled { color: var(--text-3, var(--muted)); cursor: default; }

/* Admin › Filters */
.filters-admin { display: flex; flex-direction: column; gap: 14px; max-width: 980px; }
.flt-card { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.flt-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.flt-card h3 { margin: 0; font-size: 16px; }
.flt-card header p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.flt-switch { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; white-space: nowrap; cursor: pointer; }
.flt-opts, .flt-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.flt-lists textarea { font: 13px/1.5 ui-monospace, Consolas, monospace; resize: vertical; min-height: 150px; }
.flt-card label small { color: var(--muted); font-weight: 500; margin-left: 6px; }
.flt-help ul { margin: 0; padding-left: 18px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.flt-help code, .flt-result code { background: var(--bg-3, var(--bg)); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; font-size: 12px; }
.flt-test { display: flex; gap: 8px; }
.flt-test .input { flex: 1; min-width: 0; }
.flt-result { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.flt-result .bad { color: var(--red); } .flt-result .good { color: var(--green); }
.flt-result small { color: var(--muted); }
.flt-save { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 10px 0; background: linear-gradient(transparent, var(--bg) 40%); }

/* Admin › Rate limits */
.rl-admin { display: flex; flex-direction: column; gap: 14px; max-width: 1040px; }
.rl-summary { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); padding: 14px 18px; }
.rl-summary > div { display: flex; flex-direction: column; }
.rl-summary b { font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.rl-summary span { color: var(--muted); font-size: 12.5px; }
.rl-summary .hint { flex: 1; min-width: 240px; margin: 0; font-size: 13px; }
.rl-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 12px; }
.rl-rule { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rl-rule.off { opacity: .6; }
.rl-rule header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.rl-rule h3 { margin: 0; font-size: 15px; }
.rl-rule header p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.rl-head-right { display: flex; align-items: center; gap: 10px; flex: none; }
.rl-count { font-size: 11.5px; font-weight: 700; color: var(--red); background: color-mix(in srgb, var(--red) 14%, transparent); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.rl-limit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.rl-limit .input { width: 92px; padding: 5px 8px; height: auto; }
.rl-limit select.input { width: 92px; }
.rl-inline { display: inline-flex; align-items: center; gap: 8px; }
.rl-scope { display: inline-block; min-width: 92px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--bg-3, var(--bg)); color: var(--text-2, var(--text)); text-align: center; }
.rl-scope.rl-site { color: var(--gold); background: var(--gold-soft, rgba(245,197,24,.14)); }
.rl-scope.rl-ip { color: var(--sky, #60a5fa); }
.rl-admin .link-btn { background: none; border: 0; padding: 0; color: var(--link, var(--gold)); font: inherit; font-size: 12.5px; cursor: pointer; }
.rl-admin .link-btn:hover { text-decoration: underline; }
.rl-log { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.rl-log header { display: flex; justify-content: space-between; align-items: center; }
.rl-log h3 { margin: 0; font-size: 15px; }
.rl-table-wrap { overflow-x: auto; max-height: 420px; overflow-y: auto; }
.rl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rl-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg-2); }
.rl-table td { padding: 6px 8px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); white-space: nowrap; }
.rl-table code { font-size: 12px; }
.rl-table .muted { color: var(--muted); }
@media (max-width: 560px) { .rl-rules { grid-template-columns: 1fr; } }
/* Rate limits › full address for account creation */
.rl-net { display: flex; flex-direction: column; gap: 2px; white-space: normal; }
.rl-net code { user-select: all; word-break: break-all; }
.rl-net .rl-netid { color: var(--muted); }
.rl-same { display: flex; gap: 6px; flex-wrap: wrap; }
.rl-same b { font-size: 11px; font-weight: 700; color: var(--red); background: color-mix(in srgb, var(--red) 14%, transparent); padding: 1px 6px; border-radius: 999px; }
