:root {
  color-scheme: dark;
  scrollbar-gutter: stable;
  --bg: #101015;
  --surface: #18181f;
  --surface-2: #202029;
  --surface-3: #292833;
  --top: #14141a;
  --line: #292832;
  --text: #f5f3fa;
  --muted: #a29eaf;
  --quiet: #817b90;
  --accent: #ac8aff;
  --accent-strong: #a680fa;
  --accent-ink: #1a102a;
  --green: #5be3ac;
  --header: 67px;
  --mobile-nav-space: 0px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f3f8;
  --surface: #fff;
  --surface-2: #f2f0f7;
  --surface-3: #eae6f2;
  --top: #fbfaff;
  --line: #e2deeb;
  --text: #211b2c;
  --muted: #625b70;
  --quiet: #71677e;
  --accent: #7240cf;
  --accent-strong: #9b73ee;
  --green: #279366;
}
:root[data-accent="blue"] { --accent: #80aaff; --accent-strong: #85aaff; --accent-ink: #111c36; }
:root[data-accent="mint"] { --accent: #59d8b3; --accent-strong: #59d8b3; --accent-ink: #102a23; }
:root[data-accent="pink"] { --accent: #f592bc; --accent-strong: #f592bc; --accent-ink: #361326; }
:root[data-theme="light"][data-accent="blue"] { --accent: #2757b9; }
:root[data-theme="light"][data-accent="mint"] { --accent: #146e56; }
:root[data-theme="light"][data-accent="pink"] { --accent: #a63268; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { border: 0; color: inherit; background: none; cursor: pointer; }
button:disabled { opacity: .62; cursor: progress; }
:is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
svg { display: inline-block; flex: none; vertical-align: middle; }
img { max-width: 100%; display: block; }
h1, h2, p { margin: 0; }
small { font-size: 12px; }
.muted { color: var(--muted); }
.eyebrow { color: var(--quiet); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.app-loading { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 15px; color: var(--muted); }
.app-loading img { width: 42px; }
.topbar { height: var(--header); background: var(--top); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner { max-width: 1560px; padding: 0 32px; height: 100%; display: flex; align-items: center; margin: auto; gap: 25px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 25px; line-height: 1; letter-spacing: -.075em; font-weight: 800; }
.brand img { width: 36px; height: 36px; }
.brand-dot { color: var(--accent); padding-left: 1px; }
.topbar .brand { width: 198px; flex: none; }
.search-bar { display: flex; align-items: center; gap: 11px; width: min(100%, 424px); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); padding: 9px 12px; text-align: left; }
.search-bar:hover, .icon-button:hover { color: var(--text); border-color: var(--quiet); }
.search-bar span { flex: 1; }
kbd { color: var(--quiet); border: 1px solid var(--line); background: var(--top); padding: 2px 6px; border-radius: 5px; font: 11px "Segoe UI", sans-serif; white-space: nowrap; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; padding: 10px 14px; min-height: 38px; font-weight: 700; white-space: nowrap; }
.primary { background: var(--accent-strong); color: var(--accent-ink); border: 1px solid transparent; }
.primary:hover { filter: brightness(1.12); }
.secondary { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.secondary:hover { border-color: var(--accent); }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.top-avatar { padding: 0; border-radius: 50%; }
.avatar { width: 39px; height: 39px; flex: none; border-radius: 50%; background: linear-gradient(140deg, color-mix(in srgb, var(--avatar-color) 67%, #f6dfff), color-mix(in srgb, var(--avatar-color) 62%, #191226)); color: #fff; border: 1px solid #ffffff2d; display: inline-grid; place-items: center; position: relative; font-weight: 750; font-size: 12px; line-height: 1; text-shadow: 0 1px 4px #100a2380; }
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.avatar.small { width: 34px; height: 34px; font-size: 10px; }
.avatar.large { width: 72px; height: 72px; font-size: 24px; }
.avatar.has-status::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border: 2px solid var(--surface); background: var(--green); border-radius: 50%; }
.workspace { max-width: 1560px; margin: 0 auto; display: grid; grid-template-columns: 198px minmax(0, 1fr) 286px; gap: 25px; padding: 0 32px; }
.workspace.wide-workspace { grid-template-columns: 198px minmax(0, 1fr); }
.mobile-nav { display: none; }
.sidebar { height: calc(100dvh - var(--header)); position: sticky; top: var(--header); padding: 25px 14px 19px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 26px; overflow: auto; scrollbar-width: thin; }
.sidebar nav { display: grid; gap: 4px; }
.nav-caption { padding: 2px 10px 6px; min-height: 18px; }
.nav-heading { display: flex; justify-content: space-between; align-items: center; padding-right: 4px; }
.nav-link { min-height: 43px; display: flex; gap: 11px; align-items: center; padding: 7px 10px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active { background: color-mix(in srgb, var(--accent) 15%, var(--bg)); border-color: color-mix(in srgb, var(--accent) 26%, var(--line)); color: var(--accent); }
.nav-separator { border-top: 1px solid var(--line); margin: 13px 8px 12px; }
.group-icon { --group: #b08aff; width: 38px; height: 38px; border-radius: 11px; display: inline-grid; place-items: center; flex: none; background: color-mix(in srgb, var(--group) 15%, var(--surface)); color: var(--group); border: 1px solid color-mix(in srgb, var(--group) 26%, var(--surface)); }
.group-icon.mint { --group: #57d7bd; }
[data-theme="light"] .group-icon.violet { --group: #7240cf; }
[data-theme="light"] .group-icon.mint { --group: #146e56; }
.nav-link .group-icon { width: 27px; height: 27px; border-radius: 8px; }
.nav-link .group-icon svg { width: 15px; height: 15px; }
.mini-icon { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; color: var(--muted); flex: none; }
.mini-icon:hover { background: var(--surface-3); color: var(--text); }
.sidebar-account { display: flex; align-items: center; gap: 9px; padding: 9px 7px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; text-align: left; }
.sidebar-account:hover { border-color: var(--accent); }
.sidebar-account > span:nth-child(2) { flex: 1; min-width: 0; }
.sidebar-account strong, .sidebar-account small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-account small, .sidebar-account svg { color: var(--muted); }
.sidebar-account strong { font-size: 12px; }
.main { min-width: 0; padding: 26px 0 48px; }
.page-heading { margin: 0 0 19px; }
.page-heading h1 { font-size: clamp(27px, 3vw, 34px); letter-spacing: -.04em; line-height: 1.15; margin: 0 0 6px; }
.page-heading p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.page-heading .heading-kicker { color: var(--accent); margin-bottom: 6px; font-size: 10px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.hero { isolation: isolate; position: relative; overflow: hidden; min-height: 177px; background: linear-gradient(115deg, #21172f 6%, #2a1947 58%, #231440); border: 1px solid #493466; border-radius: 15px; color: #f8f4ff; margin-bottom: 15px; }
.hero-art { position: absolute; height: 112%; width: min(67%, 510px); top: -6%; right: 0; z-index: -1; }
.hero-content { position: relative; padding: 21px 25px; }
.hero-label { font-size: 10px; font-weight: 800; letter-spacing: .12em; display: flex; align-items: center; gap: 6px; color: #d8c2ff; margin: 0 0 9px; }
.hero-content h2 { font-size: clamp(27px, 3.2vw, 40px); letter-spacing: -.053em; line-height: 1.08; text-wrap: balance; }
.hero-content p { margin: 7px 0 13px; color: #c9badb; font-size: 13px; }
.hero-content a { display: inline-flex; align-items: center; gap: 7px; color: #d9c4ff; font-size: 13px; font-weight: 700; }
.hero-content a:hover { color: #fff; }
.composer { padding: 13px 15px 11px; }
.composer-start { display: flex; align-items: center; gap: 11px; }
.composer-prompt { display: block; text-align: left; flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 10px 13px; color: var(--muted); background: var(--surface-2); }
.composer-prompt:hover { border-color: var(--quiet); }
.composer-tools { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); margin-top: 11px; padding-top: 8px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-radius: 7px; }
.text-button:hover { color: var(--text); background: var(--surface-2); }
.media-button svg { color: var(--accent); }
.compact { min-height: 32px; padding: 6px 11px; font-size: 12px; }
.composer-tools .primary { margin-left: auto; }
.feed-filter { display: flex; align-items: center; gap: 8px; margin: 15px 0 11px; }
.feed-filter button { display: flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid transparent; border-radius: 8px; white-space: nowrap; color: var(--muted); font-weight: 600; font-size: 13px; }
.feed-filter button:hover { background: var(--surface); color: var(--text); }
.feed-filter button.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--bg)); border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.posts { display: grid; gap: 14px; }
.post { padding: 15px; scroll-margin-top: calc(var(--header) + 15px); }
.post-header { display: flex; align-items: center; gap: 10px; }
.post-byline { flex: 1; min-width: 0; display: grid; gap: 3px; }
.post-byline strong { font-size: 14px; }
.post-byline small { color: var(--muted); }
.post-byline small span { margin: 0 3px; }
.post-tag { display: inline-flex; align-items: center; gap: 4px; background: color-mix(in srgb, var(--accent) 13%, var(--surface)); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: 6px; padding: 4px 7px; letter-spacing: .045em; font-size: 9px; font-weight: 800; }
.post-text { margin: 11px 0; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-media { display: block; width: 100%; max-height: 365px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.post-header + .post-media { margin-top: 11px; }
.post-media--upload { max-height: min(65dvh, 540px); object-fit: contain; }
.post-tools { display: flex; align-items: center; gap: 9px; margin-top: 10px; }
.post-tools .share { margin-left: auto; }
.like.liked { color: #f18aaf; }
.like svg { transition: transform 140ms ease, fill 140ms ease; }
.like.liked svg { fill: currentColor; transform: scale(1.08); }
.like:active svg { transform: scale(.9); }
.rightbar { min-width: 0; padding: 27px 0 20px; }
.aside-title { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--quiet); font-weight: 800; letter-spacing: .12em; margin-bottom: 12px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px #57d9a45c; }
.aside-panel { padding: 12px; margin: 0 0 13px; }
.aside-header { display: flex; align-items: center; justify-content: space-between; padding: 0 1px 7px 3px; gap: 6px; }
.aside-header h2 { font-size: 15px; font-weight: 740; letter-spacing: -.018em; }
.aside-person { border-radius: 8px; width: 100%; min-height: 49px; display: flex; align-items: center; gap: 9px; text-align: left; padding: 5px 4px; }
.aside-person:hover { background: var(--surface-2); }
.aside-person .avatar, .aside-person .group-icon { width: 34px; height: 34px; }
.aside-person .group-icon svg { width: 17px; height: 17px; }
.aside-person > span:nth-child(2) { min-width: 0; flex: 1; }
.aside-person strong, .aside-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aside-person strong { font-size: 13px; }
.aside-person small { color: var(--muted); margin-top: 3px; font-size: 11px; }
.aside-person > svg { color: var(--quiet); }
.aside-empty { font-size: 12px; line-height: 1.5; padding: 8px 4px 11px; }
.aside-footer { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--quiet); margin: 15px 1px 0; }
.aside-footer button { padding: 0; }
.aside-footer button:hover { color: var(--text); }
.footer-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.empty, .loading-row { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 27px 16px; color: var(--muted); }
.empty strong { color: var(--text); font-size: 16px; }
.empty .primary { margin-top: 5px; }
.section-title { margin: 20px 0 11px; font-size: 19px; }
.community-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.discovery-card { overflow: hidden; --tile: #a580fa; }
.discovery-card.mint { --tile: #57d7bd; }
.discovery-art { height: 145px; padding: 12px; display: grid; place-content: center; justify-items: center; gap: 9px; color: var(--tile); background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--tile) 23%, #21132a), #191522 80%); }
.discovery-art > svg { filter: drop-shadow(0 0 20px var(--tile)); stroke-width: 1.15; }
.discovery-art > span { font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.discovery-copy { padding: 15px; display: grid; align-items: start; justify-items: start; gap: 8px; }
.discovery-copy h2 { font-size: 20px; }
.discovery-copy p { color: var(--muted); line-height: 1.5; min-height: 43px; }
.profile-card { --profile-portrait-size: 84px; overflow: hidden; border-radius: 18px; }
.profile-cover {
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 3.5 / 1; min-height: 133px; max-height: 290px;
  background: radial-gradient(ellipse at 76% 20%, color-mix(in srgb, var(--profile-tint) 38%, transparent), transparent 63%),
    linear-gradient(118deg, #211930, color-mix(in srgb, var(--profile-tint) 29%, #21172e) 57%, #27193d);
}
.profile-cover .hero-art { width: min(83%, 810px); height: 125%; top: -12%; }
.profile-body { position: relative; padding: 0 clamp(16px, 3.2vw, 32px) clamp(20px, 3vw, 30px); }
.profile-portrait { width: max-content; margin-top: calc(var(--profile-portrait-size) * -.48); margin-bottom: 13px; }
.avatar.profile-avatar {
  width: var(--profile-portrait-size); height: var(--profile-portrait-size);
  border: 4px solid var(--surface); box-shadow: 0 2px 13px #100b2470; font-size: clamp(24px, 3vw, 38px);
}
.avatar.profile-avatar.has-status::after { right: 3px; bottom: 3px; width: 16px; height: 16px; border-width: 3px; }
.profile-details { display: flex; align-items: start; justify-content: space-between; gap: 14px 20px; }
.profile-identity { min-width: 0; }
.profile-identity h1 { margin: 0; overflow-wrap: anywhere; font-size: clamp(26px, 3.1vw, 40px); line-height: 1.08; letter-spacing: -.037em; }
.profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 11px; margin-top: 8px; color: var(--muted); }
.profile-username { font-weight: 650; overflow-wrap: anywhere; }
.profile-status { display: inline-flex; align-items: center; gap: 8px; overflow-wrap: anywhere; font-size: 12px; }
.profile-status::before { content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--quiet); }
.profile-bio { max-width: 62ch; margin-top: 13px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.profile-actions { flex: none; }
.profile-actions :is(.primary, .secondary) { min-height: 42px; border-radius: 11px; }
.profile-library { margin-top: 16px; }
.profile-tabs { display: flex; align-items: center; gap: 5px; padding: 5px; margin-bottom: 12px; border-radius: 13px; }
.profile-tabs button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 7px 13px;
  border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 700;
}
.profile-tabs button:hover { color: var(--text); background: var(--surface-2); }
.profile-tabs button[aria-selected="true"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, var(--surface)); }
.profile-library [role="tabpanel"]:focus-visible, .profile-library .post:focus-visible { outline-offset: 3px; }
.profile-library [role="tabpanel"] .post { scroll-margin: calc(var(--header) + 14px) 0 14px; }
.profile-empty { min-height: 152px; align-content: center; }
.profile-empty svg { color: var(--accent); }
.profile-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 142px), 1fr)); gap: 10px; }
.profile-media-grid.profile-video-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); }
.profile-photo, .profile-video { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.profile-photo { display: block; aspect-ratio: 1; padding: 0; }
.profile-photo:hover { border-color: var(--accent); }
.profile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #121018; }
.profile-video button {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; min-height: 42px;
  padding: 8px 11px; text-align: start; overflow-wrap: anywhere;
}
.profile-video button svg { flex: none; color: var(--accent); }
.profile-video button:hover { background: var(--surface-2); }
.settings-panel { padding: 17px; margin-bottom: 13px; }
.settings-title { display: flex; gap: 10px; align-items: start; margin: 0 0 15px; }
.settings-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.settings-heading .settings-back { margin: 0 0 14px; flex: none; }
.settings-title > svg { margin-top: 2px; color: var(--accent); }
.settings-title h2 { font-size: 17px; }
.settings-title p { color: var(--muted); margin-top: 4px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.setting-row p { color: var(--muted); line-height: 1.45; margin-top: 5px; font-size: 13px; }
.setting-switch { position: relative; flex: none; width: 48px; height: 28px; border: 1px solid var(--quiet); border-radius: 999px; background: var(--surface-2); }
.setting-switch::before { content: ''; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); }
.setting-switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.setting-switch[aria-checked="true"]::before { transform: translateX(20px); background: var(--accent-ink); }
@media (prefers-reduced-motion: no-preference) {
  .setting-switch { transition: background 160ms ease, border-color 160ms ease; }
  .setting-switch::before { transition: transform 160ms ease, background 160ms ease; }
}
.settings-profile, .compose-author, .account-info { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.settings-profile small, .compose-author small, .account-info small { display: block; margin-top: 4px; color: var(--muted); }
.settings-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-bottom: 13px; }
.settings-fields .wide { grid-column: 1 / -1; }
.settings-fields label, .dialog-form label { display: grid; min-width: 0; gap: 6px; color: var(--muted); font-weight: 600; }
input, textarea, select { min-width: 0; max-width: 100%; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--quiet); }
input[type="color"] { width: 100%; height: 39px; padding: 5px; cursor: pointer; }
.theme-picker, .accent-picker { display: flex; align-items: center; gap: 9px; }
.theme-option { border: 1px solid var(--line); border-radius: 9px; min-width: 120px; min-height: 51px; padding: 8px; display: flex; justify-content: center; align-items: center; gap: 7px; }
.theme-option.dark { color: #f5f3fa; background: #18181f; }
.theme-option.light { color: #211b2c; background: #f4f3f8; }
.theme-option.chosen { border: 2px solid var(--accent); }
.setting-label { margin: 13px 0 8px; color: var(--muted); font-weight: 600; }
.accent-option { width: 34px; height: 34px; border-radius: 50%; background: var(--swatch); color: #25183e; display: grid; place-items: center; }
.accent-option svg { opacity: 0; }
.accent-option.chosen svg { opacity: 1; }
.dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 17px; width: min(94vw, 482px); max-height: 90dvh; box-shadow: 0 18px 70px #0008; }
.dialog::backdrop { background: #0b0711bb; backdrop-filter: blur(3px); }
.dialog-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.dialog-title h2 { font-size: 19px; }
.dialog-title .icon-button { height: 32px; width: 32px; }
.dialog-form { display: grid; gap: 13px; }
.dialog-form .compose-author { margin-bottom: 0; }
.dialog-form .primary { justify-self: end; }
.dialog-copy { color: var(--muted); line-height: 1.6; }
.post-comment-list { height: clamp(150px, 34dvh, 325px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 3px; }
.post-comment-group { display: flex; align-items: start; gap: 10px; padding: 10px 0; }
.post-comment-group + .post-comment-group { border-top: 1px solid var(--line); }
.post-comment-author { flex: 1; min-width: 0; }
.post-comment-author > strong { font-size: 13px; }
.post-comment { margin-top: 5px; }
.post-comment + .post-comment { margin-top: 8px; }
.post-comment p { color: var(--muted); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-comment-actions { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.post-comment-actions button { display: inline-flex; align-items: center; gap: 4px; padding: 4px 1px; color: var(--muted); font-size: 11px; font-weight: 650; }
.post-comment-actions button:hover, .post-comment-mention { color: var(--accent); }
.post-comment-actions button[aria-pressed="true"] { color: #f18aaf; }
.post-comment-actions button[aria-pressed="true"] svg { fill: currentColor; }
.post-comment-replies { margin: 6px 0 1px; padding-left: 10px; border-left: 2px solid var(--line); }
.post-comment-replies .avatar { width: 27px; height: 27px; }
.post-comment-replies .post-comment-group { gap: 7px; padding: 6px 0; }
.post-comment-empty { color: var(--muted); padding: 12px 0; }
.post-comment-empty button { margin-top: 8px; }
.post-comment-reply { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 4px 8px; border-radius: 7px; background: var(--surface-2); color: var(--muted); font-size: 12px; }
.post-comment-reply[hidden] { display: none; }
.post-comment-reply strong { color: var(--accent); }
.post-comment-skeleton > div { display: flex; gap: 10px; padding: 12px 0; }
.post-comment-skeleton > div + div { border-top: 1px solid var(--line); }
.post-comment-skeleton i, .post-comment-skeleton b { display: block; background: var(--surface-3); animation: post-comment-pulse 1.4s ease-in-out infinite alternate; }
.post-comment-skeleton i { width: 34px; height: 34px; flex: none; border-radius: 50%; }
.post-comment-skeleton span { width: 70%; padding-top: 2px; }
.post-comment-skeleton b { width: 33%; height: 8px; border-radius: 4px; margin-bottom: 8px; }
.post-comment-skeleton b + b { width: 90%; }
.post-comment-enter { animation: post-comment-appear 180ms ease-out both; }
@keyframes post-comment-pulse { to { opacity: .48; } }
@keyframes post-comment-appear { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .like svg { transition: none; }
  .post-comment-skeleton i, .post-comment-skeleton b, .post-comment-enter { animation: none; }
}
.comment-form { display: flex; gap: 8px; margin-top: 13px; }
.comment-form input, .copy-input { flex: 1; width: 100%; }
.search-input { display: flex; align-items: center; gap: 8px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding-left: 10px; }
.search-input input { border: 0; background: transparent; flex: 1; }
.search-results { margin-top: 10px; max-height: 50dvh; overflow: auto; }
.account-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.account-actions > * { justify-content: flex-start; }
.toasts { position: fixed; z-index: 30; bottom: 18px; right: 20px; display: grid; gap: 6px; max-width: min(90vw, 370px); pointer-events: none; }
.toast { padding: 11px 13px; display: flex; gap: 8px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 7px 23px #0005; }
.toast svg { color: var(--accent); }
.auth-screen { min-height: 100dvh; display: grid; place-items: center; isolation: isolate; position: relative; overflow: hidden; padding: 18px; }
.auth-orbit { position: absolute; inset: 0; z-index: -1; }
.auth-orbit .hero-art { width: 82%; opacity: .5; height: 100%; top: 0; }
.auth-card { width: min(100%, 435px); padding: 26px; }
.auth-card h1 { font-size: 25px; letter-spacing: -.035em; margin-top: 18px; }
.auth-card p { color: var(--muted); line-height: 1.5; margin: 6px 0 14px; }
.auth-card .primary { justify-self: stretch; }
.auth-buttons { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 7px; }
.form-error { color: #f095a6; margin: 0; }
[data-theme="light"] .form-error { color: #a82040; }
@media (min-width: 1450px) {
  .workspace { grid-template-columns: 215px minmax(0, 1fr) 300px; gap: 29px; }
  .workspace.wide-workspace { grid-template-columns: 215px minmax(0, 1fr); }
  .topbar-inner { gap: 29px; }
  .topbar .brand { width: 215px; }
}
@media (max-width: 1120px) {
  .workspace { grid-template-columns: 170px minmax(0, 1fr) 231px; gap: 18px; }
  .workspace.wide-workspace { grid-template-columns: 170px minmax(0, 1fr); }
  .topbar-inner, .workspace { padding-inline: 20px; }
  .topbar-inner { gap: 18px; }
  .topbar .brand { width: 170px; }
  .sidebar { padding-right: 11px; }
}
@media (max-width: 940px) {
  .workspace, .workspace.wide-workspace { grid-template-columns: 170px minmax(0, 1fr); }
  .rightbar { display: none; }
}
@media (width > 760px) {
  :root:has(.workspace:is(.is-chat-workspace, .is-shorts-workspace)) { scrollbar-gutter: auto; }
  .workspace:is(.is-chat-workspace, .is-shorts-workspace) {
    max-width: none;
    height: calc(100dvh - var(--header));
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    padding: 0;
  }
  .workspace:is(.is-chat-workspace, .is-shorts-workspace) > .sidebar { padding-inline: 14px; }
  .workspace:is(.is-chat-workspace, .is-shorts-workspace) > .main { min-height: 0; padding: 0; }
  .topbar:has(+ .workspace:is(.is-chat-workspace, .is-shorts-workspace)) .topbar-inner {
    max-width: none;
    padding-inline: 14px;
    gap: 14px;
  }
  .topbar.panel-resize-topbar:has(+ .workspace:is(.is-chat-workspace, .is-shorts-workspace)) .brand {
    width: calc(var(--panel-nav-width) - 14px);
  }
  .workspace.wide-workspace:not(.is-chat-workspace, .is-shorts-workspace) > .main {
    width: 100%;
    max-width: 1040px;
    justify-self: start;
  }
  .main:has(> .community-grid) { container: community-list / inline-size; }
  .page-heading:has(+ .community-grid) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    align-content: center;
    min-height: 145px;
    margin-bottom: 17px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
    border-radius: 19px;
    background: linear-gradient(110deg, var(--surface) 24%, color-mix(in srgb, var(--accent) 15%, var(--surface)));
  }
  .page-heading:has(+ .community-grid)::after {
    position: absolute;
    z-index: -1;
    inset: -60% -15% -55% auto;
    width: 63%;
    content: "";
    background: repeating-radial-gradient(ellipse, transparent 0 14px, color-mix(in srgb, var(--accent) 23%, transparent) 15px 16px, transparent 17px 27px);
    mask-image: linear-gradient(90deg, transparent, #000 48%, #000 82%, transparent);
    transform: rotate(-25deg);
  }
  .page-heading:has(+ .community-grid) h1 { font-size: clamp(29px, 3vw, 40px); }
  .page-heading:has(+ .community-grid) p { max-width: 43ch; font-size: 14px; }
  .community-grid { gap: 16px; }
  .discovery-card {
    display: grid;
    grid-template-rows: auto 1fr;
    border-radius: 18px;
  }
  .discovery-card:focus-within { border-color: color-mix(in srgb, var(--tile) 60%, var(--line)); }
  .discovery-art {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    height: clamp(132px, 13vw, 177px);
    place-content: end start;
    justify-items: start;
    padding: 16px;
    color: color-mix(in srgb, var(--tile) 68%, #fff);
    background: radial-gradient(ellipse at 85% 26%, color-mix(in srgb, var(--tile) 32%, #1b1628), transparent 69%), #1a1725;
  }
  .discovery-art::before {
    position: absolute;
    z-index: -1;
    inset: -45% -23% -45% auto;
    width: 84%;
    content: "";
    background: repeating-radial-gradient(ellipse, transparent 0 10px, color-mix(in srgb, var(--tile) 21%, transparent) 11px 12px, transparent 13px 22px);
    mask-image: linear-gradient(90deg, transparent, #000 52%);
    transform: rotate(-24deg);
  }
  .discovery-art > svg {
    position: absolute;
    top: 40%;
    right: 17px;
    width: clamp(54px, 6vw, 83px);
    height: auto;
    transform: translateY(-50%);
    filter: drop-shadow(0 0 18px color-mix(in srgb, var(--tile) 60%, transparent));
  }
  .discovery-art > span {
    max-width: 100%;
    padding: 6px 9px;
    border: 1px solid color-mix(in srgb, var(--tile) 35%, transparent);
    border-radius: 7px;
    background: #171320d9;
    text-align: left;
    line-height: 1.3;
  }
  .discovery-copy { grid-template-rows: auto 1fr auto; padding: 17px; gap: 8px; }
  .discovery-copy > .group-icon { display: none; }
  .discovery-copy h2 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.025em; }
  .discovery-copy p { min-height: 0; }
  .discovery-copy .secondary {
    justify-content: space-between;
    width: 100%;
    margin-top: 8px;
    white-space: normal;
    background: color-mix(in srgb, var(--tile) 10%, var(--surface-2));
  }
  .discovery-copy .secondary:hover { border-color: color-mix(in srgb, var(--tile) 66%, var(--line)); }
}
@media (width > 760px) {
  .profile-card { --profile-portrait-size: clamp(93px, 9vw, 126px); border-radius: 22px; }
  .profile-cover { min-height: 176px; }
  .avatar.profile-avatar { border-width: 5px; }
  .avatar.profile-avatar.has-status::after { right: 6px; bottom: 6px; width: 20px; height: 20px; }
}
@media (max-width: 520px) {
  .profile-details { flex-direction: column; }
  .profile-actions { align-self: stretch; }
  .profile-actions :is(.primary, .secondary) { width: 100%; }
  .profile-tabs button { flex: 1; min-height: 44px; padding-inline: 5px; }
}
@container community-list (max-width: 405px) {
  .community-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root {
    --header: calc(55px + env(safe-area-inset-top, 0px));
    --mobile-nav-space: calc(63px + env(safe-area-inset-bottom, 0px));
    scroll-padding: var(--header) 0 var(--mobile-nav-space);
  }
  .topbar-inner, .workspace { padding-inline: 12px; }
  .topbar-inner { gap: 10px; padding-top: env(safe-area-inset-top, 0px); }
  .topbar .brand { width: auto; }
  .brand img { width: 31px; height: 31px; }
  .brand { font-size: 22px; }
  .search-bar { width: auto; padding: 8px; }
  .search-bar span, .search-bar kbd, .new-post span { display: none; }
  .top-actions { gap: 6px; }
  .new-post { padding: 6px; min-height: 34px; }
  .top-actions .icon-button { width: 34px; height: 34px; }
  .workspace, .workspace.wide-workspace { display: block; padding-bottom: var(--mobile-nav-space); }
  .sidebar { display: none; }
  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 11;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    height: var(--mobile-nav-space);
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
    background: var(--top);
    border-top: 1px solid var(--line);
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 44px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
  }
  .mobile-nav a[aria-current] {
    background: color-mix(in srgb, var(--accent) 12%, var(--top));
    color: var(--accent);
  }
  .main { padding: 15px 0 19px; }
  .post-comments .comment-form input { font-size: 16px; }
  :root:has(#app.direct-thread) { scrollbar-gutter: auto; }
  #app.direct-thread .topbar, #app.direct-thread .mobile-nav { display: none; }
  #app.direct-thread .workspace, #app.direct-thread .main { padding: 0; }
  .toasts { bottom: calc(var(--mobile-nav-space) + 10px); }
  .hero-content { padding: 19px 15px; }
  .hero-art { opacity: .72; }
}
@media (max-width: 455px) {
  .community-grid { grid-template-columns: 1fr; }
  .settings-fields { grid-template-columns: 1fr; }
  .composer-tools { gap: 3px; }
  .composer-tools .text-button { font-size: 12px; }
  .post-tools { gap: 4px; }
}
