:root {
    --bg: #f5f7fb;
    --bg-alt: #eef2f7;
    --line: #e8edf5;
    --line-dark: #d4dbe8;
    --text: #20252d;
    --muted: #66768a;
    --panel: #ffffff;
    --panel-soft: #f8fbff;
    --head: #f1f5fb;
    --brand: #26364f;
    --brand-soft: #edf3ff;
    --danger: #b42318;
    --danger-soft: #fff1f0;
    --ok: #1c8c5d;
    --warning: #d6a227;
    --orange: #dd7a1c;
    --blue: #3b82f6;
    --blue-soft: #eff6ff;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    --link: #174b8f;
}

html.dark {
    --bg: #0d1117;
    --bg-alt: #161b22;
    --line: #263244;
    --line-dark: #334155;
    --text: #e6edf3;
    --muted: #8b97a8;
    --panel: #161b22;
    --panel-soft: #1d2530;
    --head: #0f1720;
    --brand: #8ec5ff;
    --brand-soft: #162340;
    --danger: #ff7b72;
    --danger-soft: #3d1615;
    --ok: #58d68d;
    --warning: #f6c85d;
    --orange: #ff9d66;
    --blue: #4ea3ff;
    --blue-soft: #10203a;
    --shadow: 0 10px 30px rgba(2, 6, 23, 0.45);
    --link: #93c5fd;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    margin: 0;
    background: radial-gradient(circle at top, var(--panel-soft), transparent 40%), var(--bg);
    color: var(--text);
    font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    letter-spacing: 0;
}

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

a:hover {
    text-decoration: underline;
}

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

button,
.primary-button,
.secondary-button,
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid var(--line-dark);
    border-radius: 4px;
    padding: 7px 12px;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.message-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    background: var(--danger-soft);
}

.status-good {
    color: var(--ok);
}

.status-limited {
    color: var(--warning);
}

.status-severe {
    color: var(--orange);
}

.status-risk {
    color: var(--danger);
}

.status-banned {
    color: #7f1d1d;
}

.message-box strong {
    color: var(--danger);
}

.message-box span {
    color: var(--text);
}

.icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: -0.15em;
}

button:hover,
.primary-button:hover,
.secondary-button:hover,
.danger-button:hover {
    text-decoration: none;
    filter: brightness(0.98);
}

.primary-button {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--panel);
    font-weight: 700;
}

.secondary-button {
    background: var(--head);
}

.danger-button {
    border-color: #d4a19c;
    background: var(--danger-soft);
    color: var(--danger);
}

.squada-one-regular {
    font-family: "Squada One", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    min-height: 54px;
    padding: 0 22px;
    border-bottom: 1px solid var(--line-dark);
    background: var(--panel);
}

.brand {
    color: var(--brand);
    font-size: 28px;
    line-height: 1;
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
}

.topnav a {
    padding: 8px 10px;
    border-radius: 4px;
    color: var(--text);
    white-space: nowrap;
}

.topnav a:hover {
    background: var(--head);
    text-decoration: none;
}

.account-zone {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suspension-top-banner {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #fecaca;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 700;
}

.verification-banner {
    border-color: #fbbf24 !important;
    background: #fef3c7 !important;
    color: #92400e !important;
}

.notification-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    background: var(--head);
    color: var(--text);
    cursor: pointer;
}

.notification-button .icon {
    width: 18px;
    height: 18px;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}

.notification-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: 260px;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.notification-menu.is-open {
    display: block;
}

.notification-header {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
}

.notification-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
}

.notification-item:hover {
    background: var(--head);
    text-decoration: none;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-label {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.notification-item strong {
    font-size: 12px;
}

.notification-item span:last-child {
    font-size: 11px;
    color: var(--muted);
}

.notification-empty {
    padding: 14px 12px;
    font-size: 12px;
    color: var(--muted);
}

.account-button {
    gap: 8px;
    background: var(--head);
    padding: 6px 10px;
}

.button-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line-dark);
}

.quick-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    min-width: 170px;
    max-width: 190px;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 100;
}

.quick-menu.is-open {
    display: block;
}

.quick-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--head);
    border-bottom: 1px solid var(--line);
}

.quick-menu-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line-dark);
}

.quick-menu-user-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.quick-menu-user-info .nickname {
    font-weight: 700;
    color: var(--text);
    font-size: 12px;
}

.quick-menu-user-info .school {
    font-size: 10px;
    color: var(--muted);
}

.quick-menu a,
.quick-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    border: 0;
    border-radius: 0;
    padding: 8px 12px;
    background: var(--panel);
    color: var(--text);
    text-align: left;
    font-size: 12px;
    transition: background 0.15s;
}

.quick-menu .icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.quick-menu a:hover,
.quick-menu button:hover {
    background: var(--head);
    text-decoration: none;
}

.login-link,
.join-link {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
    color: var(--text);
    white-space: nowrap;
}

.page-shell {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
    width: min(1180px, calc(100% - 28px));
    margin: 18px auto 48px;
}

.guest-shell {
    display: block;
    width: min(720px, calc(100% - 28px));
}

.sidebar {
    align-self: start;
    border: 1px solid var(--line-dark);
    background: var(--panel);
}

.school-badge {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    background: var(--head);
    color: var(--brand);
    font-weight: 800;
}

.sidebar nav,
.sidebar-group {
    display: grid;
}

.sidebar a,
.sidebar-group strong {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
}

.sidebar a:hover {
    background: #f7f8fa;
    text-decoration: none;
}

.sidebar-group strong {
    background: #fafafa;
    color: var(--muted);
    font-size: 12px;
}

.sidebar-notice {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
}

.sidebar-notice strong {
    font-weight: 800;
}

.sidebar-notice span {
    line-height: 1.5;
}

.verify-notice a {
    font-size: 12px;
    min-height: 30px;
    padding: 4px 10px;
}

.content {
    min-width: 0;
}

.flash-list {
    margin-bottom: 12px;
    border: 1px solid #c8d6ea;
    background: #f2f6fc;
}

.flash-list p {
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid #dce5f2;
}

.flash-list p:last-child {
    border-bottom: 0;
}

.auth-hero,
.auth-panel,
.panel,
.post-view,
.comment-section,
.post-editor {
    border: 1px solid var(--line-dark);
    background: var(--panel);
}

.auth-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 34px;
}

.auth-hero h1 {
    margin: 0 0 6px;
    color: var(--brand);
    font-size: 32px;
}

.auth-hero p {
    margin: 0;
    color: var(--muted);
}

.auth-actions,
.action-row,
.vote-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.auth-panel {
    width: min(420px, 100%);
    margin: 0 auto;
    padding: 26px;
}

.wide-auth {
    width: min(620px, 100%);
}

.auth-panel h1,
.policy-panel h1 {
    margin: 0 0 18px;
    font-size: 24px;
}

.form-stack,
.post-editor {
    display: grid;
    gap: 13px;
}

.post-editor {
    padding: 18px;
}

.form-stack label,
.post-editor label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 700;
}

.form-stack input,
.form-stack select,
.form-stack textarea,
.post-editor input,
.post-editor textarea,
.search-form input,
.search-form select,
.inline-admin-form input,
.comment-form textarea,
.comment-item input,
.post-table select {
    width: 100%;
    min-height: 34px;
    border: 1px solid var(--line-dark);
    border-radius: 4px;
    padding: 8px 10px;
    background: var(--panel);
    color: var(--text);
}

textarea {
    resize: vertical;
}

.check-row {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px !important;
    font-weight: 500 !important;
}

.check-row input {
    width: auto;
    min-height: auto;
}

.form-link,
.form-note {
    color: var(--muted);
}

.board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    background: transparent;
    padding: 0;
}

.board-head h1 {
    margin: 0 0 6px;
    font-size: 34px;
    letter-spacing: -0.04em;
}

.board-head p {
    margin: 0;
    color: var(--muted);
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--line-dark);
    background: var(--head);
    padding: 10px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.search-form input[type="search"] {
    max-width: 260px;
}

.sort-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sort-tabs a {
    border: 1px solid var(--line-dark);
    border-radius: 4px;
    padding: 7px 10px;
    background: var(--panel);
    color: var(--text);
}

.sort-tabs a.is-active {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 800;
}

.panel {
    margin-bottom: 14px;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 39px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
    background: var(--head);
}

.panel-title h2 {
    margin: 0;
    font-size: 16px;
}

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

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

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

.post-table thead th {
    background: var(--head);
    color: #394150;
    font-size: 13px;
}

.post-table tbody tr:hover {
    background: #fafafa;
}

.compact-table td,
.compact-table th {
    padding: 8px 10px;
}

.num-col {
    width: 64px;
    text-align: center !important;
}

.author-col {
    width: 120px;
}

.date-col {
    width: 142px;
}

.count-col {
    width: 70px;
    text-align: center !important;
}

.title-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comment-count,
.board-chip,
.danger-chip {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-left: 4px;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1;
}

.comment-count {
    color: #1f5f9e;
}

.board-chip {
    border: 1px solid #cad2df;
    background: #f5f7fa;
    color: var(--muted);
}

.danger-chip {
    border: 1px solid #efc8c4;
    background: var(--danger-soft);
    color: var(--danger);
}

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

.empty-cell,
.empty-text {
    padding: 18px !important;
    color: var(--muted);
    text-align: center !important;
}

.post-view {
    margin-bottom: 14px;
}

.post-topline,
.post-header,
.post-body,
.vote-row,
.action-row {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.post-topline {
    display: flex;
    gap: 8px;
    background: var(--head);
    color: var(--muted);
    font-size: 13px;
}

.post-header h1 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.35;
}

.post-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

.moderation-note,
.removed-text {
    border: 1px solid #efc8c4;
    background: var(--danger-soft);
    color: var(--danger);
    padding: 10px;
}

.post-body {
    min-height: 180px;
    line-height: 1.75;
    white-space: normal;
}

    .attachment-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 12px;
        margin: 12px 0;
    }

    @media (max-width: 768px) {
        .attachment-grid {
            grid-template-columns: 1fr;
            gap: 10px;
        }
        .attachment-card img,
        .attachment-card video {
            aspect-ratio: auto;
            max-height: 300px;
        }
    }

.attachment-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.attachment-card a:first-child,
.attachment-card video {
    display: block;
}

.attachment-card img,
.attachment-card video {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    border-radius: 6px;
    background: var(--head);
}

.attachment-card .file-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 160px;
    border: 1px dashed var(--line-dark);
    border-radius: 6px;
    background: var(--head);
}

.attachment-card .file-download .icon {
    width: 42px;
    height: 42px;
}

.attachment-meta {
    display: grid;
    gap: 6px;
}

.attachment-meta strong {
    font-size: 13px;
    word-break: break-word;
}

.attachment-meta span {
    font-size: 12px;
    color: var(--muted);
}

.attachment-meta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
}

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

.vote-row {
    justify-content: center;
}

.vote-row button.is-active {
    border-color: #1e4d8f;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 800;
}

.inline-admin-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.comment-section {
    padding: 0;
}

.comment-section h2 {
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--head);
    font-size: 16px;
}

.comment-list {
    display: grid;
}

.comment-item {
    display: grid;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.comment-meta strong {
    color: var(--text);
}

.comment-item p {
    margin: 0;
    line-height: 1.6;
}

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

.comment-item form input {
    max-width: 260px;
}

.comment-form {
    display: grid;
    gap: 8px;
    padding: 12px 16px;
}

.info-list {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    margin: 0;
}

.info-list dt,
.info-list dd {
    min-height: 38px;
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.info-list dt {
    background: #fafafa;
    color: var(--muted);
    font-weight: 800;
}

.status-large {
    margin: 18px 12px;
    color: var(--brand);
    font-size: 24px;
    font-weight: 900;
}

.status-summary {
    margin: 10px 0 0;
    font-size: 18px;
    font-weight: 900;
}

.account-status-page {
    display: grid;
    gap: 18px;
}

.account-status-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.page-eyebrow {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

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

.suspension-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid #ef4444;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(239, 68, 68, 0.08));
}

.suspension-banner-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suspension-banner-label {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.14);
    padding: 4px 10px;
    color: var(--danger);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.suspension-banner-copy strong {
    color: var(--danger);
    font-size: 18px;
}

.suspension-banner-copy span {
    color: var(--text);
}

.suspension-button {
    background: transparent;
    border-color: color-mix(in srgb, var(--danger) 45%, transparent);
}

.status-graph-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, transparent), var(--panel-soft));
    box-shadow: var(--shadow);
}

.status-graph-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.status-graph-heading span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status-graph-heading strong {
    font-size: 15px;
}

.status-graph {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    align-items: center;
}

.status-step {
    display: contents;
}

.status-node {
    width: 16px;
    height: 16px;
    border: 4px solid color-mix(in srgb, var(--muted) 28%, transparent);
    border-radius: 50%;
    background: transparent;
    justify-self: center;
}

.status-node.is-active {
    border-color: currentColor;
    background: currentColor;
    box-shadow: 0 0 0 8px color-mix(in srgb, currentColor 10%, transparent);
}

.status-connector {
    height: 2px;
    background: color-mix(in srgb, var(--muted) 28%, transparent);
}

.status-connector.is-active {
    background: currentColor;
}

.status-legend {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.status-legend-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 10px;
    background: var(--head);
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.status-legend-item.is-current {
    font-weight: 800;
}

.summary-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--panel), var(--panel-soft));
    box-shadow: var(--shadow);
}

.summary-card-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.summary-card-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.summary-card h2 {
    margin: 0;
    font-size: 26px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--head);
    font-weight: 800;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.summary-item {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.summary-item span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.summary-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.5;
}

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

.violation-column {
    display: grid;
    gap: 10px;
}

.violation-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}

.violation-card.is-active {
    border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
}

.violation-card.is-expired {
    opacity: 0.72;
}

.violation-card-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.violation-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--danger) 12%, transparent);
    color: var(--danger);
}

.violation-icon-wrap.muted {
    background: color-mix(in srgb, var(--blue) 12%, transparent);
    color: var(--blue);
}

.violation-card-copy {
    display: grid;
    gap: 2px;
}

.violation-card-copy strong {
    font-size: 14px;
}

.violation-card-copy span {
    color: var(--muted);
    font-size: 12px;
}

.violation-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: var(--muted);
}

.violation-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.violation-details-inner {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent);
    border-radius: 12px;
    background: var(--panel-soft);
}

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

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

.detail-row strong {
    font-size: 13px;
}

.detail-note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-note span {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
}

.policy-panel {
    padding: 22px;
    line-height: 1.8;
}

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

@media (max-width: 860px) {
    .topbar {
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 10px 12px;
    }

    .topnav {
        grid-column: 1 / -1;
        order: 3;
        width: 100%;
    }

    .page-shell {
        display: block;
        width: min(100% - 20px, 760px);
    }

    .sidebar {
        margin-bottom: 12px;
    }

    .sidebar nav,
    .sidebar-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-two {
        grid-template-columns: 1fr;
    }

    .board-head,
    .toolbar,
    .auth-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .search-form {
        flex-wrap: wrap;
    }

    .search-form input[type="search"] {
        max-width: none;
        flex: 1 1 180px;
    }

    .post-table {
        min-width: auto;
        width: 100%;
    }

    .panel {
        overflow-x: visible;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 13px;
    }

    .brand {
        font-size: 24px;
    }

    .account-button strong {
        display: none;
    }

    .auth-panel,
    .auth-hero {
        padding: 20px;
    }

    .form-grid,
    .info-list {
        grid-template-columns: 1fr;
    }

    .info-list dt {
        border-bottom: 0;
    }

    .post-header h1,
    .board-head h1 {
        font-size: 20px;
    }

    .inline-admin-form,
    .comment-item form {
        align-items: stretch;
        flex-direction: column;
    }
}

/* ─── Footer ─── */
.site-footer {
    border-top: 1px solid var(--line-dark);
    background: var(--panel);
    margin-top: 40px;
    padding: 32px 24px;
}
.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}
.footer-brand strong {
    font-size: 18px;
    color: var(--brand);
    font-family: "Squada One", sans-serif;
    letter-spacing: 0.05em;
}
.footer-brand span {
    font-size: 12px;
    color: var(--muted);
}
.footer-notice,
.footer-contact {
    font-size: 12px;
    color: var(--muted);
    margin: 4px 0;
    line-height: 1.6;
}
.footer-copy {
    font-size: 11px;
    color: var(--muted);
    margin: 12px 0 0;
    opacity: 0.7;
}

.hero-notice {
    font-size: 12px !important;
    color: var(--muted);
    margin-top: 8px !important;
    line-height: 1.6;
    max-width: 480px;
}

/* ─── Rules summary ─── */
.rules-summary {
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    background: var(--panel-soft);
    padding: 20px 24px;
    margin-bottom: 24px;
}
.rules-summary h2 {
    font-size: 16px;
    margin: 0 0 12px;
    color: var(--text);
}
.rules-summary ol {
    margin: 0;
    padding-left: 20px;
}
.rules-summary li {
    margin: 6px 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
}

/* ─── Comment extras ─── */
.comment-form-extras {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    font-size: 13px;
}
.comment-form-extras .file-row {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--muted);
}
.comment-form-extras .file-row input[type="file"] {
    font-size: 12px;
    max-width: 160px;
}
.comment-attachments {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.comment-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 6px;
    border: 1px solid var(--line-dark);
    object-fit: cover;
}
.anonymous-hint {
    font-size: 11px;
    color: var(--muted);
    margin-left: 4px;
}


/* ═══════════════════════════════════════════════════════════════
   AUTH: 로고, 소셜 버튼, 패스키, 캡차 공통 스타일
   ═══════════════════════════════════════════════════════════════ */

.auth-logo-wrap {
    text-align: center;
    margin-bottom: 22px;
}
.auth-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 8px;
}
.auth-heading {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    color: var(--brand);
}
.auth-sub {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

/* 구분선 */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    color: var(--muted);
    font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line-dark);
}

/* 소셜 버튼 그룹 */
.social-btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 4px;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, box-shadow 0.15s;
    flex: 1;
    justify-content: center;
    min-width: 90px;
}
.social-btn:hover {
    background: var(--head);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
}
.social-google { border-color: #dadce0; }
.social-kakao  { border-color: #f9e000; background: #fee500; color: #3c1e1e; }
.social-kakao:hover { background: #f5d800; }
.social-naver  { border-color: #03c75a; background: #03c75a; color: #fff; }
.social-naver:hover { background: #02b350; }

/* 소셜 빠른 가입 박스 */
.social-quick-join {
    margin-bottom: 4px;
    text-align: center;
}
.social-quick-label {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 10px;
}

/* 소셜 제공자 배지 */
.social-provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    border: 1px solid var(--line-dark);
    background: var(--head);
}
.social-google-badge { border-color: #dadce0; }
.social-kakao-badge  { border-color: #f9e000; background: #fff8d6; color: #3c1e1e; }
.social-naver-badge  { border-color: #03c75a; background: #e8fff0; color: #016b30; }

/* 패스키 버튼 */
.passkey-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    border: 1.5px solid var(--brand);
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 4px;
}
.passkey-login-btn:hover {
    background: var(--brand);
    color: var(--panel);
}

/* 패스키 모달 (바텀시트 스타일) */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 200;
    backdrop-filter: blur(2px);
}
.modal-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(480px, 100%);
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    background: var(--panel);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.2);
    z-index: 201;
    display: flex;
    flex-direction: column;
    padding: 0 0 env(safe-area-inset-bottom, 16px);
    animation: slideUp 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes slideUp {
    from { transform: translateX(-50%) translateY(100%); }
    to   { transform: translateX(-50%) translateY(0); }
}
.modal-sheet-handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--line-dark);
    margin: 12px auto 0;
}
.modal-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 10px;
    border-bottom: 1px solid var(--line);
}
.modal-sheet-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
}
.modal-close-btn {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: var(--head);
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.modal-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.modal-sheet-footer {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
}
.modal-sheet-footer .primary-button,
.modal-sheet-footer .secondary-button {
    flex: 1;
    min-height: 44px;
    border-radius: 10px;
    font-size: 15px;
}
.passkey-icon-wrap {
    text-align: center;
    margin-bottom: 12px;
    color: var(--brand);
}
.passkey-desc {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 16px;
}
.passkey-status {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}
.passkey-status-info    { background: var(--blue-soft); color: var(--blue); }
.passkey-status-success { background: #e8fff0; color: var(--ok); }
.passkey-status-error   { background: var(--danger-soft); color: var(--danger); }

/* 비밀번호 보기 버튼 */
.input-pw-wrap {
    position: relative;
}
.input-pw-wrap input {
    padding-right: 38px !important;
}
.pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    min-height: auto;
    border-radius: 4px;
}
.pw-toggle:hover { color: var(--text); }

/* 캡차 래퍼 */
.captcha-wrap {
    display: flex;
    justify-content: center;
    margin: 4px 0;
}
.captcha-placeholder {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px dashed var(--line-dark);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    background: var(--head);
}

/* 이용약관 박스 */
.terms-box {
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    padding: 14px;
    background: var(--panel-soft);
}
.terms-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text);
}
.terms-content {
    max-height: 180px;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
}
.terms-content p { margin: 4px 0; }
.terms-content ul { margin: 4px 0; padding-left: 18px; }
.terms-content li { margin: 2px 0; }

/* 체크박스 그룹 */
.check-row-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 폼 2열 */
.form-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   모바일 전용 UI (≤ 768px) - 최신 트렌드 반영
   하단 탭바 네비게이션, 카드형 피드, 풀스크린 모달
   ═══════════════════════════════════════════════════════════════ */

/* 모바일 하단 탭바 */
.mobile-tabbar {
    display: none;
}

@media (max-width: 768px) {

    /* ── 전체 레이아웃 ── */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    .page-shell {
        display: block;
        width: 100%;
        margin: 12px auto 16px;
        padding: 0 12px;
    }

    .sidebar {
        display: none; /* 모바일에서 사이드바 숨김 */
    }

    /* ── 상단 탑바 ── */
    .topbar {
        grid-template-columns: auto 1fr auto;
        padding: 0 14px;
        min-height: 52px;
        gap: 8px;
    }
    .topnav {
        display: none; /* 모바일에서 상단 네비 숨김 → 하단 탭바로 대체 */
    }
    .brand {
        font-size: 22px;
    }

    /* ── 하단 탭바 ── */
    .mobile-tabbar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(60px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: var(--panel);
        border-top: 1px solid var(--line-dark);
        z-index: 100;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    }
    .mobile-tabbar a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--muted);
        text-decoration: none;
        font-size: 10px;
        font-weight: 600;
        padding: 8px 4px 6px;
        transition: color 0.15s;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-tabbar a .tab-icon {
        width: 22px;
        height: 22px;
    }
    .mobile-tabbar a.active,
    .mobile-tabbar a:hover {
        color: var(--brand);
        text-decoration: none;
    }
    .mobile-tabbar a.active .tab-icon {
        stroke-width: 2.5;
    }
    .mobile-tabbar .tab-fab {
        flex: 0 0 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-tabbar .tab-fab a {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: var(--brand);
        color: var(--panel);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 14px rgba(38,54,79,0.35);
        flex: none;
        padding: 0;
        font-size: 0;
        transform: translateY(-8px);
    }
    .mobile-tabbar .tab-fab a .tab-icon {
        width: 24px;
        height: 24px;
    }
    .mobile-tabbar .tab-fab a:hover {
        background: var(--brand);
        opacity: 0.9;
    }

    /* ── 게시판 카드형 피드 ── */
    .post-table,
    .post-table thead,
    .post-table tbody,
    .post-table tr,
    .post-table th,
    .post-table td {
        display: block;
    }
    .post-table thead { display: none; }
    .post-table tbody tr {
        margin-bottom: 12px;
        border: 1px solid var(--line-dark);
        border-radius: 16px;
        background: var(--panel);
        padding: 14px 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        transition: transform 0.1s, box-shadow 0.1s;
    }
    .post-table tbody tr:active {
        transform: scale(0.98);
    }
    .post-table tbody tr:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        background: var(--panel);
    }
    .post-table td {
        border: 0;
        padding: 2px 0;
    }
    .post-table td.title-cell {
        font-size: 17px;
        font-weight: 800;
        line-height: 1.4;
        color: var(--text);
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        margin-bottom: 8px;
    }
    .post-table td.author-col,
    .post-table td.date-col {
        font-size: 12px;
        color: var(--muted);
        display: inline-block;
        width: auto;
        margin-right: 8px;
    }
    .post-table td.count-col {
        display: inline-block;
        width: auto;
        font-size: 12px;
        color: var(--muted);
        margin-right: 8px;
        text-align: left;
    }
    .post-table td.num-col { display: none; }
    .panel { overflow-x: visible; }

    /* ── 게시글 상세 ── */
    .post-view { border-radius: 0; border-left: 0; border-right: 0; margin-left: -12px; margin-right: -12px; }
    .post-header h1 { font-size: 20px; font-weight: 800; line-height: 1.3; }
    .post-topline,
    .post-header,
    .post-body,
    .vote-row,
    .action-row { padding: 16px; }
    .post-body { min-height: 120px; font-size: 16px; line-height: 1.8; }
    .comment-section { border-radius: 0; border-left: 0; border-right: 0; margin-left: -12px; margin-right: -12px; }
    .comment-item { padding: 14px 16px; }

    /* ── 댓글 ── */

    .comment-form textarea { min-height: 80px; }

    /* ── 검색/툴바 ── */
    .toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        border-radius: 10px;
        padding: 10px;
    }
    .search-form { width: 100%; }
    .search-form input[type="search"] { max-width: none; flex: 1; }
    .sort-tabs { overflow-x: auto; }
    .sort-tabs a { white-space: nowrap; }

    /* ── 게시글 작성 폼 ── */
    .post-editor { border-radius: 12px; }

    /* ── 인증 패널 ── */
    .auth-panel,
    .wide-auth {
        width: 100%;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        padding: 20px 16px;
        margin: 0;
    }
    .form-two { grid-template-columns: 1fr; gap: 10px; }

    /* ── 모달 시트 ── */
    .modal-sheet {
        width: 100%;
        border-radius: 20px 20px 0 0;
    }

    /* ── 플래시 메시지 ── */
    .flash-list {
        border-radius: 10px;
        margin-bottom: 10px;
    }

    /* ── 보드 헤더 ── */
    .board-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .board-head h1 { font-size: 24px; }

    /* ── 패널 ── */
    .panel { border-radius: 12px; }
    .panel-title { border-radius: 12px 12px 0 0; }
}

/* 초소형 화면 (≤ 390px) */
@media (max-width: 390px) {
    .social-btn-group { flex-direction: column; }
    .social-btn { min-width: 0; }
    .modal-sheet-footer { flex-direction: column; }
    .auth-heading { font-size: 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   관리자 AI 로그 페이지
   ═══════════════════════════════════════════════════════════════ */
.ai-verdict-clean  { color: var(--ok); font-weight: 700; }
.ai-verdict-warn   { color: var(--warning); font-weight: 700; }
.ai-verdict-block  { color: var(--orange); font-weight: 700; }
.ai-verdict-ban    { color: var(--danger); font-weight: 700; }

.ai-log-table td { font-size: 12px; }
.ai-score-bar {
    display: inline-block;
    height: 6px;
    border-radius: 3px;
    background: var(--brand);
    vertical-align: middle;
}


/* ═══════════════════════════════════════════════════════════════
   패스키 목록 (마이페이지)
   ═══════════════════════════════════════════════════════════════ */
.passkey-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 4px;
}
.passkey-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line-dark);
    border-radius: 10px;
    background: var(--head);
}
.passkey-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.passkey-icon {
    font-size: 22px;
    flex-shrink: 0;
}
.passkey-info strong {
    font-size: 14px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.small-button {
    padding: 5px 12px;
    font-size: 12px;
    min-height: 30px;
}

/* ═══════════════════════════════════════════════════════════════
   소셜 배지 (마이페이지, 관리자)
   ═══════════════════════════════════════════════════════════════ */
.social-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--line-dark);
}
.google-badge { background: #f1f3f4; color: #3c4043; border-color: #dadce0; }
.kakao-badge  { background: #fee500; color: #3c1e1e; border-color: #f9e000; }
.naver-badge  { background: #03c75a; color: #fff; border-color: #02b350; }

/* ═══════════════════════════════════════════════════════════════
   AI 심사 로그 배지 (관리자)
   ═══════════════════════════════════════════════════════════════ */
.ai-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #e8f0fe;
    color: #1a73e8;
    border: 1px solid #c5d8fc;
}
.verdict-clean { color: var(--ok); font-weight: 700; }
.verdict-warn  { color: var(--warning); font-weight: 700; }
.verdict-block { color: var(--orange, #f97316); font-weight: 700; }
.verdict-ban   { color: var(--danger); font-weight: 700; }

.ai-type-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: var(--head);
    color: var(--muted);
    border: 1px solid var(--line-dark);
}
.ai-type-nickname { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.ai-type-post     { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.ai-type-comment  { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }

/* ═══════════════════════════════════════════════════════════════
   모바일 추가 스타일 - 스와이프 힌트, 풀스크린 카드 등
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* 패스키 아이템 모바일 */
    .passkey-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    .passkey-info {
        min-width: 0;
        flex: 1 1 0;
    }

    /* 그리드 2열 → 1열 */
    .grid-two {
        grid-template-columns: 1fr !important;
    }

    /* 인덱스 카드형 피드 */
    .index-feed {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .index-feed .post-table tbody tr {
        border-radius: 14px;
        padding: 14px 16px;
    }

    /* 플로팅 글쓰기 버튼 (FAB) */
    .mobile-fab {
        display: flex;
        position: fixed;
        right: 18px;
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: var(--brand);
        color: var(--panel);
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 18px rgba(38,54,79,0.35);
        text-decoration: none;
        z-index: 90;
        transition: transform 0.15s, box-shadow 0.15s;
    }
    .mobile-fab:hover {
        transform: scale(1.06);
        box-shadow: 0 6px 24px rgba(38,54,79,0.45);
        text-decoration: none;
        color: var(--panel);
    }
    .mobile-fab .icon {
        width: 24px;
        height: 24px;
    }

    /* 게시글 상세 액션 버튼 풀폭 */
    .action-row .button-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .action-row .button-row a,
    .action-row .button-row button {
        flex: 1;
        min-width: 80px;
        text-align: center;
        justify-content: center;
    }

    /* 댓글 폼 개선 */
    .comment-form {
        padding: 12px;
    }
    .comment-form .form-row {
        flex-direction: column;
        gap: 8px;
    }
    .comment-form .primary-button {
        width: 100%;
    }

    /* 스크롤 힌트 (가로 스크롤 영역) */
    .scroll-hint {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .scroll-hint::-webkit-scrollbar { display: none; }

    /* 알림 배지 */
    .notification-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--danger);
        position: absolute;
        top: 6px;
        right: 6px;
    }

    /* 헤더 검색 버튼 */
    .topbar-search-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--head);
        border: 0;
        color: var(--text);
        cursor: pointer;
    }

    /* 카드 스와이프 애니메이션 */
    @keyframes cardIn {
        from { opacity: 0; transform: translateY(12px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .post-table tbody tr {
        animation: cardIn 0.2s ease both;
    }
    .post-table tbody tr:nth-child(1) { animation-delay: 0.02s; }
    .post-table tbody tr:nth-child(2) { animation-delay: 0.04s; }
    .post-table tbody tr:nth-child(3) { animation-delay: 0.06s; }
    .post-table tbody tr:nth-child(4) { animation-delay: 0.08s; }
    .post-table tbody tr:nth-child(5) { animation-delay: 0.10s; }
}
