/* ==========================================================================
   1. ГЛОБАЛЬНЫЕ UI-КОМПОНЕНТЫ (Кнопки, Поля, Модалки, Спиннеры)
   ========================================================================== */

/* --- Кнопки --- */
.cp-btn {
  padding: 11px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
  border: none;
  font-family: 'DM Sans', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
}
.cp-btn:active { transform: scale(.97); }
.cp-btn-primary { background: var(--accent); color: #05070B; }
.cp-btn-primary:hover { background: #4FA3FF; }
.cp-btn-primary:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }
.cp-btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.cp-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.cp-btn-danger { background: transparent; border: 1px solid var(--border); color: var(--error); }
.cp-btn-danger:hover { background: rgba(248,81,73,.1); border-color: var(--error); }

/* --- Поля ввода --- */
.cp-field { display: flex; flex-direction: column; gap: 6px; }
.cp-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.cp-input, .cp-select { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 13px; font-size: 14px; color: var(--text); outline: none; transition: border-color .2s; font-family: 'DM Sans', sans-serif; width: 100%; }
.cp-input:focus, .cp-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,124,246,.12); }
.cp-input::placeholder { color: var(--muted); }

/* --- Оверлеи и модальные окна --- */
.cp-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; z-index: 99999; padding: 16px; animation: cpfi .2s ease both; }
.cp-modal { background: #1c2128; border: 1px solid var(--accent); border-radius: 14px; padding: 32px; width: 100%; max-width: 520px; box-shadow: 0 24px 64px rgba(0,0,0,.8); max-height: 90vh; overflow-y: auto; }
.cp-modal-title { font-family: 'Frank Ruhl Libre', Georgia, serif; font-size: 20px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.cp-modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* --- Тосты и спиннеры --- */
.cp-spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: cpspin .7s linear infinite; margin: 48px auto; }
.cp-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 12px 24px; border-radius: 30px; font-size: 14px; font-weight: 700; z-index: 999999; box-shadow: 0 8px 24px rgba(0,0,0,.4); animation: cpfi .3s ease both; }
.cp-toast.success { background: var(--success); color: #0F1724; }
.cp-toast.error { background: var(--error); color: #FFF; }

@keyframes cpspin { to { transform: rotate(360deg); } }
@keyframes cpfi { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }


/* ==========================================================================
   2. ПРОСТРАНСТВА ИМЕН МОДУЛЕЙ (Защита от сдвигов верстки)
   ========================================================================== */

/* ── Login & Register (#cp-login-root, #cp-reg-root) ── */
#cp-login-root .cp-card, #cp-reg-root .cp-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px 40px; width: 100%; max-width: 440px; }
#cp-reg-root .cp-strength { height: 4px; border-radius: 2px; background: var(--border); margin-top: 6px; overflow: hidden; }
#cp-reg-root .cp-strength-bar { height: 100%; transition: width .3s, background .3s; }

/* ── Dashboard (#cp-dash-root) ── */
#cp-dash-root .cp-hero { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 36px 40px; margin-bottom: 28px; display: flex; justify-content: space-between; align-items: center; position: relative; overflow: hidden; }
#cp-dash-root .cp-hero::before { content: '✡'; position: absolute; right: 32px; top: 50%; transform: translateY(-50%); font-size: 120px; color: rgba(46,124,246,.04); font-family: 'Frank Ruhl Libre', serif; }
#cp-dash-root .cp-complete { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px 24px; margin-bottom: 28px; }
#cp-dash-root .cp-progress { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin: 12px 0; }
#cp-dash-root .cp-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--warning)); }
#cp-dash-root .cp-complete-items { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
#cp-dash-root .cp-check { font-size: 12px; display: flex; align-items: center; gap: 4px; }
#cp-dash-root .cp-check.done { color: var(--accent); }
#cp-dash-root .cp-check.missing { color: var(--muted); }
#cp-dash-root .cp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
#cp-dash-root .cp-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 16px; transition: border-color .2s; }
#cp-dash-root .cp-stat:hover { border-color: var(--accent); }
#cp-dash-root .cp-stat-val { font-family: 'Frank Ruhl Libre', serif; font-size: 28px; font-weight: 700; color: var(--accent); }
#cp-dash-root .cp-stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
#cp-dash-root .cp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#cp-dash-root .cp-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 24px; text-decoration: none; display: block; color: var(--text); transition: border-color .2s, transform .2s; }
#cp-dash-root .cp-card:hover { border-color: var(--accent); transform: translateY(-2px); }
#cp-dash-root .cp-card-title { font-family: 'Frank Ruhl Libre', Georgia, serif; font-size: 17px; font-weight: 700; margin-bottom: 4px; }
#cp-dash-root .cp-card-desc { font-size: 13px; color: var(--muted); }
#cp-dash-root .cp-reminder { background: rgba(46,124,246,.07); border: 1px solid rgba(46,124,246,.2); border-radius: 10px; padding: 16px 20px; grid-column: span 2; display: flex; gap: 12px; align-items: flex-start; }

/* ── Profile Form (#cp-pf-root) ── */
#cp-pf-root .cp-steps-bar { display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
#cp-pf-root .cp-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; max-width: 140px; position: relative; }
#cp-pf-root .cp-step-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--muted); z-index: 1; }
#cp-pf-root .cp-step.active .cp-step-dot { border-color: var(--accent); color: var(--accent); background: rgba(46,124,246,.12); }
#cp-pf-root .cp-step.done .cp-step-dot { border-color: var(--accent); background: var(--accent); color: #05070B; }
#cp-pf-root .cp-step:not(:last-child)::after { content: ''; position: absolute; top: 14px; left: calc(50% + 16px); right: calc(-50% + 16px); height: 2px; background: var(--border); }
#cp-pf-root .cp-step.done:not(:last-child)::after { background: var(--accent); }
#cp-pf-root .cp-interest { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; cursor: pointer; transition: border-color .2s; }
#cp-pf-root .cp-interest.sel { border-color: var(--accent); background: rgba(46,124,246,.08); }
#cp-pf-root .cp-interests { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
#cp-pf-root .cp-radio-group { display: flex; gap: 10px; }
#cp-pf-root .cp-radio-opt { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 14px; }
#cp-pf-root .cp-radio-opt.checked { border-color: var(--accent); background: rgba(46,124,246,.08); }

/* ── Yahrzeits (#cp-yz-root) ── */
#cp-yz-root .cp-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-bottom: 20px; }
#cp-yz-root .cp-yz-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; transition: border-color .2s; position: relative; overflow: hidden; }
#cp-yz-root .cp-yz-card:hover { border-color: var(--accent); }
#cp-yz-root .cp-yz-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #0F3B7A, var(--accent)); }
#cp-yz-root .cp-yz-card.soon::before { background: linear-gradient(90deg, #8a6000, var(--warning)); }
#cp-yz-root .cp-yz-card.today::before { background: linear-gradient(90deg, #8b0000, var(--error)); }
#cp-yz-root .cp-yz-card.soon { border-color: rgba(227,179,65,.4); }
#cp-yz-root .cp-yz-card.today { border-color: var(--error); box-shadow: 0 0 20px rgba(248,81,73,.15); }
#cp-yz-root .cp-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
#cp-yz-root .cp-card-name { font-family: 'Frank Ruhl Libre', Georgia, serif; font-size: 18px; font-weight: 700; }
#cp-yz-root .cp-card-rel { font-size: 12px; color: var(--muted); margin-top: 3px; }
#cp-yz-root .cp-card-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
#cp-yz-root .cp-date-block { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
#cp-yz-root .cp-date-block-label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px; }
#cp-yz-root .cp-date-block-val { font-size: 14px; color: var(--text); font-weight: 600; }
#cp-yz-root .cp-date-block-val.hebrew { font-family: 'Frank Ruhl Libre', Georgia, serif; font-size: 15px; color: var(--accent); }
#cp-yz-root .cp-this-year { background: rgba(46,124,246,.06); border: 1px solid rgba(46,124,246,.2); border-radius: 8px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; }
#cp-yz-root .cp-this-year-label { font-size: 12px; color: var(--muted); }
#cp-yz-root .cp-this-year-date { font-size: 14px; font-weight: 700; color: var(--accent); }
#cp-yz-root .cp-card-notes { font-size: 13px; color: var(--muted); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-style: italic; }

/* ── Forum (#cp-forum-root) ── */
#cp-forum-root .cp-category { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; transition: border-color .2s; }
#cp-forum-root .cp-category:hover { border-color: var(--accent); }
#cp-forum-root .cp-cat-header { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; }
#cp-forum-root .cp-cat-title { font-family: 'Frank Ruhl Libre', Georgia, serif; font-size: 17px; font-weight: 700; }
#cp-forum-root .cp-cat-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }
#cp-forum-root .cp-cat-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
#cp-forum-root .cp-cat-count { font-family: 'Frank Ruhl Libre', Georgia, serif; font-size: 22px; font-weight: 700; color: var(--accent); }
#cp-forum-root .cp-cat-count-label { font-size: 11px; color: var(--muted); }
#cp-forum-root .cp-new-badge { background: rgba(111,214,255,.15); border: 1px solid rgba(111,214,255,.3); border-radius: 10px; padding: 2px 8px; font-size: 11px; color: var(--new); font-weight: 700; }
#cp-forum-root .cp-thread-preview-list { border-top: 1px solid var(--border); }
#cp-forum-root .cp-thread-preview { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
#cp-forum-root .cp-thread-preview:hover { background: var(--surface2); }
#cp-forum-root .cp-thread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
#cp-forum-root .cp-thread-dot.new { background: var(--new); box-shadow: 0 0 6px rgba(111,214,255,.4); }
#cp-forum-root .cp-thread-preview-title { flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#cp-forum-root .cp-thread-preview-meta { font-size: 12px; color: var(--muted); flex-shrink: 0; }
#cp-forum-root .cp-cat-footer { padding: 10px 20px; border-top: 1px solid var(--border); background: var(--surface2); display: flex; justify-content: space-between; align-items: center; }
#cp-forum-root .cp-cat-footer a { font-size: 13px; color: var(--accent); text-decoration: none; cursor: pointer; }
#cp-forum-root .cp-post { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 8px; }
#cp-forum-root .cp-post.own { border-left: 3px solid var(--accent); }
#cp-forum-root .cp-post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
#cp-forum-root .cp-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--surface2); border: 1px solid var(--border); color: var(--muted); }
#cp-forum-root .cp-avatar.own { background: rgba(46,124,246,.2); border-color: var(--accent); color: var(--accent); }
#cp-forum-root .cp-post-meta { flex: 1; font-size: 13px; color: var(--muted); }
#cp-forum-root .cp-post-author { font-weight: 700; color: var(--text); margin-right: 6px; }
#cp-forum-root .cp-post-content { font-size: 15px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

/* ── Private Messages (#cp-pm-root) ── */
#cp-pm-root .cp-layout { display: grid; grid-template-columns: 280px 1fr; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); min-height: 560px; overflow: hidden; }
#cp-pm-root .cp-sidebar { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
#cp-pm-root .cp-sidebar-header { padding: 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
#cp-pm-root .cp-conv-list { flex: 1; overflow-y: auto; }
#cp-pm-root .cp-conv { padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; display: flex; gap: 10px; align-items: flex-start; }
#cp-pm-root .cp-conv:hover { background: var(--surface2); }
#cp-pm-root .cp-conv.active { background: rgba(46,124,246,.08); border-left: 3px solid var(--accent); }
#cp-pm-root .cp-msg { max-width: 70%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; word-break: break-word; margin-bottom: 8px; }
#cp-pm-root .cp-msg.sent { align-self: flex-end; background: rgba(46,124,246,.15); border: 1px solid rgba(46,124,246,.3); border-bottom-right-radius: 4px; }
#cp-pm-root .cp-msg.recv { align-self: flex-start; background: var(--surface2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }

/* ── Events & News (#cp-events-root) ── */
#cp-events-root .cp-ev-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
#cp-events-root .cp-carousel-section { margin-bottom: 36px; position: relative; }
#cp-events-root .cp-carousel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; border-bottom: 2px solid var(--border); padding-bottom: 8px; }
#cp-events-root .cp-carousel-header h2 { font-family: 'Frank Ruhl Libre', Georgia, serif; font-size: 22px; font-weight: 700; margin: 0; color: var(--text); }
#cp-events-root .cp-carousel-controls { display: flex; gap: 8px; }

#cp-events-root .cp-arrow-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; transition: background .2s, border-color .2s; }
#cp-events-root .cp-arrow-btn:hover { background: var(--surface2); border-color: var(--accent); color: var(--accent); }

#cp-events-root .cp-carousel-container { width: 100%; overflow: hidden; position: relative; }
#cp-events-root .cp-carousel-track { 
  display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding-bottom: 14px; -webkit-overflow-scrolling: touch;
}
#cp-events-root .cp-carousel-track::-webkit-scrollbar { display: none; }
#cp-events-root .cp-carousel-track { -ms-overflow-style: none; scrollbar-width: none; }

#cp-events-root .cp-carousel-item { flex: 0 0 310px; scroll-snap-align: start; }
#cp-events-root .cp-inner-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; height: 100%; min-height: 360px; cursor: pointer; transition: border-color .2s, transform .2s; }
#cp-events-root .cp-inner-card:hover { border-color: var(--accent); transform: translateY(-2px); }

#cp-events-root .cp-card-img { width: 100%; height: 160px; object-fit: cover; border-bottom: 1px solid var(--border); }
#cp-events-root .cp-no-img { width: 100%; height: 160px; background: var(--surface2); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 36px; }

#cp-events-root .cp-card-body { padding: 16px; flex-grow: 1; display: flex; flex-direction: column; }
#cp-events-root .cp-card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
#cp-events-root .cp-card-title { font-family: 'Frank Ruhl Libre', Georgia, serif; margin: 0 0 8px 0; font-size: 17px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#cp-events-root .cp-card-text { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
#cp-events-root .cp-card-info-lines { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
#cp-events-root .cp-events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* Лайтбокс событий с адаптацией */
.cp-ev-modal-flex { display: flex; flex-wrap: nowrap; background: var(--bg, #1c2128); position: relative; max-height: 80vh; }
.cp-ev-modal-img-col { flex: 1 1 40px; min-width: 320px; background: #111; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 12px; box-sizing: border-box; }
.cp-ev-modal-info-col { flex: 1 1 50px; min-width: 320px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; max-height: 80vh; overflow-y: auto; box-sizing: border-box; }
.cp-ev-modal-desc { font-size: 15px; color: var(--text, #fff); line-height: 1.6; white-space: pre-wrap; overflow-y: auto; margin-bottom: 24px; padding-right: 6px; flex-grow: 1; }
.cp-lightbox-poster { width: 100%; height: 100%; max-height: 70vh; object-fit: contain; }

@media (max-width: 768px) {
  .cp-ev-modal-flex { flex-direction: column !important; max-height: 85vh !important; overflow-y: auto !important; }
  .cp-ev-modal-img-col { flex: 0 0 auto !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; height: auto !important; padding: 0 !important; background: #111; }
  .cp-ev-modal-img-col img.cp-lightbox-poster { width: 100% !important; height: auto !important; max-height: 50vh !important; object-fit: contain !important; display: block !important; margin: 0 auto !important; }
  .cp-ev-modal-info-col { min-height: auto !important; padding: 20px !important; overflow-y: visible !important; }
  .cp-ev-modal-desc { max-height: none !important; overflow-y: visible !important; }
}
@media (max-width: 500px) {
  #cp-events-root .cp-carousel-item { flex: 0 0 85vw; }
  #cp-events-root .cp-carousel-controls { display: none !important; }
}

/* ── Family Tree (#cp-family-root) ── */
#cp-family-root .cp-graph-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; position: relative; overflow: auto; }
#cp-family-root #cp-family-canvas { display: block; cursor: grab; }
#cp-family-root #cp-family-canvas:active { cursor: grabbing; }
#cp-family-root .cp-persons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; margin-bottom: 20px; }
#cp-family-root .cp-person-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: border-color .2s; cursor: pointer; position: relative; }
#cp-family-root .cp-person-card:hover { border-color: var(--accent); }
#cp-family-root .cp-person-card.deceased { border-left: 3px solid var(--error); opacity: .75; }
#cp-family-root .cp-card-candle { position: absolute; top: 14px; right: 14px; font-size: 16px; }
#cp-family-root .cp-card-name { font-family: 'Frank Ruhl Libre', Georgia, serif; font-size: 17px; font-weight: 700; margin-bottom: 4px; }
#cp-family-root .cp-card-relation { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
#cp-family-root .cp-card-meta { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }

/* ── Admin Panel (#cp-admin-root) ── */
#cp-admin-root { display: flex; }
#cp-admin-root .cp-nav { width: 220px; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
#cp-admin-root .cp-nav-logo { padding: 24px 20px 16px; border-bottom: 1px solid var(--border); }
#cp-admin-root .cp-nav-logo-star { font-size: 18px; letter-spacing: 3px; color: var(--accent); }
#cp-admin-root .cp-nav-logo-title { font-family: 'Frank Ruhl Libre', Georgia, serif; font-size: 15px; font-weight: 700; margin-top: 4px; }
#cp-admin-root .cp-nav-logo-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
#cp-admin-root .cp-nav-section { padding: 16px 12px 6px; font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
#cp-admin-root .cp-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; margin: 2px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--muted); transition: background .15s, color .15s; user-select: none; }
#cp-admin-root .cp-nav-item:hover { background: var(--surface2); color: var(--text); }
#cp-admin-root .cp-nav-item.active { background: rgba(46,124,246,.12); color: var(--accent); font-weight: 700; }
#cp-admin-root .cp-main { flex: 1; padding: 32px; overflow-y: auto; min-width: 0; }
#cp-admin-root .cp-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
#cp-admin-root .cp-table { width: 100%; border-collapse: collapse; }
#cp-admin-root .cp-table th { padding: 11px 14px; text-align: left; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; border-bottom: 1px solid var(--border); background: var(--surface2); }
#cp-admin-root .cp-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; background: var(--surface); }
#cp-admin-root .cp-table tr:hover td { background: var(--surface2); }