/* ===== 기본 배경 ===== */
body {
    font-family: 'Malgun Gothic', sans-serif;
    background: linear-gradient(135deg, #1e1e2f, #2a2a40);
    color: #e6e6e6;
    margin: 0;
    padding: 16px;
    min-height: 100vh;
}

:root {
    --banner-width: 280px;
    --banner-gap: 20px;
    --banner-ratio-width: 2;
    --banner-ratio-height: 1;
    --content-max-width: 920px;
    --sidebar-width: 280px;
    --left-sidebar-width: 280px;
    --right-sidebar-width: 280px;
    --sidebar-min-width: 220px;
    --layout-gap: 16px;
    --hero-padding-y: 32px;
    --hero-image-only-height: 240px;
    --hero-image-aspect-ratio: 16 / 9;
    --main-width: calc(var(--left-sidebar-width) + var(--content-max-width) + var(--right-sidebar-width) + (var(--layout-gap) * 2));
}

.site-hero {
    width: min(100%, var(--main-width));
    margin: 0 auto 18px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(130, 146, 255, 0.22);
    background:
        linear-gradient(135deg, rgba(15, 19, 44, 0.92), rgba(36, 17, 33, 0.78)),
        radial-gradient(circle at top right, rgba(255, 216, 107, 0.35), transparent 35%),
        linear-gradient(120deg, #0f1636, #1b254e 40%, #35192d);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.site-hero-has-image {
    background-size: cover;
    background-position: center;
}

.site-hero-inner {
    padding: var(--hero-padding-y) 36px;
}

.site-hero-image-only .site-hero-inner {
    min-height: var(--hero-image-only-height);
    padding: 0;
}

.site-hero-image-only .eyebrow,
.site-hero-image-only .site-hero-title,
.site-hero-image-only .site-hero-text {
    display: none;
}

.site-hero-title {
    margin: 0;
    font-size: 40px;
    color: #ffffff;
    text-shadow: none;
}

.site-hero-text {
    max-width: 680px;
    margin: 12px 0 0;
    color: #d6ddff;
    line-height: 1.7;
}

.site-nav {
    width: min(100%, var(--main-width));
    margin: 0 auto 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(10, 12, 24, 0.78);
    border: 1px solid rgba(130, 146, 255, 0.18);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.site-nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.site-nav-shell {
    width: min(100%, var(--main-width));
    margin: 0 auto 18px;
    position: relative;
}

.site-nav-mobile-bar {
    display: none;
}

.site-nav-mobile-label {
    color: #dbe3ff;
    font-size: 14px;
    font-weight: 700;
}

.site-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 14px;
    margin: 0;
    border-radius: 999px;
    border: 1px solid rgba(130, 146, 255, 0.2);
    box-shadow: none;
}

.site-nav-toggle-text {
    font-size: 14px;
    font-weight: 700;
}

.site-nav-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.site-nav-toggle-icon span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-nav-toggle.is-open .site-nav-toggle-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-nav-toggle.is-open .site-nav-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.site-nav-toggle.is-open .site-nav-toggle-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.site-nav-backdrop {
    display: none;
}

.site-profile-drawer {
    display: none;
}

.shell-profile-panel-mobile {
    margin: 0;
}

.site-profile-banner-slot {
    display: none;
}

.site-profile-banner-slot:empty {
    display: none;
}

.site-nav-banner-slot {
    display: none;
}

.site-nav-banner-slot:empty {
    display: none;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 12px 16px;
    border-radius: 999px;
    color: #eef2ff;
    text-decoration: none;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
    overflow-wrap: anywhere;
    background: rgba(79, 95, 177, 0.18);
    border: 1px solid transparent;
    transition: 0.15s;
}

.site-nav-link:hover,
.site-nav-link.active {
    background: rgba(255, 216, 107, 0.16);
    border-color: rgba(255, 216, 107, 0.35);
    color: #ffd86b;
}

.banner-rail {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.banner-card-link {
    display: block;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
}

.banner-card-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--banner-ratio-width) / var(--banner-ratio-height);
    object-fit: contain;
    object-position: center;
    background: transparent;
    padding: 0;
}

.banner-rail-left .banner-card-image,
.banner-rail-right .banner-card-image {
    aspect-ratio: 300 / 150;
    object-fit: contain;
}

.horizontal-banner-slot {
    margin-top: 22px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(10, 12, 24, 0.52);
    border: 1px solid rgba(130, 146, 255, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.horizontal-banner-slot:empty {
    display: none;
}

.horizontal-banner-stack {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.horizontal-banner-stack[hidden] {
    display: none;
}

.horizontal-banner-stack .horizontal-banner-slot {
    margin-top: 0;
}

.horizontal-banner-card {
    display: block;
    width: 100%;
}

.horizontal-banner-image {
    display: block;
    width: 100%;
    aspect-ratio: 6 / 1;
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, rgba(19, 24, 53, 0.95), rgba(11, 14, 31, 0.95));
}

.main-layout {
    width: min(100%, var(--main-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: var(--layout-gap);
    align-items: start;
}

.site-layout {
    width: min(100%, var(--main-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(var(--sidebar-min-width), var(--left-sidebar-width)) minmax(0, 1fr) minmax(var(--sidebar-min-width), var(--right-sidebar-width));
    gap: var(--layout-gap);
    align-items: start;
}

.site-side-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

body[data-layout-mode='swap'] .site-side-column-left {
    order: 3;
}

body[data-layout-mode='swap'] .site-main-column {
    order: 2;
}

body[data-layout-mode='swap'] .site-side-column-right {
    order: 1;
}

body[data-layout-mode='left-hidden'] .site-side-column-left {
    display: none;
}

body[data-layout-mode='left-hidden'] .site-layout {
    grid-template-columns: minmax(0, 1fr) minmax(var(--sidebar-min-width), var(--right-sidebar-width));
}

body[data-layout-mode='right-hidden'] .site-side-column-right {
    display: none;
}

body[data-layout-mode='right-hidden'] .site-layout {
    grid-template-columns: minmax(var(--sidebar-min-width), var(--left-sidebar-width)) minmax(0, 1fr);
}

.banner-slot-column {
    width: 100%;
}

.site-main-column {
    min-width: 0;
}

.main-content-shell {
    width: 100%;
    max-width: none;
    margin: 0;
}

.page-shell {
    max-width: min(100%, var(--content-max-width));
    margin: 0 auto;
    background: rgba(10, 12, 24, 0.45);
    border: 1px solid rgba(130, 146, 255, 0.18);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.auth-shell {
    max-width: 560px;
    margin-top: 48px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.eyebrow {
    margin: 0 0 8px;
    color: #8da2ff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
}

.button-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.page-title-stack {
    min-width: 0;
}

.page-title-stack h1 {
    margin: 0;
}

.form-card {
    background: rgba(18, 20, 36, 0.82);
    border: 1px solid #3b3b5c;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.3);
}

.form-actions {
    margin-top: 8px;
}

.range-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 6px;
    color: #dbe3ff;
    font-size: 14px;
}

.range-field strong {
    color: #ffd86b;
}

.appearance-background-preview {
    width: 100%;
    min-height: 180px;
    border-radius: 16px;
    border: 1px solid rgba(130, 146, 255, 0.2);
    background: linear-gradient(135deg, #1e1e2f, #2a2a40);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    margin-bottom: 12px;
}

/* ===== 제목 ===== */
h1, h2, h3 {
    color: #ffd86b;
    text-shadow: 0 0 8px rgba(255, 216, 107, 0.7);
}

/* ===== 입력창 ===== */
input, textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px;
    margin-bottom: 12px;
    border: 2px solid #3b3b5c;
    background: #1b1b2b;
    color: #fff;
    border-radius: 6px;
    font-size: 15px;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}

/* ===== 버튼 ===== */
button {
    background: linear-gradient(180deg, #4b6bff, #2f49d1);
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.25;
    min-height: 42px;
    text-align: center;
    margin-right: 6px;
    box-shadow: 0 0 10px rgba(75, 107, 255, 0.5);
    transition: 0.15s;
}

button:hover {
    background: linear-gradient(180deg, #6f8aff, #3f5be0);
    box-shadow: 0 0 14px rgba(75, 107, 255, 0.8);
}

/* ===== 게시글 카드 ===== */
.post-card {
    background: rgba(30, 30, 50, 0.8);
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 2px solid #3b3b5c;
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
    transition: 0.15s;
    cursor: pointer;
}

.post-card:hover {
    background: rgba(40, 40, 60, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(0,0,0,0.6);
}

.post-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.post-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.mine-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 216, 107, 0.18);
    border: 1px solid rgba(255, 216, 107, 0.35);
    color: #ffd86b;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.post-meta {
    margin: 6px 0;
    color: #b6bfed;
    font-size: 14px;
}

.post-list {
    display: grid;
    gap: 14px;
}

.post-list-table {
    border: 1px solid rgba(130, 146, 255, 0.18);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(11, 14, 28, 0.62);
}

.post-list-head,
.post-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 140px 90px;
    gap: 12px;
    align-items: center;
}

.post-list-head-admin,
.post-list-row-admin {
    grid-template-columns: 40px minmax(0, 1fr) 140px 140px 90px;
}

.post-list-head {
    padding: 14px 18px;
    background: rgba(79, 95, 177, 0.16);
    border-bottom: 1px solid rgba(130, 146, 255, 0.16);
    color: #dbe3ff;
    font-size: 14px;
    font-weight: 700;
}

.post-list {
    display: block;
}

.post-list-row {
    width: 100%;
    padding: 16px 18px;
    border: 0;
    border-bottom: 1px solid rgba(130, 146, 255, 0.12);
    background: transparent;
    color: #eef2ff;
    text-align: left;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
}

.post-list-row:last-child {
    border-bottom: 0;
}

.post-list-row:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.integration-log-head,
.integration-log-row {
    grid-template-columns: minmax(0, 1.8fr) 160px 90px 180px;
}

.integration-log-main {
    min-width: 0;
}

.integration-log-title-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    white-space: nowrap;
}

.integration-log-badge {
    flex: 0 0 auto;
}

.integration-log-title {
    flex: 0 1 auto;
    min-width: 0;
    color: #ffffff;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
}

.integration-log-preview {
    flex: 1 1 auto;
    min-width: 0;
    color: #b6bfed;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.integration-log-row .post-meta {
    margin: 0;
}

.attendance-prompt-stats-head,
.attendance-prompt-stats-row {
    grid-template-columns: minmax(0, 1.9fr) 100px 100px 90px 190px 90px;
}

.attendance-prompt-stats-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff;
    font-weight: 700;
}

.attendance-prompt-stats-row strong {
    color: #eef2ff;
    font-weight: 700;
}

.attendance-prompt-mobile-label {
    display: none;
}

.post-col-select {
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-select-checkbox,
#selectAllPosts {
    width: 18px;
    height: 18px;
    accent-color: #ffd86b;
    cursor: pointer;
}

.post-title-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.post-title-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.post-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.post-row-meta-mobile {
    display: none;
}

.post-row-meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(130, 146, 255, 0.12);
    color: #cfd8ff;
    font-size: 12px;
}

.post-list-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
    flex: 0 0 56px;
    border: 1px solid rgba(130, 146, 255, 0.2);
    background: rgba(10, 12, 24, 0.72);
}

.post-list-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.post-col-author,
.post-col-date,
.post-col-views {
    color: #b6bfed;
    font-size: 14px;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.board-card {
    width: 100%;
    text-align: left;
    background: linear-gradient(180deg, rgba(33, 39, 77, 0.95), rgba(22, 27, 58, 0.95));
    border: 1px solid rgba(141, 162, 255, 0.3);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.board-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.board-card-text {
    color: #c7cff8;
    line-height: 1.6;
}

.profile-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.shell-profile-panel {
    min-height: 316px;
    max-width: 100%;
}

.shell-profile-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.shell-profile-actions button {
    width: 100%;
    min-height: 40px;
    padding: 8px 6px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    letter-spacing: -0.01em;
    justify-content: center;
    text-align: center;
}

.level-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.exp-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exp-label-row {
    display: flex;
    justify-content: space-between;
    color: #c7cff8;
    font-size: 14px;
}

.exp-bar {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    border: 1px solid rgba(141, 162, 255, 0.22);
}

.exp-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffd86b, #ff9d5c);
    box-shadow: 0 0 14px rgba(255, 216, 107, 0.45);
}

.shell-profile-panel h2 {
    min-width: 0;
}

.empty-state {
    text-align: center;
    color: #c7cff8;
}

.detail-card {
    background: rgba(18, 20, 36, 0.82);
    border: 1px solid #3b3b5c;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.3);
}

.post-body {
    margin-top: 18px;
    line-height: 1.8;
    white-space: pre-wrap;
    color: #f0f2ff;
}

.post-image-wrap,
.post-image-edit-wrap {
    margin-top: 18px;
}

.post-video-wrap {
    margin-top: 18px;
}

.post-video-frame {
    display: block;
    width: min(100%, 840px);
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(130, 146, 255, 0.2);
    border-radius: 14px;
    background: rgba(10, 12, 24, 0.9);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.post-detail-image {
    display: block;
    width: min(100%, 720px);
    max-width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(130, 146, 255, 0.2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    background: rgba(10, 12, 24, 0.72);
}

.post-detail-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.post-detail-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.post-detail-title-wrap {
    min-width: 0;
}

.post-detail-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.3;
}

.post-detail-meta-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.post-detail-meta {
    margin: 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(130, 146, 255, 0.14);
}

.comment-section {
    margin-top: 8px;
}

/* ===== 댓글 박스 ===== */
.comment-box {
    background: rgba(25, 25, 40, 0.8);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #3b3b5c;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.comment-author {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.comment-date {
    color: #9ca8e8;
    font-size: 13px;
    margin-bottom: 10px;
}

.comment-content {
    line-height: 1.6;
    color: #edf0ff;
    white-space: pre-wrap;
}

.comment-action-row {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.comment-form {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.comment-form textarea {
    margin-bottom: 0;
}

.comment-submit-button {
    min-width: 132px;
}

.form-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #dbe3ff;
    font-size: 14px;
    font-weight: 700;
}

.write-form-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.write-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.write-field-group {
    min-width: 0;
}

.write-field-group input,
.write-field-group textarea {
    margin-bottom: 0;
}

.field-help {
    margin-top: 8px;
    margin-bottom: 0;
    color: #b6bfed;
    font-size: 13px;
    line-height: 1.6;
}

.write-content-field {
    min-height: 280px;
}

.attendance-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.attendance-prompt-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attendance-prompt-card {
    width: 100%;
    text-align: left;
    background: rgba(18, 20, 36, 0.82);
    border: 1px solid #3b3b5c;
    border-radius: 14px;
    padding: 16px;
}

.attendance-prompt-card.is-active {
    border-color: rgba(255, 216, 107, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 216, 107, 0.18), 0 12px 28px rgba(0, 0, 0, 0.28);
}

.attendance-rank-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 216, 107, 0.14);
    color: #ffd86b;
    font-size: 12px;
    margin-bottom: 10px;
}

.attendance-action-box {
    margin-bottom: 16px;
    overflow: hidden;
}

.attendance-random-prompt {
    display: block;
    min-height: 88px;
    width: 100%;
    max-width: 100%;
    resize: none;
}

.attendance-comment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attendance-empty {
    color: #c8d2ff;
}

.admin-user-list {
    display: grid;
    gap: 16px;
}
.admin-site-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-user-card {
    display: flex;
    flex-direction: column;
}

.admin-user-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px;
}

.admin-user-row-main {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.8fr) minmax(260px, 1fr) minmax(420px, 1.6fr);
    gap: 14px;
    align-items: center;
}

.admin-user-summary {
    min-width: 0;
}

.admin-user-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-user-badges {
    justify-content: flex-start;
}

.admin-user-point-controls {
    justify-content: flex-end;
}

.admin-user-point-controls .banner-select[type='number'] {
    width: 110px;
}

.admin-user-point-controls .banner-select[type='text'] {
    width: 180px;
}

.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 8, 18, 0.72);
    backdrop-filter: blur(4px);
}

.admin-modal-card {
    width: min(100%, 960px);
    max-height: calc(100vh - 48px);
    overflow: auto;
}

.admin-point-history-modal {
    padding: 20px;
}

.admin-point-history-modal .comment-section {
    margin-top: 16px;
}

.admin-user-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-user-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.admin-site-card {
    padding: 20px;
}

.admin-site-head {
    margin-bottom: 14px;
}

.admin-site-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 6px;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #d6ddff;
}

.checkbox-row input {
    width: auto;
    margin: 0;
}

.banner-form-card {
    margin-top: 18px;
}

.banner-guide {
    margin-top: 12px;
    color: #b6bfed;
    font-size: 13px;
    line-height: 1.6;
}

.banner-select {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 2px solid #3b3b5c;
    background: #1b1b2b;
    color: #fff;
    border-radius: 6px;
    font-size: 15px;
}

.banner-admin-card .admin-user-actions {
    align-items: flex-start;
}

.banner-edit-grid {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.admin-post-toolbar {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.admin-post-card {
    padding: 20px;
}

.admin-post-head {
    align-items: flex-start;
    margin-bottom: 0;
}

.admin-post-toggle {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.admin-post-toggle:hover {
    background: transparent;
    box-shadow: none;
}

.admin-post-toggle-copy {
    min-width: 0;
}

.admin-post-toggle-indicator {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 216, 107, 0.12);
    border: 1px solid rgba(255, 216, 107, 0.24);
    color: #ffd86b;
    font-size: 12px;
    font-weight: 700;
}

.admin-post-toggle.is-expanded .admin-post-toggle-indicator {
    background: rgba(141, 162, 255, 0.14);
    border-color: rgba(141, 162, 255, 0.3);
    color: #dbe3ff;
}

.admin-post-detail {
    margin-top: 14px;
}

.admin-post-edit-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-post-edit-grid textarea {
    margin-bottom: 0;
}

.admin-post-image-tools {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-post-image-preview {
    width: 140px;
    height: 140px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    border: 1px solid rgba(130, 146, 255, 0.22);
    background: linear-gradient(135deg, rgba(19, 24, 53, 0.95), rgba(11, 14, 31, 0.95));
}

.admin-post-comments {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.banner-admin-preview {
    width: 120px;
    height: 60px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    border: 1px solid rgba(130, 146, 255, 0.22);
    background: linear-gradient(135deg, rgba(19, 24, 53, 0.95), rgba(11, 14, 31, 0.95));
}

.hero-preview-card {
    margin-top: 18px;
}

.hero-admin-preview {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    border: 1px solid rgba(130, 146, 255, 0.22);
    background: linear-gradient(135deg, rgba(19, 24, 53, 0.95), rgba(11, 14, 31, 0.95));
}

.admin-search-bar {
    padding: 18px;
}

.admin-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.admin-entry-card {
    min-height: 190px;
    justify-content: center;
}

.admin-dashboard-shell {
    max-width: min(100%, 1280px);
}

.admin-wide-shell {
    max-width: min(100%, 1440px);
}

.admin-wide-shell .admin-user-list {
    grid-template-columns: 1fr;
    align-items: start;
}

.admin-wide-shell .admin-post-toolbar {
    grid-template-columns: 260px minmax(0, 1fr) auto;
}

.admin-wide-shell .admin-site-edit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-wide-shell .banner-edit-grid,
.admin-wide-shell .admin-post-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.admin-wide-shell .admin-post-edit-grid textarea,
.admin-wide-shell .banner-edit-grid textarea {
    grid-column: 1 / -1;
}

.admin-wide-shell .admin-post-create-card textarea {
    min-height: 180px;
}

.notice-preview-section {
    margin-bottom: 20px;
}

.notice-preview-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.notice-preview-card {
    width: 100%;
    text-align: left;
    background: rgba(25, 25, 40, 0.82);
    border: 1px solid #3b3b5c;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.promotion-preview-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
}

.promotion-preview-card.has-image {
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
}

.promotion-preview-thumb-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(11, 14, 31, 0.95);
    border: 1px solid rgba(130, 146, 255, 0.16);
}

.promotion-preview-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promotion-preview-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notice-preview-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

/* ===== 구분선 ===== */
hr {
    border: none;
    border-top: 2px solid #3b3b5c;
    margin: 20px 0;
}

@media (max-width: 640px) {
    body {
        padding: 10px;
    }

    .site-nav-shell {
        margin-bottom: 14px;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .page-title-stack h1 {
        font-size: 28px;
    }

    .site-hero {
        border-radius: 18px;
        margin-bottom: 14px;
    }

    .site-hero-has-image {
        background-position: center top;
    }

    .site-hero-image-only.site-hero-has-image {
        aspect-ratio: var(--hero-image-aspect-ratio, 16 / 9);
    }

    .site-hero-image-only.site-hero-has-image .site-hero-inner {
        min-height: 0;
        height: 100%;
    }

    .main-layout {
        grid-template-columns: 1fr;
    }

    .site-layout {
        grid-template-columns: 1fr;
    }

    .site-hero-inner {
        padding: 22px 18px;
    }

    .site-hero-title {
        font-size: 26px;
        line-height: 1.22;
    }

    .site-hero-text {
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.6;
    }

    .profile-panel {
        position: static;
    }

    .page-shell {
        padding: 14px;
        border-radius: 16px;
    }

    .detail-card,
    .form-card {
        padding: 16px;
        border-radius: 12px;
    }

    .shell-profile-panel {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        margin: 0 auto;
        gap: 10px;
        padding: 12px;
        box-sizing: border-box;
    }

    .shell-profile-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        justify-items: stretch;
    }

    .shell-profile-actions button {
        min-height: 38px;
        padding: 8px 6px;
        font-size: 13px;
    }

    .shell-profile-home-button {
        grid-column: 1 / -1;
    }

    .shell-profile-panel .eyebrow {
        margin-bottom: 4px;
    }

    .shell-profile-panel h2 {
        margin: 0;
        font-size: 20px;
        line-height: 1.2;
    }

    .shell-profile-panel .post-meta {
        margin: 0;
        font-size: 12px;
        line-height: 1.45;
    }

    .shell-profile-panel .mine-badge {
        padding: 3px 8px;
        font-size: 11px;
    }

    .shell-profile-panel .exp-block {
        gap: 6px;
    }

    .shell-profile-panel .exp-bar {
        height: 10px;
    }

    .board-grid {
        grid-template-columns: 1fr;
    }

    .promotion-preview-card.has-image {
        grid-template-columns: 1fr;
    }

    .attendance-layout {
        grid-template-columns: 1fr;
    }

    .admin-entry-grid {
        grid-template-columns: 1fr;
    }

    .admin-wide-shell .admin-user-list,
    .admin-wide-shell .admin-site-edit-grid,
    .admin-wide-shell .banner-edit-grid,
    .admin-wide-shell .admin-post-edit-grid,
    .admin-wide-shell .admin-post-toolbar {
        grid-template-columns: 1fr;
    }

    .admin-user-row-main {
        grid-template-columns: 1fr;
    }

    .admin-user-point-controls {
        justify-content: flex-start;
    }

    .admin-user-point-controls .banner-select[type='text'],
    .admin-user-point-controls .banner-select[type='number'] {
        width: 100%;
    }

    .admin-modal-backdrop {
        padding: 12px;
    }

    .admin-modal-card {
        max-height: calc(100vh - 24px);
    }

    .admin-post-toolbar {
        grid-template-columns: 1fr;
    }

    .admin-post-toggle {
        flex-direction: column;
        gap: 10px;
    }

    .admin-post-toggle-indicator {
        min-width: 0;
    }

    .post-list-head {
        display: none;
    }

    .post-list-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px;
    }

    .post-col-select {
        justify-content: flex-start;
    }

    .post-title-cell {
        align-items: flex-start;
        gap: 12px;
    }

    .post-list-thumb {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 12px;
    }

    .post-title-line {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .post-list-title {
        white-space: normal;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.45;
    }

    .post-col-author,
    .post-col-date,
    .post-col-views {
        display: none;
    }

    .post-row-meta-mobile {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .attendance-prompt-stats-text {
        white-space: normal;
    }

    .attendance-prompt-mobile-label {
        display: block;
        margin-bottom: 4px;
        color: #8da2ff;
        font-size: 11px;
        font-weight: 700;
    }

    .post-col-author::before {
        content: '작성자: ';
    }

    .post-col-date::before {
        content: '날짜: ';
    }

    .post-col-views::before {
        content: '조회수: ';
    }

    .post-card-title {
        font-size: 18px;
    }

    button {
        margin-right: 0;
        min-height: 44px;
    }

    .button-row {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
    }

    .button-row > button:only-child {
        grid-column: 1 / -1;
    }

    .button-row > button {
        width: 100%;
    }

    .post-detail-card {
        gap: 14px;
    }

    .post-detail-title {
        font-size: 24px;
    }

    .post-detail-meta-wrap {
        gap: 8px;
        margin-top: 10px;
    }

    .post-detail-meta {
        width: 100%;
        box-sizing: border-box;
        border-radius: 12px;
    }

    .post-body {
        margin-top: 0;
        font-size: 15px;
        line-height: 1.75;
    }

    .comment-section h3 {
        margin-bottom: 12px;
    }

    .comment-box {
        padding: 14px;
        border-radius: 12px;
    }

    .comment-form {
        align-items: stretch;
    }

    .comment-submit-button {
        width: 100%;
    }

    .write-field-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .write-content-field {
        min-height: 220px;
    }
}

@media (max-width: 900px) {
    body.site-nav-open {
        overflow: hidden;
    }

    .site-side-column-left {
        display: none;
    }

    .site-nav-mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 14px;
        border-radius: 16px;
        background: rgba(10, 12, 24, 0.82);
        border: 1px solid rgba(130, 146, 255, 0.18);
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
    }

    .site-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1090;
        padding: 0;
        background: rgba(6, 8, 18, 0.64);
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .site-nav-backdrop[hidden] {
        display: none;
    }

    .site-nav-backdrop:not([hidden]) {
        display: block;
    }

    .site-nav {
        width: min(320px, calc(100vw - 16px));
        box-sizing: border-box;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        position: fixed;
        top: 12px;
        right: 8px;
        z-index: 1100;
        margin: 0;
        padding: 14px;
        border-radius: 20px;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 10px;
        background: rgba(10, 12, 24, 0.94);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px) scale(0.98);
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .site-profile-drawer {
        display: block;
        width: auto;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        position: fixed;
        top: 12px;
        left: 8px;
        right: 8px;
        z-index: 1100;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px) scale(0.98);
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .site-profile-drawer.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .site-nav-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .site-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .site-nav-link {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-width: 0;
        justify-content: center;
        border-radius: 14px;
        min-height: 52px;
        padding: 12px 12px;
        text-align: center;
    }

    .site-nav-banner-slot:not(:empty) {
        display: block;
        width: 100%;
        margin-top: 2px;
        padding-top: 10px;
        border-top: 1px solid rgba(130, 146, 255, 0.14);
        box-sizing: border-box;
    }

    .site-nav-banner-slot .banner-rail {
        gap: 8px;
    }

    .site-nav-banner-slot .banner-card-link {
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.03);
    }

    .site-nav-banner-slot .banner-card-image {
        aspect-ratio: 300 / 150;
        object-fit: contain;
        background: rgba(10, 12, 24, 0.48);
    }

    .shell-profile-panel-mobile {
        min-height: 0;
    }

    .site-profile-banner-slot:not(:empty) {
        display: block;
        width: 100%;
        margin-top: 10px;
        box-sizing: border-box;
    }

    .site-profile-banner-slot .banner-rail {
        gap: 8px;
    }

    .site-profile-banner-slot .banner-card-link {
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.03);
    }

    .site-profile-banner-slot .banner-card-image {
        aspect-ratio: 300 / 150;
        object-fit: contain;
        background: rgba(10, 12, 24, 0.48);
    }
}

@media (max-width: 430px) {
    body {
        padding: 8px;
    }

    .site-hero {
        border-radius: 16px;
    }

    .site-hero-inner {
        padding: 18px 16px;
    }

    .site-hero-title {
        font-size: 23px;
    }

    .site-nav-mobile-bar {
        padding: 9px 12px;
        border-radius: 14px;
    }

    .site-nav {
        width: calc(100vw - 12px);
        right: 6px;
        top: 8px;
        max-height: calc(100vh - 16px);
        padding: 12px;
        border-radius: 16px;
    }

    .site-profile-drawer {
        width: auto;
        left: 6px;
        right: 6px;
        top: 8px;
        max-height: calc(100vh - 16px);
    }

    .site-nav-mobile-label,
    .site-nav-toggle-text {
        font-size: 13px;
    }

    .site-nav-link {
        min-height: 48px;
        padding: 11px 10px;
        font-size: 14px;
        line-height: 1.3;
    }

    .site-nav-banner-slot:not(:empty) {
        padding-top: 8px;
    }

    .page-title-stack h1 {
        font-size: 24px;
    }

    .eyebrow {
        margin-bottom: 6px;
        font-size: 11px;
        letter-spacing: 0.1em;
    }

    .post-meta {
        font-size: 13px;
        line-height: 1.55;
    }

    .page-shell {
        padding: 12px;
    }

    .detail-card,
    .form-card {
        padding: 14px;
    }

    .shell-profile-panel {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        padding: 10px;
        gap: 8px;
        box-sizing: border-box;
    }

    .shell-profile-panel h2 {
        font-size: 18px;
    }

    .shell-profile-panel .post-meta {
        font-size: 11px;
    }

    .shell-profile-panel .mine-badge {
        padding: 2px 7px;
        font-size: 10px;
    }

    .shell-profile-panel .exp-label-row {
        font-size: 12px;
    }

    .shell-profile-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .shell-profile-actions button {
        min-height: 36px;
        padding: 7px 4px;
        font-size: 12px;
    }

    .shell-profile-home-button {
        grid-column: 1 / -1;
    }

    .post-list-row {
        padding: 12px;
    }

    .post-list-thumb {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .post-list-title {
        font-size: 15px;
    }

    .post-row-meta-chip {
        min-height: 26px;
        padding: 3px 8px;
        font-size: 11px;
    }

    .button-row {
        grid-template-columns: 1fr;
    }

    .post-detail-title {
        font-size: 21px;
    }

    .post-detail-meta {
        padding: 8px 10px;
        font-size: 12px;
    }

    .post-body {
        font-size: 14px;
    }

    .comment-box {
        padding: 12px;
    }

    .form-label {
        font-size: 13px;
    }

    .field-help {
        font-size: 12px;
    }

    .write-content-field {
        min-height: 200px;
    }
}

@media (max-width: 1399px) {
    :root {
        --sidebar-width: 240px;
        --left-sidebar-width: 240px;
        --right-sidebar-width: 240px;
        --sidebar-min-width: 200px;
        --layout-gap: 12px;
    }

    .banner-slot-column {
        display: none;
    }

    .site-layout {
        grid-template-columns: minmax(var(--sidebar-min-width), var(--left-sidebar-width)) minmax(0, 1fr);
    }
}

@media (max-width: 980px) {
    .site-layout {
        grid-template-columns: 1fr;
    }

    .site-side-column-right {
        display: none;
    }
}

body[data-site-theme='sunset'] {
    background: linear-gradient(135deg, #3a1c1b, #5d2d1f 42%, #c46a2d);
}

body[data-site-background-theme='default'] {
    background: linear-gradient(135deg, #1e1e2f, #2a2a40);
}

body[data-site-background-theme='ocean'] {
    background: linear-gradient(135deg, #10243f, #184f72 42%, #4ea9c4);
}

body[data-site-background-theme='forest'] {
    background: linear-gradient(135deg, #142319, #254b31 42%, #5f8f55);
}

body[data-site-background-theme='sunset'] {
    background: linear-gradient(135deg, #3a1c1b, #7f3e24 42%, #d98f43);
}

body[data-site-background-theme='slate'] {
    background: linear-gradient(135deg, #1a1f2e, #394154 42%, #59667d);
}

body[data-site-theme='sunset'] .site-hero {
    border-color: rgba(255, 198, 121, 0.28);
    background:
        linear-gradient(135deg, rgba(58, 20, 18, 0.92), rgba(109, 48, 22, 0.8)),
        radial-gradient(circle at top right, rgba(255, 225, 150, 0.34), transparent 36%),
        linear-gradient(120deg, #4a201d, #87401f 45%, #d98936);
}

body[data-site-theme='sunset'] .site-nav,
body[data-site-theme='sunset'] .page-shell,
body[data-site-theme='sunset'] .detail-card,
body[data-site-theme='sunset'] .form-card,
body[data-site-theme='sunset'] .post-list-table {
    border-color: rgba(255, 198, 121, 0.22);
    background: rgba(44, 20, 14, 0.7);
}

body[data-site-theme='sunset'] .site-nav-link {
    background: rgba(255, 170, 89, 0.15);
}

body[data-site-theme='sunset'] .site-nav-link:hover,
body[data-site-theme='sunset'] .site-nav-link.active,
body[data-site-theme='sunset'] .mine-badge {
    background: rgba(255, 226, 156, 0.16);
    border-color: rgba(255, 226, 156, 0.34);
    color: #ffe29c;
}

body[data-site-theme='sunset'] h1,
body[data-site-theme='sunset'] h2,
body[data-site-theme='sunset'] h3,
body[data-site-theme='sunset'] .eyebrow {
    color: #ffd3a2;
}

body[data-site-theme='sunset'] button {
    background: linear-gradient(180deg, #ff945c, #da5c2b);
    box-shadow: 0 0 10px rgba(255, 148, 92, 0.45);
}

body[data-site-theme='ocean'] {
    background: linear-gradient(135deg, #071b2f, #0e3b63 42%, #1591b8);
}

body[data-site-theme='ocean'] .site-hero {
    border-color: rgba(130, 230, 255, 0.26);
    background:
        linear-gradient(135deg, rgba(6, 28, 50, 0.93), rgba(8, 74, 111, 0.82)),
        radial-gradient(circle at top right, rgba(142, 240, 255, 0.28), transparent 38%),
        linear-gradient(120deg, #08253f, #0f4c73 46%, #118fb5);
}

body[data-site-theme='ocean'] .site-nav,
body[data-site-theme='ocean'] .page-shell,
body[data-site-theme='ocean'] .detail-card,
body[data-site-theme='ocean'] .form-card,
body[data-site-theme='ocean'] .post-list-table {
    border-color: rgba(130, 230, 255, 0.2);
    background: rgba(6, 28, 50, 0.68);
}

body[data-site-theme='ocean'] .site-nav-link {
    background: rgba(52, 185, 223, 0.16);
}

body[data-site-theme='ocean'] .site-nav-link:hover,
body[data-site-theme='ocean'] .site-nav-link.active,
body[data-site-theme='ocean'] .mine-badge {
    background: rgba(168, 241, 255, 0.16);
    border-color: rgba(168, 241, 255, 0.34);
    color: #a8f1ff;
}

body[data-site-theme='ocean'] h1,
body[data-site-theme='ocean'] h2,
body[data-site-theme='ocean'] h3,
body[data-site-theme='ocean'] .eyebrow {
    color: #a8f1ff;
}

body[data-site-theme='ocean'] button {
    background: linear-gradient(180deg, #2cb6df, #117ea8);
    box-shadow: 0 0 10px rgba(44, 182, 223, 0.42);
}

body[data-site-theme='forest'] {
    background: linear-gradient(135deg, #102117, #1d4a2c 42%, #5c9b5f);
}

body[data-site-theme='forest'] .site-hero {
    border-color: rgba(173, 235, 180, 0.24);
    background:
        linear-gradient(135deg, rgba(18, 37, 22, 0.93), rgba(34, 85, 45, 0.82)),
        radial-gradient(circle at top right, rgba(193, 250, 192, 0.26), transparent 38%),
        linear-gradient(120deg, #11271a, #285336 45%, #67995b);
}

body[data-site-theme='forest'] .site-nav,
body[data-site-theme='forest'] .page-shell,
body[data-site-theme='forest'] .detail-card,
body[data-site-theme='forest'] .form-card,
body[data-site-theme='forest'] .post-list-table {
    border-color: rgba(173, 235, 180, 0.18);
    background: rgba(17, 35, 21, 0.7);
}

body[data-site-theme='forest'] .site-nav-link {
    background: rgba(113, 188, 117, 0.15);
}

body[data-site-theme='forest'] .site-nav-link:hover,
body[data-site-theme='forest'] .site-nav-link.active,
body[data-site-theme='forest'] .mine-badge {
    background: rgba(201, 245, 194, 0.16);
    border-color: rgba(201, 245, 194, 0.32);
    color: #c9f5c2;
}

body[data-site-theme='forest'] h1,
body[data-site-theme='forest'] h2,
body[data-site-theme='forest'] h3,
body[data-site-theme='forest'] .eyebrow {
    color: #c9f5c2;
}

body[data-site-theme='forest'] button {
    background: linear-gradient(180deg, #6daf62, #467a43);
    box-shadow: 0 0 10px rgba(109, 175, 98, 0.4);
}

body[data-site-theme='slate'] {
    background: linear-gradient(135deg, #161b24, #334155 42%, #64748b);
}

body[data-site-theme='slate'] .site-hero {
    border-color: rgba(203, 213, 225, 0.24);
    background:
        linear-gradient(135deg, rgba(22, 27, 36, 0.94), rgba(59, 71, 88, 0.82)),
        radial-gradient(circle at top right, rgba(226, 232, 240, 0.22), transparent 38%),
        linear-gradient(120deg, #1b2230, #3f4b61 45%, #69788f);
}

body[data-site-theme='slate'] .site-nav,
body[data-site-theme='slate'] .page-shell,
body[data-site-theme='slate'] .detail-card,
body[data-site-theme='slate'] .form-card,
body[data-site-theme='slate'] .post-list-table {
    border-color: rgba(203, 213, 225, 0.18);
    background: rgba(27, 34, 48, 0.72);
}

body[data-site-theme='slate'] .site-nav-link {
    background: rgba(148, 163, 184, 0.14);
}

body[data-site-theme='slate'] .site-nav-link:hover,
body[data-site-theme='slate'] .site-nav-link.active,
body[data-site-theme='slate'] .mine-badge {
    background: rgba(226, 232, 240, 0.14);
    border-color: rgba(226, 232, 240, 0.28);
    color: #e2e8f0;
}

body[data-site-theme='slate'] h1,
body[data-site-theme='slate'] h2,
body[data-site-theme='slate'] h3,
body[data-site-theme='slate'] .eyebrow {
    color: #dce5f2;
}

body[data-site-theme='slate'] button {
    background: linear-gradient(180deg, #7b8aa2, #566579);
    box-shadow: 0 0 10px rgba(123, 138, 162, 0.42);
}

body[data-site-theme='rose'] {
    background: linear-gradient(135deg, #2f1124, #6d2448 42%, #d46a8c);
}

body[data-site-theme='rose'] .site-hero {
    border-color: rgba(255, 196, 220, 0.26);
    background:
        linear-gradient(135deg, rgba(52, 17, 40, 0.94), rgba(122, 39, 80, 0.84)),
        radial-gradient(circle at top right, rgba(255, 216, 232, 0.26), transparent 38%),
        linear-gradient(120deg, #35122a, #7f3356 45%, #d46d91);
}

body[data-site-theme='rose'] .site-nav,
body[data-site-theme='rose'] .page-shell,
body[data-site-theme='rose'] .detail-card,
body[data-site-theme='rose'] .form-card,
body[data-site-theme='rose'] .post-list-table {
    border-color: rgba(255, 196, 220, 0.18);
    background: rgba(49, 17, 37, 0.72);
}

body[data-site-theme='rose'] .site-nav-link {
    background: rgba(229, 108, 151, 0.16);
}

body[data-site-theme='rose'] .site-nav-link:hover,
body[data-site-theme='rose'] .site-nav-link.active,
body[data-site-theme='rose'] .mine-badge {
    background: rgba(255, 214, 230, 0.16);
    border-color: rgba(255, 214, 230, 0.3);
    color: #ffd6e6;
}

body[data-site-theme='rose'] h1,
body[data-site-theme='rose'] h2,
body[data-site-theme='rose'] h3,
body[data-site-theme='rose'] .eyebrow {
    color: #ffd6e6;
}

body[data-site-theme='rose'] button {
    background: linear-gradient(180deg, #eb6f9c, #be4f77);
    box-shadow: 0 0 10px rgba(235, 111, 156, 0.42);
}

body[data-site-theme='graphite'] {
    background: linear-gradient(135deg, #111315, #1c2228 42%, #39444d);
}

body[data-site-theme='graphite'] .site-hero {
    border-color: rgba(203, 213, 225, 0.16);
    background:
        linear-gradient(135deg, rgba(16, 18, 21, 0.95), rgba(34, 39, 45, 0.84)),
        radial-gradient(circle at top right, rgba(203, 213, 225, 0.14), transparent 38%),
        linear-gradient(120deg, #111418, #252c33 45%, #43505c);
}

body[data-site-theme='graphite'] .site-nav,
body[data-site-theme='graphite'] .page-shell,
body[data-site-theme='graphite'] .detail-card,
body[data-site-theme='graphite'] .form-card,
body[data-site-theme='graphite'] .post-list-table {
    border-color: rgba(203, 213, 225, 0.12);
    background: rgba(20, 24, 28, 0.76);
}

body[data-site-theme='graphite'] .site-nav-link {
    background: rgba(148, 163, 184, 0.1);
}

body[data-site-theme='graphite'] .site-nav-link:hover,
body[data-site-theme='graphite'] .site-nav-link.active,
body[data-site-theme='graphite'] .mine-badge {
    background: rgba(226, 232, 240, 0.12);
    border-color: rgba(226, 232, 240, 0.22);
    color: #f1f5f9;
}

body[data-site-theme='graphite'] h1,
body[data-site-theme='graphite'] h2,
body[data-site-theme='graphite'] h3,
body[data-site-theme='graphite'] .eyebrow {
    color: #e5edf5;
}

body[data-site-theme='graphite'] button {
    background: linear-gradient(180deg, #525f6b, #37414b);
    box-shadow: 0 0 10px rgba(82, 95, 107, 0.34);
}

body[data-site-theme='linen'] {
    background: linear-gradient(135deg, #ebe4d7, #d8cfbf 42%, #b4a690);
    color: #2d2a24;
}

body[data-site-theme='linen'] .site-hero {
    border-color: rgba(120, 100, 72, 0.16);
    background:
        linear-gradient(135deg, rgba(243, 236, 226, 0.96), rgba(223, 213, 198, 0.9)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.4), transparent 36%),
        linear-gradient(120deg, #f3ece2, #ddd2c2 45%, #baa98e);
}

body[data-site-theme='linen'] .site-hero-title,
body[data-site-theme='linen'] .site-hero-text {
    color: #2e261d;
}

body[data-site-theme='linen'] .site-nav,
body[data-site-theme='linen'] .page-shell,
body[data-site-theme='linen'] .detail-card,
body[data-site-theme='linen'] .form-card,
body[data-site-theme='linen'] .post-list-table {
    border-color: rgba(120, 100, 72, 0.14);
    background: rgba(250, 246, 239, 0.82);
    color: #2d2a24;
}

body[data-site-theme='linen'] .site-nav-link {
    background: rgba(141, 117, 88, 0.08);
    color: #3a3026;
}

body[data-site-theme='linen'] .site-nav-link:hover,
body[data-site-theme='linen'] .site-nav-link.active,
body[data-site-theme='linen'] .mine-badge {
    background: rgba(145, 118, 82, 0.12);
    border-color: rgba(145, 118, 82, 0.22);
    color: #6d5233;
}

body[data-site-theme='linen'] h1,
body[data-site-theme='linen'] h2,
body[data-site-theme='linen'] h3,
body[data-site-theme='linen'] .eyebrow,
body[data-site-theme='linen'] .post-meta,
body[data-site-theme='linen'] p,
body[data-site-theme='linen'] span,
body[data-site-theme='linen'] label {
    color: #3c3329;
}

body[data-site-theme='linen'] input,
body[data-site-theme='linen'] textarea,
body[data-site-theme='linen'] select {
    background: #fffdf8;
    color: #2d2a24;
    border-color: #c8bba8;
    box-shadow: inset 0 0 0 1px rgba(96, 78, 56, 0.05);
}

body[data-site-theme='linen'] button {
    background: linear-gradient(180deg, #b69267, #8f6f4f);
    box-shadow: 0 0 10px rgba(182, 146, 103, 0.26);
}

body[data-site-theme='sage'] {
    background: linear-gradient(135deg, #dce7de, #bfd0c5 42%, #8ea597);
    color: #1f2a24;
}

body[data-site-theme='sage'] .site-hero {
    border-color: rgba(74, 109, 91, 0.16);
    background:
        linear-gradient(135deg, rgba(234, 243, 236, 0.96), rgba(203, 218, 208, 0.9)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.36), transparent 36%),
        linear-gradient(120deg, #edf4ee, #d4e0d7 45%, #9db4a6);
}

body[data-site-theme='sage'] .site-hero-title,
body[data-site-theme='sage'] .site-hero-text {
    color: #203128;
}

body[data-site-theme='sage'] .site-nav,
body[data-site-theme='sage'] .page-shell,
body[data-site-theme='sage'] .detail-card,
body[data-site-theme='sage'] .form-card,
body[data-site-theme='sage'] .post-list-table {
    border-color: rgba(74, 109, 91, 0.14);
    background: rgba(241, 247, 242, 0.82);
    color: #223128;
}

body[data-site-theme='sage'] .site-nav-link {
    background: rgba(88, 126, 106, 0.09);
    color: #294135;
}

body[data-site-theme='sage'] .site-nav-link:hover,
body[data-site-theme='sage'] .site-nav-link.active,
body[data-site-theme='sage'] .mine-badge {
    background: rgba(92, 133, 111, 0.13);
    border-color: rgba(92, 133, 111, 0.2);
    color: #355643;
}

body[data-site-theme='sage'] h1,
body[data-site-theme='sage'] h2,
body[data-site-theme='sage'] h3,
body[data-site-theme='sage'] .eyebrow,
body[data-site-theme='sage'] .post-meta,
body[data-site-theme='sage'] p,
body[data-site-theme='sage'] span,
body[data-site-theme='sage'] label {
    color: #294135;
}

body[data-site-theme='sage'] input,
body[data-site-theme='sage'] textarea,
body[data-site-theme='sage'] select {
    background: #fbfdfb;
    color: #203128;
    border-color: #b8cbbf;
    box-shadow: inset 0 0 0 1px rgba(74, 109, 91, 0.04);
}

body[data-site-theme='sage'] button {
    background: linear-gradient(180deg, #6e927d, #557260);
    box-shadow: 0 0 10px rgba(110, 146, 125, 0.26);
}

body[data-site-theme='pure'] {
    background: linear-gradient(180deg, #ffffff, #f7f7f5 55%, #efefeb);
    color: #111111;
}

body[data-site-theme='pure'] .site-hero {
    border-color: rgba(18, 18, 18, 0.08);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 245, 0.96)),
        radial-gradient(circle at top right, rgba(0, 0, 0, 0.04), transparent 36%),
        linear-gradient(120deg, #ffffff, #f6f6f3 48%, #ecece8);
    box-shadow: 0 18px 40px rgba(15, 15, 15, 0.06);
}

body[data-site-theme='pure'] .site-hero-title,
body[data-site-theme='pure'] .site-hero-text {
    color: #121212;
}

body[data-site-theme='pure'] .site-nav,
body[data-site-theme='pure'] .page-shell,
body[data-site-theme='pure'] .detail-card,
body[data-site-theme='pure'] .form-card,
body[data-site-theme='pure'] .post-list-table,
body[data-site-theme='pure'] .banner-card-link,
body[data-site-theme='pure'] .horizontal-banner-slot {
    border-color: rgba(18, 18, 18, 0.08);
    background: rgba(255, 255, 255, 0.9);
    color: #151515;
    box-shadow: 0 14px 32px rgba(15, 15, 15, 0.05);
}

body[data-site-theme='pure'] .site-nav-link {
    background: rgba(0, 0, 0, 0.035);
    color: #1b1b1b;
}

body[data-site-theme='pure'] .site-nav-link:hover,
body[data-site-theme='pure'] .site-nav-link.active,
body[data-site-theme='pure'] .mine-badge {
    background: rgba(18, 18, 18, 0.08);
    border-color: rgba(18, 18, 18, 0.14);
    color: #111111;
}

body[data-site-theme='pure'] h1,
body[data-site-theme='pure'] h2,
body[data-site-theme='pure'] h3,
body[data-site-theme='pure'] .eyebrow,
body[data-site-theme='pure'] .post-meta,
body[data-site-theme='pure'] p,
body[data-site-theme='pure'] span,
body[data-site-theme='pure'] label {
    color: #1a1a1a;
    text-shadow: none;
}

body[data-site-theme='pure'] input,
body[data-site-theme='pure'] textarea,
body[data-site-theme='pure'] select {
    background: #ffffff;
    color: #111111;
    border-color: #d9d9d3;
    box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.03);
}

body[data-site-theme='pure'] button {
    background: linear-gradient(180deg, #ffffff, #ecece8);
    color: #111111;
    border: 1px solid rgba(18, 18, 18, 0.12);
    box-shadow: 0 8px 18px rgba(15, 15, 15, 0.06);
}

body[data-site-theme='pure'] button:hover {
    background: linear-gradient(180deg, #ffffff, #e5e5df);
    box-shadow: 0 10px 22px rgba(15, 15, 15, 0.08);
}

body[data-site-theme='mono'] {
    background: linear-gradient(180deg, #0d0d0d, #161616 50%, #232323);
    color: #f2f2f2;
}

body[data-site-theme='mono'] .site-hero {
    border-color: rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(135deg, rgba(8, 8, 8, 0.97), rgba(28, 28, 28, 0.92)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 34%),
        linear-gradient(120deg, #0a0a0a, #1c1c1c 46%, #313131);
}

body[data-site-theme='mono'] .site-nav,
body[data-site-theme='mono'] .page-shell,
body[data-site-theme='mono'] .detail-card,
body[data-site-theme='mono'] .form-card,
body[data-site-theme='mono'] .post-list-table,
body[data-site-theme='mono'] .banner-card-link,
body[data-site-theme='mono'] .horizontal-banner-slot {
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(18, 18, 18, 0.86);
}

body[data-site-theme='mono'] .site-nav-link {
    background: rgba(255, 255, 255, 0.06);
    color: #f4f4f4;
}

body[data-site-theme='mono'] .site-nav-link:hover,
body[data-site-theme='mono'] .site-nav-link.active,
body[data-site-theme='mono'] .mine-badge {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

body[data-site-theme='mono'] h1,
body[data-site-theme='mono'] h2,
body[data-site-theme='mono'] h3,
body[data-site-theme='mono'] .eyebrow {
    color: #ffffff;
    text-shadow: none;
}

body[data-site-theme='mono'] .post-meta,
body[data-site-theme='mono'] p,
body[data-site-theme='mono'] span,
body[data-site-theme='mono'] label {
    color: #dddddd;
}

body[data-site-theme='mono'] input,
body[data-site-theme='mono'] textarea,
body[data-site-theme='mono'] select {
    background: #111111;
    color: #f4f4f4;
    border-color: #343434;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

body[data-site-theme='mono'] button {
    background: linear-gradient(180deg, #ffffff, #d9d9d9);
    color: #111111;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
}

body[data-site-theme='mono'] button:hover {
    background: linear-gradient(180deg, #ffffff, #cfcfcf);
}

body[data-site-theme='cupertino'] {
    background: linear-gradient(180deg, #f5f7fb, #edf1f8 55%, #e6ecf5);
    color: #1d1d1f;
}

body[data-site-theme='cupertino'] .site-hero {
    border-color: rgba(255, 255, 255, 0.55);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(244, 247, 252, 0.82)),
        radial-gradient(circle at top right, rgba(118, 163, 255, 0.14), transparent 34%),
        linear-gradient(120deg, #ffffff, #f1f5fb 45%, #e3ebf7);
    box-shadow: 0 24px 60px rgba(89, 104, 134, 0.12);
    backdrop-filter: blur(22px);
}

body[data-site-theme='cupertino'] .site-hero-title,
body[data-site-theme='cupertino'] .site-hero-text {
    color: #1d1d1f;
}

body[data-site-theme='cupertino'] .site-nav,
body[data-site-theme='cupertino'] .page-shell,
body[data-site-theme='cupertino'] .detail-card,
body[data-site-theme='cupertino'] .form-card,
body[data-site-theme='cupertino'] .post-list-table,
body[data-site-theme='cupertino'] .banner-card-link,
body[data-site-theme='cupertino'] .horizontal-banner-slot {
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.68);
    color: #1d1d1f;
    box-shadow: 0 16px 40px rgba(109, 126, 158, 0.12);
    backdrop-filter: blur(18px);
}

body[data-site-theme='cupertino'] .site-nav-link {
    background: rgba(109, 126, 158, 0.08);
    color: #243042;
}

body[data-site-theme='cupertino'] .site-nav-link:hover,
body[data-site-theme='cupertino'] .site-nav-link.active,
body[data-site-theme='cupertino'] .mine-badge {
    background: rgba(65, 105, 225, 0.12);
    border-color: rgba(65, 105, 225, 0.18);
    color: #3157c5;
}

body[data-site-theme='cupertino'] h1,
body[data-site-theme='cupertino'] h2,
body[data-site-theme='cupertino'] h3,
body[data-site-theme='cupertino'] .eyebrow,
body[data-site-theme='cupertino'] .post-meta,
body[data-site-theme='cupertino'] p,
body[data-site-theme='cupertino'] span,
body[data-site-theme='cupertino'] label {
    color: #243042;
    text-shadow: none;
}

body[data-site-theme='cupertino'] input,
body[data-site-theme='cupertino'] textarea,
body[data-site-theme='cupertino'] select {
    background: rgba(255, 255, 255, 0.84);
    color: #1d1d1f;
    border-color: rgba(124, 142, 174, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

body[data-site-theme='cupertino'] button {
    background: linear-gradient(180deg, #ffffff, #e9eef9);
    color: #2049c2;
    border: 1px solid rgba(82, 112, 190, 0.14);
    box-shadow: 0 10px 24px rgba(85, 105, 150, 0.12);
}

body[data-site-theme='cupertino'] button:hover {
    background: linear-gradient(180deg, #ffffff, #e1e8f8);
}