/* ════════════════════════════════════════
   BOLD EDITORIAL — KB Theme
   Dark navy sidebar + warm amber accent
   Fonts: Inter (body) + Sora (headings)
════════════════════════════════════════ */

:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --navy-border: rgba(255,255,255,.07);
  --navy-hover: rgba(255,255,255,.06);
  --amber: #f59e0b;
  --amber-bg: rgba(245,158,11,.12);
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-faint: #cbd5e1;
  --border-light: #f1f5f9;
  --bg-panel: #f8fafc;
  --sidebar-width: 260px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #fff;
}

/* ── KB LAYOUT (sidebar + content) ── */
.kb-layout {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.kb-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 100;
}

.kb-sidebar-logo {
  padding: 28px 24px 24px;
  border-bottom: 1px solid var(--navy-border);
}
.kb-sidebar-logo a {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kb-sidebar-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.kb-sidebar-logo small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  margin-top: 2px;
}

/* Sidebar search */
.kb-sidebar-search {
  padding: 20px 16px 12px;
}
.kb-sidebar-search a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-hover);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  transition: border-color .2s;
}
.kb-sidebar-search a:hover {
  border-color: rgba(255,255,255,.2);
}
.kb-sidebar-search span {
  font-size: 13px;
  color: var(--text-secondary);
}
.kb-sidebar-search svg {
  flex-shrink: 0;
}

/* Sidebar nav sections */
.kb-sidebar-section {
  padding: 16px 16px 8px;
}
.kb-sidebar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #334155;
  margin-bottom: 8px;
  padding: 0 8px;
}
.kb-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  margin-bottom: 2px;
  text-decoration: none;
}
.kb-sidebar-item:hover {
  background: var(--navy-hover);
  color: #e2e8f0;
}
.kb-sidebar-item.active {
  background: var(--amber-bg);
  color: var(--amber);
}
.kb-sidebar-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Sidebar footer */
.kb-sidebar-footer {
  margin-top: auto;
  padding: 16px 16px 24px;
  border-top: 1px solid var(--navy-border);
}
.kb-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}
.kb-sidebar-user:hover {
  background: rgba(255,255,255,.05);
}
.kb-sidebar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}
.kb-sidebar-user strong {
  font-size: 13px;
  color: #e2e8f0;
  display: block;
}
.kb-sidebar-user small {
  font-size: 11px;
  color: var(--text-secondary);
}
.kb-sidebar-auth {
  padding: 8px 12px;
}
.kb-sidebar-auth a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kb-sidebar-auth a:hover {
  color: #e2e8f0;
}

/* ── CONTENT AREA ── */
.kb-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

/* Top bar */
.kb-topbar {
  display: flex;
  align-items: center;
  padding: 16px 40px;
  border-bottom: 1px solid var(--border-light);
  gap: 16px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 50;
}
.kb-breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.kb-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.kb-breadcrumb a:hover {
  color: var(--amber);
}
.kb-breadcrumb .current {
  color: var(--text-primary);
  font-weight: 600;
}
.kb-topbar-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.kb-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s;
}
.kb-btn-ghost {
  background: var(--bg-panel);
  color: #475569;
  border: 1px solid #e2e8f0;
}
.kb-btn-ghost:hover {
  background: #e2e8f0;
  color: #1e293b;
}
.kb-btn-accent {
  background: var(--amber);
  color: var(--navy);
}
.kb-btn-accent:hover {
  background: #d97706;
  color: var(--navy);
}

/* ── HERO BAND ── */
.kb-hero-band {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 48px 40px 52px;
  position: relative;
  overflow: hidden;
}
.kb-hero-band::after {
  content: 'KB';
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Sora', sans-serif;
  font-size: 120px;
  font-weight: 700;
  color: rgba(255,255,255,.04);
  line-height: 1;
  pointer-events: none;
}
.kb-hero-band h1 {
  font-family: 'Sora', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.kb-hero-band p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.kb-hero-band .kb-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.kb-chip {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  display: inline-block;
}
.kb-chip:hover,
.kb-chip.active {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}

/* ── INNER CONTENT ── */
.kb-inner {
  padding: 32px 40px;
}
.kb-inner-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
}

/* List header */
.kb-list-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.kb-list-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.kb-list-header a {
  font-size: 13px;
  color: var(--amber);
  font-weight: 600;
  text-decoration: none;
}
.kb-list-header a:hover {
  text-decoration: underline;
}

/* ── ARTICLE LIST ITEMS ── */
.kb-article-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 16px;
  cursor: pointer;
  transition: padding-left .15s;
  text-decoration: none;
  color: inherit;
}
.kb-article-item:hover {
  padding-left: 6px;
  color: inherit;
}
.kb-article-item:hover .kb-article-num {
  background: var(--amber);
  color: var(--navy);
}
.kb-article-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .15s;
}
.kb-article-body {
  flex: 1;
  min-width: 0;
}
.kb-article-body h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.kb-article-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}
.kb-article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Badges */
.kb-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
}
.kb-badge-amber { background: #fef3c7; color: #92400e; }
.kb-badge-blue { background: #dbeafe; color: #1e40af; }
.kb-badge-green { background: #d1fae5; color: #065f46; }
.kb-badge-purple { background: #ede9fe; color: #5b21b6; }
.kb-badge-rose { background: #ffe4e6; color: #9f1239; }
.kb-badge-gray { background: #f1f5f9; color: #475569; }

.kb-date {
  font-size: 11px;
  color: var(--text-faint);
}

/* ── RIGHT PANEL ── */
.kb-panel-card {
  background: var(--bg-panel);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}
.kb-panel-card h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.kb-panel-cat {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  transition: color .15s;
}
.kb-panel-cat:last-child { border-bottom: none; }
.kb-panel-cat:hover { color: var(--amber); }
.kb-panel-cat::before {
  content: '\2192';
  margin-right: 8px;
  opacity: 0;
  transition: opacity .15s;
}
.kb-panel-cat:hover::before { opacity: 1; }

.kb-spotlight {
  background: var(--navy);
  border-radius: 12px;
  padding: 20px;
}
.kb-spotlight h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--amber);
  margin-bottom: 12px;
}
.kb-spotlight p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.kb-spotlight a {
  font-size: 13px;
  color: var(--amber);
  font-weight: 600;
  text-decoration: none;
}
.kb-spotlight a:hover {
  text-decoration: underline;
}

/* ── ARTICLE DETAIL ── */
.kb-article-detail {
  max-width: 780px;
}
.kb-article-detail h1 {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.kb-article-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}
.kb-article-detail-meta span {
  font-size: 13px;
  color: var(--text-secondary);
}
.kb-article-detail-meta a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 500;
}

/* Article rendered content */
.article-content {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
}
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}
.article-content pre {
  background: var(--navy);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: 13px;
}
.article-content code {
  font-size: 0.875em;
  background: var(--bg-panel);
  padding: 2px 6px;
  border-radius: 4px;
  color: #be185d;
}
.article-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
}
.article-content table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
}
.article-content table th,
.article-content table td {
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  font-size: 14px;
}
.article-content table th {
  background: var(--bg-panel);
  font-weight: 600;
  text-align: left;
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: 'Sora', sans-serif;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
}
.article-content h2 { font-size: 22px; }
.article-content h3 { font-size: 18px; }
.article-content a {
  color: var(--amber);
  font-weight: 500;
}
.article-content blockquote {
  border-left: 3px solid var(--amber);
  padding: 12px 20px;
  margin: 16px 0;
  background: #fffbeb;
  border-radius: 0 8px 8px 0;
  color: #92400e;
}

/* ── SEARCH ── */
.kb-search-form {
  display: flex;
  max-width: 560px;
  background: var(--bg-panel);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
}
.kb-search-form input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  color: var(--text-primary);
  background: transparent;
  font-family: 'Inter', sans-serif;
}
.kb-search-form button {
  background: var(--amber);
  color: var(--navy);
  border: none;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  font-family: 'Inter', sans-serif;
}
.kb-search-form button:hover {
  background: #d97706;
}
.kb-search-count {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ── CATEGORY LIST ── */
.kb-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.kb-category-card {
  background: var(--bg-panel);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all .15s;
}
.kb-category-card:hover {
  border-color: var(--amber);
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.kb-category-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.kb-category-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 0;
}
.kb-category-card .kb-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--amber-bg);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 16px;
}

/* ── SECTION HEADERS ── */
.kb-section-title {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

/* ── BREADCRUMB (inside content) ── */
.kb-content-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 20px;
}
.kb-content-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.kb-content-breadcrumb a:hover {
  color: var(--amber);
}
.kb-content-breadcrumb .sep {
  color: var(--text-faint);
}
.kb-content-breadcrumb .current {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── PAGINATION ── */
.kb-pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 32px;
}
.kb-pagination a,
.kb-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s;
}
.kb-pagination a {
  color: var(--text-secondary);
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
}
.kb-pagination a:hover {
  background: var(--amber-bg);
  border-color: var(--amber);
  color: var(--amber);
}
.kb-pagination .active {
  background: var(--amber);
  color: var(--navy);
  border: 1px solid var(--amber);
}

/* ── EMPTY STATE ── */
.kb-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.kb-empty p {
  font-size: 15px;
  margin-top: 12px;
}

/* ── MESSAGES (override Bootstrap alerts for theme) ── */
.kb-content .alert {
  border-radius: 8px;
  border: none;
  font-size: 14px;
}

/* ════════════════════════════════════════
   MANAGE UI — Bold Editorial admin theme
════════════════════════════════════════ */

/* Manage layout reuses .kb-layout, .kb-sidebar, .kb-content */

/* Stat cards */
.mg-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.mg-stat {
  background: var(--bg-panel);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-light);
  text-align: center;
}
.mg-stat-value {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}
.mg-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.mg-stat.accent {
  background: var(--navy);
  border-color: var(--navy);
}
.mg-stat.accent .mg-stat-value { color: var(--amber); }
.mg-stat.accent .mg-stat-label { color: var(--text-muted); }

/* Page header */
.mg-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.mg-page-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* Table / list card */
.mg-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.mg-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-panel);
}
.mg-card-header strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.mg-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  transition: background .1s;
}
.mg-list-item:last-child { border-bottom: none; }
.mg-list-item:hover { background: var(--bg-panel); }
.mg-list-item a.mg-list-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}
.mg-list-item a.mg-list-title:hover {
  color: var(--amber);
}
.mg-list-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.mg-list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Status badges (manage) */
.mg-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mg-badge-published { background: #d1fae5; color: #065f46; }
.mg-badge-draft { background: #fef3c7; color: #92400e; }
.mg-badge-archived { background: #f1f5f9; color: #475569; }

/* Filters bar */
.mg-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}
.mg-search {
  flex: 1;
  display: flex;
  background: var(--bg-panel);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.mg-search input {
  flex: 1;
  border: none;
  padding: 9px 14px;
  font-size: 13px;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
}
.mg-search button {
  background: transparent;
  border: none;
  padding: 0 12px;
  color: var(--text-muted);
  cursor: pointer;
}
.mg-filter-group {
  display: flex;
  gap: 0;
}
.mg-filter-btn {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.mg-filter-btn:first-child { border-radius: 8px 0 0 8px; }
.mg-filter-btn:last-child { border-radius: 0 8px 8px 0; }
.mg-filter-btn:not(:first-child) { margin-left: -1px; }
.mg-filter-btn:hover { background: var(--bg-panel); color: var(--text-primary); }
.mg-filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  z-index: 1;
  position: relative;
}

/* Form card */
.mg-form-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  padding: 24px;
}
.mg-form-card .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.mg-form-card .form-text {
  font-size: 12px;
  color: var(--text-muted);
}
.mg-form-card .form-control,
.mg-form-card .form-select {
  border-radius: 8px;
  border-color: var(--border-light);
  font-size: 14px;
}
.mg-form-card .form-control:focus,
.mg-form-card .form-select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-bg);
}

/* Buttons (manage) */
.mg-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s;
  font-family: 'Inter', sans-serif;
}
.mg-btn-primary {
  background: var(--amber);
  color: var(--navy);
}
.mg-btn-primary:hover { background: #d97706; color: var(--navy); }
.mg-btn-ghost {
  background: #fff;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.mg-btn-ghost:hover { background: var(--bg-panel); color: var(--text-primary); }
.mg-btn-danger {
  background: #fff;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.mg-btn-danger:hover { background: #fef2f2; color: #b91c1c; }
.mg-btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

/* Media grid */
.mg-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.mg-media-card {
  background: var(--bg-panel);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all .15s;
}
.mg-media-card:hover {
  border-color: var(--amber);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.mg-media-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 8px;
}
.mg-media-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.mg-media-info {
  padding: 10px 12px;
  border-top: 1px solid var(--border-light);
}
.mg-media-info .name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mg-media-info .meta {
  font-size: 11px;
  color: var(--text-muted);
}
.mg-media-actions {
  padding: 8px 12px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 6px;
  justify-content: center;
}

/* Member row */
.mg-member-role .form-select {
  font-size: 12px;
  padding: 4px 24px 4px 8px;
  border-radius: 6px;
  border-color: var(--border-light);
  background-color: var(--bg-panel);
}

/* Confirm delete */
.mg-confirm {
  max-width: 480px;
}
.mg-confirm p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Category tree (manage) */
.mg-cat-indent {
  display: inline-block;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .kb-inner-grid {
    grid-template-columns: 1fr;
  }
  .mg-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .kb-sidebar {
    display: none;
  }
  .kb-content {
    margin-left: 0;
  }
  .kb-topbar {
    padding: 12px 20px;
  }
  .kb-hero-band {
    padding: 32px 20px 36px;
  }
  .kb-hero-band h1 {
    font-size: 24px;
  }
  .kb-hero-band::after {
    display: none;
  }
  .kb-inner {
    padding: 20px;
  }
  .mg-stats {
    grid-template-columns: 1fr 1fr;
  }
  .mg-filters {
    flex-direction: column;
  }
  .mg-media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
