:root {
    color-scheme: light;
    --bg: #eceef1;
    --surface: #ffffff;
    --surface-2: #f3f4f6;
    --text: #15181c;
    --muted: #596270;
    --faint: #8b93a0;
    --border: #dde1e7;
    --border-strong: #c3c9d2;
    --accent: #d9342b;
    --accent-hover: #bd2a22;
    --accent-soft: #fdecea;
    --on-accent: #ffffff;
    --success: #1b7f46;
    --success-soft: #e4f5ea;
    --danger: #c0262d;
    --danger-soft: #fdeaea;
    --topbar: rgba(255, 255, 255, 0.86);
    --scrim: rgba(15, 18, 22, 0.55);
    --shadow: 0 1px 2px rgba(15, 18, 22, 0.05), 0 8px 24px rgba(15, 18, 22, 0.06);
    --font: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0d0f11;
    --surface: #15181c;
    --surface-2: #1c2025;
    --text: #eceef1;
    --muted: #a1a9b4;
    --faint: #6f7783;
    --border: #262b32;
    --border-strong: #38404a;
    --accent: #ff6a5e;
    --accent-hover: #ff8379;
    --accent-soft: #2b1816;
    --on-accent: #1b0c0a;
    --success: #4cc27e;
    --success-soft: #13261b;
    --danger: #ff7a80;
    --danger-soft: #2c1517;
    --topbar: rgba(13, 15, 17, 0.86);
    --scrim: rgba(0, 0, 0, 0.7);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 88px;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

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

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

button {
    cursor: pointer;
    background: none;
    border: 0;
}

button:disabled {
    cursor: progress;
    opacity: 0.6;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
}

.icon {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: fill 0.15s ease, transform 0.15s ease;
}

.logo-bg {
    fill: var(--accent);
}

.logo-edge,
.logo-dash {
    fill: none;
    stroke: #ffffff;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.logo-edge {
    stroke-width: 3;
}

.logo-dash {
    stroke-width: 2.2;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn .icon {
    width: 18px;
    height: 18px;
}

.btn-sm {
    min-height: 36px;
    padding: 0 16px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--accent);
    color: var(--on-accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-ghost {
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--surface-2);
}

.btn-danger {
    background: var(--danger-soft);
    border-color: transparent;
    color: var(--danger);
}

.btn-danger:hover {
    border-color: var(--danger);
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--muted);
    transition: background 0.15s ease, color 0.15s ease;
}

.icon-button:hover {
    background: var(--surface-2);
    color: var(--text);
}

.icon-button.subtle {
    width: 34px;
    height: 34px;
}

.icon-button.subtle:hover {
    background: var(--danger-soft);
    color: var(--danger);
}

.icon-button.overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--scrim);
    color: #ffffff;
}

.icon-button.overlay:hover {
    background: var(--scrim);
    color: #ffffff;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--topbar);
    border-bottom: 1px solid var(--border);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1080px;
    height: 64px;
    margin: 0 auto;
    padding: 0 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.brand-name b {
    font-weight: 800;
}

.search {
    position: relative;
    flex: 1;
    max-width: 420px;
}

.search input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 46px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--surface-2);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.search input::placeholder {
    color: var(--faint);
}

.search input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
}

.search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.search-submit {
    position: absolute;
    left: 4px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    border-radius: 50%;
    color: var(--muted);
}

.search-submit .icon {
    width: 19px;
    height: 19px;
}

.search:focus-within .search-submit {
    color: var(--accent);
}

.topnav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
    background: var(--surface-2);
    color: var(--text);
}

.nav-link.active {
    color: var(--text);
}

.theme-sun {
    display: none;
}

:root[data-theme="dark"] .theme-sun {
    display: block;
}

:root[data-theme="dark"] .theme-moon {
    display: none;
}

.user-menu {
    position: relative;
}

.user-menu summary {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px 6px 3px 3px;
    border-radius: 999px;
    color: var(--muted);
    cursor: pointer;
    list-style: none;
}

.user-menu summary::-webkit-details-marker {
    display: none;
}

.user-menu summary:hover,
.user-menu[open] summary {
    background: var(--surface-2);
}

.menu-chevron {
    width: 16px;
    height: 16px;
}

.menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 50;
    width: 248px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.menu-who {
    display: flex;
    flex-direction: column;
    padding: 10px 12px 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

.menu-who small {
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu a,
.menu button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 500;
    text-align: left;
}

.menu a:hover,
.menu button:hover {
    background: var(--surface-2);
}

.menu .icon {
    color: var(--muted);
}

.container {
    flex: 1;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 16px 48px;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.feed {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 88px;
    display: grid;
    gap: 16px;
}

.page-narrow {
    max-width: 680px;
    margin: 0 auto;
}

.page-wide {
    max-width: 980px;
    margin: 0 auto;
}

.page-head {
    margin-bottom: 20px;
}

.page-head h1 {
    font-size: 28px;
    font-weight: 800;
}

.page-head p {
    margin-top: 6px;
    color: var(--muted);
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 24px;
    align-items: stretch;
    overflow: hidden;
    padding: 32px 0 0 32px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
}

.intro h1 {
    max-width: 14em;
    font-size: clamp(28px, 4.4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.intro p {
    max-width: 30em;
    margin-top: 14px;
    color: var(--muted);
    font-size: 16px;
}

.intro-copy {
    padding-bottom: 32px;
}

.intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.road {
    width: 100%;
    height: 100%;
    min-height: 240px;
}

.road-edge,
.road-dash {
    fill: none;
    stroke-linecap: round;
}

.road-edge {
    stroke: var(--border-strong);
    stroke-width: 3;
}

.road-dash {
    stroke: var(--accent);
    stroke-width: 4;
    stroke-dasharray: 18 14;
}

.composer {
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.composer-row {
    display: flex;
    gap: 12px;
}

.composer textarea {
    flex: 1;
    min-height: 48px;
    padding: 10px 0;
    border: 0;
    background: transparent;
    resize: none;
    font-size: 16px;
}

.composer textarea:focus {
    outline: none;
}

.composer textarea::placeholder {
    color: var(--faint);
}

.composer-preview {
    position: relative;
    margin-top: 6px;
}

.composer-preview[hidden] {
    display: none;
}

.composer-preview img {
    width: 100%;
    max-height: 320px;
    border-radius: 14px;
    object-fit: cover;
}

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

.composer-foot .btn-primary {
    margin-left: auto;
}

.counter {
    color: var(--muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.counter[hidden] {
    display: none;
}

.feed-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    padding: 8px 2px 10px;
    border-bottom: 2px dashed var(--border);
}

.feed-head h2 {
    font-size: 20px;
    font-weight: 800;
}

.feed-head p {
    color: var(--muted);
    font-size: 14px;
}

.post {
    padding: 16px 18px 8px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

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

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.post-author-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.post-author-text strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-author:hover strong {
    color: var(--accent);
}

.post-author-text time {
    color: var(--muted);
    font-size: 13px;
}

.post-text {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.post-image {
    width: 100%;
    max-height: 600px;
    margin-top: 12px;
    border-radius: 14px;
    background: var(--surface-2);
    object-fit: cover;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 8px -8px 0;
}

.action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    transition: background 0.15s ease, color 0.15s ease;
}

.action:hover {
    background: var(--surface-2);
    color: var(--text);
}

.action:active .icon {
    transform: scale(0.82);
}

.action.liked {
    color: var(--accent);
}

.action.liked .icon {
    fill: currentColor;
}

.empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 44px 24px;
    border: 1px dashed var(--border-strong);
    border-radius: 20px;
    text-align: center;
}

.empty > .icon {
    width: 34px;
    height: 34px;
    color: var(--faint);
}

.empty h3 {
    font-size: 18px;
}

.empty p {
    max-width: 28em;
    margin-bottom: 8px;
    color: var(--muted);
}

.side-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.side-card h3 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
}

.side-card > p {
    margin-bottom: 16px;
    color: var(--muted);
}

.plain-list {
    display: grid;
    gap: 10px;
    padding-left: 18px;
    color: var(--muted);
}

.plain-list li::marker {
    color: var(--accent);
}

.profile-card {
    padding: 0;
    overflow: hidden;
}

.mini-banner {
    width: 100%;
    height: 84px;
    object-fit: cover;
}

.mini-banner-empty,
.banner-empty {
    background: linear-gradient(135deg, var(--surface-2), var(--border));
}

.profile-card-body {
    padding: 0 20px 20px;
}

.profile-card-avatar {
    margin-top: -32px;
}

.profile-card-avatar .avatar {
    border: 3px solid var(--surface);
}

.profile-card-name {
    display: inline-block;
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

.profile-card-name:hover {
    color: var(--accent);
}

.profile-card-bio {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
    text-align: left;
}

.stat-row dt {
    color: var(--muted);
    font-size: 12px;
}

.stat-row dd {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.stat-row-wide {
    margin: 0 0 8px;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.avatar {
    flex: none;
    border-radius: 50%;
    background: var(--surface-2);
    object-fit: cover;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.avatar-md {
    width: 44px;
    height: 44px;
    font-size: 17px;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 26px;
}

.avatar-xl {
    width: 96px;
    height: 96px;
    font-size: 38px;
}

.avatar-fallback {
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    font-family: var(--font-display);
    font-weight: 700;
}

.hue-0 {
    background: #d9342b;
}

.hue-1 {
    background: #2b6fd9;
}

.hue-2 {
    background: #1f8a62;
}

.hue-3 {
    background: #8a47d1;
}

.hue-4 {
    background: #c97a12;
}

.section-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 28px 0 12px;
    font-size: 18px;
    font-weight: 800;
}

.section-title span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.page-narrow > .post,
.page-narrow > .section-title ~ .post {
    margin-bottom: 16px;
}

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

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

.person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    transition: border-color 0.15s ease;
}

.person:hover {
    border-color: var(--accent);
}

.person-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.person-text strong,
.person-text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.person-text small {
    color: var(--muted);
}

.person > .icon {
    color: var(--faint);
}















.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    vertical-align: middle;
}

.auth {
    display: grid;
    place-items: start center;
    padding: 24px 0;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.auth-brand {
    margin-bottom: 18px;
}

.auth-card h1 {
    font-size: 26px;
    font-weight: 800;
}

.auth-lead {
    margin: 6px 0 22px;
    color: var(--muted);
}

.auth-switch {
    margin-top: 20px;
    color: var(--muted);
    text-align: center;
}

.auth-switch a {
    color: var(--accent);
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.form {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 6px;
}

.field label,
.form legend {
    font-size: 14px;
    font-weight: 600;
}

.field small {
    color: var(--muted);
    font-size: 13px;
}

.field input,
.field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--surface);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
    resize: vertical;
    line-height: 1.5;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.panel {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.form fieldset {
    display: grid;
    gap: 12px;
    padding-bottom: 20px;
    border: 0;
    border-bottom: 1px solid var(--border);
}

.upload-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.banner-preview {
    width: 100%;
    max-height: 160px;
    border-radius: 14px;
    object-fit: cover;
}

.form fieldset .btn {
    justify-self: start;
}

.form-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

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

.table th,
.table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.table th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-user span {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.table-user small {
    color: var(--muted);
}

.table-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.status-active {
    background: var(--success-soft);
    color: var(--success);
}

.status-admin {
    background: var(--accent-soft);
    color: var(--accent);
}

.status-banned {
    background: var(--danger-soft);
    color: var(--danger);
}

.flashes {
    display: grid;
    gap: 10px;
    max-width: 680px;
    margin: 0 auto 18px;
}

.flash {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    font-weight: 500;
}

.flash.success {
    border-color: transparent;
    background: var(--success-soft);
    color: var(--success);
}

.flash.error {
    border-color: transparent;
    background: var(--danger-soft);
    color: var(--danger);
}

.error-page {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 72px 16px;
    text-align: center;
}

.error-code {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}

.error-page h1 {
    font-size: 26px;
}

.error-page p:not(.error-code) {
    max-width: 28em;
    margin-bottom: 10px;
    color: var(--muted);
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 16px 28px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    place-items: center;
    padding: 16px;
    background: var(--scrim);
}

.modal.open {
    display: grid;
}

.modal-dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 560px;
    max-height: min(680px, 88vh);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
    animation: dialog-in 0.18s ease-out;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 12px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-head h2 {
    font-size: 17px;
    font-weight: 700;
}

.modal-list {
    flex: 1;
    display: grid;
    align-content: start;
    gap: 16px;
    overflow-y: auto;
    padding: 18px 20px;
}

.modal-empty {
    padding: 28px 0;
    color: var(--muted);
    text-align: center;
}

.comment {
    display: flex;
    gap: 12px;
}

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

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
}

.comment-meta time {
    color: var(--muted);
    font-size: 13px;
}

.comment-text {
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.modal-error {
    margin: 0 16px 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 14px;
}

.modal-error[hidden] {
    display: none;
}

.modal-form,
.modal-login {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

.modal-login {
    justify-content: space-between;
    color: var(--muted);
}

.modal-form input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--surface-2);
}

.modal-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
}

.bell {
    position: relative;
}

.bell-badge {
    position: absolute;
    top: 3px;
    right: 1px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.tab {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.tab:hover {
    background: var(--surface-2);
    color: var(--text);
}

.tab.active {
    border-color: transparent;
    background: var(--text);
    color: var(--bg);
}

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

.role-form select {
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--surface);
}

.nowrap {
    white-space: nowrap;
}

.log-details {
    display: block;
    color: var(--muted);
}

.notice {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.notice-new {
    border-color: var(--accent);
}

.notice-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
}

.notice-head time {
    color: var(--muted);
    font-size: 13px;
}

.notice p {
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.notice form {
    justify-self: start;
}

.comment-delete {
    color: var(--faint);
    font-size: 13px;
}

.comment-delete:hover {
    color: var(--danger);
    text-decoration: underline;
}

@keyframes dialog-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 920px) {
    .layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar {
        display: none;
    }

    .feed {
        max-width: 680px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 720px) {
    .topbar-inner {
        gap: 10px;
    }

    .nav-link {
        display: none;
    }

    .brand-name {
        display: none;
    }

    .search {
        max-width: none;
    }

    .intro {
        grid-template-columns: minmax(0, 1fr);
        padding: 24px;
    }

    .intro-copy {
        padding-bottom: 0;
    }

    .road {
        display: none;
    }

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

    

    .modal {
        place-items: end center;
        padding: 0;
    }

    .modal-dialog {
        max-width: none;
        max-height: 90vh;
        border-radius: 22px 22px 0 0;
    }
}

@media (max-width: 480px) {
    .topnav .btn-ghost {
        display: none;
    }

    .container {
        padding-top: 18px;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .post,
    .composer {
        padding-left: 14px;
        padding-right: 14px;
    }

    
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}



.profile-avatar {
    margin-top: -48px;
}





@media (max-width: 640px) {
    

    .profile-avatar {
        align-self: flex-start;
    }

    

    

    .profile-action .btn {
        width: 100%;
    }
}


.profile .banner {
    display: block;
    width: 100%;
    height: 190px;
    border-radius: 20px;
    object-fit: cover;
}
.profile-head {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
    margin: 0 0 20px;
    padding: 0 20px;
}
.profile-avatar {
    position: relative;
    z-index: 1;
    margin-top: -44px;
}
.profile-avatar .avatar { border: 4px solid var(--bg); }
.profile-meta {
    min-width: 0;
    padding-top: 12px;
    overflow-wrap: anywhere;
}
.profile-meta h1 {
    font-size: 26px;
    font-weight: 800;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.profile-meta p {
    margin-top: 6px;
    color: var(--muted);
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
}
.profile-action { padding-top: 12px; }
.profile-action form { margin: 0; }

@media (max-width: 640px) {
    .profile-head {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 0 12px;
    }
    .profile-avatar {
        margin-top: -44px;
        margin-bottom: 4px;
    }
    .profile-meta { padding-top: 8px; }
    .profile-action { padding-top: 14px; }
    .profile-action .btn { width: 100%; }
}

