:root {
    --bg: #000000;
    --panel: #080808;
    --panel-soft: #111111;
    --text: #e7e9ea;
    --muted: #71767b;
    --border: #2f3336;
    --hover: rgba(231, 233, 234, 0.1);
    --button: #eff3f4;
    --blue: #1d9bf0;
    --yellow: #ffd400;
    --danger: #f4212e;
    --success: #00ba7c;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
}

.icon path,
.icon circle,
.icon rect {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.standalone-body {
    min-height: 100vh;
}

.app-body {
    min-height: 100vh;
}

.app-shell {
    width: min(100%, 1225px);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 275px minmax(0, 600px) 350px;
}

.sidebar {
    border-right: 1px solid var(--border);
}

.sidebar-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 18px 18px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-column {
    min-width: 0;
    border-right: 1px solid var(--border);
}

.rightbar {
    min-width: 0;
}

.rightbar-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 12px 0 24px 24px;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 42px;
    color: var(--text);
    font-size: 28px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
}

.logo-mark img {
    width: auto;
    height: 34px;
}

.logo-mark-large {
    min-height: 80px;
    font-size: 74px;
}

.logo-mark-large img {
    height: 72px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.side-nav a {
    min-height: 50px;
    padding: 0 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--text);
    font-size: 20px;
    font-weight: 650;
}

.side-nav a:hover,
.side-nav a.is-active {
    background: var(--hover);
}

.sidebar-profile {
    margin-top: auto;
    min-height: 64px;
    padding: 10px;
    border-radius: 999px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.sidebar-profile:hover {
    background: var(--hover);
}

.sidebar-profile .identity-line,
.right-user .identity-line {
    min-width: 0;
}

.sidebar-profile .display-name,
.right-user .display-name {
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-auth {
    margin-top: auto;
    display: grid;
    gap: 10px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 54px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.1;
}

.topbar span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.icon-button {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-button:hover {
    background: var(--hover);
}

.button {
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 750;
    white-space: nowrap;
}

.button-primary {
    background: var(--button);
    color: #000000;
}

.button-primary:hover {
    background: #ffffff;
}

.button-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.button-ghost:hover {
    background: var(--hover);
}

.button-danger {
    background: transparent;
    color: var(--danger);
    border-color: rgba(244, 33, 46, 0.45);
}

.button-danger:hover {
    background: rgba(244, 33, 46, 0.12);
}

.button-small {
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
}

.inline-form {
    display: inline-flex;
}

.flash {
    margin: 14px 16px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--text);
}

.flash-success {
    border-color: rgba(0, 186, 124, 0.4);
}

.flash-error {
    border-color: rgba(244, 33, 46, 0.45);
}

.avatar {
    flex: 0 0 auto;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--panel-soft);
    color: var(--text);
    font-weight: 850;
}

.avatar-xs {
    width: 24px;
    height: 24px;
    font-size: 11px;
}

.avatar-sm {
    width: 42px;
    height: 42px;
    font-size: 15px;
}

.avatar-md {
    width: 48px;
    height: 48px;
    font-size: 18px;
}

.avatar-xl {
    width: 132px;
    height: 132px;
    font-size: 42px;
}

.avatar-round {
    border-radius: 50%;
}

.avatar-square {
    border-radius: 14px;
}

.avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.verified-badge {
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    vertical-align: -3px;
}

.verified-badge svg {
    width: 19px;
    height: 19px;
}

.verified-badge circle {
    fill: currentColor;
}

.verified-badge path {
    stroke: none;
}

.verified-blue {
    color: var(--blue);
}

.verified-blue path {
    fill: #ffffff;
}

.verified-yellow {
    color: var(--yellow);
}

.verified-yellow path {
    fill: #000000;
}

.identity-line {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.display-name {
    color: var(--text);
    font-weight: 800;
    line-height: 1.25;
}

.display-name:hover,
.handle:hover,
.profile-meta a:hover {
    text-decoration: underline;
}

.handle,
.muted {
    color: var(--muted);
}

.handle {
    display: inline-flex;
    line-height: 1.25;
}

.affiliation-line {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.affiliation-line:hover span {
    color: var(--text);
}

.composer {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
}

.composer-main {
    min-width: 0;
}

.composer textarea,
.reply-box textarea {
    width: 100%;
    min-height: 72px;
    resize: vertical;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 20px;
    line-height: 1.35;
}

.reply-box textarea {
    min-height: 54px;
    font-size: 15px;
}

.composer-actions {
    min-height: 44px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.char-counter {
    margin-left: auto;
    color: var(--muted);
    font-size: 13px;
}

.file-control {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.file-control:hover {
    background: var(--hover);
}

.file-control input {
    display: none;
}

.composer-preview {
    display: none;
    margin: 10px 0;
}

.composer-preview.has-image {
    display: block;
}

.composer-preview img {
    max-height: 280px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    object-fit: cover;
}

.post {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
}

.post:hover {
    background: rgba(231, 233, 234, 0.035);
}

.post-body {
    min-width: 0;
}

.post-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.post-time,
.reply-context {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.post-time:hover,
.reply-context:hover {
    text-decoration: underline;
}

.reply-context {
    display: inline-flex;
    margin-top: 3px;
}

.post-content {
    margin-top: 6px;
    color: var(--text);
    overflow-wrap: anywhere;
}

.post-image-link {
    display: block;
    margin-top: 12px;
}

.post-image {
    width: 100%;
    max-height: 520px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    object-fit: cover;
}

.post-actions {
    max-width: 380px;
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.post-actions form {
    margin: 0;
}

.action-button {
    min-height: 34px;
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
}

.action-button:hover,
.action-button.is-active {
    background: var(--hover);
    color: var(--text);
}

.reply-box {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.empty-state {
    padding: 42px 20px;
    color: var(--muted);
    text-align: center;
}

.section-title {
    min-height: 48px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 16px;
    font-weight: 850;
}

.profile-hero {
    border-bottom: 1px solid var(--border);
}

.profile-banner {
    width: 100%;
    aspect-ratio: 3 / 1;
    max-height: 200px;
    background: #101010;
    overflow: hidden;
}

.profile-banner img,
.profile-banner-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #121212;
}

.profile-info {
    position: relative;
    padding: 0 16px 16px;
}

.profile-avatar-wrap {
    width: 132px;
    height: 132px;
    margin-top: -66px;
    border-radius: 50%;
}

.profile-avatar-wrap .avatar {
    border: 4px solid var(--bg);
}

.profile-actions {
    min-height: 48px;
    margin-top: -58px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.profile-title {
    margin-top: 18px;
}

.profile-title .display-name {
    font-size: 22px;
}

.profile-bio {
    margin: 12px 0 0;
    overflow-wrap: anywhere;
}

.profile-meta,
.profile-stats {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
}

.profile-meta span {
    width: 1px;
    height: 1px;
}

.profile-stats strong {
    color: var(--text);
}

.tabs {
    height: 54px;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tabs a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 750;
}

.tabs a:hover {
    background: var(--hover);
}

.tabs a.is-active {
    color: var(--text);
}

.tabs a.is-active::after {
    content: "";
    position: absolute;
    left: 28%;
    right: 28%;
    bottom: 0;
    height: 4px;
    border-radius: 999px;
    background: var(--blue);
}

.user-list,
.organization-list,
.notification-list,
.message-list,
.trend-list-main {
    display: grid;
}

.user-row,
.organization-row,
.notification-row,
.message-row,
.trend-row {
    min-height: 72px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.user-row:hover,
.organization-row:hover,
.notification-row:hover,
.trend-row:hover {
    background: var(--hover);
}

.user-row-main {
    min-width: 0;
}

.organization-row span,
.trend-row span,
.notification-row span {
    min-width: 0;
    display: grid;
}

.organization-row small,
.trend-row span,
.notification-row small,
.message-row small {
    color: var(--muted);
}

.notification-row {
    grid-template-columns: auto minmax(0, 1fr);
}

.notification-row.is-unread {
    background: rgba(29, 155, 240, 0.08);
}

.message-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
}

.message-row p {
    margin: 8px 0;
    overflow-wrap: anywhere;
}

.search-form,
.message-form,
.settings-form,
.settings-panel,
.admin-section {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.stack-form,
.settings-form,
.message-form {
    display: grid;
    gap: 16px;
}

.stack-form label,
.settings-form label,
.message-form label,
.admin-grid-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #000000;
    color: var(--text);
    outline: 0;
}

input,
select {
    min-height: 44px;
    padding: 0 12px;
}

textarea {
    padding: 12px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--blue);
}

.settings-panel h2,
.admin-section h2,
.admin-section h3 {
    margin: 0 0 14px;
}

.settings-panel dl {
    margin: 0;
    display: grid;
    border-top: 1px solid var(--border);
}

.admin-status {
    margin: 0;
    display: grid;
    border-top: 1px solid var(--border);
}

.settings-panel dl div {
    min-height: 52px;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.admin-status div {
    min-height: 46px;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.settings-panel dt {
    color: var(--muted);
    font-weight: 750;
}

.admin-status dt {
    color: var(--muted);
    font-weight: 750;
}

.settings-panel dd {
    margin: 0;
}

.admin-status dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.settings-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.right-search {
    margin: 0 0 14px;
}

.right-search input {
    min-height: 46px;
    border-radius: 999px;
    background: #111111;
}

.right-panel {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    overflow: hidden;
}

.right-panel h2 {
    margin: 0;
    padding: 14px 16px;
    font-size: 20px;
}

.right-trend,
.right-user,
.right-org {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: grid;
    align-items: center;
    gap: 10px;
}

.right-trend {
    grid-template-columns: minmax(0, 1fr);
}

.right-trend span {
    color: var(--muted);
    font-size: 13px;
}

.right-user {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.right-org {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.right-trend:hover,
.right-user:hover,
.right-org:hover {
    background: var(--hover);
}

.landing {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    padding: 28px 0 56px;
}

.landing-hero {
    min-height: 72vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: center;
    gap: 54px;
}

.landing-copy h1 {
    max-width: 620px;
    margin: 26px 0 16px;
    font-size: 54px;
    line-height: 1.03;
    letter-spacing: 0;
}

.landing-copy p {
    max-width: 550px;
    margin: 0;
    color: var(--muted);
    font-size: 20px;
}

.landing-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.landing-preview {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel);
}

.profile-preview-banner {
    height: 142px;
    background: #121212;
    border-bottom: 1px solid var(--border);
}

.profile-preview-body {
    position: relative;
    padding: 0 18px 18px;
}

.profile-preview-body .avatar-xl {
    margin-top: -66px;
    border: 4px solid var(--panel);
}

.profile-preview-name {
    margin-top: 14px;
}

.profile-preview-body p {
    margin: 12px 0;
    color: var(--text);
}

.preview-stats {
    display: flex;
    gap: 18px;
    color: var(--muted);
}

.preview-stats strong {
    color: var(--text);
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.landing-features article {
    min-height: 150px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.landing-features h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.landing-features p {
    margin: 0;
    color: var(--muted);
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-panel {
    width: min(100%, 420px);
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.auth-panel h1 {
    margin: 22px 0;
    font-size: 28px;
}

.auth-panel .flash {
    margin: 0 0 16px;
}

.auth-panel .muted {
    margin: 18px 0 0;
}

.auth-panel a {
    color: var(--text);
    font-weight: 750;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-tabs {
    position: sticky;
    top: 54px;
    z-index: 15;
    min-height: 52px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(14px);
    display: flex;
    overflow-x: auto;
}

.admin-tabs a {
    min-width: max-content;
    padding: 0 16px;
    display: flex;
    align-items: center;
    color: var(--muted);
    font-weight: 800;
    position: relative;
}

.admin-tabs a:hover {
    background: var(--hover);
    color: var(--text);
}

.admin-tabs a.is-active {
    color: var(--text);
}

.admin-tabs a.is-active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--button);
}

.admin-copy {
    margin: -4px 0 16px;
    color: var(--muted);
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.admin-stat-card {
    min-height: 92px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    display: grid;
    align-content: center;
    gap: 4px;
}

.admin-stat-card strong {
    font-size: 28px;
    line-height: 1;
}

.admin-stat-card span {
    color: var(--muted);
    font-weight: 750;
}

.verification-tier-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.verification-tier-grid article {
    min-height: 190px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    display: grid;
    align-content: start;
    gap: 10px;
}

.verification-tier-grid h3 {
    margin: 0;
    font-size: 20px;
}

.verification-tier-grid p {
    margin: 0;
    color: var(--muted);
}

.tier-badge {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050505;
    border: 1px solid var(--border);
}

.tier-badge .verified-badge,
.tier-badge .verified-badge svg {
    width: 24px;
    height: 24px;
}

.tier-yellow {
    border-color: rgba(255, 212, 0, 0.45);
}

.tier-blue {
    border-color: rgba(29, 155, 240, 0.45);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 13px;
}

.admin-table small {
    display: block;
    color: var(--muted);
}

.table-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.table-form select {
    min-width: 145px;
}

.admin-grid-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-grid-form .span-2 {
    grid-column: span 2;
}

.checkbox-row {
    min-height: 44px;
    display: flex !important;
    grid-template-columns: none;
    align-items: center;
    gap: 10px !important;
}

.checkbox-row input {
    width: 18px;
    min-height: 18px;
}

.organization-admin-row,
.admin-post-row,
.trend-admin-row {
    min-height: 58px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
}

.admin-post-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.admin-post-row p {
    margin: 4px 0 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.trend-admin-row small,
.organization-admin-row small {
    display: block;
    color: var(--muted);
}

.trend-admin-list {
    margin-top: 18px;
}

.bottom-nav {
    display: none;
}

@media (max-width: 1110px) {
    .app-shell {
        width: min(100%, 875px);
        grid-template-columns: 88px minmax(0, 600px) minmax(250px, 1fr);
    }

    .sidebar-inner {
        align-items: center;
        padding-right: 12px;
    }

    .side-nav a {
        width: 52px;
        padding: 0;
        justify-content: center;
    }

    .side-nav a span,
    .sidebar-profile span,
    .sidebar-auth {
        display: none;
    }
}

@media (max-width: 920px) {
    .app-shell {
        width: min(100%, 688px);
        grid-template-columns: 88px minmax(0, 600px);
    }

    .rightbar {
        display: none;
    }
}

@media (max-width: 720px) {
    body {
        padding-bottom: 64px;
    }

    .app-shell {
        display: block;
        width: 100%;
    }

    .sidebar {
        display: none;
    }

    .main-column {
        border-right: 0;
    }

    .bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        height: 60px;
        border-top: 1px solid var(--border);
        background: rgba(0, 0, 0, 0.94);
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .bottom-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--muted);
    }

    .bottom-nav a.is-active {
        color: var(--text);
    }

    .landing {
        width: min(100% - 24px, 520px);
        padding-top: 22px;
    }

    .landing-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 26px 0 34px;
    }

    .landing-copy h1 {
        font-size: 42px;
    }

    .landing-copy p {
        font-size: 17px;
    }

    .landing-features {
        grid-template-columns: 1fr;
    }

    .logo-mark-large {
        font-size: 56px;
    }

    .post,
    .composer {
        grid-template-columns: 42px minmax(0, 1fr);
        padding-left: 12px;
        padding-right: 12px;
    }

    .avatar-md {
        width: 42px;
        height: 42px;
    }

    .composer textarea {
        font-size: 18px;
    }

    .profile-avatar-wrap,
    .avatar-xl {
        width: 104px;
        height: 104px;
    }

    .profile-avatar-wrap {
        margin-top: -52px;
    }

    .profile-actions {
        min-height: 42px;
        margin-top: -48px;
    }

    .tabs a {
        font-size: 14px;
    }

    .search-form,
    .admin-grid-form {
        grid-template-columns: 1fr;
    }

    .admin-stat-grid,
    .verification-tier-grid {
        grid-template-columns: 1fr;
    }

    .admin-grid-form .span-2 {
        grid-column: span 1;
    }
}

@media (max-width: 430px) {
    .topbar h1 {
        font-size: 18px;
    }

    .post-actions {
        max-width: none;
    }

    .button {
        padding-left: 14px;
        padding-right: 14px;
    }

    .profile-meta,
    .profile-stats,
    .landing-actions {
        gap: 9px;
    }

    .user-row,
    .organization-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .user-row .inline-form,
    .organization-row .verified-badge {
        grid-column: 2;
    }
}
