: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;
}

.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: 680px;
    }

    .panel {
        overflow-x: auto;
    }
}

@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;
    }
}
