/* ============================================================================
   YUMSHOQ SHOP — общая дизайн-система админ-панели ("пульт управления магазином
   и производством"). Один файл на все ~24 страницы вместо копии токенов в каждой
   <style> — правим цвет/отступ один раз, а не в 24 местах.

   Важно: страницы, написанные ДО этого файла, держат свой собственный набор
   переменных с ТЕМИ ЖЕ ИМЕНАМИ (--bg, --surface, --accent и т.д.) — значения
   ниже их не перезаписывают напрямую (это разные объявления :root, а не одно),
   но совпадение имён — сознательное: весь существующий inline-CSS страниц
   (кнопки, поля, карточки) продолжает работать без единой правки, просто
   получает согласованную палитру, если сама страница переменную не переопределяет.
   Только пара структурных правил ниже (.wrap, .page-shell-pad) намеренно
   написана с более высокой специфичностью, чтобы выиграть у localных <style>
   без !important — иначе десктопная раскладка сайдбара не сработает.
   ============================================================================ */

:root{
  --bg:#121016; --bg-elevated:#17151c;
  --surface:#1c1a22; --surface-2:#242229; --surface-hover:#2a2831;
  --line:rgba(255,255,255,.08); --border:rgba(255,255,255,.08);
  --text:#f5f3f7; --text-soft:#9c98a6; --text-faint:#84808e;
  --accent:#ba6349; --accent-deep:#8f4530; --accent-tint:rgba(186,99,73,.16);
  --success:#34c471; --success-tint:rgba(52,196,113,.14);
  --warning:#e8b93f; --warning-tint:rgba(232,185,63,.14);
  --danger:#f25c5c; --danger-tint:rgba(242,92,92,.14);
  --info:#5b9bf2; --info-tint:rgba(91,155,242,.14);
  /* Было 8/12/18 — слишком мягко-"консьюмерски" для делового инструмента,
     чуть строже радиусы читаются увереннее. */
  --radius-sm:6px; --radius-md:8px; --radius-lg:12px;
  --sidebar-w:232px; --topbar-h:60px; --bottomnav-h:60px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ---- Раскладка вокруг существующего контента страницы ----
   admin-shell.js добавляет body.admin-shell — сайдбар слева на широких экранах,
   нижняя панель снизу на узких; сам контент страницы (обычно .wrap) не трогаем
   структурно, только даём ему больше места на десктопе. */
body.admin-shell{ padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom)); }
@media (min-width: 900px){
  body.admin-shell{ padding-left: var(--sidebar-w); padding-bottom: 0; }
}

/* Большинство страниц центрируют контент в .wrap{max-width:480-560px} — это
   верно для мобильного, но на десктопе рядом с сайдбаром выглядит как узкая
   колонка в пустоте. Специфичность выше локального ".wrap{...}" из <style>
   страницы (без !important), чтобы гарантированно выиграть независимо от того,
   в каком порядке подключены стили. */
@media (min-width: 900px){
  html body .wrap{ max-width: 1080px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
}

/* ---- Сайдбар (десктоп, ≥900px) ---- */
.admin-sidebar{
  display:none; position:fixed; top:0; left:0; bottom:0; width:var(--sidebar-w);
  background:var(--bg-elevated); border-right:1px solid var(--border);
  flex-direction:column; padding:20px 12px; z-index:100; overflow-y:auto;
}
@media (min-width:900px){ .admin-sidebar{ display:flex; } }
.admin-sidebar .brand{ display:flex; align-items:center; gap:10px; padding:6px 10px 22px; }
/* Монограмма вместо эмодзи-иконки в цветном блоке — тот шаблон ("иконка в
   градиентном квадрате") слишком узнаваемо читается как сгенерированная
   заглушка логотипа, а не настоящий бренд-знак. */
.admin-sidebar .brand .mark{ width:30px; height:30px; border-radius:6px; background:var(--accent); color:#fff; display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:800; flex:0 0 auto; }
.admin-sidebar .brand .name{ font-size:14px; font-weight:800; line-height:1.2; }
.admin-sidebar .brand .sub{ font-size:11px; color:var(--text-faint); }
.admin-sidebar nav{ display:flex; flex-direction:column; gap:2px; flex:1; }
.admin-sidebar .nav-link{
  display:flex; align-items:center; gap:11px; padding:9px 12px; border-radius:var(--radius-sm);
  color:var(--text-soft); text-decoration:none; font-size:13.5px; font-weight:600; position:relative;
  cursor:pointer; border:none; background:none; width:100%; text-align:left; font-family:inherit;
}
.admin-sidebar .nav-link:hover{ background:var(--surface-hover); color:var(--text); }
.admin-sidebar .nav-link.active{ background:var(--accent-tint); color:var(--accent); }
.admin-sidebar .nav-link svg{ width:18px; height:18px; flex:0 0 auto; }
.admin-sidebar .nav-link .nl-label{ flex:1; }
/* Пилюля со счётчиком встроена в строку пункта меню (после текста), не абсолютной
   точкой поверх иконки — так читается как настоящий счётчик, а не индикатор "есть что-то". */
.admin-sidebar .nav-badge{
  background:var(--accent); color:#fff; font-size:11px; font-weight:800; min-width:20px; height:20px;
  border-radius:999px; display:flex; align-items:center; justify-content:center; padding:0 6px; flex:0 0 auto;
}
/* display:flex выше бьёт браузерное [hidden]{display:none} (одинаковая специфичность, наше
   правило в авторской таблице стилей всегда выигрывает у user-agent) — без этого бейдж
   "0"/пусто был виден у КАЖДОГО пункта меню, а не только там, где реально есть счётчик. */
.admin-sidebar .nav-badge[hidden], .admin-bottomnav .nav-badge[hidden]{ display:none; }
.admin-sidebar .nav-sep{ height:1px; background:var(--border); margin:10px 4px; }
.admin-sidebar .nav-children{ display:flex; flex-direction:column; gap:1px; margin:2px 0 6px; padding-left:14px; border-left:1.5px solid var(--border); margin-left:23px; }
.admin-sidebar .nav-child{ font-size:12.5px; padding:7px 10px; }
.admin-sidebar .nav-child.active{ background:none; color:var(--accent); font-weight:700; }
.admin-sidebar .nav-link.danger{ color:var(--danger); }

/* Виджет "Нужна помощь?" над "Выйти" — ведёт в переписку с покупателями/заметки
   администратора (единственный канал связи внутри самой панели). */
.admin-sidebar .help-card{
  display:flex; align-items:center; gap:10px; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-md); padding:11px 12px; margin:4px 0 10px; cursor:pointer; text-decoration:none;
  color:var(--text); font-family:inherit;
}
.admin-sidebar .help-card:hover{ background:var(--surface-hover); }
.admin-sidebar .help-card .hc-ic{
  width:32px; height:32px; border-radius:50%; background:var(--accent-tint); color:var(--accent);
  display:flex; align-items:center; justify-content:center; flex:0 0 auto;
}
.admin-sidebar .help-card .hc-ic svg{ width:16px; height:16px; }
.admin-sidebar .help-card .hc-title{ font-size:12.5px; font-weight:700; }
.admin-sidebar .help-card .hc-sub{ font-size:11px; color:var(--text-faint); }
.admin-sidebar .help-card .hc-chev{ color:var(--text-faint); margin-left:auto; }

/* ---- Топбар (десктоп, ≥900px) — поиск, уведомления, профиль ---- */
.admin-topbar{
  display:none; align-items:center; gap:18px; height:var(--topbar-h);
  padding:0 28px; border-bottom:1px solid var(--border); background:var(--bg);
  position:sticky; top:0; z-index:90;
}
@media (min-width:900px){ .admin-topbar{ display:flex; } }
.admin-topbar .tb-crumb{ display:flex; align-items:center; gap:8px; font-size:13.5px; font-weight:700; color:var(--text-soft); flex:0 0 auto; white-space:nowrap; }
.admin-topbar .tb-crumb svg{ width:16px; height:16px; flex:0 0 auto; }
.admin-topbar .tb-crumb .sep{ color:var(--text-faint); font-weight:400; }
.admin-topbar .tb-search{
  flex:1; max-width:420px; display:flex; align-items:center; gap:8px; background:var(--surface);
  border-radius:var(--radius-sm); padding:8px 12px; border:1px solid transparent;
}
.admin-topbar .tb-search:focus-within{ border-color:var(--accent); }
.admin-topbar .tb-search svg{ width:15px; height:15px; color:var(--text-faint); flex:0 0 auto; }
.admin-topbar .tb-search input{ flex:1; min-width:0; background:none; border:none; outline:none; color:var(--text); font-size:13px; font-family:inherit; }
.admin-topbar .tb-search input::placeholder{ color:var(--text-faint); }
.admin-topbar .tb-search kbd{ font-size:10.5px; color:var(--text-faint); background:var(--surface-2); padding:2px 6px; border-radius:4px; font-family:inherit; flex:0 0 auto; }
.admin-topbar .tb-spacer{ flex:1; }
.admin-topbar .tb-bell{
  position:relative; width:34px; height:34px; border-radius:50%; background:none; border:none;
  color:var(--text-soft); display:flex; align-items:center; justify-content:center; cursor:pointer; flex:0 0 auto;
}
.admin-topbar .tb-bell:hover{ background:var(--surface-hover); color:var(--text); }
.admin-topbar .tb-bell svg{ width:18px; height:18px; }
.admin-topbar .tb-bell .dot{ position:absolute; top:6px; right:7px; width:7px; height:7px; border-radius:50%; background:var(--danger); border:1.5px solid var(--bg); }
.admin-topbar .tb-user{
  display:flex; align-items:center; gap:8px; background:none; border:none; color:var(--text);
  cursor:pointer; font-size:13px; font-weight:600; font-family:inherit; padding:4px 6px 4px 4px; border-radius:var(--radius-sm); flex:0 0 auto;
}
.admin-topbar .tb-user:hover{ background:var(--surface-hover); }
.admin-topbar .tb-user .avatar{ width:28px; height:28px; border-radius:50%; background:var(--accent); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; flex:0 0 auto; }
.admin-topbar .tb-user svg{ width:14px; height:14px; color:var(--text-faint); }
.admin-sidebar .nav-link.danger:hover{ background:var(--danger-tint); }

/* ---- Нижняя навигация (мобильный, <900px) ---- */
.admin-bottomnav{
  position:fixed; left:0; right:0; bottom:0; display:flex; background:var(--bg-elevated);
  border-top:1px solid var(--border); padding:7px 4px calc(4px + env(safe-area-inset-bottom));
  z-index:100;
}
@media (min-width:900px){ .admin-bottomnav{ display:none; } }
.admin-bottomnav .bn-link{
  flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; padding:4px 0 5px;
  background:none; border:none; color:var(--text-faint); cursor:pointer; position:relative;
  text-decoration:none; font-family:inherit;
}
.admin-bottomnav .bn-link.active{ color:var(--accent); }
.admin-bottomnav .bn-link svg{ width:21px; height:21px; }
.admin-bottomnav .bn-link span{ font-size:9.5px; font-weight:700; }
.admin-bottomnav .nav-badge{
  position:absolute; top:-1px; right:calc(50% - 15px); background:var(--danger); color:#fff;
  font-size:9px; font-weight:800; min-width:15px; height:15px; border-radius:8px;
  display:flex; align-items:center; justify-content:center; padding:0 3px;
}

/* ============================================================================
   Общие компоненты — доступны любой странице, подключившей этот файл, без
   необходимости переопределять их у себя. Существующие локальные .btn/.field
   на старых страницах не конфликтуют (разная реализация тех же классов
   каскадом переопределяется тем, что объявлено позже в <head> — см. shell doc
   в каждом файле про порядок подключения).
   ============================================================================ */
.kpi-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; margin-bottom:22px; }
.kpi-card{ background:var(--surface); border-radius:var(--radius-lg); padding:16px 18px; }
.kpi-card .kpi-label{ font-size:12px; color:var(--text-faint); font-weight:600; margin:0 0 8px; display:flex; align-items:center; gap:6px; }
.kpi-card .kpi-label svg{ width:14px; height:14px; }
.kpi-card .kpi-value{ font-size:24px; font-weight:800; font-variant-numeric:tabular-nums; margin:0; }
.kpi-card .kpi-sub{ font-size:12px; color:var(--text-soft); margin:4px 0 0; }
.kpi-card.warn .kpi-value{ color:var(--warning); }
.kpi-card.danger .kpi-value{ color:var(--danger); }

.page-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:22px; flex-wrap:wrap; }
.page-head h1{ font-size:22px; font-weight:800; margin:0 0 4px; }
.page-head .page-sub{ font-size:13px; color:var(--text-faint); margin:0; }

.data-table{ width:100%; border-collapse:collapse; background:var(--surface); border-radius:var(--radius-lg); overflow:hidden; }
.data-table th{ text-align:left; font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--text-faint); font-weight:700; padding:12px 16px; border-bottom:1px solid var(--border); white-space:nowrap; }
.data-table td{ padding:13px 16px; border-bottom:1px solid var(--border); font-size:13.5px; vertical-align:middle; }
.data-table tbody tr:last-child td{ border-bottom:none; }
.data-table tbody tr{ transition:background .12s; }
.data-table tbody tr:hover{ background:var(--surface-hover); cursor:pointer; }
.data-table .num{ font-variant-numeric:tabular-nums; text-align:right; }
.table-scroll{ overflow-x:auto; border-radius:var(--radius-lg); }

.pill{ display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:700; padding:4px 10px; border-radius:999px; white-space:nowrap; }
.pill.neutral{ background:var(--surface-2); color:var(--text-soft); }
.pill.success{ background:var(--success-tint); color:var(--success); }
.pill.warning{ background:var(--warning-tint); color:var(--warning); }
.pill.danger{ background:var(--danger-tint); color:var(--danger); }
.pill.info{ background:var(--info-tint); color:var(--info); }
.pill.accent{ background:var(--accent-tint); color:var(--accent); }

.btn2{ display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:10px 16px; border-radius:var(--radius-sm); border:none; font-size:13.5px; font-weight:700; cursor:pointer; font-family:inherit; transition:filter .12s,background .12s; }
.btn2 svg{ width:16px; height:16px; }
.btn2.primary{ background:var(--accent); color:#fff; }
.btn2.primary:hover{ filter:brightness(1.07); }
.btn2.secondary{ background:var(--surface-2); color:var(--text); }
.btn2.secondary:hover{ background:var(--surface-hover); }
.btn2.danger-ghost{ background:none; color:var(--danger); }
.btn2.danger-ghost:hover{ background:var(--danger-tint); }
.btn2:disabled{ opacity:.5; cursor:not-allowed; }

.toolbar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:16px; }
.toolbar .search-input{ flex:1; min-width:180px; background:var(--surface); border:1px solid transparent; border-radius:var(--radius-sm); padding:9px 13px; color:var(--text); font-size:13.5px; font-family:inherit; outline:none; }
.toolbar .search-input:focus{ border-color:var(--accent); }

.empty-state{ text-align:center; padding:56px 20px; color:var(--text-faint); }
.empty-state svg{ width:40px; height:40px; margin-bottom:12px; opacity:.5; }
.empty-state p{ margin:0; font-size:13.5px; }

/* ============================================================================
   Компоненты списочных экранов (Заказы/Товары/Клиенты/Поставщики/Склад) —
   карточки-фильтры со счётчиком, пилюли-вкладки, аватары, стек миниатюр,
   таблица с чекбоксами, пагинация, боковая панель деталей.
   ============================================================================ */
/* Раньше эти правила требовали обёртку .page-toolbar, которой в реальной разметке
   страниц нет (используется .page-head-row/.ph-actions напрямую) — из-за этого
   стили ни разу не применялись, и в поиск/действия рендерились сырым HTML
   (гигантская нестилизованная SVG-лупа). Теперь классы работают сами по себе. */
.page-head-row{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:20px; flex-wrap:wrap; }
.ph-search{ display:flex; align-items:center; gap:8px; background:var(--surface); border-radius:var(--radius-sm); padding:10px 14px; width:320px; max-width:100%; border:1px solid transparent; }
.ph-search:focus-within{ border-color:var(--accent); }
.ph-search svg{ width:15px; height:15px; color:var(--text-faint); flex:0 0 auto; }
.ph-search input{ flex:1; min-width:0; background:none; border:none; outline:none; color:var(--text); font-size:13px; font-family:inherit; }
.ph-search input::placeholder{ color:var(--text-faint); }
.ph-actions{ display:flex; align-items:center; gap:10px; }

.stat-row{ display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; margin-bottom:18px; }
.stat-card{
  display:flex; align-items:center; gap:12px; background:var(--surface); border-radius:var(--radius-lg);
  padding:14px 16px; cursor:pointer; border:1.5px solid transparent; text-align:left; font-family:inherit; color:inherit;
}
.stat-card:hover{ border-color:var(--border); }
.stat-card.active{ border-color:var(--accent); }
.stat-card .sc-icon{ width:40px; height:40px; border-radius:var(--radius-md); display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.stat-card .sc-icon svg{ width:19px; height:19px; }
.stat-card .sc-icon.neutral{ background:var(--surface-2); color:var(--text-soft); }
.stat-card .sc-icon.accent{ background:var(--accent-tint); color:var(--accent); }
.stat-card .sc-icon.success{ background:var(--success-tint); color:var(--success); }
.stat-card .sc-icon.warning{ background:var(--warning-tint); color:var(--warning); }
.stat-card .sc-icon.danger{ background:var(--danger-tint); color:var(--danger); }
.stat-card .sc-body{ flex:1; min-width:0; }
/* display:block обязателен — это <span>, инлайновые элементы не переносятся на новую
   строку сами по себе (margin по вертикали на них не действует), из-за этого число
   наезжало прямо на подпись вместо строки под ней. */
.stat-card .sc-label{ display:block; font-size:12px; color:var(--text-faint); margin:0 0 4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.stat-card .sc-value{ display:block; font-size:20px; font-weight:800; font-variant-numeric:tabular-nums; }
.stat-card .sc-sub{ display:block; font-size:11.5px; color:var(--text-faint); margin-top:2px; }
.stat-card .sc-chev{ color:var(--text-faint); flex:0 0 auto; }
.stat-card .sc-trend{ font-size:12px; font-weight:700; display:flex; align-items:center; gap:3px; margin-top:4px; }
.stat-card .sc-trend.up{ color:var(--success); }
.stat-card .sc-trend.down{ color:var(--danger); }
.stat-card .sc-trend svg{ width:12px; height:12px; }

.filter-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.filter-pills{ display:flex; gap:8px; flex-wrap:wrap; }
.filter-pill{
  display:inline-flex; align-items:center; gap:7px; border:none; background:var(--surface); color:var(--text-soft);
  border-radius:999px; padding:8px 8px 8px 14px; font-size:12.5px; font-weight:700; cursor:pointer; font-family:inherit;
}
.filter-pill .fp-count{ background:var(--surface-2); color:var(--text-faint); border-radius:999px; min-width:20px; height:20px; padding:0 6px; display:inline-flex; align-items:center; justify-content:center; font-size:11px; }
.filter-pill .fp-dot{ width:7px; height:7px; border-radius:50%; }
.filter-pill.active{ background:var(--accent); color:#fff; }
.filter-pill.active .fp-count{ background:rgba(255,255,255,.22); color:#fff; }
.sort-select{ background:var(--surface); border:none; color:var(--text-soft); border-radius:var(--radius-sm); padding:9px 14px; font-size:12.5px; font-weight:700; font-family:inherit; cursor:pointer; }

.avatar-circle{
  width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:13px; color:#fff; flex:0 0 auto;
}
.avatar-circle.sm{ width:28px; height:28px; font-size:11px; }
.avatar-circle.lg{ width:56px; height:56px; font-size:20px; }

.thumb-sq{ width:40px; height:40px; border-radius:var(--radius-sm); object-fit:cover; background:var(--surface-2); flex:0 0 auto; }
.thumb-stack{ display:flex; align-items:center; }
.thumb-stack .thumb-sq{ width:28px; height:28px; border:2px solid var(--surface); margin-left:-8px; }
.thumb-stack .thumb-sq:first-child{ margin-left:0; }
.thumb-stack .thumb-more{
  width:28px; height:28px; border-radius:var(--radius-sm); background:var(--surface-2); color:var(--text-faint);
  display:flex; align-items:center; justify-content:center; font-size:10.5px; font-weight:700; margin-left:-8px; border:2px solid var(--surface);
}

.data-table input[type="checkbox"]{ width:16px; height:16px; accent-color:var(--accent); cursor:pointer; }
.data-table td, .data-table th{ vertical-align:middle; }
.data-table .cell-main{ display:flex; align-items:center; gap:11px; }
.data-table .cell-title{ font-weight:700; font-size:13.5px; }
.data-table .cell-sub{ font-size:12px; color:var(--text-faint); margin-top:1px; }
.row-chev{ color:var(--text-faint); flex:0 0 auto; margin-left:3px; }
.icon-menu-btn{ width:30px; height:30px; border-radius:var(--radius-sm); background:none; border:none; color:var(--text-faint); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
.icon-menu-btn:hover{ background:var(--surface-hover); color:var(--text); }
.icon-menu-btn svg{ width:16px; height:16px; }
tr.row-selected{ background:var(--accent-tint); }

.pagination{ display:flex; align-items:center; justify-content:space-between; margin-top:18px; flex-wrap:wrap; gap:10px; }
.pagination .pg-note{ font-size:12.5px; color:var(--text-faint); }
.pagination .pg-buttons{ display:flex; align-items:center; gap:6px; }
.pagination .pg-btn{
  min-width:32px; height:32px; padding:0 8px; border-radius:var(--radius-sm); background:var(--surface); border:none;
  color:var(--text-soft); font-size:12.5px; font-weight:700; cursor:pointer; display:inline-flex; align-items:center; justify-content:center;
}
.pagination .pg-btn:hover{ background:var(--surface-hover); }
.pagination .pg-btn.active{ background:var(--accent); color:#fff; }
.pagination .pg-btn:disabled{ opacity:.4; cursor:not-allowed; }
.pagination .pg-btn svg{ width:15px; height:15px; }

/* ---- Боковая панель деталей (сдвигается справа от таблицы — Поставщики/Клиенты) ---- */
.detail-panel{
  background:var(--surface); border-radius:var(--radius-lg); padding:20px; flex:0 0 340px; align-self:flex-start;
  position:sticky; top:calc(var(--topbar-h) + 20px);
}
.detail-panel .dp-head{ display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:16px; }
.detail-panel .dp-close{ background:none; border:none; color:var(--text-faint); cursor:pointer; padding:2px; }
.detail-panel .dp-close svg{ width:18px; height:18px; }
.detail-panel .dp-name{ font-size:16px; font-weight:800; margin:10px 0 4px; }
.detail-panel .dp-actions{ display:flex; gap:8px; margin:14px 0 6px; }
.detail-panel .dp-actions .btn2{ flex:1; }
.detail-panel .dp-tabs{ display:flex; gap:16px; border-bottom:1px solid var(--border); margin:16px 0 14px; }
.detail-panel .dp-tab{ background:none; border:none; color:var(--text-faint); font-size:12.5px; font-weight:700; padding:0 0 10px; cursor:pointer; border-bottom:2px solid transparent; font-family:inherit; }
.detail-panel .dp-tab.active{ color:var(--accent); border-color:var(--accent); }
.detail-panel .dp-field{ display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--border); font-size:13px; }
.detail-panel .dp-field:last-child{ border-bottom:none; }
.detail-panel .dp-field svg{ width:15px; height:15px; color:var(--text-faint); flex:0 0 auto; }
.detail-panel .dp-field .dp-k{ color:var(--text-faint); flex:0 0 96px; }
.detail-panel .dp-field .dp-v{ font-weight:600; flex:1; }
.detail-panel .dp-note{
  width:100%; background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-sm);
  color:var(--text); font-family:inherit; font-size:13px; padding:10px 12px; resize:vertical; min-height:64px;
}
.list-with-panel{ display:flex; align-items:flex-start; gap:20px; }
.list-with-panel .lwp-main{ flex:1; min-width:0; }
