:root {
  color-scheme: dark;
  --ink: #f3f6ff;
  --muted: #9da8bc;
  --faint: #758198;
  --line: #253044;
  --canvas: #080b12;
  --paper: #101623;
  --accent: #ff2a85;
  --accent-dark: #ff67ac;
  --accent-pale: #281222;
  --mint: #40d9ff;
  --cyan: #3fd0ff;
  --pink: #ff2a85;
  --shadow: 0 12px 38px #0008, 0 0 24px #3fd0ff08;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  background-color: var(--canvas);
  background-image:
    radial-gradient(ellipse at 13% 0%, #ff2a8517, transparent 35%),
    radial-gradient(ellipse at 84% 8%, #3fd0ff12, transparent 31%),
    linear-gradient(#3fd0ff08 1px, transparent 1px),
    linear-gradient(90deg, #3fd0ff08 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
}
button, input, textarea, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.topbar {
  position: sticky; z-index: 5; top: 0; display: flex; align-items: center; gap: 42px;
  height: 76px; padding: 0 max(28px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid #253044; background: #090c14ed; box-shadow: 0 8px 26px #0006; backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 207px; font-size: 21px; font-weight: 780; letter-spacing: -.8px; }
.brand-mark, .modal-mark, .signed-out-mark { display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #ff2a85, #3fd0ff); box-shadow: 0 0 18px #ff2a8566, 0 0 30px #3fd0ff25; }
.brand-mark { width: 35px; height: 35px; border-radius: 12px; font-size: 19px; }
.brand-period { color: var(--cyan); text-shadow: 0 0 12px #3fd0ff99; }
.search-form { display: flex; align-items: center; gap: 11px; width: min(475px, 42vw); height: 42px; padding: 0 13px; border: 1px solid #26334a; border-radius: 12px; color: var(--cyan); background: #0c111b; }
.search-form:focus-within { border-color: #ff2a85; background: #101623; box-shadow: 0 0 0 2px #ff2a8525, 0 0 18px #3fd0ff18; }
.search-form > span { font-size: 24px; line-height: 1; }
.search-form input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search-form input::placeholder { color: #76839a; }
.search-form kbd { padding: 2px 6px; border: 1px solid #2b3548; border-radius: 5px; color: #9da8bc; background: #141b29; font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 680; transition: .18s ease; }
.button-primary { color: #fff; background: linear-gradient(115deg, #ff2a85, #e81979); box-shadow: 0 0 18px #ff2a8548, inset 0 0 0 1px #ff92c34a; }
.button-primary:hover { background: linear-gradient(115deg, #ff559e, #ff2a85); box-shadow: 0 0 24px #ff2a8577; transform: translateY(-1px); }
.button-quiet { color: #c6d0e0; border-color: #2a354a; background: #111827; }
.button-quiet:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 14px #3fd0ff1e; }
.account-button { display: inline-flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 24px; background: #111827; font-size: 13px; font-weight: 650; }
.account-button > span:last-child { color: var(--muted); }
.avatar { display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; border: 1px solid #3fd0ff48; border-radius: 14px; color: #d7f8ff; background: linear-gradient(145deg, #192639, #21152b); box-shadow: inset 0 0 12px #3fd0ff0c, 0 0 11px #3fd0ff13; font-size: 15px; font-weight: 750; text-transform: uppercase; }
.avatar-small { width: 31px; height: 31px; border-radius: 50%; font-size: 12px; }

.app-layout { display: grid; grid-template-columns: 220px minmax(0, 650px) 310px; gap: 26px; width: min(1220px, calc(100% - 48px)); margin: 32px auto 60px; align-items: start; }
.left-column { position: sticky; top: 100px; }
.navigation-card { padding: 9px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.nav-item { display: flex; align-items: center; gap: 13px; width: 100%; height: 43px; padding: 0 12px; border: 0; border-radius: 10px; color: #a4b0c4; background: transparent; text-align: left; font-size: 13px; font-weight: 600; transition: .16s ease; }
.nav-item:hover { color: var(--cyan); background: #101e2b; }
.nav-item.active { color: #ff5ca0; background: #281222; box-shadow: inset 2px 0 #ff2a85, 0 0 17px #ff2a8512; font-weight: 720; }
.nav-icon { display: grid; place-items: center; width: 21px; color: currentColor; font-size: 19px; line-height: 1; }
.nav-divider { height: 1px; margin: 10px 4px; background: #263044; }
.side-label, .eyebrow { margin: 0; color: #56d9ff; font: 700 9px Consolas, "Courier New", monospace; letter-spacing: 1.15px; text-shadow: 0 0 12px #3fd0ff39; }
.side-label { padding: 4px 12px 7px; }
.sidebar-note { position: relative; overflow: hidden; margin-top: 16px; padding: 17px 16px 18px; border: 1px solid #30405a; border-radius: 15px; background: linear-gradient(145deg, #121b2a, #10131d 67%); box-shadow: inset 0 0 26px #3fd0ff0a, 0 0 18px #3fd0ff0c; }
.note-icon { color: var(--pink); font-size: 18px; text-shadow: 0 0 13px #ff2a85a8; }
.sidebar-note h2 { margin: 10px 0 7px; font-size: 14px; letter-spacing: -.2px; }
.sidebar-note p { margin: 0 0 13px; color: #9da8bc; font-size: 11px; line-height: 1.55; }
.sidebar-note a { color: var(--cyan); font-size: 11px; font-weight: 700; }
.sidebar-footer { display: flex; flex-wrap: wrap; gap: 8px 13px; padding: 18px 5px; color: #78849a; font-size: 10px; }
.sidebar-footer a:hover { color: var(--pink); }

.main-column { min-width: 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 90px; margin-bottom: 15px; }
.page-heading .eyebrow { margin-bottom: 6px; }
.page-heading h1 { margin: 0; font-size: 27px; letter-spacing: -1px; text-shadow: 0 0 22px #3fd0ff1b; }
.heading-copy { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid #194553; border-radius: 20px; color: var(--cyan); background: #0d2028; box-shadow: 0 0 16px #3fd0ff13; font-size: 9px; font-weight: 750; letter-spacing: .45px; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px #ff2a852b, 0 0 12px #ff2a85; }
.card { border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, #121a29, #0f1420 76%); box-shadow: var(--shadow), inset 0 1px #ffffff08; }
.composer { padding: 16px 17px 13px; }
.composer-top { display: flex; align-items: flex-start; gap: 12px; }
.composer-top textarea { flex: 1; min-height: 66px; padding: 10px 0; resize: vertical; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; line-height: 1.5; }
.composer-top textarea::placeholder { color: #a1a7b3; }
.composer-bottom { display: flex; align-items: center; gap: 9px; padding-top: 10px; border-top: 1px solid #263044; }
.select-label { color: #9da8bc; font-size: 10px; }
.composer-bottom select { max-width: 190px; padding: 5px 24px 5px 8px; border: 1px solid #30405a; border-radius: 7px; outline: 0; color: var(--cyan); background: #111c2a; font-size: 10px; }
.composer-hint { margin-left: auto; color: #8290a6; font-size: 10px; }
.composer-bottom .button { min-height: 34px; padding: 0 12px; font-size: 11px; }
.signed-out-card { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; padding: 15px; }
.signed-out-card h2 { margin: 0 0 4px; font-size: 13px; }
.signed-out-card p { margin: 0; color: var(--muted); font-size: 11px; }
.signed-out-card .button { margin-left: auto; white-space: nowrap; }
.signed-out-mark { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; font-weight: 750; }
.feed-list { display: grid; gap: 12px; margin-top: 15px; }
.post-card { padding: 17px 18px 12px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.post-card:hover { transform: translateY(-1px); border-color: #3fd0ff57; box-shadow: 0 14px 35px #0009, 0 0 18px #3fd0ff13; }
.post-header { display: flex; align-items: center; gap: 10px; }
.profile-trigger { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; }
.profile-trigger:hover strong { color: var(--cyan); }
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.avatar-large { width: 64px; height: 64px; border-radius: 20px; font-size: 23px; }
.post-author { min-width: 0; }
.post-author strong { display: block; font-size: 12px; }
.post-author span, .post-time { color: #8693aa; font-size: 10px; }
.post-time { margin-left: auto; align-self: flex-start; }
.post-community { margin: 13px 0 0; color: var(--accent-dark); font-size: 10px; font-weight: 680; }
.post-content { margin: 12px 0 15px; color: #d0d8e6; font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-actions { display: flex; align-items: center; gap: 7px; padding-top: 10px; border-top: 1px solid #263044; }
.post-action { display: inline-flex; align-items: center; gap: 6px; min-height: 29px; padding: 0 9px; border: 0; border-radius: 8px; color: #94a0b5; background: transparent; font-size: 10px; }
.post-action:hover, .post-action.liked { color: #ff5ca0; background: #281222; text-shadow: 0 0 10px #ff2a8577; }
.comment-panel { display: grid; gap: 10px; margin-top: 11px; padding-top: 11px; border-top: 1px solid #263044; }
.comment-list { display: grid; gap: 9px; }
.comment-item { display: flex; align-items: flex-start; gap: 8px; }
.comment-item .avatar { width: 28px; height: 28px; border-radius: 9px; font-size: 10px; }
.comment-body { min-width: 0; flex: 1; padding: 8px 10px; border: 1px solid #26354a; border-radius: 9px; background: #111a27; }
.comment-body p { margin: 4px 0 0; color: #c7d2e3; font-size: 11px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.comment-meta button { padding: 0; border: 0; color: var(--cyan); background: transparent; font-size: inherit; }
.comment-form { display: flex; gap: 7px; }
.comment-form textarea { flex: 1; min-width: 0; min-height: 36px; max-height: 100px; padding: 8px 10px; resize: vertical; border: 1px solid #2b3a50; border-radius: 8px; outline: 0; color: var(--ink); background: #0c111b; font-size: 11px; }
.comment-form .button { min-height: 34px; padding: 0 11px; font-size: 10px; }
.empty-state { padding: 33px 16px; border: 1px dashed #32405a; border-radius: 13px; color: #99a5ba; background: #0d121d; text-align: center; font-size: 12px; }
.load-error { padding: 18px; color: #ff91b9; border: 1px solid #602642; border-radius: 12px; background: #1b101b; font-size: 12px; }

.right-column { display: grid; gap: 14px; }
.welcome-card { position: relative; overflow: hidden; min-height: 214px; padding: 20px 19px; border: 1px solid #3d3450; border-radius: 16px; color: white; background: radial-gradient(ellipse at 95% 0%, #3fd0ff39, transparent 43%), radial-gradient(ellipse at 0% 100%, #ff2a8538, transparent 53%), linear-gradient(137deg, #151725, #101622 74%); box-shadow: 0 12px 32px #0008, 0 0 22px #ff2a8514; }
.welcome-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; color: #a8eaff; font-size: 9px; font-weight: 750; letter-spacing: .85px; }
.welcome-spark { color: var(--pink); font-size: 16px; text-shadow: 0 0 12px #ff2a85; }
.welcome-card h2 { position: relative; z-index: 1; max-width: 240px; margin: 21px 0 8px; font-size: 20px; line-height: 1.18; letter-spacing: -.7px; }
.welcome-card h2 span { color: #ff78b4; text-shadow: 0 0 14px #ff2a8560; }
.welcome-card p { position: relative; z-index: 1; max-width: 225px; margin: 0; color: #bdc9dc; font-size: 10px; line-height: 1.6; }
.welcome-cta { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 17px; padding: 10px 12px; border: 1px solid #ff8bbd; border-radius: 8px; color: #fff; background: #ff2a85; box-shadow: 0 0 18px #ff2a8555; font-size: 10px; font-weight: 750; }
.welcome-orbit { position: absolute; width: 120px; height: 120px; border: 1px solid #3fd0ff50; border-radius: 50%; box-shadow: 0 0 16px #3fd0ff19; }
.orbit-a { top: 34px; right: -56px; }.orbit-b { top: 52px; right: -38px; width: 84px; height: 84px; }
.trending-card { padding: 16px; }
.side-section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.side-section-heading h2 { margin: 4px 0 0; font-size: 14px; letter-spacing: -.3px; }
.text-button { padding: 4px 0; border: 0; color: var(--accent); background: transparent; font-size: 10px; font-weight: 700; }
.sidebar-communities { display: grid; gap: 3px; }
.community-mini { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #273145; }
.community-symbol { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border: 1px solid #3fd0ff49; border-radius: 11px; color: #6ee2ff; background: linear-gradient(145deg, #152338, #211628); box-shadow: 0 0 12px #3fd0ff14; font-size: 14px; font-weight: 700; }
.community-mini strong { display: block; overflow: hidden; max-width: 175px; color: #e1e8f4; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.community-mini span { color: #8b97ad; font-size: 9px; }
.create-community-button { display: flex; align-items: center; gap: 7px; width: 100%; margin-top: 11px; padding: 10px 10px; border: 1px dashed #ff2a8566; border-radius: 9px; color: #ff69a9; background: #1d1220; font-size: 10px; font-weight: 700; }
.create-community-button span { font-size: 16px; }
.safety-card { display: flex; gap: 10px; padding: 3px 4px; color: var(--cyan); }
.safety-card > span { font-size: 17px; }
.safety-card strong { color: #c6d4e5; font-size: 10px; }
.safety-card p { margin: 4px 0; color: #8997aa; font-size: 9px; line-height: 1.45; }

.community-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.community-card { display: flex; flex-direction: column; min-height: 182px; padding: 16px; }
.community-card-top { display: flex; align-items: center; gap: 10px; }
.community-card-top .community-symbol { width: 42px; height: 42px; font-size: 18px; }
.community-card h2 { margin: 0; font-size: 13px; }
.community-card .community-members { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.community-card p { flex: 1; margin: 13px 0; color: #a4b0c4; font-size: 11px; line-height: 1.55; }
.community-card .button { min-height: 34px; width: 100%; font-size: 10px; }
.community-card .button-quiet { background: #111827; }
.search-form-inline { width: 100%; height: 48px; margin-bottom: 19px; background: #0c111b; }
.search-form-inline input { font-size: 12px; }
.search-form-inline button { min-width: 75px; min-height: 30px; border: 0; border-radius: 7px; color: white; background: var(--accent); font-size: 10px; font-weight: 700; }
.results-section { margin: 19px 0; }
.results-section h2 { margin: 0 0 10px; font-size: 13px; }
.result-row { display: flex; align-items: center; gap: 11px; padding: 11px 2px; border-bottom: 1px solid #263044; }
.result-row > div:nth-child(2) { flex: 1; min-width: 0; }
.result-row > .profile-trigger { flex: 1; min-width: 0; }
.result-row strong { display: block; font-size: 11px; }
.result-row p { overflow: hidden; margin: 4px 0 0; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.result-row .button { min-height: 30px; padding: 0 10px; font-size: 10px; }
.profile-card { display: flex; align-items: center; gap: 16px; padding: 22px; }
.profile-composer { margin-bottom: 15px; }
.profile-card .avatar { width: 72px; height: 72px; border-radius: 22px; font-size: 25px; }
.profile-details { min-width: 0; }
.profile-details h2 { margin: 0; font-size: 19px; }
.profile-details .profile-username { margin: 4px 0 0; color: var(--cyan); font-size: 11px; }
.profile-details .profile-bio { margin: 10px 0 0; color: #bcc8da; font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
.profile-details .profile-id { margin: 8px 0 0; color: #8795ab; font: 10px Consolas, "Courier New", monospace; }
.profile-posts-title { margin: 22px 0 10px; font-size: 15px; }
.avatar-editor { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.avatar-file-label { flex: 1; min-width: 150px; }
.avatar-file-label input { min-height: 32px; padding: 5px; font-size: 10px; }
.profile-id { margin: 0; color: #92a0b7; font: 10px Consolas, "Courier New", monospace; }
.resend-code-button { display: block; margin: 10px auto 0; }

.chat-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 560px; overflow: hidden; }
.chat-sidebar { border-right: 1px solid var(--line); }
.chat-sidebar h2 { margin: 0; padding: 18px; border-bottom: 1px solid #263044; font-size: 13px; }
.chat-list { display: grid; }
.chat-list-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 12px; border: 0; border-bottom: 1px solid #263044; background: #101623; text-align: left; }
.chat-list-item.active, .chat-list-item:hover { background: #1a1b2b; box-shadow: inset 2px 0 var(--pink); }
.chat-list-item > span:last-child { min-width: 0; }
.chat-list-item strong, .chat-list-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-list-item strong { font-size: 10px; }
.chat-list-item small { max-width: 118px; margin-top: 4px; color: #8996ad; font-size: 9px; }
.chat-conversation { display: flex; min-width: 0; flex-direction: column; }
.conversation-heading { display: flex; align-items: center; gap: 11px; min-height: 67px; padding: 10px 15px; border-bottom: 1px solid #263044; }
.conversation-heading h2 { margin: 0; font-size: 12px; }
.conversation-heading p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.message-list { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 8px; overflow-y: auto; padding: 16px; }
.message { align-self: flex-start; max-width: 82%; padding: 9px 11px; border: 1px solid #2b3a51; border-radius: 12px 12px 12px 3px; color: #d6deec; background: #172131; font-size: 11px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.own { align-self: flex-end; border: 1px solid #ff5a9e; border-radius: 12px 12px 3px 12px; color: #fff; background: linear-gradient(125deg, #ed1d74, #b72280); box-shadow: 0 0 15px #ff2a8533; }
.message small { display: block; margin-top: 4px; opacity: .7; font-size: 8px; text-align: right; }
.message-form { display: flex; gap: 8px; padding: 11px; border-top: 1px solid #263044; }
.message-form input { flex: 1; min-width: 0; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: #0c111b; font-size: 11px; }
.message-form .button { min-width: 38px; padding: 0; }

.modal { width: min(455px, calc(100% - 28px)); max-height: min(90vh, 760px); padding: 0; overflow: auto; border: 0; border-radius: 19px; background: transparent; box-shadow: 0 24px 80px #000b, 0 0 35px #ff2a8517; }
.modal::backdrop { background: #03060dbb; backdrop-filter: blur(7px); }
.modal-card { position: relative; padding: 30px; border: 1px solid #30405a; border-radius: 19px; background: linear-gradient(145deg, #121a29, #0d111b); box-shadow: inset 0 1px #ffffff08; }
.modal-close { position: absolute; top: 13px; right: 15px; width: 32px; height: 32px; border: 1px solid #2b3548; border-radius: 50%; color: #bdc9dc; background: #151d2b; font-size: 21px; }
.modal-mark { width: 42px; height: 42px; margin-bottom: 17px; border-radius: 14px; font-size: 19px; font-weight: 750; }
.modal-card > .eyebrow { margin-bottom: 7px; }
.modal-card h2 { margin: 0; font-size: 22px; letter-spacing: -.65px; }
.modal-copy { margin: 7px 0 19px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.auth-fields { display: grid; gap: 12px; }
.auth-fields label { display: grid; gap: 6px; color: #b6c2d5; font-size: 10px; font-weight: 650; }
.auth-fields input, .auth-fields textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #2b3a50; border-radius: 9px; outline: 0; color: var(--ink); background: #0b111b; font-size: 12px; font-weight: 400; }
.auth-fields textarea { resize: vertical; }
.auth-fields input:focus, .auth-fields textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px #3fd0ff25, 0 0 14px #3fd0ff1c; }
.form-error { min-height: 18px; margin: 8px 0 0; color: #ff83b4; font-size: 10px; }
.modal-submit { width: 100%; margin-top: 7px; }
.auth-switch, .terms-consent { color: var(--muted); text-align: center; font-size: 10px; }
.auth-switch { margin: 15px 0 8px; }
.auth-switch button { padding: 0; border: 0; color: var(--cyan); background: transparent; font-weight: 700; }
.terms-consent { margin: 0; font-size: 9px; line-height: 1.6; }
.terms-consent a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.terms-check { display: flex; grid-template-columns: 17px 1fr; align-items: start; gap: 8px; font-weight: 450; line-height: 1.5; }
.terms-check input { width: 15px; min-height: 15px; margin: 1px 0 0; accent-color: var(--accent); }
.terms-check a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.logout-link { display: block; margin: 13px auto 0; }
.toast { position: fixed; z-index: 10; right: 24px; bottom: 24px; max-width: min(370px, calc(100vw - 36px)); padding: 12px 16px; transform: translateY(12px); border: 1px solid #ff2a8566; border-radius: 11px; color: #ffe3f0; background: #171321; box-shadow: 0 12px 36px #0009, 0 0 20px #ff2a8528; opacity: 0; pointer-events: none; font-size: 12px; transition: .2s ease; }
.toast.visible { transform: translateY(0); opacity: 1; }
.community-browse { display: block; align-self: flex-start; margin: 8px 0 -7px; }
.legal-page { min-height: 100vh; padding: 44px 20px; background: var(--canvas); }
.legal-shell { width: min(820px, 100%); margin: 0 auto; padding: 34px 38px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.legal-shell .brand { margin-bottom: 30px; }
.legal-shell h1 { margin: 12px 0; font-size: clamp(28px, 5vw, 40px); letter-spacing: -1.5px; }
.legal-shell h2 { margin: 25px 0 8px; font-size: 16px; }
.legal-shell p, .legal-shell li { color: #bac6d8; font-size: 13px; line-height: 1.75; }
.legal-shell a:not(.brand) { color: var(--cyan); }
.legal-notice { padding: 14px 16px; border: 1px solid #58433a; border-radius: 10px; color: #ffe2b0 !important; background: #231b1c; font-size: 11px !important; }
.legal-footer { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .app-layout { grid-template-columns: 190px minmax(0, 1fr); width: min(900px, calc(100% - 36px)); gap: 20px; }
  .right-column { display: none; }
  .brand { min-width: 175px; }
}
@media (max-width: 700px) {
  .topbar { height: 64px; gap: 12px; padding: 0 14px; }
  .brand { min-width: auto; gap: 7px; font-size: 18px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 10px; }
  .topbar > .search-form { flex: 1; width: auto; height: 37px; padding: 0 9px; }
  .topbar > .search-form input { font-size: 10px; }
  .topbar > .search-form kbd { display: none; }
  .topbar-actions { gap: 4px; margin-left: 0; }
  .topbar-actions .button { min-height: 34px; padding: 0 9px; font-size: 10px; }
  .account-button { gap: 4px; padding-right: 7px; font-size: 0; }
  .account-button > span:last-child { display: none; }
  .app-layout { display: block; width: min(600px, calc(100% - 24px)); margin: 18px auto 36px; }
  .left-column { position: static; }
  .navigation-card { display: flex; gap: 3px; overflow-x: auto; margin-bottom: 15px; padding: 6px; border-radius: 12px; scrollbar-width: none; }
  .navigation-card::-webkit-scrollbar { display: none; }
  .nav-item { flex: 1 0 auto; justify-content: center; gap: 6px; width: auto; height: 37px; padding: 0 10px; font-size: 10px; }
  .nav-icon { width: 15px; font-size: 15px; }
  .nav-divider, .side-label, .sidebar-note, .sidebar-footer { display: none; }
  .page-heading { min-height: 75px; margin-bottom: 11px; }
  .page-heading h1 { font-size: 23px; }
  .heading-copy { font-size: 10px; }
  .composer { padding: 12px; }
  .composer-hint { display: none; }
  .composer-bottom { flex-wrap: wrap; }
  .composer-bottom select { flex: 1; max-width: none; }
  .signed-out-card { align-items: flex-start; flex-wrap: wrap; }
  .signed-out-card .button { margin: 0 0 0 51px; }
  .community-grid { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 120px minmax(0, 1fr); min-height: 500px; }
  .chat-sidebar h2 { padding: 14px 10px; }
  .chat-list-item { gap: 6px; padding: 9px 6px; }
  .chat-list-item .avatar { width: 28px; height: 28px; border-radius: 9px; font-size: 10px; }
  .chat-list-item small { max-width: 72px; }
  .conversation-heading { gap: 7px; padding: 8px; }
  .conversation-heading .avatar { width: 32px; height: 32px; }
  .conversation-heading h2 { font-size: 10px; }
  .conversation-heading p { font-size: 8px; }
  .message-list { padding: 10px; }
  .post-card { padding: 14px; }
  .modal-card { padding: 25px 20px; }
  .legal-page { padding: 16px 10px; }
  .legal-shell { padding: 23px 18px; }
}
@media (max-width: 390px) {
  .topbar { gap: 7px; }
  .brand { font-size: 0; }
  .brand-mark { font-size: 17px; }
  .topbar-actions .button-quiet { display: none; }
  .nav-item { flex: 1 0 auto; padding: 0 7px; font-size: 9px; }
  .chat-layout { grid-template-columns: 94px minmax(0, 1fr); }
}
