:root {
    /* theme tokens v14 */
    --green-50: #eaf8f0;
    --green-100: #d4f0e0;
    --green-200: #a8e0c0;
    --green-300: #6dd0a0;
    --green-400: #2ecf6e;
    --green-500: #03c75a;
    --green-600: #02a548;
    --green-700: #028a3c;

    --bg-page: #f5f7f6;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --border-light: #e3ebe6;
    --text-primary: #1e2124;
    --text-secondary: #4a5560;
    --text-muted: #8a949c;
    --shadow-sm: 0 2px 8px rgba(3, 199, 90, 0.08);
    --shadow-md: 0 4px 20px rgba(3, 199, 90, 0.12);
    --radius: 14px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* ??/?? ?? ? ??? ??? ??? ? ?? */
a:focus,
a:active,
button:focus:not(:focus-visible),
.sidebar-link:focus,
.brand:focus,
.board-item:focus {
    outline: none;
    box-shadow: none;
}

/* Blazor/????? ??? ??? ? ? ?? ??? ?? */
h1:focus,
h1:focus-visible,
h2:focus,
h2:focus-visible,
.hero-title:focus,
.hero-title:focus-visible,
.section-title:focus,
.section-title:focus-visible,
.page-header h1:focus,
.page-header h1:focus-visible {
    outline: none;
    box-shadow: none;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

h2, h3, h4, h5 {
    color: var(--text-primary);
}

p.text-muted,
.text-muted {
    color: var(--text-muted) !important;
}

/* ===== App Layout ===== */
.app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--bg-page);
}

.main-area {
    flex: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    width: 100%;
    padding: 2rem 2.5rem;
}

/* ===== Sidebar ===== */
.app-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem 1rem;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.35rem 0.5rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    transition: background 0.2s;
}

.brand:hover {
    background: var(--green-50);
    color: var(--text-primary);
}

.brand-logo {
    display: block;
    width: 100%;
    max-width: 248px;
    height: auto;
    max-height: 92px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
}

.brand-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: linear-gradient(135deg, var(--green-400), var(--green-500));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(224, 122, 150, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    gap: 0.15rem;
}

.brand-wordmark {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: 1.55rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    background: linear-gradient(120deg, var(--green-700) 0%, var(--green-500) 45%, var(--green-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text small {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--green-600);
    opacity: 0.85;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 0.75rem;
    margin: 0 0 0.5rem;
}

.nav-divider {
    height: 1px;
    margin: 0.65rem 0.75rem;
    background: var(--border-light);
    border: 0;
}

a.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

a.sidebar-link:hover {
    background: var(--green-50);
    color: var(--green-600) !important;
}

a.sidebar-link.active {
    background: var(--green-100);
    color: var(--green-600) !important;
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--green-500);
}

.nav-icon {
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--green-50);
    border-radius: 12px;
    margin-bottom: 0;
}

.user-notify-wrap {
    position: relative;
    margin-bottom: 0.5rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--green-200);
    color: var(--green-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-avatar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--green-100);
    color: var(--green-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border-light);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.user-info strong {
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-subscriber {
    font-size: 0.68rem;
    color: var(--green-600);
    background: white;
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    width: fit-content;
    font-weight: 600;
}

.badge-guest {
    font-size: 0.68rem;
    color: var(--text-muted);
    background: white;
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    width: fit-content;
}

.footer-link {
    display: block;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.footer-link:hover {
    background: var(--green-50);
    color: var(--green-600);
}

.footer-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
    padding: 0.5rem;
}

.mobile-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 150;
    width: 42px;
    height: 42px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0;
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--green-600);
    border-radius: 2px;
}

.sidebar-overlay {
    display: none;
}

.sidebar-toggle-input {
    display: none;
}

@media (max-width: 768px) {
    .app-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        transition: left 0.3s ease;
        box-shadow: none;
    }

    .sidebar-toggle-input:checked ~ .app-sidebar {
        left: 0;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    }

    .mobile-toggle {
        display: flex;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 90;
        cursor: pointer;
    }

    .sidebar-toggle-input:checked ~ .sidebar-overlay {
        display: block;
    }

    .main-content {
        padding: 4.5rem 1.25rem 2rem;
    }
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--green-50) 0%, #eaf8f0 50%, #f7fbf8 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero .lead {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===== Cards ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.card-header {
    background: var(--green-50);
    border-bottom: 1px solid var(--border-light);
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    color: var(--green-700);
    border-radius: var(--radius) var(--radius) 0 0 !important;
}

/* ===== Buttons ===== */
.btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--green-500) !important;
    border-color: var(--green-500) !important;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--green-600) !important;
    border-color: var(--green-600) !important;
    box-shadow: 0 4px 12px rgba(224, 122, 150, 0.3);
}

.btn-outline-primary {
    color: var(--green-600) !important;
    border-color: var(--green-300) !important;
    background: white !important;
}

.btn-outline-primary:hover {
    background: var(--green-50) !important;
    border-color: var(--green-500) !important;
    color: var(--green-600) !important;
}

.btn-outline-secondary {
    color: var(--text-muted) !important;
    border-color: var(--border-light) !important;
}

.btn-outline-secondary:hover {
    background: var(--green-50) !important;
    border-color: var(--green-300) !important;
    color: var(--green-600) !important;
}

.btn-link {
    color: var(--green-600) !important;
    text-decoration: none;
}

.btn-link:hover {
    color: var(--green-700) !important;
}

.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    border-radius: 12px;
}

/* ===== Forms ===== */
.form-control,
.form-select {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--green-400);
    box-shadow: 0 0 0 3px rgba(224, 122, 150, 0.12);
    outline: none;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

fieldset {
    border-color: var(--border-light) !important;
    border-radius: 10px;
}

/* ===== Alerts ===== */
.alert {
    border-radius: 12px;
    font-size: 0.9rem;
}

.alert-success {
    background: var(--green-50);
    color: var(--green-700);
    border: 1px solid var(--green-200);
}

.alert-danger {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

.alert-warning {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.alert-info {
    background: var(--green-50);
    color: var(--green-700);
    border: 1px solid var(--green-200);
}

.alert-secondary {
    background: #f8faf9;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

/* ===== Blog output ===== */
.blog-output {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Malgun Gothic', sans-serif;
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    margin: 0;
}

.display-6 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--green-500) !important;
}

.spinner-border.text-primary {
    color: var(--green-500) !important;
}

.page-header {
    margin-bottom: 1.75rem;
}

.page-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.feature-grid .card {
    height: 100%;
}

.feature-grid .card-body {
    padding: 1.75rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--green-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.flow-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.flow-hint .arrow {
    color: var(--green-400);
    font-weight: 700;
}

.flow-hint span:not(.arrow) {
    background: var(--green-50);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    color: var(--green-700);
    font-weight: 500;
}

.validation-message {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.password-rules {
    background: var(--green-50);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
}

.rule-item {
    font-size: 0.82rem;
    padding: 0.15rem 0;
    font-weight: 500;
}

.rule-item.valid {
    color: var(--green-600);
}

.rule-item.invalid {
    color: #e53e3e;
}

.form-control.is-invalid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12);
}

.bg-primary {
    background-color: var(--green-500) !important;
}

.text-primary {
    color: var(--green-500) !important;
}

.border-primary {
    border-color: var(--green-300) !important;
}

#blazor-error-ui {
    background: #fff8e1;
    bottom: 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

/* Sidebar login link */
a.sidebar-link-login {
    margin-top: 0.25rem;
}

/* ===== Home Page ===== */
.home-hero {
    position: relative;
    background: linear-gradient(160deg, #eaf8f0 0%, #f0faf4 40%, #ffffff 100%);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    overflow: hidden;
    margin-bottom: 3rem;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(224, 122, 150, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.home-hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(224, 122, 150, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-badge {
    display: inline-block;
    background: white;
    color: var(--green-600);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--green-200);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.hero-highlight {
    color: var(--green-500);
    background: linear-gradient(135deg, var(--green-500), var(--green-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    min-width: 120px;
}

.stat-item strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--green-600);
}

.stat-item span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.home-features {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.feature-card {
    display: block;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    text-decoration: none !important;
    color: inherit;
    height: 100%;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-200);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-icon-wrap {
    width: 52px;
    height: 52px;
    background: var(--green-50);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-card .feature-icon {
    font-size: 1.5rem;
}

.feature-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green-600);
}

.home-cta {
    background: linear-gradient(135deg, var(--green-500), var(--green-400));
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

.cta-inner h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.cta-inner p {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.cta-contact {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 600;
    margin-bottom: 1.25rem !important;
}

.cta-contact strong {
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff !important;
}

.home-cta .text-muted {
    color: #ffffff !important;
}

.home-cta .btn-primary {
    background: white !important;
    color: var(--green-600) !important;
    border-color: white !important;
    font-weight: 700;
}

.home-cta .btn-primary:hover {
    background: var(--green-50) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-stats {
        gap: 0.75rem;
    }

    .stat-item {
        min-width: 100px;
        padding: 0.6rem 1rem;
    }
}

/* ===== Board ===== */
.board-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.board-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.board-item:hover {
    border-color: var(--green-300);
    box-shadow: var(--shadow-sm);
    color: inherit;
}

.board-thumb {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--green-50);
}

.board-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.4rem;
}

.board-body {
    min-width: 0;
    flex: 1;
}

.board-body strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.board-body p {
    margin: 0 0 0.5rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.board-body small {
    color: var(--text-muted);
}

.post-image {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--green-50);
    max-width: 720px;
}

.post-image img {
    display: block;
    width: 100%;
    height: auto;
}

.post-content p {
    margin-bottom: 0.75rem;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ===== Post detail (borderless) ===== */
.post-loading,
.post-empty {
    padding: 3rem 0;
    color: var(--text-muted);
}

.post-empty a {
    color: var(--green-600);
    font-weight: 600;
    text-decoration: none;
}

.post-detail {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-bottom: 4rem;
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
}

.post-back:hover {
    color: var(--green-600);
}

.post-hero {
    margin-bottom: 2rem;
}

.post-category {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-700);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.post-hero h1 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
    color: var(--text-primary);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-author-avatar,
.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-400), var(--green-600));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.post-meta strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.post-shop {
    display: block;
    font-size: 0.82rem;
    color: var(--green-600);
    font-weight: 500;
    margin-top: 0.1rem;
}

.post-public-badge {
    display: inline-block;
    margin: 0 0 0.5rem 0.5rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--green-700);
    background: var(--green-100);
    vertical-align: middle;
}

.post-locked {
    margin: 1.5rem 0 2rem;
    padding: 2rem 1.5rem;
    text-align: center;
    background: linear-gradient(160deg, var(--green-50), #fff);
    border-radius: 18px;
}

.post-locked p {
    margin: 0 0 0.75rem;
    color: var(--text-primary);
}

.post-locked-hint {
    color: var(--text-secondary) !important;
    font-size: 0.92rem;
}

.post-locked .btn {
    margin: 0.5rem 0.35rem 0;
}

.post-public-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: auto;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.board-locked-preview {
    color: var(--text-muted) !important;
    font-style: italic;
}

.board-public-tag {
    margin-left: 0.4rem;
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--green-700);
    background: var(--green-100);
}

.board-comment-count {
    margin-left: 0.45rem;
    color: var(--text-muted);
}

.board-hint-sub,
.feature-subhint {
    margin: 0.25rem 0 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.post-meta time,
.comment-head time {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.post-figure {
    margin: 0 0 2rem;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--green-50), #eaf8f0);
}

.post-figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}

.post-inline-figure {
    margin: 1.25rem 0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--green-50);
}

.post-inline-figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
}

.composer-blocks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.composer-image-block {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.75rem;
    background: var(--green-50);
}

.composer-image-block img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: #fff;
}

.composer-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.composer-toolbar .btn.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.post-figure.post-video video {
    display: block;
    width: 100%;
    max-height: 520px;
    background: #1a1216;
}

.post-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.post-body p {
    margin: 0 0 1rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.post-spacer {
    height: 0.75rem;
}

.post-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 2rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

.post-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 36px;
    padding: 0.45rem 0.9rem;
    border: 1px solid;
    border-radius: 9px;
    background: #fff;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.post-edit-btn {
    border-color: var(--green-300);
    color: var(--green-700);
}

.post-edit-btn:hover {
    border-color: var(--green-500);
    background: var(--green-50);
    color: var(--green-700);
}

.post-delete-btn {
    border-color: #e7bcbc;
    color: #b84949;
}

.post-delete-btn:hover {
    border-color: #d98585;
    background: #fff4f4;
    color: #a83b3b;
}

.post-action-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.comment-section {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    background: linear-gradient(180deg, transparent, rgba(3, 199, 90, 0.03) 12%, transparent 100%);
}

.comment-section h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 1.25rem;
    color: var(--text-primary);
}

.comment-section h2 em {
    font-style: normal;
    color: var(--green-600);
    margin-left: 0.25rem;
}

.comment-composer {
    margin-bottom: 2rem;
}

.comment-composer textarea {
    width: 100%;
    border: 0;
    outline: none;
    resize: vertical;
    min-height: 104px;
    border-radius: 18px;
    padding: 1.1rem 1.2rem;
    background: var(--green-50);
    box-shadow: none;
    font-family: inherit;
    font-size: 0.98rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.comment-composer textarea:focus {
    background: #eaf8f0;
    box-shadow: none;
}

.comment-composer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    gap: 1rem;
}

.comment-composer-footer span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-error {
    margin: 0.75rem 0 0;
    color: #c45b5b;
    font-size: 0.9rem;
}

.comment-login-hint {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.comment-login-hint a {
    color: var(--green-600);
    font-weight: 700;
    text-decoration: none;
}

.comment-empty {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 1rem 0 0;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.comment-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding: 0;
    background: transparent;
}

.comment-main {
    min-width: 0;
    flex: 1;
    padding-top: 0.15rem;
}

.comment-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.35rem;
}

.comment-head strong {
    font-size: 0.92rem;
    color: var(--text-primary);
}

.comment-head time {
    display: inline;
}

.comment-reply {
    background: none;
    border: none;
    color: var(--green-600);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.comment-reply:hover {
    color: var(--green-700);
    text-decoration: underline;
}

.comment-reply-target {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
    padding: 0.55rem 0.75rem;
    background: #eaf8f0;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.comment-reply-cancel {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    padding: 0;
}

.comment-replies {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0.75rem 0 0 2.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    border-left: 2px solid var(--green-100);
    margin-left: 1rem;
}

.comment-item-reply {
    width: 100%;
}

.comment-delete {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    padding: 0;
}

.comment-delete:hover {
    color: #c45b5b;
}

.comment-main p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.96rem;
}

@media (max-width: 768px) {
    .post-detail {
        max-width: 100%;
    }

    .post-hero h1 {
        font-size: 1.45rem;
    }
}

/* ===== Notifications ===== */
.user-info-top {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.notify-bell {
    position: relative;
    border: none;
    background: transparent;
    padding: 0.15rem 0.25rem;
    line-height: 1;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 8px;
}

.notify-bell:hover,
.notify-bell.open {
    background: rgba(3, 199, 90, 0.12);
}

.notify-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #e03131;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notify-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 8px);
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    z-index: 120;
    max-height: 320px;
    overflow: auto;
}

.notify-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--border-light);
}

.notify-mark-all {
    border: none;
    background: transparent;
    color: var(--green-600);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.notify-empty {
    margin: 0;
    padding: 1rem 0.85rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.notify-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notify-list li .notify-item-btn {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 0.7rem 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.8rem;
    line-height: 1.45;
    cursor: pointer;
    font-family: inherit;
}

.notify-list li .notify-item-btn:hover {
    background: var(--green-50);
}

.notify-list li.unread .notify-item-btn {
    background: #f3fbf6;
}

.notify-list li .notify-item-btn strong {
    color: var(--text-primary);
}

.notify-list li .notify-item-btn em {
    font-style: normal;
    color: var(--green-700);
    font-weight: 600;
}

.notify-list li .notify-item-btn span {
    display: block;
    margin-top: 0.2rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Board notice / buy-sell tags ===== */
.board-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.board-item-notice {
    border-left: 3px solid var(--green-500);
    background: linear-gradient(90deg, var(--green-50), transparent 40%);
}

.board-notice-tag,
.board-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
    border-radius: 6px;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.board-notice-tag {
    color: #fff;
    background: var(--green-600);
}

.board-tag {
    color: var(--green-700);
    background: var(--green-100);
}

.board-price,
.post-price {
    color: #e03131;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.board-price {
    margin: 0.25rem 0 0.15rem;
    font-size: 1.05rem;
}

.post-price {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.buysell-complete-actions {
    margin: 0 0 1.25rem;
}

.post-body a {
    color: var(--green-600);
    text-decoration: underline;
    word-break: break-all;
}

.post-body a:hover {
    color: var(--green-700);
}

.register-notice {
    color: var(--green-700) !important;
    font-weight: 700;
}

.register-notice strong {
    color: var(--green-700);
    font-weight: 800;
}

/* ===== Rich text editor ===== */
.rte {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.55rem;
    border-bottom: 1px solid var(--border-light);
    background: #f8faf9;
}

.rte-btn {
    min-width: 2rem;
    height: 2rem;
    border: 1px solid var(--border-light);
    background: #fff;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
}

.rte-btn:hover {
    border-color: var(--green-400);
    color: var(--green-700);
}

.rte-btn-bold { font-weight: 800; }
.rte-btn-italic { font-style: italic; }
.rte-btn-underline { text-decoration: underline; }

.rte-select {
    height: 2rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.82rem;
    padding: 0 0.4rem;
    background: #fff;
}

.rte-color-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    height: 2rem;
    padding: 0 0.35rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    margin: 0;
}

.rte-color-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.rte-color {
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.rte-color-preset {
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rte-sep {
    width: 1px;
    height: 1.2rem;
    background: var(--border-light);
    margin: 0 0.15rem;
}

.rte-editor {
    min-height: 180px;
    max-height: 520px;
    overflow: auto;
    padding: 0.85rem 1rem;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none;
    line-height: 1.7;
}

.rte-editor:empty:before {
    content: attr(data-placeholder);
    color: var(--text-muted);
    pointer-events: none;
}

.rte-editor img,
.post-body-rich img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 0.75rem 0;
}

.rte-editor img {
    cursor: pointer;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.post-body-rich img {
    width: auto;
}

.rte-editor img.rte-img-selected {
    outline-color: var(--green-500);
}

.rte-img-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
    vertical-align: top;
    user-select: none;
    box-sizing: border-box;
}

.rte-img-wrap img {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    margin: 0;
}

.rte-img-handle {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: var(--green-500);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    cursor: nwse-resize;
    z-index: 2;
}

.rte-editor.rte-dragover {
    outline: 2px dashed var(--green-500);
    outline-offset: -2px;
    background: var(--green-50);
}

.rte-btn-file {
    display: inline-flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

.rte-btn-file.disabled {
    opacity: 0.55;
    pointer-events: none;
    cursor: default;
}

.post-body-rich p {
    margin: 0 0 0.75rem;
}

.post-body-rich [style*="text-align: center"],
.post-body-rich div[style*="text-align: center"] {
    text-align: center;
}
