﻿/* eGov3 Blog - Admin Design System v2 */
/* Stitch 5-screen design tokens + Manrope + enhanced components */

/* === Admin Layout === */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-secondary);
}

/* ================================================================
   SIDEBAR  (dark navy gradient + pill active state)
   ================================================================ */
.admin-sidebar {
    width: 240px;
    background: linear-gradient(180deg, #120828 0%, #0d051e 100%);
    color: var(--text-white);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(100,84,248,.12);
}

/* scrollbar */
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

/* Logo */
.admin-sidebar .logo {
    padding: var(--space-6) var(--space-5);
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}

.admin-sidebar .logo a {
    font-size: var(--font-xl);
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    letter-spacing: -0.5px;
}

.admin-sidebar .logo a span.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #2463eb, #60a5fa);
    border-radius: 8px;
    font-size: 14px;
}

.admin-sidebar .logo a:hover { color: #93c5fd; }

/* Nexora brand logo (SVG + text) */
.admin-sidebar a.nexora-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    transition: opacity .18s;
}
.admin-sidebar a.nexora-brand-logo:hover { opacity: .82; }
.admin-sidebar .nexora-brand-text {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
}

/* === Admin Menu === */
.admin-menu {
    list-style: none;
    padding: var(--space-4) var(--space-3);
    flex: 1;
}

.admin-menu li { margin-bottom: 2px; }

.admin-menu li a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 8px var(--space-4);
    color: rgba(196,184,240,.75);
    text-decoration: none;
    font-size: var(--font-sm);
    font-weight: 500;
    border-radius: 8px;
    transition: all .15s ease;
    position: relative;
    letter-spacing: 0.01em;
}

.admin-menu li a:hover {
    background-color: rgba(100,84,248,.09);
    color: #e0d8ff;
}

.admin-menu li a.active {
    background: rgba(100,84,248,.18);
    color: #ffffff;
    font-weight: 600;
    border-left: 3px solid #6454f8;
    padding-left: calc(var(--space-4) - 3px);
}

.admin-menu li a.active::before {
    display: none;
}

.admin-menu li a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

/* Menu section headings */
.admin-menu-section {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(196,184,240,.35);
    padding: 14px var(--space-4) 4px;
    font-weight: 700;
    pointer-events: none;
    user-select: none;
}

/* SVG menu icons */
.menu-icon {
    flex-shrink: 0;
    opacity: .65;
    transition: opacity .15s ease;
    display: block;
}
.admin-menu li a:hover .menu-icon,
.admin-menu li a.active .menu-icon {
    opacity: 1;
}
.admin-menu li a.active .menu-icon {
    color: #8b7ff5;
}

/* Muted external link item */
.menu-link-muted {
    color: rgba(196,184,240,.45) !important;
    font-size: 12px !important;
}
.menu-link-muted:hover {
    color: rgba(196,184,240,.75) !important;
}

/* Sub-section label inside a menu group */
.admin-menu-subsection-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(196,184,240,.22);
    padding: 12px var(--space-4) 2px;
    font-weight: 700;
    pointer-events: none;
    user-select: none;
}

/* Spacer between menu groups and bottom link */
.admin-menu-section-spacer {
    flex: 1;
    min-height: 12px;
    pointer-events: none;
}

/* === Admin Content === */
.admin-content {
    flex: 1;
    min-width: 0; /* flex 아이템이 넓은 테이블에 밀려 확장되지 않도록 — .admin-table-wrapper overflow-x 격리 활성화(태블릿 768 오버플로우 방지) */
    margin-left: 240px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ================================================================
   TOPBAR
   ================================================================ */
.admin-topbar {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) var(--space-6);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.03);
}

.admin-topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.admin-topbar-title {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Breadcrumb */
.admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-sm);
    color: var(--text-muted);
}

.admin-breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.admin-breadcrumb a:hover { color: var(--primary); }
.admin-breadcrumb-sep { opacity: .4; }
.admin-breadcrumb-current { color: var(--text-primary); font-weight: 600; }

/* === Main Area === */
.admin-main {
    flex: 1;
    padding: var(--space-8) var(--space-6);
    max-width: 1400px;
    width: 100%;
}

/* ================================================================
   STAT CARDS  (Grid layout: icon right, value+label left)
   ================================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

.stat-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: var(--space-5) var(--space-6);
    display: grid;
    grid-template-areas:
        "value icon"
        "label icon";
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px var(--space-4);
    box-shadow: 0 1px 4px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.04);
    transition: transform .15s ease, box-shadow .15s ease;
    border-left: 4px solid var(--border-dark);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    border-radius: 50%;
    opacity: .04;
    transform: translate(20px, -20px);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,.08), 0 8px 30px rgba(0,0,0,.07);
}

/* nth-child accent colors */
.stats-grid .stat-card:nth-child(1) { border-left-color: var(--primary); }
.stats-grid .stat-card:nth-child(1)::after { background: var(--primary); }
.stats-grid .stat-card:nth-child(2) { border-left-color: var(--success); }
.stats-grid .stat-card:nth-child(2)::after { background: var(--success); }
.stats-grid .stat-card:nth-child(3) { border-left-color: var(--warning); }
.stats-grid .stat-card:nth-child(3)::after { background: var(--warning); }
.stats-grid .stat-card:nth-child(4) { border-left-color: var(--info); }
.stats-grid .stat-card:nth-child(4)::after { background: var(--info); }

/* Icon area (right side) */
.stat-card .stat-icon,
.stat-card .stat-card-icon {
    grid-area: icon;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    background-color: var(--bg-secondary);
}

.stats-grid .stat-card:nth-child(1) .stat-icon,
.stats-grid .stat-card:nth-child(1) .stat-card-icon {
    background: #dbeafe; color: var(--primary);
}
.stats-grid .stat-card:nth-child(2) .stat-icon,
.stats-grid .stat-card:nth-child(2) .stat-card-icon {
    background: #d1fae5; color: var(--success);
}
.stats-grid .stat-card:nth-child(3) .stat-icon,
.stats-grid .stat-card:nth-child(3) .stat-card-icon {
    background: #fef3c7; color: var(--warning);
}
.stats-grid .stat-card:nth-child(4) .stat-icon,
.stats-grid .stat-card:nth-child(4) .stat-card-icon {
    background: #dbeafe; color: var(--info);
}

/* Value & Label */
.stat-card .stat-value,
.stat-card-value {
    grid-area: value;
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -1px;
}

.stat-card .stat-label,
.stat-card-label {
    grid-area: label;
    font-size: var(--font-sm);
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 2px;
}

/* Short-name aliases */
.stat-icon { grid-area: icon; }
.stat-value { grid-area: value; font-size: 1.875rem; font-weight: 800; color: var(--text-primary); line-height: 1; letter-spacing: -1px; }
.stat-label { grid-area: label; font-size: var(--font-sm); color: var(--text-secondary); font-weight: 500; }

/* ================================================================
   ADMIN CARD
   ================================================================ */
.admin-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.03);
    margin-bottom: var(--space-6);
    overflow: hidden;
}

.admin-card-header {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to right, rgba(36,99,235,.04) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 3px solid var(--primary);
}

.admin-card-title {
    font-size: var(--font-base);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.2px;
}

.admin-card-body {
    padding: var(--space-6);
}

/* ================================================================
   ADMIN TABLE
   ================================================================ */
.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-sm);
    background-color: var(--bg-primary);
}

.admin-table thead th {
    padding: var(--space-3) var(--space-4);
    font-size: 11px;
    font-weight: 700;
    text-align: left;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: var(--space-4);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tbody tr:nth-child(even) {
    background-color: rgba(249,250,251,.7);
}

.admin-table tbody tr:hover {
    background-color: #eff6ff;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody td a {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color .1s;
}

.admin-table tbody td a:hover { color: var(--primary); }

/* Table Actions */
.table-actions {
    display: flex;
    gap: var(--space-2);
}

/* ================================================================
   ADMIN FILTER BAR
   ================================================================ */
.admin-filter {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    align-items: flex-end;
}

.admin-filter-item {
    flex: 1;
    min-width: 180px;
}

/* ================================================================
   ADMIN FORM
   ================================================================ */
.admin-form-group {
    margin-bottom: var(--space-6);
}

.admin-form-label {
    display: block;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.admin-form-label.required::after {
    content: ' *';
    color: var(--danger);
}

.admin-form-helper {
    display: block;
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin-top: var(--space-2);
}

.admin-form-error {
    display: block;
    font-size: var(--font-xs);
    color: var(--danger);
    margin-top: var(--space-2);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ================================================================
   QUICK ACTIONS
   ================================================================ */
.quick-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.quick-actions .btn {
    flex-shrink: 0;
}

/* ================================================================
   ADMIN PAGE HEADER (title + action area at top of main)
   ================================================================ */
.admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-8);
    gap: var(--space-4);
}

.admin-page-title {
    font-size: var(--font-2xl);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

.admin-page-subtitle {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-top: 4px;
}

.admin-page-actions {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}

/* ================================================================
   SECTION DIVIDER
   ================================================================ */
.admin-section-title {
    font-size: var(--font-base);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    opacity: .5;
}

.empty-state .empty-title {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.empty-state .empty-text {
    font-size: var(--font-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}

/* ================================================================
   BADGE ENHANCEMENTS (pill status badges)
   ================================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
    box-shadow: 0 0 0 1px #a7f3d0;
}

.badge-secondary {
    background: #f3f4f6;
    color: #374151;
    box-shadow: 0 0 0 1px #e5e7eb;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
    box-shadow: 0 0 0 1px #fde68a;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
    box-shadow: 0 0 0 1px #fecaca;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
    box-shadow: 0 0 0 1px #bfdbfe;
}

.badge-primary {
    background: #dbeafe;
    color: #1d4ed8;
    box-shadow: 0 0 0 1px #93c5fd;
}

/* Dark mode badges */
[data-theme="dark"] .badge-success { background: rgba(16,185,129,.15); color: #6ee7b7; box-shadow: 0 0 0 1px rgba(16,185,129,.3); }
[data-theme="dark"] .badge-secondary { background: rgba(156,163,175,.15); color: #d1d5db; box-shadow: 0 0 0 1px rgba(156,163,175,.2); }
[data-theme="dark"] .badge-warning { background: rgba(245,158,11,.15); color: #fcd34d; box-shadow: 0 0 0 1px rgba(245,158,11,.3); }
[data-theme="dark"] .badge-danger { background: rgba(239,68,68,.15); color: #fca5a5; box-shadow: 0 0 0 1px rgba(239,68,68,.3); }
[data-theme="dark"] .badge-info { background: rgba(59,130,246,.15); color: #93c5fd; box-shadow: 0 0 0 1px rgba(59,130,246,.3); }
[data-theme="dark"] .badge-primary { background: rgba(36,99,235,.2); color: #93c5fd; box-shadow: 0 0 0 1px rgba(96,165,250,.3); }

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */

/* Tablet (768px ~ 1023px) */
@media (max-width: 1023px) {
    .admin-sidebar { width: 220px; }
    .admin-content { margin-left: 220px; }
    .admin-main { padding: var(--space-6) var(--space-4); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile (767px and below) */
@media (max-width: 767px) {
    .admin-wrapper { flex-direction: column; }

    .admin-sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .admin-content { margin-left: 0; }
    .admin-main { padding: var(--space-4); }
    .admin-topbar { padding: var(--space-3) var(--space-4); }

    .admin-topbar-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .admin-menu {
        display: flex;
        overflow-x: auto;
        padding: var(--space-2) var(--space-3);
        flex-wrap: nowrap;
    }

    .admin-menu li { margin-bottom: 0; margin-right: var(--space-1); flex-shrink: 0; }

    .admin-menu li a {
        padding: var(--space-2) var(--space-3);
        border-radius: 8px;
        white-space: nowrap;
    }

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

    .admin-filter { flex-direction: column; }

    .admin-filter-item { width: 100%; min-width: 0; }

    .admin-table-wrapper {
        margin: 0 calc(var(--space-4) * -1);
        width: calc(100% + var(--space-4) * 2);
        border-radius: 0;
    }

    .admin-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .quick-actions { width: 100%; }
    .quick-actions .btn { flex: 1; justify-content: center; }
    .table-actions { flex-direction: column; }
    .table-actions .btn { width: 100%; }
    .admin-page-header { flex-direction: column; }
    .admin-page-actions { width: 100%; }
    .admin-page-actions .btn { flex: 1; justify-content: center; }
}

/* XS Mobile (480px and below) */
@media (max-width: 480px) {
    .admin-sidebar .logo a { font-size: var(--font-lg); }
    .admin-topbar-title { font-size: var(--font-base); }
    .stat-card .stat-value,
    .stat-value,
    .stat-card-value { font-size: var(--font-2xl); }
}

/* ================================================================
   DARK MODE OVERRIDES (data-theme="dark")
   하드코딩된 라이트 색상들을 다크 모드에서 오버라이드
   ================================================================ */

/* 1. Stat Card Icons - 라이트모드 파스텔 배경 → 다크 반투명 */
[data-theme="dark"] .stats-grid .stat-card:nth-child(1) .stat-icon,
[data-theme="dark"] .stats-grid .stat-card:nth-child(1) .stat-card-icon {
    background: rgba(36,99,235,.22);
}
[data-theme="dark"] .stats-grid .stat-card:nth-child(2) .stat-icon,
[data-theme="dark"] .stats-grid .stat-card:nth-child(2) .stat-card-icon {
    background: rgba(16,185,129,.2);
}
[data-theme="dark"] .stats-grid .stat-card:nth-child(3) .stat-icon,
[data-theme="dark"] .stats-grid .stat-card:nth-child(3) .stat-card-icon {
    background: rgba(245,158,11,.2);
}
[data-theme="dark"] .stats-grid .stat-card:nth-child(4) .stat-icon,
[data-theme="dark"] .stats-grid .stat-card:nth-child(4) .stat-card-icon {
    background: rgba(59,130,246,.2);
}

/* 2. Table - 짝수 행 스트라이프 / 호버 다크 */
[data-theme="dark"] .admin-table tbody tr:nth-child(even) {
    background-color: rgba(255,255,255,.025);
}
[data-theme="dark"] .admin-table tbody tr:hover {
    background-color: rgba(96,165,250,.07);
}

/* 3. Admin Card Header - 다크 그라디언트 */
[data-theme="dark"] .admin-card-header {
    background: linear-gradient(to right, rgba(96,165,250,.07) 0%, transparent 100%);
}

/* 4. Stat card hover shadow - 다크 강화 */
[data-theme="dark"] .stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.4), 0 8px 30px rgba(0,0,0,.35);
}

/* 5. Admin Topbar border - 다크 구분선 강화 */
[data-theme="dark"] .admin-topbar {
    box-shadow: 0 1px 0 var(--border);
}

/* 6. Admin Filter inputs - 폼 컨트롤 다크 일관성 */
[data-theme="dark"] .admin-filter .form-control,
[data-theme="dark"] .admin-filter .form-select {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border);
}
[data-theme="dark"] .admin-filter .form-control:focus,
[data-theme="dark"] .admin-filter .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(96,165,250,.2);
}

/* 7. Admin form controls - 다크 입력창 */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border);
}
[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
    color: var(--text-muted);
}
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(96,165,250,.18);
}
[data-theme="dark"] .form-control:disabled,
[data-theme="dark"] .form-select:disabled,
[data-theme="dark"] .form-textarea:disabled {
    background-color: var(--bg-secondary);
    opacity: 0.5;
}

/* ============================================================
   Admin Comment List Styles
   ============================================================ */

/* 상태 badge: VISIBLE / HIDDEN */
.badge-visible {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    background-color: rgba(16,185,129,.12);
    color: #059669;
    border: 1px solid rgba(16,185,129,.25);
}
[data-theme="dark"] .badge-visible {
    background-color: rgba(52,211,153,.12);
    color: #34d399;
    border-color: rgba(52,211,153,.25);
}

.badge-hidden {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    background-color: rgba(107,114,128,.12);
    color: #6b7280;
    border: 1px solid rgba(107,114,128,.25);
}
[data-theme="dark"] .badge-hidden {
    background-color: rgba(156,163,175,.1);
    color: #9ca3af;
    border-color: rgba(156,163,175,.2);
}

/* xs 사이즈 버튼 (댓글 관리 액션) */
.btn-xs {
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: 0.3rem;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: background-color 0.14s, color 0.14s, border-color 0.14s;
    font-family: inherit;
    line-height: 1.4;
}

.btn-xs-outline {
    background-color: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
}
.btn-xs-outline:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-xs-warning {
    background-color: rgba(245,158,11,.1);
    color: #d97706;
    border-color: rgba(245,158,11,.25);
}
.btn-xs-warning:hover {
    background-color: rgba(245,158,11,.2);
}
[data-theme="dark"] .btn-xs-warning {
    background-color: rgba(251,191,36,.1);
    color: #fbbf24;
    border-color: rgba(251,191,36,.2);
}
[data-theme="dark"] .btn-xs-warning:hover {
    background-color: rgba(251,191,36,.18);
}

.btn-xs-success {
    background-color: rgba(16,185,129,.1);
    color: #059669;
    border-color: rgba(16,185,129,.25);
}
.btn-xs-success:hover {
    background-color: rgba(16,185,129,.18);
}
[data-theme="dark"] .btn-xs-success {
    background-color: rgba(52,211,153,.1);
    color: #34d399;
    border-color: rgba(52,211,153,.2);
}
[data-theme="dark"] .btn-xs-success:hover {
    background-color: rgba(52,211,153,.18);
}

.btn-xs-danger {
    background-color: rgba(239,68,68,.1);
    color: #dc2626;
    border-color: rgba(239,68,68,.25);
}
.btn-xs-danger:hover {
    background-color: rgba(239,68,68,.18);
}
[data-theme="dark"] .btn-xs-danger {
    background-color: rgba(248,113,113,.1);
    color: #f87171;
    border-color: rgba(248,113,113,.2);
}
[data-theme="dark"] .btn-xs-danger:hover {
    background-color: rgba(248,113,113,.18);
}

/* 댓글 내용 (잘림 처리) */
.comment-admin-content {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 관리 버튼 그룹 */
.comment-admin-actions {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    align-items: center;
}

/* ================================================================
   LIVE EDIT - 라이브 편집 버튼 (사이드바 하단 + 상단 topbar)
   ================================================================ */

/* 사이드바 하단 고정 라이브 편집 버튼 */
.admin-sidebar-live-edit {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,.1);
    flex-shrink: 0;
}

.admin-live-edit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    width: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.2px;
    box-shadow: 0 4px 14px rgba(245,158,11,0.4);
    transition: all 0.2s ease;
    border: none;
}

.admin-live-edit-btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 6px 20px rgba(245,158,11,0.55);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.admin-live-edit-btn .live-edit-icon {
    font-size: 16px;
}

/* 상단 topbar 라이브 편집 버튼 */
.admin-topbar-live-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(245,158,11,0.35);
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
}

.admin-topbar-live-edit:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 12px rgba(245,158,11,0.45);
    color: #ffffff !important;
}

/* 상단 topbar AI 상태 pill */
.admin-ai-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(124,111,247,.55);
    background: linear-gradient(135deg, rgba(124,111,247,.96) 0%, rgba(107,77,245,.96) 54%, rgba(89,157,255,.92) 100%);
    text-decoration: none;
    transition: all .16s ease;
    box-shadow: 0 0 0 1px rgba(124,111,247,.22), 0 8px 18px rgba(77,59,188,.28);
    position: relative;
    overflow: hidden;
}

.admin-ai-status-pill .admin-ai-status-text {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .admin-ai-status-pill {
        max-width: 148px;
        height: auto;
    }
    .admin-ai-status-pill .admin-ai-status-text {
        white-space: normal;
        line-height: 1.3;
        text-align: center;
    }
}

.admin-ai-status-pill.ai-status-nexora {
    border-color: rgba(124,111,247,.5);
    background: linear-gradient(135deg, rgba(124,111,247,.96) 0%, rgba(106,84,244,.96) 65%, rgba(123,98,255,.9) 100%);
    box-shadow: 0 0 0 1px rgba(124,111,247,.35), 0 0 20px rgba(124,111,247,.3), 0 8px 20px rgba(64,44,170,.34);
}

.admin-ai-status-pill.ai-status-dual {
    border-color: rgba(124,111,247,.72);
    background: linear-gradient(120deg, rgba(124,111,247,.96) 0%, rgba(146,98,255,.95) 38%, rgba(85,176,255,.9) 100%);
    box-shadow: 0 0 0 1px rgba(124,111,247,.45), 0 0 24px rgba(124,111,247,.44), 0 10px 24px rgba(67,52,180,.4);
}

.admin-ai-status-pill.ai-status-neutral {
    border-color: rgba(124,111,247,.42);
    background: linear-gradient(135deg, rgba(103,88,197,.92) 0%, rgba(85,70,165,.92) 100%);
    box-shadow: 0 0 0 1px rgba(124,111,247,.2), 0 8px 16px rgba(55,44,126,.28);
}

.admin-ai-status-pill:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.admin-ai-status-pill.ai-status-dual::before {
    content: '';
    position: absolute;
    inset: -140% auto -140% -40%;
    width: 48%;
    background: linear-gradient(120deg, rgba(255,255,255,0), rgba(255,255,255,.28), rgba(255,255,255,0));
    transform: rotate(18deg);
    animation: adminPillSweep 3s linear infinite;
}

@keyframes adminPillSweep {
    0% { left: -52%; }
    100% { left: 118%; }
}

/* ================================================================
   DASHBOARD STATUS PANEL
   ================================================================ */
.dash-group-title { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin: 16px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border,#e5e7eb); }
.dash-group-title:first-child { margin-top: 0; }
.dash-check-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 8px; margin-bottom: 4px; }
.dash-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    font-size: 0.875rem;
}
.dash-check-item .dash-icon { font-size: 1rem; flex-shrink: 0; }
.dash-check-item .dash-label { flex: 1; color: var(--text-secondary); font-weight: 500; }
.dash-check-item .dash-link { font-size: 0.78rem; color: var(--primary); text-decoration: none; flex-shrink: 0; white-space: nowrap; }
.dash-check-item .dash-link:hover { text-decoration: underline; }
.dash-check-item.dash-ok { border-left: 3px solid #10b981; }
.dash-check-item.dash-warn { border-left: 3px solid #f59e0b; background: rgba(245,158,11,.05); }
.dash-check-item.dash-info { border-left: 3px solid #6b7280; }
[data-theme="dark"] .dash-check-item.dash-warn { background: rgba(245,158,11,.08); }

/* ================================================================
   VISIT SUMMARY MINI STATS (Dashboard)
   ================================================================ */
.visit-mini-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 4px;
}
@media (max-width: 768px) {
    .visit-mini-stats { grid-template-columns: repeat(2, 1fr); }
}
.visit-mini-stat {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
    transition: box-shadow .15s;
}
.visit-mini-stat:hover {
    box-shadow: 0 2px 8px rgba(79,70,229,.12);
}
.visit-mini-value {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -.01em;
}
.visit-mini-label {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* ================================================================
   VISITOR STATS PAGE
   ================================================================ */
.vstats-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}
.vstats-card {
    background: var(--bg-card, var(--bg-primary));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
    transition: box-shadow .2s, transform .15s;
}
.vstats-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-1px);
}
.vstats-card-accent {
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    border-radius: 12px 0 0 12px;
}
.vstats-card-icon {
    font-size: 1.35rem;
    margin-bottom: 8px;
    display: block;
}
.vstats-card-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -.02em;
}
.vstats-card-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}
.vstats-chart-card {
    background: var(--bg-card, var(--bg-primary));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 20px;
}
.vstats-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.vstats-chart-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}
.vstats-day-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 3px;
}
.vstats-day-tab {
    padding: 4px 14px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    background: transparent;
    transition: all .15s;
    text-decoration: none;
}
.vstats-day-tab.active,
.vstats-day-tab:hover {
    background: var(--bg-primary);
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.vstats-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 900px) {
    .vstats-two-col { grid-template-columns: 1fr; }
}
.vstats-section-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.vstats-top-post-row {
    display: flex;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}
.vstats-top-post-row:last-child { border-bottom: none; }
.vstats-rank {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}
.vstats-top-post-title {
    flex: 1;
    font-size: 0.87rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}
.vstats-top-post-title:hover { color: var(--primary); }
.vstats-top-post-views {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}
.vstats-daily-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}
.vstats-daily-table th {
    text-align: left;
    padding: 7px 10px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    background: var(--bg-secondary);
}
.vstats-daily-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}
.vstats-daily-table tr:last-child td { border-bottom: none; }
.vstats-daily-table tr:hover td { background: var(--bg-secondary); }
.vstats-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vstats-bar {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    flex-shrink: 0;
}

/* ================================================================
   PAGE TITLE BAR (각 페이지 최상단 제목 영역 — 모서리둥근 가시성)
   ================================================================ */
.page-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    padding: 16px 22px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 14px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.page-title-bar .ptb-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-title-bar .ptb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(100,84,248,.12);
    color: var(--primary);
    flex-shrink: 0;
}
.page-title-bar h1 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.2;
}
.page-title-bar .ptb-count {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: rgba(100,84,248,.1);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-left: 6px;
    border: 1px solid rgba(100,84,248,.2);
}
.page-title-bar .ptb-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
[data-theme="dark"] .page-title-bar {
    background: rgba(100,84,248,.06);
    border-color: rgba(100,84,248,.18);
}
[data-theme="dark"] .page-title-bar .ptb-icon {
    background: rgba(100,84,248,.18);
}

/* ================================================================
   CARD HEADER ENHANCEMENTS (admin context)
   ================================================================ */
.card .card-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}
.card .card-header.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* 카드헤더 내부 섹션 타이틀 pill */
.card-header-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}
.card-header-section .chs-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}
.card-header-section .chs-badge {
    padding: 2px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ================================================================
   QUICK ACTIONS GRID (대시보드 빠른 작업 개선)
   ================================================================ */
.qa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}
.qa-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all .15s ease;
    cursor: pointer;
    text-align: center;
    line-height: 1.3;
}
.qa-card:hover {
    background: rgba(100,84,248,.07);
    border-color: rgba(100,84,248,.3);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(100,84,248,.12);
}
.qa-card .qa-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    transition: all .15s ease;
    flex-shrink: 0;
    color: var(--text-secondary);
}
.qa-card:hover .qa-icon {
    background: rgba(100,84,248,.12);
    border-color: rgba(100,84,248,.25);
    color: var(--primary);
}
.qa-card.qa-primary {
    background: rgba(100,84,248,.08);
    border-color: rgba(100,84,248,.2);
    color: var(--primary);
}
.qa-card.qa-primary .qa-icon {
    background: rgba(100,84,248,.15);
    border-color: rgba(100,84,248,.25);
    color: var(--primary);
}
.qa-card.qa-primary:hover {
    background: rgba(100,84,248,.14);
    border-color: rgba(100,84,248,.4);
    box-shadow: 0 4px 14px rgba(100,84,248,.18);
}
[data-theme="dark"] .qa-card {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.1);
}
[data-theme="dark"] .qa-card:hover {
    background: rgba(100,84,248,.12);
    border-color: rgba(100,84,248,.35);
}
[data-theme="dark"] .qa-card .qa-icon {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.1);
}

/* ================================================================
   SECTION HEADER PILL (각 섹션 그룹 타이틀 — 모서리둥근 가시성)
   ================================================================ */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 14px;
}
.section-header .sh-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(100,84,248,.1);
    color: var(--primary);
    flex-shrink: 0;
}
.section-header .sh-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}
.section-header .sh-action {
    font-size: 0.78rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}
.section-header .sh-action:hover { text-decoration: underline; }

/* seo-section-title 개선 (settings 페이지들) */
.seo-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
    margin: 22px 0 14px;
}
.seo-section-title:first-of-type { margin-top: 0; }
[data-theme="dark"] .seo-section-title {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.1);
    border-left-color: var(--primary);
}

/* ================================================================
   TABLE IMPROVEMENTS (post-list 등 가독성)
   ================================================================ */
.admin-table tbody tr {
    transition: background-color .1s;
}
.admin-table .td-title a {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.admin-table .td-title a:hover { color: var(--primary); }
.admin-table .td-title .td-slug {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}
.admin-table .td-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.admin-table .td-views {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.table-action-group {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}

/* ================================================================
   DASH STATUS INDICATORS  (이모지 대체 → CSS dot 지시자)
   ================================================================ */
.dash-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}
.dash-icon::before {
    content: '';
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dash-ok::before,
.dash-check-item.dash-ok .dash-icon::before {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16,185,129,0.18);
}
.dash-warn::before,
.dash-check-item.dash-warn .dash-icon::before {
    background: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245,158,11,0.18);
}
.dash-info::before,
.dash-check-item.dash-info .dash-icon::before {
    background: #9ca3af;
}
[data-theme="dark"] .dash-ok::before,
[data-theme="dark"] .dash-check-item.dash-ok .dash-icon::before { background: #34d399; box-shadow: 0 0 0 2px rgba(52,211,153,0.2); }
[data-theme="dark"] .dash-warn::before,
[data-theme="dark"] .dash-check-item.dash-warn .dash-icon::before { background: #fbbf24; box-shadow: 0 0 0 2px rgba(251,191,36,0.2); }
[data-theme="dark"] .dash-info::before,
[data-theme="dark"] .dash-check-item.dash-info .dash-icon::before { background: #6b7280; }

/* ================================================================
   P14 — Quote Match Admin: Warm Professional light theme
   (GUIDE_UX_STITCH_01 시안 톤. .admin-wrapper 스코프 = 관리자 콘솔만.
    기존 규칙 미수정, 이 블록만 제거하면 원복.)
   ================================================================ */
.admin-wrapper[data-theme="light"] {
    --primary: #b45309;          /* amber-700 — 링크/활성/포커스 액센트 */
    --primary-light: #ffedd5;    /* amber-100 */
    --text-primary: #24334a;
    --text-secondary: #506079;
    --text-muted: #6c7b96;
    --bg-primary: #ffffff;       /* 카드 */
    --bg-secondary: #f7f7fb;     /* 페이지 배경 */
    --bg-tertiary: #eef1f8;      /* hover/컨테이너 */
    --border: #e6e9f2;
    --border-dark: #d5dbe8;
    font-family: 'Manrope', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Sidebar: dark → light --- */
.admin-wrapper .admin-sidebar {
    background: #ffffff;
    color: var(--text-secondary);
    border-right: 1px solid var(--border);
}
.admin-wrapper .admin-sidebar .logo { border-bottom: 1px solid var(--border); }
.admin-wrapper .admin-sidebar::-webkit-scrollbar-thumb { background: rgba(36,51,74,.14); }

/* Brand logo (light) */
.admin-wrapper .admin-sidebar a.nexora-brand-logo { justify-content: flex-start; gap: 11px; }
.admin-wrapper .admin-sidebar .brand-stack { display: flex; flex-direction: column; line-height: 1.1; }
.admin-wrapper .admin-sidebar .nexora-brand-text { color: var(--text-primary); font-size: 16px; }
.admin-wrapper .admin-sidebar .brand-sub {
    font-size: 11px; font-weight: 600; letter-spacing: .02em;
    color: #b45309; margin-top: 2px;
}
.admin-wrapper .admin-sidebar .logo a:hover { color: var(--text-primary); }

/* Menu items (light + amber active) */
.admin-wrapper .admin-menu li a { color: var(--text-secondary); }
.admin-wrapper .admin-menu li a:hover { background-color: var(--bg-tertiary); color: var(--text-primary); }
.admin-wrapper .admin-menu li a.active {
    background: #ffedd5;
    color: #9a3412;
    font-weight: 700;
    border-left: 3px solid #f59e0b;
    padding-left: calc(var(--space-4) - 3px);
}
.admin-wrapper .admin-menu li a.active .menu-icon { color: #d97706; opacity: 1; }
.admin-wrapper .admin-menu-section { color: var(--text-muted); }

/* Cards: warm soft shadow */
.admin-wrapper .card {
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px -2px rgba(164, 60, 18, 0.06);
}
.admin-wrapper .badge-primary { background: #ffedd5; color: #9a3412; }

/* --- 운영 가이드(help) 화면 --- */
.sm-help-intro {
    display: flex; align-items: flex-start; gap: 16px;
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: 12px; padding: 20px 22px;
    box-shadow: 0 4px 20px -2px rgba(164, 60, 18, 0.05);
}
.sm-help-intro .ic {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
    background: #fff4e6; color: #d97706;
    display: flex; align-items: center; justify-content: center;
}
.sm-help-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px; margin-top: 18px;
}
.sm-help-card {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: 12px; padding: 18px 20px;
    box-shadow: 0 4px 20px -2px rgba(164, 60, 18, 0.05);
    transition: border-color .15s ease;
}
.sm-help-card:hover { border-color: rgba(180, 83, 9, .35); }
.sm-help-card .ic { color: #f59e0b; margin-bottom: 10px; display: block; }
.sm-help-card h4 { font-size: var(--font-sm); font-weight: 700; color: var(--text-primary); margin: 0 0 4px; }
.sm-help-card p { font-size: var(--font-xs); color: var(--text-secondary); margin: 0; line-height: 1.5; }
.sm-help-warn {
    margin-top: 18px; background: #fff7ed; border-left: 4px solid #a53d13;
    border-radius: 12px; padding: 18px 22px;
}
.sm-help-warn h3 { display: flex; align-items: center; gap: 8px; color: #a53d13; font-size: var(--font-lg); font-weight: 700; margin: 0 0 12px; }
.sm-help-warn ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 20px; }
.sm-help-warn li { display: flex; align-items: center; gap: 8px; font-size: var(--font-sm); font-weight: 500; color: var(--text-primary); }
.sm-help-warn li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #a53d13; flex-shrink: 0; }
.sm-help-runbook { margin-top: 18px; }
.sm-help-runbook .rb-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border: 1px solid var(--border); border-top: none;
    color: var(--text-primary); background: var(--bg-primary);
}
.sm-help-runbook .rb-row:first-child { border-top: 1px solid var(--border); border-radius: 12px 12px 0 0; }
.sm-help-runbook .rb-row:last-child { border-radius: 0 0 12px 12px; }
.sm-help-runbook .rb-left { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: var(--font-sm); }
.sm-help-runbook .rb-left .ic { color: #b45309; }
.sm-help-hold { font-size: 10px; font-weight: 700; background: rgba(108,123,150,.14); color: #6c7b96; padding: 2px 7px; border-radius: 5px; }

/* ================================================================
   P14A — 서비스마켓 운영 가이드(/service-market/help) 실매뉴얼 레이아웃
   좌측 sticky 목차 + 섹션 앵커 + 절차 steps + Do/Do not + 상태표.
   ================================================================ */
.sm-guide-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.sm-guide-toc { position: sticky; top: 16px; align-self: start; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-primary); padding: 10px; font-size: var(--font-sm); box-shadow: 0 4px 20px -2px rgba(164,60,18,0.05); }
.sm-guide-toc .toc-title { font-size: var(--font-xs); font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; padding: 6px 10px; }
.sm-guide-toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text-secondary); text-decoration: none; line-height: 1.4; }
.sm-guide-toc a:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.sm-guide-toc a .toc-hold { font-size: 9px; font-weight: 700; background: rgba(108,123,150,.14); color: #6c7b96; padding: 1px 5px; border-radius: 4px; margin-left: 6px; }
.sm-guide-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sm-guide-section { background: var(--bg-primary); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; box-shadow: 0 4px 20px -2px rgba(164,60,18,0.05); scroll-margin-top: 16px; }
.sm-guide-section h2 { display: flex; align-items: center; gap: 10px; font-size: var(--font-lg); font-weight: 800; color: var(--text-primary); margin: 0 0 10px; }
.sm-guide-section h2 .sec-key { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: #ffedd5; color: #9a3412; font-weight: 800; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }
.sm-guide-section p { color: var(--text-secondary); font-size: var(--font-sm); line-height: 1.65; margin: 0 0 10px; }
.sm-guide-section p strong { color: var(--text-primary); }
.sm-guide-steps { margin: 0 0 10px; padding-left: 20px; color: var(--text-primary); font-size: var(--font-sm); line-height: 1.7; }
.sm-guide-steps li { margin-bottom: 3px; }
.sm-guide-steps code, .sm-guide-section p code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; color: #9a3412; background: #fff4e6; padding: 1px 5px; border-radius: 4px; }
.sm-dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.sm-do, .sm-dont { border-radius: 10px; padding: 12px 14px; font-size: var(--font-sm); }
.sm-do { background: #ecfdf5; border: 1px solid #a7f3d0; }
.sm-dont { background: #fff7ed; border: 1px solid #fed7aa; border-left: 4px solid #a53d13; }
.sm-do h4, .sm-dont h4 { margin: 0 0 6px; font-size: var(--font-sm); font-weight: 700; }
.sm-do h4 { color: #047857; } .sm-dont h4 { color: #a53d13; }
.sm-do ul, .sm-dont ul { margin: 0; padding-left: 16px; color: var(--text-primary); line-height: 1.6; }
.sm-guide-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: var(--font-sm); font-weight: 600; color: #b45309; text-decoration: none; }
.sm-guide-cta:hover { text-decoration: underline; }
.sm-guide-table { width: 100%; border-collapse: collapse; font-size: var(--font-sm); margin: 4px 0 10px; }
.sm-guide-table th, .sm-guide-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.sm-guide-table th { color: var(--text-muted); font-weight: 700; font-size: var(--font-xs); }
.sm-guide-table td code { font-family: ui-monospace, monospace; font-size: 0.8rem; color: #9a3412; }
@media (max-width: 768px) {
  .sm-guide-wrap { grid-template-columns: 1fr; }
  .sm-guide-toc { position: static; }
  .sm-dodont { grid-template-columns: 1fr; }
}
