:root {
    --bg-1: #f4faff;
    --bg-2: #e5f2ff;
    --bg-3: #d7eaff;
    --paper: #fbfeff;
    --paper-soft: #f4f9ff;
    --line: #c9def1;
    --line-strong: #b4d2ec;
    --ink: #112237;
    --muted: #58728f;
    --brand: #3aa7ff;
    --brand-strong: #1a86de;
    --ok: #0f8a44;
    --danger: #cc2f21;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-1: 0 16px 42px rgba(24, 69, 116, 0.14);
    --shadow-2: 0 8px 22px rgba(24, 69, 116, 0.1);
}

html[data-theme="night"] {
    --bg-1: #0f1e2f;
    --bg-2: #11263d;
    --bg-3: #163553;
    --paper: #13283e;
    --paper-soft: #17324e;
    --line: #244a6d;
    --line-strong: #2f5e8d;
    --ink: #e6f2ff;
    --muted: #9fc0df;
    --brand: #63bcff;
    --brand-strong: #45a7f0;
    --shadow-1: 0 16px 42px rgba(1, 7, 14, 0.42);
    --shadow-2: 0 8px 22px rgba(1, 7, 14, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    color: var(--ink);
    background:
        radial-gradient(1100px 420px at -10% -15%, rgba(70, 171, 255, 0.2), transparent 70%),
        radial-gradient(950px 460px at 108% -5%, rgba(44, 145, 238, 0.17), transparent 68%),
        linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 54%, var(--bg-3) 100%);
    margin: 0;
    min-height: 100vh;
    transition: background 0.28s ease, color 0.22s ease;
}

body.page-auth {
    color: var(--ink);
}
.site-footer {
    width: min(930px, calc(100% - 24px));
    margin: 0 auto 28px;
    padding: 6px 12px 0;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

a {
    color: var(--ink);
    text-decoration: none;
}

a:visited {
    color: #486b8d;
}

.main-table {
    width: min(930px, calc(100% - 24px));
    margin: 18px auto;
    background: linear-gradient(180deg, rgba(251, 254, 255, 0.96), rgba(244, 249, 255, 0.98));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    overflow: hidden;
    transition: background 0.28s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.main-table-wide {
    width: min(1160px, calc(100% - 24px));
    max-width: none;
}

.header-row {
    background: linear-gradient(110deg, var(--brand-strong) 0%, var(--brand) 56%, #7ec9ff 100%);
    color: #fff;
    transition: background 0.26s ease;
}

.header-row td {
    padding: 9px 10px;
}

.brand-logo-cell {
    padding-right: 8px;
}

.brand-logo {
    width: 24px;
    height: 24px;
    display: block;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(14, 64, 109, 0.3);
}

.header-title {
    font-family: "Fraunces", Georgia, serif;
    font-size: 19px;
    letter-spacing: 0.2px;
    color: #fff;
    padding-right: 10px;
}

.header-title a,
.header-links a,
.user-status a {
    color: #fff;
}

.header-links {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.desktop-links {
    gap: 0;
}

.desktop-links a,
.desktop-status a {
    padding: 0 3px;
}

.header-sep {
    display: inline-block;
    margin: 0 8px;
    opacity: 0.68;
    font-weight: 600;
    transform: translateY(-0.5px);
}

.header-links a {
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.header-links a:hover,
.user-status a:hover,
.header-title a:hover {
    border-bottom-color: rgba(255, 255, 255, 0.95);
}

.user-status {
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    color: #fff;
    padding-right: 10px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-bottom: none !important;
    vertical-align: middle;
}

.theme-toggle-sun,
.theme-toggle-moon {
    font-size: 10px;
    opacity: 0.9;
}

.theme-toggle-track {
    width: 26px;
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.75);
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 1px;
}

.theme-toggle-knob {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(7, 24, 38, 0.4);
    transform: translateX(0);
    transition: transform 0.2s ease;
}

.header-shell {
    padding: 10px 12px !important;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.header-brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
}

.desktop-links,
.desktop-status {
    display: inline-flex;
    align-items: center;
}

.header-title a {
    white-space: nowrap;
}

.mobile-actions {
    display: none;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.mobile-icon-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    font-size: 15px;
    line-height: 1;
}

.icon-svg {
    width: 16px;
    height: 16px;
    display: block;
}

.mobile-nav-menu {
    display: none;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.38);
    padding-top: 8px;
}

.mobile-nav-menu.open {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.mobile-nav-link {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    position: relative;
}

.mobile-nav-icon {
    width: 16px;
    height: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 15px;
    height: 15px;
    border-radius: 999px;
    background: #f74040;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 4px;
    line-height: 1.2;
    text-align: center;
}

.content-table {
    padding: 18px 16px 10px;
}

.content-table > table {
    width: 100%;
}

.rank {
    width: 38px;
    text-align: right;
    font-weight: 800;
    font-size: 12px;
    color: var(--muted);
    padding: 2px 8px 0 0;
    vertical-align: top;
}

.vote-cell {
    text-align: center;
    width: 22px;
    padding: 3px 6px 0 0;
    vertical-align: top;
}

.vote-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    color: var(--brand-strong);
    background: #fff;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.vote-arrow:hover {
    transform: translateY(-1px);
    border-color: var(--brand);
    background: #edf7ff;
}

.vote-arrow.voted {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none !important;
}

.post-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.post-title a:hover {
    color: var(--brand-strong);
}

.subtext {
    font-size: 12px;
    color: var(--muted);
    padding: 2px 0 10px;
}

.subtext a {
    color: #486b8d;
    border-bottom: 1px dashed rgba(72, 107, 141, 0.35);
}

.subtext a:hover {
    border-bottom-color: #486b8d;
}

.post-hashtags,
.popular-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
}

.hashtag-chip {
    display: inline-block;
    border: 1px solid #c2def5;
    background: #edf7ff;
    color: #1f5f96;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    border-bottom: none !important;
}

.hashtag-chip:hover {
    background: #e1f1ff;
    border-color: #9fcaee;
}

.hashtag-chip.active {
    background: #d3ebff;
    border-color: #7cb8e7;
}

.report-link {
    color: var(--ink);
    text-decoration: underline;
}

.more-link {
    font-size: 13px;
    color: var(--brand-strong);
    background: #ecf6ff;
    border: 1px solid #bfddf6;
    border-radius: 999px;
    padding: 7px 14px;
    margin: 8px 0 0 42px;
    display: inline-block;
    font-weight: 700;
}

.more-link:hover {
    background: #e2f1ff;
}

.hero-strip {
    border: 1px solid var(--line);
    background: linear-gradient(120deg, rgba(248, 253, 255, 0.95), rgba(227, 242, 255, 0.96));
    border-radius: 14px;
    padding: 14px 16px;
    margin: 0 0 14px;
    box-shadow: var(--shadow-2);
}

.hero-eyebrow {
    color: var(--brand-strong);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.hero-strip h1 {
    margin: 4px 0 7px;
    font-size: 24px;
    line-height: 1.2;
    font-family: "Fraunces", Georgia, serif;
}

.hero-strip p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.hero-meta span {
    font-size: 11px;
    color: #376a96;
    border: 1px solid #b8d9f4;
    background: #f4faff;
    border-radius: 999px;
    padding: 4px 8px;
    font-weight: 700;
}

.footer-line {
    border-top: 1px solid var(--line-strong);
    margin-top: 14px;
    padding: 14px 12px 18px;
    text-align: center;
    font-size: 12px;
}

.search-box {
    margin-top: 2px;
}

.search-box input[type="text"] {
    font-size: 14px;
    padding: 8px 10px;
    width: min(320px, 72vw);
}

.empty-message {
    padding-left: 28px;
    font-size: 14px;
    color: var(--ink);
}

.post-section {
    padding: 14px 14px 8px;
}

.post-section .post-title {
    font-size: 25px;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

.post-section .subtext {
    font-size: 12px;
    margin-top: 6px;
}

.post-content {
    font-size: 15px;
    color: var(--ink);
    margin: 14px 0 20px;
    max-width: 760px;
    line-height: 1.62;
}

.post-image-preview-wrap {
    margin: -4px 0 12px;
}

.post-image-thumb {
    width: 140px;
    max-width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #bfd9f1;
    box-shadow: var(--shadow-2);
    cursor: zoom-in;
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
}

.image-modal[hidden] {
    display: none !important;
}

.image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 20, 32, 0.72);
}

.image-modal-dialog {
    position: relative;
    width: min(94vw, 1200px);
    max-height: 90vh;
    margin: 4vh auto 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--shadow-1);
    overflow: auto;
}

.image-modal-close {
    margin: 0 0 8px auto;
    display: inline-block;
}

.image-modal-loading {
    color: var(--muted);
    font-size: 13px;
    padding: 16px 10px;
}

.image-modal-img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 78vh;
    margin: 0 auto;
}

.comment-thread {
    margin: 10px 0;
    border: 1px solid #d7e9f8;
    background: #f8fcff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-2);
    transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.comment-thread td {
    padding: 8px 8px 8px 6px;
}

.comment-thread.depth-1 { margin-left: 34px; }
.comment-thread.depth-2 { margin-left: 68px; }
.comment-thread.depth-3 { margin-left: 102px; }
.comment-thread.depth-4 { margin-left: 136px; }
.comment-thread.depth-5 { margin-left: 170px; }

.comment-meta {
    font-size: 12px;
    color: var(--muted);
}

.comment-body {
    font-size: 14px;
    color: var(--ink);
    margin: 6px 0;
    max-width: 740px;
    line-height: 1.55;
}

.reply-link {
    font-size: 12px;
    color: var(--brand-strong);
    text-decoration: underline;
    cursor: pointer;
    display: inline-block;
    font-weight: 700;
}

textarea,
.form-table input[type="text"],
.form-table input[type="password"],
.form-table input[type="number"],
.form-table input[type="email"],
.form-table input[type="file"],
.search-box input[type="text"] {
    border: 1px solid #bfd9f1;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    outline: none;
    box-shadow: inset 0 1px 2px rgba(24, 69, 116, 0.08);
}

textarea:focus,
.form-table input[type="text"]:focus,
.form-table input[type="password"]:focus,
.form-table input[type="number"]:focus,
.form-table input[type="email"]:focus,
.search-box input[type="text"]:focus {
    border-color: #69b9ff;
    box-shadow: 0 0 0 3px rgba(58, 167, 255, 0.2);
}

textarea {
    width: min(680px, 100%);
    height: 120px;
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
    font-size: 14px;
    margin-top: 10px;
    display: block;
    padding: 10px 12px;
    line-height: 1.45;
}

button,
.btn-small {
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
    font-size: 12px;
    margin-top: 6px;
    border-radius: 999px;
    border: 1px solid #3f9de7;
    background: linear-gradient(180deg, #5cb6ff, #2e98ec);
    color: #fff;
    padding: 7px 13px;
    font-weight: 800;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

button:hover,
.btn-small:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

button:disabled,
.btn-small:disabled {
    border-color: #cfd6de;
    background: linear-gradient(180deg, #eef1f4, #d9dfe5);
    color: #7f8a96;
    cursor: not-allowed;
    transform: none;
    filter: none;
    box-shadow: none;
}

button:disabled:hover,
.btn-small:disabled:hover {
    transform: none;
    filter: none;
}

.form-section {
    padding: 16px 16px 20px;
}

.form-table td {
    font-size: 14px;
    color: var(--ink);
    padding: 6px;
}

.form-table input[type="text"],
.form-table textarea,
.form-table input[type="email"] {
    width: min(520px, 100%);
}

.form-table textarea {
    height: 130px;
}

.captcha-input {
    width: 130px;
    margin-top: 4px;
}

.captcha-image {
    width: 170px;
    height: 48px;
    border: 1px solid #bfd9f1;
    border-radius: var(--radius-sm);
    display: block;
    margin-bottom: 4px;
    background: #fff;
}

.error,
.success {
    font-size: 13px;
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.error {
    color: #84211a;
    background: #ffe8e5;
    border: 1px solid #f3bab3;
}

.success {
    color: #0a6a34;
    background: #e5f8ec;
    border: 1px solid #a9e4bf;
}

.login-required {
    font-size: 15px;
    color: var(--ink);
    padding: 20px;
}

.login-required a,
.auth-link a {
    text-decoration: underline;
}

.auth-link {
    font-size: 12px;
    color: var(--muted);
}

.auth-link a {
    color: #355a80;
}

.terms-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.terms-check input[type="checkbox"] {
    margin-top: 2px;
}

.rules-modal-link {
    margin-left: 4px;
    text-decoration: underline;
    font-weight: 700;
}

.rules-modal-dialog {
    width: min(94vw, 760px);
}

.rules-modal-content h2 {
    margin: 2px 0 8px;
    font-family: "Fraunces", Georgia, serif;
    font-size: 24px;
    line-height: 1.2;
}

.rules-modal-content p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
}

.rules-modal-content ol {
    margin: 0;
    padding-left: 18px;
}

.rules-modal-content li {
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 14px;
}

.search-label {
    color: var(--ink);
    font-weight: 700;
}

.profile-card {
    color: var(--ink);
    font-size: 14px;
    padding: 4px 0 18px 8px;
    max-width: 760px;
}

.profile-card h1 {
    font-size: 31px;
    font-family: "Fraunces", Georgia, serif;
    line-height: 1.15;
    margin: 0 0 10px;
}

.profile-card p {
    margin: 7px 0;
    line-height: 1.45;
}

.profile-avatar {
    width: 108px;
    height: 108px;
    object-fit: cover;
    border: 2px solid #b6d9f5;
    border-radius: 50%;
    display: block;
    transition: transform 0.2s ease, background 0.2s ease;
    box-shadow: var(--shadow-2);
}

.profile-edit {
    border-top: 1px solid var(--line-strong);
    margin-top: 12px;
    padding-top: 15px;
}

.popular-wrap {
    padding: 0 0 12px 8px;
}

.popular-filter-row {
    margin: 2px 0 14px;
    font-size: 13px;
    color: var(--ink);
}

.popular-filter-label {
    margin-right: 7px;
    font-weight: 800;
}

.popular-period-link {
    margin-right: 7px;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    font-weight: 700;
}

.popular-period-link.active {
    border-color: var(--brand);
    background: #eaf5ff;
    color: var(--brand-strong);
}

.popular-section {
    margin: 0 0 18px;
}

.popular-section h2 {
    margin: 0 0 7px;
    color: var(--ink);
    font-family: "Fraunces", Georgia, serif;
    font-size: 22px;
}

.popular-on-post {
    color: var(--muted);
    font-size: 12px;
}

.popular-comment-body {
    font-size: 13px;
    color: #1f344b;
    max-width: 680px;
    line-height: 1.45;
    padding-bottom: 10px;
}

.notifications-wrap {
    padding: 0 0 14px 8px;
    max-width: 760px;
}

.notifications-wrap h1 {
    color: var(--ink);
    font-size: 30px;
    font-family: "Fraunces", Georgia, serif;
    margin: 0 0 10px;
}

.notifications-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
}

.notifications-mark-form {
    margin: 0;
}

.notification-row td {
    padding-bottom: 10px;
    vertical-align: top;
}

.notification-row.unread .notification-message a {
    font-weight: 800;
}

.notification-dot-cell {
    width: 18px;
    text-align: center;
}

.notification-dot {
    color: var(--brand);
    font-size: 9px;
    line-height: 1;
}

.notification-message {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.4;
}

.admin-toast {
    display: none;
    position: fixed;
    top: 18px;
    right: 18px;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(23, 14, 6, 0.27);
    z-index: 11000;
    color: #fff;
    font-weight: 700;
    transform: translateY(-6px);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    background: linear-gradient(135deg, #2b6ca5, #3c95dc);
}

.admin-toast.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.admin-actions {
    display: inline-block;
    margin-left: 8px;
}

.admin-action-link {
    margin-left: 8px;
    color: #1268b3;
    text-decoration: underline;
    cursor: pointer;
}

.admin-action-link:hover {
    color: #0b4a80;
}

.pending-item {
    position: relative;
    padding-bottom: 28px;
}

.pending-item .admin-actions {
    position: absolute;
    left: 12px;
    bottom: 6px;
}

.admin-action-link.approve {
    color: #207341;
}

.admin-action-link.delete {
    color: #b8352a;
}

.animate-in {
    animation: fadeUp 0.45s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html[data-theme="night"] a:visited {
    color: #b5d8f5;
}

html[data-theme="night"] .hero-strip,
html[data-theme="night"] .comment-thread,
html[data-theme="night"] .main-table {
    background-image: none;
}

html[data-theme="night"] .theme-toggle-track {
    background: rgba(69, 134, 191, 0.35);
}

html[data-theme="night"] .theme-toggle-knob {
    transform: translateX(11px);
}

html[data-theme="night"] .mobile-icon-btn,
html[data-theme="night"] .mobile-nav-link {
    background: rgba(69, 134, 191, 0.35);
    border-color: rgba(179, 220, 255, 0.45);
}

html[data-theme="night"] .hero-strip {
    background: linear-gradient(120deg, rgba(20, 52, 81, 0.96), rgba(24, 62, 96, 0.95));
}

html[data-theme="night"] .hero-meta span {
    color: #d9ebfc;
    border-color: #3a6f9e;
    background: #21496e;
}

html[data-theme="night"] .subtext a,
html[data-theme="night"] .auth-link a {
    color: #a8c7e5;
}

html[data-theme="night"] .rules-modal-link {
    color: #a8c7e5;
}

html[data-theme="night"] .form-table input[type="text"],
html[data-theme="night"] .form-table input[type="password"],
html[data-theme="night"] .form-table input[type="number"],
html[data-theme="night"] .form-table input[type="email"],
html[data-theme="night"] .form-table input[type="file"],
html[data-theme="night"] textarea,
html[data-theme="night"] .search-box input[type="text"] {
    background: #10273d;
    color: #e5f1ff;
    border-color: #3a6590;
}

@media (max-width: 980px) {
    .main-table,
    .main-table-wide {
        width: calc(100% - 12px) !important;
        margin: 6px auto !important;
        border-radius: 14px;
    }

    .header-title {
        font-size: 17px;
        padding-right: 0;
    }

    .header-links,
    .user-status {
        font-size: 11px;
    }

    .desktop-links,
    .desktop-status {
        display: none !important;
    }

    .header-sep {
        margin: 0 6px;
    }

    .mobile-actions {
        display: inline-flex;
    }

    .header-shell {
        padding: 8px 8px !important;
    }

    .header-main {
        gap: 8px;
    }

    .content-table,
    .form-section,
    .post-section {
        padding: 12px !important;
    }

    .post-section .post-title,
    .profile-card h1,
    .notifications-wrap h1 {
        font-size: 24px !important;
    }

    .form-table input[type="text"],
    .form-table input[type="email"],
    .form-table textarea,
    textarea {
        width: 100% !important;
    }

    .popular-wrap,
    .notifications-wrap,
    .profile-card {
        padding-left: 2px !important;
    }

    .popular-period-link {
        display: inline-block;
        margin-bottom: 6px;
    }

    .popular-comment-body {
        max-width: 100%;
    }

    .notifications-toolbar {
        flex-wrap: wrap;
        gap: 6px;
    }

    .comment-thread[class*="depth-"] {
        margin-left: clamp(0px, 4vw, 20px) !important;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14px;
    }

    .header-row td {
        padding: 8px 7px;
    }

    .brand-logo {
        width: 22px;
        height: 22px;
    }

    .header-title {
        font-size: 16px;
    }

    .header-links {
        font-size: 10px;
        letter-spacing: 0.2px;
    }

    .rank {
        width: 30px;
        padding-right: 6px;
    }

    .post-title {
        font-size: 14px !important;
    }

    .subtext,
    .comment-meta {
        font-size: 11px !important;
    }

    .comment-body,
    .popular-comment-body,
    .notification-message {
        font-size: 13px;
    }

    .more-link {
        margin-left: 28px;
    }
}


    @media (prefers-reduced-motion: reduce) {
        * {
            animation: none !important;
            transition: none !important;
            scroll-behavior: auto !important;
        }
    }
