.box {
    border-style: solid;
    border-width: 1px 1px 1px 4px;
    padding: 10px;
    background: var(--bg-light);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-container {
    display: flex;
    width: 100%;
    max-width: var(--feed-max);
    gap: 15px;
    padding: 15px;
    align-items: flex-start;
}

.sidebar {
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    flex-shrink: 0;
    gap: 15px;
    position: sticky;
    top: 15px;
}

.sidebar-main {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.site-brand {
    font-size: 20px;
    font-weight: bold;
    color: var(--text);
    text-decoration: none;
    padding-left: 2px;
}

.site-brand:hover {
    color: var(--link);
}

.small {
    font-size: 15px;
    font-weight: normal;
    padding: 2px 5px 2px 5px;
    margin-left: 5px;
    border-color: rgb(204, 175, 234);
}

.feed-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.guest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.nav-box {
    display: flex;
    flex-direction: column;
    border-color: var(--accent-blue);
    gap: 2px;
    padding: 5px;
}

.nav-link {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 8px 10px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.nav-link:hover {
    background: var(--bg-hover);
}

.mini-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    border-color: var(--user-profile-color, var(--accent-peach));
    text-decoration: none;
    color: var(--text);
}

.mini-profile:hover {
    background: var(--bg-hover-strong);
}

.mini-profile > img {
    height: var(--avatar-md);
    width: var(--avatar-md);
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.mini-profile-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mini-profile-name {
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
    line-height: 1.3;
    min-width: 0;
}

.mini-profile-username {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge {
    display: inline-block;
    height: 14px;
    width: 14px;
    flex-shrink: 0;
    object-fit: contain;
    vertical-align: -2px;
}

.compose-box {
    border-color: var(--accent-purple);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compose-textarea {
    background: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 8px;
    resize: vertical;
    min-height: 60px;
    width: 100%;
}

.compose-textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.compose-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compose-footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.compose-media-wrap {
    position: relative;
    display: inline-flex;
}

.compose-media-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-dim);
    cursor: pointer;
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.compose-media-btn:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.compose-media-btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.compose-media-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.compose-media-dropdown {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    max-width: 280px;
    max-height: 180px;
    overflow-y: auto;
    background: var(--menu-bg);
    border: 1px solid var(--border);
    z-index: 10;
}

.compose-media-dropdown.open {
    display: block;
}

.compose-media-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    font-size: 12px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}

.compose-media-row:last-child {
    border-bottom: none;
}

.compose-media-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compose-media-remove {
    background: none;
    color: var(--text-muted);
    border: none;
    width: 18px;
    height: 18px;
    line-height: 1;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.compose-media-remove:hover {
    color: var(--danger);
}

.char-count {
    font-size: 12px;
    color: var(--text-muted);
}

.char-count.warn {
    color: var(--warn);
}

.char-count.over {
    color: var(--danger);
}

.compose-error {
    font-size: 12px;
    color: var(--danger);
    display: none;
}

.compose-error.visible {
    display: block;
}

.btn {
    background: var(--bg);
    padding: 6px 14px;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--accent-blue);
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
}

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled:hover {
    background: var(--bg);
}

.btn.btn-small {
    padding: 4px 10px;
    font-size: 12px;
}

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

.btn.btn-danger:hover {
    background: var(--danger-bg);
}

.btn.btn-active {
    background: var(--accent-blue);
    color: rgb(30, 30, 30);
}

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

.btn.btn-active:disabled:hover {
    background: var(--accent-blue);
}

.edit-profile-btn {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--accent-peach);
    padding: 6px 16px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.edit-profile-btn:hover {
    background: rgba(255, 200, 186, 0.12);
}

.muted-note {
    border-color: var(--warn);
    font-size: 13px;
    color: var(--warn-text);
}

.tabs {
    display: flex;
    width: 100%;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    color: var(--text-muted);
    text-decoration: none;
    background: var(--bg-light);
    border: 1px solid var(--accent-blue);
    border-left-width: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.tab + .tab {
    border-left-width: 1px;
}

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

.tab.active {
    color: var(--text);
    background: var(--accent-blue-bg);
}

.post {
    display: flex;
    gap: 10px;
    border-color: var(--user-post-color, var(--accent-blue));
    text-decoration: none;
    color: var(--text);
    position: relative;
    cursor: pointer;
}

.post-avatar {
    flex-shrink: 0;
    display: block;
}

.post-avatar img {
    height: var(--avatar-sm);
    width: var(--avatar-sm);
    object-fit: cover;
    display: block;
}

.post-avatar:hover img {
    opacity: 0.9;
}

.post-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.post-status-icons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
}

.post-status-icons:empty {
    display: none;
}

.post-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.post-status-icon img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}



.post-header {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
    line-height: 1.3;
    padding-right: 40px;
}

.post-name {
    font-weight: bold;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1.3;
    text-decoration: none;
}

.post-name:hover {
    text-decoration: underline;
}

.post-username {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
}

.post-username:hover {
    text-decoration: underline;
}

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

.post-content {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    line-height: 1.4;
    color: inherit;
}

.post-content code,
.list-card-bio code,
.profile-bio code {
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 1px 6px;
    font-family: NSimSun, "MS Gothic",monospace;
    font-size: 0.9em;
}

.post-reply-context {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    margin-top: -2px;
}

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

.post-reply-context-name {
    color: var(--text-dim);
    font-weight: bold;
}

.post-reply-context-username {
    color: var(--text-muted);
}

.mention {
    color: var(--link);
    text-decoration: none;
}

.mention:hover {
    text-decoration: underline;
}

.mention-chip {
    display: inline-flex;
    align-items: center;
    border-style: solid;
    border-width: 1px;
    border-left-width: 3px;
    border-color: var(--user-profile-color, var(--accent-blue));
    padding: 1px 6px;
    line-height: 1.5;
    font-size: 0.85em;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
}

.mention-chip:hover {
    background: var(--bg-hover);
    text-decoration: none;
}

.media-grid {
    display: grid;
    gap: 3px;
    margin-top: 4px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: fit-content;
    max-width: 100%;
}

.media-grid-2,
.media-grid-3,
.media-grid-4 {
    width: 100%;
}

.media-grid-1 {
    grid-template-columns: 1fr;
    justify-content: start;
}

.media-grid-1 .media-item {
    max-height: 520px;
    max-width: 100%;
    width: fit-content;
    background: rgb(20, 19, 23);
}

.media-grid-1 .media-item img,
.media-grid-1 .media-item video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.media-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.media-grid-2 .media-item {
    aspect-ratio: 1 / 1;
}

.media-grid-3 {
    grid-template-columns: 1fr 1fr;
}

.media-grid-3 .media-item:nth-child(1) {
    grid-column: 1 / 3;
    aspect-ratio: 16 / 9;
}

.media-grid-3 .media-item:nth-child(2),
.media-grid-3 .media-item:nth-child(3) {
    aspect-ratio: 1 / 1;
}

.media-grid-4 {
    grid-template-columns: 1fr 1fr;
}

.media-grid-4 .media-item {
    aspect-ratio: 1 / 1;
}

.media-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: rgb(30, 28, 34);
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-grid-1 .media-item img,
.media-grid-1 .media-item video {
    display: block;
}

.media-grid-2 .media-item img,
.media-grid-2 .media-item video,
.media-grid-3 .media-item img,
.media-grid-3 .media-item video,
.media-grid-4 .media-item img,
.media-grid-4 .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-item .video-play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.media-item .video-play-badge::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.6));
}

.media-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(10, 9, 13, 0.85);
    color: var(--text-dim);
    font-size: 11px;
    padding: 2px 6px;
    font-weight: bold;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: inherit;
}

.media-item.audio-item {
    min-height: 196px;
    min-width: 196px;
    width: 196px;
    height: 196px;
    background: rgb(25, 23, 29);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.media-item.audio-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.lightbox.open {
    display: flex;
    opacity: 1;
}

.lightbox-media-wrap {
    max-width: 90vw;
    max-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-media-wrap img,
.lightbox-media-wrap video {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-counter {
    color: var(--text-dim);
    font-size: 13px;
    margin-top: 10px;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text);
    font-size: 18px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text);
    font-size: 20px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.18);
}

.lightbox-arrow.prev {
    left: 20px;
}

.lightbox-arrow.next {
    right: 20px;
}

.lightbox-arrow:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.post-actions {
    display: flex;
    gap: 18px;
    margin-top: 4px;
    align-items: center;
    justify-content: space-between;
}

.post-action {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    padding: 2px 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-action:hover {
    color: var(--text);
}

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

.action-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.like-count,
.reply-count {
    font-size: 13px;
}

.like-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transition: opacity 0.1s ease;
}

.like-btn:disabled:hover {
    opacity: 0.7;
}

.like-btn.liked:disabled:hover {
    opacity: 0.7;
}

.post-menu-wrap {
    position: relative;
    margin-left: auto;
}

.post-menu-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
    margin-top: 2px;
    line-height: 1;
}

.post-menu-btn:hover {
    color: var(--text);
}

.post-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 22px;
    background: var(--menu-bg);
    border-style: solid;
    border-width: 1px 1px 1px 4px;
    border-color: var(--accent-blue);
    min-width: 130px;
    z-index: 5;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.post-menu.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.post-menu button,
.post-menu form button {
    background: none;
    border: none;
    color: var(--text);
    text-align: left;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 13px;
    width: 100%;
}

.post-menu button:hover {
    background: var(--bg-hover);
}

.post-menu form {
    margin: 0;
}

.feed-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 30px 10px;
}

.reply-box {
    border-color: var(--accent-mint);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reply-box-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.reply-avatar {
    height: 28px;
    width: 28px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.reply-box-header span {
    font-size: 13px;
    color: var(--text-muted);
}

.replies {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.locked-note {
    border-color: var(--warn);
    font-size: 13px;
    text-align: center;
    color: var(--warn-text);
}

.profile-banner {
    width: 100%;
    height: var(--banner-height);
    background: rgb(70, 65, 80);
    border-style: solid;
    border-width: 1px 1px 1px 4px;
    border-color: var(--user-profile-color, var(--accent-pink));
    background-size: cover;
    background-position: center;
}

.profile-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-color: var(--user-profile-color, var(--accent-pink));
    border-width: 0 1px 1px 4px;
}

.profile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    margin-top: -40px;
}

.profile-avatar {
    position: relative;
    z-index: 1;
}

.profile-avatar img {
    height: var(--avatar-lg);
    width: var(--avatar-lg);
    border: 3px solid var(--bg);
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.profile-header-actions-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.follow-btn {
    background: var(--accent-blue);
    color: rgb(30, 30, 30);
    border: 1px solid var(--accent-blue);
    padding: 6px 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    min-width: 96px;
}

.follow-btn:hover {
    background: rgb(133, 177, 235);
    border-color: rgb(133, 177, 235);
}

.follow-btn .follow-btn-hover-label {
    display: none;
}

.follow-btn.following .follow-btn-label {
    display: inline;
}

.follow-btn.following:hover .follow-btn-label {
    display: none;
}

.follow-btn.following:hover .follow-btn-hover-label {
    display: inline;
}

.follow-btn.following {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.follow-btn.following:hover {
    background: var(--danger-bg);
    border-color: var(--danger);
    color: var(--danger);
}

.follow-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 19px;
    font-weight: bold;
    line-height: 1.3;
}

.profile-username {
    color: var(--text-muted);
}

.profile-pronouns {
    color: var(--text-muted);
    font-size: 13px;
}

.profile-bio {
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.profile-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.profile-stats a {
    color: var(--text-dim);
    text-decoration: none;
}

.profile-stats a:hover {
    text-decoration: underline;
}

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

.admin-box {
    border-color: var(--warn);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-box-title {
    font-weight: bold;
    color: var(--warn);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    font-size: 13px;
}

.admin-info-grid dt {
    color: var(--text-muted);
}

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

.form-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-field label {
    font-size: 13px;
    color: var(--text-dim);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field textarea,
.lightbox input[type="text"] {
    background: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 8px;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-field input[type="file"] {
    color: var(--text-dim);
    font-size: 13px;
}

.form-error {
    border-color: rgb(253, 146, 146);
    font-size: 14px;
}

.form-success {
    border-color: var(--success);
    font-size: 14px;
}

.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 20px;
    padding: 20px;
}

.auth-box {
    border-color: var(--accent-purple);
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 340px;
}

.auth-title {
    font-size: 20px;
    font-weight: bold;
}

.auth-switch {
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
}

.landing {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.landing-box {
    border-color: var(--accent-purple);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    max-width: 420px;
    width: 100%;
}

.landing-title {
    font-size: 32px;
    font-weight: bold;
}

.landing-tagline {
    color: var(--text-dim);
    line-height: 1.5;
}

.landing-actions {
    display: flex;
    gap: 12px;
}

.title {
    font-size: 18px;
    font-weight: bold;
}

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 10px;
    text-align: center;
}

.error-page .code {
    font-size: 48px;
    font-weight: bold;
    color: rgb(253, 146, 146);
}

.list-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-color: var(--accent-blue);
    width: 100%;
    max-width: var(--feed-max);
}

a.list-header {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.list-back {
    text-decoration: none;
    color: var(--text);
    font-size: 20px;
    line-height: 1;
    padding: 4px 8px;
}

.list-back:hover {
    background: var(--bg-hover);
}

.list-header-titles {
    display: flex;
    flex-direction: column;
}

.list-header-title {
    font-weight: bold;
    font-size: 16px;
}

.list-header-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.list-page {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: var(--feed-max);
}

.list-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-color: var(--user-profile-color, var(--accent-peach));
    color: var(--text);
}

.list-card-avatar {
    flex-shrink: 0;
    text-decoration: none;
}

.list-card-avatar img {
    height: var(--avatar-md);
    width: var(--avatar-md);
    object-fit: cover;
    display: block;
}

.list-card-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.list-card-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.list-card-name-link {
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.list-card-name {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 3px;
    line-height: 1.3;
}

.list-card-username {
    font-size: 12px;
    color: var(--text-muted);
}

.list-card-bio {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.list-follow-btn {
    padding: 5px 12px;
    font-size: 13px;
    min-width: 84px;
    flex-shrink: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.pagination-label {
    color: var(--text-muted);
    font-size: 13px;
}

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

.thread-ancestor {
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0.75;
}

.thread-ancestor .post {
    padding: 8px 10px;
}

.thread-main-post {
    display: flex;
    flex-direction: column;
}

.thread-context-label {
    font-size: 13px;
    color: var(--text-muted);
}

.thread-context-label a {
    color: var(--text-muted);
    text-decoration: none;
}

.thread-context-label a:hover {
    text-decoration: underline;
}

.thread-replies-label {
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-weight: bold;
}

.thread-replies-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-thread-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-thread-container > .compose-box {
    margin: 10px 0;
}

.feed-item {
    margin-bottom: 15px;
}

.feed-item .post {
    border-color: var(--user-post-color, var(--accent-blue));
}

.post[data-depth="0"] {
    border-left-width: 4px;
}

.post[data-depth="1"] {
    border-left-width: 3px;
    margin-left: 20px;
}

.post[data-depth="2"] {
    border-left-width: 2px;
    margin-left: 40px;
}

.post[data-depth="3"] {
    border-left-width: 2px;
    margin-left: 60px;
}

.post[data-depth="4"],
.post[data-depth="5"],
.post[data-depth="6"] {
    border-left-width: 2px;
    margin-left: 60px;
}

.actions-right {
    display: flex;
    gap: 5px;
}

.bookmarks-indicator {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-color: var(--accent-purple);
}

.success {
    color: var(--success);
    font-size: 15px !important;
    font-weight: normal !important;
}

.error {
    color: var(--like);
    font-size: 15px !important;
    font-weight: normal !important;
}


@media screen and (max-width: 640px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-wrap: wrap;
        position: static;
    }

    .site-brand {
        text-align: center;
        font-size: 20px;
    }

    .nav-box {
	    display: flex;
	    flex-direction: row;
	    border-color: var(--accent-blue);
	    padding: 5px;
	    white-space: nowrap;
	}
	    
	    .nav-link {
	    display: block;
	    color: var(--text);
	    text-decoration: none;
	    padding: 8px 7px;
	    flex: 1;
	    text-align: center;
	    background: none;
	    border: none;
	    cursor: pointer;
	    font-size: 14px;
	}
	

    .mini-profile {
        flex: 1;
        min-width: 140px;
    }

    .feed-column {
        width: 100%;
    }

    .actions-left {
        display: flex;
        gap: 13px;
    }

    .like-count, .reply-count {
        font-size: 16px;
    }

    .post[data-depth="1"] {
        margin-left: 10px;
    }

    .post[data-depth="2"] {
        margin-left: 20px;
    }

    .post[data-depth="3"],
    .post[data-depth="4"],
    .post[data-depth="5"],
    .post[data-depth="6"] {
        margin-left: 28px;
    }
}

.landingPage, .authPage {
    background-image: url('/img/landing.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.landing-box, .auth-box, .tos-box {
    background-color: var(--bg);
}

.tos {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tos-box {
    border-color: var(--accent-purple);
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 18px;
    max-width: 420px;
    width: 100%;
}

.tosPage hr {
    border: 1px solid var(--accent-purple);
    width: 100%;
}

.tosPage p {
    margin: 0;
    padding: 0;
}

.tos-contents {
    text-align: left;
}